@nationalarchives/tdr-generated-graphql 1.0.568 → 1.0.569

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 (3) hide show
  1. package/index.d.ts +762 -0
  2. package/index.js +488 -0
  3. package/package.json +1 -1
package/index.d.ts ADDED
@@ -0,0 +1,762 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ /** Internal type. DO NOT USE DIRECTLY. */
8
+ export type Incremental<T> = T | {
9
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
10
+ };
11
+ export type AddAntivirusMetadataInput = {
12
+ antivirusMetadata: Array<AddAntivirusMetadataInputValues>;
13
+ };
14
+ export type AddAntivirusMetadataInputValues = {
15
+ databaseVersion: string;
16
+ datetime: number;
17
+ fileId: unknown;
18
+ result: string;
19
+ software: string;
20
+ softwareVersion: string;
21
+ };
22
+ export type AddConsignmentInput = {
23
+ consignmentType: string;
24
+ seriesid?: unknown;
25
+ };
26
+ export type AddFileAndMetadataInput = {
27
+ consignmentId: unknown;
28
+ emptyDirectories?: Array<string> | null | undefined;
29
+ metadataInput: Array<ClientSideMetadataInput>;
30
+ userIdOverride?: unknown;
31
+ };
32
+ export type AddFileMetadataWithFileIdInput = {
33
+ metadataInputValues: Array<AddFileMetadataWithFileIdInputValues>;
34
+ };
35
+ export type AddFileMetadataWithFileIdInputValues = {
36
+ fileId: unknown;
37
+ filePropertyName: string;
38
+ value: string;
39
+ };
40
+ export type AddFileStatusInput = {
41
+ fileId: unknown;
42
+ statusType: string;
43
+ statusValue: string;
44
+ };
45
+ export type AddFinalTransferConfirmationInput = {
46
+ consignmentId: unknown;
47
+ legalCustodyTransferConfirmed: boolean;
48
+ };
49
+ export type AddMultipleFileStatusesInput = {
50
+ statuses: Array<AddFileStatusInput>;
51
+ };
52
+ export type AddOrUpdateBulkFileMetadataInput = {
53
+ consignmentId: unknown;
54
+ fileMetadata: Array<AddOrUpdateFileMetadata>;
55
+ };
56
+ export type AddOrUpdateConsignmentMetadata = {
57
+ propertyName: string;
58
+ value: string;
59
+ };
60
+ export type AddOrUpdateConsignmentMetadataInput = {
61
+ consignmentId: unknown;
62
+ consignmentMetadata: Array<AddOrUpdateConsignmentMetadata>;
63
+ };
64
+ export type AddOrUpdateFileMetadata = {
65
+ fileId: unknown;
66
+ metadata: Array<AddOrUpdateMetadata>;
67
+ };
68
+ export type AddOrUpdateMetadata = {
69
+ filePropertyName: string;
70
+ value: string;
71
+ };
72
+ export type AddTransferAgreementComplianceInput = {
73
+ appraisalSelectionSignedOff: boolean;
74
+ consignmentId: unknown;
75
+ initialOpenRecords?: boolean | null | undefined;
76
+ sensitivityReviewSignedOff: boolean;
77
+ };
78
+ export type AddTransferAgreementPrivateBetaInput = {
79
+ allPublicRecords: boolean;
80
+ consignmentId: unknown;
81
+ };
82
+ export type ClientSideMetadataInput = {
83
+ checksum: string;
84
+ fileSize: number;
85
+ lastModified: number;
86
+ matchId: string;
87
+ originalPath: string;
88
+ };
89
+ export type ConsignmentFilters = {
90
+ consignmentType?: string | null | undefined;
91
+ userId?: unknown;
92
+ };
93
+ export type ConsignmentMetadataFilter = {
94
+ propertyNames: Array<string>;
95
+ };
96
+ export type ConsignmentOrderBy = {
97
+ consignmentOrderField: ConsignmentOrderField;
98
+ orderDirection: Direction;
99
+ };
100
+ export type ConsignmentOrderField = 'ConsignmentReference' | 'CreatedAtTimestamp';
101
+ export type ConsignmentStatusInput = {
102
+ consignmentId: unknown;
103
+ metadataReviewNotes?: string | null | undefined;
104
+ statusType: string;
105
+ statusValue?: string | null | undefined;
106
+ userIdOverride?: unknown;
107
+ };
108
+ export type Direction = 'Ascending' | 'Descending';
109
+ export type FfidMetadataInput = {
110
+ metadataInputValues: Array<FfidMetadataInputValues>;
111
+ };
112
+ export type FfidMetadataInputMatches = {
113
+ extension?: string | null | undefined;
114
+ fileExtensionMismatch?: boolean | null | undefined;
115
+ formatName?: string | null | undefined;
116
+ identificationBasis: string;
117
+ puid?: string | null | undefined;
118
+ };
119
+ export type FfidMetadataInputValues = {
120
+ binarySignatureFileVersion: string;
121
+ containerSignatureFileVersion: string;
122
+ fileId: unknown;
123
+ matches: Array<FfidMetadataInputMatches>;
124
+ method: string;
125
+ software: string;
126
+ softwareVersion: string;
127
+ };
128
+ export type FileFilters = {
129
+ fileTypeIdentifier?: string | null | undefined;
130
+ metadataFilters?: FileMetadataFilters | null | undefined;
131
+ parentId?: unknown;
132
+ selectedFileIds?: Array<unknown> | null | undefined;
133
+ };
134
+ export type FileMetadataFilters = {
135
+ properties?: Array<string> | null | undefined;
136
+ };
137
+ export type PaginationInput = {
138
+ currentCursor?: string | null | undefined;
139
+ currentPage?: number | null | undefined;
140
+ fileFilters?: FileFilters | null | undefined;
141
+ limit?: number | null | undefined;
142
+ };
143
+ export type StartUploadInput = {
144
+ consignmentId: unknown;
145
+ includeTopLevelFolder?: boolean | null | undefined;
146
+ parentFolder: string;
147
+ };
148
+ export type UpdateClientSideDraftMetadataFileNameInput = {
149
+ clientSideDraftMetadataFileName: string;
150
+ consignmentId: unknown;
151
+ };
152
+ export type UpdateConsignmentSeriesIdInput = {
153
+ consignmentId: unknown;
154
+ seriesId: unknown;
155
+ };
156
+ export type UpdateExportDataInput = {
157
+ consignmentId: unknown;
158
+ exportDatetime?: unknown;
159
+ exportLocation: string;
160
+ exportVersion: string;
161
+ };
162
+ export type UpdateMetadataSchemaLibraryVersionInput = {
163
+ consignmentId: unknown;
164
+ metadataSchemaLibraryVersion: string;
165
+ };
166
+ export type UpdateParentFolderInput = {
167
+ consignmentId: unknown;
168
+ parentFolder: string;
169
+ userIdOverride?: unknown;
170
+ };
171
+ export type AddBulkAntivirusMetadataMutationVariables = Exact<{
172
+ input: AddAntivirusMetadataInput;
173
+ }>;
174
+ export type AddBulkAntivirusMetadataMutation = {
175
+ addBulkAntivirusMetadata: Array<{
176
+ fileId: unknown;
177
+ software: string;
178
+ softwareVersion: string;
179
+ databaseVersion: string;
180
+ result: string;
181
+ datetime: number;
182
+ }>;
183
+ };
184
+ export type AddBulkFfidMetadataMutationVariables = Exact<{
185
+ addBulkFFIDMetadataInput: FfidMetadataInput;
186
+ }>;
187
+ export type AddBulkFfidMetadataMutation = {
188
+ addBulkFFIDMetadata: Array<{
189
+ fileId: unknown;
190
+ }>;
191
+ };
192
+ export type AddConsignmentMutationVariables = Exact<{
193
+ addConsignmentInput: AddConsignmentInput;
194
+ }>;
195
+ export type AddConsignmentMutation = {
196
+ addConsignment: {
197
+ consignmentid: unknown;
198
+ seriesid: unknown;
199
+ consignmentReference: string;
200
+ };
201
+ };
202
+ export type AddConsignmentStatusMutationVariables = Exact<{
203
+ addConsignmentStatusInput: ConsignmentStatusInput;
204
+ }>;
205
+ export type AddConsignmentStatusMutation = {
206
+ addConsignmentStatus: {
207
+ consignmentStatusId: unknown;
208
+ consignmentId: unknown;
209
+ statusType: string;
210
+ value: string;
211
+ createdDatetime: unknown;
212
+ modifiedDatetime: unknown;
213
+ };
214
+ };
215
+ export type AddFilesAndMetadataMutationVariables = Exact<{
216
+ input: AddFileAndMetadataInput;
217
+ }>;
218
+ export type AddFilesAndMetadataMutation = {
219
+ addFilesAndMetadata: Array<{
220
+ fileId: unknown;
221
+ matchId: string;
222
+ }>;
223
+ };
224
+ export type AddFinalTransferConfirmationMutationVariables = Exact<{
225
+ input: AddFinalTransferConfirmationInput;
226
+ }>;
227
+ export type AddFinalTransferConfirmationMutation = {
228
+ addFinalTransferConfirmation: {
229
+ consignmentId: unknown;
230
+ legalCustodyTransferConfirmed: boolean;
231
+ };
232
+ };
233
+ export type AddMultipleFileMetadataMutationVariables = Exact<{
234
+ addMultipleFileMetadataInput: AddFileMetadataWithFileIdInput;
235
+ }>;
236
+ export type AddMultipleFileMetadataMutation = {
237
+ addMultipleFileMetadata: Array<{
238
+ fileId: unknown;
239
+ value: string;
240
+ }>;
241
+ };
242
+ export type AddMultipleFileStatusesMutationVariables = Exact<{
243
+ addMultipleFileStatusesInput: AddMultipleFileStatusesInput;
244
+ }>;
245
+ export type AddMultipleFileStatusesMutation = {
246
+ addMultipleFileStatuses: Array<{
247
+ fileId: unknown;
248
+ statusType: string;
249
+ statusValue: string;
250
+ }>;
251
+ };
252
+ export type AddOrUpdateBulkFileMetadataMutationVariables = Exact<{
253
+ addOrUpdateBulkFileMetadataInput: AddOrUpdateBulkFileMetadataInput;
254
+ }>;
255
+ export type AddOrUpdateBulkFileMetadataMutation = {
256
+ addOrUpdateBulkFileMetadata: Array<{
257
+ filePropertyName: string;
258
+ fileId: unknown;
259
+ value: string;
260
+ }>;
261
+ };
262
+ export type AddOrUpdateConsignmentMetadataMutationVariables = Exact<{
263
+ addOrUpdateConsignmentMetadataInput: AddOrUpdateConsignmentMetadataInput;
264
+ }>;
265
+ export type AddOrUpdateConsignmentMetadataMutation = {
266
+ addOrUpdateConsignmentMetadata: Array<{
267
+ consignmentId: unknown;
268
+ propertyName: string;
269
+ value: string;
270
+ }>;
271
+ };
272
+ export type AddTransferAgreementComplianceMutationVariables = Exact<{
273
+ input: AddTransferAgreementComplianceInput;
274
+ }>;
275
+ export type AddTransferAgreementComplianceMutation = {
276
+ addTransferAgreementCompliance: {
277
+ consignmentId: unknown;
278
+ appraisalSelectionSignedOff: boolean;
279
+ sensitivityReviewSignedOff: boolean;
280
+ initialOpenRecords: boolean | null;
281
+ };
282
+ };
283
+ export type AddTransferAgreementPrivateBetaMutationVariables = Exact<{
284
+ input: AddTransferAgreementPrivateBetaInput;
285
+ }>;
286
+ export type AddTransferAgreementPrivateBetaMutation = {
287
+ addTransferAgreementPrivateBeta: {
288
+ consignmentId: unknown;
289
+ allPublicRecords: boolean;
290
+ };
291
+ };
292
+ export type GetConsignmentQueryVariables = Exact<{
293
+ consignmentId: unknown;
294
+ }>;
295
+ export type GetConsignmentQuery = {
296
+ getConsignment: {
297
+ userid: unknown;
298
+ seriesid: unknown;
299
+ parentFolder: string | null;
300
+ consignmentReference: string;
301
+ parentFolderId: unknown;
302
+ clientSideDraftMetadataFileName: string | null;
303
+ transferringBodyName: string | null;
304
+ consignmentStatuses: Array<{
305
+ statusType: string;
306
+ value: string;
307
+ }>;
308
+ } | null;
309
+ };
310
+ export type GetConsignmentDetailsForMetadataReviewQueryVariables = Exact<{
311
+ consignmentId: unknown;
312
+ }>;
313
+ export type GetConsignmentDetailsForMetadataReviewQuery = {
314
+ getConsignment: {
315
+ consignmentReference: string;
316
+ seriesName: string | null;
317
+ transferringBodyName: string | null;
318
+ userid: unknown;
319
+ totalClosedRecords: number;
320
+ includeTopLevelFolder: boolean | null;
321
+ totalFiles: number;
322
+ consignmentMetadata: Array<{
323
+ propertyName: string;
324
+ value: string;
325
+ }>;
326
+ metadataReviewLogs: Array<{
327
+ metadataReviewLogId: unknown;
328
+ consignmentId: unknown;
329
+ userId: unknown;
330
+ action: string;
331
+ eventTime: unknown;
332
+ metadataReviewNotes: string | null;
333
+ }>;
334
+ } | null;
335
+ };
336
+ export type GetConsignmentForExportQueryVariables = Exact<{
337
+ consignmentId: unknown;
338
+ }>;
339
+ export type GetConsignmentForExportQuery = {
340
+ getConsignment: {
341
+ userid: unknown;
342
+ createdDatetime: unknown;
343
+ transferInitiatedDatetime: unknown;
344
+ exportDatetime: unknown;
345
+ consignmentReference: string;
346
+ consignmentType: string | null;
347
+ includeTopLevelFolder: boolean | null;
348
+ seriesName: string | null;
349
+ transferringBodyName: string | null;
350
+ metadataSchemaLibraryVersion: string | null;
351
+ files: Array<{
352
+ fileId: unknown;
353
+ fileType: string | null;
354
+ fileName: string | null;
355
+ fileReference: string | null;
356
+ parentReference: string | null;
357
+ originalFilePath: string | null;
358
+ fileMetadata: Array<{
359
+ name: string;
360
+ value: string;
361
+ }>;
362
+ ffidMetadata: {
363
+ software: string;
364
+ softwareVersion: string;
365
+ binarySignatureFileVersion: string;
366
+ containerSignatureFileVersion: string;
367
+ method: string;
368
+ matches: Array<{
369
+ extension: string | null;
370
+ identificationBasis: string;
371
+ puid: string | null;
372
+ fileExtensionMismatch: boolean | null;
373
+ formatName: string | null;
374
+ }>;
375
+ } | null;
376
+ antivirusMetadata: {
377
+ software: string;
378
+ softwareVersion: string;
379
+ } | null;
380
+ }>;
381
+ consignmentMetadata: Array<{
382
+ propertyName: string;
383
+ value: string;
384
+ }>;
385
+ } | null;
386
+ };
387
+ export type GetConsignmentFilesQueryVariables = Exact<{
388
+ consignmentId: unknown;
389
+ }>;
390
+ export type GetConsignmentFilesQuery = {
391
+ getConsignment: {
392
+ files: Array<{
393
+ fileId: unknown;
394
+ fileName: string | null;
395
+ fileType: string | null;
396
+ parentId: unknown;
397
+ metadata: {
398
+ clientSideOriginalFilePath: string | null;
399
+ };
400
+ fileStatuses: Array<{
401
+ statusType: string;
402
+ statusValue: string;
403
+ }>;
404
+ }>;
405
+ } | null;
406
+ };
407
+ export type GetConsignmentFilesMetadataQueryVariables = Exact<{
408
+ consignmentId: unknown;
409
+ fileFiltersInput?: FileFilters | null | undefined;
410
+ }>;
411
+ export type GetConsignmentFilesMetadataQuery = {
412
+ getConsignment: {
413
+ consignmentReference: string;
414
+ files: Array<{
415
+ fileId: unknown;
416
+ fileName: string | null;
417
+ fileMetadata: Array<{
418
+ name: string;
419
+ value: string;
420
+ }>;
421
+ }>;
422
+ metadataReviewLogs: Array<{
423
+ metadataReviewLogId: unknown;
424
+ consignmentId: unknown;
425
+ userId: unknown;
426
+ action: string;
427
+ eventTime: unknown;
428
+ }>;
429
+ } | null;
430
+ };
431
+ export type GetConsignmentFolderDetailsQueryVariables = Exact<{
432
+ consignmentId: unknown;
433
+ }>;
434
+ export type GetConsignmentFolderDetailsQuery = {
435
+ getConsignment: {
436
+ totalFiles: number;
437
+ parentFolder: string | null;
438
+ } | null;
439
+ };
440
+ export type GetConsignmentMetadataQueryVariables = Exact<{
441
+ consignmentId: unknown;
442
+ consignmentMetadataFiltersInput?: ConsignmentMetadataFilter | null | undefined;
443
+ }>;
444
+ export type GetConsignmentMetadataQuery = {
445
+ getConsignment: {
446
+ consignmentReference: string;
447
+ consignmentMetadata: Array<{
448
+ propertyName: string;
449
+ value: string;
450
+ }>;
451
+ } | null;
452
+ };
453
+ export type GetConsignmentPaginatedFilesQueryVariables = Exact<{
454
+ consignmentId: unknown;
455
+ paginatedInput?: PaginationInput | null | undefined;
456
+ }>;
457
+ export type GetConsignmentPaginatedFilesQuery = {
458
+ getConsignment: {
459
+ parentFolder: string | null;
460
+ parentFolderId: unknown;
461
+ paginatedFiles: {
462
+ totalPages: number | null;
463
+ totalItems: number | null;
464
+ pageInfo: {
465
+ startCursor: string | null;
466
+ endCursor: string | null;
467
+ hasNextPage: boolean;
468
+ hasPreviousPage: boolean;
469
+ };
470
+ edges: Array<{
471
+ node: {
472
+ fileId: unknown;
473
+ fileName: string | null;
474
+ fileType: string | null;
475
+ parentId: unknown;
476
+ };
477
+ } | null> | null;
478
+ };
479
+ } | null;
480
+ };
481
+ export type GetConsignmentReferenceQueryVariables = Exact<{
482
+ consignmentId: unknown;
483
+ }>;
484
+ export type GetConsignmentReferenceQuery = {
485
+ getConsignment: {
486
+ consignmentReference: string;
487
+ } | null;
488
+ };
489
+ export type GetConsignmentReviewDetailsQueryVariables = Exact<{
490
+ statusFilter?: string | null | undefined;
491
+ }>;
492
+ export type GetConsignmentReviewDetailsQuery = {
493
+ getConsignmentReviewDetails: Array<{
494
+ consignmentId: unknown;
495
+ consignmentReference: string;
496
+ reviewStatus: string;
497
+ transferringBodyName: string | null;
498
+ seriesName: string | null;
499
+ lastUpdated: unknown;
500
+ }>;
501
+ };
502
+ export type GetConsignmentStatusQueryVariables = Exact<{
503
+ consignmentId: unknown;
504
+ }>;
505
+ export type GetConsignmentStatusQuery = {
506
+ getConsignment: {
507
+ seriesid: unknown;
508
+ seriesName: string | null;
509
+ consignmentStatuses: Array<{
510
+ consignmentStatusId: unknown;
511
+ consignmentId: unknown;
512
+ statusType: string;
513
+ value: string;
514
+ createdDatetime: unknown;
515
+ modifiedDatetime: unknown;
516
+ }>;
517
+ } | null;
518
+ };
519
+ export type GetConsignmentSummaryQueryVariables = Exact<{
520
+ consignmentId: unknown;
521
+ }>;
522
+ export type GetConsignmentSummaryQuery = {
523
+ getConsignment: {
524
+ seriesName: string | null;
525
+ transferringBodyName: string | null;
526
+ totalFiles: number;
527
+ consignmentReference: string;
528
+ } | null;
529
+ };
530
+ export type GetConsignmentTypeQueryVariables = Exact<{
531
+ consignmentId: unknown;
532
+ }>;
533
+ export type GetConsignmentTypeQuery = {
534
+ getConsignment: {
535
+ consignmentType: string | null;
536
+ } | null;
537
+ };
538
+ export type GetConsignmentsQueryVariables = Exact<{
539
+ limit: number;
540
+ currentCursor?: string | null | undefined;
541
+ currentPage?: number | null | undefined;
542
+ consignmentFiltersInput?: ConsignmentFilters | null | undefined;
543
+ orderBy?: ConsignmentOrderBy | null | undefined;
544
+ }>;
545
+ export type GetConsignmentsQuery = {
546
+ consignments: {
547
+ totalPages: number | null;
548
+ edges: Array<{
549
+ cursor: string;
550
+ node: {
551
+ consignmentid: unknown;
552
+ consignmentReference: string;
553
+ consignmentType: string | null;
554
+ exportDatetime: unknown;
555
+ createdDatetime: unknown;
556
+ totalFiles: number;
557
+ consignmentStatuses: Array<{
558
+ consignmentStatusId: unknown;
559
+ consignmentId: unknown;
560
+ statusType: string;
561
+ value: string;
562
+ createdDatetime: unknown;
563
+ modifiedDatetime: unknown;
564
+ }>;
565
+ };
566
+ } | null> | null;
567
+ pageInfo: {
568
+ hasNextPage: boolean;
569
+ endCursor: string | null;
570
+ };
571
+ };
572
+ };
573
+ export type GetConsignmentsForMetadataReviewQueryVariables = Exact<{
574
+ [key: string]: never;
575
+ }>;
576
+ export type GetConsignmentsForMetadataReviewQuery = {
577
+ getConsignmentsForMetadataReview: Array<{
578
+ consignmentid: unknown;
579
+ consignmentReference: string;
580
+ seriesName: string | null;
581
+ transferringBodyName: string | null;
582
+ consignmentStatuses: Array<{
583
+ statusType: string;
584
+ value: string;
585
+ createdDatetime: unknown;
586
+ modifiedDatetime: unknown;
587
+ }>;
588
+ }>;
589
+ };
590
+ export type GetConsignmentForMetadataReviewRequestQueryVariables = Exact<{
591
+ consignmentId: unknown;
592
+ }>;
593
+ export type GetConsignmentForMetadataReviewRequestQuery = {
594
+ getConsignment: {
595
+ userid: unknown;
596
+ consignmentReference: string;
597
+ seriesName: string | null;
598
+ transferringBodyName: string | null;
599
+ totalClosedRecords: number;
600
+ totalFiles: number;
601
+ } | null;
602
+ };
603
+ export type GetFileCheckProgressQueryVariables = Exact<{
604
+ consignmentId: unknown;
605
+ }>;
606
+ export type GetFileCheckProgressQuery = {
607
+ getConsignment: {
608
+ allChecksSucceeded: boolean;
609
+ parentFolder: string | null;
610
+ totalFiles: number;
611
+ files: Array<{
612
+ fileStatus: string | null;
613
+ }>;
614
+ fileChecks: {
615
+ antivirusProgress: {
616
+ filesProcessed: number;
617
+ };
618
+ checksumProgress: {
619
+ filesProcessed: number;
620
+ };
621
+ ffidProgress: {
622
+ filesProcessed: number;
623
+ };
624
+ };
625
+ } | null;
626
+ };
627
+ export type GetFileCheckProgressSummaryQueryVariables = Exact<{
628
+ consignmentId: unknown;
629
+ }>;
630
+ export type GetFileCheckProgressSummaryQuery = {
631
+ getConsignment: {
632
+ totalFiles: number;
633
+ fileChecks: {
634
+ antivirusProgress: {
635
+ filesProcessed: number;
636
+ };
637
+ checksumProgress: {
638
+ filesProcessed: number;
639
+ };
640
+ ffidProgress: {
641
+ filesProcessed: number;
642
+ };
643
+ };
644
+ } | null;
645
+ };
646
+ export type GetFilesWithUniqueAssetIdKeyQueryVariables = Exact<{
647
+ consignmentId: unknown;
648
+ fileFiltersInput: FileFilters;
649
+ }>;
650
+ export type GetFilesWithUniqueAssetIdKeyQuery = {
651
+ getConsignment: {
652
+ files: Array<{
653
+ fileId: unknown;
654
+ fileName: string | null;
655
+ metadata: {
656
+ clientSideOriginalFilePath: string | null;
657
+ clientSideLastModifiedDate: unknown;
658
+ };
659
+ }>;
660
+ } | null;
661
+ };
662
+ export type GetSeriesQueryVariables = Exact<{
663
+ body: string;
664
+ }>;
665
+ export type GetSeriesQuery = {
666
+ getSeries: Array<{
667
+ seriesid: unknown;
668
+ bodyid: unknown;
669
+ name: string;
670
+ code: string;
671
+ description: string | null;
672
+ }>;
673
+ };
674
+ export type StartUploadMutationVariables = Exact<{
675
+ input: StartUploadInput;
676
+ }>;
677
+ export type StartUploadMutation = {
678
+ startUpload: string;
679
+ };
680
+ export type UpdateClientSideDraftMetadataFileNameMutationVariables = Exact<{
681
+ updateClientSideDraftMetadataFileNameInput: UpdateClientSideDraftMetadataFileNameInput;
682
+ }>;
683
+ export type UpdateClientSideDraftMetadataFileNameMutation = {
684
+ updateClientSideDraftMetadataFileName: number | null;
685
+ };
686
+ export type UpdateConsignmentMetadataSchemaLibraryVersionMutationVariables = Exact<{
687
+ updateMetadataSchemaLibraryVersionInput: UpdateMetadataSchemaLibraryVersionInput;
688
+ }>;
689
+ export type UpdateConsignmentMetadataSchemaLibraryVersionMutation = {
690
+ updateConsignmentMetadataSchemaLibraryVersion: number | null;
691
+ };
692
+ export type UpdateConsignmentSeriesIdMutationVariables = Exact<{
693
+ updateConsginmentSeriesIdInput: UpdateConsignmentSeriesIdInput;
694
+ }>;
695
+ export type UpdateConsignmentSeriesIdMutation = {
696
+ updateConsignmentSeriesId: number | null;
697
+ };
698
+ export type UpdateConsignmentStatusMutationVariables = Exact<{
699
+ updateConsignmentStatusInput: ConsignmentStatusInput;
700
+ }>;
701
+ export type UpdateConsignmentStatusMutation = {
702
+ updateConsignmentStatus: number | null;
703
+ };
704
+ export type UpdateExportDataMutationVariables = Exact<{
705
+ updateExportDataInput: UpdateExportDataInput;
706
+ }>;
707
+ export type UpdateExportDataMutation = {
708
+ updateExportData: number | null;
709
+ };
710
+ export type UpdateParentFolderMutationVariables = Exact<{
711
+ updateParentFolderInput: UpdateParentFolderInput;
712
+ }>;
713
+ export type UpdateParentFolderMutation = {
714
+ updateParentFolder: number | null;
715
+ };
716
+ export type UpdateTransferInitiatedMutationVariables = Exact<{
717
+ consignmentId: unknown;
718
+ }>;
719
+ export type UpdateTransferInitiatedMutation = {
720
+ updateTransferInitiated: number | null;
721
+ };
722
+ export declare const AddBulkAntivirusMetadata: import("graphql/language/ast").DocumentNode;
723
+ export declare const AddBulkFfidMetadata: import("graphql/language/ast").DocumentNode;
724
+ export declare const AddConsignment: import("graphql/language/ast").DocumentNode;
725
+ export declare const AddConsignmentStatus: import("graphql/language/ast").DocumentNode;
726
+ export declare const AddFilesAndMetadata: import("graphql/language/ast").DocumentNode;
727
+ export declare const AddFinalTransferConfirmation: import("graphql/language/ast").DocumentNode;
728
+ export declare const AddMultipleFileMetadata: import("graphql/language/ast").DocumentNode;
729
+ export declare const AddMultipleFileStatuses: import("graphql/language/ast").DocumentNode;
730
+ export declare const AddOrUpdateBulkFileMetadata: import("graphql/language/ast").DocumentNode;
731
+ export declare const AddOrUpdateConsignmentMetadata: import("graphql/language/ast").DocumentNode;
732
+ export declare const AddTransferAgreementCompliance: import("graphql/language/ast").DocumentNode;
733
+ export declare const AddTransferAgreementPrivateBeta: import("graphql/language/ast").DocumentNode;
734
+ export declare const GetConsignment: import("graphql/language/ast").DocumentNode;
735
+ export declare const GetConsignmentDetailsForMetadataReview: import("graphql/language/ast").DocumentNode;
736
+ export declare const GetConsignmentForExport: import("graphql/language/ast").DocumentNode;
737
+ export declare const GetConsignmentFiles: import("graphql/language/ast").DocumentNode;
738
+ export declare const GetConsignmentFilesMetadata: import("graphql/language/ast").DocumentNode;
739
+ export declare const GetConsignmentFolderDetails: import("graphql/language/ast").DocumentNode;
740
+ export declare const GetConsignmentMetadata: import("graphql/language/ast").DocumentNode;
741
+ export declare const GetConsignmentPaginatedFiles: import("graphql/language/ast").DocumentNode;
742
+ export declare const GetConsignmentReference: import("graphql/language/ast").DocumentNode;
743
+ export declare const GetConsignmentReviewDetails: import("graphql/language/ast").DocumentNode;
744
+ export declare const GetConsignmentStatus: import("graphql/language/ast").DocumentNode;
745
+ export declare const GetConsignmentSummary: import("graphql/language/ast").DocumentNode;
746
+ export declare const GetConsignmentType: import("graphql/language/ast").DocumentNode;
747
+ export declare const GetConsignments: import("graphql/language/ast").DocumentNode;
748
+ export declare const GetConsignmentsForMetadataReview: import("graphql/language/ast").DocumentNode;
749
+ export declare const GetConsignmentForMetadataReviewRequest: import("graphql/language/ast").DocumentNode;
750
+ export declare const GetFileCheckProgress: import("graphql/language/ast").DocumentNode;
751
+ export declare const GetFileCheckProgressSummary: import("graphql/language/ast").DocumentNode;
752
+ export declare const GetFilesWithUniqueAssetIdKey: import("graphql/language/ast").DocumentNode;
753
+ export declare const GetSeries: import("graphql/language/ast").DocumentNode;
754
+ export declare const StartUpload: import("graphql/language/ast").DocumentNode;
755
+ export declare const UpdateClientSideDraftMetadataFileName: import("graphql/language/ast").DocumentNode;
756
+ export declare const UpdateConsignmentMetadataSchemaLibraryVersion: import("graphql/language/ast").DocumentNode;
757
+ export declare const UpdateConsignmentSeriesId: import("graphql/language/ast").DocumentNode;
758
+ export declare const UpdateConsignmentStatus: import("graphql/language/ast").DocumentNode;
759
+ export declare const UpdateExportData: import("graphql/language/ast").DocumentNode;
760
+ export declare const UpdateParentFolder: import("graphql/language/ast").DocumentNode;
761
+ export declare const UpdateTransferInitiated: import("graphql/language/ast").DocumentNode;
762
+ export {};
package/index.js ADDED
@@ -0,0 +1,488 @@
1
+ (()=>{"use strict";var e={974(e,t,n){n.r(t),n.d(t,{default:()=>he,disableExperimentalFragmentVariables:()=>ae,disableFragmentWarnings:()=>se,enableExperimentalFragmentVariables:()=>re,gql:()=>ne,resetCaches:()=>ie});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function s(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const r=/\r\n|[\n\r]/g;function a(e,t){let n=0,i=1;for(const a of e.body.matchAll(r)){if("number"==typeof a.index||s(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}function o(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,a=t.line+r,o=1===t.line?n:0,c=t.column+o,l=`${e.name}:${a}:${c}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[s];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return l+d([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+d([[a-1+" |",u[s-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,u[s+1]]])}function d(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class c extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:d,path:u,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=l(Array.isArray(r)?r:r?[r]:void 0);const m=l(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&o?d.map((e=>a(o,e))):null==m?void 0:m.map((e=>a(e.source,e.start)));const f="object"==typeof(I=null==p?void 0:p.extensions)&&null!==I?null==p?void 0:p.extensions:void 0;var I;this.extensions=null!==(s=null!=h?h:f)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+o((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+o(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function u(e,t,n){return new c(`Syntax Error: ${n}`,{source:e,positions:[t]})}class p{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(e,t,n,i,s,r){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=r,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var m,f,I,g;function E(e){return e>=48&&e<=57}function T(e){return e>=97&&e<=122||e>=65&&e<=90}function N(e){return T(e)||95===e}function C(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let t=0;t<e.length;++t){var r;const a=e[t],o=D(a);o!==a.length&&(i=null!==(r=i)&&void 0!==r?r:t,s=t,0!==t&&o<n&&(n=o))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,s+1)}function D(e){let t=0;for(;t<e.length&&(9===(n=e.charCodeAt(t))||32===n);)++t;var n;return t}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]})),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(m||(m={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(f||(f={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(I||(I={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(g||(g={}));class v{constructor(e){const t=new h(g.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==g.EOF)do{if(e.next)e=e.next;else{const t=x(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===g.COMMENT);return e}}function y(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function A(e,t){return O(e.charCodeAt(t))&&F(e.charCodeAt(t+1))}function O(e){return e>=55296&&e<=56319}function F(e){return e>=56320&&e<=57343}function S(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return g.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _(e,t,n,i,s){const r=e.line,a=1+n-e.lineStart;return new h(t,n,i,r,a,s)}function x(e,t){const n=e.source.body,i=n.length;let s=t;for(;s<i;){const t=n.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===n.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return k(e,s);case 33:return _(e,g.BANG,s,s+1);case 36:return _(e,g.DOLLAR,s,s+1);case 38:return _(e,g.AMP,s,s+1);case 40:return _(e,g.PAREN_L,s,s+1);case 41:return _(e,g.PAREN_R,s,s+1);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return _(e,g.SPREAD,s,s+3);break;case 58:return _(e,g.COLON,s,s+1);case 61:return _(e,g.EQUALS,s,s+1);case 64:return _(e,g.AT,s,s+1);case 91:return _(e,g.BRACKET_L,s,s+1);case 93:return _(e,g.BRACKET_R,s,s+1);case 123:return _(e,g.BRACE_L,s,s+1);case 124:return _(e,g.PIPE,s,s+1);case 125:return _(e,g.BRACE_R,s,s+1);case 34:return 34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)?B(e,s):b(e,s)}if(E(t)||45===t)return R(e,s,t);if(N(t))return V(e,s);throw u(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":y(t)||A(n,s)?`Unexpected character: ${S(e,s)}.`:`Invalid character: ${S(e,s)}.`)}return _(e,g.EOF,i,i)}function k(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i;){const e=n.charCodeAt(s);if(10===e||13===e)break;if(y(e))++s;else{if(!A(n,s))break;s+=2}}return _(e,g.COMMENT,t,s,n.slice(t+1,s))}function R(e,t,n){const i=e.source.body;let s=t,r=n,a=!1;if(45===r&&(r=i.charCodeAt(++s)),48===r){if(r=i.charCodeAt(++s),E(r))throw u(e.source,s,`Invalid number, unexpected digit after 0: ${S(e,s)}.`)}else s=M(e,s,r),r=i.charCodeAt(s);if(46===r&&(a=!0,r=i.charCodeAt(++s),s=M(e,s,r),r=i.charCodeAt(s)),69!==r&&101!==r||(a=!0,r=i.charCodeAt(++s),43!==r&&45!==r||(r=i.charCodeAt(++s)),s=M(e,s,r),r=i.charCodeAt(s)),46===r||N(r))throw u(e.source,s,`Invalid number, expected digit but got: ${S(e,s)}.`);return _(e,a?g.FLOAT:g.INT,t,s,i.slice(t,s))}function M(e,t,n){if(!E(n))throw u(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);const i=e.source.body;let s=t+1;for(;E(i.charCodeAt(s));)++s;return s}function b(e,t){const n=e.source.body,i=n.length;let s=t+1,r=s,a="";for(;s<i;){const i=n.charCodeAt(s);if(34===i)return a+=n.slice(r,s),_(e,g.STRING,t,s+1,a);if(92!==i){if(10===i||13===i)break;if(y(i))++s;else{if(!A(n,s))throw u(e.source,s,`Invalid character within String: ${S(e,s)}.`);s+=2}}else{a+=n.slice(r,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?L(e,s):U(e,s):$(e,s);a+=t.value,s+=t.size,r=s}}throw u(e.source,s,"Unterminated string.")}function L(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!y(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|w(e),i<0)break}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function U(e,t){const n=e.source.body,i=P(n,t+2);if(y(i))return{value:String.fromCodePoint(i),size:6};if(O(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=P(n,t+8);if(F(e))return{value:String.fromCodePoint(i,e),size:12}}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function P(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw u(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function B(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,r=t+3,a=r,o="";const d=[];for(;r<i;){const i=n.charCodeAt(r);if(34===i&&34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)){o+=n.slice(a,r),d.push(o);const i=_(e,g.BLOCK_STRING,t,r+3,C(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(r+1)||34!==n.charCodeAt(r+2)||34!==n.charCodeAt(r+3))if(10!==i&&13!==i)if(y(i))++r;else{if(!A(n,r))throw u(e.source,r,`Invalid character within String: ${S(e,r)}.`);r+=2}else o+=n.slice(a,r),d.push(o),13===i&&10===n.charCodeAt(r+1)?r+=2:++r,o="",a=r,s=r;else o+=n.slice(a,r),a=r+1,r+=4}throw u(e.source,r,"Unterminated string.")}function V(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&(T(r=n.charCodeAt(s))||E(r)||95===r);)++s;var r;return _(e,g.NAME,t,s,n.slice(t,s))}function G(e,t){if(!Boolean(e))throw new Error(t)}function j(e){return K(e,[])}function K(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:K(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(K(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=n.map((([e,n])=>e+": "+K(n,t)));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const q=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=j(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Y{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||G(!1,`Body must be a string. Received: ${j(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||G(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||G(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class J{constructor(e,t={}){const{lexer:n,...i}=t;if(n)this._lexer=n;else{const t=function(e){return q(e,Y)}(e)?e:new Y(e);this._lexer=new v(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(g.NAME);return this.node(e,{kind:I.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:I.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF)})}parseDefinition(){if(this.peek(g.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===g.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===g.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(g.BRACE_L))return this.node(e,{kind:I.OPERATION_DEFINITION,operation:m.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let i;return this.peek(g.NAME)&&(i=this.parseName()),this.node(e,{kind:I.OPERATION_DEFINITION,operation:n,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(g.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:I.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(g.DOLLAR),this.node(e,{kind:I.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:I.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R)})}parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(g.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:I.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(g.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?this.node(e,{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:I.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:I.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this.advanceLexer(),this.node(t,{kind:I.INT,value:t.value});case g.FLOAT:return this.advanceLexer(),this.node(t,{kind:I.FLOAT,value:t.value});case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:I.BOOLEAN,value:!0});case"false":return this.node(t,{kind:I.BOOLEAN,value:!1});case"null":return this.node(t,{kind:I.NULL});default:return this.node(t,{kind:I.ENUM,value:t.value})}case g.DOLLAR:if(e){if(this.expectToken(g.DOLLAR),this._lexer.token.kind===g.NAME){const e=this._lexer.token.value;throw u(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:I.STRING,value:e.value,block:e.kind===g.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:I.LIST,values:this.any(g.BRACKET_L,(()=>this.parseValueLiteral(e)),g.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:I.OBJECT,fields:this.any(g.BRACE_L,(()=>this.parseObjectField(e)),g.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(g.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(g.AT),this.node(t,{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(g.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(g.BRACKET_R),t=this.node(e,{kind:I.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(g.BANG)?this.node(e,{kind:I.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:I.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return this.node(e,{kind:I.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);const n=this.parseNamedType();return this.node(e,{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();return this.node(e,{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:r})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(g.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(g.COLON);const s=this.parseTypeReference(),r=this.parseConstDirectives();return this.node(e,{kind:I.FIELD_DEFINITION,description:t,name:n,arguments:i,type:s,directives:r})}parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(g.EQUALS)&&(s=this.parseConstValueLiteral());const r=this.parseConstDirectives();return this.node(e,{kind:I.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:s,directives:r})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();return this.node(e,{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:r})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:I.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:I.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:I.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${X(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(g.AT);const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:I.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);const n=this.parseName(),i=this.parseArgumentDefs(),s=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:I.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,directives:s,repeatable:r,locations:a})}parseDirectiveLocations(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(g.AT),n=this.parseName();let i,s;return!t&&this.expectOptionalToken(g.DOT)&&(i=this.parseName()),(t||i)&&this.expectOptionalToken(g.PAREN_L)&&(s=this.parseName(),this.expectToken(g.COLON),this.expectToken(g.PAREN_R)),t?s?this.node(e,{kind:I.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:s}):this.node(e,{kind:I.DIRECTIVE_COORDINATE,name:n}):i?s?this.node(e,{kind:I.ARGUMENT_COORDINATE,name:n,fieldName:i,argumentName:s}):this.node(e,{kind:I.MEMBER_COORDINATE,name:n,memberName:i}):this.node(e,{kind:I.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw u(this._lexer.source,t.start,`Expected ${Q(e)}, found ${X(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw u(this._lexer.source,t.start,`Expected "${e}", found ${X(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${X(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==g.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw u(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function X(e){const t=e.value;return Q(e.kind)+(null!=t?` "${t}"`:"")}function Q(e){return function(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.DOT||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?`"${e}"`:e}var z=new Map,W=new Map,H=!0,Z=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function te(e){var t,n,s,r=ee(e);if(!z.has(r)){var a=function(e,t){const n=new J(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}(e,{experimentalFragmentVariables:Z,allowLegacyFragmentVariables:Z});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");z.set(r,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,s=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=ee((a=e.loc).source.body.substring(a.start,a.end)),r=W.get(t);r&&!r.has(i)?H&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):r||W.set(t,r=new Set),r.add(i),n.has(i)||(n.add(i),s.push(e))}else s.push(e);var a})),i(i({},t),{definitions:s}))))}return z.get(r)}function ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]})),te(i)}function ie(){z.clear(),W.clear()}function se(){H=!1}function re(){Z=!0}function ae(){Z=!1}var oe,de=ne,ce=ie,le=se,ue=re,pe=ae;(oe=ne||(ne={})).gql=de,oe.resetCaches=ce,oe.disableFragmentWarnings=le,oe.enableExperimentalFragmentVariables=ue,oe.disableExperimentalFragmentVariables=pe,ne.default=ne;const he=ne},156(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTransferInitiated=t.UpdateParentFolder=t.UpdateExportData=t.UpdateConsignmentStatus=t.UpdateConsignmentSeriesId=t.UpdateConsignmentMetadataSchemaLibraryVersion=t.UpdateClientSideDraftMetadataFileName=t.StartUpload=t.GetSeries=t.GetFilesWithUniqueAssetIdKey=t.GetFileCheckProgressSummary=t.GetFileCheckProgress=t.GetConsignmentForMetadataReviewRequest=t.GetConsignmentsForMetadataReview=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReviewDetails=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentMetadata=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignmentDetailsForMetadataReview=t.GetConsignment=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddOrUpdateConsignmentMetadata=t.AddOrUpdateBulkFileMetadata=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFilesAndMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=void 0;const s=i(n(974));t.AddBulkAntivirusMetadata=s.default`
2
+ mutation addBulkAntivirusMetadata($input: AddAntivirusMetadataInput!) {
3
+ addBulkAntivirusMetadata(addBulkAntivirusMetadataInput: $input) {
4
+ fileId
5
+ software
6
+ softwareVersion
7
+ databaseVersion
8
+ result
9
+ datetime
10
+ }
11
+ }
12
+ `,t.AddBulkFfidMetadata=s.default`
13
+ mutation addBulkFFIDMetadata($addBulkFFIDMetadataInput: FFIDMetadataInput!) {
14
+ addBulkFFIDMetadata(addBulkFFIDMetadataInput: $addBulkFFIDMetadataInput) {
15
+ fileId
16
+ }
17
+ }
18
+ `,t.AddConsignment=s.default`
19
+ mutation addConsignment($addConsignmentInput: AddConsignmentInput!) {
20
+ addConsignment(addConsignmentInput: $addConsignmentInput) {
21
+ consignmentid
22
+ seriesid
23
+ consignmentReference
24
+ }
25
+ }
26
+ `,t.AddConsignmentStatus=s.default`
27
+ mutation addConsignmentStatus($addConsignmentStatusInput: ConsignmentStatusInput!) {
28
+ addConsignmentStatus(addConsignmentStatusInput: $addConsignmentStatusInput) {
29
+ consignmentStatusId
30
+ consignmentId
31
+ statusType
32
+ value
33
+ createdDatetime
34
+ modifiedDatetime
35
+ }
36
+ }
37
+ `,t.AddFilesAndMetadata=s.default`
38
+ mutation addFilesAndMetadata($input: AddFileAndMetadataInput!) {
39
+ addFilesAndMetadata(addFilesAndMetadataInput: $input) {
40
+ fileId
41
+ matchId
42
+ }
43
+ }
44
+ `,t.AddFinalTransferConfirmation=s.default`
45
+ mutation addFinalTransferConfirmation($input: AddFinalTransferConfirmationInput!) {
46
+ addFinalTransferConfirmation(addFinalTransferConfirmationInput: $input) {
47
+ consignmentId
48
+ legalCustodyTransferConfirmed
49
+ }
50
+ }
51
+ `,t.AddMultipleFileMetadata=s.default`
52
+ mutation addMultipleFileMetadata($addMultipleFileMetadataInput: AddFileMetadataWithFileIdInput!) {
53
+ addMultipleFileMetadata(
54
+ addMultipleFileMetadataInput: $addMultipleFileMetadataInput
55
+ ) {
56
+ fileId
57
+ value
58
+ }
59
+ }
60
+ `,t.AddMultipleFileStatuses=s.default`
61
+ mutation addMultipleFileStatuses($addMultipleFileStatusesInput: AddMultipleFileStatusesInput!) {
62
+ addMultipleFileStatuses(
63
+ addMultipleFileStatusesInput: $addMultipleFileStatusesInput
64
+ ) {
65
+ fileId
66
+ statusType
67
+ statusValue
68
+ }
69
+ }
70
+ `,t.AddOrUpdateBulkFileMetadata=s.default`
71
+ mutation addOrUpdateBulkFileMetadata($addOrUpdateBulkFileMetadataInput: AddOrUpdateBulkFileMetadataInput!) {
72
+ addOrUpdateBulkFileMetadata(
73
+ addOrUpdateBulkFileMetadataInput: $addOrUpdateBulkFileMetadataInput
74
+ ) {
75
+ filePropertyName
76
+ fileId
77
+ value
78
+ }
79
+ }
80
+ `,t.AddOrUpdateConsignmentMetadata=s.default`
81
+ mutation addOrUpdateConsignmentMetadata($addOrUpdateConsignmentMetadataInput: AddOrUpdateConsignmentMetadataInput!) {
82
+ addOrUpdateConsignmentMetadata(
83
+ addOrUpdateConsignmentMetadataInput: $addOrUpdateConsignmentMetadataInput
84
+ ) {
85
+ consignmentId
86
+ propertyName
87
+ value
88
+ }
89
+ }
90
+ `,t.AddTransferAgreementCompliance=s.default`
91
+ mutation addTransferAgreementCompliance($input: AddTransferAgreementComplianceInput!) {
92
+ addTransferAgreementCompliance(addTransferAgreementComplianceInput: $input) {
93
+ consignmentId
94
+ appraisalSelectionSignedOff
95
+ sensitivityReviewSignedOff
96
+ initialOpenRecords
97
+ }
98
+ }
99
+ `,t.AddTransferAgreementPrivateBeta=s.default`
100
+ mutation addTransferAgreementPrivateBeta($input: AddTransferAgreementPrivateBetaInput!) {
101
+ addTransferAgreementPrivateBeta(addTransferAgreementPrivateBetaInput: $input) {
102
+ consignmentId
103
+ allPublicRecords
104
+ }
105
+ }
106
+ `,t.GetConsignment=s.default`
107
+ query getConsignment($consignmentId: UUID!) {
108
+ getConsignment(consignmentid: $consignmentId) {
109
+ userid
110
+ seriesid
111
+ parentFolder
112
+ consignmentReference
113
+ parentFolderId
114
+ clientSideDraftMetadataFileName
115
+ transferringBodyName
116
+ consignmentStatuses {
117
+ statusType
118
+ value
119
+ }
120
+ }
121
+ }
122
+ `,t.GetConsignmentDetailsForMetadataReview=s.default`
123
+ query getConsignmentDetailsForMetadataReview($consignmentId: UUID!) {
124
+ getConsignment(consignmentid: $consignmentId) {
125
+ consignmentReference
126
+ seriesName
127
+ transferringBodyName
128
+ userid
129
+ totalClosedRecords
130
+ includeTopLevelFolder
131
+ totalFiles
132
+ consignmentMetadata {
133
+ propertyName
134
+ value
135
+ }
136
+ metadataReviewLogs {
137
+ metadataReviewLogId
138
+ consignmentId
139
+ userId
140
+ action
141
+ eventTime
142
+ metadataReviewNotes
143
+ }
144
+ }
145
+ }
146
+ `,t.GetConsignmentForExport=s.default`
147
+ query getConsignmentForExport($consignmentId: UUID!) {
148
+ getConsignment(consignmentid: $consignmentId) {
149
+ userid
150
+ createdDatetime
151
+ transferInitiatedDatetime
152
+ exportDatetime
153
+ consignmentReference
154
+ consignmentType
155
+ includeTopLevelFolder
156
+ seriesName
157
+ transferringBodyName
158
+ files {
159
+ fileId
160
+ fileType
161
+ fileName
162
+ fileReference
163
+ parentReference
164
+ originalFilePath
165
+ fileMetadata {
166
+ name
167
+ value
168
+ }
169
+ ffidMetadata {
170
+ software
171
+ softwareVersion
172
+ binarySignatureFileVersion
173
+ containerSignatureFileVersion
174
+ method
175
+ matches {
176
+ extension
177
+ identificationBasis
178
+ puid
179
+ fileExtensionMismatch
180
+ formatName
181
+ }
182
+ }
183
+ antivirusMetadata {
184
+ software
185
+ softwareVersion
186
+ }
187
+ }
188
+ metadataSchemaLibraryVersion
189
+ consignmentMetadata {
190
+ propertyName
191
+ value
192
+ }
193
+ }
194
+ }
195
+ `,t.GetConsignmentFiles=s.default`
196
+ query getConsignmentFiles($consignmentId: UUID!) {
197
+ getConsignment(consignmentid: $consignmentId) {
198
+ files {
199
+ fileId
200
+ fileName
201
+ fileType
202
+ parentId
203
+ metadata {
204
+ clientSideOriginalFilePath
205
+ }
206
+ fileStatuses {
207
+ statusType
208
+ statusValue
209
+ }
210
+ }
211
+ }
212
+ }
213
+ `,t.GetConsignmentFilesMetadata=s.default`
214
+ query getConsignmentFilesMetadata($consignmentId: UUID!, $fileFiltersInput: FileFilters) {
215
+ getConsignment(consignmentid: $consignmentId) {
216
+ files(fileFiltersInput: $fileFiltersInput) {
217
+ fileId
218
+ fileName
219
+ fileMetadata {
220
+ name
221
+ value
222
+ }
223
+ }
224
+ metadataReviewLogs {
225
+ metadataReviewLogId
226
+ consignmentId
227
+ userId
228
+ action
229
+ eventTime
230
+ }
231
+ consignmentReference
232
+ }
233
+ }
234
+ `,t.GetConsignmentFolderDetails=s.default`
235
+ query getConsignmentFolderDetails($consignmentId: UUID!) {
236
+ getConsignment(consignmentid: $consignmentId) {
237
+ totalFiles
238
+ parentFolder
239
+ }
240
+ }
241
+ `,t.GetConsignmentMetadata=s.default`
242
+ query getConsignmentMetadata($consignmentId: UUID!, $consignmentMetadataFiltersInput: ConsignmentMetadataFilter) {
243
+ getConsignment(consignmentid: $consignmentId) {
244
+ consignmentReference
245
+ consignmentMetadata(
246
+ consignmentMetadataFiltersInput: $consignmentMetadataFiltersInput
247
+ ) {
248
+ propertyName
249
+ value
250
+ }
251
+ }
252
+ }
253
+ `,t.GetConsignmentPaginatedFiles=s.default`
254
+ query getConsignmentPaginatedFiles($consignmentId: UUID!, $paginatedInput: PaginationInput) {
255
+ getConsignment(consignmentid: $consignmentId) {
256
+ parentFolder
257
+ parentFolderId
258
+ paginatedFiles(paginationInput: $paginatedInput) {
259
+ pageInfo {
260
+ startCursor
261
+ endCursor
262
+ hasNextPage
263
+ hasPreviousPage
264
+ }
265
+ edges {
266
+ node {
267
+ fileId
268
+ fileName
269
+ fileType
270
+ parentId
271
+ }
272
+ }
273
+ totalPages
274
+ totalItems
275
+ }
276
+ }
277
+ }
278
+ `,t.GetConsignmentReference=s.default`
279
+ query getConsignmentReference($consignmentId: UUID!) {
280
+ getConsignment(consignmentid: $consignmentId) {
281
+ consignmentReference
282
+ }
283
+ }
284
+ `,t.GetConsignmentReviewDetails=s.default`
285
+ query getConsignmentReviewDetails($statusFilter: String) {
286
+ getConsignmentReviewDetails(statusFilter: $statusFilter) {
287
+ consignmentId
288
+ consignmentReference
289
+ reviewStatus
290
+ transferringBodyName
291
+ seriesName
292
+ lastUpdated
293
+ }
294
+ }
295
+ `,t.GetConsignmentStatus=s.default`
296
+ query getConsignmentStatus($consignmentId: UUID!) {
297
+ getConsignment(consignmentid: $consignmentId) {
298
+ seriesid
299
+ seriesName
300
+ consignmentStatuses {
301
+ consignmentStatusId
302
+ consignmentId
303
+ statusType
304
+ value
305
+ createdDatetime
306
+ modifiedDatetime
307
+ }
308
+ }
309
+ }
310
+ `,t.GetConsignmentSummary=s.default`
311
+ query getConsignmentSummary($consignmentId: UUID!) {
312
+ getConsignment(consignmentid: $consignmentId) {
313
+ seriesName
314
+ transferringBodyName
315
+ totalFiles
316
+ consignmentReference
317
+ }
318
+ }
319
+ `,t.GetConsignmentType=s.default`
320
+ query getConsignmentType($consignmentId: UUID!) {
321
+ getConsignment(consignmentid: $consignmentId) {
322
+ consignmentType
323
+ }
324
+ }
325
+ `,t.GetConsignments=s.default`
326
+ query getConsignments($limit: Int!, $currentCursor: String, $currentPage: Int, $consignmentFiltersInput: ConsignmentFilters, $orderBy: ConsignmentOrderBy) {
327
+ consignments(
328
+ limit: $limit
329
+ currentCursor: $currentCursor
330
+ currentPage: $currentPage
331
+ consignmentFiltersInput: $consignmentFiltersInput
332
+ orderBy: $orderBy
333
+ ) {
334
+ edges {
335
+ node {
336
+ consignmentid
337
+ consignmentReference
338
+ consignmentType
339
+ exportDatetime
340
+ createdDatetime
341
+ consignmentStatuses {
342
+ consignmentStatusId
343
+ consignmentId
344
+ statusType
345
+ value
346
+ createdDatetime
347
+ modifiedDatetime
348
+ }
349
+ totalFiles
350
+ }
351
+ cursor
352
+ }
353
+ pageInfo {
354
+ hasNextPage
355
+ endCursor
356
+ }
357
+ totalPages(limit: $limit, consignmentFiltersInput: $consignmentFiltersInput)
358
+ }
359
+ }
360
+ `,t.GetConsignmentsForMetadataReview=s.default`
361
+ query getConsignmentsForMetadataReview {
362
+ getConsignmentsForMetadataReview {
363
+ consignmentid
364
+ consignmentReference
365
+ seriesName
366
+ transferringBodyName
367
+ consignmentStatuses {
368
+ statusType
369
+ value
370
+ createdDatetime
371
+ modifiedDatetime
372
+ }
373
+ }
374
+ }
375
+ `,t.GetConsignmentForMetadataReviewRequest=s.default`
376
+ query getConsignmentForMetadataReviewRequest($consignmentId: UUID!) {
377
+ getConsignment(consignmentid: $consignmentId) {
378
+ userid
379
+ consignmentReference
380
+ seriesName
381
+ transferringBodyName
382
+ totalClosedRecords
383
+ totalFiles
384
+ }
385
+ }
386
+ `,t.GetFileCheckProgress=s.default`
387
+ query getFileCheckProgress($consignmentId: UUID!) {
388
+ getConsignment(consignmentid: $consignmentId) {
389
+ allChecksSucceeded
390
+ parentFolder
391
+ totalFiles
392
+ files {
393
+ fileStatus
394
+ }
395
+ fileChecks {
396
+ antivirusProgress {
397
+ filesProcessed
398
+ }
399
+ checksumProgress {
400
+ filesProcessed
401
+ }
402
+ ffidProgress {
403
+ filesProcessed
404
+ }
405
+ }
406
+ }
407
+ }
408
+ `,t.GetFileCheckProgressSummary=s.default`
409
+ query getFileCheckProgressSummary($consignmentId: UUID!) {
410
+ getConsignment(consignmentid: $consignmentId) {
411
+ totalFiles
412
+ fileChecks {
413
+ antivirusProgress {
414
+ filesProcessed
415
+ }
416
+ checksumProgress {
417
+ filesProcessed
418
+ }
419
+ ffidProgress {
420
+ filesProcessed
421
+ }
422
+ }
423
+ }
424
+ }
425
+ `,t.GetFilesWithUniqueAssetIdKey=s.default`
426
+ query getFilesWithUniqueAssetIdKey($consignmentId: UUID!, $fileFiltersInput: FileFilters!) {
427
+ getConsignment(consignmentid: $consignmentId) {
428
+ files(fileFiltersInput: $fileFiltersInput) {
429
+ fileId
430
+ fileName
431
+ metadata {
432
+ clientSideOriginalFilePath
433
+ clientSideLastModifiedDate
434
+ }
435
+ }
436
+ }
437
+ }
438
+ `,t.GetSeries=s.default`
439
+ query getSeries($body: String!) {
440
+ getSeries(body: $body) {
441
+ seriesid
442
+ bodyid
443
+ name
444
+ code
445
+ description
446
+ }
447
+ }
448
+ `,t.StartUpload=s.default`
449
+ mutation startUpload($input: StartUploadInput!) {
450
+ startUpload(startUploadInput: $input)
451
+ }
452
+ `,t.UpdateClientSideDraftMetadataFileName=s.default`
453
+ mutation updateClientSideDraftMetadataFileName($updateClientSideDraftMetadataFileNameInput: UpdateClientSideDraftMetadataFileNameInput!) {
454
+ updateClientSideDraftMetadataFileName(
455
+ updateClientSideDraftMetadataFileName: $updateClientSideDraftMetadataFileNameInput
456
+ )
457
+ }
458
+ `,t.UpdateConsignmentMetadataSchemaLibraryVersion=s.default`
459
+ mutation updateConsignmentMetadataSchemaLibraryVersion($updateMetadataSchemaLibraryVersionInput: UpdateMetadataSchemaLibraryVersionInput!) {
460
+ updateConsignmentMetadataSchemaLibraryVersion(
461
+ updateMetadataSchemaLibraryVersion: $updateMetadataSchemaLibraryVersionInput
462
+ )
463
+ }
464
+ `,t.UpdateConsignmentSeriesId=s.default`
465
+ mutation updateConsignmentSeriesId($updateConsginmentSeriesIdInput: UpdateConsignmentSeriesIdInput!) {
466
+ updateConsignmentSeriesId(
467
+ updateConsignmentSeriesId: $updateConsginmentSeriesIdInput
468
+ )
469
+ }
470
+ `,t.UpdateConsignmentStatus=s.default`
471
+ mutation updateConsignmentStatus($updateConsignmentStatusInput: ConsignmentStatusInput!) {
472
+ updateConsignmentStatus(
473
+ updateConsignmentStatusInput: $updateConsignmentStatusInput
474
+ )
475
+ }
476
+ `,t.UpdateExportData=s.default`
477
+ mutation updateExportData($updateExportDataInput: UpdateExportDataInput!) {
478
+ updateExportData(exportData: $updateExportDataInput)
479
+ }
480
+ `,t.UpdateParentFolder=s.default`
481
+ mutation updateParentFolder($updateParentFolderInput: UpdateParentFolderInput!) {
482
+ updateParentFolder(updateParentFolderInput: $updateParentFolderInput)
483
+ }
484
+ `,t.UpdateTransferInitiated=s.default`
485
+ mutation updateTransferInitiated($consignmentId: UUID!) {
486
+ updateTransferInitiated(consignmentid: $consignmentId)
487
+ }
488
+ `}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=n(156);module.exports=i})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/tdr-generated-graphql",
3
- "version": "1.0.568",
3
+ "version": "1.0.569",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {