@nationalarchives/tdr-generated-graphql 1.0.206 → 1.0.209

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