@pgpmjs/migrate-client 0.1.0
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/LICENSE +23 -0
- package/README.md +112 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/migrate/index.d.ts +5 -0
- package/esm/migrate/index.js +5 -0
- package/esm/migrate/orm/client.d.ts +55 -0
- package/esm/migrate/orm/client.js +99 -0
- package/esm/migrate/orm/index.d.ts +48 -0
- package/esm/migrate/orm/index.js +45 -0
- package/esm/migrate/orm/input-types.d.ts +513 -0
- package/esm/migrate/orm/input-types.js +2 -0
- package/esm/migrate/orm/models/index.d.ts +7 -0
- package/esm/migrate/orm/models/index.js +7 -0
- package/esm/migrate/orm/models/migrateFile.d.ts +56 -0
- package/esm/migrate/orm/models/migrateFile.js +94 -0
- package/esm/migrate/orm/models/sqlAction.d.ts +56 -0
- package/esm/migrate/orm/models/sqlAction.js +94 -0
- package/esm/migrate/orm/mutation/index.d.ts +27 -0
- package/esm/migrate/orm/mutation/index.js +30 -0
- package/esm/migrate/orm/query-builder.d.ts +91 -0
- package/esm/migrate/orm/query-builder.js +572 -0
- package/esm/migrate/orm/select-types.d.ts +103 -0
- package/esm/migrate/orm/select-types.js +1 -0
- package/esm/migrate/orm/types.d.ts +6 -0
- package/esm/migrate/orm/types.js +7 -0
- package/index.d.ts +1 -0
- package/index.js +17 -0
- package/migrate/index.d.ts +5 -0
- package/migrate/index.js +21 -0
- package/migrate/orm/client.d.ts +55 -0
- package/migrate/orm/client.js +105 -0
- package/migrate/orm/index.d.ts +48 -0
- package/migrate/orm/index.js +66 -0
- package/migrate/orm/input-types.d.ts +513 -0
- package/migrate/orm/input-types.js +5 -0
- package/migrate/orm/models/index.d.ts +7 -0
- package/migrate/orm/models/index.js +12 -0
- package/migrate/orm/models/migrateFile.d.ts +56 -0
- package/migrate/orm/models/migrateFile.js +98 -0
- package/migrate/orm/models/sqlAction.d.ts +56 -0
- package/migrate/orm/models/sqlAction.js +98 -0
- package/migrate/orm/mutation/index.d.ts +27 -0
- package/migrate/orm/mutation/index.js +33 -0
- package/migrate/orm/query-builder.d.ts +91 -0
- package/migrate/orm/query-builder.js +619 -0
- package/migrate/orm/select-types.d.ts +103 -0
- package/migrate/orm/select-types.js +2 -0
- package/migrate/orm/types.d.ts +6 -0
- package/migrate/orm/types.js +23 -0
- package/package.json +53 -0
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL types for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
export interface StringFilter {
|
|
7
|
+
isNull?: boolean;
|
|
8
|
+
equalTo?: string;
|
|
9
|
+
notEqualTo?: string;
|
|
10
|
+
distinctFrom?: string;
|
|
11
|
+
notDistinctFrom?: string;
|
|
12
|
+
in?: string[];
|
|
13
|
+
notIn?: string[];
|
|
14
|
+
lessThan?: string;
|
|
15
|
+
lessThanOrEqualTo?: string;
|
|
16
|
+
greaterThan?: string;
|
|
17
|
+
greaterThanOrEqualTo?: string;
|
|
18
|
+
includes?: string;
|
|
19
|
+
notIncludes?: string;
|
|
20
|
+
includesInsensitive?: string;
|
|
21
|
+
notIncludesInsensitive?: string;
|
|
22
|
+
startsWith?: string;
|
|
23
|
+
notStartsWith?: string;
|
|
24
|
+
startsWithInsensitive?: string;
|
|
25
|
+
notStartsWithInsensitive?: string;
|
|
26
|
+
endsWith?: string;
|
|
27
|
+
notEndsWith?: string;
|
|
28
|
+
endsWithInsensitive?: string;
|
|
29
|
+
notEndsWithInsensitive?: string;
|
|
30
|
+
like?: string;
|
|
31
|
+
notLike?: string;
|
|
32
|
+
likeInsensitive?: string;
|
|
33
|
+
notLikeInsensitive?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IntFilter {
|
|
36
|
+
isNull?: boolean;
|
|
37
|
+
equalTo?: number;
|
|
38
|
+
notEqualTo?: number;
|
|
39
|
+
distinctFrom?: number;
|
|
40
|
+
notDistinctFrom?: number;
|
|
41
|
+
in?: number[];
|
|
42
|
+
notIn?: number[];
|
|
43
|
+
lessThan?: number;
|
|
44
|
+
lessThanOrEqualTo?: number;
|
|
45
|
+
greaterThan?: number;
|
|
46
|
+
greaterThanOrEqualTo?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface FloatFilter {
|
|
49
|
+
isNull?: boolean;
|
|
50
|
+
equalTo?: number;
|
|
51
|
+
notEqualTo?: number;
|
|
52
|
+
distinctFrom?: number;
|
|
53
|
+
notDistinctFrom?: number;
|
|
54
|
+
in?: number[];
|
|
55
|
+
notIn?: number[];
|
|
56
|
+
lessThan?: number;
|
|
57
|
+
lessThanOrEqualTo?: number;
|
|
58
|
+
greaterThan?: number;
|
|
59
|
+
greaterThanOrEqualTo?: number;
|
|
60
|
+
}
|
|
61
|
+
export interface BooleanFilter {
|
|
62
|
+
isNull?: boolean;
|
|
63
|
+
equalTo?: boolean;
|
|
64
|
+
notEqualTo?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface UUIDFilter {
|
|
67
|
+
isNull?: boolean;
|
|
68
|
+
equalTo?: string;
|
|
69
|
+
notEqualTo?: string;
|
|
70
|
+
distinctFrom?: string;
|
|
71
|
+
notDistinctFrom?: string;
|
|
72
|
+
in?: string[];
|
|
73
|
+
notIn?: string[];
|
|
74
|
+
}
|
|
75
|
+
export interface DatetimeFilter {
|
|
76
|
+
isNull?: boolean;
|
|
77
|
+
equalTo?: string;
|
|
78
|
+
notEqualTo?: string;
|
|
79
|
+
distinctFrom?: string;
|
|
80
|
+
notDistinctFrom?: string;
|
|
81
|
+
in?: string[];
|
|
82
|
+
notIn?: string[];
|
|
83
|
+
lessThan?: string;
|
|
84
|
+
lessThanOrEqualTo?: string;
|
|
85
|
+
greaterThan?: string;
|
|
86
|
+
greaterThanOrEqualTo?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface DateFilter {
|
|
89
|
+
isNull?: boolean;
|
|
90
|
+
equalTo?: string;
|
|
91
|
+
notEqualTo?: string;
|
|
92
|
+
distinctFrom?: string;
|
|
93
|
+
notDistinctFrom?: string;
|
|
94
|
+
in?: string[];
|
|
95
|
+
notIn?: string[];
|
|
96
|
+
lessThan?: string;
|
|
97
|
+
lessThanOrEqualTo?: string;
|
|
98
|
+
greaterThan?: string;
|
|
99
|
+
greaterThanOrEqualTo?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface JSONFilter {
|
|
102
|
+
isNull?: boolean;
|
|
103
|
+
equalTo?: Record<string, unknown>;
|
|
104
|
+
notEqualTo?: Record<string, unknown>;
|
|
105
|
+
distinctFrom?: Record<string, unknown>;
|
|
106
|
+
notDistinctFrom?: Record<string, unknown>;
|
|
107
|
+
contains?: Record<string, unknown>;
|
|
108
|
+
containedBy?: Record<string, unknown>;
|
|
109
|
+
containsKey?: string;
|
|
110
|
+
containsAllKeys?: string[];
|
|
111
|
+
containsAnyKeys?: string[];
|
|
112
|
+
}
|
|
113
|
+
export interface BigIntFilter {
|
|
114
|
+
isNull?: boolean;
|
|
115
|
+
equalTo?: string;
|
|
116
|
+
notEqualTo?: string;
|
|
117
|
+
distinctFrom?: string;
|
|
118
|
+
notDistinctFrom?: string;
|
|
119
|
+
in?: string[];
|
|
120
|
+
notIn?: string[];
|
|
121
|
+
lessThan?: string;
|
|
122
|
+
lessThanOrEqualTo?: string;
|
|
123
|
+
greaterThan?: string;
|
|
124
|
+
greaterThanOrEqualTo?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface BigFloatFilter {
|
|
127
|
+
isNull?: boolean;
|
|
128
|
+
equalTo?: string;
|
|
129
|
+
notEqualTo?: string;
|
|
130
|
+
distinctFrom?: string;
|
|
131
|
+
notDistinctFrom?: string;
|
|
132
|
+
in?: string[];
|
|
133
|
+
notIn?: string[];
|
|
134
|
+
lessThan?: string;
|
|
135
|
+
lessThanOrEqualTo?: string;
|
|
136
|
+
greaterThan?: string;
|
|
137
|
+
greaterThanOrEqualTo?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface BitStringFilter {
|
|
140
|
+
isNull?: boolean;
|
|
141
|
+
equalTo?: string;
|
|
142
|
+
notEqualTo?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface InternetAddressFilter {
|
|
145
|
+
isNull?: boolean;
|
|
146
|
+
equalTo?: string;
|
|
147
|
+
notEqualTo?: string;
|
|
148
|
+
distinctFrom?: string;
|
|
149
|
+
notDistinctFrom?: string;
|
|
150
|
+
in?: string[];
|
|
151
|
+
notIn?: string[];
|
|
152
|
+
lessThan?: string;
|
|
153
|
+
lessThanOrEqualTo?: string;
|
|
154
|
+
greaterThan?: string;
|
|
155
|
+
greaterThanOrEqualTo?: string;
|
|
156
|
+
contains?: string;
|
|
157
|
+
containsOrEqualTo?: string;
|
|
158
|
+
containedBy?: string;
|
|
159
|
+
containedByOrEqualTo?: string;
|
|
160
|
+
containsOrContainedBy?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface FullTextFilter {
|
|
163
|
+
matches?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface VectorFilter {
|
|
166
|
+
isNull?: boolean;
|
|
167
|
+
equalTo?: number[];
|
|
168
|
+
notEqualTo?: number[];
|
|
169
|
+
distinctFrom?: number[];
|
|
170
|
+
notDistinctFrom?: number[];
|
|
171
|
+
}
|
|
172
|
+
export interface StringListFilter {
|
|
173
|
+
isNull?: boolean;
|
|
174
|
+
equalTo?: string[];
|
|
175
|
+
notEqualTo?: string[];
|
|
176
|
+
distinctFrom?: string[];
|
|
177
|
+
notDistinctFrom?: string[];
|
|
178
|
+
lessThan?: string[];
|
|
179
|
+
lessThanOrEqualTo?: string[];
|
|
180
|
+
greaterThan?: string[];
|
|
181
|
+
greaterThanOrEqualTo?: string[];
|
|
182
|
+
contains?: string[];
|
|
183
|
+
containedBy?: string[];
|
|
184
|
+
overlaps?: string[];
|
|
185
|
+
anyEqualTo?: string;
|
|
186
|
+
anyNotEqualTo?: string;
|
|
187
|
+
anyLessThan?: string;
|
|
188
|
+
anyLessThanOrEqualTo?: string;
|
|
189
|
+
anyGreaterThan?: string;
|
|
190
|
+
anyGreaterThanOrEqualTo?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface IntListFilter {
|
|
193
|
+
isNull?: boolean;
|
|
194
|
+
equalTo?: number[];
|
|
195
|
+
notEqualTo?: number[];
|
|
196
|
+
distinctFrom?: number[];
|
|
197
|
+
notDistinctFrom?: number[];
|
|
198
|
+
lessThan?: number[];
|
|
199
|
+
lessThanOrEqualTo?: number[];
|
|
200
|
+
greaterThan?: number[];
|
|
201
|
+
greaterThanOrEqualTo?: number[];
|
|
202
|
+
contains?: number[];
|
|
203
|
+
containedBy?: number[];
|
|
204
|
+
overlaps?: number[];
|
|
205
|
+
anyEqualTo?: number;
|
|
206
|
+
anyNotEqualTo?: number;
|
|
207
|
+
anyLessThan?: number;
|
|
208
|
+
anyLessThanOrEqualTo?: number;
|
|
209
|
+
anyGreaterThan?: number;
|
|
210
|
+
anyGreaterThanOrEqualTo?: number;
|
|
211
|
+
}
|
|
212
|
+
export interface UUIDListFilter {
|
|
213
|
+
isNull?: boolean;
|
|
214
|
+
equalTo?: string[];
|
|
215
|
+
notEqualTo?: string[];
|
|
216
|
+
distinctFrom?: string[];
|
|
217
|
+
notDistinctFrom?: string[];
|
|
218
|
+
lessThan?: string[];
|
|
219
|
+
lessThanOrEqualTo?: string[];
|
|
220
|
+
greaterThan?: string[];
|
|
221
|
+
greaterThanOrEqualTo?: string[];
|
|
222
|
+
contains?: string[];
|
|
223
|
+
containedBy?: string[];
|
|
224
|
+
overlaps?: string[];
|
|
225
|
+
anyEqualTo?: string;
|
|
226
|
+
anyNotEqualTo?: string;
|
|
227
|
+
anyLessThan?: string;
|
|
228
|
+
anyLessThanOrEqualTo?: string;
|
|
229
|
+
anyGreaterThan?: string;
|
|
230
|
+
anyGreaterThanOrEqualTo?: string;
|
|
231
|
+
}
|
|
232
|
+
export type ConstructiveInternalTypeUpload = unknown;
|
|
233
|
+
export interface MigrateFile {
|
|
234
|
+
id: string;
|
|
235
|
+
databaseId?: string | null;
|
|
236
|
+
upload?: ConstructiveInternalTypeUpload | null;
|
|
237
|
+
}
|
|
238
|
+
export interface SqlAction {
|
|
239
|
+
id: number;
|
|
240
|
+
name?: string | null;
|
|
241
|
+
databaseId?: string | null;
|
|
242
|
+
deploy?: string | null;
|
|
243
|
+
deps?: string[] | null;
|
|
244
|
+
payload?: Record<string, unknown> | null;
|
|
245
|
+
content?: string | null;
|
|
246
|
+
revert?: string | null;
|
|
247
|
+
verify?: string | null;
|
|
248
|
+
createdAt?: string | null;
|
|
249
|
+
action?: string | null;
|
|
250
|
+
actionId?: string | null;
|
|
251
|
+
actorId?: string | null;
|
|
252
|
+
}
|
|
253
|
+
export interface ConnectionResult<T> {
|
|
254
|
+
nodes: T[];
|
|
255
|
+
totalCount: number;
|
|
256
|
+
pageInfo: PageInfo;
|
|
257
|
+
}
|
|
258
|
+
export interface PageInfo {
|
|
259
|
+
hasNextPage: boolean;
|
|
260
|
+
hasPreviousPage: boolean;
|
|
261
|
+
startCursor?: string | null;
|
|
262
|
+
endCursor?: string | null;
|
|
263
|
+
}
|
|
264
|
+
export interface MigrateFileRelations {
|
|
265
|
+
}
|
|
266
|
+
export interface SqlActionRelations {
|
|
267
|
+
}
|
|
268
|
+
export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations;
|
|
269
|
+
export type SqlActionWithRelations = SqlAction & SqlActionRelations;
|
|
270
|
+
export type MigrateFileSelect = {
|
|
271
|
+
id?: boolean;
|
|
272
|
+
databaseId?: boolean;
|
|
273
|
+
upload?: boolean;
|
|
274
|
+
};
|
|
275
|
+
export type SqlActionSelect = {
|
|
276
|
+
id?: boolean;
|
|
277
|
+
name?: boolean;
|
|
278
|
+
databaseId?: boolean;
|
|
279
|
+
deploy?: boolean;
|
|
280
|
+
deps?: boolean;
|
|
281
|
+
payload?: boolean;
|
|
282
|
+
content?: boolean;
|
|
283
|
+
revert?: boolean;
|
|
284
|
+
verify?: boolean;
|
|
285
|
+
createdAt?: boolean;
|
|
286
|
+
action?: boolean;
|
|
287
|
+
actionId?: boolean;
|
|
288
|
+
actorId?: boolean;
|
|
289
|
+
};
|
|
290
|
+
export interface MigrateFileFilter {
|
|
291
|
+
id?: UUIDFilter;
|
|
292
|
+
databaseId?: UUIDFilter;
|
|
293
|
+
upload?: StringFilter;
|
|
294
|
+
and?: MigrateFileFilter[];
|
|
295
|
+
or?: MigrateFileFilter[];
|
|
296
|
+
not?: MigrateFileFilter;
|
|
297
|
+
}
|
|
298
|
+
export interface SqlActionFilter {
|
|
299
|
+
id?: IntFilter;
|
|
300
|
+
name?: StringFilter;
|
|
301
|
+
databaseId?: UUIDFilter;
|
|
302
|
+
deploy?: StringFilter;
|
|
303
|
+
deps?: StringListFilter;
|
|
304
|
+
payload?: JSONFilter;
|
|
305
|
+
content?: StringFilter;
|
|
306
|
+
revert?: StringFilter;
|
|
307
|
+
verify?: StringFilter;
|
|
308
|
+
createdAt?: DatetimeFilter;
|
|
309
|
+
action?: StringFilter;
|
|
310
|
+
actionId?: UUIDFilter;
|
|
311
|
+
actorId?: UUIDFilter;
|
|
312
|
+
and?: SqlActionFilter[];
|
|
313
|
+
or?: SqlActionFilter[];
|
|
314
|
+
not?: SqlActionFilter;
|
|
315
|
+
}
|
|
316
|
+
export type MigrateFileOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC';
|
|
317
|
+
export type SqlActionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC';
|
|
318
|
+
export interface CreateMigrateFileInput {
|
|
319
|
+
clientMutationId?: string;
|
|
320
|
+
migrateFile: {
|
|
321
|
+
databaseId?: string;
|
|
322
|
+
upload?: ConstructiveInternalTypeUpload;
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
export interface MigrateFilePatch {
|
|
326
|
+
databaseId?: string | null;
|
|
327
|
+
upload?: ConstructiveInternalTypeUpload | null;
|
|
328
|
+
uploadUpload?: File | null;
|
|
329
|
+
}
|
|
330
|
+
export interface UpdateMigrateFileInput {
|
|
331
|
+
clientMutationId?: string;
|
|
332
|
+
id: string;
|
|
333
|
+
migrateFilePatch: MigrateFilePatch;
|
|
334
|
+
}
|
|
335
|
+
export interface DeleteMigrateFileInput {
|
|
336
|
+
clientMutationId?: string;
|
|
337
|
+
id: string;
|
|
338
|
+
}
|
|
339
|
+
export interface CreateSqlActionInput {
|
|
340
|
+
clientMutationId?: string;
|
|
341
|
+
sqlAction: {
|
|
342
|
+
name?: string;
|
|
343
|
+
databaseId?: string;
|
|
344
|
+
deploy?: string;
|
|
345
|
+
deps?: string[];
|
|
346
|
+
payload?: Record<string, unknown>;
|
|
347
|
+
content?: string;
|
|
348
|
+
revert?: string;
|
|
349
|
+
verify?: string;
|
|
350
|
+
action?: string;
|
|
351
|
+
actionId?: string;
|
|
352
|
+
actorId?: string;
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
export interface SqlActionPatch {
|
|
356
|
+
name?: string | null;
|
|
357
|
+
databaseId?: string | null;
|
|
358
|
+
deploy?: string | null;
|
|
359
|
+
deps?: string[] | null;
|
|
360
|
+
payload?: Record<string, unknown> | null;
|
|
361
|
+
content?: string | null;
|
|
362
|
+
revert?: string | null;
|
|
363
|
+
verify?: string | null;
|
|
364
|
+
action?: string | null;
|
|
365
|
+
actionId?: string | null;
|
|
366
|
+
actorId?: string | null;
|
|
367
|
+
}
|
|
368
|
+
export interface UpdateSqlActionInput {
|
|
369
|
+
clientMutationId?: string;
|
|
370
|
+
id: number;
|
|
371
|
+
sqlActionPatch: SqlActionPatch;
|
|
372
|
+
}
|
|
373
|
+
export interface DeleteSqlActionInput {
|
|
374
|
+
clientMutationId?: string;
|
|
375
|
+
id: number;
|
|
376
|
+
}
|
|
377
|
+
export declare const connectionFieldsMap: Record<string, Record<string, string>>;
|
|
378
|
+
export interface ExecuteSqlInput {
|
|
379
|
+
clientMutationId?: string;
|
|
380
|
+
stmt?: string;
|
|
381
|
+
}
|
|
382
|
+
export interface RunMigrationInput {
|
|
383
|
+
clientMutationId?: string;
|
|
384
|
+
databaseId?: string;
|
|
385
|
+
migration?: number;
|
|
386
|
+
kind?: string;
|
|
387
|
+
}
|
|
388
|
+
export interface ExecuteSqlPayload {
|
|
389
|
+
clientMutationId?: string | null;
|
|
390
|
+
}
|
|
391
|
+
export type ExecuteSqlPayloadSelect = {
|
|
392
|
+
clientMutationId?: boolean;
|
|
393
|
+
};
|
|
394
|
+
export interface RunMigrationPayload {
|
|
395
|
+
clientMutationId?: string | null;
|
|
396
|
+
}
|
|
397
|
+
export type RunMigrationPayloadSelect = {
|
|
398
|
+
clientMutationId?: boolean;
|
|
399
|
+
};
|
|
400
|
+
export interface CreateMigrateFilePayload {
|
|
401
|
+
clientMutationId?: string | null;
|
|
402
|
+
/** The `MigrateFile` that was created by this mutation. */
|
|
403
|
+
migrateFile?: MigrateFile | null;
|
|
404
|
+
migrateFileEdge?: MigrateFileEdge | null;
|
|
405
|
+
}
|
|
406
|
+
export type CreateMigrateFilePayloadSelect = {
|
|
407
|
+
clientMutationId?: boolean;
|
|
408
|
+
migrateFile?: {
|
|
409
|
+
select: MigrateFileSelect;
|
|
410
|
+
};
|
|
411
|
+
migrateFileEdge?: {
|
|
412
|
+
select: MigrateFileEdgeSelect;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
export interface UpdateMigrateFilePayload {
|
|
416
|
+
clientMutationId?: string | null;
|
|
417
|
+
/** The `MigrateFile` that was updated by this mutation. */
|
|
418
|
+
migrateFile?: MigrateFile | null;
|
|
419
|
+
migrateFileEdge?: MigrateFileEdge | null;
|
|
420
|
+
}
|
|
421
|
+
export type UpdateMigrateFilePayloadSelect = {
|
|
422
|
+
clientMutationId?: boolean;
|
|
423
|
+
migrateFile?: {
|
|
424
|
+
select: MigrateFileSelect;
|
|
425
|
+
};
|
|
426
|
+
migrateFileEdge?: {
|
|
427
|
+
select: MigrateFileEdgeSelect;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
export interface DeleteMigrateFilePayload {
|
|
431
|
+
clientMutationId?: string | null;
|
|
432
|
+
/** The `MigrateFile` that was deleted by this mutation. */
|
|
433
|
+
migrateFile?: MigrateFile | null;
|
|
434
|
+
migrateFileEdge?: MigrateFileEdge | null;
|
|
435
|
+
}
|
|
436
|
+
export type DeleteMigrateFilePayloadSelect = {
|
|
437
|
+
clientMutationId?: boolean;
|
|
438
|
+
migrateFile?: {
|
|
439
|
+
select: MigrateFileSelect;
|
|
440
|
+
};
|
|
441
|
+
migrateFileEdge?: {
|
|
442
|
+
select: MigrateFileEdgeSelect;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
export interface CreateSqlActionPayload {
|
|
446
|
+
clientMutationId?: string | null;
|
|
447
|
+
/** The `SqlAction` that was created by this mutation. */
|
|
448
|
+
sqlAction?: SqlAction | null;
|
|
449
|
+
sqlActionEdge?: SqlActionEdge | null;
|
|
450
|
+
}
|
|
451
|
+
export type CreateSqlActionPayloadSelect = {
|
|
452
|
+
clientMutationId?: boolean;
|
|
453
|
+
sqlAction?: {
|
|
454
|
+
select: SqlActionSelect;
|
|
455
|
+
};
|
|
456
|
+
sqlActionEdge?: {
|
|
457
|
+
select: SqlActionEdgeSelect;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
export interface UpdateSqlActionPayload {
|
|
461
|
+
clientMutationId?: string | null;
|
|
462
|
+
/** The `SqlAction` that was updated by this mutation. */
|
|
463
|
+
sqlAction?: SqlAction | null;
|
|
464
|
+
sqlActionEdge?: SqlActionEdge | null;
|
|
465
|
+
}
|
|
466
|
+
export type UpdateSqlActionPayloadSelect = {
|
|
467
|
+
clientMutationId?: boolean;
|
|
468
|
+
sqlAction?: {
|
|
469
|
+
select: SqlActionSelect;
|
|
470
|
+
};
|
|
471
|
+
sqlActionEdge?: {
|
|
472
|
+
select: SqlActionEdgeSelect;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
export interface DeleteSqlActionPayload {
|
|
476
|
+
clientMutationId?: string | null;
|
|
477
|
+
/** The `SqlAction` that was deleted by this mutation. */
|
|
478
|
+
sqlAction?: SqlAction | null;
|
|
479
|
+
sqlActionEdge?: SqlActionEdge | null;
|
|
480
|
+
}
|
|
481
|
+
export type DeleteSqlActionPayloadSelect = {
|
|
482
|
+
clientMutationId?: boolean;
|
|
483
|
+
sqlAction?: {
|
|
484
|
+
select: SqlActionSelect;
|
|
485
|
+
};
|
|
486
|
+
sqlActionEdge?: {
|
|
487
|
+
select: SqlActionEdgeSelect;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
/** A `MigrateFile` edge in the connection. */
|
|
491
|
+
export interface MigrateFileEdge {
|
|
492
|
+
cursor?: string | null;
|
|
493
|
+
/** The `MigrateFile` at the end of the edge. */
|
|
494
|
+
node?: MigrateFile | null;
|
|
495
|
+
}
|
|
496
|
+
export type MigrateFileEdgeSelect = {
|
|
497
|
+
cursor?: boolean;
|
|
498
|
+
node?: {
|
|
499
|
+
select: MigrateFileSelect;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
/** A `SqlAction` edge in the connection. */
|
|
503
|
+
export interface SqlActionEdge {
|
|
504
|
+
cursor?: string | null;
|
|
505
|
+
/** The `SqlAction` at the end of the edge. */
|
|
506
|
+
node?: SqlAction | null;
|
|
507
|
+
}
|
|
508
|
+
export type SqlActionEdgeSelect = {
|
|
509
|
+
cursor?: boolean;
|
|
510
|
+
node?: {
|
|
511
|
+
select: SqlActionSelect;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MigrateFile model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { MigrateFileWithRelations, MigrateFileSelect, MigrateFileFilter, MigrateFileOrderBy, CreateMigrateFileInput, MigrateFilePatch } from '../input-types';
|
|
10
|
+
export declare class MigrateFileModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends MigrateFileSelect>(args: FindManyArgs<S, MigrateFileFilter, never, MigrateFileOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
16
|
+
migrateFiles: ConnectionResult<InferSelectResult<MigrateFileWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends MigrateFileSelect>(args: FindFirstArgs<S, MigrateFileFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
21
|
+
migrateFiles: {
|
|
22
|
+
nodes: InferSelectResult<MigrateFileWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends MigrateFileSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
29
|
+
migrateFile: InferSelectResult<MigrateFileWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends MigrateFileSelect>(args: CreateArgs<S, CreateMigrateFileInput['migrateFile']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
34
|
+
createMigrateFile: {
|
|
35
|
+
migrateFile: InferSelectResult<MigrateFileWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends MigrateFileSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, MigrateFilePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
43
|
+
updateMigrateFile: {
|
|
44
|
+
migrateFile: InferSelectResult<MigrateFileWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends MigrateFileSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
52
|
+
deleteMigrateFile: {
|
|
53
|
+
migrateFile: InferSelectResult<MigrateFileWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class MigrateFileModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('MigrateFile', 'migrateFiles', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'MigrateFileFilter', 'MigrateFileOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'MigrateFile',
|
|
22
|
+
fieldName: 'migrateFiles',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('MigrateFile', 'migrateFiles', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'MigrateFileFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'MigrateFile',
|
|
35
|
+
fieldName: 'migrateFiles',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('MigrateFile', 'migrateFiles', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'MigrateFileFilter', 'MigrateFileOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'MigrateFile',
|
|
53
|
+
fieldName: 'migrateFile',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
migrateFile: data.migrateFiles?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('MigrateFile', 'createMigrateFile', 'migrateFile', args.select, args.data, 'CreateMigrateFileInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'MigrateFile',
|
|
67
|
+
fieldName: 'createMigrateFile',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('MigrateFile', 'updateMigrateFile', 'migrateFile', args.select, args.where.id, args.data, 'UpdateMigrateFileInput', 'id', 'migrateFilePatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'MigrateFile',
|
|
78
|
+
fieldName: 'updateMigrateFile',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('MigrateFile', 'deleteMigrateFile', 'migrateFile', args.where.id, 'DeleteMigrateFileInput', 'id', args.select, connectionFieldsMap);
|
|
85
|
+
return new QueryBuilder({
|
|
86
|
+
client: this.client,
|
|
87
|
+
operation: 'mutation',
|
|
88
|
+
operationName: 'MigrateFile',
|
|
89
|
+
fieldName: 'deleteMigrateFile',
|
|
90
|
+
document,
|
|
91
|
+
variables,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|