@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,196 @@
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 ExecutedMigrationFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'ExecutedMigration', T, TVariables> {
15
+
16
+ on<XName extends ImplementationType<'ExecutedMigration'>, X extends object, XVariables extends object>(
17
+ child: ObjectFetcher<XName, X, XVariables>,
18
+ fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
19
+ ): ExecutedMigrationFetcher<
20
+ XName extends 'ExecutedMigration' ?
21
+ T & X :
22
+ WithTypeName<T, ImplementationType<'ExecutedMigration'>> & (
23
+ WithTypeName<X, ImplementationType<XName>> |
24
+ {__typename: Exclude<ImplementationType<'ExecutedMigration'>, ImplementationType<XName>>}
25
+ ),
26
+ TVariables & XVariables
27
+ >;
28
+
29
+
30
+ directive(name: string, args?: DirectiveArgs): ExecutedMigrationFetcher<T, TVariables>;
31
+
32
+
33
+ readonly __typename: ExecutedMigrationFetcher<T & {__typename: ImplementationType<'ExecutedMigration'>}, TVariables>;
34
+
35
+
36
+ readonly version: ExecutedMigrationFetcher<T & {readonly "version": string}, TVariables>;
37
+
38
+ "version+"<
39
+ XAlias extends string = "version",
40
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
41
+ XDirectiveVariables extends object = {}
42
+ >(
43
+ optionsConfigurer: (
44
+ options: FieldOptions<"version", {}, {}>
45
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
46
+ ): ExecutedMigrationFetcher<
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 "~version": ExecutedMigrationFetcher<Omit<T, 'version'>, TVariables>;
56
+
57
+
58
+ readonly name: ExecutedMigrationFetcher<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
+ ): ExecutedMigrationFetcher<
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": ExecutedMigrationFetcher<Omit<T, 'name'>, TVariables>;
78
+
79
+
80
+ readonly executedAt: ExecutedMigrationFetcher<T & {readonly "executedAt": string}, TVariables>;
81
+
82
+ "executedAt+"<
83
+ XAlias extends string = "executedAt",
84
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
85
+ XDirectiveVariables extends object = {}
86
+ >(
87
+ optionsConfigurer: (
88
+ options: FieldOptions<"executedAt", {}, {}>
89
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
90
+ ): ExecutedMigrationFetcher<
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 "~executedAt": ExecutedMigrationFetcher<Omit<T, 'executedAt'>, TVariables>;
100
+
101
+
102
+ readonly checksum: ExecutedMigrationFetcher<T & {readonly "checksum": string}, TVariables>;
103
+
104
+ "checksum+"<
105
+ XAlias extends string = "checksum",
106
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
107
+ XDirectiveVariables extends object = {}
108
+ >(
109
+ optionsConfigurer: (
110
+ options: FieldOptions<"checksum", {}, {}>
111
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
112
+ ): ExecutedMigrationFetcher<
113
+ T & (
114
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
115
+ {readonly [key in XAlias]?: string} :
116
+ {readonly [key in XAlias]: string}
117
+ ),
118
+ TVariables & XDirectiveVariables
119
+ >;
120
+
121
+ readonly "~checksum": ExecutedMigrationFetcher<Omit<T, 'checksum'>, TVariables>;
122
+
123
+
124
+ readonly formatVersion: ExecutedMigrationFetcher<T & {readonly "formatVersion": number}, TVariables>;
125
+
126
+ "formatVersion+"<
127
+ XAlias extends string = "formatVersion",
128
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
129
+ XDirectiveVariables extends object = {}
130
+ >(
131
+ optionsConfigurer: (
132
+ options: FieldOptions<"formatVersion", {}, {}>
133
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
134
+ ): ExecutedMigrationFetcher<
135
+ T & (
136
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
137
+ {readonly [key in XAlias]?: number} :
138
+ {readonly [key in XAlias]: number}
139
+ ),
140
+ TVariables & XDirectiveVariables
141
+ >;
142
+
143
+ readonly "~formatVersion": ExecutedMigrationFetcher<Omit<T, 'formatVersion'>, TVariables>;
144
+
145
+
146
+ readonly modifications: ExecutedMigrationFetcher<T & {readonly "modifications": ReadonlyArray<unknown>}, TVariables>;
147
+
148
+ "modifications+"<
149
+ XAlias extends string = "modifications",
150
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
151
+ XDirectiveVariables extends object = {}
152
+ >(
153
+ optionsConfigurer: (
154
+ options: FieldOptions<"modifications", {}, {}>
155
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
156
+ ): ExecutedMigrationFetcher<
157
+ T & (
158
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
159
+ {readonly [key in XAlias]?: ReadonlyArray<unknown>} :
160
+ {readonly [key in XAlias]: ReadonlyArray<unknown>}
161
+ ),
162
+ TVariables & XDirectiveVariables
163
+ >;
164
+
165
+ readonly "~modifications": ExecutedMigrationFetcher<Omit<T, 'modifications'>, TVariables>;
166
+ }
167
+
168
+ export const executedMigration$: ExecutedMigrationFetcher<{}, {}> =
169
+ createFetcher(
170
+ createFetchableType(
171
+ "ExecutedMigration",
172
+ "EMBEDDED",
173
+ [],
174
+ [
175
+ "version",
176
+ "name",
177
+ "executedAt",
178
+ "checksum",
179
+ "formatVersion",
180
+ "modifications"
181
+ ]
182
+ ),
183
+ ENUM_INPUT_METADATA,
184
+ undefined
185
+ )
186
+ ;
187
+
188
+ export const executedMigration$$ =
189
+ executedMigration$
190
+ .version
191
+ .name
192
+ .executedAt
193
+ .checksum
194
+ .formatVersion
195
+ .modifications
196
+ ;
@@ -0,0 +1,125 @@
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 {MigrateErrorCode} 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 MigrateErrorFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'MigrateError', T, TVariables> {
16
+
17
+ on<XName extends ImplementationType<'MigrateError'>, X extends object, XVariables extends object>(
18
+ child: ObjectFetcher<XName, X, XVariables>,
19
+ fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
20
+ ): MigrateErrorFetcher<
21
+ XName extends 'MigrateError' ?
22
+ T & X :
23
+ WithTypeName<T, ImplementationType<'MigrateError'>> & (
24
+ WithTypeName<X, ImplementationType<XName>> |
25
+ {__typename: Exclude<ImplementationType<'MigrateError'>, ImplementationType<XName>>}
26
+ ),
27
+ TVariables & XVariables
28
+ >;
29
+
30
+
31
+ directive(name: string, args?: DirectiveArgs): MigrateErrorFetcher<T, TVariables>;
32
+
33
+
34
+ readonly __typename: MigrateErrorFetcher<T & {__typename: ImplementationType<'MigrateError'>}, TVariables>;
35
+
36
+
37
+ readonly code: MigrateErrorFetcher<T & {readonly "code": MigrateErrorCode}, TVariables>;
38
+
39
+ "code+"<
40
+ XAlias extends string = "code",
41
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
42
+ XDirectiveVariables extends object = {}
43
+ >(
44
+ optionsConfigurer: (
45
+ options: FieldOptions<"code", {}, {}>
46
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
47
+ ): MigrateErrorFetcher<
48
+ T & (
49
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
50
+ {readonly [key in XAlias]?: MigrateErrorCode} :
51
+ {readonly [key in XAlias]: MigrateErrorCode}
52
+ ),
53
+ TVariables & XDirectiveVariables
54
+ >;
55
+
56
+ readonly "~code": MigrateErrorFetcher<Omit<T, 'code'>, TVariables>;
57
+
58
+
59
+ readonly migration: MigrateErrorFetcher<T & {readonly "migration": string}, TVariables>;
60
+
61
+ "migration+"<
62
+ XAlias extends string = "migration",
63
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
64
+ XDirectiveVariables extends object = {}
65
+ >(
66
+ optionsConfigurer: (
67
+ options: FieldOptions<"migration", {}, {}>
68
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
69
+ ): MigrateErrorFetcher<
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 "~migration": MigrateErrorFetcher<Omit<T, 'migration'>, TVariables>;
79
+
80
+
81
+ readonly developerMessage: MigrateErrorFetcher<T & {readonly "developerMessage": string}, TVariables>;
82
+
83
+ "developerMessage+"<
84
+ XAlias extends string = "developerMessage",
85
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
86
+ XDirectiveVariables extends object = {}
87
+ >(
88
+ optionsConfigurer: (
89
+ options: FieldOptions<"developerMessage", {}, {}>
90
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
91
+ ): MigrateErrorFetcher<
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 "~developerMessage": MigrateErrorFetcher<Omit<T, 'developerMessage'>, TVariables>;
101
+ }
102
+
103
+ export const migrateError$: MigrateErrorFetcher<{}, {}> =
104
+ createFetcher(
105
+ createFetchableType(
106
+ "MigrateError",
107
+ "EMBEDDED",
108
+ [],
109
+ [
110
+ "code",
111
+ "migration",
112
+ "developerMessage"
113
+ ]
114
+ ),
115
+ ENUM_INPUT_METADATA,
116
+ undefined
117
+ )
118
+ ;
119
+
120
+ export const migrateError$$ =
121
+ migrateError$
122
+ .code
123
+ .migration
124
+ .developerMessage
125
+ ;
@@ -0,0 +1,182 @@
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 MigrateResponseFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'MigrateResponse', T, TVariables> {
15
+
16
+ on<XName extends ImplementationType<'MigrateResponse'>, X extends object, XVariables extends object>(
17
+ child: ObjectFetcher<XName, X, XVariables>,
18
+ fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
19
+ ): MigrateResponseFetcher<
20
+ XName extends 'MigrateResponse' ?
21
+ T & X :
22
+ WithTypeName<T, ImplementationType<'MigrateResponse'>> & (
23
+ WithTypeName<X, ImplementationType<XName>> |
24
+ {__typename: Exclude<ImplementationType<'MigrateResponse'>, ImplementationType<XName>>}
25
+ ),
26
+ TVariables & XVariables
27
+ >;
28
+
29
+
30
+ directive(name: string, args?: DirectiveArgs): MigrateResponseFetcher<T, TVariables>;
31
+
32
+
33
+ readonly __typename: MigrateResponseFetcher<T & {__typename: ImplementationType<'MigrateResponse'>}, TVariables>;
34
+
35
+
36
+ readonly ok: MigrateResponseFetcher<T & {readonly "ok": boolean}, TVariables>;
37
+
38
+ "ok+"<
39
+ XAlias extends string = "ok",
40
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
41
+ XDirectiveVariables extends object = {}
42
+ >(
43
+ optionsConfigurer: (
44
+ options: FieldOptions<"ok", {}, {}>
45
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
46
+ ): MigrateResponseFetcher<
47
+ T & (
48
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
49
+ {readonly [key in XAlias]?: boolean} :
50
+ {readonly [key in XAlias]: boolean}
51
+ ),
52
+ TVariables & XDirectiveVariables
53
+ >;
54
+
55
+ readonly "~ok": MigrateResponseFetcher<Omit<T, 'ok'>, TVariables>;
56
+
57
+
58
+ /**
59
+ * @deprecated No longer supported
60
+ */
61
+ errors<
62
+ X extends object,
63
+ XVariables extends object
64
+ >(
65
+ child: ObjectFetcher<'MigrateError', X, XVariables>
66
+ ): MigrateResponseFetcher<
67
+ T & {readonly "errors": ReadonlyArray<X>},
68
+ TVariables & XVariables
69
+ >;
70
+
71
+ /**
72
+ * @deprecated No longer supported
73
+ */
74
+ errors<
75
+ X extends object,
76
+ XVariables extends object,
77
+ XAlias extends string = "errors",
78
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
79
+ XDirectiveVariables extends object = {}
80
+ >(
81
+ child: ObjectFetcher<'MigrateError', X, XVariables>,
82
+ optionsConfigurer: (
83
+ options: FieldOptions<"errors", {}, {}>
84
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
85
+ ): MigrateResponseFetcher<
86
+ T & (
87
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
88
+ {readonly [key in XAlias]?: ReadonlyArray<X>} :
89
+ {readonly [key in XAlias]: ReadonlyArray<X>}
90
+ ),
91
+ TVariables & XVariables & XDirectiveVariables
92
+ >;
93
+
94
+
95
+ error<
96
+ X extends object,
97
+ XVariables extends object
98
+ >(
99
+ child: ObjectFetcher<'MigrateError', X, XVariables>
100
+ ): MigrateResponseFetcher<
101
+ T & {readonly "error"?: X},
102
+ TVariables & XVariables
103
+ >;
104
+
105
+ error<
106
+ X extends object,
107
+ XVariables extends object,
108
+ XAlias extends string = "error",
109
+ XDirectiveVariables extends object = {}
110
+ >(
111
+ child: ObjectFetcher<'MigrateError', X, XVariables>,
112
+ optionsConfigurer: (
113
+ options: FieldOptions<"error", {}, {}>
114
+ ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
115
+ ): MigrateResponseFetcher<
116
+ T & {readonly [key in XAlias]?: X},
117
+ TVariables & XVariables & XDirectiveVariables
118
+ >;
119
+
120
+
121
+ result<
122
+ X extends object,
123
+ XVariables extends object
124
+ >(
125
+ child: ObjectFetcher<'MigrateResult', X, XVariables>
126
+ ): MigrateResponseFetcher<
127
+ T & {readonly "result"?: X},
128
+ TVariables & XVariables
129
+ >;
130
+
131
+ result<
132
+ X extends object,
133
+ XVariables extends object,
134
+ XAlias extends string = "result",
135
+ XDirectiveVariables extends object = {}
136
+ >(
137
+ child: ObjectFetcher<'MigrateResult', X, XVariables>,
138
+ optionsConfigurer: (
139
+ options: FieldOptions<"result", {}, {}>
140
+ ) => FieldOptions<XAlias, {readonly [key: string]: DirectiveArgs}, XDirectiveVariables>
141
+ ): MigrateResponseFetcher<
142
+ T & {readonly [key in XAlias]?: X},
143
+ TVariables & XVariables & XDirectiveVariables
144
+ >;
145
+ }
146
+
147
+ export const migrateResponse$: MigrateResponseFetcher<{}, {}> =
148
+ createFetcher(
149
+ createFetchableType(
150
+ "MigrateResponse",
151
+ "EMBEDDED",
152
+ [],
153
+ [
154
+ "ok",
155
+ {
156
+ category: "LIST",
157
+ name: "errors",
158
+ targetTypeName: "MigrateError"
159
+ },
160
+ {
161
+ category: "SCALAR",
162
+ name: "error",
163
+ targetTypeName: "MigrateError",
164
+ undefinable: true
165
+ },
166
+ {
167
+ category: "SCALAR",
168
+ name: "result",
169
+ targetTypeName: "MigrateResult",
170
+ undefinable: true
171
+ }
172
+ ]
173
+ ),
174
+ ENUM_INPUT_METADATA,
175
+ undefined
176
+ )
177
+ ;
178
+
179
+ export const migrateResponse$$ =
180
+ migrateResponse$
181
+ .ok
182
+ ;
@@ -0,0 +1,76 @@
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 MigrateResultFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'MigrateResult', T, TVariables> {
15
+
16
+ on<XName extends ImplementationType<'MigrateResult'>, X extends object, XVariables extends object>(
17
+ child: ObjectFetcher<XName, X, XVariables>,
18
+ fragmentName?: string // undefined: inline fragment; otherwise, otherwise, real fragment
19
+ ): MigrateResultFetcher<
20
+ XName extends 'MigrateResult' ?
21
+ T & X :
22
+ WithTypeName<T, ImplementationType<'MigrateResult'>> & (
23
+ WithTypeName<X, ImplementationType<XName>> |
24
+ {__typename: Exclude<ImplementationType<'MigrateResult'>, ImplementationType<XName>>}
25
+ ),
26
+ TVariables & XVariables
27
+ >;
28
+
29
+
30
+ directive(name: string, args?: DirectiveArgs): MigrateResultFetcher<T, TVariables>;
31
+
32
+
33
+ readonly __typename: MigrateResultFetcher<T & {__typename: ImplementationType<'MigrateResult'>}, TVariables>;
34
+
35
+
36
+ readonly message: MigrateResultFetcher<T & {readonly "message": string}, TVariables>;
37
+
38
+ "message+"<
39
+ XAlias extends string = "message",
40
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
41
+ XDirectiveVariables extends object = {}
42
+ >(
43
+ optionsConfigurer: (
44
+ options: FieldOptions<"message", {}, {}>
45
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
46
+ ): MigrateResultFetcher<
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 "~message": MigrateResultFetcher<Omit<T, 'message'>, TVariables>;
56
+ }
57
+
58
+ export const migrateResult$: MigrateResultFetcher<{}, {}> =
59
+ createFetcher(
60
+ createFetchableType(
61
+ "MigrateResult",
62
+ "EMBEDDED",
63
+ [],
64
+ [
65
+ "message"
66
+ ]
67
+ ),
68
+ ENUM_INPUT_METADATA,
69
+ undefined
70
+ )
71
+ ;
72
+
73
+ export const migrateResult$$ =
74
+ migrateResult$
75
+ .message
76
+ ;
@@ -0,0 +1,110 @@
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 {Migration} 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 MutationFetcher<T extends object, TVariables extends object> extends ObjectFetcher<'Mutation', T, TVariables> {
15
+
16
+
17
+ directive(name: string, args?: DirectiveArgs): MutationFetcher<T, TVariables>;
18
+
19
+
20
+ migrate<
21
+ X extends object,
22
+ XVariables extends object
23
+ >(
24
+ child: ObjectFetcher<'MigrateResponse', X, XVariables>
25
+ ): MutationFetcher<
26
+ T & {readonly "migrate": X},
27
+ TVariables & XVariables & MutationArgs["migrate"]
28
+ >;
29
+
30
+ migrate<
31
+ XArgs extends AcceptableVariables<MutationArgs['migrate']>,
32
+ X extends object,
33
+ XVariables extends object
34
+ >(
35
+ args: XArgs,
36
+ child: ObjectFetcher<'MigrateResponse', X, XVariables>
37
+ ): MutationFetcher<
38
+ T & {readonly "migrate": X},
39
+ TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']>
40
+ >;
41
+
42
+ migrate<
43
+ X extends object,
44
+ XVariables extends object,
45
+ XAlias extends string = "migrate",
46
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
47
+ XDirectiveVariables extends object = {}
48
+ >(
49
+ child: ObjectFetcher<'MigrateResponse', X, XVariables>,
50
+ optionsConfigurer: (
51
+ options: FieldOptions<"migrate", {}, {}>
52
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
53
+ ): MutationFetcher<
54
+ T & (
55
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
56
+ {readonly [key in XAlias]?: X} :
57
+ {readonly [key in XAlias]: X}
58
+ ),
59
+ TVariables & XVariables & MutationArgs["migrate"] & XDirectiveVariables
60
+ >;
61
+
62
+ migrate<
63
+ XArgs extends AcceptableVariables<MutationArgs['migrate']>,
64
+ X extends object,
65
+ XVariables extends object,
66
+ XAlias extends string = "migrate",
67
+ XDirectives extends { readonly [key: string]: DirectiveArgs } = {},
68
+ XDirectiveVariables extends object = {}
69
+ >(
70
+ args: XArgs,
71
+ child: ObjectFetcher<'MigrateResponse', X, XVariables>,
72
+ optionsConfigurer: (
73
+ options: FieldOptions<"migrate", {}, {}>
74
+ ) => FieldOptions<XAlias, XDirectives, XDirectiveVariables>
75
+ ): MutationFetcher<
76
+ T & (
77
+ XDirectives extends { readonly include: any } | { readonly skip: any } ?
78
+ {readonly [key in XAlias]?: X} :
79
+ {readonly [key in XAlias]: X}
80
+ ),
81
+ TVariables & XVariables & UnresolvedVariables<XArgs, MutationArgs['migrate']> & XDirectiveVariables
82
+ >;
83
+ }
84
+
85
+ export const mutation$: MutationFetcher<{}, {}> =
86
+ createFetcher(
87
+ createFetchableType(
88
+ "Mutation",
89
+ "EMBEDDED",
90
+ [],
91
+ [
92
+ {
93
+ category: "SCALAR",
94
+ name: "migrate",
95
+ argGraphQLTypeMap: {migrations: '[Migration!]!'},
96
+ targetTypeName: "MigrateResponse"
97
+ }
98
+ ]
99
+ ),
100
+ ENUM_INPUT_METADATA,
101
+ undefined
102
+ )
103
+ ;
104
+
105
+ export interface MutationArgs {
106
+
107
+ readonly migrate: {
108
+ readonly migrations: ReadonlyArray<Migration>
109
+ }
110
+ }