1 | import { IngesterOptions, SubscriptionOptions } from "../internal/graph/graphQL";
|
2 | export declare class ParameterEnum {
|
3 | value: string | string[];
|
4 | constructor(value: string | string[]);
|
5 | }
|
6 | export declare function enumValue(value: string | string[]): ParameterEnum;
|
7 | /**
|
8 | * Prepare a GraphQL subscription string for the use with Apollo or EventHandlers.
|
9 | *
|
10 | * Subscription can be provided by the following options:
|
11 | *
|
12 | * * subscription: string containing the subscription GraphQL, or
|
13 | * * path: absolute or relative path to a .graphql file to load; if provided a relative
|
14 | * path this will resolve the relative path to an absolute given the location of
|
15 | * the calling script.
|
16 | * * name: name GraphQL subscription operation to load; this will walk up the directory
|
17 | * structure starting at the location of the calling script and look for a folder
|
18 | * called 'graphql'. Once that folder is found, the subscription named 'name' is
|
19 | * being looked for.
|
20 | * * fragmentsDir: location of fragment .graphql files
|
21 | * * inline: remove any unneeded whitespace and line breaks from returned GraphQL string
|
22 | * * variables: the variables to bind into the subscription
|
23 | * * operationName: name of the subscription to use in the generated GraphQL string
|
24 | *
|
25 | * @param {{subscription?: string; path?: string; name?: string; fragmentDir?: string; inline?: boolean;
|
26 | * variables?: {[p: string]: string | boolean | number | ParameterEnum}}} options
|
27 | * @returns {string}
|
28 | */
|
29 | export declare function subscription(optionsOrName: SubscriptionOptions | string): string;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function ingester(optionsOrName: IngesterOptions | string): string;
|
47 |
|
\ | No newline at end of file |