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