@nationalarchives/tdr-generated-graphql 1.0.392 → 1.0.394

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 +277 -258
  2. package/index.js +2 -9
  3. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -11,140 +11,175 @@ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
11
11
  export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
12
  [SubKey in K]: Maybe<T[SubKey]>;
13
13
  };
14
+ export type MakeEmpty<T extends {
15
+ [key: string]: unknown;
16
+ }, K extends keyof T> = {
17
+ [_ in K]?: never;
18
+ };
19
+ export type Incremental<T> = T | {
20
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
21
+ };
14
22
  /** All built-in and custom scalars, mapped to their actual values */
15
23
  export type Scalars = {
16
- ID: string;
17
- String: string;
18
- Boolean: boolean;
19
- Int: number;
20
- Float: number;
21
- LocalDateTime: any;
24
+ ID: {
25
+ input: string | number;
26
+ output: string;
27
+ };
28
+ String: {
29
+ input: string;
30
+ output: string;
31
+ };
32
+ Boolean: {
33
+ input: boolean;
34
+ output: boolean;
35
+ };
36
+ Int: {
37
+ input: number;
38
+ output: number;
39
+ };
40
+ Float: {
41
+ input: number;
42
+ output: number;
43
+ };
44
+ LocalDateTime: {
45
+ input: any;
46
+ output: any;
47
+ };
22
48
  /** 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;
49
+ Long: {
50
+ input: number;
51
+ output: number;
52
+ };
53
+ UUID: {
54
+ input: any;
55
+ output: any;
56
+ };
57
+ ZonedDateTime: {
58
+ input: any;
59
+ output: any;
60
+ };
26
61
  };
27
62
  export type AddAntivirusMetadataInput = {
28
63
  antivirusMetadata: Array<AddAntivirusMetadataInputValues>;
29
64
  };
30
65
  export type AddAntivirusMetadataInputValues = {
31
- databaseVersion: Scalars['String'];
32
- datetime: Scalars['Long'];
33
- fileId: Scalars['UUID'];
34
- result: Scalars['String'];
35
- software: Scalars['String'];
36
- softwareVersion: Scalars['String'];
66
+ databaseVersion: Scalars['String']['input'];
67
+ datetime: Scalars['Long']['input'];
68
+ fileId: Scalars['UUID']['input'];
69
+ result: Scalars['String']['input'];
70
+ software: Scalars['String']['input'];
71
+ softwareVersion: Scalars['String']['input'];
37
72
  };
38
73
  export type AddConsignmentInput = {
39
- consignmentType: Scalars['String'];
40
- seriesid?: InputMaybe<Scalars['UUID']>;
74
+ consignmentType: Scalars['String']['input'];
75
+ seriesid?: InputMaybe<Scalars['UUID']['input']>;
41
76
  };
42
77
  export type AddFileAndMetadataInput = {
43
- consignmentId: Scalars['UUID'];
44
- emptyDirectories?: InputMaybe<Array<Scalars['String']>>;
78
+ consignmentId: Scalars['UUID']['input'];
79
+ emptyDirectories?: InputMaybe<Array<Scalars['String']['input']>>;
45
80
  metadataInput: Array<ClientSideMetadataInput>;
46
81
  };
47
82
  export type AddFileMetadataWithFileIdInput = {
48
83
  metadataInputValues: Array<AddFileMetadataWithFileIdInputValues>;
49
84
  };
50
85
  export type AddFileMetadataWithFileIdInputValues = {
51
- fileId: Scalars['UUID'];
52
- filePropertyName: Scalars['String'];
53
- value: Scalars['String'];
86
+ fileId: Scalars['UUID']['input'];
87
+ filePropertyName: Scalars['String']['input'];
88
+ value: Scalars['String']['input'];
54
89
  };
55
90
  export type AddFileStatusInput = {
56
- fileId: Scalars['UUID'];
57
- statusType: Scalars['String'];
58
- statusValue: Scalars['String'];
91
+ fileId: Scalars['UUID']['input'];
92
+ statusType: Scalars['String']['input'];
93
+ statusValue: Scalars['String']['input'];
59
94
  };
60
95
  export type AddFinalJudgmentTransferConfirmationInput = {
61
- consignmentId: Scalars['UUID'];
62
- legalCustodyTransferConfirmed: Scalars['Boolean'];
96
+ consignmentId: Scalars['UUID']['input'];
97
+ legalCustodyTransferConfirmed: Scalars['Boolean']['input'];
63
98
  };
64
99
  export type AddFinalTransferConfirmationInput = {
65
- consignmentId: Scalars['UUID'];
66
- legalCustodyTransferConfirmed: Scalars['Boolean'];
100
+ consignmentId: Scalars['UUID']['input'];
101
+ legalCustodyTransferConfirmed: Scalars['Boolean']['input'];
67
102
  };
68
103
  export type AddMultipleFileStatusesInput = {
69
104
  statuses: Array<AddFileStatusInput>;
70
105
  };
71
106
  export type AddTransferAgreementComplianceInput = {
72
- appraisalSelectionSignedOff: Scalars['Boolean'];
73
- consignmentId: Scalars['UUID'];
74
- initialOpenRecords?: InputMaybe<Scalars['Boolean']>;
75
- sensitivityReviewSignedOff: Scalars['Boolean'];
107
+ appraisalSelectionSignedOff: Scalars['Boolean']['input'];
108
+ consignmentId: Scalars['UUID']['input'];
109
+ initialOpenRecords?: InputMaybe<Scalars['Boolean']['input']>;
110
+ sensitivityReviewSignedOff: Scalars['Boolean']['input'];
76
111
  };
77
112
  export type AddTransferAgreementPrivateBetaInput = {
78
- allCrownCopyright: Scalars['Boolean'];
79
- allEnglish?: InputMaybe<Scalars['Boolean']>;
80
- allPublicRecords: Scalars['Boolean'];
81
- consignmentId: Scalars['UUID'];
113
+ allCrownCopyright: Scalars['Boolean']['input'];
114
+ allEnglish?: InputMaybe<Scalars['Boolean']['input']>;
115
+ allPublicRecords: Scalars['Boolean']['input'];
116
+ consignmentId: Scalars['UUID']['input'];
82
117
  };
83
118
  export type AllDescendantsInput = {
84
- consignmentId: Scalars['UUID'];
85
- parentIds: Array<Scalars['UUID']>;
119
+ consignmentId: Scalars['UUID']['input'];
120
+ parentIds: Array<Scalars['UUID']['input']>;
86
121
  };
87
122
  export type AntivirusMetadata = {
88
123
  __typename?: 'AntivirusMetadata';
89
- databaseVersion: Scalars['String'];
90
- datetime: Scalars['Long'];
91
- fileId: Scalars['UUID'];
92
- result: Scalars['String'];
93
- software: Scalars['String'];
94
- softwareVersion: Scalars['String'];
124
+ databaseVersion: Scalars['String']['output'];
125
+ datetime: Scalars['Long']['output'];
126
+ fileId: Scalars['UUID']['output'];
127
+ result: Scalars['String']['output'];
128
+ software: Scalars['String']['output'];
129
+ softwareVersion: Scalars['String']['output'];
95
130
  };
96
131
  export type AntivirusProgress = {
97
132
  __typename?: 'AntivirusProgress';
98
- filesProcessed: Scalars['Int'];
133
+ filesProcessed: Scalars['Int']['output'];
99
134
  };
100
135
  export type BulkFileMetadata = {
101
136
  __typename?: 'BulkFileMetadata';
102
- fileIds: Array<Scalars['UUID']>;
137
+ fileIds: Array<Scalars['UUID']['output']>;
103
138
  metadataProperties: Array<FileMetadata>;
104
139
  };
105
140
  export type ChecksumProgress = {
106
141
  __typename?: 'ChecksumProgress';
107
- filesProcessed: Scalars['Int'];
142
+ filesProcessed: Scalars['Int']['output'];
108
143
  };
109
144
  export type ClientFileMetadata = {
110
145
  __typename?: 'ClientFileMetadata';
111
- checksum?: Maybe<Scalars['String']>;
112
- checksumType?: Maybe<Scalars['String']>;
113
- fileId: Scalars['UUID'];
114
- fileSize?: Maybe<Scalars['Long']>;
115
- lastModified: Scalars['Long'];
116
- originalPath?: Maybe<Scalars['String']>;
146
+ checksum?: Maybe<Scalars['String']['output']>;
147
+ checksumType?: Maybe<Scalars['String']['output']>;
148
+ fileId: Scalars['UUID']['output'];
149
+ fileSize?: Maybe<Scalars['Long']['output']>;
150
+ lastModified: Scalars['Long']['output'];
151
+ originalPath?: Maybe<Scalars['String']['output']>;
117
152
  };
118
153
  export type ClientSideMetadataInput = {
119
- checksum: Scalars['String'];
120
- fileSize: Scalars['Long'];
121
- lastModified: Scalars['Long'];
122
- matchId: Scalars['Long'];
123
- originalPath: Scalars['String'];
154
+ checksum: Scalars['String']['input'];
155
+ fileSize: Scalars['Long']['input'];
156
+ lastModified: Scalars['Long']['input'];
157
+ matchId: Scalars['Long']['input'];
158
+ originalPath: Scalars['String']['input'];
124
159
  };
125
160
  export type Consignment = {
126
161
  __typename?: 'Consignment';
127
- allChecksSucceeded: Scalars['Boolean'];
128
- consignmentReference: Scalars['String'];
162
+ allChecksSucceeded: Scalars['Boolean']['output'];
163
+ consignmentReference: Scalars['String']['output'];
129
164
  consignmentStatuses: Array<ConsignmentStatus>;
130
- consignmentType?: Maybe<Scalars['String']>;
131
- consignmentid?: Maybe<Scalars['UUID']>;
132
- createdDatetime?: Maybe<Scalars['ZonedDateTime']>;
133
- exportDatetime?: Maybe<Scalars['ZonedDateTime']>;
134
- exportLocation?: Maybe<Scalars['String']>;
165
+ consignmentType?: Maybe<Scalars['String']['output']>;
166
+ consignmentid?: Maybe<Scalars['UUID']['output']>;
167
+ createdDatetime?: Maybe<Scalars['ZonedDateTime']['output']>;
168
+ exportDatetime?: Maybe<Scalars['ZonedDateTime']['output']>;
169
+ exportLocation?: Maybe<Scalars['String']['output']>;
135
170
  fileChecks: FileChecks;
136
171
  files: Array<File>;
137
- includeTopLevelFolder?: Maybe<Scalars['Boolean']>;
172
+ includeTopLevelFolder?: Maybe<Scalars['Boolean']['output']>;
138
173
  paginatedFiles: FileConnection;
139
- parentFolder?: Maybe<Scalars['String']>;
140
- parentFolderId?: Maybe<Scalars['UUID']>;
174
+ parentFolder?: Maybe<Scalars['String']['output']>;
175
+ parentFolderId?: Maybe<Scalars['UUID']['output']>;
141
176
  series?: Maybe<Series>;
142
- seriesid?: Maybe<Scalars['UUID']>;
143
- totalFileSize: Scalars['Int'];
144
- totalFiles: Scalars['Int'];
145
- transferInitiatedDatetime?: Maybe<Scalars['ZonedDateTime']>;
177
+ seriesid?: Maybe<Scalars['UUID']['output']>;
178
+ totalFileSize: Scalars['Int']['output'];
179
+ totalFiles: Scalars['Int']['output'];
180
+ transferInitiatedDatetime?: Maybe<Scalars['ZonedDateTime']['output']>;
146
181
  transferringBody?: Maybe<TransferringBody>;
147
- userid: Scalars['UUID'];
182
+ userid: Scalars['UUID']['output'];
148
183
  };
149
184
  export type ConsignmentFilesArgs = {
150
185
  fileFiltersInput?: InputMaybe<FileFilters>;
@@ -159,60 +194,60 @@ export type ConsignmentConnection = {
159
194
  edges?: Maybe<Array<Maybe<ConsignmentEdge>>>;
160
195
  /** Information to aid in pagination. */
161
196
  pageInfo: PageInfo;
162
- totalPages?: Maybe<Scalars['Int']>;
197
+ totalPages?: Maybe<Scalars['Int']['output']>;
163
198
  };
164
199
  /** A connection to a list of items. */
165
200
  export type ConsignmentConnectionTotalPagesArgs = {
166
201
  consignmentFiltersInput?: InputMaybe<ConsignmentFilters>;
167
- limit: Scalars['Int'];
202
+ limit: Scalars['Int']['input'];
168
203
  };
169
204
  /** An edge in a connection. */
170
205
  export type ConsignmentEdge = {
171
206
  __typename?: 'ConsignmentEdge';
172
207
  /** A cursor for use in pagination. */
173
- cursor: Scalars['String'];
208
+ cursor: Scalars['String']['output'];
174
209
  /** The item at the end of the edge. */
175
210
  node: Consignment;
176
211
  };
177
212
  export type ConsignmentFilters = {
178
- consignmentType?: InputMaybe<Scalars['String']>;
179
- userId?: InputMaybe<Scalars['UUID']>;
213
+ consignmentType?: InputMaybe<Scalars['String']['input']>;
214
+ userId?: InputMaybe<Scalars['UUID']['input']>;
180
215
  };
181
216
  export type ConsignmentStatus = {
182
217
  __typename?: 'ConsignmentStatus';
183
- consignmentId: Scalars['UUID'];
184
- consignmentStatusId: Scalars['UUID'];
185
- createdDatetime: Scalars['ZonedDateTime'];
186
- modifiedDatetime?: Maybe<Scalars['ZonedDateTime']>;
187
- statusType: Scalars['String'];
188
- value: Scalars['String'];
218
+ consignmentId: Scalars['UUID']['output'];
219
+ consignmentStatusId: Scalars['UUID']['output'];
220
+ createdDatetime: Scalars['ZonedDateTime']['output'];
221
+ modifiedDatetime?: Maybe<Scalars['ZonedDateTime']['output']>;
222
+ statusType: Scalars['String']['output'];
223
+ value: Scalars['String']['output'];
189
224
  };
190
225
  export type ConsignmentStatusInput = {
191
- consignmentId: Scalars['UUID'];
192
- statusType: Scalars['String'];
193
- statusValue?: InputMaybe<Scalars['String']>;
226
+ consignmentId: Scalars['UUID']['input'];
227
+ statusType: Scalars['String']['input'];
228
+ statusValue?: InputMaybe<Scalars['String']['input']>;
194
229
  };
195
230
  export type CustomMetadataField = {
196
231
  __typename?: 'CustomMetadataField';
197
- allowExport: Scalars['Boolean'];
232
+ allowExport: Scalars['Boolean']['output'];
198
233
  dataType: DataType;
199
- defaultValue?: Maybe<Scalars['String']>;
200
- description?: Maybe<Scalars['String']>;
201
- editable: Scalars['Boolean'];
202
- exportOrdinal?: Maybe<Scalars['Int']>;
203
- fullName?: Maybe<Scalars['String']>;
204
- multiValue: Scalars['Boolean'];
205
- name: Scalars['String'];
206
- propertyGroup?: Maybe<Scalars['String']>;
234
+ defaultValue?: Maybe<Scalars['String']['output']>;
235
+ description?: Maybe<Scalars['String']['output']>;
236
+ editable: Scalars['Boolean']['output'];
237
+ exportOrdinal?: Maybe<Scalars['Int']['output']>;
238
+ fullName?: Maybe<Scalars['String']['output']>;
239
+ multiValue: Scalars['Boolean']['output'];
240
+ name: Scalars['String']['output'];
241
+ propertyGroup?: Maybe<Scalars['String']['output']>;
207
242
  propertyType: PropertyType;
208
- uiOrdinal: Scalars['Int'];
243
+ uiOrdinal: Scalars['Int']['output'];
209
244
  values: Array<CustomMetadataValues>;
210
245
  };
211
246
  export type CustomMetadataValues = {
212
247
  __typename?: 'CustomMetadataValues';
213
248
  dependencies: Array<CustomMetadataField>;
214
- uiOrdinal: Scalars['Int'];
215
- value: Scalars['String'];
249
+ uiOrdinal: Scalars['Int']['output'];
250
+ value: Scalars['String']['output'];
216
251
  };
