@nationalarchives/tdr-generated-graphql 1.0.227 → 1.0.228

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 +921 -0
  2. package/index.js +306 -0
  3. package/package.json +1 -2
package/index.d.ts ADDED
@@ -0,0 +1,921 @@
1
+ export declare type Maybe<T> = T | null;
2
+ export declare type InputMaybe<T> = Maybe<T>;
3
+ export declare type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ export declare type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
+ [SubKey in K]?: Maybe<T[SubKey]>;
10
+ };
11
+ export declare type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
+ [SubKey in K]: Maybe<T[SubKey]>;
13
+ };
14
+ /** All built-in and custom scalars, mapped to their actual values */
15
+ export declare type Scalars = {
16
+ ID: string;
17
+ String: string;
18
+ Boolean: boolean;
19
+ Int: number;
20
+ Float: number;
21
+ LocalDateTime: any;
22
+ /** The `Long` scalar type represents non-fractional signed whole numeric values. Long can represent values between -(2^63) and 2^63 - 1. */
23
+ Long: number;
24
+ UUID: any;
25
+ ZonedDateTime: any;
26
+ };
27
+ export declare type AddAntivirusMetadataInput = {
28
+ databaseVersion: Scalars['String'];
29
+ datetime: Scalars['Long'];
30
+ fileId: Scalars['UUID'];
31
+ result: Scalars['String'];
32
+ software: Scalars['String'];
33
+ softwareVersion: Scalars['String'];
34
+ };
35
+ export declare type AddBulkFileMetadataInput = {
36
+ fileIds: Array<Scalars['UUID']>;
37
+ metadataProperties: Array<AddFileMetadataInput>;
38
+ };
39
+ export declare type AddConsignmentInput = {
40
+ consignmentType: Scalars['String'];
41
+ seriesid?: InputMaybe<Scalars['UUID']>;
42
+ };
43
+ export declare type AddFileAndMetadataInput = {
44
+ consignmentId: Scalars['UUID'];
45
+ emptyDirectories?: InputMaybe<Array<Scalars['String']>>;
46
+ metadataInput: Array<ClientSideMetadataInput>;
47
+ };
48
+ export declare type AddFileMetadataInput = {
49
+ filePropertyName: Scalars['String'];
50
+ value: Scalars['String'];
51
+ };
52
+ export declare type AddFileMetadataWithFileIdInput = {
53
+ fileId: Scalars['UUID'];
54
+ filePropertyName: Scalars['String'];
55
+ value: Scalars['String'];
56
+ };
57
+ export declare type AddFinalJudgmentTransferConfirmationInput = {
58
+ consignmentId: Scalars['UUID'];
59
+ legalCustodyTransferConfirmed: Scalars['Boolean'];
60
+ };
61
+ export declare type AddFinalTransferConfirmationInput = {
62
+ consignmentId: Scalars['UUID'];
63
+ finalOpenRecordsConfirmed: Scalars['Boolean'];
64
+ legalCustodyTransferConfirmed: Scalars['Boolean'];
65
+ };
66
+ export declare type AddTransferAgreementComplianceInput = {
67
+ appraisalSelectionSignedOff: Scalars['Boolean'];
68
+ consignmentId: Scalars['UUID'];
69
+ initialOpenRecords: Scalars['Boolean'];
70
+ sensitivityReviewSignedOff: Scalars['Boolean'];
71
+ };
72
+ export declare type AddTransferAgreementPrivateBetaInput = {
73
+ allCrownCopyright: Scalars['Boolean'];
74
+ allEnglish: Scalars['Boolean'];
75
+ allPublicRecords: Scalars['Boolean'];
76
+ consignmentId: Scalars['UUID'];
77
+ };
78
+ export declare type AntivirusMetadata = {
79
+ __typename?: 'AntivirusMetadata';
80
+ databaseVersion: Scalars['String'];
81
+ datetime: Scalars['Long'];
82
+ fileId: Scalars['UUID'];
83
+ result: Scalars['String'];
84
+ software: Scalars['String'];
85
+ softwareVersion: Scalars['String'];
86
+ };
87
+ export declare type AntivirusProgress = {
88
+ __typename?: 'AntivirusProgress';
89
+ filesProcessed: Scalars['Int'];
90
+ };
91
+ export declare type BulkFileMetadata = {
92
+ __typename?: 'BulkFileMetadata';
93
+ fileIds: Array<Scalars['UUID']>;
94
+ metadataProperties: Array<FileMetadata>;
95
+ };
96
+ export declare type ChecksumProgress = {
97
+ __typename?: 'ChecksumProgress';
98
+ filesProcessed: Scalars['Int'];
99
+ };
100
+ export declare type ClientFileMetadata = {
101
+ __typename?: 'ClientFileMetadata';
102
+ checksum?: Maybe<Scalars['String']>;
103
+ checksumType?: Maybe<Scalars['String']>;
104
+ fileId: Scalars['UUID'];
105
+ fileSize?: Maybe<Scalars['Long']>;
106
+ lastModified: Scalars['Long'];
107
+ originalPath?: Maybe<Scalars['String']>;
108
+ };
109
+ export declare type ClientSideMetadataInput = {
110
+ checksum: Scalars['String'];
111
+ fileSize: Scalars['Long'];
112
+ lastModified: Scalars['Long'];
113
+ matchId: Scalars['Long'];
114
+ originalPath: Scalars['String'];
115
+ };
116
+ export declare type Consignment = {
117
+ __typename?: 'Consignment';
118
+ allChecksSucceeded: Scalars['Boolean'];
119
+ consignmentReference: Scalars['String'];
120
+ consignmentType?: Maybe<Scalars['String']>;
121
+ consignmentid?: Maybe<Scalars['UUID']>;
122
+ createdDatetime?: Maybe<Scalars['ZonedDateTime']>;
123
+ currentStatus: CurrentStatus;
124
+ exportDatetime?: Maybe<Scalars['ZonedDateTime']>;
125
+ exportLocation?: Maybe<Scalars['String']>;
126
+ fileChecks: FileChecks;
127
+ files: Array<File>;
128
+ paginatedFiles: FileConnection;
129
+ parentFolder?: Maybe<Scalars['String']>;
130
+ parentFolderId?: Maybe<Scalars['UUID']>;
131
+ series?: Maybe<Series>;
132
+ seriesid?: Maybe<Scalars['UUID']>;
133
+ totalFiles: Scalars['Int'];
134
+ transferInitiatedDatetime?: Maybe<Scalars['ZonedDateTime']>;
135
+ transferringBody?: Maybe<TransferringBody>;
136
+ userid: Scalars['UUID'];
137
+ };
138
+ export declare type ConsignmentPaginatedFilesArgs = {
139
+ paginationInput?: InputMaybe<PaginationInput>;
140
+ };
141
+ /** A connection to a list of items. */
142
+ export declare type ConsignmentConnection = {
143
+ __typename?: 'ConsignmentConnection';
144
+ /** A list of edges. */
145
+ edges?: Maybe<Array<Maybe<ConsignmentEdge>>>;
146
+ /** Information to aid in pagination. */
147
+ pageInfo: PageInfo;
148
+ };
149
+ /** An edge in a connection. */
150
+ export declare type ConsignmentEdge = {
151
+ __typename?: 'ConsignmentEdge';
152
+ /** A cursor for use in pagination. */
153
+ cursor: Scalars['String'];
154
+ /** The item at the end of the edge. */
155
+ node: Consignment;
156
+ };
157
+ export declare type ConsignmentStatus = {
158
+ __typename?: 'ConsignmentStatus';
159
+ consignmentId: Scalars['UUID'];
160
+ consignmentStatusId: Scalars['UUID'];
161
+ createdDatetime: Scalars['ZonedDateTime'];
162
+ modifiedDatetime?: Maybe<Scalars['ZonedDateTime']>;
163
+ statusType: Scalars['String'];
164
+ value: Scalars['String'];
165
+ };
166
+ export declare type ConsignmentStatusInput = {
167
+ consignmentId: Scalars['UUID'];
168
+ statusType: Scalars['String'];
169
+ statusValue: Scalars['String'];
170
+ };
171
+ export declare type CurrentStatus = {
172
+ __typename?: 'CurrentStatus';
173
+ confirmTransfer?: Maybe<Scalars['String']>;
174
+ export?: Maybe<Scalars['String']>;
175
+ series?: Maybe<Scalars['String']>;
176
+ transferAgreement?: Maybe<Scalars['String']>;
177
+ upload?: Maybe<Scalars['String']>;
178
+ };
179
+ export declare type CustomMetadataField = {
180
+ __typename?: 'CustomMetadataField';
181
+ dataType: DataType;
182
+ defaultValue?: Maybe<Scalars['String']>;
183
+ description?: Maybe<Scalars['String']>;
184
+ editable: Scalars['Boolean'];
185
+ fullName?: Maybe<Scalars['String']>;
186
+ multiValue: Scalars['Boolean'];
187
+ name: Scalars['String'];
188
+ propertyGroup?: Maybe<Scalars['String']>;
189
+ propertyType: PropertyType;
190
+ values: Array<CustomMetadataValues>;
191
+ };
192
+ export declare type CustomMetadataValues = {
193
+ __typename?: 'CustomMetadataValues';
194
+ dependencies: Array<CustomMetadataField>;
195
+ value: Scalars['String'];
196
+ };
197
+ export declare enum DataType {
198
+ DateTime = "DateTime",
199
+ Decimal = "Decimal",
200
+ Integer = "Integer",
201
+ Text = "Text"
202
+ }
203
+ export declare type FfidMetadata = {
204
+ __typename?: 'FFIDMetadata';
205
+ binarySignatureFileVersion: Scalars['String'];
206
+ containerSignatureFileVersion: Scalars['String'];
207
+ datetime: Scalars['Long'];
208
+ fileId: Scalars['UUID'];
209
+ matches: Array<FfidMetadataMatches>;
210
+ method: Scalars['String'];
211
+ software: Scalars['String'];
212
+ softwareVersion: Scalars['String'];
213
+ };
214
+ export declare type FfidMetadataInput = {
215
+ binarySignatureFileVersion: Scalars['String'];
216
+ containerSignatureFileVersion: Scalars['String'];
217
+ fileId: Scalars['UUID'];
218
+ matches: Array<FfidMetadataInputMatches>;
219
+ method: Scalars['String'];
220
+ software: Scalars['String'];
221
+ softwareVersion: Scalars['String'];
222
+ };
223
+ export declare type FfidMetadataInputMatches = {
224
+ extension?: InputMaybe<Scalars['String']>;
225
+ identificationBasis: Scalars['String'];
226
+ puid?: InputMaybe<Scalars['String']>;
227
+ };
228
+ export declare type FfidMetadataMatches = {
229
+ __typename?: 'FFIDMetadataMatches';
230
+ extension?: Maybe<Scalars['String']>;
231
+ identificationBasis: Scalars['String'];
232
+ puid?: Maybe<Scalars['String']>;
233
+ };
234
+ export declare type FfidProgress = {
235
+ __typename?: 'FFIDProgress';
236
+ filesProcessed: Scalars['Int'];
237
+ };
238
+ export declare type File = {
239
+ __typename?: 'File';
240
+ antivirusMetadata?: Maybe<AntivirusMetadata>;
241
+ ffidMetadata?: Maybe<FfidMetadata>;
242
+ fileId: Scalars['UUID'];
243
+ fileName?: Maybe<Scalars['String']>;
244
+ fileStatus?: Maybe<Scalars['String']>;
245
+ fileType?: Maybe<Scalars['String']>;
246
+ metadata: FileMetadataValues;
247
+ parentId?: Maybe<Scalars['UUID']>;
248
+ };
249
+ export declare type FileChecks = {
250
+ __typename?: 'FileChecks';
251
+ antivirusProgress: AntivirusProgress;
252
+ checksumProgress: ChecksumProgress;
253
+ ffidProgress: FfidProgress;
254
+ };
255
+ /** A connection to a list of items. */
256
+ export declare type FileConnection = {
257
+ __typename?: 'FileConnection';
258
+ /** A list of edges. */
259
+ edges?: Maybe<Array<Maybe<FileEdge>>>;
260
+ /** Information to aid in pagination. */
261
+ pageInfo: PageInfo;
262
+ };
263
+ /** An edge in a connection. */
264
+ export declare type FileEdge = {
265
+ __typename?: 'FileEdge';
266
+ /** A cursor for use in pagination. */
267
+ cursor: Scalars['String'];
268
+ /** The item at the end of the edge. */
269
+ node: File;
270
+ };
271
+ export declare type FileMatches = {
272
+ __typename?: 'FileMatches';
273
+ fileId: Scalars['UUID'];
274
+ matchId: Scalars['Long'];
275
+ };
276
+ export declare type FileMetadata = {
277
+ __typename?: 'FileMetadata';
278
+ filePropertyName: Scalars['String'];
279
+ value: Scalars['String'];
280
+ };
281
+ export declare type FileMetadataValues = {
282
+ __typename?: 'FileMetadataValues';
283
+ clientSideFileSize?: Maybe<Scalars['Long']>;
284
+ clientSideLastModifiedDate?: Maybe<Scalars['LocalDateTime']>;
285
+ clientSideOriginalFilePath?: Maybe<Scalars['String']>;
286
+ foiExemptionCode?: Maybe<Scalars['String']>;
287
+ heldBy?: Maybe<Scalars['String']>;
288
+ language?: Maybe<Scalars['String']>;
289
+ legalStatus?: Maybe<Scalars['String']>;
290
+ rightsCopyright?: Maybe<Scalars['String']>;
291
+ sha256ClientSideChecksum?: Maybe<Scalars['String']>;
292
+ };
293
+ export declare type FileMetadataWithFileId = {
294
+ __typename?: 'FileMetadataWithFileId';
295
+ fileId: Scalars['UUID'];
296
+ filePropertyName: Scalars['String'];
297
+ value: Scalars['String'];
298
+ };
299
+ export declare type FinalJudgmentTransferConfirmation = {
300
+ __typename?: 'FinalJudgmentTransferConfirmation';
301
+ consignmentId: Scalars['UUID'];
302
+ legalCustodyTransferConfirmed: Scalars['Boolean'];
303
+ };
304
+ export declare type FinalTransferConfirmation = {
305
+ __typename?: 'FinalTransferConfirmation';
306
+ consignmentId: Scalars['UUID'];
307
+ finalOpenRecordsConfirmed: Scalars['Boolean'];
308
+ legalCustodyTransferConfirmed: Scalars['Boolean'];
309
+ };
310
+ export declare type Mutation = {
311
+ __typename?: 'Mutation';
312
+ addAntivirusMetadata: AntivirusMetadata;
313
+ addBulkFileMetadata: BulkFileMetadata;
314
+ addConsignment: Consignment;
315
+ addConsignmentStatus: ConsignmentStatus;
316
+ addFFIDMetadata: FfidMetadata;
317
+ addFileMetadata: FileMetadataWithFileId;
318
+ addFilesAndMetadata: Array<FileMatches>;
319
+ addFinalJudgmentTransferConfirmation: FinalJudgmentTransferConfirmation;
320
+ addFinalTransferConfirmation: FinalTransferConfirmation;
321
+ addTransferAgreementCompliance: TransferAgreementCompliance;
322
+ addTransferAgreementPrivateBeta: TransferAgreementPrivateBeta;
323
+ startUpload: Scalars['String'];
324
+ updateConsignmentSeriesId?: Maybe<Scalars['Int']>;
325
+ updateConsignmentStatus?: Maybe<Scalars['Int']>;
326
+ updateExportData?: Maybe<Scalars['Int']>;
327
+ updateTransferInitiated?: Maybe<Scalars['Int']>;
328
+ };
329
+ export declare type MutationAddAntivirusMetadataArgs = {
330
+ addAntivirusMetadataInput: AddAntivirusMetadataInput;
331
+ };
332
+ export declare type MutationAddBulkFileMetadataArgs = {
333
+ addBulkFileMetadataInput: AddBulkFileMetadataInput;
334
+ };
335
+ export declare type MutationAddConsignmentArgs = {
336
+ addConsignmentInput: AddConsignmentInput;
337
+ };
338
+ export declare type MutationAddConsignmentStatusArgs = {
339
+ addConsignmentStatusInput: ConsignmentStatusInput;
340
+ };
341
+ export declare type MutationAddFfidMetadataArgs = {
342
+ addFFIDMetadataInput: FfidMetadataInput;
343
+ };
344
+ export declare type MutationAddFileMetadataArgs = {
345
+ addFileMetadataWithFileIdInput: AddFileMetadataWithFileIdInput;
346
+ };
347
+ export declare type MutationAddFilesAndMetadataArgs = {
348
+ addFilesAndMetadataInput: AddFileAndMetadataInput;
349
+ };
350
+ export declare type MutationAddFinalJudgmentTransferConfirmationArgs = {
351
+ addFinalJudgmentTransferConfirmationInput: AddFinalJudgmentTransferConfirmationInput;
352
+ };
353
+ export declare type MutationAddFinalTransferConfirmationArgs = {
354
+ addFinalTransferConfirmationInput: AddFinalTransferConfirmationInput;
355
+ };
356
+ export declare type MutationAddTransferAgreementComplianceArgs = {
357
+ addTransferAgreementComplianceInput: AddTransferAgreementComplianceInput;
358
+ };
359
+ export declare type MutationAddTransferAgreementPrivateBetaArgs = {
360
+ addTransferAgreementPrivateBetaInput: AddTransferAgreementPrivateBetaInput;
361
+ };
362
+ export declare type MutationStartUploadArgs = {
363
+ startUploadInput: StartUploadInput;
364
+ };
365
+ export declare type MutationUpdateConsignmentSeriesIdArgs = {
366
+ updateConsignmentSeriesId: UpdateConsignmentSeriesIdInput;
367
+ };
368
+ export declare type MutationUpdateConsignmentStatusArgs = {
369
+ updateConsignmentStatusInput: ConsignmentStatusInput;
370
+ };
371
+ export declare type MutationUpdateExportDataArgs = {
372
+ exportData: UpdateExportDataInput;
373
+ };
374
+ export declare type MutationUpdateTransferInitiatedArgs = {
375
+ consignmentid: Scalars['UUID'];
376
+ };
377
+ /** Information about pagination in a connection. */
378
+ export declare type PageInfo = {
379
+ __typename?: 'PageInfo';
380
+ /** When paginating forwards, the cursor to continue. */
381
+ endCursor?: Maybe<Scalars['String']>;
382
+ /** When paginating forwards, are there more items? */
383
+ hasNextPage: Scalars['Boolean'];
384
+ /** When paginating backwards, are there more items? */
385
+ hasPreviousPage: Scalars['Boolean'];
386
+ /** When paginating backwards, the cursor to continue. */
387
+ startCursor?: Maybe<Scalars['String']>;
388
+ };
389
+ export declare type PaginationInput = {
390
+ currentCursor?: InputMaybe<Scalars['String']>;
391
+ limit: Scalars['Int'];
392
+ };
393
+ export declare enum PropertyType {
394
+ Defined = "Defined",
395
+ Supplied = "Supplied",
396
+ System = "System"
397
+ }
398
+ export declare type Query = {
399
+ __typename?: 'Query';
400
+ consignments: ConsignmentConnection;
401
+ getClientFileMetadata: ClientFileMetadata;
402
+ getClosureMetadata: Array<CustomMetadataField>;
403
+ getConsignment?: Maybe<Consignment>;
404
+ getSeries: Array<Series>;
405
+ };
406
+ export declare type QueryConsignmentsArgs = {
407
+ currentCursor?: InputMaybe<Scalars['String']>;
408
+ limit: Scalars['Int'];
409
+ };
410
+ export declare type QueryGetClientFileMetadataArgs = {
411
+ fileId: Scalars['UUID'];
412
+ };
413
+ export declare type QueryGetClosureMetadataArgs = {
414
+ consignmentid: Scalars['UUID'];
415
+ };
416
+ export declare type QueryGetConsignmentArgs = {
417
+ consignmentid: Scalars['UUID'];
418
+ paginationInput?: InputMaybe<PaginationInput>;
419
+ };
420
+ export declare type QueryGetSeriesArgs = {
421
+ body: Scalars['String'];
422
+ };
423
+ export declare type Series = {
424
+ __typename?: 'Series';
425
+ bodyid: Scalars['UUID'];
426
+ code: Scalars['String'];
427
+ description?: Maybe<Scalars['String']>;
428
+ name: Scalars['String'];
429
+ seriesid: Scalars['UUID'];
430
+ };
431
+ export declare type StartUploadInput = {
432
+ consignmentId: Scalars['UUID'];
433
+ parentFolder: Scalars['String'];
434
+ };
435
+ export declare type TransferAgreementCompliance = {
436
+ __typename?: 'TransferAgreementCompliance';
437
+ appraisalSelectionSignedOff: Scalars['Boolean'];
438
+ consignmentId: Scalars['UUID'];
439
+ initialOpenRecords: Scalars['Boolean'];
440
+ sensitivityReviewSignedOff: Scalars['Boolean'];
441
+ };
442
+ export declare type TransferAgreementPrivateBeta = {
443
+ __typename?: 'TransferAgreementPrivateBeta';
444
+ allCrownCopyright: Scalars['Boolean'];
445
+ allEnglish: Scalars['Boolean'];
446
+ allPublicRecords: Scalars['Boolean'];
447
+ consignmentId: Scalars['UUID'];
448
+ };
449
+ export declare type TransferringBody = {
450
+ __typename?: 'TransferringBody';
451
+ name: Scalars['String'];
452
+ tdrCode: Scalars['String'];
453
+ };
454
+ export declare type UpdateConsignmentSeriesIdInput = {
455
+ consignmentId: Scalars['UUID'];
456
+ seriesId: Scalars['UUID'];
457
+ };
458
+ export declare type UpdateExportDataInput = {
459
+ consignmentId: Scalars['UUID'];
460
+ exportDatetime?: InputMaybe<Scalars['ZonedDateTime']>;
461
+ exportLocation: Scalars['String'];
462
+ exportVersion: Scalars['String'];
463
+ };
464
+ export declare type AddAntivirusMetadataMutationVariables = Exact<{
465
+ input: AddAntivirusMetadataInput;
466
+ }>;
467
+ export declare type AddAntivirusMetadataMutation = {
468
+ __typename?: 'Mutation';
469
+ addAntivirusMetadata: {
470
+ __typename?: 'AntivirusMetadata';
471
+ fileId: any;
472
+ software: string;
473
+ softwareVersion: string;
474
+ databaseVersion: string;
475
+ result: string;
476
+ datetime: number;
477
+ };
478
+ };
479
+ export declare type AddConsignmentMutationVariables = Exact<{
480
+ addConsignmentInput: AddConsignmentInput;
481
+ }>;
482
+ export declare type AddConsignmentMutation = {
483
+ __typename?: 'Mutation';
484
+ addConsignment: {
485
+ __typename?: 'Consignment';
486
+ consignmentid?: any | null;
487
+ seriesid?: any | null;
488
+ };
489
+ };
490
+ export declare type AddConsignmentStatusMutationVariables = Exact<{
491
+ addConsignmentStatusInput: ConsignmentStatusInput;
492
+ }>;
493
+ export declare type AddConsignmentStatusMutation = {
494
+ __typename?: 'Mutation';
495
+ addConsignmentStatus: {
496
+ __typename?: 'ConsignmentStatus';
497
+ consignmentStatusId: any;
498
+ consignmentId: any;
499
+ statusType: string;
500
+ value: string;
501
+ createdDatetime: any;
502
+ modifiedDatetime?: any | null;
503
+ };
504
+ };
505
+ export declare type AddFfidMetadataMutationVariables = Exact<{
506
+ addFFIDMetadataInput: FfidMetadataInput;
507
+ }>;
508
+ export declare type AddFfidMetadataMutation = {
509
+ __typename?: 'Mutation';
510
+ addFFIDMetadata: {
511
+ __typename?: 'FFIDMetadata';
512
+ fileId: any;
513
+ };
514
+ };
515
+ export declare type AddFileMetadataMutationVariables = Exact<{
516
+ addFileMetadataWithFileIdInput: AddFileMetadataWithFileIdInput;
517
+ }>;
518
+ export declare type AddFileMetadataMutation = {
519
+ __typename?: 'Mutation';
520
+ addFileMetadata: {
521
+ __typename?: 'FileMetadataWithFileId';
522
+ fileId: any;
523
+ value: string;
524
+ };
525
+ };
526
+ export declare type AddFilesAndMetadataMutationVariables = Exact<{
527
+ input: AddFileAndMetadataInput;
528
+ }>;
529
+ export declare type AddFilesAndMetadataMutation = {
530
+ __typename?: 'Mutation';
531
+ addFilesAndMetadata: Array<{
532
+ __typename?: 'FileMatches';
533
+ fileId: any;
534
+ matchId: number;
535
+ }>;
536
+ };
537
+ export declare type AddFinalJudgmentTransferConfirmationMutationVariables = Exact<{
538
+ input: AddFinalJudgmentTransferConfirmationInput;
539
+ }>;
540
+ export declare type AddFinalJudgmentTransferConfirmationMutation = {
541
+ __typename?: 'Mutation';
542
+ addFinalJudgmentTransferConfirmation: {
543
+ __typename?: 'FinalJudgmentTransferConfirmation';
544
+ consignmentId: any;
545
+ legalCustodyTransferConfirmed: boolean;
546
+ };
547
+ };
548
+ export declare type AddFinalTransferConfirmationMutationVariables = Exact<{
549
+ input: AddFinalTransferConfirmationInput;
550
+ }>;
551
+ export declare type AddFinalTransferConfirmationMutation = {
552
+ __typename?: 'Mutation';
553
+ addFinalTransferConfirmation: {
554
+ __typename?: 'FinalTransferConfirmation';
555
+ consignmentId: any;
556
+ finalOpenRecordsConfirmed: boolean;
557
+ legalCustodyTransferConfirmed: boolean;
558
+ };
559
+ };
560
+ export declare type AddTransferAgreementComplianceMutationVariables = Exact<{
561
+ input: AddTransferAgreementComplianceInput;
562
+ }>;
563
+ export declare type AddTransferAgreementComplianceMutation = {
564
+ __typename?: 'Mutation';
565
+ addTransferAgreementCompliance: {
566
+ __typename?: 'TransferAgreementCompliance';
567
+ consignmentId: any;
568
+ appraisalSelectionSignedOff: boolean;
569
+ sensitivityReviewSignedOff: boolean;
570
+ initialOpenRecords: boolean;
571
+ };
572
+ };
573
+ export declare type AddTransferAgreementPrivateBetaMutationVariables = Exact<{
574
+ input: AddTransferAgreementPrivateBetaInput;
575
+ }>;
576
+ export declare type AddTransferAgreementPrivateBetaMutation = {
577
+ __typename?: 'Mutation';
578
+ addTransferAgreementPrivateBeta: {
579
+ __typename?: 'TransferAgreementPrivateBeta';
580
+ consignmentId: any;
581
+ allPublicRecords: boolean;
582
+ allCrownCopyright: boolean;
583
+ allEnglish: boolean;
584
+ };
585
+ };
586
+ export declare type GetClosureMetadataQueryVariables = Exact<{
587
+ consignmentId: Scalars['UUID'];
588
+ }>;
589
+ export declare type GetClosureMetadataQuery = {
590
+ __typename?: 'Query';
591
+ getClosureMetadata: Array<{
592
+ __typename?: 'CustomMetadataField';
593
+ name: string;
594
+ description?: string | null;
595
+ fullName?: string | null;
596
+ propertyType: PropertyType;
597
+ propertyGroup?: string | null;
598
+ dataType: DataType;
599
+ editable: boolean;
600
+ multiValue: boolean;
601
+ defaultValue?: string | null;
602
+ values: Array<{
603
+ __typename?: 'CustomMetadataValues';
604
+ value: string;
605
+ dependencies: Array<{
606
+ __typename?: 'CustomMetadataField';
607
+ name: string;
608
+ description?: string | null;
609
+ fullName?: string | null;
610
+ propertyType: PropertyType;
611
+ propertyGroup?: string | null;
612
+ dataType: DataType;
613
+ editable: boolean;
614
+ multiValue: boolean;
615
+ defaultValue?: string | null;
616
+ }>;
617
+ }>;
618
+ }>;
619
+ };
620
+ export declare type GetConsignmentQueryVariables = Exact<{
621
+ consignmentId: Scalars['UUID'];
622
+ }>;
623
+ export declare type GetConsignmentQuery = {
624
+ __typename?: 'Query';
625
+ getConsignment?: {
626
+ __typename?: 'Consignment';
627
+ userid: any;
628
+ seriesid?: any | null;
629
+ } | null;
630
+ };
631
+ export declare type GetConsignmentForExportQueryVariables = Exact<{
632
+ consignmentId: Scalars['UUID'];
633
+ }>;
634
+ export declare type GetConsignmentForExportQuery = {
635
+ __typename?: 'Query';
636
+ getConsignment?: {
637
+ __typename?: 'Consignment';
638
+ userid: any;
639
+ createdDatetime?: any | null;
640
+ transferInitiatedDatetime?: any | null;
641
+ exportDatetime?: any | null;
642
+ consignmentReference: string;
643
+ consignmentType?: string | null;
644
+ series?: {
645
+ __typename?: 'Series';
646
+ code: string;
647
+ } | null;
648
+ transferringBody?: {
649
+ __typename?: 'TransferringBody';
650
+ name: string;
651
+ } | null;
652
+ files: Array<{
653
+ __typename?: 'File';
654
+ fileId: any;
655
+ fileType?: string | null;
656
+ fileName?: string | null;
657
+ metadata: {
658
+ __typename?: 'FileMetadataValues';
659
+ clientSideFileSize?: number | null;
660
+ clientSideLastModifiedDate?: any | null;
661
+ clientSideOriginalFilePath?: string | null;
662
+ foiExemptionCode?: string | null;
663
+ heldBy?: string | null;
664
+ language?: string | null;
665
+ legalStatus?: string | null;
666
+ rightsCopyright?: string | null;
667
+ sha256ClientSideChecksum?: string | null;
668
+ };
669
+ ffidMetadata?: {
670
+ __typename?: 'FFIDMetadata';
671
+ software: string;
672
+ softwareVersion: string;
673
+ binarySignatureFileVersion: string;
674
+ containerSignatureFileVersion: string;
675
+ method: string;
676
+ matches: Array<{
677
+ __typename?: 'FFIDMetadataMatches';
678
+ extension?: string | null;
679
+ identificationBasis: string;
680
+ puid?: string | null;
681
+ }>;
682
+ } | null;
683
+ antivirusMetadata?: {
684
+ __typename?: 'AntivirusMetadata';
685
+ software: string;
686
+ softwareVersion: string;
687
+ } | null;
688
+ }>;
689
+ } | null;
690
+ };
691
+ export declare type GetConsignmentFilesQueryVariables = Exact<{
692
+ consignmentId: Scalars['UUID'];
693
+ }>;
694
+ export declare type GetConsignmentFilesQuery = {
695
+ __typename?: 'Query';
696
+ getConsignment?: {
697
+ __typename?: 'Consignment';
698
+ files: Array<{
699
+ __typename?: 'File';
700
+ metadata: {
701
+ __typename?: 'FileMetadataValues';
702
+ clientSideOriginalFilePath?: string | null;
703
+ };
704
+ }>;
705
+ } | null;
706
+ };
707
+ export declare type GetConsignmentFolderDetailsQueryVariables = Exact<{
708
+ consignmentId: Scalars['UUID'];
709
+ }>;
710
+ export declare type GetConsignmentFolderDetailsQuery = {
711
+ __typename?: 'Query';
712
+ getConsignment?: {
713
+ __typename?: 'Consignment';
714
+ totalFiles: number;
715
+ parentFolder?: string | null;
716
+ } | null;
717
+ };
718
+ export declare type GetConsignmentReferenceQueryVariables = Exact<{
719
+ consignmentId: Scalars['UUID'];
720
+ }>;
721
+ export declare type GetConsignmentReferenceQuery = {
722
+ __typename?: 'Query';
723
+ getConsignment?: {
724
+ __typename?: 'Consignment';
725
+ consignmentReference: string;
726
+ } | null;
727
+ };
728
+ export declare type GetConsignmentStatusQueryVariables = Exact<{
729
+ consignmentId: Scalars['UUID'];
730
+ }>;
731
+ export declare type GetConsignmentStatusQuery = {
732
+ __typename?: 'Query';
733
+ getConsignment?: {
734
+ __typename?: 'Consignment';
735
+ series?: {
736
+ __typename?: 'Series';
737
+ seriesid: any;
738
+ code: string;
739
+ } | null;
740
+ currentStatus: {
741
+ __typename?: 'CurrentStatus';
742
+ series?: string | null;
743
+ transferAgreement?: string | null;
744
+ upload?: string | null;
745
+ confirmTransfer?: string | null;
746
+ export?: string | null;
747
+ };
748
+ } | null;
749
+ };
750
+ export declare type GetConsignmentSummaryQueryVariables = Exact<{
751
+ consignmentId: Scalars['UUID'];
752
+ }>;
753
+ export declare type GetConsignmentSummaryQuery = {
754
+ __typename?: 'Query';
755
+ getConsignment?: {
756
+ __typename?: 'Consignment';
757
+ totalFiles: number;
758
+ consignmentReference: string;
759
+ series?: {
760
+ __typename?: 'Series';
761
+ code: string;
762
+ } | null;
763
+ transferringBody?: {
764
+ __typename?: 'TransferringBody';
765
+ name: string;
766
+ } | null;
767
+ } | null;
768
+ };
769
+ export declare type GetConsignmentTypeQueryVariables = Exact<{
770
+ consignmentId: Scalars['UUID'];
771
+ }>;
772
+ export declare type GetConsignmentTypeQuery = {
773
+ __typename?: 'Query';
774
+ getConsignment?: {
775
+ __typename?: 'Consignment';
776
+ consignmentType?: string | null;
777
+ } | null;
778
+ };
779
+ export declare type GetFileCheckProgressQueryVariables = Exact<{
780
+ consignmentId: Scalars['UUID'];
781
+ }>;
782
+ export declare type GetFileCheckProgressQuery = {
783
+ __typename?: 'Query';
784
+ getConsignment?: {
785
+ __typename?: 'Consignment';
786
+ allChecksSucceeded: boolean;
787
+ parentFolder?: string | null;
788
+ totalFiles: number;
789
+ files: Array<{
790
+ __typename?: 'File';
791
+ fileStatus?: string | null;
792
+ }>;
793
+ fileChecks: {
794
+ __typename?: 'FileChecks';
795
+ antivirusProgress: {
796
+ __typename?: 'AntivirusProgress';
797
+ filesProcessed: number;
798
+ };
799
+ checksumProgress: {
800
+ __typename?: 'ChecksumProgress';
801
+ filesProcessed: number;
802
+ };
803
+ ffidProgress: {
804
+ __typename?: 'FFIDProgress';
805
+ filesProcessed: number;
806
+ };
807
+ };
808
+ } | null;
809
+ };
810
+ export declare type GetFileCheckProgressSummaryQueryVariables = Exact<{
811
+ consignmentId: Scalars['UUID'];
812
+ }>;
813
+ export declare type GetFileCheckProgressSummaryQuery = {
814
+ __typename?: 'Query';
815
+ getConsignment?: {
816
+ __typename?: 'Consignment';
817
+ totalFiles: number;
818
+ fileChecks: {
819
+ __typename?: 'FileChecks';
820
+ antivirusProgress: {
821
+ __typename?: 'AntivirusProgress';
822
+ filesProcessed: number;
823
+ };
824
+ checksumProgress: {
825
+ __typename?: 'ChecksumProgress';
826
+ filesProcessed: number;
827
+ };
828
+ ffidProgress: {
829
+ __typename?: 'FFIDProgress';
830
+ filesProcessed: number;
831
+ };
832
+ };
833
+ } | null;
834
+ };
835
+ export declare type GetOriginalPathQueryVariables = Exact<{
836
+ fileId: Scalars['UUID'];
837
+ }>;
838
+ export declare type GetOriginalPathQuery = {
839
+ __typename?: 'Query';
840
+ getClientFileMetadata: {
841
+ __typename?: 'ClientFileMetadata';
842
+ originalPath?: string | null;
843
+ };
844
+ };
845
+ export declare type GetSeriesQueryVariables = Exact<{
846
+ body: Scalars['String'];
847
+ }>;
848
+ export declare type GetSeriesQuery = {
849
+ __typename?: 'Query';
850
+ getSeries: Array<{
851
+ __typename?: 'Series';
852
+ seriesid: any;
853
+ bodyid: any;
854
+ name: string;
855
+ code: string;
856
+ description?: string | null;
857
+ }>;
858
+ };
859
+ export declare type StartUploadMutationVariables = Exact<{
860
+ input: StartUploadInput;
861
+ }>;
862
+ export declare type StartUploadMutation = {
863
+ __typename?: 'Mutation';
864
+ startUpload: string;
865
+ };
866
+ export declare type UpdateConsignmentSeriesIdMutationVariables = Exact<{
867
+ updateConsginmentSeriesIdInput: UpdateConsignmentSeriesIdInput;
868
+ }>;
869
+ export declare type UpdateConsignmentSeriesIdMutation = {
870
+ __typename?: 'Mutation';
871
+ updateConsignmentSeriesId?: number | null;
872
+ };
873
+ export declare type UpdateConsignmentStatusMutationVariables = Exact<{
874
+ updateConsignmentStatusInput: ConsignmentStatusInput;
875
+ }>;
876
+ export declare type UpdateConsignmentStatusMutation = {
877
+ __typename?: 'Mutation';
878
+ updateConsignmentStatus?: number | null;
879
+ };
880
+ export declare type UpdateExportDataMutationVariables = Exact<{
881
+ updateExportDataInput: UpdateExportDataInput;
882
+ }>;
883
+ export declare type UpdateExportDataMutation = {
884
+ __typename?: 'Mutation';
885
+ updateExportData?: number | null;
886
+ };
887
+ export declare type UpdateTransferInitiatedMutationVariables = Exact<{
888
+ consignmentId: Scalars['UUID'];
889
+ }>;
890
+ export declare type UpdateTransferInitiatedMutation = {
891
+ __typename?: 'Mutation';
892
+ updateTransferInitiated?: number | null;
893
+ };
894
+ export declare const AddAntivirusMetadata: import("graphql/language/ast").DocumentNode;
895
+ export declare const AddConsignment: import("graphql/language/ast").DocumentNode;
896
+ export declare const AddConsignmentStatus: import("graphql/language/ast").DocumentNode;
897
+ export declare const AddFfidMetadata: import("graphql/language/ast").DocumentNode;
898
+ export declare const AddFileMetadata: import("graphql/language/ast").DocumentNode;
899
+ export declare const AddFilesAndMetadata: import("graphql/language/ast").DocumentNode;
900
+ export declare const AddFinalJudgmentTransferConfirmation: import("graphql/language/ast").DocumentNode;
901
+ export declare const AddFinalTransferConfirmation: import("graphql/language/ast").DocumentNode;
902
+ export declare const AddTransferAgreementCompliance: import("graphql/language/ast").DocumentNode;
903
+ export declare const AddTransferAgreementPrivateBeta: import("graphql/language/ast").DocumentNode;
904
+ export declare const GetClosureMetadata: import("graphql/language/ast").DocumentNode;
905
+ export declare const GetConsignment: import("graphql/language/ast").DocumentNode;
906
+ export declare const GetConsignmentForExport: import("graphql/language/ast").DocumentNode;
907
+ export declare const GetConsignmentFiles: import("graphql/language/ast").DocumentNode;
908
+ export declare const GetConsignmentFolderDetails: import("graphql/language/ast").DocumentNode;
909
+ export declare const GetConsignmentReference: import("graphql/language/ast").DocumentNode;
910
+ export declare const GetConsignmentStatus: import("graphql/language/ast").DocumentNode;
911
+ export declare const GetConsignmentSummary: import("graphql/language/ast").DocumentNode;
912
+ export declare const GetConsignmentType: import("graphql/language/ast").DocumentNode;
913
+ export declare const GetFileCheckProgress: import("graphql/language/ast").DocumentNode;
914
+ export declare const GetFileCheckProgressSummary: import("graphql/language/ast").DocumentNode;
915
+ export declare const GetOriginalPath: import("graphql/language/ast").DocumentNode;
916
+ export declare const GetSeries: import("graphql/language/ast").DocumentNode;
917
+ export declare const StartUpload: import("graphql/language/ast").DocumentNode;
918
+ export declare const UpdateConsignmentSeriesId: import("graphql/language/ast").DocumentNode;
919
+ export declare const UpdateConsignmentStatus: import("graphql/language/ast").DocumentNode;
920
+ export declare const UpdateExportData: import("graphql/language/ast").DocumentNode;
921
+ export declare const UpdateTransferInitiated: import("graphql/language/ast").DocumentNode;
package/index.js ADDED
@@ -0,0 +1,306 @@
1
+ (()=>{"use strict";var e={333:(e,t,n)=>{n.r(t),n.d(t,{default:()=>pe,disableExperimentalFragmentVariables:()=>re,disableFragmentWarnings:()=>ie,enableExperimentalFragmentVariables:()=>se,gql:()=>te,resetCaches:()=>ne});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;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,d=t.column+o,l=`${e.name}:${a}:${d}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[s];if(p.length>120){const e=Math.floor(d/80),t=d%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return l+c([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+c([[a-1+" |",u[s-1]],[`${a} |`,p],["|","^".padStart(d)],[`${a+1} |`,u[s+1]]])}function c(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 d extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:c,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!=c?c:null==m?void 0:m.map((e=>e.start)),this.locations=c&&o?c.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,d):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 d(`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}}}let m,f,I,E;function T(e){return e>=48&&e<=57}function g(e){return e>=97&&e<=122||e>=65&&e<=90}function N(e){return g(e)||95===e}function y(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=A(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 A(e){let t=0;for(;t<e.length&&(9===(n=e.charCodeAt(t))||32===n);)++t;var n;return t}var C;new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["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:["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","locations"],SchemaExtension:["directives","operationTypes"],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"]})),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"}(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.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"}(I||(I={})),(C=E||(E={})).SOF="<SOF>",C.EOF="<EOF>",C.BANG="!",C.DOLLAR="$",C.AMP="&",C.PAREN_L="(",C.PAREN_R=")",C.SPREAD="...",C.COLON=":",C.EQUALS="=",C.AT="@",C.BRACKET_L="[",C.BRACKET_R="]",C.BRACE_L="{",C.PIPE="|",C.BRACE_R="}",C.NAME="Name",C.INT="Int",C.FLOAT="Float",C.STRING="String",C.BLOCK_STRING="BlockString",C.COMMENT="Comment";class D{constructor(e){const t=new h(E.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!==E.EOF)do{if(e.next)e=e.next;else{const t=F(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===E.COMMENT);return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function O(e,t){return _(e.charCodeAt(t))&&x(e.charCodeAt(t+1))}function _(e){return e>=55296&&e<=56319}function x(e){return e>=56320&&e<=57343}function S(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return E.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function k(e,t,n,i,s){const r=e.line,a=1+n-e.lineStart;return new h(t,n,i,r,a,s)}function F(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 R(e,s);case 33:return k(e,E.BANG,s,s+1);case 36:return k(e,E.DOLLAR,s,s+1);case 38:return k(e,E.AMP,s,s+1);case 40:return k(e,E.PAREN_L,s,s+1);case 41:return k(e,E.PAREN_R,s,s+1);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return k(e,E.SPREAD,s,s+3);break;case 58:return k(e,E.COLON,s,s+1);case 61:return k(e,E.EQUALS,s,s+1);case 64:return k(e,E.AT,s,s+1);case 91:return k(e,E.BRACKET_L,s,s+1);case 93:return k(e,E.BRACKET_R,s,s+1);case 123:return k(e,E.BRACE_L,s,s+1);case 124:return k(e,E.PIPE,s,s+1);case 125:return k(e,E.BRACE_R,s,s+1);case 34:return 34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)?V(e,s):P(e,s)}if(T(t)||45===t)return b(e,s,t);if(N(t))return G(e,s);throw u(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||O(n,s)?`Unexpected character: ${S(e,s)}.`:`Invalid character: ${S(e,s)}.`)}return k(e,E.EOF,i,i)}function R(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(v(e))++s;else{if(!O(n,s))break;s+=2}}return k(e,E.COMMENT,t,s,n.slice(t+1,s))}function b(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),T(r))throw u(e.source,s,`Invalid number, unexpected digit after 0: ${S(e,s)}.`)}else s=L(e,s,r),r=i.charCodeAt(s);if(46===r&&(a=!0,r=i.charCodeAt(++s),s=L(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=L(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 k(e,a?E.FLOAT:E.INT,t,s,i.slice(t,s))}function L(e,t,n){if(!T(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(;T(i.charCodeAt(s));)++s;return s}function P(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),k(e,E.STRING,t,s+1,a);if(92!==i){if(10===i||13===i)break;if(v(i))++s;else{if(!O(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)?M(e,s):U(e,s):$(e,s);a+=t.value,s+=t.size,r=s}}throw u(e.source,s,"Unterminated string.")}function M(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||!v(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|B(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=w(n,t+2);if(v(i))return{value:String.fromCodePoint(i),size:6};if(_(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=w(n,t+8);if(x(e))return{value:String.fromCodePoint(i,e),size:12}}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function w(e,t){return B(e.charCodeAt(t))<<12|B(e.charCodeAt(t+1))<<8|B(e.charCodeAt(t+2))<<4|B(e.charCodeAt(t+3))}function B(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 V(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,r=t+3,a=r,o="";const c=[];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),c.push(o);const i=k(e,E.BLOCK_STRING,t,r+3,y(c).join("\n"));return e.line+=c.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(v(i))++r;else{if(!O(n,r))throw u(e.source,r,`Invalid character within String: ${S(e,r)}.`);r+=2}else o+=n.slice(a,r),c.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 G(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&(g(r=n.charCodeAt(s))||T(r)||95===r);)++s;var r;return k(e,E.NAME,t,s,n.slice(t,s))}function j(e,t){if(!Boolean(e))throw new Error(t)}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)}}class Y{constructor(e,t="GraphQL request",n={line:1,column:1}){var i;"string"==typeof e||j(!1,`Body must be a string. Received: ${i=e,K(i,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||j(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||j(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class J{constructor(e,t){const n=function(e){return e instanceof Y}(e)?e:new Y(e);this._lexer=new D(n),this._options=t}parseName(){const e=this.expectToken(E.NAME);return this.node(e,{kind:I.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:I.DOCUMENT,definitions:this.many(E.SOF,this.parseDefinition,E.EOF)})}parseDefinition(){if(this.peek(E.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===E.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()}if(e)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(E.BRACE_L))return this.node(e,{kind:I.OPERATION_DEFINITION,operation:m.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(E.NAME)&&(n=this.parseName()),this.node(e,{kind:I.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(E.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(E.PAREN_L,this.parseVariableDefinition,E.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(E.DOLLAR),this.node(e,{kind:I.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:I.SELECTION_SET,selections:this.many(E.BRACE_L,this.parseSelection,E.BRACE_R)})}parseSelection(){return this.peek(E.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(E.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(E.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.PAREN_L,t,E.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(E.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(E.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(E.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(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:I.FRAGMENT_DEFINITION,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 E.BRACKET_L:return this.parseList(e);case E.BRACE_L:return this.parseObject(e);case E.INT:return this._lexer.advance(),this.node(t,{kind:I.INT,value:t.value});case E.FLOAT:return this._lexer.advance(),this.node(t,{kind:I.FLOAT,value:t.value});case E.STRING:case E.BLOCK_STRING:return this.parseStringLiteral();case E.NAME:switch(this._lexer.advance(),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 E.DOLLAR:if(e){if(this.expectToken(E.DOLLAR),this._lexer.token.kind===E.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._lexer.advance(),this.node(e,{kind:I.STRING,value:e.value,block:e.kind===E.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:I.LIST,values:this.any(E.BRACKET_L,(()=>this.parseValueLiteral(e)),E.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:I.OBJECT,fields:this.any(E.BRACE_L,(()=>this.parseObjectField(e)),E.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(t,{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(E.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(E.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(E.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(E.BRACKET_R),t=this.node(e,{kind:I.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(E.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(E.STRING)||this.peek(E.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(E.BRACE_L,this.parseOperationTypeDefinition,E.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(E.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(E.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseFieldDefinition,E.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.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(E.PAREN_L,this.parseInputValueDef,E.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(E.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(E.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(E.EQUALS)?this.delimitedMany(E.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(E.BRACE_L,this.parseEnumValueDefinition,E.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,`${q(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(E.BRACE_L,this.parseInputValueDef,E.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===E.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()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(E.BRACE_L,this.parseOperationTypeDefinition,E.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})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.AT);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const r=this.parseDirectiveLocations();return this.node(e,{kind:I.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:s,locations:r})}parseDirectiveLocations(){return this.delimitedMany(E.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)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.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._lexer.advance(),t;throw u(this._lexer.source,t.start,`Expected ${Q(e)}, found ${q(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==E.NAME||t.value!==e)throw u(this._lexer.source,t.start,`Expected "${e}", found ${q(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===E.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${q(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}}function q(e){const t=e.value;return Q(e.kind)+(null!=t?` "${t}"`:"")}function Q(e){return function(e){return e===E.BANG||e===E.DOLLAR||e===E.AMP||e===E.PAREN_L||e===E.PAREN_R||e===E.SPREAD||e===E.COLON||e===E.EQUALS||e===E.AT||e===E.BRACKET_L||e===E.BRACKET_R||e===E.BRACE_L||e===E.PIPE||e===E.BRACE_R}(e)?`"${e}"`:e}var X=new Map,z=new Map,W=!0,H=!1;function Z(e){return e.replace(/[\s,]+/g," ").trim()}function ee(e){var t,n,s,r=Z(e);if(!X.has(r)){var a=function(e,t){return new J(e,t).parseDocument()}(e,{experimentalFragmentVariables:H,allowLegacyFragmentVariables:H});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");X.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=Z((a=e.loc).source.body.substring(a.start,a.end)),r=z.get(t);r&&!r.has(i)?W&&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||z.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 X.get(r)}function te(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]})),ee(i)}function ne(){X.clear(),z.clear()}function ie(){W=!1}function se(){H=!0}function re(){H=!1}var ae,oe=te,ce=ne,de=ie,le=se,ue=re;(ae=te||(te={})).gql=oe,ae.resetCaches=ce,ae.disableFragmentWarnings=de,ae.enableExperimentalFragmentVariables=le,ae.disableExperimentalFragmentVariables=ue,te.default=te;const pe=te},607:function(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.UpdateExportData=t.UpdateConsignmentStatus=t.UpdateConsignmentSeriesId=t.StartUpload=t.GetSeries=t.GetOriginalPath=t.GetFileCheckProgressSummary=t.GetFileCheckProgress=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReference=t.GetConsignmentFolderDetails=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignment=t.GetClosureMetadata=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddFinalTransferConfirmation=t.AddFinalJudgmentTransferConfirmation=t.AddFilesAndMetadata=t.AddFileMetadata=t.AddFfidMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddAntivirusMetadata=t.PropertyType=t.DataType=void 0;const s=i(n(333));var r,a;(a=t.DataType||(t.DataType={})).DateTime="DateTime",a.Decimal="Decimal",a.Integer="Integer",a.Text="Text",(r=t.PropertyType||(t.PropertyType={})).Defined="Defined",r.Supplied="Supplied",r.System="System",t.AddAntivirusMetadata=s.default`
2
+ mutation addAntivirusMetadata($input: AddAntivirusMetadataInput!) {
3
+ addAntivirusMetadata(addAntivirusMetadataInput: $input) {
4
+ fileId
5
+ software
6
+ softwareVersion
7
+ databaseVersion
8
+ result
9
+ datetime
10
+ }
11
+ }
12
+ `,t.AddConsignment=s.default`
13
+ mutation addConsignment($addConsignmentInput: AddConsignmentInput!) {
14
+ addConsignment(addConsignmentInput: $addConsignmentInput) {
15
+ consignmentid
16
+ seriesid
17
+ }
18
+ }
19
+ `,t.AddConsignmentStatus=s.default`
20
+ mutation addConsignmentStatus($addConsignmentStatusInput: ConsignmentStatusInput!) {
21
+ addConsignmentStatus(addConsignmentStatusInput: $addConsignmentStatusInput) {
22
+ consignmentStatusId
23
+ consignmentId
24
+ statusType
25
+ value
26
+ createdDatetime
27
+ modifiedDatetime
28
+ }
29
+ }
30
+ `,t.AddFfidMetadata=s.default`
31
+ mutation addFFIDMetadata($addFFIDMetadataInput: FFIDMetadataInput!) {
32
+ addFFIDMetadata(addFFIDMetadataInput: $addFFIDMetadataInput) {
33
+ fileId
34
+ }
35
+ }
36
+ `,t.AddFileMetadata=s.default`
37
+ mutation addFileMetadata($addFileMetadataWithFileIdInput: AddFileMetadataWithFileIdInput!) {
38
+ addFileMetadata(addFileMetadataWithFileIdInput: $addFileMetadataWithFileIdInput) {
39
+ fileId
40
+ value
41
+ }
42
+ }
43
+ `,t.AddFilesAndMetadata=s.default`
44
+ mutation addFilesAndMetadata($input: AddFileAndMetadataInput!) {
45
+ addFilesAndMetadata(addFilesAndMetadataInput: $input) {
46
+ fileId
47
+ matchId
48
+ }
49
+ }
50
+ `,t.AddFinalJudgmentTransferConfirmation=s.default`
51
+ mutation addFinalJudgmentTransferConfirmation($input: AddFinalJudgmentTransferConfirmationInput!) {
52
+ addFinalJudgmentTransferConfirmation(
53
+ addFinalJudgmentTransferConfirmationInput: $input
54
+ ) {
55
+ consignmentId
56
+ legalCustodyTransferConfirmed
57
+ }
58
+ }
59
+ `,t.AddFinalTransferConfirmation=s.default`
60
+ mutation addFinalTransferConfirmation($input: AddFinalTransferConfirmationInput!) {
61
+ addFinalTransferConfirmation(addFinalTransferConfirmationInput: $input) {
62
+ consignmentId
63
+ finalOpenRecordsConfirmed
64
+ legalCustodyTransferConfirmed
65
+ }
66
+ }
67
+ `,t.AddTransferAgreementCompliance=s.default`
68
+ mutation addTransferAgreementCompliance($input: AddTransferAgreementComplianceInput!) {
69
+ addTransferAgreementCompliance(addTransferAgreementComplianceInput: $input) {
70
+ consignmentId
71
+ appraisalSelectionSignedOff
72
+ sensitivityReviewSignedOff
73
+ initialOpenRecords
74
+ }
75
+ }
76
+ `,t.AddTransferAgreementPrivateBeta=s.default`
77
+ mutation addTransferAgreementPrivateBeta($input: AddTransferAgreementPrivateBetaInput!) {
78
+ addTransferAgreementPrivateBeta(addTransferAgreementPrivateBetaInput: $input) {
79
+ consignmentId
80
+ allPublicRecords
81
+ allCrownCopyright
82
+ allEnglish
83
+ }
84
+ }
85
+ `,t.GetClosureMetadata=s.default`
86
+ query getClosureMetadata($consignmentId: UUID!) {
87
+ getClosureMetadata(consignmentid: $consignmentId) {
88
+ name
89
+ description
90
+ fullName
91
+ propertyType
92
+ propertyGroup
93
+ dataType
94
+ editable
95
+ multiValue
96
+ defaultValue
97
+ values {
98
+ value
99
+ dependencies {
100
+ name
101
+ description
102
+ fullName
103
+ propertyType
104
+ propertyGroup
105
+ dataType
106
+ editable
107
+ multiValue
108
+ defaultValue
109
+ }
110
+ }
111
+ }
112
+ }
113
+ `,t.GetConsignment=s.default`
114
+ query getConsignment($consignmentId: UUID!) {
115
+ getConsignment(consignmentid: $consignmentId) {
116
+ userid
117
+ seriesid
118
+ }
119
+ }
120
+ `,t.GetConsignmentForExport=s.default`
121
+ query getConsignmentForExport($consignmentId: UUID!) {
122
+ getConsignment(consignmentid: $consignmentId) {
123
+ userid
124
+ createdDatetime
125
+ transferInitiatedDatetime
126
+ exportDatetime
127
+ consignmentReference
128
+ consignmentType
129
+ series {
130
+ code
131
+ }
132
+ transferringBody {
133
+ name
134
+ }
135
+ files {
136
+ fileId
137
+ fileType
138
+ fileName
139
+ metadata {
140
+ clientSideFileSize
141
+ clientSideLastModifiedDate
142
+ clientSideOriginalFilePath
143
+ foiExemptionCode
144
+ heldBy
145
+ language
146
+ legalStatus
147
+ rightsCopyright
148
+ sha256ClientSideChecksum
149
+ }
150
+ ffidMetadata {
151
+ software
152
+ softwareVersion
153
+ binarySignatureFileVersion
154
+ containerSignatureFileVersion
155
+ method
156
+ matches {
157
+ extension
158
+ identificationBasis
159
+ puid
160
+ }
161
+ }
162
+ antivirusMetadata {
163
+ software
164
+ softwareVersion
165
+ }
166
+ }
167
+ }
168
+ }
169
+ `,t.GetConsignmentFiles=s.default`
170
+ query getConsignmentFiles($consignmentId: UUID!) {
171
+ getConsignment(consignmentid: $consignmentId) {
172
+ files {
173
+ metadata {
174
+ clientSideOriginalFilePath
175
+ }
176
+ }
177
+ }
178
+ }
179
+ `,t.GetConsignmentFolderDetails=s.default`
180
+ query getConsignmentFolderDetails($consignmentId: UUID!) {
181
+ getConsignment(consignmentid: $consignmentId) {
182
+ totalFiles
183
+ parentFolder
184
+ }
185
+ }
186
+ `,t.GetConsignmentReference=s.default`
187
+ query getConsignmentReference($consignmentId: UUID!) {
188
+ getConsignment(consignmentid: $consignmentId) {
189
+ consignmentReference
190
+ }
191
+ }
192
+ `,t.GetConsignmentStatus=s.default`
193
+ query getConsignmentStatus($consignmentId: UUID!) {
194
+ getConsignment(consignmentid: $consignmentId) {
195
+ series {
196
+ seriesid
197
+ code
198
+ }
199
+ currentStatus {
200
+ series
201
+ transferAgreement
202
+ upload
203
+ confirmTransfer
204
+ export
205
+ }
206
+ }
207
+ }
208
+ `,t.GetConsignmentSummary=s.default`
209
+ query getConsignmentSummary($consignmentId: UUID!) {
210
+ getConsignment(consignmentid: $consignmentId) {
211
+ series {
212
+ code
213
+ }
214
+ transferringBody {
215
+ name
216
+ }
217
+ totalFiles
218
+ consignmentReference
219
+ }
220
+ }
221
+ `,t.GetConsignmentType=s.default`
222
+ query getConsignmentType($consignmentId: UUID!) {
223
+ getConsignment(consignmentid: $consignmentId) {
224
+ consignmentType
225
+ }
226
+ }
227
+ `,t.GetFileCheckProgress=s.default`
228
+ query getFileCheckProgress($consignmentId: UUID!) {
229
+ getConsignment(consignmentid: $consignmentId) {
230
+ allChecksSucceeded
231
+ parentFolder
232
+ totalFiles
233
+ files {
234
+ fileStatus
235
+ }
236
+ fileChecks {
237
+ antivirusProgress {
238
+ filesProcessed
239
+ }
240
+ checksumProgress {
241
+ filesProcessed
242
+ }
243
+ ffidProgress {
244
+ filesProcessed
245
+ }
246
+ }
247
+ }
248
+ }
249
+ `,t.GetFileCheckProgressSummary=s.default`
250
+ query getFileCheckProgressSummary($consignmentId: UUID!) {
251
+ getConsignment(consignmentid: $consignmentId) {
252
+ totalFiles
253
+ fileChecks {
254
+ antivirusProgress {
255
+ filesProcessed
256
+ }
257
+ checksumProgress {
258
+ filesProcessed
259
+ }
260
+ ffidProgress {
261
+ filesProcessed
262
+ }
263
+ }
264
+ }
265
+ }
266
+ `,t.GetOriginalPath=s.default`
267
+ query getOriginalPath($fileId: UUID!) {
268
+ getClientFileMetadata(fileId: $fileId) {
269
+ originalPath
270
+ }
271
+ }
272
+ `,t.GetSeries=s.default`
273
+ query getSeries($body: String!) {
274
+ getSeries(body: $body) {
275
+ seriesid
276
+ bodyid
277
+ name
278
+ code
279
+ description
280
+ }
281
+ }
282
+ `,t.StartUpload=s.default`
283
+ mutation startUpload($input: StartUploadInput!) {
284
+ startUpload(startUploadInput: $input)
285
+ }
286
+ `,t.UpdateConsignmentSeriesId=s.default`
287
+ mutation updateConsignmentSeriesId($updateConsginmentSeriesIdInput: UpdateConsignmentSeriesIdInput!) {
288
+ updateConsignmentSeriesId(
289
+ updateConsignmentSeriesId: $updateConsginmentSeriesIdInput
290
+ )
291
+ }
292
+ `,t.UpdateConsignmentStatus=s.default`
293
+ mutation updateConsignmentStatus($updateConsignmentStatusInput: ConsignmentStatusInput!) {
294
+ updateConsignmentStatus(
295
+ updateConsignmentStatusInput: $updateConsignmentStatusInput
296
+ )
297
+ }
298
+ `,t.UpdateExportData=s.default`
299
+ mutation updateExportData($updateExportDataInput: UpdateExportDataInput!) {
300
+ updateExportData(exportData: $updateExportDataInput)
301
+ }
302
+ `,t.UpdateTransferInitiated=s.default`
303
+ mutation updateTransferInitiated($consignmentId: UUID!) {
304
+ updateTransferInitiated(consignmentid: $consignmentId)
305
+ }
306
+ `}},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(607);module.exports=i})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/tdr-generated-graphql",
3
- "version": "1.0.227",
3
+ "version": "1.0.228",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -36,7 +36,6 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@graphql-codegen/cli": "^2.6.2",
39
- "apollo-link-http": "^1.5.17",
40
39
  "graphql": "^16.5.0",
41
40
  "y18n": "^5.0.8"
42
41
  }