@contember/graphql-client-system 1.2.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/generated/Async.d.ts +21 -0
- package/dist/src/generated/Async.d.ts.map +1 -0
- package/dist/src/generated/Async.js +42 -0
- package/dist/src/generated/Async.js.map +1 -0
- package/dist/src/generated/CommonTypes.d.ts +158 -0
- package/dist/src/generated/CommonTypes.d.ts.map +1 -0
- package/dist/src/generated/CommonTypes.js +169 -0
- package/dist/src/generated/CommonTypes.js.map +1 -0
- package/dist/src/generated/EnumInputMetadata.d.ts +2 -0
- package/dist/src/generated/EnumInputMetadata.d.ts.map +1 -0
- package/dist/src/generated/EnumInputMetadata.js +17 -0
- package/dist/src/generated/EnumInputMetadata.js.map +1 -0
- package/dist/src/generated/enums/EventType.d.ts +2 -0
- package/dist/src/generated/enums/EventType.d.ts.map +1 -0
- package/dist/src/generated/enums/EventType.js +3 -0
- package/dist/src/generated/enums/EventType.js.map +1 -0
- package/dist/src/generated/enums/EventsOrder.d.ts +2 -0
- package/dist/src/generated/enums/EventsOrder.d.ts.map +1 -0
- package/dist/src/generated/enums/EventsOrder.js +3 -0
- package/dist/src/generated/enums/EventsOrder.js.map +1 -0
- package/dist/src/generated/enums/MigrateErrorCode.d.ts +2 -0
- package/dist/src/generated/enums/MigrateErrorCode.d.ts.map +1 -0
- package/dist/src/generated/enums/MigrateErrorCode.js +3 -0
- package/dist/src/generated/enums/MigrateErrorCode.js.map +1 -0
- package/dist/src/generated/enums/index.d.ts +4 -0
- package/dist/src/generated/enums/index.d.ts.map +1 -0
- package/dist/src/generated/enums/index.js +3 -0
- package/dist/src/generated/enums/index.js.map +1 -0
- package/dist/src/generated/fetchers/CreateEventFetcher.d.ts +203 -0
- package/dist/src/generated/fetchers/CreateEventFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/CreateEventFetcher.js +22 -0
- package/dist/src/generated/fetchers/CreateEventFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/DeleteEventFetcher.d.ts +203 -0
- package/dist/src/generated/fetchers/DeleteEventFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/DeleteEventFetcher.js +22 -0
- package/dist/src/generated/fetchers/DeleteEventFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/EventFetcher.d.ts +186 -0
- package/dist/src/generated/fetchers/EventFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/EventFetcher.js +32 -0
- package/dist/src/generated/fetchers/EventFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/ExecutedMigrationFetcher.d.ts +117 -0
- package/dist/src/generated/fetchers/ExecutedMigrationFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/ExecutedMigrationFetcher.js +21 -0
- package/dist/src/generated/fetchers/ExecutedMigrationFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/MigrateErrorFetcher.d.ts +67 -0
- package/dist/src/generated/fetchers/MigrateErrorFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/MigrateErrorFetcher.js +15 -0
- package/dist/src/generated/fetchers/MigrateErrorFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/MigrateResponseFetcher.d.ts +68 -0
- package/dist/src/generated/fetchers/MigrateResponseFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/MigrateResponseFetcher.js +28 -0
- package/dist/src/generated/fetchers/MigrateResponseFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/MigrateResultFetcher.d.ts +32 -0
- package/dist/src/generated/fetchers/MigrateResultFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/MigrateResultFetcher.js +11 -0
- package/dist/src/generated/fetchers/MigrateResultFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/MutationFetcher.d.ts +41 -0
- package/dist/src/generated/fetchers/MutationFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/MutationFetcher.js +14 -0
- package/dist/src/generated/fetchers/MutationFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/QueryFetcher.d.ts +86 -0
- package/dist/src/generated/fetchers/QueryFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/QueryFetcher.js +25 -0
- package/dist/src/generated/fetchers/QueryFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/StageFetcher.d.ts +66 -0
- package/dist/src/generated/fetchers/StageFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/StageFetcher.js +18 -0
- package/dist/src/generated/fetchers/StageFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/UpdateEventFetcher.d.ts +220 -0
- package/dist/src/generated/fetchers/UpdateEventFetcher.d.ts.map +1 -0
- package/dist/src/generated/fetchers/UpdateEventFetcher.js +24 -0
- package/dist/src/generated/fetchers/UpdateEventFetcher.js.map +1 -0
- package/dist/src/generated/fetchers/index.d.ts +23 -0
- package/dist/src/generated/fetchers/index.d.ts.map +1 -0
- package/dist/src/generated/fetchers/index.js +35 -0
- package/dist/src/generated/fetchers/index.js.map +1 -0
- package/dist/src/generated/index.d.ts +5 -0
- package/dist/src/generated/index.d.ts.map +1 -0
- package/dist/src/generated/index.js +10 -0
- package/dist/src/generated/index.js.map +1 -0
- package/dist/src/generated/inputs/EventFilterRow.d.ts +5 -0
- package/dist/src/generated/inputs/EventFilterRow.d.ts.map +1 -0
- package/dist/src/generated/inputs/EventFilterRow.js +3 -0
- package/dist/src/generated/inputs/EventFilterRow.js.map +1 -0
- package/dist/src/generated/inputs/EventsArgs.d.ts +10 -0
- package/dist/src/generated/inputs/EventsArgs.d.ts.map +1 -0
- package/dist/src/generated/inputs/EventsArgs.js +3 -0
- package/dist/src/generated/inputs/EventsArgs.js.map +1 -0
- package/dist/src/generated/inputs/EventsFilter.d.ts +13 -0
- package/dist/src/generated/inputs/EventsFilter.d.ts.map +1 -0
- package/dist/src/generated/inputs/EventsFilter.js +3 -0
- package/dist/src/generated/inputs/EventsFilter.js.map +1 -0
- package/dist/src/generated/inputs/EventsFilterDate.d.ts +5 -0
- package/dist/src/generated/inputs/EventsFilterDate.d.ts.map +1 -0
- package/dist/src/generated/inputs/EventsFilterDate.js +3 -0
- package/dist/src/generated/inputs/EventsFilterDate.js.map +1 -0
- package/dist/src/generated/inputs/Migration.d.ts +9 -0
- package/dist/src/generated/inputs/Migration.d.ts.map +1 -0
- package/dist/src/generated/inputs/Migration.js +3 -0
- package/dist/src/generated/inputs/Migration.js.map +1 -0
- package/dist/src/generated/inputs/MigrationSkippedError.d.ts +5 -0
- package/dist/src/generated/inputs/MigrationSkippedError.d.ts.map +1 -0
- package/dist/src/generated/inputs/MigrationSkippedError.js +3 -0
- package/dist/src/generated/inputs/MigrationSkippedError.js.map +1 -0
- package/dist/src/generated/inputs/index.d.ts +7 -0
- package/dist/src/generated/inputs/index.d.ts.map +1 -0
- package/dist/src/generated/inputs/index.js +3 -0
- package/dist/src/generated/inputs/index.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +27 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/tsconfig.tsbuildinfo +1 -0
- package/package.json +21 -0
- package/scripts/generateClient.ts +18 -0
- package/src/generated/Async.ts +65 -0
- package/src/generated/CommonTypes.ts +208 -0
- package/src/generated/EnumInputMetadata.ts +20 -0
- package/src/generated/enums/EventType.ts +1 -0
- package/src/generated/enums/EventsOrder.ts +6 -0
- package/src/generated/enums/MigrateErrorCode.ts +7 -0
- package/src/generated/enums/index.ts +3 -0
- package/src/generated/fetchers/CreateEventFetcher.ts +308 -0
- package/src/generated/fetchers/DeleteEventFetcher.ts +308 -0
- package/src/generated/fetchers/EventFetcher.ts +296 -0
- package/src/generated/fetchers/ExecutedMigrationFetcher.ts +196 -0
- package/src/generated/fetchers/MigrateErrorFetcher.ts +125 -0
- package/src/generated/fetchers/MigrateResponseFetcher.ts +182 -0
- package/src/generated/fetchers/MigrateResultFetcher.ts +76 -0
- package/src/generated/fetchers/MutationFetcher.ts +110 -0
- package/src/generated/fetchers/QueryFetcher.ts +221 -0
- package/src/generated/fetchers/StageFetcher.ts +127 -0
- package/src/generated/fetchers/UpdateEventFetcher.ts +332 -0
- package/src/generated/fetchers/index.ts +22 -0
- package/src/generated/index.ts +4 -0
- package/src/generated/inputs/EventFilterRow.ts +8 -0
- package/src/generated/inputs/EventsArgs.ts +14 -0
- package/src/generated/inputs/EventsFilter.ts +17 -0
- package/src/generated/inputs/EventsFilterDate.ts +8 -0
- package/src/generated/inputs/Migration.ts +13 -0
- package/src/generated/inputs/MigrationSkippedError.ts +8 -0
- package/src/generated/inputs/index.ts +6 -0
- package/src/index.ts +7 -0
- package/src/tsconfig.json +8 -0
- package/tsconfig.json +5 -0
- package/tsconfig.settings.json +3 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import type { AcceptableVariables, UnresolvedVariables, FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';
|
|
2
|
+
import { ENUM_INPUT_METADATA } from '../EnumInputMetadata';
|
|
3
|
+
import type { ObjectFetcher } from 'graphql-ts-client-api';
|
|
4
|
+
import { createFetcher, createFetchableType } from 'graphql-ts-client-api';
|
|
5
|
+
import type {EventsArgs} from '../inputs';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Any instance of this interface is immutable,
|
|
9
|
+
* all the properties and functions can only be used to create new instances,
|
|
10
|
+
* they cannot modify the current instance.
|
|
11
|
+
*
|
|
12
|
+
* So any instance of this interface is reuseable.
|
|
13
|
+
*/
|
|
14
|
+
export interface QueryFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Query', T, TVariables> {
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
directive(name: string, args?: DirectiveArgs): QueryFetcher<T, TVariables>;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
stages<
|
|
21
|
+
X extends object,
|
|
22
|
+
XVariables extends object
|
|
23
|
+
>(
|
|
24
|
+
child: ObjectFetcher<'Stage', X, XVariables>
|
|
25
|
+
): QueryFetcher<
|
|
26
|
+
T & {readonly "stages": ReadonlyArray<X>},
|
|
27
|
+
TVariables & XVariables
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
stages<
|
|
31
|
+
X extends object,
|
|
32
|
+
XVariables extends object,
|
|
33
|
+
XAlias extends string = "stages",
|
|
34
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
35
|
+
XDirectiveVariables extends object = {}
|
|
36
|
+
>(
|
|
37
|
+
child: ObjectFetcher<'Stage', X, XVariables>,
|
|
38
|
+
optionsConfigurer: (
|
|
39
|
+
options: FieldOptions<"stages", {}, {}>
|
|
40
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
41
|
+
): QueryFetcher<
|
|
42
|
+
T & (
|
|
43
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
44
|
+
{readonly [key in XAlias]?: ReadonlyArray<X>} :
|
|
45
|
+
{readonly [key in XAlias]: ReadonlyArray<X>}
|
|
46
|
+
),
|
|
47
|
+
TVariables & XVariables & XDirectiveVariables
|
|
48
|
+
>;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
executedMigrations<
|
|
52
|
+
X extends object,
|
|
53
|
+
XVariables extends object
|
|
54
|
+
>(
|
|
55
|
+
child: ObjectFetcher<'ExecutedMigration', X, XVariables>
|
|
56
|
+
): QueryFetcher<
|
|
57
|
+
T & {readonly "executedMigrations": ReadonlyArray<X>},
|
|
58
|
+
TVariables & XVariables & QueryArgs["executedMigrations"]
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
executedMigrations<
|
|
62
|
+
XArgs extends AcceptableVariables<QueryArgs['executedMigrations']>,
|
|
63
|
+
X extends object,
|
|
64
|
+
XVariables extends object
|
|
65
|
+
>(
|
|
66
|
+
args: XArgs,
|
|
67
|
+
child: ObjectFetcher<'ExecutedMigration', X, XVariables>
|
|
68
|
+
): QueryFetcher<
|
|
69
|
+
T & {readonly "executedMigrations": ReadonlyArray<X>},
|
|
70
|
+
TVariables & XVariables & UnresolvedVariables<XArgs, QueryArgs['executedMigrations']>
|
|
71
|
+
>;
|
|
72
|
+
|
|
73
|
+
executedMigrations<
|
|
74
|
+
X extends object,
|
|
75
|
+
XVariables extends object,
|
|
76
|
+
XAlias extends string = "executedMigrations",
|
|
77
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
78
|
+
XDirectiveVariables extends object = {}
|
|
79
|
+
>(
|
|
80
|
+
child: ObjectFetcher<'ExecutedMigration', X, XVariables>,
|
|
81
|
+
optionsConfigurer: (
|
|
82
|
+
options: FieldOptions<"executedMigrations", {}, {}>
|
|
83
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
84
|
+
): QueryFetcher<
|
|
85
|
+
T & (
|
|
86
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
87
|
+
{readonly [key in XAlias]?: ReadonlyArray<X>} :
|
|
88
|
+
{readonly [key in XAlias]: ReadonlyArray<X>}
|
|
89
|
+
),
|
|
90
|
+
TVariables & XVariables & QueryArgs["executedMigrations"] & XDirectiveVariables
|
|
91
|
+
>;
|
|
92
|
+
|
|
93
|
+
executedMigrations<
|
|
94
|
+
XArgs extends AcceptableVariables<QueryArgs['executedMigrations']>,
|
|
95
|
+
X extends object,
|
|
96
|
+
XVariables extends object,
|
|
97
|
+
XAlias extends string = "executedMigrations",
|
|
98
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
99
|
+
XDirectiveVariables extends object = {}
|
|
100
|
+
>(
|
|
101
|
+
args: XArgs,
|
|
102
|
+
child: ObjectFetcher<'ExecutedMigration', X, XVariables>,
|
|
103
|
+
optionsConfigurer: (
|
|
104
|
+
options: FieldOptions<"executedMigrations", {}, {}>
|
|
105
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
106
|
+
): QueryFetcher<
|
|
107
|
+
T & (
|
|
108
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
109
|
+
{readonly [key in XAlias]?: ReadonlyArray<X>} :
|
|
110
|
+
{readonly [key in XAlias]: ReadonlyArray<X>}
|
|
111
|
+
),
|
|
112
|
+
TVariables & XVariables & UnresolvedVariables<XArgs, QueryArgs['executedMigrations']> & XDirectiveVariables
|
|
113
|
+
>;
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
events<
|
|
117
|
+
X extends object,
|
|
118
|
+
XVariables extends object
|
|
119
|
+
>(
|
|
120
|
+
child: ObjectFetcher<'Event', X, XVariables>
|
|
121
|
+
): QueryFetcher<
|
|
122
|
+
T & {readonly "events": ReadonlyArray<X>},
|
|
123
|
+
TVariables & XVariables & QueryArgs["events"]
|
|
124
|
+
>;
|
|
125
|
+
|
|
126
|
+
events<
|
|
127
|
+
XArgs extends AcceptableVariables<QueryArgs['events']>,
|
|
128
|
+
X extends object,
|
|
129
|
+
XVariables extends object
|
|
130
|
+
>(
|
|
131
|
+
args: XArgs,
|
|
132
|
+
child: ObjectFetcher<'Event', X, XVariables>
|
|
133
|
+
): QueryFetcher<
|
|
134
|
+
T & {readonly "events": ReadonlyArray<X>},
|
|
135
|
+
TVariables & XVariables & UnresolvedVariables<XArgs, QueryArgs['events']>
|
|
136
|
+
>;
|
|
137
|
+
|
|
138
|
+
events<
|
|
139
|
+
X extends object,
|
|
140
|
+
XVariables extends object,
|
|
141
|
+
XAlias extends string = "events",
|
|
142
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
143
|
+
XDirectiveVariables extends object = {}
|
|
144
|
+
>(
|
|
145
|
+
child: ObjectFetcher<'Event', X, XVariables>,
|
|
146
|
+
optionsConfigurer: (
|
|
147
|
+
options: FieldOptions<"events", {}, {}>
|
|
148
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
149
|
+
): QueryFetcher<
|
|
150
|
+
T & (
|
|
151
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
152
|
+
{readonly [key in XAlias]?: ReadonlyArray<X>} :
|
|
153
|
+
{readonly [key in XAlias]: ReadonlyArray<X>}
|
|
154
|
+
),
|
|
155
|
+
TVariables & XVariables & QueryArgs["events"] & XDirectiveVariables
|
|
156
|
+
>;
|
|
157
|
+
|
|
158
|
+
events<
|
|
159
|
+
XArgs extends AcceptableVariables<QueryArgs['events']>,
|
|
160
|
+
X extends object,
|
|
161
|
+
XVariables extends object,
|
|
162
|
+
XAlias extends string = "events",
|
|
163
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
164
|
+
XDirectiveVariables extends object = {}
|
|
165
|
+
>(
|
|
166
|
+
args: XArgs,
|
|
167
|
+
child: ObjectFetcher<'Event', X, XVariables>,
|
|
168
|
+
optionsConfigurer: (
|
|
169
|
+
options: FieldOptions<"events", {}, {}>
|
|
170
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
171
|
+
): QueryFetcher<
|
|
172
|
+
T & (
|
|
173
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
174
|
+
{readonly [key in XAlias]?: ReadonlyArray<X>} :
|
|
175
|
+
{readonly [key in XAlias]: ReadonlyArray<X>}
|
|
176
|
+
),
|
|
177
|
+
TVariables & XVariables & UnresolvedVariables<XArgs, QueryArgs['events']> & XDirectiveVariables
|
|
178
|
+
>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const query$: QueryFetcher<{}, {}> =
|
|
182
|
+
createFetcher(
|
|
183
|
+
createFetchableType(
|
|
184
|
+
"Query",
|
|
185
|
+
"OBJECT",
|
|
186
|
+
[],
|
|
187
|
+
[
|
|
188
|
+
{
|
|
189
|
+
category: "LIST",
|
|
190
|
+
name: "stages",
|
|
191
|
+
targetTypeName: "Stage"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
category: "LIST",
|
|
195
|
+
name: "executedMigrations",
|
|
196
|
+
argGraphQLTypeMap: {version: 'String'},
|
|
197
|
+
targetTypeName: "ExecutedMigration"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
category: "LIST",
|
|
201
|
+
name: "events",
|
|
202
|
+
argGraphQLTypeMap: {args: 'EventsArgs'},
|
|
203
|
+
targetTypeName: "Event"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
),
|
|
207
|
+
ENUM_INPUT_METADATA,
|
|
208
|
+
undefined
|
|
209
|
+
)
|
|
210
|
+
;
|
|
211
|
+
|
|
212
|
+
export interface QueryArgs {
|
|
213
|
+
|
|
214
|
+
readonly executedMigrations: {
|
|
215
|
+
readonly version?: string
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
readonly events: {
|
|
219
|
+
readonly args?: EventsArgs
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';
|
|
2
|
+
import { ENUM_INPUT_METADATA } from '../EnumInputMetadata';
|
|
3
|
+
import type { ObjectFetcher } from 'graphql-ts-client-api';
|
|
4
|
+
import { createFetcher, createFetchableType } from 'graphql-ts-client-api';
|
|
5
|
+
import type { WithTypeName, ImplementationType } from '../CommonTypes';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Any instance of this interface is immutable,
|
|
9
|
+
* all the properties and functions can only be used to create new instances,
|
|
10
|
+
* they cannot modify the current instance.
|
|
11
|
+
*
|
|
12
|
+
* So any instance of this interface is reuseable.
|
|
13
|
+
*/
|
|
14
|
+
export interface StageFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Stage', T, TVariables> {
|
|
15
|
+
|
|
16
|
+
on<XName extends ImplementationType<'Stage'>, X extends object, XVariables extends object>(
|
|
17
|
+
child: ObjectFetcher<XName, X, XVariables>,
|
|
18
|
+
fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
|
|
19
|
+
): StageFetcher<
|
|
20
|
+
XName extends 'Stage' ?
|
|
21
|
+
T & X :
|
|
22
|
+
WithTypeName<T, ImplementationType<'Stage'>> & (
|
|
23
|
+
WithTypeName<X, ImplementationType<XName>> |
|
|
24
|
+
{__typename: Exclude<ImplementationType<'Stage'>, ImplementationType<XName>>}
|
|
25
|
+
),
|
|
26
|
+
TVariables & XVariables
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
directive(name: string, args?: DirectiveArgs): StageFetcher<T, TVariables>;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
readonly __typename: StageFetcher<T & {__typename: ImplementationType<'Stage'>}, TVariables>;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
readonly id: StageFetcher<T & {readonly "id": string}, TVariables>;
|
|
37
|
+
|
|
38
|
+
"id+"<
|
|
39
|
+
XAlias extends string = "id",
|
|
40
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
41
|
+
XDirectiveVariables extends object = {}
|
|
42
|
+
>(
|
|
43
|
+
optionsConfigurer: (
|
|
44
|
+
options: FieldOptions<"id", {}, {}>
|
|
45
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
46
|
+
): StageFetcher<
|
|
47
|
+
T & (
|
|
48
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
49
|
+
{readonly [key in XAlias]?: string} :
|
|
50
|
+
{readonly [key in XAlias]: string}
|
|
51
|
+
),
|
|
52
|
+
TVariables & XDirectiveVariables
|
|
53
|
+
>;
|
|
54
|
+
|
|
55
|
+
readonly "~id": StageFetcher<Omit<T, 'id'>, TVariables>;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
readonly name: StageFetcher<T & {readonly "name": string}, TVariables>;
|
|
59
|
+
|
|
60
|
+
"name+"<
|
|
61
|
+
XAlias extends string = "name",
|
|
62
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
63
|
+
XDirectiveVariables extends object = {}
|
|
64
|
+
>(
|
|
65
|
+
optionsConfigurer: (
|
|
66
|
+
options: FieldOptions<"name", {}, {}>
|
|
67
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
68
|
+
): StageFetcher<
|
|
69
|
+
T & (
|
|
70
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
71
|
+
{readonly [key in XAlias]?: string} :
|
|
72
|
+
{readonly [key in XAlias]: string}
|
|
73
|
+
),
|
|
74
|
+
TVariables & XDirectiveVariables
|
|
75
|
+
>;
|
|
76
|
+
|
|
77
|
+
readonly "~name": StageFetcher<Omit<T, 'name'>, TVariables>;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
readonly slug: StageFetcher<T & {readonly "slug": string}, TVariables>;
|
|
81
|
+
|
|
82
|
+
"slug+"<
|
|
83
|
+
XAlias extends string = "slug",
|
|
84
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
85
|
+
XDirectiveVariables extends object = {}
|
|
86
|
+
>(
|
|
87
|
+
optionsConfigurer: (
|
|
88
|
+
options: FieldOptions<"slug", {}, {}>
|
|
89
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
90
|
+
): StageFetcher<
|
|
91
|
+
T & (
|
|
92
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
93
|
+
{readonly [key in XAlias]?: string} :
|
|
94
|
+
{readonly [key in XAlias]: string}
|
|
95
|
+
),
|
|
96
|
+
TVariables & XDirectiveVariables
|
|
97
|
+
>;
|
|
98
|
+
|
|
99
|
+
readonly "~slug": StageFetcher<Omit<T, 'slug'>, TVariables>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const stage$: StageFetcher<{}, {}> =
|
|
103
|
+
createFetcher(
|
|
104
|
+
createFetchableType(
|
|
105
|
+
"Stage",
|
|
106
|
+
"OBJECT",
|
|
107
|
+
[],
|
|
108
|
+
[
|
|
109
|
+
{
|
|
110
|
+
category: "ID",
|
|
111
|
+
name: "id"
|
|
112
|
+
},
|
|
113
|
+
"name",
|
|
114
|
+
"slug"
|
|
115
|
+
]
|
|
116
|
+
),
|
|
117
|
+
ENUM_INPUT_METADATA,
|
|
118
|
+
undefined
|
|
119
|
+
)
|
|
120
|
+
;
|
|
121
|
+
|
|
122
|
+
export const stage$$ =
|
|
123
|
+
stage$
|
|
124
|
+
.id
|
|
125
|
+
.name
|
|
126
|
+
.slug
|
|
127
|
+
;
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import type { FieldOptions, DirectiveArgs } from 'graphql-ts-client-api';
|
|
2
|
+
import { ENUM_INPUT_METADATA } from '../EnumInputMetadata';
|
|
3
|
+
import type { ObjectFetcher } from 'graphql-ts-client-api';
|
|
4
|
+
import { createFetcher, createFetchableType } from 'graphql-ts-client-api';
|
|
5
|
+
import type { WithTypeName, ImplementationType } from '../CommonTypes';
|
|
6
|
+
import { event$ } from './EventFetcher';
|
|
7
|
+
import type {EventType} from '../enums';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Any instance of this interface is immutable,
|
|
11
|
+
* all the properties and functions can only be used to create new instances,
|
|
12
|
+
* they cannot modify the current instance.
|
|
13
|
+
*
|
|
14
|
+
* So any instance of this interface is reuseable.
|
|
15
|
+
*/
|
|
16
|
+
export interface UpdateEventFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'UpdateEvent', T, TVariables> {
|
|
17
|
+
|
|
18
|
+
on<XName extends ImplementationType<'UpdateEvent'>, X extends object, XVariables extends object>(
|
|
19
|
+
child: ObjectFetcher<XName, X, XVariables>,
|
|
20
|
+
fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
|
|
21
|
+
): UpdateEventFetcher<
|
|
22
|
+
XName extends 'UpdateEvent' ?
|
|
23
|
+
T & X :
|
|
24
|
+
WithTypeName<T, ImplementationType<'UpdateEvent'>> & (
|
|
25
|
+
WithTypeName<X, ImplementationType<XName>> |
|
|
26
|
+
{__typename: Exclude<ImplementationType<'UpdateEvent'>, ImplementationType<XName>>}
|
|
27
|
+
),
|
|
28
|
+
TVariables & XVariables
|
|
29
|
+
>;
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
directive(name: string, args?: DirectiveArgs): UpdateEventFetcher<T, TVariables>;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
readonly __typename: UpdateEventFetcher<T & {__typename: ImplementationType<'UpdateEvent'>}, TVariables>;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
readonly id: UpdateEventFetcher<T & {readonly "id": string}, TVariables>;
|
|
39
|
+
|
|
40
|
+
"id+"<
|
|
41
|
+
XAlias extends string = "id",
|
|
42
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
43
|
+
XDirectiveVariables extends object = {}
|
|
44
|
+
>(
|
|
45
|
+
optionsConfigurer: (
|
|
46
|
+
options: FieldOptions<"id", {}, {}>
|
|
47
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
48
|
+
): UpdateEventFetcher<
|
|
49
|
+
T & (
|
|
50
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
51
|
+
{readonly [key in XAlias]?: string} :
|
|
52
|
+
{readonly [key in XAlias]: string}
|
|
53
|
+
),
|
|
54
|
+
TVariables & XDirectiveVariables
|
|
55
|
+
>;
|
|
56
|
+
|
|
57
|
+
readonly "~id": UpdateEventFetcher<Omit<T, 'id'>, TVariables>;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
readonly transactionId: UpdateEventFetcher<T & {readonly "transactionId": string}, TVariables>;
|
|
61
|
+
|
|
62
|
+
"transactionId+"<
|
|
63
|
+
XAlias extends string = "transactionId",
|
|
64
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
65
|
+
XDirectiveVariables extends object = {}
|
|
66
|
+
>(
|
|
67
|
+
optionsConfigurer: (
|
|
68
|
+
options: FieldOptions<"transactionId", {}, {}>
|
|
69
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
70
|
+
): UpdateEventFetcher<
|
|
71
|
+
T & (
|
|
72
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
73
|
+
{readonly [key in XAlias]?: string} :
|
|
74
|
+
{readonly [key in XAlias]: string}
|
|
75
|
+
),
|
|
76
|
+
TVariables & XDirectiveVariables
|
|
77
|
+
>;
|
|
78
|
+
|
|
79
|
+
readonly "~transactionId": UpdateEventFetcher<Omit<T, 'transactionId'>, TVariables>;
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
readonly identityId: UpdateEventFetcher<T & {readonly "identityId": string}, TVariables>;
|
|
83
|
+
|
|
84
|
+
"identityId+"<
|
|
85
|
+
XAlias extends string = "identityId",
|
|
86
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
87
|
+
XDirectiveVariables extends object = {}
|
|
88
|
+
>(
|
|
89
|
+
optionsConfigurer: (
|
|
90
|
+
options: FieldOptions<"identityId", {}, {}>
|
|
91
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
92
|
+
): UpdateEventFetcher<
|
|
93
|
+
T & (
|
|
94
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
95
|
+
{readonly [key in XAlias]?: string} :
|
|
96
|
+
{readonly [key in XAlias]: string}
|
|
97
|
+
),
|
|
98
|
+
TVariables & XDirectiveVariables
|
|
99
|
+
>;
|
|
100
|
+
|
|
101
|
+
readonly "~identityId": UpdateEventFetcher<Omit<T, 'identityId'>, TVariables>;
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
readonly identityDescription: UpdateEventFetcher<T & {readonly "identityDescription": string}, TVariables>;
|
|
105
|
+
|
|
106
|
+
"identityDescription+"<
|
|
107
|
+
XAlias extends string = "identityDescription",
|
|
108
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
109
|
+
XDirectiveVariables extends object = {}
|
|
110
|
+
>(
|
|
111
|
+
optionsConfigurer: (
|
|
112
|
+
options: FieldOptions<"identityDescription", {}, {}>
|
|
113
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
114
|
+
): UpdateEventFetcher<
|
|
115
|
+
T & (
|
|
116
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
117
|
+
{readonly [key in XAlias]?: string} :
|
|
118
|
+
{readonly [key in XAlias]: string}
|
|
119
|
+
),
|
|
120
|
+
TVariables & XDirectiveVariables
|
|
121
|
+
>;
|
|
122
|
+
|
|
123
|
+
readonly "~identityDescription": UpdateEventFetcher<Omit<T, 'identityDescription'>, TVariables>;
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
readonly description: UpdateEventFetcher<T & {readonly "description": string}, TVariables>;
|
|
127
|
+
|
|
128
|
+
"description+"<
|
|
129
|
+
XAlias extends string = "description",
|
|
130
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
131
|
+
XDirectiveVariables extends object = {}
|
|
132
|
+
>(
|
|
133
|
+
optionsConfigurer: (
|
|
134
|
+
options: FieldOptions<"description", {}, {}>
|
|
135
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
136
|
+
): UpdateEventFetcher<
|
|
137
|
+
T & (
|
|
138
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
139
|
+
{readonly [key in XAlias]?: string} :
|
|
140
|
+
{readonly [key in XAlias]: string}
|
|
141
|
+
),
|
|
142
|
+
TVariables & XDirectiveVariables
|
|
143
|
+
>;
|
|
144
|
+
|
|
145
|
+
readonly "~description": UpdateEventFetcher<Omit<T, 'description'>, TVariables>;
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
readonly createdAt: UpdateEventFetcher<T & {readonly "createdAt": string}, TVariables>;
|
|
149
|
+
|
|
150
|
+
"createdAt+"<
|
|
151
|
+
XAlias extends string = "createdAt",
|
|
152
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
153
|
+
XDirectiveVariables extends object = {}
|
|
154
|
+
>(
|
|
155
|
+
optionsConfigurer: (
|
|
156
|
+
options: FieldOptions<"createdAt", {}, {}>
|
|
157
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
158
|
+
): UpdateEventFetcher<
|
|
159
|
+
T & (
|
|
160
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
161
|
+
{readonly [key in XAlias]?: string} :
|
|
162
|
+
{readonly [key in XAlias]: string}
|
|
163
|
+
),
|
|
164
|
+
TVariables & XDirectiveVariables
|
|
165
|
+
>;
|
|
166
|
+
|
|
167
|
+
readonly "~createdAt": UpdateEventFetcher<Omit<T, 'createdAt'>, TVariables>;
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
readonly appliedAt: UpdateEventFetcher<T & {readonly "appliedAt": string}, TVariables>;
|
|
171
|
+
|
|
172
|
+
"appliedAt+"<
|
|
173
|
+
XAlias extends string = "appliedAt",
|
|
174
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
175
|
+
XDirectiveVariables extends object = {}
|
|
176
|
+
>(
|
|
177
|
+
optionsConfigurer: (
|
|
178
|
+
options: FieldOptions<"appliedAt", {}, {}>
|
|
179
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
180
|
+
): UpdateEventFetcher<
|
|
181
|
+
T & (
|
|
182
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
183
|
+
{readonly [key in XAlias]?: string} :
|
|
184
|
+
{readonly [key in XAlias]: string}
|
|
185
|
+
),
|
|
186
|
+
TVariables & XDirectiveVariables
|
|
187
|
+
>;
|
|
188
|
+
|
|
189
|
+
readonly "~appliedAt": UpdateEventFetcher<Omit<T, 'appliedAt'>, TVariables>;
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
readonly type: UpdateEventFetcher<T & {readonly "type": EventType}, TVariables>;
|
|
193
|
+
|
|
194
|
+
"type+"<
|
|
195
|
+
XAlias extends string = "type",
|
|
196
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
197
|
+
XDirectiveVariables extends object = {}
|
|
198
|
+
>(
|
|
199
|
+
optionsConfigurer: (
|
|
200
|
+
options: FieldOptions<"type", {}, {}>
|
|
201
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
202
|
+
): UpdateEventFetcher<
|
|
203
|
+
T & (
|
|
204
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
205
|
+
{readonly [key in XAlias]?: EventType} :
|
|
206
|
+
{readonly [key in XAlias]: EventType}
|
|
207
|
+
),
|
|
208
|
+
TVariables & XDirectiveVariables
|
|
209
|
+
>;
|
|
210
|
+
|
|
211
|
+
readonly "~type": UpdateEventFetcher<Omit<T, 'type'>, TVariables>;
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
readonly tableName: UpdateEventFetcher<T & {readonly "tableName": string}, TVariables>;
|
|
215
|
+
|
|
216
|
+
"tableName+"<
|
|
217
|
+
XAlias extends string = "tableName",
|
|
218
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
219
|
+
XDirectiveVariables extends object = {}
|
|
220
|
+
>(
|
|
221
|
+
optionsConfigurer: (
|
|
222
|
+
options: FieldOptions<"tableName", {}, {}>
|
|
223
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
224
|
+
): UpdateEventFetcher<
|
|
225
|
+
T & (
|
|
226
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
227
|
+
{readonly [key in XAlias]?: string} :
|
|
228
|
+
{readonly [key in XAlias]: string}
|
|
229
|
+
),
|
|
230
|
+
TVariables & XDirectiveVariables
|
|
231
|
+
>;
|
|
232
|
+
|
|
233
|
+
readonly "~tableName": UpdateEventFetcher<Omit<T, 'tableName'>, TVariables>;
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
readonly primaryKey: UpdateEventFetcher<T & {readonly "primaryKey": ReadonlyArray<number | string>}, TVariables>;
|
|
237
|
+
|
|
238
|
+
"primaryKey+"<
|
|
239
|
+
XAlias extends string = "primaryKey",
|
|
240
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
241
|
+
XDirectiveVariables extends object = {}
|
|
242
|
+
>(
|
|
243
|
+
optionsConfigurer: (
|
|
244
|
+
options: FieldOptions<"primaryKey", {}, {}>
|
|
245
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
246
|
+
): UpdateEventFetcher<
|
|
247
|
+
T & (
|
|
248
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
249
|
+
{readonly [key in XAlias]?: ReadonlyArray<number | string>} :
|
|
250
|
+
{readonly [key in XAlias]: ReadonlyArray<number | string>}
|
|
251
|
+
),
|
|
252
|
+
TVariables & XDirectiveVariables
|
|
253
|
+
>;
|
|
254
|
+
|
|
255
|
+
readonly "~primaryKey": UpdateEventFetcher<Omit<T, 'primaryKey'>, TVariables>;
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
readonly oldValues: UpdateEventFetcher<T & {readonly "oldValues": unknown}, TVariables>;
|
|
259
|
+
|
|
260
|
+
"oldValues+"<
|
|
261
|
+
XAlias extends string = "oldValues",
|
|
262
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
263
|
+
XDirectiveVariables extends object = {}
|
|
264
|
+
>(
|
|
265
|
+
optionsConfigurer: (
|
|
266
|
+
options: FieldOptions<"oldValues", {}, {}>
|
|
267
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
268
|
+
): UpdateEventFetcher<
|
|
269
|
+
T & (
|
|
270
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
271
|
+
{readonly [key in XAlias]?: unknown} :
|
|
272
|
+
{readonly [key in XAlias]: unknown}
|
|
273
|
+
),
|
|
274
|
+
TVariables & XDirectiveVariables
|
|
275
|
+
>;
|
|
276
|
+
|
|
277
|
+
readonly "~oldValues": UpdateEventFetcher<Omit<T, 'oldValues'>, TVariables>;
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
readonly diffValues: UpdateEventFetcher<T & {readonly "diffValues": unknown}, TVariables>;
|
|
281
|
+
|
|
282
|
+
"diffValues+"<
|
|
283
|
+
XAlias extends string = "diffValues",
|
|
284
|
+
XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
|
|
285
|
+
XDirectiveVariables extends object = {}
|
|
286
|
+
>(
|
|
287
|
+
optionsConfigurer: (
|
|
288
|
+
options: FieldOptions<"diffValues", {}, {}>
|
|
289
|
+
) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
|
|
290
|
+
): UpdateEventFetcher<
|
|
291
|
+
T & (
|
|
292
|
+
XDirectives extends { readonly include: any } | { readonly skip: any } ?
|
|
293
|
+
{readonly [key in XAlias]?: unknown} :
|
|
294
|
+
{readonly [key in XAlias]: unknown}
|
|
295
|
+
),
|
|
296
|
+
TVariables & XDirectiveVariables
|
|
297
|
+
>;
|
|
298
|
+
|
|
299
|
+
readonly "~diffValues": UpdateEventFetcher<Omit<T, 'diffValues'>, TVariables>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export const updateEvent$: UpdateEventFetcher<{}, {}> =
|
|
303
|
+
createFetcher(
|
|
304
|
+
createFetchableType(
|
|
305
|
+
"UpdateEvent",
|
|
306
|
+
"OBJECT",
|
|
307
|
+
[event$.fetchableType],
|
|
308
|
+
[
|
|
309
|
+
"oldValues",
|
|
310
|
+
"diffValues"
|
|
311
|
+
]
|
|
312
|
+
),
|
|
313
|
+
ENUM_INPUT_METADATA,
|
|
314
|
+
undefined
|
|
315
|
+
)
|
|
316
|
+
;
|
|
317
|
+
|
|
318
|
+
export const updateEvent$$ =
|
|
319
|
+
updateEvent$
|
|
320
|
+
.id
|
|
321
|
+
.transactionId
|
|
322
|
+
.identityId
|
|
323
|
+
.identityDescription
|
|
324
|
+
.description
|
|
325
|
+
.createdAt
|
|
326
|
+
.appliedAt
|
|
327
|
+
.type
|
|
328
|
+
.tableName
|
|
329
|
+
.primaryKey
|
|
330
|
+
.oldValues
|
|
331
|
+
.diffValues
|
|
332
|
+
;
|