217
252
  export declare enum DataType {
218
253
  Boolean = "Boolean",
@@ -223,76 +258,76 @@ export declare enum DataType {
223
258
  }
224
259
  export type DeleteFileMetadata = {
225
260
  __typename?: 'DeleteFileMetadata';
226
- fileIds: Array<Scalars['UUID']>;
227
- filePropertyNames: Array<Scalars['String']>;
261
+ fileIds: Array<Scalars['UUID']['output']>;
262
+ filePropertyNames: Array<Scalars['String']['output']>;
228
263
  };
229
264
  export type DeleteFileMetadataInput = {
230
- fileIds: Array<Scalars['UUID']>;
231
- propertyNames: Array<Scalars['String']>;
265
+ fileIds: Array<Scalars['UUID']['input']>;
266
+ propertyNames: Array<Scalars['String']['input']>;
232
267
  };
233
268
  export type DisplayAttribute = {
234
269
  __typename?: 'DisplayAttribute';
235
- attribute: Scalars['String'];
270
+ attribute: Scalars['String']['output'];
236
271
  type: DataType;
237
- value?: Maybe<Scalars['String']>;
272
+ value?: Maybe<Scalars['String']['output']>;
238
273
  };
239
274
  export type DisplayPropertyField = {
240
275
  __typename?: 'DisplayPropertyField';
241
276
  attributes: Array<DisplayAttribute>;
242
- propertyName: Scalars['String'];
277
+ propertyName: Scalars['String']['output'];
243
278
  };
244
279
  export type FfidMetadata = {
245
280
  __typename?: 'FFIDMetadata';
246
- binarySignatureFileVersion: Scalars['String'];
247
- containerSignatureFileVersion: Scalars['String'];
248
- datetime: Scalars['Long'];
249
- fileId: Scalars['UUID'];
281
+ binarySignatureFileVersion: Scalars['String']['output'];
282
+ containerSignatureFileVersion: Scalars['String']['output'];
283
+ datetime: Scalars['Long']['output'];
284
+ fileId: Scalars['UUID']['output'];
250
285
  matches: Array<FfidMetadataMatches>;
251
- method: Scalars['String'];
252
- software: Scalars['String'];
253
- softwareVersion: Scalars['String'];
286
+ method: Scalars['String']['output'];
287
+ software: Scalars['String']['output'];
288
+ softwareVersion: Scalars['String']['output'];
254
289
  };
255
290
  export type FfidMetadataInput = {
256
291
  metadataInputValues: Array<FfidMetadataInputValues>;
257
292
  };
258
293
  export type FfidMetadataInputMatches = {
259
- extension?: InputMaybe<Scalars['String']>;
260
- identificationBasis: Scalars['String'];
261
- puid?: InputMaybe<Scalars['String']>;
294
+ extension?: InputMaybe<Scalars['String']['input']>;
295
+ identificationBasis: Scalars['String']['input'];
296
+ puid?: InputMaybe<Scalars['String']['input']>;
262
297
  };
263
298
  export type FfidMetadataInputValues = {
264
- binarySignatureFileVersion: Scalars['String'];
265
- containerSignatureFileVersion: Scalars['String'];
266
- fileId: Scalars['UUID'];
299
+ binarySignatureFileVersion: Scalars['String']['input'];
300
+ containerSignatureFileVersion: Scalars['String']['input'];
301
+ fileId: Scalars['UUID']['input'];
267
302
  matches: Array<FfidMetadataInputMatches>;
268
- method: Scalars['String'];
269
- software: Scalars['String'];
270
- softwareVersion: Scalars['String'];
303
+ method: Scalars['String']['input'];
304
+ software: Scalars['String']['input'];
305
+ softwareVersion: Scalars['String']['input'];
271
306
  };
272
307
  export type FfidMetadataMatches = {
273
308
  __typename?: 'FFIDMetadataMatches';
274
- extension?: Maybe<Scalars['String']>;
275
- identificationBasis: Scalars['String'];
276
- puid?: Maybe<Scalars['String']>;
309
+ extension?: Maybe<Scalars['String']['output']>;
310
+ identificationBasis: Scalars['String']['output'];
311
+ puid?: Maybe<Scalars['String']['output']>;
277
312
  };
278
313
  export type FfidProgress = {
279
314
  __typename?: 'FFIDProgress';
280
- filesProcessed: Scalars['Int'];
315
+ filesProcessed: Scalars['Int']['output'];
281
316
  };
282
317
  export type File = {
283
318
  __typename?: 'File';
284
319
  antivirusMetadata?: Maybe<AntivirusMetadata>;
285
320
  ffidMetadata?: Maybe<FfidMetadata>;
286
- fileId: Scalars['UUID'];
321
+ fileId: Scalars['UUID']['output'];
287
322
  fileMetadata: Array<FileMetadataValue>;
288
- fileName?: Maybe<Scalars['String']>;
323
+ fileName?: Maybe<Scalars['String']['output']>;
289
324
  /** @deprecated Should use 'fileStatuses' field */
290
- fileStatus?: Maybe<Scalars['String']>;
325
+ fileStatus?: Maybe<Scalars['String']['output']>;
291
326
  fileStatuses: Array<FileStatus>;
292
- fileType?: Maybe<Scalars['String']>;
327
+ fileType?: Maybe<Scalars['String']['output']>;
293
328
  metadata: FileMetadataValues;
294
- originalFilePath?: Maybe<Scalars['String']>;
295
- parentId?: Maybe<Scalars['UUID']>;
329
+ originalFilePath?: Maybe<Scalars['String']['output']>;
330
+ parentId?: Maybe<Scalars['UUID']['output']>;
296
331
  };
297
332
  export type FileChecks = {
298
333
  __typename?: 'FileChecks';
@@ -307,81 +342,81 @@ export type FileConnection = {
307
342
  edges?: Maybe<Array<Maybe<FileEdge>>>;
308
343
  /** Information to aid in pagination. */
309
344
  pageInfo: PageInfo;
310
- totalItems?: Maybe<Scalars['Int']>;
311
- totalPages?: Maybe<Scalars['Int']>;
345
+ totalItems?: Maybe<Scalars['Int']['output']>;
346
+ totalPages?: Maybe<Scalars['Int']['output']>;
312
347
  };
313
348
  /** An edge in a connection. */
314
349
  export type FileEdge = {
315
350
  __typename?: 'FileEdge';
316
351
  /** A cursor for use in pagination. */
317
- cursor: Scalars['String'];
352
+ cursor: Scalars['String']['output'];
318
353
  /** The item at the end of the edge. */
319
354
  node: File;
320
355
  };
321
356
  export type FileFilters = {
322
- fileTypeIdentifier?: InputMaybe<Scalars['String']>;
357
+ fileTypeIdentifier?: InputMaybe<Scalars['String']['input']>;
323
358
  metadataFilters?: InputMaybe<FileMetadataFilters>;
324
- parentId?: InputMaybe<Scalars['UUID']>;
325
- selectedFileIds?: InputMaybe<Array<Scalars['UUID']>>;
359
+ parentId?: InputMaybe<Scalars['UUID']['input']>;
360
+ selectedFileIds?: InputMaybe<Array<Scalars['UUID']['input']>>;
326
361
  };
327
362
  export type FileMatches = {
328
363
  __typename?: 'FileMatches';
329
- fileId: Scalars['UUID'];
330
- matchId: Scalars['Long'];
364
+ fileId: Scalars['UUID']['output'];
365
+ matchId: Scalars['Long']['output'];
331
366
  };
332
367
  export type FileMetadata = {
333
368
  __typename?: 'FileMetadata';
334
- filePropertyName: Scalars['String'];
335
- value: Scalars['String'];
369
+ filePropertyName: Scalars['String']['output'];
370
+ value: Scalars['String']['output'];
336
371
  };
337
372
  export type FileMetadataFilters = {
338
- closureMetadata?: InputMaybe<Scalars['Boolean']>;
339
- descriptiveMetadata?: InputMaybe<Scalars['Boolean']>;
340
- properties?: InputMaybe<Array<Scalars['String']>>;
373
+ closureMetadata?: InputMaybe<Scalars['Boolean']['input']>;
374
+ descriptiveMetadata?: InputMaybe<Scalars['Boolean']['input']>;
375
+ properties?: InputMaybe<Array<Scalars['String']['input']>>;
341
376
  };
342
377
  export type FileMetadataValue = {
343
378
  __typename?: 'FileMetadataValue';
344
- name: Scalars['String'];
345
- value: Scalars['String'];
379
+ name: Scalars['String']['output'];
380
+ value: Scalars['String']['output'];
346
381
  };
347
382
  export type FileMetadataValues = {
348
383
  __typename?: 'FileMetadataValues';
349
- clientSideFileSize?: Maybe<Scalars['Long']>;
350
- clientSideLastModifiedDate?: Maybe<Scalars['LocalDateTime']>;
351
- clientSideOriginalFilePath?: Maybe<Scalars['String']>;
352
- closurePeriod?: Maybe<Scalars['Int']>;
353
- closureStartDate?: Maybe<Scalars['LocalDateTime']>;
354
- descriptionClosed?: Maybe<Scalars['Boolean']>;
355
- foiExemptionAsserted?: Maybe<Scalars['LocalDateTime']>;
356
- foiExemptionCode?: Maybe<Scalars['String']>;
357
- heldBy?: Maybe<Scalars['String']>;
358
- language?: Maybe<Scalars['String']>;
359
- legalStatus?: Maybe<Scalars['String']>;
360
- rightsCopyright?: Maybe<Scalars['String']>;
361
- sha256ClientSideChecksum?: Maybe<Scalars['String']>;
362
- titleClosed?: Maybe<Scalars['Boolean']>;
384
+ clientSideFileSize?: Maybe<Scalars['Long']['output']>;
385
+ clientSideLastModifiedDate?: Maybe<Scalars['LocalDateTime']['output']>;
386
+ clientSideOriginalFilePath?: Maybe<Scalars['String']['output']>;
387
+ closurePeriod?: Maybe<Scalars['Int']['output']>;
388
+ closureStartDate?: Maybe<Scalars['LocalDateTime']['output']>;
389
+ descriptionClosed?: Maybe<Scalars['Boolean']['output']>;
390
+ foiExemptionAsserted?: Maybe<Scalars['LocalDateTime']['output']>;
391
+ foiExemptionCode?: Maybe<Scalars['String']['output']>;
392
+ heldBy?: Maybe<Scalars['String']['output']>;
393
+ language?: Maybe<Scalars['String']['output']>;
394
+ legalStatus?: Maybe<Scalars['String']['output']>;
395
+ rightsCopyright?: Maybe<Scalars['String']['output']>;
396
+ sha256ClientSideChecksum?: Maybe<Scalars['String']['output']>;
397
+ titleClosed?: Maybe<Scalars['Boolean']['output']>;
363
398
  };
364
399
  export type FileMetadataWithFileId = {
365
400
  __typename?: 'FileMetadataWithFileId';
366
- fileId: Scalars['UUID'];
367
- filePropertyName: Scalars['String'];
368
- value: Scalars['String'];
401
+ fileId: Scalars['UUID']['output'];
402
+ filePropertyName: Scalars['String']['output'];
403
+ value: Scalars['String']['output'];
369
404
  };
370
405
  export type FileStatus = {
371
406
  __typename?: 'FileStatus';
372
- fileId: Scalars['UUID'];
373
- statusType: Scalars['String'];
374
- statusValue: Scalars['String'];
407
+ fileId: Scalars['UUID']['output'];
408
+ statusType: Scalars['String']['output'];
409
+ statusValue: Scalars['String']['output'];
375
410
  };
376
411
  export type FinalJudgmentTransferConfirmation = {
377
412
  __typename?: 'FinalJudgmentTransferConfirmation';
378
- consignmentId: Scalars['UUID'];
379
- legalCustodyTransferConfirmed: Scalars['Boolean'];
413
+ consignmentId: Scalars['UUID']['output'];
414
+ legalCustodyTransferConfirmed: Scalars['Boolean']['output'];
380
415
  };
381
416
  export type FinalTransferConfirmation = {
382
417
  __typename?: 'FinalTransferConfirmation';
383
- consignmentId: Scalars['UUID'];
384
- legalCustodyTransferConfirmed: Scalars['Boolean'];
418
+ consignmentId: Scalars['UUID']['output'];
419
+ legalCustodyTransferConfirmed: Scalars['Boolean']['output'];
385
420
  };
386
421
  export type Mutation = {
387
422
  __typename?: 'Mutation';
@@ -391,7 +426,6 @@ export type Mutation = {
391
426
  addConsignmentStatus: ConsignmentStatus;
392
427
  addFFIDMetadata: FfidMetadata;
393
428
  addFileMetadata: FileMetadataWithFileId;
394
- addFileStatus: FileStatus;
395
429
  addFilesAndMetadata: Array<FileMatches>;
396
430
  addFinalJudgmentTransferConfirmation: FinalJudgmentTransferConfirmation;
397
431
  addFinalTransferConfirmation: FinalTransferConfirmation;
@@ -400,12 +434,12 @@ export type Mutation = {
400
434
  addTransferAgreementCompliance: TransferAgreementCompliance;
401
435
  addTransferAgreementPrivateBeta: TransferAgreementPrivateBeta;
402
436
  deleteFileMetadata: DeleteFileMetadata;
403
- startUpload: Scalars['String'];
437
+ startUpload: Scalars['String']['output'];
404
438
  updateBulkFileMetadata: BulkFileMetadata;
405
- updateConsignmentSeriesId?: Maybe<Scalars['Int']>;
406
- updateConsignmentStatus?: Maybe<Scalars['Int']>;
407
- updateExportData?: Maybe<Scalars['Int']>;
408
- updateTransferInitiated?: Maybe<Scalars['Int']>;
439
+ updateConsignmentSeriesId?: Maybe<Scalars['Int']['output']>;
440
+ updateConsignmentStatus?: Maybe<Scalars['Int']['output']>;
441
+ updateExportData?: Maybe<Scalars['Int']['output']>;
442
+ updateTransferInitiated?: Maybe<Scalars['Int']['output']>;
409
443
  };
410
444
  export type MutationAddBulkAntivirusMetadataArgs = {
411
445
  addBulkAntivirusMetadataInput: AddAntivirusMetadataInput;
@@ -425,9 +459,6 @@ export type MutationAddFfidMetadataArgs = {
425
459
  export type MutationAddFileMetadataArgs = {
426
460
  addFileMetadataWithFileIdInput: AddFileMetadataWithFileIdInputValues;
427
461
  };
428
- export type MutationAddFileStatusArgs = {
429
- addFileStatusInput: AddFileStatusInput;
430
- };
431
462
  export type MutationAddFilesAndMetadataArgs = {
432
463
  addFilesAndMetadataInput: AddFileAndMetadataInput;
433
464
  };
@@ -468,25 +499,25 @@ export type MutationUpdateExportDataArgs = {
468
499
  exportData: UpdateExportDataInput;
469
500
  };
470
501
  export type MutationUpdateTransferInitiatedArgs = {
471
- consignmentid: Scalars['UUID'];
502
+ consignmentid: Scalars['UUID']['input'];
472
503
  };
473
504
  /** Information about pagination in a connection. */
474
505
  export type PageInfo = {
475
506
  __typename?: 'PageInfo';
476
507
  /** When paginating forwards, the cursor to continue. */
477
- endCursor?: Maybe<Scalars['String']>;
508
+ endCursor?: Maybe<Scalars['String']['output']>;
478
509
  /** When paginating forwards, are there more items? */
479
- hasNextPage: Scalars['Boolean'];
510
+ hasNextPage: Scalars['Boolean']['output'];
480
511
  /** When paginating backwards, are there more items? */
481
- hasPreviousPage: Scalars['Boolean'];
512
+ hasPreviousPage: Scalars['Boolean']['output'];
482
513
  /** When paginating backwards, the cursor to continue. */
483
- startCursor?: Maybe<Scalars['String']>;
514
+ startCursor?: Maybe<Scalars['String']['output']>;
484
515
  };
485
516
  export type PaginationInput = {
486
- currentCursor?: InputMaybe<Scalars['String']>;
487
- currentPage?: InputMaybe<Scalars['Int']>;
517
+ currentCursor?: InputMaybe<Scalars['String']['input']>;
518
+ currentPage?: InputMaybe<Scalars['Int']['input']>;
488
519
  fileFilters?: InputMaybe<FileFilters>;
489
- limit?: InputMaybe<Scalars['Int']>;
520
+ limit?: InputMaybe<Scalars['Int']['input']>;
490
521
  };
491
522
  export declare enum PropertyType {
492
523
  Defined = "Defined",
@@ -508,77 +539,77 @@ export type QueryAllDescendantsArgs = {
508
539
  };
509
540
  export type QueryConsignmentsArgs = {
510
541
  consignmentFiltersInput?: InputMaybe<ConsignmentFilters>;
511
- currentCursor?: InputMaybe<Scalars['String']>;
512
- currentPage?: InputMaybe<Scalars['Int']>;
513
- limit: Scalars['Int'];
542
+ currentCursor?: InputMaybe<Scalars['String']['input']>;
543
+ currentPage?: InputMaybe<Scalars['Int']['input']>;
544
+ limit: Scalars['Int']['input'];
514
545
  };
515
546
  export type QueryCustomMetadataArgs = {
516
- consignmentid: Scalars['UUID'];
547
+ consignmentid: Scalars['UUID']['input'];
517
548
  };
518
549
  export type QueryDisplayPropertiesArgs = {
519
- consignmentid: Scalars['UUID'];
550
+ consignmentid: Scalars['UUID']['input'];
520
551
  };
521
552
  export type QueryGetClientFileMetadataArgs = {
522
- fileId: Scalars['UUID'];
553
+ fileId: Scalars['UUID']['input'];
523
554
  };
524
555
  export type QueryGetConsignmentArgs = {
525
- consignmentid: Scalars['UUID'];
556
+ consignmentid: Scalars['UUID']['input'];
526
557
  paginationInput?: InputMaybe<PaginationInput>;
527
558
  };
528
559
  export type QueryGetSeriesArgs = {
529
- body: Scalars['String'];
560
+ body: Scalars['String']['input'];
530
561
  };
531
562
  export type Series = {
532
563
  __typename?: 'Series';
533
- bodyid: Scalars['UUID'];
534
- code: Scalars['String'];
535
- description?: Maybe<Scalars['String']>;
536
- name: Scalars['String'];
537
- seriesid: Scalars['UUID'];
564
+ bodyid: Scalars['UUID']['output'];
565
+ code: Scalars['String']['output'];
566
+ description?: Maybe<Scalars['String']['output']>;
567
+ name: Scalars['String']['output'];
568
+ seriesid: Scalars['UUID']['output'];
538
569
  };
539
570
  export type StartUploadInput = {
540
- consignmentId: Scalars['UUID'];
541
- includeTopLevelFolder?: InputMaybe<Scalars['Boolean']>;
542
- parentFolder: Scalars['String'];
571
+ consignmentId: Scalars['UUID']['input'];
572
+ includeTopLevelFolder?: InputMaybe<Scalars['Boolean']['input']>;
573
+ parentFolder: Scalars['String']['input'];
543
574
  };
544
575
  export type TransferAgreementCompliance = {
545
576
  __typename?: 'TransferAgreementCompliance';
546
- appraisalSelectionSignedOff: Scalars['Boolean'];
547
- consignmentId: Scalars['UUID'];
548
- initialOpenRecords?: Maybe<Scalars['Boolean']>;
549
- sensitivityReviewSignedOff: Scalars['Boolean'];
577
+ appraisalSelectionSignedOff: Scalars['Boolean']['output'];
578
+ consignmentId: Scalars['UUID']['output'];
579
+ initialOpenRecords?: Maybe<Scalars['Boolean']['output']>;
580
+ sensitivityReviewSignedOff: Scalars['Boolean']['output'];
550
581
  };
551
582
  export type TransferAgreementPrivateBeta = {
552
583
  __typename?: 'TransferAgreementPrivateBeta';
553
- allCrownCopyright: Scalars['Boolean'];
554
- allEnglish?: Maybe<Scalars['Boolean']>;
555
- allPublicRecords: Scalars['Boolean'];
556
- consignmentId: Scalars['UUID'];
584
+ allCrownCopyright: Scalars['Boolean']['output'];
585
+ allEnglish?: Maybe<Scalars['Boolean']['output']>;
586
+ allPublicRecords: Scalars['Boolean']['output'];
587
+ consignmentId: Scalars['UUID']['output'];
557
588
  };
558
589
  export type TransferringBody = {
559
590
  __typename?: 'TransferringBody';
560
- name: Scalars['String'];
561
- tdrCode: Scalars['String'];
591
+ name: Scalars['String']['output'];
592
+ tdrCode: Scalars['String']['output'];
562
593
  };
563
594
  export type UpdateBulkFileMetadataInput = {
564
- consignmentId: Scalars['UUID'];
565
- fileIds: Array<Scalars['UUID']>;
595
+ consignmentId: Scalars['UUID']['input'];
596
+ fileIds: Array<Scalars['UUID']['input']>;
566
597
  metadataProperties: Array<UpdateFileMetadataInput>;
567
598
  };
568
599
  export type UpdateConsignmentSeriesIdInput = {
569
- consignmentId: Scalars['UUID'];
570
- seriesId: Scalars['UUID'];
600
+ consignmentId: Scalars['UUID']['input'];
601
+ seriesId: Scalars['UUID']['input'];
571
602
  };
572
603
  export type UpdateExportDataInput = {
573
- consignmentId: Scalars['UUID'];
574
- exportDatetime?: InputMaybe<Scalars['ZonedDateTime']>;
575
- exportLocation: Scalars['String'];
576
- exportVersion: Scalars['String'];
604
+ consignmentId: Scalars['UUID']['input'];
605
+ exportDatetime?: InputMaybe<Scalars['ZonedDateTime']['input']>;
606
+ exportLocation: Scalars['String']['input'];
607
+ exportVersion: Scalars['String']['input'];
577
608
  };
578
609
  export type UpdateFileMetadataInput = {
579
- filePropertyIsMultiValue: Scalars['Boolean'];
580
- filePropertyName: Scalars['String'];
581
- value: Scalars['String'];
610
+ filePropertyIsMultiValue: Scalars['Boolean']['input'];
611
+ filePropertyName: Scalars['String']['input'];
612
+ value: Scalars['String']['input'];
582
613
  };
583
614
  export type AddBulkAntivirusMetadataMutationVariables = Exact<{
584
615
  input: AddAntivirusMetadataInput;
@@ -656,17 +687,6 @@ export type AddFfidMetadataMutation = {
656
687
  fileId: any;
657
688
  };
658
689
  };
659
- export type AddFileMetadataMutationVariables = Exact<{
660
- addFileMetadataWithFileIdInput: AddFileMetadataWithFileIdInputValues;
661
- }>;
662
- export type AddFileMetadataMutation = {
663
- __typename?: 'Mutation';
664
- addFileMetadata: {
665
- __typename?: 'FileMetadataWithFileId';
666
- fileId: any;
667
- value: string;
668
- };
669
- };
670
690
  export type AddFilesAndMetadataMutationVariables = Exact<{
671
691
  input: AddFileAndMetadataInput;
672
692
  }>;
@@ -772,7 +792,7 @@ export type GetAllDescendantIdsQuery = {
772
792
  }>;
773
793
  };
774
794
  export type GetConsignmentQueryVariables = Exact<{
775
- consignmentId: Scalars['UUID'];
795
+ consignmentId: Scalars['UUID']['input'];
776
796
  }>;
777
797
  export type GetConsignmentQuery = {
778
798
  __typename?: 'Query';
@@ -791,7 +811,7 @@ export type GetConsignmentQuery = {
791
811
  } | null;
792
812
  };
793
813
  export type GetConsignmentForExportQueryVariables = Exact<{
794
- consignmentId: Scalars['UUID'];
814
+ consignmentId: Scalars['UUID']['input'];
795
815
  }>;
796
816
  export type GetConsignmentForExportQuery = {
797
817
  __typename?: 'Query';
@@ -846,7 +866,7 @@ export type GetConsignmentForExportQuery = {
846
866
  } | null;
847
867
  };
848
868
  export type GetConsignmentFilesQueryVariables = Exact<{
849
- consignmentId: Scalars['UUID'];
869
+ consignmentId: Scalars['UUID']['input'];
850
870
  }>;
851
871
  export type GetConsignmentFilesQuery = {
852
872
  __typename?: 'Query';
@@ -871,7 +891,7 @@ export type GetConsignmentFilesQuery = {
871
891
  } | null;
872
892
  };
873
893
  export type GetConsignmentFilesMetadataQueryVariables = Exact<{
874
- consignmentId: Scalars['UUID'];
894
+ consignmentId: Scalars['UUID']['input'];
875
895
  fileFiltersInput?: InputMaybe<FileFilters>;
876
896
  }>;
877
897
  export type GetConsignmentFilesMetadataQuery = {
@@ -897,7 +917,7 @@ export type GetConsignmentFilesMetadataQuery = {
897
917
  } | null;
898
918
  };
899
919
  export type GetConsignmentFolderDetailsQueryVariables = Exact<{
900
- consignmentId: Scalars['UUID'];
920
+ consignmentId: Scalars['UUID']['input'];
901
921
  }>;
902
922
  export type GetConsignmentFolderDetailsQuery = {
903
923
  __typename?: 'Query';
@@ -908,7 +928,7 @@ export type GetConsignmentFolderDetailsQuery = {
908
928
  } | null;
909
929
  };
910
930
  export type GetConsignmentPaginatedFilesQueryVariables = Exact<{
911
- consignmentId: Scalars['UUID'];
931
+ consignmentId: Scalars['UUID']['input'];
912
932
  paginatedInput?: InputMaybe<PaginationInput>;
913
933
  }>;
914
934
  export type GetConsignmentPaginatedFilesQuery = {
@@ -942,7 +962,7 @@ export type GetConsignmentPaginatedFilesQuery = {
942
962
  } | null;
943
963
  };
944
964
  export type GetConsignmentReferenceQueryVariables = Exact<{
945
- consignmentId: Scalars['UUID'];
965
+ consignmentId: Scalars['UUID']['input'];
946
966
  }>;
947
967
  export type GetConsignmentReferenceQuery = {
948
968
  __typename?: 'Query';
@@ -952,7 +972,7 @@ export type GetConsignmentReferenceQuery = {
952
972
  } | null;
953
973
  };
954
974
  export type GetConsignmentStatusQueryVariables = Exact<{
955
- consignmentId: Scalars['UUID'];
975
+ consignmentId: Scalars['UUID']['input'];
956
976
  }>;
957
977
  export type GetConsignmentStatusQuery = {
958
978
  __typename?: 'Query';
@@ -975,7 +995,7 @@ export type GetConsignmentStatusQuery = {
975
995
  } | null;
976
996
  };
977
997
  export type GetConsignmentSummaryQueryVariables = Exact<{
978
- consignmentId: Scalars['UUID'];
998
+ consignmentId: Scalars['UUID']['input'];
979
999
  }>;
980
1000
  export type GetConsignmentSummaryQuery = {
981
1001
  __typename?: 'Query';
@@ -994,7 +1014,7 @@ export type GetConsignmentSummaryQuery = {
994
1014
  } | null;
995
1015
  };
996
1016
  export type GetConsignmentTypeQueryVariables = Exact<{
997
- consignmentId: Scalars['UUID'];
1017
+ consignmentId: Scalars['UUID']['input'];
998
1018
  }>;
999
1019
  export type GetConsignmentTypeQuery = {
1000
1020
  __typename?: 'Query';
@@ -1004,9 +1024,9 @@ export type GetConsignmentTypeQuery = {
1004
1024
  } | null;
1005
1025
  };
1006
1026
  export type GetConsignmentsQueryVariables = Exact<{
1007
- limit: Scalars['Int'];
1008
- currentCursor?: InputMaybe<Scalars['String']>;
1009
- currentPage?: InputMaybe<Scalars['Int']>;
1027
+ limit: Scalars['Int']['input'];
1028
+ currentCursor?: InputMaybe<Scalars['String']['input']>;
1029
+ currentPage?: InputMaybe<Scalars['Int']['input']>;
1010
1030
  consignmentFiltersInput?: InputMaybe<ConsignmentFilters>;
1011
1031
  }>;
1012
1032
  export type GetConsignmentsQuery = {
@@ -1044,7 +1064,7 @@ export type GetConsignmentsQuery = {
1044
1064
  };
1045
1065
  };
1046
1066
  export type CustomMetadataQueryVariables = Exact<{
1047
- consignmentId: Scalars['UUID'];
1067
+ consignmentId: Scalars['UUID']['input'];
1048
1068
  }>;
1049
1069
  export type CustomMetadataQuery = {
1050
1070
  __typename?: 'Query';
@@ -1074,7 +1094,7 @@ export type CustomMetadataQuery = {
1074
1094
  }>;
1075
1095
  };
1076
1096
  export type DisplayPropertiesQueryVariables = Exact<{
1077
- consignmentId: Scalars['UUID'];
1097
+ consignmentId: Scalars['UUID']['input'];
1078
1098
  }>;
1079
1099
  export type DisplayPropertiesQuery = {
1080
1100
  __typename?: 'Query';
@@ -1090,7 +1110,7 @@ export type DisplayPropertiesQuery = {
1090
1110
  }>;
1091
1111
  };
1092
1112
  export type GetFileCheckProgressQueryVariables = Exact<{
1093
- consignmentId: Scalars['UUID'];
1113
+ consignmentId: Scalars['UUID']['input'];
1094
1114
  }>;
1095
1115
  export type GetFileCheckProgressQuery = {
1096
1116
  __typename?: 'Query';
@@ -1121,7 +1141,7 @@ export type GetFileCheckProgressQuery = {
1121
1141
  } | null;
1122
1142
  };
1123
1143
  export type GetFileCheckProgressSummaryQueryVariables = Exact<{
1124
- consignmentId: Scalars['UUID'];
1144
+ consignmentId: Scalars['UUID']['input'];
1125
1145
  }>;
1126
1146
  export type GetFileCheckProgressSummaryQuery = {
1127
1147
  __typename?: 'Query';
@@ -1146,7 +1166,7 @@ export type GetFileCheckProgressSummaryQuery = {
1146
1166
  } | null;
1147
1167
  };
1148
1168
  export type GetOriginalPathQueryVariables = Exact<{
1149
- fileId: Scalars['UUID'];
1169
+ fileId: Scalars['UUID']['input'];
1150
1170
  }>;
1151
1171
  export type GetOriginalPathQuery = {
1152
1172
  __typename?: 'Query';
@@ -1156,7 +1176,7 @@ export type GetOriginalPathQuery = {
1156
1176
  };
1157
1177
  };
1158
1178
  export type GetSeriesQueryVariables = Exact<{
1159
- body: Scalars['String'];
1179
+ body: Scalars['String']['input'];
1160
1180
  }>;
1161
1181
  export type GetSeriesQuery = {
1162
1182
  __typename?: 'Query';
@@ -1198,7 +1218,7 @@ export type UpdateExportDataMutation = {
1198
1218
  updateExportData?: number | null;
1199
1219
  };
1200
1220
  export type UpdateTransferInitiatedMutationVariables = Exact<{
1201
- consignmentId: Scalars['UUID'];
1221
+ consignmentId: Scalars['UUID']['input'];
1202
1222
  }>;
1203
1223
  export type UpdateTransferInitiatedMutation = {
1204
1224
  __typename?: 'Mutation';
@@ -1210,7 +1230,6 @@ export declare const AddBulkFileMetadata: import("graphql/language/ast").Documen
1210
1230
  export declare const AddConsignment: import("graphql/language/ast").DocumentNode;
1211
1231
  export declare const AddConsignmentStatus: import("graphql/language/ast").DocumentNode;
1212
1232
  export declare const AddFfidMetadata: import("graphql/language/ast").DocumentNode;
1213
- export declare const AddFileMetadata: import("graphql/language/ast").DocumentNode;
1214
1233
  export declare const AddFilesAndMetadata: import("graphql/language/ast").DocumentNode;
1215
1234
  export declare const AddFinalJudgmentTransferConfirmation: import("graphql/language/ast").DocumentNode;
1216
1235
  export declare const AddFinalTransferConfirmation: import("graphql/language/ast").DocumentNode;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{"use strict";var e={333:(e,t,n)=>{n.r(t),n.d(t,{default:()=>pe,disableExperimentalFragmentVariables:()=>ae,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 a=/\r\n|[\n\r]/g;function r(e,t){let n=0,i=1;for(const r of e.body.matchAll(a)){if("number"==typeof r.index||s(!1),r.index>=t)break;n=r.index+r[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,a=e.locationOffset.line-1,r=t.line+a,o=1===t.line?n:0,l=t.column+o,c=`${e.name}:${r}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+d([[`${r} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+d([[r-1+" |",u[s-1]],[`${r} |`,p],["|","^".padStart(l)],[`${r+1} |`,u[s+1]]])}function d(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,i,s;const{nodes:a,source:o,positions:d,path:u,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=c(Array.isArray(a)?a:a?[a]:void 0);const m=c(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&o?d.map((e=>r(o,e))):null==m?void 0:m.map((e=>r(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,l):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,r(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 c(e){return void 0===e||0===e.length?void 0:e}function u(e,t,n){return new l(`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,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var m,f,I,g,E;function T(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){return N(e)||95===e}function A(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let t=0;t<e.length;++t){var a;const r=e[t],o=D(r);o!==r.length&&(i=null!==(a=i)&&void 0!==a?a:t,s=t,0!==t&&o<n&&(n=o))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,s+1)}function D(e){let t=0;for(;t<e.length&&(9===(n=e.charCodeAt(t))||32===n);)++t;var n;return t}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["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={})),(E=g||(g={})).SOF="<SOF>",E.EOF="<EOF>",E.BANG="!",E.DOLLAR="$",E.AMP="&",E.PAREN_L="(",E.PAREN_R=")",E.SPREAD="...",E.COLON=":",E.EQUALS="=",E.AT="@",E.BRACKET_L="[",E.BRACKET_R="]",E.BRACE_L="{",E.PIPE="|",E.BRACE_R="}",E.NAME="Name",E.INT="Int",E.FLOAT="Float",E.STRING="String",E.BLOCK_STRING="BlockString",E.COMMENT="Comment";class C{constructor(e){const t=new h(g.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==g.EOF)do{if(e.next)e=e.next;else{const t=k(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===g.COMMENT);return e}}function F(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function v(e,t){return O(e.charCodeAt(t))&&x(e.charCodeAt(t+1))}function O(e){return e>=55296&&e<=56319}function x(e){return e>=56320&&e<=57343}function _(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return g.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function S(e,t,n,i,s){const a=e.line,r=1+n-e.lineStart;return new h(t,n,i,a,r,s)}function k(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 M(e,s);case 33:return S(e,g.BANG,s,s+1);case 36:return S(e,g.DOLLAR,s,s+1);case 38:return S(e,g.AMP,s,s+1);case 40:return S(e,g.PAREN_L,s,s+1);case 41:return S(e,g.PAREN_R,s,s+1);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return S(e,g.SPREAD,s,s+3);break;case 58:return S(e,g.COLON,s,s+1);case 61:return S(e,g.EQUALS,s,s+1);case 64:return S(e,g.AT,s,s+1);case 91:return S(e,g.BRACKET_L,s,s+1);case 93:return S(e,g.BRACKET_R,s,s+1);case 123:return S(e,g.BRACE_L,s,s+1);case 124:return S(e,g.PIPE,s,s+1);case 125:return S(e,g.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 R(e,s,t);if(y(t))return G(e,s);throw u(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":F(t)||v(n,s)?`Unexpected character: ${_(e,s)}.`:`Invalid character: ${_(e,s)}.`)}return S(e,g.EOF,i,i)}function M(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(F(e))++s;else{if(!v(n,s))break;s+=2}}return S(e,g.COMMENT,t,s,n.slice(t+1,s))}function R(e,t,n){const i=e.source.body;let s=t,a=n,r=!1;if(45===a&&(a=i.charCodeAt(++s)),48===a){if(a=i.charCodeAt(++s),T(a))throw u(e.source,s,`Invalid number, unexpected digit after 0: ${_(e,s)}.`)}else s=b(e,s,a),a=i.charCodeAt(s);if(46===a&&(r=!0,a=i.charCodeAt(++s),s=b(e,s,a),a=i.charCodeAt(s)),69!==a&&101!==a||(r=!0,a=i.charCodeAt(++s),43!==a&&45!==a||(a=i.charCodeAt(++s)),s=b(e,s,a),a=i.charCodeAt(s)),46===a||y(a))throw u(e.source,s,`Invalid number, expected digit but got: ${_(e,s)}.`);return S(e,r?g.FLOAT:g.INT,t,s,i.slice(t,s))}function b(e,t,n){if(!T(n))throw u(e.source,t,`Invalid number, expected digit but got: ${_(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,a=s,r="";for(;s<i;){const i=n.charCodeAt(s);if(34===i)return r+=n.slice(a,s),S(e,g.STRING,t,s+1,r);if(92!==i){if(10===i||13===i)break;if(F(i))++s;else{if(!v(n,s))throw u(e.source,s,`Invalid character within String: ${_(e,s)}.`);s+=2}}else{r+=n.slice(a,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?L(e,s):U(e,s):B(e,s);r+=t.value,s+=t.size,a=s}}throw u(e.source,s,"Unterminated string.")}function L(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!F(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|w(e),i<0)break}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function U(e,t){const n=e.source.body,i=$(n,t+2);if(F(i))return{value:String.fromCodePoint(i),size:6};if(O(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=$(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 $(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function B(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,a=t+3,r=a,o="";const d=[];for(;a<i;){const i=n.charCodeAt(a);if(34===i&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){o+=n.slice(r,a),d.push(o);const i=S(e,g.BLOCK_STRING,t,a+3,A(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==i&&13!==i)if(F(i))++a;else{if(!v(n,a))throw u(e.source,a,`Invalid character within String: ${_(e,a)}.`);a+=2}else o+=n.slice(r,a),d.push(o),13===i&&10===n.charCodeAt(a+1)?a+=2:++a,o="",r=a,s=a;else o+=n.slice(r,a),r=a+1,a+=4}throw u(e.source,a,"Unterminated string.")}function G(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&(N(a=n.charCodeAt(s))||T(a)||95===a);)++s;var a;return S(e,g.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 q{constructor(e,t={}){const n=function(e){return e instanceof Y}(e)?e:new Y(e);this._lexer=new C(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(g.NAME);return this.node(e,{kind:I.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:I.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF)})}parseDefinition(){if(this.peek(g.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===g.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}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(g.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(g.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(g.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(g.DOLLAR),this.node(e,{kind:I.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:I.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R)})}parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(g.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:I.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(g.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?this.node(e,{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{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(e,{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 g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this.advanceLexer(),this.node(t,{kind:I.INT,value:t.value});case g.FLOAT:return this.advanceLexer(),this.node(t,{kind:I.FLOAT,value:t.value});case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:I.BOOLEAN,value:!0});case"false":return this.node(t,{kind:I.BOOLEAN,value:!1});case"null":return this.node(t,{kind:I.NULL});default:return this.node(t,{kind:I.ENUM,value:t.value})}case g.DOLLAR:if(e){if(this.expectToken(g.DOLLAR),this._lexer.token.kind===g.NAME){const e=this._lexer.token.value;throw u(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:I.STRING,value:e.value,block:e.kind===g.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:I.LIST,values:this.any(g.BRACKET_L,(()=>this.parseValueLiteral(e)),g.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:I.OBJECT,fields:this.any(g.BRACE_L,(()=>this.parseObjectField(e)),g.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(g.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(g.AT),this.node(t,{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(g.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(g.BRACKET_R),t=this.node(e,{kind:I.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(g.BANG)?this.node(e,{kind:I.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:I.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return this.node(e,{kind:I.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);const n=this.parseNamedType();return this.node(e,{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(g.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(g.COLON);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:I.FIELD_DEFINITION,description:t,name:n,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(g.EQUALS)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:I.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:I.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:I.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:I.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${J(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:I.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw u(this._lexer.source,t.start,`Expected ${Q(e)}, found ${J(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw u(this._lexer.source,t.start,`Expected "${e}", found ${J(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${J(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==g.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw u(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function J(e){const t=e.value;return Q(e.kind)+(null!=t?` "${t}"`:"")}function Q(e){return function(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?`"${e}"`:e}var 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,a=Z(e);if(!X.has(a)){var r=function(e,t){return new q(e,t).parseDocument()}(e,{experimentalFragmentVariables:H,allowLegacyFragmentVariables:H});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");X.set(a,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=r,n=new Set,s=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Z((r=e.loc).source.body.substring(r.start,r.end)),a=z.get(t);a&&!a.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"):a||z.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),s.push(e))}else s.push(e);var r})),i(i({},t),{definitions:s}))))}return X.get(a)}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 ae(){H=!1}var re,oe=te,de=ne,le=ie,ce=se,ue=ae;(re=te||(te={})).gql=oe,re.resetCaches=de,re.disableFragmentWarnings=le,re.enableExperimentalFragmentVariables=ce,re.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.DisplayProperties=t.CustomMetadata=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignment=t.GetAllDescendantIds=t.DeleteFileMetadata=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFinalJudgmentTransferConfirmation=t.AddFilesAndMetadata=t.AddFileMetadata=t.AddFfidMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFileMetadata=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=t.PropertyType=t.DataType=void 0;const s=i(n(333));var a,r;(r=t.DataType||(t.DataType={})).Boolean="Boolean",r.DateTime="DateTime",r.Decimal="Decimal",r.Integer="Integer",r.Text="Text",(a=t.PropertyType||(t.PropertyType={})).Defined="Defined",a.Supplied="Supplied",a.System="System",t.AddBulkAntivirusMetadata=s.default`
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,l=t.column+o,c=`${e.name}:${a}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+d([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+d([[a-1+" |",u[s-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,u[s+1]]])}function d(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:d,path:u,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=c(Array.isArray(r)?r:r?[r]:void 0);const m=c(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&o?d.map((e=>a(o,e))):null==m?void 0:m.map((e=>a(e.source,e.start)));const f="object"==typeof(I=null==p?void 0:p.extensions)&&null!==I?null==p?void 0:p.extensions:void 0;var I;this.extensions=null!==(s=null!=h?h:f)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):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 c(e){return void 0===e||0===e.length?void 0:e}function u(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}class p{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(e,t,n,i,s,r){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=r,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var m,f,I,g,E;function T(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){return N(e)||95===e}function D(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=C(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 C(e){let t=0;for(;t<e.length&&(9===(n=e.charCodeAt(t))||32===n);)++t;var n;return t}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["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={})),(E=g||(g={})).SOF="<SOF>",E.EOF="<EOF>",E.BANG="!",E.DOLLAR="$",E.AMP="&",E.PAREN_L="(",E.PAREN_R=")",E.SPREAD="...",E.COLON=":",E.EQUALS="=",E.AT="@",E.BRACKET_L="[",E.BRACKET_R="]",E.BRACE_L="{",E.PIPE="|",E.BRACE_R="}",E.NAME="Name",E.INT="Int",E.FLOAT="Float",E.STRING="String",E.BLOCK_STRING="BlockString",E.COMMENT="Comment";class A{constructor(e){const t=new h(g.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==g.EOF)do{if(e.next)e=e.next;else{const t=k(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===g.COMMENT);return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function F(e,t){return O(e.charCodeAt(t))&&x(e.charCodeAt(t+1))}function O(e){return e>=55296&&e<=56319}function x(e){return e>=56320&&e<=57343}function _(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return g.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function S(e,t,n,i,s){const r=e.line,a=1+n-e.lineStart;return new h(t,n,i,r,a,s)}function k(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 M(e,s);case 33:return S(e,g.BANG,s,s+1);case 36:return S(e,g.DOLLAR,s,s+1);case 38:return S(e,g.AMP,s,s+1);case 40:return S(e,g.PAREN_L,s,s+1);case 41:return S(e,g.PAREN_R,s,s+1);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return S(e,g.SPREAD,s,s+3);break;case 58:return S(e,g.COLON,s,s+1);case 61:return S(e,g.EQUALS,s,s+1);case 64:return S(e,g.AT,s,s+1);case 91:return S(e,g.BRACKET_L,s,s+1);case 93:return S(e,g.BRACKET_R,s,s+1);case 123:return S(e,g.BRACE_L,s,s+1);case 124:return S(e,g.PIPE,s,s+1);case 125:return S(e,g.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 R(e,s,t);if(y(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)||F(n,s)?`Unexpected character: ${_(e,s)}.`:`Invalid character: ${_(e,s)}.`)}return S(e,g.EOF,i,i)}function M(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(!F(n,s))break;s+=2}}return S(e,g.COMMENT,t,s,n.slice(t+1,s))}function R(e,t,n){const i=e.source.body;let s=t,r=n,a=!1;if(45===r&&(r=i.charCodeAt(++s)),48===r){if(r=i.charCodeAt(++s),T(r))throw u(e.source,s,`Invalid number, unexpected digit after 0: ${_(e,s)}.`)}else s=b(e,s,r),r=i.charCodeAt(s);if(46===r&&(a=!0,r=i.charCodeAt(++s),s=b(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=b(e,s,r),r=i.charCodeAt(s)),46===r||y(r))throw u(e.source,s,`Invalid number, expected digit but got: ${_(e,s)}.`);return S(e,a?g.FLOAT:g.INT,t,s,i.slice(t,s))}function b(e,t,n){if(!T(n))throw u(e.source,t,`Invalid number, expected digit but got: ${_(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),S(e,g.STRING,t,s+1,a);if(92!==i){if(10===i||13===i)break;if(v(i))++s;else{if(!F(n,s))throw u(e.source,s,`Invalid character within String: ${_(e,s)}.`);s+=2}}else{a+=n.slice(r,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?L(e,s):U(e,s):B(e,s);a+=t.value,s+=t.size,r=s}}throw u(e.source,s,"Unterminated string.")}function L(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!v(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|w(e),i<0)break}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function U(e,t){const n=e.source.body,i=$(n,t+2);if(v(i))return{value:String.fromCodePoint(i),size:6};if(O(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=$(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 $(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function B(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 d=[];for(;r<i;){const i=n.charCodeAt(r);if(34===i&&34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)){o+=n.slice(a,r),d.push(o);const i=S(e,g.BLOCK_STRING,t,r+3,D(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(r+1)||34!==n.charCodeAt(r+2)||34!==n.charCodeAt(r+3))if(10!==i&&13!==i)if(v(i))++r;else{if(!F(n,r))throw u(e.source,r,`Invalid character within String: ${_(e,r)}.`);r+=2}else o+=n.slice(a,r),d.push(o),13===i&&10===n.charCodeAt(r+1)?r+=2:++r,o="",a=r,s=r;else o+=n.slice(a,r),a=r+1,r+=4}throw u(e.source,r,"Unterminated string.")}function G(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&(N(r=n.charCodeAt(s))||T(r)||95===r);)++s;var r;return S(e,g.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 q{constructor(e,t={}){const n=function(e){return e instanceof Y}(e)?e:new Y(e);this._lexer=new A(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(g.NAME);return this.node(e,{kind:I.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:I.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF)})}parseDefinition(){if(this.peek(g.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===g.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}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(g.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(g.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(g.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(g.DOLLAR),this.node(e,{kind:I.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:I.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R)})}parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(g.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:I.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(g.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?this.node(e,{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{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(e,{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 g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this.advanceLexer(),this.node(t,{kind:I.INT,value:t.value});case g.FLOAT:return this.advanceLexer(),this.node(t,{kind:I.FLOAT,value:t.value});case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:I.BOOLEAN,value:!0});case"false":return this.node(t,{kind:I.BOOLEAN,value:!1});case"null":return this.node(t,{kind:I.NULL});default:return this.node(t,{kind:I.ENUM,value:t.value})}case g.DOLLAR:if(e){if(this.expectToken(g.DOLLAR),this._lexer.token.kind===g.NAME){const e=this._lexer.token.value;throw u(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:I.STRING,value:e.value,block:e.kind===g.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:I.LIST,values:this.any(g.BRACKET_L,(()=>this.parseValueLiteral(e)),g.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:I.OBJECT,fields:this.any(g.BRACE_L,(()=>this.parseObjectField(e)),g.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(g.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(g.AT),this.node(t,{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(g.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(g.BRACKET_R),t=this.node(e,{kind:I.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(g.BANG)?this.node(e,{kind:I.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:I.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return this.node(e,{kind:I.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);const n=this.parseNamedType();return this.node(e,{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();return this.node(e,{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:r})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(g.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(g.COLON);const s=this.parseTypeReference(),r=this.parseConstDirectives();return this.node(e,{kind:I.FIELD_DEFINITION,description:t,name:n,arguments:i,type:s,directives:r})}parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(g.EQUALS)&&(s=this.parseConstValueLiteral());const r=this.parseConstDirectives();return this.node(e,{kind:I.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:s,directives:r})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();return this.node(e,{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:r})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:I.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:I.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:I.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${J(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.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(g.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw u(this._lexer.source,t.start,`Expected ${Q(e)}, found ${J(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw u(this._lexer.source,t.start,`Expected "${e}", found ${J(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${J(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==g.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw u(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function J(e){const t=e.value;return Q(e.kind)+(null!=t?` "${t}"`:"")}function Q(e){return function(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?`"${e}"`:e}var X=new Map,z=new Map,H=!0,W=!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 q(e,t).parseDocument()}(e,{experimentalFragmentVariables:W,allowLegacyFragmentVariables:W});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)?H&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):r||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(){H=!1}function se(){W=!0}function re(){W=!1}var ae,oe=te,de=ne,le=ie,ce=se,ue=re;(ae=te||(te={})).gql=oe,ae.resetCaches=de,ae.disableFragmentWarnings=le,ae.enableExperimentalFragmentVariables=ce,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.DisplayProperties=t.CustomMetadata=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignment=t.GetAllDescendantIds=t.DeleteFileMetadata=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFinalJudgmentTransferConfirmation=t.AddFilesAndMetadata=t.AddFfidMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFileMetadata=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=t.PropertyType=t.DataType=void 0;const s=i(n(333));var r,a;(a=t.DataType||(t.DataType={})).Boolean="Boolean",a.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.AddBulkAntivirusMetadata=s.default`
2
2
  mutation addBulkAntivirusMetadata($input: AddAntivirusMetadataInput!) {
3
3
  addBulkAntivirusMetadata(addBulkAntivirusMetadataInput: $input) {
4
4
  fileId
@@ -50,13 +50,6 @@
50
50
  addFFIDMetadata(addFFIDMetadataInput: $addFFIDMetadataInput) {
51
51
  fileId
52
52
  }
53
- }
54
- `,t.AddFileMetadata=s.default`
55
- mutation addFileMetadata($addFileMetadataWithFileIdInput: AddFileMetadataWithFileIdInputValues!) {
56
- addFileMetadata(addFileMetadataWithFileIdInput: $addFileMetadataWithFileIdInput) {
57
- fileId
58
- value
59
- }
60
53
  }
61
54
  `,t.AddFilesAndMetadata=s.default`
62
55
  mutation addFilesAndMetadata($input: AddFileAndMetadataInput!) {
@@ -448,4 +441,4 @@
448
441
  mutation updateTransferInitiated($consignmentId: UUID!) {
449
442
  updateTransferInitiated(consignmentid: $consignmentId)
450
443
  }
451
- `}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.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})();
444
+ `}},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.392",
3
+ "version": "1.0.394",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -24,18 +24,18 @@
24
24
  ],
25
25
  "homepage": "https://github.com/nationalarchives/tdr-generated-graphql#readme",
26
26
  "devDependencies": {
27
- "@graphql-codegen/introspection": "^3.0.1",
28
- "@graphql-codegen/typescript": "^3.0.4",
29
- "@graphql-codegen/typescript-document-nodes": "^3.0.4",
27
+ "@graphql-codegen/introspection": "^4.0.0",
28
+ "@graphql-codegen/typescript": "^4.0.0",
29
+ "@graphql-codegen/typescript-document-nodes": "^4.0.0",
30
30
  "@graphql-codegen/typescript-graphql-files-modules": "^2.2.1",
31
- "@graphql-codegen/typescript-operations": "^3.0.4",
31
+ "@graphql-codegen/typescript-operations": "^4.0.0",
32
32
  "ts-loader": "^9.3.0",
33
33
  "typescript": "^5.0.4",
34
34
  "webpack": "5.70.0",
35
35
  "webpack-cli": "^5.1.1"
36
36
  },
37
37
  "dependencies": {
38
- "@graphql-codegen/cli": "^3.3.1",
38
+ "@graphql-codegen/cli": "^4.0.0",
39
39
  "graphql": "^16.6.0",
40
40
  "y18n": "^5.0.8"
41
41
  }