@carddb/core 0.1.5 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.cjs +2346 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1445 -11
- package/dist/index.d.ts +1445 -11
- package/dist/index.js +2346 -124
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -250,6 +250,27 @@ function resolveFilter(input) {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
// src/query-builder.ts
|
|
253
|
+
var FILE_FIELDS = `
|
|
254
|
+
id
|
|
255
|
+
createdAt
|
|
256
|
+
updatedAt
|
|
257
|
+
key
|
|
258
|
+
filename
|
|
259
|
+
contentType
|
|
260
|
+
size
|
|
261
|
+
status
|
|
262
|
+
isPublic
|
|
263
|
+
entityType
|
|
264
|
+
entityId
|
|
265
|
+
url
|
|
266
|
+
`;
|
|
267
|
+
var PRESIGNED_UPLOAD_FIELDS = `
|
|
268
|
+
file {
|
|
269
|
+
${FILE_FIELDS}
|
|
270
|
+
}
|
|
271
|
+
uploadUrl
|
|
272
|
+
expiresAt
|
|
273
|
+
`;
|
|
253
274
|
var PUBLISHER_FIELDS = `
|
|
254
275
|
id
|
|
255
276
|
name
|
|
@@ -274,6 +295,8 @@ var GAME_FIELDS = `
|
|
|
274
295
|
key
|
|
275
296
|
name
|
|
276
297
|
description
|
|
298
|
+
metafyGameUuid
|
|
299
|
+
metafyGameSlug
|
|
277
300
|
website
|
|
278
301
|
visibility
|
|
279
302
|
isArchived
|
|
@@ -301,8 +324,13 @@ var DATASET_FIELDS = `
|
|
|
301
324
|
name
|
|
302
325
|
description
|
|
303
326
|
purpose
|
|
327
|
+
activeVersionId
|
|
304
328
|
tcgplayerProductIdFieldKey
|
|
305
329
|
visibility
|
|
330
|
+
posX
|
|
331
|
+
posY
|
|
332
|
+
sortOrder
|
|
333
|
+
archivedAt
|
|
306
334
|
isArchived
|
|
307
335
|
createdAt
|
|
308
336
|
updatedAt
|
|
@@ -332,10 +360,28 @@ function fieldInfoFields(depth) {
|
|
|
332
360
|
filterable
|
|
333
361
|
searchable
|
|
334
362
|
isIdentifier
|
|
363
|
+
sortOrder
|
|
335
364
|
itemType
|
|
365
|
+
linkDatasetId
|
|
366
|
+
linkDatasetKey
|
|
367
|
+
linkDatasetName
|
|
368
|
+
linkFieldKey
|
|
369
|
+
linkAlias
|
|
370
|
+
linkDirection
|
|
336
371
|
displayFormat
|
|
337
372
|
semanticType
|
|
373
|
+
placeholder
|
|
374
|
+
isHidden
|
|
375
|
+
isComputed
|
|
376
|
+
isSystemField
|
|
377
|
+
defaultValue
|
|
338
378
|
allowedValues
|
|
379
|
+
minLength
|
|
380
|
+
maxLength
|
|
381
|
+
minValue
|
|
382
|
+
maxValue
|
|
383
|
+
pattern
|
|
384
|
+
isUnique
|
|
339
385
|
${nestedFields}
|
|
340
386
|
`;
|
|
341
387
|
}
|
|
@@ -352,9 +398,48 @@ var SCHEMA_FIELDS = `
|
|
|
352
398
|
targetDatasetKey
|
|
353
399
|
targetDatasetName
|
|
354
400
|
targetDatasetId
|
|
401
|
+
targetFieldKey
|
|
402
|
+
linkAlias
|
|
403
|
+
linkDirection
|
|
404
|
+
isArray
|
|
355
405
|
}
|
|
356
406
|
}
|
|
357
407
|
`;
|
|
408
|
+
var OBJECT_FIELD_FIELDS = `
|
|
409
|
+
id
|
|
410
|
+
objectTypeId
|
|
411
|
+
key
|
|
412
|
+
label
|
|
413
|
+
dataType
|
|
414
|
+
isRequired
|
|
415
|
+
isFilterable
|
|
416
|
+
isSearchable
|
|
417
|
+
isIdentifier
|
|
418
|
+
sortOrder
|
|
419
|
+
description
|
|
420
|
+
placeholder
|
|
421
|
+
displayFormat
|
|
422
|
+
semanticType
|
|
423
|
+
isHidden
|
|
424
|
+
isComputed
|
|
425
|
+
isSystemField
|
|
426
|
+
defaultValue
|
|
427
|
+
allowedValues
|
|
428
|
+
minLength
|
|
429
|
+
maxLength
|
|
430
|
+
minValue
|
|
431
|
+
maxValue
|
|
432
|
+
pattern
|
|
433
|
+
isUnique
|
|
434
|
+
itemType
|
|
435
|
+
linkDatasetId
|
|
436
|
+
linkFieldKey
|
|
437
|
+
linkAlias
|
|
438
|
+
linkDirection
|
|
439
|
+
parentFieldId
|
|
440
|
+
createdAt
|
|
441
|
+
updatedAt
|
|
442
|
+
`;
|
|
358
443
|
var TCGPLAYER_PRICING_FIELDS = `
|
|
359
444
|
pricing {
|
|
360
445
|
productId
|
|
@@ -386,6 +471,82 @@ function recordFields(options = {}) {
|
|
|
386
471
|
`;
|
|
387
472
|
}
|
|
388
473
|
var RECORD_FIELDS = recordFields();
|
|
474
|
+
var DECK_SECTION_DEFINITION_FIELDS = `
|
|
475
|
+
key
|
|
476
|
+
label
|
|
477
|
+
description
|
|
478
|
+
order
|
|
479
|
+
default
|
|
480
|
+
aliases
|
|
481
|
+
minCards
|
|
482
|
+
maxCards
|
|
483
|
+
excludedFromDeckSize
|
|
484
|
+
legalCardTypes
|
|
485
|
+
metadata
|
|
486
|
+
`;
|
|
487
|
+
var DECK_ENTRY_FIELDS = `
|
|
488
|
+
id
|
|
489
|
+
datasetId
|
|
490
|
+
recordId
|
|
491
|
+
identifier
|
|
492
|
+
quantity
|
|
493
|
+
section
|
|
494
|
+
sortOrder
|
|
495
|
+
annotations
|
|
496
|
+
display
|
|
497
|
+
record {
|
|
498
|
+
${RECORD_FIELDS}
|
|
499
|
+
}
|
|
500
|
+
`;
|
|
501
|
+
var DECK_VALIDATED_AGAINST_FIELDS = `
|
|
502
|
+
rulesetId
|
|
503
|
+
rulesetVersionId
|
|
504
|
+
rulesetVersionLabel
|
|
505
|
+
cardDatasetId
|
|
506
|
+
cardDatasetVersionId
|
|
507
|
+
validatedAt
|
|
508
|
+
validationResultSummary
|
|
509
|
+
`;
|
|
510
|
+
var DECK_VALIDATION_ISSUE_FIELDS = `
|
|
511
|
+
code
|
|
512
|
+
severity
|
|
513
|
+
message
|
|
514
|
+
entryIds
|
|
515
|
+
section
|
|
516
|
+
datasetId
|
|
517
|
+
identifier
|
|
518
|
+
metadata
|
|
519
|
+
`;
|
|
520
|
+
var DECK_VALIDATION_FIELDS = `
|
|
521
|
+
deckId
|
|
522
|
+
valid
|
|
523
|
+
blockers {
|
|
524
|
+
${DECK_VALIDATION_ISSUE_FIELDS}
|
|
525
|
+
}
|
|
526
|
+
warnings {
|
|
527
|
+
${DECK_VALIDATION_ISSUE_FIELDS}
|
|
528
|
+
}
|
|
529
|
+
affectedEntries {
|
|
530
|
+
entryId
|
|
531
|
+
datasetId
|
|
532
|
+
recordId
|
|
533
|
+
identifier
|
|
534
|
+
section
|
|
535
|
+
quantity
|
|
536
|
+
}
|
|
537
|
+
validatedAgainst {
|
|
538
|
+
${DECK_VALIDATED_AGAINST_FIELDS}
|
|
539
|
+
}
|
|
540
|
+
checkedAt
|
|
541
|
+
`;
|
|
542
|
+
var DECK_DIFF_FIELDS = `
|
|
543
|
+
deckId
|
|
544
|
+
fromVersionId
|
|
545
|
+
toVersionId
|
|
546
|
+
toDraftRevision
|
|
547
|
+
hasChanges
|
|
548
|
+
diff
|
|
549
|
+
`;
|
|
389
550
|
var DECK_VERSION_FIELDS = `
|
|
390
551
|
id
|
|
391
552
|
deckId
|
|
@@ -401,21 +562,23 @@ var DECK_VERSION_FIELDS = `
|
|
|
401
562
|
metadata
|
|
402
563
|
publishNote
|
|
403
564
|
computedDiff
|
|
565
|
+
rulesetId
|
|
566
|
+
rulesetVersionId
|
|
567
|
+
cardDatasetId
|
|
568
|
+
cardDatasetVersionId
|
|
569
|
+
validatedAt
|
|
570
|
+
validationSummary
|
|
571
|
+
validatedAgainst {
|
|
572
|
+
${DECK_VALIDATED_AGAINST_FIELDS}
|
|
573
|
+
}
|
|
574
|
+
sectionDefinitions {
|
|
575
|
+
${DECK_SECTION_DEFINITION_FIELDS}
|
|
576
|
+
}
|
|
404
577
|
publishedByAccountId
|
|
405
578
|
publishedByApiApplicationId
|
|
406
579
|
createdAt
|
|
407
580
|
entries {
|
|
408
|
-
|
|
409
|
-
datasetId
|
|
410
|
-
recordId
|
|
411
|
-
identifier
|
|
412
|
-
quantity
|
|
413
|
-
section
|
|
414
|
-
sortOrder
|
|
415
|
-
annotations
|
|
416
|
-
record {
|
|
417
|
-
${RECORD_FIELDS}
|
|
418
|
-
}
|
|
581
|
+
${DECK_ENTRY_FIELDS}
|
|
419
582
|
}
|
|
420
583
|
`;
|
|
421
584
|
var DECK_COLLABORATOR_FIELDS = `
|
|
@@ -437,8 +600,156 @@ var DECK_PREVIEW_TOKEN_FIELDS = `
|
|
|
437
600
|
createdAt
|
|
438
601
|
updatedAt
|
|
439
602
|
`;
|
|
603
|
+
var DECK_EMBED_TOKEN_FIELDS = `
|
|
604
|
+
id
|
|
605
|
+
deckId
|
|
606
|
+
apiApplicationId
|
|
607
|
+
label
|
|
608
|
+
readMode
|
|
609
|
+
allowedOrigins
|
|
610
|
+
externalSubject
|
|
611
|
+
expiresAt
|
|
612
|
+
revokedAt
|
|
613
|
+
lastUsedAt
|
|
614
|
+
createdAt
|
|
615
|
+
updatedAt
|
|
616
|
+
`;
|
|
617
|
+
var DECK_ACCESS_TOKEN_ISSUER_FIELDS = `
|
|
618
|
+
id
|
|
619
|
+
deckId
|
|
620
|
+
apiApplicationId
|
|
621
|
+
label
|
|
622
|
+
readModes
|
|
623
|
+
maxTokenLifetimeSeconds
|
|
624
|
+
directSigningAlg
|
|
625
|
+
directSigningKeyId
|
|
626
|
+
directSigningPublicKey
|
|
627
|
+
directSigningKeyRevokedAt
|
|
628
|
+
revokedAt
|
|
629
|
+
createdAt
|
|
630
|
+
updatedAt
|
|
631
|
+
`;
|
|
632
|
+
var DECK_ACCESS_TOKEN_FIELDS = `
|
|
633
|
+
id
|
|
634
|
+
deckId
|
|
635
|
+
apiApplicationId
|
|
636
|
+
issuerId
|
|
637
|
+
readMode
|
|
638
|
+
externalSubject
|
|
639
|
+
expiresAt
|
|
640
|
+
revokedAt
|
|
641
|
+
lastUsedAt
|
|
642
|
+
createdAt
|
|
643
|
+
updatedAt
|
|
644
|
+
`;
|
|
645
|
+
var DECK_IMPORT_ENTRY_FIELDS = `
|
|
646
|
+
lineNumber
|
|
647
|
+
raw
|
|
648
|
+
datasetKey
|
|
649
|
+
datasetId
|
|
650
|
+
recordId
|
|
651
|
+
identifier
|
|
652
|
+
quantity
|
|
653
|
+
section
|
|
654
|
+
sortOrder
|
|
655
|
+
display
|
|
656
|
+
record {
|
|
657
|
+
${RECORD_FIELDS}
|
|
658
|
+
}
|
|
659
|
+
`;
|
|
660
|
+
var DECK_IMPORT_ISSUE_FIELDS = `
|
|
661
|
+
lineNumber
|
|
662
|
+
raw
|
|
663
|
+
code
|
|
664
|
+
message
|
|
665
|
+
`;
|
|
666
|
+
var DECK_IMPORT_UNMATCHED_FIELDS = `
|
|
667
|
+
lineNumber
|
|
668
|
+
raw
|
|
669
|
+
datasetKey
|
|
670
|
+
identifier
|
|
671
|
+
quantity
|
|
672
|
+
section
|
|
673
|
+
code
|
|
674
|
+
message
|
|
675
|
+
`;
|
|
676
|
+
var DECK_IMPORT_AMBIGUOUS_FIELDS = `
|
|
677
|
+
lineNumber
|
|
678
|
+
raw
|
|
679
|
+
datasetKey
|
|
680
|
+
identifier
|
|
681
|
+
quantity
|
|
682
|
+
section
|
|
683
|
+
candidates {
|
|
684
|
+
recordId
|
|
685
|
+
identifier
|
|
686
|
+
display
|
|
687
|
+
}
|
|
688
|
+
`;
|
|
689
|
+
var DECK_IMPORT_FORMAT_DEFINITION_FIELDS = `
|
|
690
|
+
id
|
|
691
|
+
gameId
|
|
692
|
+
key
|
|
693
|
+
name
|
|
694
|
+
description
|
|
695
|
+
enabled
|
|
696
|
+
priority
|
|
697
|
+
datasetKey
|
|
698
|
+
config
|
|
699
|
+
archivedAt
|
|
700
|
+
isArchived
|
|
701
|
+
createdAt
|
|
702
|
+
updatedAt
|
|
703
|
+
`;
|
|
704
|
+
var DECK_IMPORT_FORMAT_DETECTION_FIELDS = `
|
|
705
|
+
formatId
|
|
706
|
+
key
|
|
707
|
+
name
|
|
708
|
+
confidence
|
|
709
|
+
reason
|
|
710
|
+
`;
|
|
711
|
+
var DECK_IMPORT_FORMAT_TEST_PAYLOAD_FIELDS = `
|
|
712
|
+
detection {
|
|
713
|
+
${DECK_IMPORT_FORMAT_DETECTION_FIELDS}
|
|
714
|
+
}
|
|
715
|
+
entries {
|
|
716
|
+
${DECK_IMPORT_ENTRY_FIELDS}
|
|
717
|
+
}
|
|
718
|
+
parseErrors {
|
|
719
|
+
${DECK_IMPORT_ISSUE_FIELDS}
|
|
720
|
+
}
|
|
721
|
+
unmatched {
|
|
722
|
+
${DECK_IMPORT_UNMATCHED_FIELDS}
|
|
723
|
+
}
|
|
724
|
+
ambiguous {
|
|
725
|
+
${DECK_IMPORT_AMBIGUOUS_FIELDS}
|
|
726
|
+
}
|
|
727
|
+
`;
|
|
728
|
+
var DECK_HYDRATE_ENTRIES_PAYLOAD_FIELDS = `
|
|
729
|
+
entries {
|
|
730
|
+
${DECK_IMPORT_ENTRY_FIELDS}
|
|
731
|
+
}
|
|
732
|
+
unmatched {
|
|
733
|
+
${DECK_IMPORT_UNMATCHED_FIELDS}
|
|
734
|
+
}
|
|
735
|
+
ambiguous {
|
|
736
|
+
${DECK_IMPORT_AMBIGUOUS_FIELDS}
|
|
737
|
+
}
|
|
738
|
+
`;
|
|
739
|
+
var DECK_EXPORT_PAYLOAD_FIELDS = `
|
|
740
|
+
deckId
|
|
741
|
+
format
|
|
742
|
+
text
|
|
743
|
+
entryCount
|
|
744
|
+
`;
|
|
440
745
|
var DECK_FIELDS = `
|
|
441
746
|
id
|
|
747
|
+
ownerType
|
|
748
|
+
ownerAccountId
|
|
749
|
+
ownerApiApplicationId
|
|
750
|
+
environment
|
|
751
|
+
createdByAccountId
|
|
752
|
+
createdByApiApplicationId
|
|
442
753
|
accountId
|
|
443
754
|
apiApplicationId
|
|
444
755
|
gameId
|
|
@@ -448,13 +759,29 @@ var DECK_FIELDS = `
|
|
|
448
759
|
description
|
|
449
760
|
formatKey
|
|
450
761
|
visibility
|
|
762
|
+
accessMode
|
|
763
|
+
discoverability
|
|
764
|
+
state
|
|
765
|
+
archivedAt
|
|
766
|
+
deletedAt
|
|
767
|
+
unpublishedAt
|
|
768
|
+
externalRefApiApplicationId
|
|
451
769
|
externalRef
|
|
770
|
+
externalSubjectRef
|
|
771
|
+
rulesetId
|
|
452
772
|
sourceUrl
|
|
453
773
|
metadata
|
|
774
|
+
sectionDefinitions {
|
|
775
|
+
${DECK_SECTION_DEFINITION_FIELDS}
|
|
776
|
+
}
|
|
454
777
|
latestPublishedVersion {
|
|
455
778
|
${DECK_VERSION_FIELDS}
|
|
456
779
|
}
|
|
457
780
|
publishedAt
|
|
781
|
+
draftRevision
|
|
782
|
+
draftUpdatedAt
|
|
783
|
+
draftUpdatedByAccountId
|
|
784
|
+
draftUpdatedByApiApplicationId
|
|
458
785
|
hasUnpublishedChanges
|
|
459
786
|
createdAt
|
|
460
787
|
updatedAt
|
|
@@ -462,17 +789,109 @@ var DECK_FIELDS = `
|
|
|
462
789
|
${GAME_FIELDS}
|
|
463
790
|
}
|
|
464
791
|
entries {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
792
|
+
${DECK_ENTRY_FIELDS}
|
|
793
|
+
}
|
|
794
|
+
`;
|
|
795
|
+
var DECK_OWNERSHIP_TRANSFER_PAYLOAD_FIELDS = `
|
|
796
|
+
deck {
|
|
797
|
+
${DECK_FIELDS}
|
|
798
|
+
}
|
|
799
|
+
retainedAppAccess
|
|
800
|
+
`;
|
|
801
|
+
var DECK_COPY_PAYLOAD_FIELDS = `
|
|
802
|
+
deck {
|
|
803
|
+
${DECK_FIELDS}
|
|
804
|
+
}
|
|
805
|
+
copiedFromDeckId
|
|
806
|
+
retainedAppAccess
|
|
807
|
+
`;
|
|
808
|
+
var DECK_ACCESS_APPLICATION_FIELDS = `
|
|
809
|
+
id
|
|
810
|
+
name
|
|
811
|
+
description
|
|
812
|
+
revokedAt
|
|
813
|
+
`;
|
|
814
|
+
var DECK_API_APPLICATION_ACCESS_FIELDS = `
|
|
815
|
+
id
|
|
816
|
+
deckId
|
|
817
|
+
deck {
|
|
818
|
+
${DECK_FIELDS}
|
|
819
|
+
}
|
|
820
|
+
apiApplicationId
|
|
821
|
+
apiApplication {
|
|
822
|
+
${DECK_ACCESS_APPLICATION_FIELDS}
|
|
823
|
+
}
|
|
824
|
+
role
|
|
825
|
+
grantSource
|
|
826
|
+
externalRef
|
|
827
|
+
createdByAccountId
|
|
828
|
+
createdByApiApplicationId
|
|
829
|
+
revokedAt
|
|
830
|
+
createdAt
|
|
831
|
+
updatedAt
|
|
832
|
+
`;
|
|
833
|
+
var DECK_PUBLISH_PAYLOAD_FIELDS = `
|
|
834
|
+
deck {
|
|
835
|
+
${DECK_FIELDS}
|
|
836
|
+
}
|
|
837
|
+
version {
|
|
838
|
+
${DECK_VERSION_FIELDS}
|
|
839
|
+
}
|
|
840
|
+
validation {
|
|
841
|
+
${DECK_VALIDATION_FIELDS}
|
|
842
|
+
}
|
|
843
|
+
blockers {
|
|
844
|
+
${DECK_VALIDATION_ISSUE_FIELDS}
|
|
845
|
+
}
|
|
846
|
+
warnings {
|
|
847
|
+
${DECK_VALIDATION_ISSUE_FIELDS}
|
|
848
|
+
}
|
|
849
|
+
`;
|
|
850
|
+
var DECK_ENTRY_MUTATION_PAYLOAD_FIELDS = `
|
|
851
|
+
deck {
|
|
852
|
+
${DECK_FIELDS}
|
|
853
|
+
}
|
|
854
|
+
entry {
|
|
855
|
+
${DECK_ENTRY_FIELDS}
|
|
856
|
+
}
|
|
857
|
+
`;
|
|
858
|
+
var DECK_ENTRY_REORDER_PAYLOAD_FIELDS = `
|
|
859
|
+
deck {
|
|
860
|
+
${DECK_FIELDS}
|
|
861
|
+
}
|
|
862
|
+
entries {
|
|
863
|
+
${DECK_ENTRY_FIELDS}
|
|
864
|
+
}
|
|
865
|
+
`;
|
|
866
|
+
var DECK_ENTRIES_REPLACE_PAYLOAD_FIELDS = DECK_ENTRY_REORDER_PAYLOAD_FIELDS;
|
|
867
|
+
var DECK_IMPORT_PAYLOAD_FIELDS = `
|
|
868
|
+
deck {
|
|
869
|
+
${DECK_FIELDS}
|
|
870
|
+
}
|
|
871
|
+
applied
|
|
872
|
+
dryRun
|
|
873
|
+
replace
|
|
874
|
+
format
|
|
875
|
+
importFormat {
|
|
876
|
+
${DECK_IMPORT_FORMAT_DEFINITION_FIELDS}
|
|
877
|
+
}
|
|
878
|
+
detection {
|
|
879
|
+
${DECK_IMPORT_FORMAT_DETECTION_FIELDS}
|
|
880
|
+
}
|
|
881
|
+
entries {
|
|
882
|
+
${DECK_IMPORT_ENTRY_FIELDS}
|
|
883
|
+
}
|
|
884
|
+
parseErrors {
|
|
885
|
+
${DECK_IMPORT_ISSUE_FIELDS}
|
|
886
|
+
}
|
|
887
|
+
unmatched {
|
|
888
|
+
${DECK_IMPORT_UNMATCHED_FIELDS}
|
|
889
|
+
}
|
|
890
|
+
ambiguous {
|
|
891
|
+
${DECK_IMPORT_AMBIGUOUS_FIELDS}
|
|
892
|
+
}
|
|
893
|
+
validation {
|
|
894
|
+
${DECK_VALIDATION_FIELDS}
|
|
476
895
|
}
|
|
477
896
|
`;
|
|
478
897
|
var RESOLVED_LINKS_FIELDS = `
|
|
@@ -487,37 +906,336 @@ var RESOLVED_LINKS_FIELDS = `
|
|
|
487
906
|
}
|
|
488
907
|
}
|
|
489
908
|
`;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
909
|
+
var BULK_RECORD_ERROR_FIELDS = `
|
|
910
|
+
datasetKey
|
|
911
|
+
index
|
|
912
|
+
errors {
|
|
913
|
+
field
|
|
914
|
+
message
|
|
915
|
+
details
|
|
916
|
+
}
|
|
917
|
+
`;
|
|
918
|
+
var IMPORT_STATS_FIELDS = `
|
|
919
|
+
total
|
|
920
|
+
inserted
|
|
921
|
+
updated
|
|
922
|
+
skipped
|
|
923
|
+
failed
|
|
924
|
+
`;
|
|
925
|
+
var BULK_IMPORT_RESULT_FIELDS = `
|
|
926
|
+
inserted {
|
|
927
|
+
${RECORD_FIELDS}
|
|
928
|
+
}
|
|
929
|
+
updated {
|
|
930
|
+
${RECORD_FIELDS}
|
|
931
|
+
}
|
|
932
|
+
skipped
|
|
933
|
+
errors {
|
|
934
|
+
${BULK_RECORD_ERROR_FIELDS}
|
|
935
|
+
}
|
|
936
|
+
createdFields {
|
|
937
|
+
${OBJECT_FIELD_FIELDS}
|
|
938
|
+
}
|
|
939
|
+
stats {
|
|
940
|
+
${IMPORT_STATS_FIELDS}
|
|
941
|
+
}
|
|
942
|
+
`;
|
|
943
|
+
var IMPORT_JOB_ASSET_FIELDS = `
|
|
944
|
+
fileId
|
|
945
|
+
filename
|
|
946
|
+
file {
|
|
947
|
+
${FILE_FIELDS}
|
|
948
|
+
}
|
|
949
|
+
`;
|
|
950
|
+
var IMPORT_JOB_FIELDS = `
|
|
951
|
+
id
|
|
952
|
+
publisherId
|
|
953
|
+
publisher {
|
|
954
|
+
${PUBLISHER_FIELDS}
|
|
955
|
+
}
|
|
956
|
+
datasetId
|
|
957
|
+
dataset {
|
|
958
|
+
${DATASET_FIELDS}
|
|
959
|
+
${SCHEMA_FIELDS}
|
|
960
|
+
}
|
|
961
|
+
accountId
|
|
962
|
+
status
|
|
963
|
+
mode
|
|
964
|
+
onConflict
|
|
965
|
+
format
|
|
966
|
+
fileId
|
|
967
|
+
progress
|
|
968
|
+
totalRecords
|
|
969
|
+
processedRecords
|
|
970
|
+
insertedCount
|
|
971
|
+
updatedCount
|
|
972
|
+
skippedCount
|
|
973
|
+
failedCount
|
|
974
|
+
createdFields {
|
|
975
|
+
${OBJECT_FIELD_FIELDS}
|
|
976
|
+
}
|
|
977
|
+
errors {
|
|
978
|
+
${BULK_RECORD_ERROR_FIELDS}
|
|
979
|
+
}
|
|
980
|
+
errorMessage
|
|
981
|
+
assets {
|
|
982
|
+
${IMPORT_JOB_ASSET_FIELDS}
|
|
983
|
+
}
|
|
984
|
+
startedAt
|
|
985
|
+
completedAt
|
|
986
|
+
createdAt
|
|
987
|
+
updatedAt
|
|
988
|
+
lastCheckpointIndex
|
|
989
|
+
isResumed
|
|
990
|
+
imagesPending
|
|
991
|
+
imagesCompleted
|
|
992
|
+
imagesFailed
|
|
993
|
+
`;
|
|
994
|
+
var IMPORT_JOB_LOG_FIELDS = `
|
|
995
|
+
id
|
|
996
|
+
importJobId
|
|
997
|
+
level
|
|
998
|
+
message
|
|
999
|
+
datasetKey
|
|
1000
|
+
recordIndex
|
|
1001
|
+
fieldKey
|
|
1002
|
+
details
|
|
1003
|
+
createdAt
|
|
1004
|
+
`;
|
|
1005
|
+
var DATASET_RECORDS_UPSERT_PAYLOAD_FIELDS = `
|
|
1006
|
+
job {
|
|
1007
|
+
${IMPORT_JOB_FIELDS}
|
|
1008
|
+
}
|
|
1009
|
+
dryRunResult {
|
|
1010
|
+
${BULK_IMPORT_RESULT_FIELDS}
|
|
1011
|
+
}
|
|
1012
|
+
`;
|
|
1013
|
+
var DELETE_JOB_RESULT_FIELDS = `
|
|
1014
|
+
target
|
|
1015
|
+
recordId
|
|
1016
|
+
identifier
|
|
1017
|
+
status
|
|
1018
|
+
message
|
|
1019
|
+
`;
|
|
1020
|
+
var DATASET_RECORD_DELETE_JOB_FIELDS = `
|
|
1021
|
+
id
|
|
1022
|
+
publisherId
|
|
1023
|
+
publisher {
|
|
1024
|
+
${PUBLISHER_FIELDS}
|
|
1025
|
+
}
|
|
1026
|
+
datasetId
|
|
1027
|
+
dataset {
|
|
1028
|
+
${DATASET_FIELDS}
|
|
1029
|
+
}
|
|
1030
|
+
accountId
|
|
1031
|
+
status
|
|
1032
|
+
targetType
|
|
1033
|
+
dryRun
|
|
1034
|
+
targets
|
|
1035
|
+
progress
|
|
1036
|
+
totalTargets
|
|
1037
|
+
processedTargets
|
|
1038
|
+
matchedCount
|
|
1039
|
+
deletedCount
|
|
1040
|
+
missingCount
|
|
1041
|
+
blockedCount
|
|
1042
|
+
failedCount
|
|
1043
|
+
results {
|
|
1044
|
+
${DELETE_JOB_RESULT_FIELDS}
|
|
1045
|
+
}
|
|
1046
|
+
errorMessage
|
|
1047
|
+
startedAt
|
|
1048
|
+
completedAt
|
|
1049
|
+
createdAt
|
|
1050
|
+
updatedAt
|
|
1051
|
+
`;
|
|
1052
|
+
var FIELD_MAPPING_FIELDS = `
|
|
1053
|
+
sourceField
|
|
1054
|
+
targetField
|
|
1055
|
+
targetFieldLabel
|
|
1056
|
+
inferredType
|
|
1057
|
+
inferredItemType
|
|
1058
|
+
inferredChildren {
|
|
1059
|
+
key
|
|
1060
|
+
label
|
|
1061
|
+
type
|
|
1062
|
+
required
|
|
1063
|
+
itemType
|
|
1064
|
+
children {
|
|
1065
|
+
key
|
|
1066
|
+
label
|
|
1067
|
+
type
|
|
1068
|
+
required
|
|
1069
|
+
itemType
|
|
498
1070
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
1071
|
+
}
|
|
1072
|
+
inferredLinkDataset
|
|
1073
|
+
inferredLinkFieldKey
|
|
1074
|
+
inferredLinkDirection
|
|
1075
|
+
targetFieldType
|
|
1076
|
+
sampleValues
|
|
1077
|
+
status
|
|
1078
|
+
`;
|
|
1079
|
+
var IMPORT_WARNING_FIELDS = `
|
|
1080
|
+
datasetKey
|
|
1081
|
+
field
|
|
1082
|
+
message
|
|
1083
|
+
severity
|
|
1084
|
+
`;
|
|
1085
|
+
var DATASET_IMPORT_PREVIEW_FIELDS = `
|
|
1086
|
+
datasetKey
|
|
1087
|
+
datasetName
|
|
1088
|
+
datasetId
|
|
1089
|
+
exists
|
|
1090
|
+
recordCount
|
|
1091
|
+
fieldMappings {
|
|
1092
|
+
${FIELD_MAPPING_FIELDS}
|
|
1093
|
+
}
|
|
1094
|
+
warnings {
|
|
1095
|
+
${IMPORT_WARNING_FIELDS}
|
|
1096
|
+
}
|
|
1097
|
+
canProceed
|
|
1098
|
+
sampleRecords
|
|
1099
|
+
availableDatasets {
|
|
1100
|
+
${DATASET_FIELDS}
|
|
1101
|
+
${SCHEMA_FIELDS}
|
|
1102
|
+
}
|
|
1103
|
+
`;
|
|
1104
|
+
var GAME_IMPORT_PREVIEW_FIELDS = `
|
|
1105
|
+
datasets {
|
|
1106
|
+
datasetKey
|
|
1107
|
+
datasetName
|
|
1108
|
+
datasetId
|
|
1109
|
+
exists
|
|
1110
|
+
recordCount
|
|
1111
|
+
fieldMappings {
|
|
1112
|
+
${FIELD_MAPPING_FIELDS}
|
|
504
1113
|
}
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
var QueryBuilder = {
|
|
508
|
-
// Publishers
|
|
509
|
-
searchPublishers(params = {}) {
|
|
510
|
-
const variables = {};
|
|
511
|
-
const args = [];
|
|
512
|
-
const defs = [];
|
|
513
|
-
if (params.search !== void 0) {
|
|
514
|
-
defs.push("$search: String");
|
|
515
|
-
args.push("search: $search");
|
|
516
|
-
variables["search"] = params.search;
|
|
1114
|
+
warnings {
|
|
1115
|
+
${IMPORT_WARNING_FIELDS}
|
|
517
1116
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
1117
|
+
sampleRecords
|
|
1118
|
+
}
|
|
1119
|
+
importOrder
|
|
1120
|
+
warnings {
|
|
1121
|
+
${IMPORT_WARNING_FIELDS}
|
|
1122
|
+
}
|
|
1123
|
+
canProceed
|
|
1124
|
+
`;
|
|
1125
|
+
var GAME_IMPORT_DATASET_STATUS_FIELDS = `
|
|
1126
|
+
datasetKey
|
|
1127
|
+
datasetId
|
|
1128
|
+
datasetName
|
|
1129
|
+
status
|
|
1130
|
+
recordCount
|
|
1131
|
+
insertedCount
|
|
1132
|
+
updatedCount
|
|
1133
|
+
skippedCount
|
|
1134
|
+
failedCount
|
|
1135
|
+
errorMessage
|
|
1136
|
+
`;
|
|
1137
|
+
var GAME_IMPORT_JOB_FIELDS = `
|
|
1138
|
+
id
|
|
1139
|
+
publisherId
|
|
1140
|
+
publisher {
|
|
1141
|
+
${PUBLISHER_FIELDS}
|
|
1142
|
+
}
|
|
1143
|
+
gameId
|
|
1144
|
+
game {
|
|
1145
|
+
${GAME_FIELDS}
|
|
1146
|
+
}
|
|
1147
|
+
accountId
|
|
1148
|
+
status
|
|
1149
|
+
mode
|
|
1150
|
+
onConflict
|
|
1151
|
+
fileId
|
|
1152
|
+
assets {
|
|
1153
|
+
${IMPORT_JOB_ASSET_FIELDS}
|
|
1154
|
+
}
|
|
1155
|
+
totalDatasets
|
|
1156
|
+
completedDatasets
|
|
1157
|
+
progress
|
|
1158
|
+
importOrder
|
|
1159
|
+
datasetStatuses {
|
|
1160
|
+
${GAME_IMPORT_DATASET_STATUS_FIELDS}
|
|
1161
|
+
}
|
|
1162
|
+
errorMessage
|
|
1163
|
+
startedAt
|
|
1164
|
+
completedAt
|
|
1165
|
+
createdAt
|
|
1166
|
+
updatedAt
|
|
1167
|
+
completedDatasetKeys
|
|
1168
|
+
currentDatasetKey
|
|
1169
|
+
lastCheckpointIndex
|
|
1170
|
+
isResumed
|
|
1171
|
+
imagesPending
|
|
1172
|
+
imagesCompleted
|
|
1173
|
+
imagesFailed
|
|
1174
|
+
phase
|
|
1175
|
+
linkBuildingDataset
|
|
1176
|
+
linkBuildingTotalDatasets
|
|
1177
|
+
linkBuildingCompletedDatasets
|
|
1178
|
+
linkBuildingProcessedRecords
|
|
1179
|
+
linkBuildingTotalRecords
|
|
1180
|
+
`;
|
|
1181
|
+
var EXPORT_JOB_FIELDS = `
|
|
1182
|
+
id
|
|
1183
|
+
publisherId
|
|
1184
|
+
publisher {
|
|
1185
|
+
${PUBLISHER_FIELDS}
|
|
1186
|
+
}
|
|
1187
|
+
datasetId
|
|
1188
|
+
dataset {
|
|
1189
|
+
${DATASET_FIELDS}
|
|
1190
|
+
}
|
|
1191
|
+
accountId
|
|
1192
|
+
status
|
|
1193
|
+
format
|
|
1194
|
+
filter
|
|
1195
|
+
totalRecords
|
|
1196
|
+
processedRecords
|
|
1197
|
+
progress
|
|
1198
|
+
fileId
|
|
1199
|
+
downloadUrl
|
|
1200
|
+
downloadExpiresAt
|
|
1201
|
+
errorMessage
|
|
1202
|
+
startedAt
|
|
1203
|
+
completedAt
|
|
1204
|
+
createdAt
|
|
1205
|
+
updatedAt
|
|
1206
|
+
lastCheckpointIndex
|
|
1207
|
+
`;
|
|
1208
|
+
function connectionFields(nodeFields) {
|
|
1209
|
+
return `
|
|
1210
|
+
totalCount
|
|
1211
|
+
pageInfo {
|
|
1212
|
+
hasNextPage
|
|
1213
|
+
hasPreviousPage
|
|
1214
|
+
startCursor
|
|
1215
|
+
endCursor
|
|
1216
|
+
}
|
|
1217
|
+
edges {
|
|
1218
|
+
cursor
|
|
1219
|
+
node {
|
|
1220
|
+
${nodeFields}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
`;
|
|
1224
|
+
}
|
|
1225
|
+
var QueryBuilder = {
|
|
1226
|
+
// Publishers
|
|
1227
|
+
searchPublishers(params = {}) {
|
|
1228
|
+
const variables = {};
|
|
1229
|
+
const args = [];
|
|
1230
|
+
const defs = [];
|
|
1231
|
+
if (params.search !== void 0) {
|
|
1232
|
+
defs.push("$search: String");
|
|
1233
|
+
args.push("search: $search");
|
|
1234
|
+
variables["search"] = params.search;
|
|
1235
|
+
}
|
|
1236
|
+
if (params.first !== void 0) {
|
|
1237
|
+
defs.push("$first: Int");
|
|
1238
|
+
args.push("first: $first");
|
|
521
1239
|
variables["first"] = params.first;
|
|
522
1240
|
}
|
|
523
1241
|
if (params.after !== void 0) {
|
|
@@ -642,6 +1360,98 @@ var QueryBuilder = {
|
|
|
642
1360
|
`
|
|
643
1361
|
};
|
|
644
1362
|
},
|
|
1363
|
+
listGames(params) {
|
|
1364
|
+
const variables = { publisherId: params.publisherId };
|
|
1365
|
+
const args = ["publisherId: $publisherId"];
|
|
1366
|
+
const defs = ["$publisherId: UUID!"];
|
|
1367
|
+
if (params.first !== void 0) {
|
|
1368
|
+
defs.push("$first: Int");
|
|
1369
|
+
args.push("first: $first");
|
|
1370
|
+
variables["first"] = params.first;
|
|
1371
|
+
}
|
|
1372
|
+
if (params.after !== void 0) {
|
|
1373
|
+
defs.push("$after: String");
|
|
1374
|
+
args.push("after: $after");
|
|
1375
|
+
variables["after"] = params.after;
|
|
1376
|
+
}
|
|
1377
|
+
if (params.includeArchived !== void 0) {
|
|
1378
|
+
defs.push("$includeArchived: Boolean");
|
|
1379
|
+
args.push("includeArchived: $includeArchived");
|
|
1380
|
+
variables["includeArchived"] = params.includeArchived;
|
|
1381
|
+
}
|
|
1382
|
+
return {
|
|
1383
|
+
query: `
|
|
1384
|
+
query Games(${defs.join(", ")}) {
|
|
1385
|
+
games(${args.join(", ")}) {
|
|
1386
|
+
${connectionFields(GAME_FIELDS)}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
`,
|
|
1390
|
+
variables
|
|
1391
|
+
};
|
|
1392
|
+
},
|
|
1393
|
+
game(params) {
|
|
1394
|
+
const variables = {};
|
|
1395
|
+
const args = [];
|
|
1396
|
+
const defs = [];
|
|
1397
|
+
if (params.id !== void 0) {
|
|
1398
|
+
defs.push("$id: UUID");
|
|
1399
|
+
args.push("id: $id");
|
|
1400
|
+
variables["id"] = params.id;
|
|
1401
|
+
}
|
|
1402
|
+
if (params.publisherId !== void 0) {
|
|
1403
|
+
defs.push("$publisherId: UUID");
|
|
1404
|
+
args.push("publisherId: $publisherId");
|
|
1405
|
+
variables["publisherId"] = params.publisherId;
|
|
1406
|
+
}
|
|
1407
|
+
if (params.publisherSlug !== void 0) {
|
|
1408
|
+
defs.push("$publisherSlug: String");
|
|
1409
|
+
args.push("publisherSlug: $publisherSlug");
|
|
1410
|
+
variables["publisherSlug"] = params.publisherSlug;
|
|
1411
|
+
}
|
|
1412
|
+
if (params.gameKey !== void 0) {
|
|
1413
|
+
defs.push("$gameKey: String");
|
|
1414
|
+
args.push("gameKey: $gameKey");
|
|
1415
|
+
variables["gameKey"] = params.gameKey;
|
|
1416
|
+
}
|
|
1417
|
+
if (params.gameSlug !== void 0) {
|
|
1418
|
+
defs.push("$gameSlug: String");
|
|
1419
|
+
args.push("gameSlug: $gameSlug");
|
|
1420
|
+
variables["gameSlug"] = params.gameSlug;
|
|
1421
|
+
}
|
|
1422
|
+
return {
|
|
1423
|
+
query: `
|
|
1424
|
+
query Game(${defs.join(", ")}) {
|
|
1425
|
+
game(${args.join(", ")}) {
|
|
1426
|
+
${GAME_FIELDS}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
`,
|
|
1430
|
+
variables
|
|
1431
|
+
};
|
|
1432
|
+
},
|
|
1433
|
+
createGame() {
|
|
1434
|
+
return {
|
|
1435
|
+
query: `
|
|
1436
|
+
mutation GameCreate($input: GameCreateInput!) {
|
|
1437
|
+
gameCreate(input: $input) {
|
|
1438
|
+
${GAME_FIELDS}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
`
|
|
1442
|
+
};
|
|
1443
|
+
},
|
|
1444
|
+
updateGame() {
|
|
1445
|
+
return {
|
|
1446
|
+
query: `
|
|
1447
|
+
mutation GameUpdate($id: UUID!, $input: GameUpdateInput!) {
|
|
1448
|
+
gameUpdate(id: $id, input: $input) {
|
|
1449
|
+
${GAME_FIELDS}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
`
|
|
1453
|
+
};
|
|
1454
|
+
},
|
|
645
1455
|
// Datasets
|
|
646
1456
|
searchDatasets(params = {}) {
|
|
647
1457
|
const variables = {};
|
|
@@ -725,6 +1535,83 @@ var QueryBuilder = {
|
|
|
725
1535
|
`
|
|
726
1536
|
};
|
|
727
1537
|
},
|
|
1538
|
+
listDatasets(params) {
|
|
1539
|
+
const variables = { publisherId: params.publisherId };
|
|
1540
|
+
const args = ["publisherId: $publisherId"];
|
|
1541
|
+
const defs = ["$publisherId: UUID!"];
|
|
1542
|
+
if (params.gameId !== void 0) {
|
|
1543
|
+
defs.push("$gameId: UUID");
|
|
1544
|
+
args.push("gameId: $gameId");
|
|
1545
|
+
variables["gameId"] = params.gameId;
|
|
1546
|
+
}
|
|
1547
|
+
if (params.first !== void 0) {
|
|
1548
|
+
defs.push("$first: Int");
|
|
1549
|
+
args.push("first: $first");
|
|
1550
|
+
variables["first"] = params.first;
|
|
1551
|
+
}
|
|
1552
|
+
if (params.after !== void 0) {
|
|
1553
|
+
defs.push("$after: String");
|
|
1554
|
+
args.push("after: $after");
|
|
1555
|
+
variables["after"] = params.after;
|
|
1556
|
+
}
|
|
1557
|
+
if (params.includeArchived !== void 0) {
|
|
1558
|
+
defs.push("$includeArchived: Boolean");
|
|
1559
|
+
args.push("includeArchived: $includeArchived");
|
|
1560
|
+
variables["includeArchived"] = params.includeArchived;
|
|
1561
|
+
}
|
|
1562
|
+
if (params.purpose !== void 0) {
|
|
1563
|
+
defs.push("$purpose: DatasetPurpose");
|
|
1564
|
+
args.push("purpose: $purpose");
|
|
1565
|
+
variables["purpose"] = params.purpose;
|
|
1566
|
+
}
|
|
1567
|
+
return {
|
|
1568
|
+
query: `
|
|
1569
|
+
query Datasets(${defs.join(", ")}) {
|
|
1570
|
+
datasets(${args.join(", ")}) {
|
|
1571
|
+
${connectionFields(`${DATASET_FIELDS}
|
|
1572
|
+
${SCHEMA_FIELDS}`)}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
`,
|
|
1576
|
+
variables
|
|
1577
|
+
};
|
|
1578
|
+
},
|
|
1579
|
+
dataset(params) {
|
|
1580
|
+
const variables = {};
|
|
1581
|
+
const args = [];
|
|
1582
|
+
const defs = [];
|
|
1583
|
+
if (params.id !== void 0) {
|
|
1584
|
+
defs.push("$id: UUID");
|
|
1585
|
+
args.push("id: $id");
|
|
1586
|
+
variables["id"] = params.id;
|
|
1587
|
+
}
|
|
1588
|
+
if (params.publisherId !== void 0) {
|
|
1589
|
+
defs.push("$publisherId: UUID");
|
|
1590
|
+
args.push("publisherId: $publisherId");
|
|
1591
|
+
variables["publisherId"] = params.publisherId;
|
|
1592
|
+
}
|
|
1593
|
+
if (params.gameId !== void 0) {
|
|
1594
|
+
defs.push("$gameId: UUID");
|
|
1595
|
+
args.push("gameId: $gameId");
|
|
1596
|
+
variables["gameId"] = params.gameId;
|
|
1597
|
+
}
|
|
1598
|
+
if (params.datasetKey !== void 0) {
|
|
1599
|
+
defs.push("$datasetKey: String");
|
|
1600
|
+
args.push("datasetKey: $datasetKey");
|
|
1601
|
+
variables["datasetKey"] = params.datasetKey;
|
|
1602
|
+
}
|
|
1603
|
+
return {
|
|
1604
|
+
query: `
|
|
1605
|
+
query Dataset(${defs.join(", ")}) {
|
|
1606
|
+
dataset(${args.join(", ")}) {
|
|
1607
|
+
${DATASET_FIELDS}
|
|
1608
|
+
${SCHEMA_FIELDS}
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
`,
|
|
1612
|
+
variables
|
|
1613
|
+
};
|
|
1614
|
+
},
|
|
728
1615
|
// Records
|
|
729
1616
|
searchRecords(params) {
|
|
730
1617
|
const variables = {
|
|
@@ -832,11 +1719,20 @@ ${RESOLVED_LINKS_FIELDS}` : selectedRecordFields;
|
|
|
832
1719
|
`
|
|
833
1720
|
};
|
|
834
1721
|
},
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
const
|
|
838
|
-
const
|
|
839
|
-
|
|
1722
|
+
listDatasetRecords(params) {
|
|
1723
|
+
const variables = { datasetId: params.datasetId };
|
|
1724
|
+
const args = ["datasetId: $datasetId"];
|
|
1725
|
+
const defs = ["$datasetId: UUID!"];
|
|
1726
|
+
if (params.filter !== void 0) {
|
|
1727
|
+
defs.push("$filter: JSON");
|
|
1728
|
+
args.push("filter: $filter");
|
|
1729
|
+
variables["filter"] = params.filter;
|
|
1730
|
+
}
|
|
1731
|
+
if (params.orderBy !== void 0) {
|
|
1732
|
+
defs.push("$orderBy: DatasetRecordOrderByInput");
|
|
1733
|
+
args.push("orderBy: $orderBy");
|
|
1734
|
+
variables["orderBy"] = params.orderBy;
|
|
1735
|
+
}
|
|
840
1736
|
if (params.first !== void 0) {
|
|
841
1737
|
defs.push("$first: Int");
|
|
842
1738
|
args.push("first: $first");
|
|
@@ -847,159 +1743,1257 @@ ${RESOLVED_LINKS_FIELDS}` : selectedRecordFields;
|
|
|
847
1743
|
args.push("after: $after");
|
|
848
1744
|
variables["after"] = params.after;
|
|
849
1745
|
}
|
|
850
|
-
|
|
851
|
-
|
|
1746
|
+
if (params.last !== void 0) {
|
|
1747
|
+
defs.push("$last: Int");
|
|
1748
|
+
args.push("last: $last");
|
|
1749
|
+
variables["last"] = params.last;
|
|
1750
|
+
}
|
|
1751
|
+
if (params.before !== void 0) {
|
|
1752
|
+
defs.push("$before: String");
|
|
1753
|
+
args.push("before: $before");
|
|
1754
|
+
variables["before"] = params.before;
|
|
1755
|
+
}
|
|
1756
|
+
if (params.validateSchema !== void 0) {
|
|
1757
|
+
defs.push("$validateSchema: Boolean");
|
|
1758
|
+
args.push("validateSchema: $validateSchema");
|
|
1759
|
+
variables["validateSchema"] = params.validateSchema;
|
|
1760
|
+
}
|
|
852
1761
|
return {
|
|
853
1762
|
query: `
|
|
854
|
-
query
|
|
855
|
-
|
|
856
|
-
${connectionFields(
|
|
1763
|
+
query DatasetRecords(${defs.join(", ")}) {
|
|
1764
|
+
datasetRecords(${args.join(", ")}) {
|
|
1765
|
+
${connectionFields(RECORD_FIELDS)}
|
|
857
1766
|
}
|
|
858
1767
|
}
|
|
859
1768
|
`,
|
|
860
1769
|
variables
|
|
861
1770
|
};
|
|
862
1771
|
},
|
|
863
|
-
|
|
1772
|
+
datasetRecord(params) {
|
|
1773
|
+
const variables = {};
|
|
1774
|
+
const args = [];
|
|
1775
|
+
const defs = [];
|
|
1776
|
+
if (params.id !== void 0) {
|
|
1777
|
+
defs.push("$id: UUID");
|
|
1778
|
+
args.push("id: $id");
|
|
1779
|
+
variables["id"] = params.id;
|
|
1780
|
+
}
|
|
1781
|
+
if (params.datasetId !== void 0) {
|
|
1782
|
+
defs.push("$datasetId: UUID");
|
|
1783
|
+
args.push("datasetId: $datasetId");
|
|
1784
|
+
variables["datasetId"] = params.datasetId;
|
|
1785
|
+
}
|
|
1786
|
+
if (params.identifier !== void 0) {
|
|
1787
|
+
defs.push("$identifier: String");
|
|
1788
|
+
args.push("identifier: $identifier");
|
|
1789
|
+
variables["identifier"] = params.identifier;
|
|
1790
|
+
}
|
|
1791
|
+
if (params.publisherSlug !== void 0) {
|
|
1792
|
+
defs.push("$publisherSlug: String");
|
|
1793
|
+
args.push("publisherSlug: $publisherSlug");
|
|
1794
|
+
variables["publisherSlug"] = params.publisherSlug;
|
|
1795
|
+
}
|
|
1796
|
+
if (params.gameKey !== void 0) {
|
|
1797
|
+
defs.push("$gameKey: String");
|
|
1798
|
+
args.push("gameKey: $gameKey");
|
|
1799
|
+
variables["gameKey"] = params.gameKey;
|
|
1800
|
+
}
|
|
1801
|
+
if (params.datasetKey !== void 0) {
|
|
1802
|
+
defs.push("$datasetKey: String");
|
|
1803
|
+
args.push("datasetKey: $datasetKey");
|
|
1804
|
+
variables["datasetKey"] = params.datasetKey;
|
|
1805
|
+
}
|
|
1806
|
+
if (params.recordId !== void 0) {
|
|
1807
|
+
defs.push("$recordId: UUID");
|
|
1808
|
+
args.push("recordId: $recordId");
|
|
1809
|
+
variables["recordId"] = params.recordId;
|
|
1810
|
+
}
|
|
1811
|
+
if (params.resolveLinks !== void 0) {
|
|
1812
|
+
defs.push("$resolveLinks: [String!]");
|
|
1813
|
+
args.push("resolveLinks: $resolveLinks");
|
|
1814
|
+
variables["resolveLinks"] = params.resolveLinks;
|
|
1815
|
+
}
|
|
1816
|
+
if (params.validateSchema !== void 0) {
|
|
1817
|
+
defs.push("$validateSchema: Boolean");
|
|
1818
|
+
args.push("validateSchema: $validateSchema");
|
|
1819
|
+
variables["validateSchema"] = params.validateSchema;
|
|
1820
|
+
}
|
|
1821
|
+
const includeResolvedLinks = params.resolveLinks && params.resolveLinks.length > 0;
|
|
1822
|
+
const selectedRecordFields = recordFields({ includePricing: params.includePricing });
|
|
1823
|
+
const fields = includeResolvedLinks ? `${selectedRecordFields}
|
|
1824
|
+
${RESOLVED_LINKS_FIELDS}` : selectedRecordFields;
|
|
864
1825
|
return {
|
|
865
1826
|
query: `
|
|
866
|
-
query
|
|
867
|
-
|
|
868
|
-
${
|
|
1827
|
+
query DatasetRecord(${defs.join(", ")}) {
|
|
1828
|
+
datasetRecord(${args.join(", ")}) {
|
|
1829
|
+
${fields}
|
|
869
1830
|
}
|
|
870
1831
|
}
|
|
871
|
-
|
|
1832
|
+
`,
|
|
1833
|
+
variables
|
|
872
1834
|
};
|
|
873
1835
|
},
|
|
874
|
-
|
|
1836
|
+
upsertDatasetRecords() {
|
|
875
1837
|
return {
|
|
876
1838
|
query: `
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
${
|
|
1839
|
+
mutation DatasetRecordsUpsert($input: DatasetRecordsUpsertInput!) {
|
|
1840
|
+
datasetRecordsUpsert(input: $input) {
|
|
1841
|
+
${DATASET_RECORDS_UPSERT_PAYLOAD_FIELDS}
|
|
880
1842
|
}
|
|
881
1843
|
}
|
|
882
1844
|
`
|
|
883
1845
|
};
|
|
884
1846
|
},
|
|
885
|
-
|
|
1847
|
+
deleteDatasetRecords() {
|
|
886
1848
|
return {
|
|
887
1849
|
query: `
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
${
|
|
1850
|
+
mutation DatasetRecordsDelete($input: DatasetRecordsDeleteInput!) {
|
|
1851
|
+
datasetRecordsDelete(input: $input) {
|
|
1852
|
+
${DATASET_RECORD_DELETE_JOB_FIELDS}
|
|
891
1853
|
}
|
|
892
1854
|
}
|
|
893
1855
|
`
|
|
894
1856
|
};
|
|
895
1857
|
},
|
|
896
|
-
|
|
1858
|
+
datasetRecordDeleteJob() {
|
|
897
1859
|
return {
|
|
898
1860
|
query: `
|
|
899
|
-
query
|
|
900
|
-
|
|
901
|
-
${
|
|
1861
|
+
query DatasetRecordDeleteJob($id: UUID!) {
|
|
1862
|
+
datasetRecordDeleteJob(id: $id) {
|
|
1863
|
+
${DATASET_RECORD_DELETE_JOB_FIELDS}
|
|
902
1864
|
}
|
|
903
1865
|
}
|
|
904
1866
|
`
|
|
905
1867
|
};
|
|
906
1868
|
},
|
|
907
|
-
|
|
1869
|
+
datasetRecordDeleteJobs(params) {
|
|
1870
|
+
const variables = { publisherId: params.publisherId };
|
|
1871
|
+
const args = ["publisherId: $publisherId"];
|
|
1872
|
+
const defs = ["$publisherId: UUID!"];
|
|
1873
|
+
if (params.datasetId !== void 0) {
|
|
1874
|
+
defs.push("$datasetId: UUID");
|
|
1875
|
+
args.push("datasetId: $datasetId");
|
|
1876
|
+
variables["datasetId"] = params.datasetId;
|
|
1877
|
+
}
|
|
1878
|
+
if (params.status !== void 0) {
|
|
1879
|
+
defs.push("$status: DatasetRecordDeleteJobStatus");
|
|
1880
|
+
args.push("status: $status");
|
|
1881
|
+
variables["status"] = params.status;
|
|
1882
|
+
}
|
|
1883
|
+
if (params.first !== void 0) {
|
|
1884
|
+
defs.push("$first: Int");
|
|
1885
|
+
args.push("first: $first");
|
|
1886
|
+
variables["first"] = params.first;
|
|
1887
|
+
}
|
|
1888
|
+
if (params.after !== void 0) {
|
|
1889
|
+
defs.push("$after: String");
|
|
1890
|
+
args.push("after: $after");
|
|
1891
|
+
variables["after"] = params.after;
|
|
1892
|
+
}
|
|
908
1893
|
return {
|
|
909
1894
|
query: `
|
|
910
|
-
query
|
|
911
|
-
|
|
912
|
-
${
|
|
1895
|
+
query DatasetRecordDeleteJobs(${defs.join(", ")}) {
|
|
1896
|
+
datasetRecordDeleteJobs(${args.join(", ")}) {
|
|
1897
|
+
${connectionFields(DATASET_RECORD_DELETE_JOB_FIELDS)}
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
`,
|
|
1901
|
+
variables
|
|
1902
|
+
};
|
|
1903
|
+
},
|
|
1904
|
+
datasetImportPreview() {
|
|
1905
|
+
return {
|
|
1906
|
+
query: `
|
|
1907
|
+
query DatasetImportPreview($input: DatasetImportPreviewInput!) {
|
|
1908
|
+
datasetImportPreview(input: $input) {
|
|
1909
|
+
${DATASET_IMPORT_PREVIEW_FIELDS}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
`
|
|
1913
|
+
};
|
|
1914
|
+
},
|
|
1915
|
+
datasetImportValidate() {
|
|
1916
|
+
return {
|
|
1917
|
+
query: `
|
|
1918
|
+
query DatasetImportValidate($input: DatasetImportValidateInput!) {
|
|
1919
|
+
datasetImportValidate(input: $input) {
|
|
1920
|
+
${BULK_IMPORT_RESULT_FIELDS}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
`
|
|
1924
|
+
};
|
|
1925
|
+
},
|
|
1926
|
+
datasetImportFromFile() {
|
|
1927
|
+
return {
|
|
1928
|
+
query: `
|
|
1929
|
+
mutation DatasetImportFromFile($input: DatasetImportFromFileInput!) {
|
|
1930
|
+
datasetImportFromFile(input: $input) {
|
|
1931
|
+
${IMPORT_JOB_FIELDS}
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
`
|
|
1935
|
+
};
|
|
1936
|
+
},
|
|
1937
|
+
datasetImportFromPayload() {
|
|
1938
|
+
return {
|
|
1939
|
+
query: `
|
|
1940
|
+
mutation DatasetImportFromPayload($input: DatasetImportFromPayloadInput!) {
|
|
1941
|
+
datasetImportFromPayload(input: $input) {
|
|
1942
|
+
${IMPORT_JOB_FIELDS}
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
`
|
|
1946
|
+
};
|
|
1947
|
+
},
|
|
1948
|
+
datasetImportFromUrl() {
|
|
1949
|
+
return {
|
|
1950
|
+
query: `
|
|
1951
|
+
mutation DatasetImportFromUrl($input: DatasetImportFromUrlInput!) {
|
|
1952
|
+
datasetImportFromUrl(input: $input) {
|
|
1953
|
+
${IMPORT_JOB_FIELDS}
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
`
|
|
1957
|
+
};
|
|
1958
|
+
},
|
|
1959
|
+
importJob() {
|
|
1960
|
+
return {
|
|
1961
|
+
query: `
|
|
1962
|
+
query ImportJob($id: UUID!) {
|
|
1963
|
+
importJob(id: $id) {
|
|
1964
|
+
${IMPORT_JOB_FIELDS}
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
`
|
|
1968
|
+
};
|
|
1969
|
+
},
|
|
1970
|
+
importJobs(params) {
|
|
1971
|
+
const variables = { publisherId: params.publisherId };
|
|
1972
|
+
const args = ["publisherId: $publisherId"];
|
|
1973
|
+
const defs = ["$publisherId: UUID!"];
|
|
1974
|
+
if (params.datasetId !== void 0) {
|
|
1975
|
+
defs.push("$datasetId: UUID");
|
|
1976
|
+
args.push("datasetId: $datasetId");
|
|
1977
|
+
variables["datasetId"] = params.datasetId;
|
|
1978
|
+
}
|
|
1979
|
+
if (params.status !== void 0) {
|
|
1980
|
+
defs.push("$status: ImportJobStatus");
|
|
1981
|
+
args.push("status: $status");
|
|
1982
|
+
variables["status"] = params.status;
|
|
1983
|
+
}
|
|
1984
|
+
if (params.first !== void 0) {
|
|
1985
|
+
defs.push("$first: Int");
|
|
1986
|
+
args.push("first: $first");
|
|
1987
|
+
variables["first"] = params.first;
|
|
1988
|
+
}
|
|
1989
|
+
if (params.after !== void 0) {
|
|
1990
|
+
defs.push("$after: String");
|
|
1991
|
+
args.push("after: $after");
|
|
1992
|
+
variables["after"] = params.after;
|
|
1993
|
+
}
|
|
1994
|
+
return {
|
|
1995
|
+
query: `
|
|
1996
|
+
query ImportJobs(${defs.join(", ")}) {
|
|
1997
|
+
importJobs(${args.join(", ")}) {
|
|
1998
|
+
${connectionFields(IMPORT_JOB_FIELDS)}
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
`,
|
|
2002
|
+
variables
|
|
2003
|
+
};
|
|
2004
|
+
},
|
|
2005
|
+
importJobCancel() {
|
|
2006
|
+
return {
|
|
2007
|
+
query: `
|
|
2008
|
+
mutation ImportJobCancel($id: UUID!) {
|
|
2009
|
+
importJobCancel(id: $id) {
|
|
2010
|
+
${IMPORT_JOB_FIELDS}
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
`
|
|
2014
|
+
};
|
|
2015
|
+
},
|
|
2016
|
+
importJobLogs(params) {
|
|
2017
|
+
const variables = { importJobId: params.importJobId };
|
|
2018
|
+
const args = ["id: $importJobId"];
|
|
2019
|
+
const logArgs = [];
|
|
2020
|
+
const defs = ["$importJobId: UUID!"];
|
|
2021
|
+
if (params.level !== void 0) {
|
|
2022
|
+
defs.push("$level: ImportLogLevel");
|
|
2023
|
+
logArgs.push("level: $level");
|
|
2024
|
+
variables["level"] = params.level;
|
|
2025
|
+
}
|
|
2026
|
+
if (params.datasetKey !== void 0) {
|
|
2027
|
+
defs.push("$datasetKey: String");
|
|
2028
|
+
logArgs.push("datasetKey: $datasetKey");
|
|
2029
|
+
variables["datasetKey"] = params.datasetKey;
|
|
2030
|
+
}
|
|
2031
|
+
if (params.first !== void 0) {
|
|
2032
|
+
defs.push("$first: Int");
|
|
2033
|
+
logArgs.push("first: $first");
|
|
2034
|
+
variables["first"] = params.first;
|
|
2035
|
+
}
|
|
2036
|
+
if (params.after !== void 0) {
|
|
2037
|
+
defs.push("$after: String");
|
|
2038
|
+
logArgs.push("after: $after");
|
|
2039
|
+
variables["after"] = params.after;
|
|
2040
|
+
}
|
|
2041
|
+
const logArgStr = logArgs.length > 0 ? `(${logArgs.join(", ")})` : "";
|
|
2042
|
+
return {
|
|
2043
|
+
query: `
|
|
2044
|
+
query ImportJobLogs(${defs.join(", ")}) {
|
|
2045
|
+
importJob(${args.join(", ")}) {
|
|
2046
|
+
logs${logArgStr} {
|
|
2047
|
+
${connectionFields(IMPORT_JOB_LOG_FIELDS)}
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
`,
|
|
2052
|
+
variables
|
|
2053
|
+
};
|
|
2054
|
+
},
|
|
2055
|
+
gameImportPreview() {
|
|
2056
|
+
return {
|
|
2057
|
+
query: `
|
|
2058
|
+
query GameImportPreview($input: GameImportPreviewInput!) {
|
|
2059
|
+
gameImportPreview(input: $input) {
|
|
2060
|
+
${GAME_IMPORT_PREVIEW_FIELDS}
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
`
|
|
2064
|
+
};
|
|
2065
|
+
},
|
|
2066
|
+
gameImportFromFile() {
|
|
2067
|
+
return {
|
|
2068
|
+
query: `
|
|
2069
|
+
mutation GameImportFromFile($input: GameImportFromFileInput!) {
|
|
2070
|
+
gameImportFromFile(input: $input) {
|
|
2071
|
+
${GAME_IMPORT_JOB_FIELDS}
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
`
|
|
2075
|
+
};
|
|
2076
|
+
},
|
|
2077
|
+
gameImportFromPayload() {
|
|
2078
|
+
return {
|
|
2079
|
+
query: `
|
|
2080
|
+
mutation GameImportFromPayload($input: GameImportFromPayloadInput!) {
|
|
2081
|
+
gameImportFromPayload(input: $input) {
|
|
2082
|
+
${GAME_IMPORT_JOB_FIELDS}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
`
|
|
2086
|
+
};
|
|
2087
|
+
},
|
|
2088
|
+
gameImportFromUrl() {
|
|
2089
|
+
return {
|
|
2090
|
+
query: `
|
|
2091
|
+
mutation GameImportFromUrl($input: GameImportFromUrlInput!) {
|
|
2092
|
+
gameImportFromUrl(input: $input) {
|
|
2093
|
+
${GAME_IMPORT_JOB_FIELDS}
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
`
|
|
2097
|
+
};
|
|
2098
|
+
},
|
|
2099
|
+
gameImportJob() {
|
|
2100
|
+
return {
|
|
2101
|
+
query: `
|
|
2102
|
+
query GameImportJob($id: UUID!) {
|
|
2103
|
+
gameImportJob(id: $id) {
|
|
2104
|
+
${GAME_IMPORT_JOB_FIELDS}
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
`
|
|
2108
|
+
};
|
|
2109
|
+
},
|
|
2110
|
+
gameImportJobs(params) {
|
|
2111
|
+
const variables = { gameId: params.gameId };
|
|
2112
|
+
const args = ["gameId: $gameId"];
|
|
2113
|
+
const defs = ["$gameId: UUID!"];
|
|
2114
|
+
if (params.status !== void 0) {
|
|
2115
|
+
defs.push("$status: ImportJobStatus");
|
|
2116
|
+
args.push("status: $status");
|
|
2117
|
+
variables["status"] = params.status;
|
|
2118
|
+
}
|
|
2119
|
+
if (params.first !== void 0) {
|
|
2120
|
+
defs.push("$first: Int");
|
|
2121
|
+
args.push("first: $first");
|
|
2122
|
+
variables["first"] = params.first;
|
|
2123
|
+
}
|
|
2124
|
+
if (params.after !== void 0) {
|
|
2125
|
+
defs.push("$after: String");
|
|
2126
|
+
args.push("after: $after");
|
|
2127
|
+
variables["after"] = params.after;
|
|
2128
|
+
}
|
|
2129
|
+
return {
|
|
2130
|
+
query: `
|
|
2131
|
+
query GameImportJobs(${defs.join(", ")}) {
|
|
2132
|
+
gameImportJobs(${args.join(", ")}) {
|
|
2133
|
+
${connectionFields(GAME_IMPORT_JOB_FIELDS)}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
`,
|
|
2137
|
+
variables
|
|
2138
|
+
};
|
|
2139
|
+
},
|
|
2140
|
+
gameImportJobCancel() {
|
|
2141
|
+
return {
|
|
2142
|
+
query: `
|
|
2143
|
+
mutation GameImportJobCancel($id: UUID!) {
|
|
2144
|
+
gameImportJobCancel(id: $id) {
|
|
2145
|
+
${GAME_IMPORT_JOB_FIELDS}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
`
|
|
2149
|
+
};
|
|
2150
|
+
},
|
|
2151
|
+
file() {
|
|
2152
|
+
return {
|
|
2153
|
+
query: `
|
|
2154
|
+
query File($id: UUID!) {
|
|
2155
|
+
file(id: $id) {
|
|
2156
|
+
${FILE_FIELDS}
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
`
|
|
2160
|
+
};
|
|
2161
|
+
},
|
|
2162
|
+
fileUploadRequest() {
|
|
2163
|
+
return {
|
|
2164
|
+
query: `
|
|
2165
|
+
mutation FileUploadRequest($input: FileUploadInput!) {
|
|
2166
|
+
fileUploadRequest(input: $input) {
|
|
2167
|
+
${PRESIGNED_UPLOAD_FIELDS}
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
`
|
|
2171
|
+
};
|
|
2172
|
+
},
|
|
2173
|
+
fileUploadConfirm() {
|
|
2174
|
+
return {
|
|
2175
|
+
query: `
|
|
2176
|
+
mutation FileUploadConfirm($id: UUID!) {
|
|
2177
|
+
fileUploadConfirm(id: $id) {
|
|
2178
|
+
${FILE_FIELDS}
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
`
|
|
2182
|
+
};
|
|
2183
|
+
},
|
|
2184
|
+
fileDelete() {
|
|
2185
|
+
return {
|
|
2186
|
+
query: `
|
|
2187
|
+
mutation FileDelete($id: UUID!) {
|
|
2188
|
+
fileDelete(id: $id)
|
|
2189
|
+
}
|
|
2190
|
+
`
|
|
2191
|
+
};
|
|
2192
|
+
},
|
|
2193
|
+
exportJob() {
|
|
2194
|
+
return {
|
|
2195
|
+
query: `
|
|
2196
|
+
query ExportJob($id: UUID!) {
|
|
2197
|
+
exportJob(id: $id) {
|
|
2198
|
+
${EXPORT_JOB_FIELDS}
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
`
|
|
2202
|
+
};
|
|
2203
|
+
},
|
|
2204
|
+
exportJobs(params) {
|
|
2205
|
+
const variables = { publisherId: params.publisherId };
|
|
2206
|
+
const args = ["publisherId: $publisherId"];
|
|
2207
|
+
const defs = ["$publisherId: UUID!"];
|
|
2208
|
+
if (params.gameId !== void 0) {
|
|
2209
|
+
defs.push("$gameId: UUID");
|
|
2210
|
+
args.push("gameId: $gameId");
|
|
2211
|
+
variables["gameId"] = params.gameId;
|
|
2212
|
+
}
|
|
2213
|
+
if (params.datasetId !== void 0) {
|
|
2214
|
+
defs.push("$datasetId: UUID");
|
|
2215
|
+
args.push("datasetId: $datasetId");
|
|
2216
|
+
variables["datasetId"] = params.datasetId;
|
|
2217
|
+
}
|
|
2218
|
+
if (params.status !== void 0) {
|
|
2219
|
+
defs.push("$status: ExportJobStatus");
|
|
2220
|
+
args.push("status: $status");
|
|
2221
|
+
variables["status"] = params.status;
|
|
2222
|
+
}
|
|
2223
|
+
if (params.first !== void 0) {
|
|
2224
|
+
defs.push("$first: Int");
|
|
2225
|
+
args.push("first: $first");
|
|
2226
|
+
variables["first"] = params.first;
|
|
2227
|
+
}
|
|
2228
|
+
if (params.after !== void 0) {
|
|
2229
|
+
defs.push("$after: String");
|
|
2230
|
+
args.push("after: $after");
|
|
2231
|
+
variables["after"] = params.after;
|
|
2232
|
+
}
|
|
2233
|
+
return {
|
|
2234
|
+
query: `
|
|
2235
|
+
query ExportJobs(${defs.join(", ")}) {
|
|
2236
|
+
exportJobs(${args.join(", ")}) {
|
|
2237
|
+
${connectionFields(EXPORT_JOB_FIELDS)}
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
`,
|
|
2241
|
+
variables
|
|
2242
|
+
};
|
|
2243
|
+
},
|
|
2244
|
+
datasetExport() {
|
|
2245
|
+
return {
|
|
2246
|
+
query: `
|
|
2247
|
+
mutation DatasetExport($input: DatasetExportInput!) {
|
|
2248
|
+
datasetExport(input: $input) {
|
|
2249
|
+
${EXPORT_JOB_FIELDS}
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
`
|
|
2253
|
+
};
|
|
2254
|
+
},
|
|
2255
|
+
exportJobCancel() {
|
|
2256
|
+
return {
|
|
2257
|
+
query: `
|
|
2258
|
+
mutation ExportJobCancel($id: UUID!) {
|
|
2259
|
+
exportJobCancel(id: $id) {
|
|
2260
|
+
${EXPORT_JOB_FIELDS}
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
`
|
|
2264
|
+
};
|
|
2265
|
+
},
|
|
2266
|
+
exportJobRefreshUrl() {
|
|
2267
|
+
return {
|
|
2268
|
+
query: `
|
|
2269
|
+
mutation ExportJobRefreshUrl($id: UUID!) {
|
|
2270
|
+
exportJobRefreshUrl(id: $id) {
|
|
2271
|
+
${EXPORT_JOB_FIELDS}
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
`
|
|
2275
|
+
};
|
|
2276
|
+
},
|
|
2277
|
+
// Decks
|
|
2278
|
+
listMyDecks(params = {}) {
|
|
2279
|
+
const variables = {};
|
|
2280
|
+
const args = [];
|
|
2281
|
+
const defs = [];
|
|
2282
|
+
if (params.first !== void 0) {
|
|
2283
|
+
defs.push("$first: Int");
|
|
2284
|
+
args.push("first: $first");
|
|
2285
|
+
variables["first"] = params.first;
|
|
2286
|
+
}
|
|
2287
|
+
if (params.after !== void 0) {
|
|
2288
|
+
defs.push("$after: String");
|
|
2289
|
+
args.push("after: $after");
|
|
2290
|
+
variables["after"] = params.after;
|
|
2291
|
+
}
|
|
2292
|
+
if (params.includeArchived !== void 0) {
|
|
2293
|
+
defs.push("$includeArchived: Boolean");
|
|
2294
|
+
args.push("includeArchived: $includeArchived");
|
|
2295
|
+
variables["includeArchived"] = params.includeArchived;
|
|
2296
|
+
}
|
|
2297
|
+
const defStr = defs.length > 0 ? `(${defs.join(", ")})` : "";
|
|
2298
|
+
const argStr = args.length > 0 ? `(${args.join(", ")})` : "";
|
|
2299
|
+
return {
|
|
2300
|
+
query: `
|
|
2301
|
+
query MyDecks${defStr} {
|
|
2302
|
+
myDecks${argStr} {
|
|
2303
|
+
${connectionFields(DECK_FIELDS)}
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
`,
|
|
2307
|
+
variables
|
|
2308
|
+
};
|
|
2309
|
+
},
|
|
2310
|
+
viewerDecks(params = {}) {
|
|
2311
|
+
const variables = {};
|
|
2312
|
+
const args = [];
|
|
2313
|
+
const defs = [];
|
|
2314
|
+
if (params.filter !== void 0) {
|
|
2315
|
+
defs.push("$filter: ViewerDecksFilterInput");
|
|
2316
|
+
args.push("filter: $filter");
|
|
2317
|
+
variables["filter"] = params.filter;
|
|
2318
|
+
}
|
|
2319
|
+
if (params.first !== void 0) {
|
|
2320
|
+
defs.push("$first: Int");
|
|
2321
|
+
args.push("first: $first");
|
|
2322
|
+
variables["first"] = params.first;
|
|
2323
|
+
}
|
|
2324
|
+
if (params.after !== void 0) {
|
|
2325
|
+
defs.push("$after: String");
|
|
2326
|
+
args.push("after: $after");
|
|
2327
|
+
variables["after"] = params.after;
|
|
2328
|
+
}
|
|
2329
|
+
const defStr = defs.length > 0 ? `(${defs.join(", ")})` : "";
|
|
2330
|
+
const argStr = args.length > 0 ? `(${args.join(", ")})` : "";
|
|
2331
|
+
return {
|
|
2332
|
+
query: `
|
|
2333
|
+
query ViewerDecks${defStr} {
|
|
2334
|
+
viewerDecks${argStr} {
|
|
2335
|
+
${connectionFields(DECK_FIELDS)}
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
`,
|
|
2339
|
+
variables
|
|
2340
|
+
};
|
|
2341
|
+
},
|
|
2342
|
+
appDecks(params = {}) {
|
|
2343
|
+
const variables = {};
|
|
2344
|
+
const args = [];
|
|
2345
|
+
const defs = [];
|
|
2346
|
+
if (params.filter !== void 0) {
|
|
2347
|
+
defs.push("$filter: AppDecksFilterInput");
|
|
2348
|
+
args.push("filter: $filter");
|
|
2349
|
+
variables["filter"] = params.filter;
|
|
2350
|
+
}
|
|
2351
|
+
if (params.first !== void 0) {
|
|
2352
|
+
defs.push("$first: Int");
|
|
2353
|
+
args.push("first: $first");
|
|
2354
|
+
variables["first"] = params.first;
|
|
2355
|
+
}
|
|
2356
|
+
if (params.after !== void 0) {
|
|
2357
|
+
defs.push("$after: String");
|
|
2358
|
+
args.push("after: $after");
|
|
2359
|
+
variables["after"] = params.after;
|
|
2360
|
+
}
|
|
2361
|
+
const defStr = defs.length > 0 ? `(${defs.join(", ")})` : "";
|
|
2362
|
+
const argStr = args.length > 0 ? `(${args.join(", ")})` : "";
|
|
2363
|
+
return {
|
|
2364
|
+
query: `
|
|
2365
|
+
query AppDecks${defStr} {
|
|
2366
|
+
appDecks${argStr} {
|
|
2367
|
+
${connectionFields(DECK_FIELDS)}
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
`,
|
|
2371
|
+
variables
|
|
2372
|
+
};
|
|
2373
|
+
},
|
|
2374
|
+
publicDecks(params = {}) {
|
|
2375
|
+
const variables = {};
|
|
2376
|
+
const args = [];
|
|
2377
|
+
const defs = [];
|
|
2378
|
+
if (params.filter !== void 0) {
|
|
2379
|
+
defs.push("$filter: PublicDecksFilterInput");
|
|
2380
|
+
args.push("filter: $filter");
|
|
2381
|
+
variables["filter"] = params.filter;
|
|
2382
|
+
}
|
|
2383
|
+
if (params.first !== void 0) {
|
|
2384
|
+
defs.push("$first: Int");
|
|
2385
|
+
args.push("first: $first");
|
|
2386
|
+
variables["first"] = params.first;
|
|
2387
|
+
}
|
|
2388
|
+
if (params.after !== void 0) {
|
|
2389
|
+
defs.push("$after: String");
|
|
2390
|
+
args.push("after: $after");
|
|
2391
|
+
variables["after"] = params.after;
|
|
2392
|
+
}
|
|
2393
|
+
const defStr = defs.length > 0 ? `(${defs.join(", ")})` : "";
|
|
2394
|
+
const argStr = args.length > 0 ? `(${args.join(", ")})` : "";
|
|
2395
|
+
return {
|
|
2396
|
+
query: `
|
|
2397
|
+
query PublicDecks${defStr} {
|
|
2398
|
+
publicDecks${argStr} {
|
|
2399
|
+
${connectionFields(DECK_FIELDS)}
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
`,
|
|
2403
|
+
variables
|
|
2404
|
+
};
|
|
2405
|
+
},
|
|
2406
|
+
fetchDeckById() {
|
|
2407
|
+
return {
|
|
2408
|
+
query: `
|
|
2409
|
+
query FetchDeck($id: UUID!) {
|
|
2410
|
+
fetchDeck(id: $id) {
|
|
2411
|
+
${DECK_FIELDS}
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
`
|
|
2415
|
+
};
|
|
2416
|
+
},
|
|
2417
|
+
deckById() {
|
|
2418
|
+
return {
|
|
2419
|
+
query: `
|
|
2420
|
+
query Deck($id: UUID!) {
|
|
2421
|
+
deck(id: $id) {
|
|
2422
|
+
${DECK_FIELDS}
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
`
|
|
2426
|
+
};
|
|
2427
|
+
},
|
|
2428
|
+
myDeck() {
|
|
2429
|
+
return {
|
|
2430
|
+
query: `
|
|
2431
|
+
query MyDeck($id: UUID!) {
|
|
2432
|
+
myDeck(id: $id) {
|
|
2433
|
+
${DECK_FIELDS}
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
`
|
|
2437
|
+
};
|
|
2438
|
+
},
|
|
2439
|
+
fetchDeckBySlug() {
|
|
2440
|
+
return {
|
|
2441
|
+
query: `
|
|
2442
|
+
query FetchDeckBySlug($publisherSlug: String!, $gameKey: String!, $slug: String!) {
|
|
2443
|
+
fetchDeckBySlug(publisherSlug: $publisherSlug, gameKey: $gameKey, slug: $slug) {
|
|
2444
|
+
${DECK_FIELDS}
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
`
|
|
2448
|
+
};
|
|
2449
|
+
},
|
|
2450
|
+
deckBySlug() {
|
|
2451
|
+
return {
|
|
2452
|
+
query: `
|
|
2453
|
+
query DeckBySlug($publisherSlug: String!, $gameKey: String!, $slug: String!) {
|
|
2454
|
+
deckBySlug(publisherSlug: $publisherSlug, gameKey: $gameKey, slug: $slug) {
|
|
2455
|
+
${DECK_FIELDS}
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
`
|
|
2459
|
+
};
|
|
2460
|
+
},
|
|
2461
|
+
fetchDeckByExternalRef() {
|
|
2462
|
+
return {
|
|
2463
|
+
query: `
|
|
2464
|
+
query FetchDeckByExternalRef($externalRef: String!) {
|
|
2465
|
+
fetchDeckByExternalRef(externalRef: $externalRef) {
|
|
2466
|
+
${DECK_FIELDS}
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
`
|
|
2470
|
+
};
|
|
2471
|
+
},
|
|
2472
|
+
deckByExternalRef() {
|
|
2473
|
+
return {
|
|
2474
|
+
query: `
|
|
2475
|
+
query DeckByExternalRef($externalRef: String!) {
|
|
2476
|
+
deckByExternalRef(externalRef: $externalRef) {
|
|
2477
|
+
${DECK_FIELDS}
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
`
|
|
2481
|
+
};
|
|
2482
|
+
},
|
|
2483
|
+
deckVersion() {
|
|
2484
|
+
return {
|
|
2485
|
+
query: `
|
|
2486
|
+
query DeckVersion($id: UUID!) {
|
|
2487
|
+
deckVersion(id: $id) {
|
|
2488
|
+
${DECK_VERSION_FIELDS}
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
`
|
|
2492
|
+
};
|
|
2493
|
+
},
|
|
2494
|
+
deckVersions(params = {}) {
|
|
2495
|
+
const variables = {};
|
|
2496
|
+
const args = ["deckId: $deckId"];
|
|
2497
|
+
const defs = ["$deckId: UUID!"];
|
|
2498
|
+
if (params.first !== void 0) {
|
|
2499
|
+
defs.push("$first: Int");
|
|
2500
|
+
args.push("first: $first");
|
|
2501
|
+
variables["first"] = params.first;
|
|
2502
|
+
}
|
|
2503
|
+
if (params.after !== void 0) {
|
|
2504
|
+
defs.push("$after: String");
|
|
2505
|
+
args.push("after: $after");
|
|
2506
|
+
variables["after"] = params.after;
|
|
2507
|
+
}
|
|
2508
|
+
return {
|
|
2509
|
+
query: `
|
|
2510
|
+
query DeckVersions(${defs.join(", ")}) {
|
|
2511
|
+
deckVersions(${args.join(", ")}) {
|
|
2512
|
+
${connectionFields(DECK_VERSION_FIELDS)}
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
`,
|
|
2516
|
+
variables
|
|
2517
|
+
};
|
|
2518
|
+
},
|
|
2519
|
+
deckPreview() {
|
|
2520
|
+
return {
|
|
2521
|
+
query: `
|
|
2522
|
+
query DeckPreview($token: String!) {
|
|
2523
|
+
deckPreview(token: $token) {
|
|
2524
|
+
${DECK_FIELDS}
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
`
|
|
2528
|
+
};
|
|
2529
|
+
},
|
|
2530
|
+
deckEmbed() {
|
|
2531
|
+
return {
|
|
2532
|
+
query: `
|
|
2533
|
+
query DeckEmbed($token: String!) {
|
|
2534
|
+
deckEmbed(token: $token) {
|
|
2535
|
+
${DECK_FIELDS}
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
`
|
|
2539
|
+
};
|
|
2540
|
+
},
|
|
2541
|
+
deckAccess() {
|
|
2542
|
+
return {
|
|
2543
|
+
query: `
|
|
2544
|
+
query DeckAccess($token: String!) {
|
|
2545
|
+
deckAccess(token: $token) {
|
|
2546
|
+
${DECK_FIELDS}
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
`
|
|
2550
|
+
};
|
|
2551
|
+
},
|
|
2552
|
+
deckDraftDiff() {
|
|
2553
|
+
return {
|
|
2554
|
+
query: `
|
|
2555
|
+
query DeckDraftDiff($id: UUID!) {
|
|
2556
|
+
deckDraftDiff(id: $id) {
|
|
2557
|
+
${DECK_DIFF_FIELDS}
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
`
|
|
2561
|
+
};
|
|
2562
|
+
},
|
|
2563
|
+
deckVersionDiff() {
|
|
2564
|
+
return {
|
|
2565
|
+
query: `
|
|
2566
|
+
query DeckVersionDiff($fromVersionId: UUID!, $toVersionId: UUID!) {
|
|
2567
|
+
deckVersionDiff(fromVersionId: $fromVersionId, toVersionId: $toVersionId) {
|
|
2568
|
+
${DECK_DIFF_FIELDS}
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
`
|
|
2572
|
+
};
|
|
2573
|
+
},
|
|
2574
|
+
deckHydrateEntries() {
|
|
2575
|
+
return {
|
|
2576
|
+
query: `
|
|
2577
|
+
query DeckHydrateEntries($input: DeckHydrateEntriesInput!) {
|
|
2578
|
+
deckHydrateEntries(input: $input) {
|
|
2579
|
+
${DECK_HYDRATE_ENTRIES_PAYLOAD_FIELDS}
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
`
|
|
2583
|
+
};
|
|
2584
|
+
},
|
|
2585
|
+
deckExport() {
|
|
2586
|
+
return {
|
|
2587
|
+
query: `
|
|
2588
|
+
query DeckExport($id: UUID!, $format: DeckExportFormat!) {
|
|
2589
|
+
deckExport(id: $id, format: $format) {
|
|
2590
|
+
${DECK_EXPORT_PAYLOAD_FIELDS}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
`
|
|
2594
|
+
};
|
|
2595
|
+
},
|
|
2596
|
+
deckValidate() {
|
|
2597
|
+
return {
|
|
2598
|
+
query: `
|
|
2599
|
+
query DeckValidate($id: UUID!, $input: DeckValidateInput) {
|
|
2600
|
+
deckValidate(id: $id, input: $input) {
|
|
2601
|
+
${DECK_VALIDATION_FIELDS}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
`
|
|
2605
|
+
};
|
|
2606
|
+
},
|
|
2607
|
+
deckSectionDefinitions(params = {}) {
|
|
2608
|
+
const variables = {};
|
|
2609
|
+
const args = [];
|
|
2610
|
+
const defs = [];
|
|
2611
|
+
if (params.publisherSlug !== void 0) {
|
|
2612
|
+
defs.push("$publisherSlug: String");
|
|
2613
|
+
args.push("publisherSlug: $publisherSlug");
|
|
2614
|
+
variables["publisherSlug"] = params.publisherSlug;
|
|
2615
|
+
}
|
|
2616
|
+
if (params.gameKey !== void 0) {
|
|
2617
|
+
defs.push("$gameKey: String");
|
|
2618
|
+
args.push("gameKey: $gameKey");
|
|
2619
|
+
variables["gameKey"] = params.gameKey;
|
|
2620
|
+
}
|
|
2621
|
+
if (params.gameId !== void 0) {
|
|
2622
|
+
defs.push("$gameId: UUID");
|
|
2623
|
+
args.push("gameId: $gameId");
|
|
2624
|
+
variables["gameId"] = params.gameId;
|
|
2625
|
+
}
|
|
2626
|
+
if (params.rulesetKey !== void 0) {
|
|
2627
|
+
defs.push("$rulesetKey: String");
|
|
2628
|
+
args.push("rulesetKey: $rulesetKey");
|
|
2629
|
+
variables["rulesetKey"] = params.rulesetKey;
|
|
2630
|
+
}
|
|
2631
|
+
if (params.rulesetVersionId !== void 0) {
|
|
2632
|
+
defs.push("$rulesetVersionId: UUID");
|
|
2633
|
+
args.push("rulesetVersionId: $rulesetVersionId");
|
|
2634
|
+
variables["rulesetVersionId"] = params.rulesetVersionId;
|
|
2635
|
+
}
|
|
2636
|
+
const defStr = defs.length > 0 ? `(${defs.join(", ")})` : "";
|
|
2637
|
+
const argStr = args.length > 0 ? `(${args.join(", ")})` : "";
|
|
2638
|
+
return {
|
|
2639
|
+
query: `
|
|
2640
|
+
query DeckSectionDefinitions${defStr} {
|
|
2641
|
+
deckSectionDefinitions${argStr} {
|
|
2642
|
+
${DECK_SECTION_DEFINITION_FIELDS}
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
`,
|
|
2646
|
+
variables
|
|
2647
|
+
};
|
|
2648
|
+
},
|
|
2649
|
+
deckCollaborators() {
|
|
2650
|
+
return {
|
|
2651
|
+
query: `
|
|
2652
|
+
query DeckCollaborators($deckId: UUID!) {
|
|
2653
|
+
deckCollaborators(deckId: $deckId) {
|
|
2654
|
+
${DECK_COLLABORATOR_FIELDS}
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
`
|
|
2658
|
+
};
|
|
2659
|
+
},
|
|
2660
|
+
deckEmbedTokens() {
|
|
2661
|
+
return {
|
|
2662
|
+
query: `
|
|
2663
|
+
query DeckEmbedTokens($deckId: UUID!) {
|
|
2664
|
+
deckEmbedTokens(deckId: $deckId) {
|
|
2665
|
+
${DECK_EMBED_TOKEN_FIELDS}
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
`
|
|
2669
|
+
};
|
|
2670
|
+
},
|
|
2671
|
+
deckAccessTokenIssuers() {
|
|
2672
|
+
return {
|
|
2673
|
+
query: `
|
|
2674
|
+
query DeckAccessTokenIssuers($deckId: UUID!) {
|
|
2675
|
+
deckAccessTokenIssuers(deckId: $deckId) {
|
|
2676
|
+
${DECK_ACCESS_TOKEN_ISSUER_FIELDS}
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
`
|
|
2680
|
+
};
|
|
2681
|
+
},
|
|
2682
|
+
deckApiApplicationAccesses() {
|
|
2683
|
+
return {
|
|
2684
|
+
query: `
|
|
2685
|
+
query DeckApiApplicationAccesses($deckId: UUID!, $includeRevoked: Boolean) {
|
|
2686
|
+
deckApiApplicationAccesses(deckId: $deckId, includeRevoked: $includeRevoked) {
|
|
2687
|
+
${DECK_API_APPLICATION_ACCESS_FIELDS}
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
`
|
|
2691
|
+
};
|
|
2692
|
+
},
|
|
2693
|
+
myDeckApiApplicationAccesses() {
|
|
2694
|
+
return {
|
|
2695
|
+
query: `
|
|
2696
|
+
query MyDeckApiApplicationAccesses($applicationId: UUID) {
|
|
2697
|
+
myDeckApiApplicationAccesses(applicationId: $applicationId) {
|
|
2698
|
+
${DECK_API_APPLICATION_ACCESS_FIELDS}
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
`
|
|
2702
|
+
};
|
|
2703
|
+
},
|
|
2704
|
+
deckImportFormats(params) {
|
|
2705
|
+
const variables = {};
|
|
2706
|
+
const args = [];
|
|
2707
|
+
const defs = [];
|
|
2708
|
+
if (params.publisherId !== void 0) {
|
|
2709
|
+
defs.push("$publisherId: UUID");
|
|
2710
|
+
args.push("publisherId: $publisherId");
|
|
2711
|
+
variables["publisherId"] = params.publisherId;
|
|
2712
|
+
}
|
|
2713
|
+
if (params.gameId !== void 0) {
|
|
2714
|
+
defs.push("$gameId: UUID");
|
|
2715
|
+
args.push("gameId: $gameId");
|
|
2716
|
+
variables["gameId"] = params.gameId;
|
|
2717
|
+
}
|
|
2718
|
+
if (params.includeArchived !== void 0) {
|
|
2719
|
+
defs.push("$includeArchived: Boolean");
|
|
2720
|
+
args.push("includeArchived: $includeArchived");
|
|
2721
|
+
variables["includeArchived"] = params.includeArchived;
|
|
2722
|
+
}
|
|
2723
|
+
if (params.first !== void 0) {
|
|
2724
|
+
defs.push("$first: Int");
|
|
2725
|
+
args.push("first: $first");
|
|
2726
|
+
variables["first"] = params.first;
|
|
2727
|
+
}
|
|
2728
|
+
if (params.after !== void 0) {
|
|
2729
|
+
defs.push("$after: String");
|
|
2730
|
+
args.push("after: $after");
|
|
2731
|
+
variables["after"] = params.after;
|
|
2732
|
+
}
|
|
2733
|
+
const defStr = defs.length > 0 ? `(${defs.join(", ")})` : "";
|
|
2734
|
+
const argStr = args.length > 0 ? `(${args.join(", ")})` : "";
|
|
2735
|
+
return {
|
|
2736
|
+
query: `
|
|
2737
|
+
query DeckImportFormats${defStr} {
|
|
2738
|
+
deckImportFormats${argStr} {
|
|
2739
|
+
${connectionFields(DECK_IMPORT_FORMAT_DEFINITION_FIELDS)}
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
`,
|
|
2743
|
+
variables
|
|
2744
|
+
};
|
|
2745
|
+
},
|
|
2746
|
+
deckImportFormat() {
|
|
2747
|
+
return {
|
|
2748
|
+
query: `
|
|
2749
|
+
query DeckImportFormat($id: UUID, $gameId: UUID, $key: String) {
|
|
2750
|
+
deckImportFormat(id: $id, gameId: $gameId, key: $key) {
|
|
2751
|
+
${DECK_IMPORT_FORMAT_DEFINITION_FIELDS}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
`
|
|
2755
|
+
};
|
|
2756
|
+
},
|
|
2757
|
+
deckImportFormatTest() {
|
|
2758
|
+
return {
|
|
2759
|
+
query: `
|
|
2760
|
+
query DeckImportFormatTest($input: DeckImportFormatTestInput!) {
|
|
2761
|
+
deckImportFormatTest(input: $input) {
|
|
2762
|
+
${DECK_IMPORT_FORMAT_TEST_PAYLOAD_FIELDS}
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
`
|
|
2766
|
+
};
|
|
2767
|
+
},
|
|
2768
|
+
deckPreviewTokens() {
|
|
2769
|
+
return {
|
|
2770
|
+
query: `
|
|
2771
|
+
query DeckPreviewTokens($deckId: UUID!) {
|
|
2772
|
+
deckPreviewTokens(deckId: $deckId) {
|
|
2773
|
+
${DECK_PREVIEW_TOKEN_FIELDS}
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
`
|
|
2777
|
+
};
|
|
2778
|
+
},
|
|
2779
|
+
createDeck() {
|
|
2780
|
+
return {
|
|
2781
|
+
query: `
|
|
2782
|
+
mutation DeckCreate($input: DeckCreateInput!) {
|
|
2783
|
+
deckCreate(input: $input) {
|
|
2784
|
+
${DECK_FIELDS}
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
`
|
|
2788
|
+
};
|
|
2789
|
+
},
|
|
2790
|
+
updateDeck() {
|
|
2791
|
+
return {
|
|
2792
|
+
query: `
|
|
2793
|
+
mutation DeckUpdate($id: UUID!, $input: DeckUpdateInput!) {
|
|
2794
|
+
deckUpdate(id: $id, input: $input) {
|
|
2795
|
+
${DECK_FIELDS}
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
`
|
|
2799
|
+
};
|
|
2800
|
+
},
|
|
2801
|
+
deleteDeck() {
|
|
2802
|
+
return {
|
|
2803
|
+
query: `
|
|
2804
|
+
mutation DeckDelete($id: UUID!) {
|
|
2805
|
+
deckDelete(id: $id)
|
|
2806
|
+
}
|
|
2807
|
+
`
|
|
2808
|
+
};
|
|
2809
|
+
},
|
|
2810
|
+
archiveDeck() {
|
|
2811
|
+
return {
|
|
2812
|
+
query: `
|
|
2813
|
+
mutation DeckArchive($id: UUID!) {
|
|
2814
|
+
deckArchive(id: $id) {
|
|
2815
|
+
${DECK_FIELDS}
|
|
913
2816
|
}
|
|
914
2817
|
}
|
|
915
2818
|
`
|
|
916
2819
|
};
|
|
917
2820
|
},
|
|
918
|
-
|
|
919
|
-
const variables = {};
|
|
920
|
-
const args = ["deckId: $deckId"];
|
|
921
|
-
const defs = ["$deckId: UUID!"];
|
|
922
|
-
if (params.first !== void 0) {
|
|
923
|
-
defs.push("$first: Int");
|
|
924
|
-
args.push("first: $first");
|
|
925
|
-
variables["first"] = params.first;
|
|
926
|
-
}
|
|
927
|
-
if (params.after !== void 0) {
|
|
928
|
-
defs.push("$after: String");
|
|
929
|
-
args.push("after: $after");
|
|
930
|
-
variables["after"] = params.after;
|
|
931
|
-
}
|
|
2821
|
+
restoreDeck() {
|
|
932
2822
|
return {
|
|
933
2823
|
query: `
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
${
|
|
2824
|
+
mutation DeckRestore($id: UUID!) {
|
|
2825
|
+
deckRestore(id: $id) {
|
|
2826
|
+
${DECK_FIELDS}
|
|
937
2827
|
}
|
|
938
2828
|
}
|
|
939
|
-
|
|
940
|
-
variables
|
|
2829
|
+
`
|
|
941
2830
|
};
|
|
942
2831
|
},
|
|
943
|
-
|
|
2832
|
+
unpublishDeck() {
|
|
944
2833
|
return {
|
|
945
2834
|
query: `
|
|
946
|
-
|
|
947
|
-
|
|
2835
|
+
mutation DeckUnpublish($id: UUID!) {
|
|
2836
|
+
deckUnpublish(id: $id) {
|
|
948
2837
|
${DECK_FIELDS}
|
|
949
2838
|
}
|
|
950
2839
|
}
|
|
951
2840
|
`
|
|
952
2841
|
};
|
|
953
2842
|
},
|
|
954
|
-
|
|
2843
|
+
addDeckEntry() {
|
|
955
2844
|
return {
|
|
956
2845
|
query: `
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
${
|
|
2846
|
+
mutation DeckEntryAdd($input: DeckEntryAddInput!) {
|
|
2847
|
+
deckEntryAdd(input: $input) {
|
|
2848
|
+
${DECK_ENTRY_MUTATION_PAYLOAD_FIELDS}
|
|
960
2849
|
}
|
|
961
2850
|
}
|
|
962
2851
|
`
|
|
963
2852
|
};
|
|
964
2853
|
},
|
|
965
|
-
|
|
2854
|
+
updateDeckEntry() {
|
|
966
2855
|
return {
|
|
967
2856
|
query: `
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
${
|
|
2857
|
+
mutation DeckEntryUpdate($id: UUID!, $input: DeckEntryUpdateInput!) {
|
|
2858
|
+
deckEntryUpdate(id: $id, input: $input) {
|
|
2859
|
+
${DECK_ENTRY_MUTATION_PAYLOAD_FIELDS}
|
|
971
2860
|
}
|
|
972
2861
|
}
|
|
973
2862
|
`
|
|
974
2863
|
};
|
|
975
2864
|
},
|
|
976
|
-
|
|
2865
|
+
removeDeckEntry() {
|
|
977
2866
|
return {
|
|
978
2867
|
query: `
|
|
979
|
-
mutation
|
|
980
|
-
|
|
981
|
-
${
|
|
2868
|
+
mutation DeckEntryRemove($id: UUID!, $expectedDraftRevision: Int!) {
|
|
2869
|
+
deckEntryRemove(id: $id, expectedDraftRevision: $expectedDraftRevision) {
|
|
2870
|
+
${DECK_ENTRY_MUTATION_PAYLOAD_FIELDS}
|
|
982
2871
|
}
|
|
983
2872
|
}
|
|
984
2873
|
`
|
|
985
2874
|
};
|
|
986
2875
|
},
|
|
987
|
-
|
|
2876
|
+
reorderDeckEntries() {
|
|
988
2877
|
return {
|
|
989
2878
|
query: `
|
|
990
|
-
mutation
|
|
991
|
-
|
|
992
|
-
${
|
|
2879
|
+
mutation DeckEntryReorder($deckId: UUID!, $input: DeckEntryReorderInput!) {
|
|
2880
|
+
deckEntryReorder(deckId: $deckId, input: $input) {
|
|
2881
|
+
${DECK_ENTRY_REORDER_PAYLOAD_FIELDS}
|
|
993
2882
|
}
|
|
994
2883
|
}
|
|
995
2884
|
`
|
|
996
2885
|
};
|
|
997
2886
|
},
|
|
998
|
-
|
|
2887
|
+
replaceDeckEntries() {
|
|
999
2888
|
return {
|
|
1000
2889
|
query: `
|
|
1001
|
-
mutation
|
|
1002
|
-
|
|
2890
|
+
mutation DeckEntriesReplace($deckId: UUID!, $input: DeckEntriesReplaceInput!) {
|
|
2891
|
+
deckEntriesReplace(deckId: $deckId, input: $input) {
|
|
2892
|
+
${DECK_ENTRIES_REPLACE_PAYLOAD_FIELDS}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
`
|
|
2896
|
+
};
|
|
2897
|
+
},
|
|
2898
|
+
importDeck() {
|
|
2899
|
+
return {
|
|
2900
|
+
query: `
|
|
2901
|
+
mutation DeckImport($input: DeckImportInput!) {
|
|
2902
|
+
deckImport(input: $input) {
|
|
2903
|
+
${DECK_IMPORT_PAYLOAD_FIELDS}
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
`
|
|
2907
|
+
};
|
|
2908
|
+
},
|
|
2909
|
+
createDeckImportFormat() {
|
|
2910
|
+
return {
|
|
2911
|
+
query: `
|
|
2912
|
+
mutation DeckImportFormatCreate($input: DeckImportFormatCreateInput!) {
|
|
2913
|
+
deckImportFormatCreate(input: $input) {
|
|
2914
|
+
${DECK_IMPORT_FORMAT_DEFINITION_FIELDS}
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
`
|
|
2918
|
+
};
|
|
2919
|
+
},
|
|
2920
|
+
updateDeckImportFormat() {
|
|
2921
|
+
return {
|
|
2922
|
+
query: `
|
|
2923
|
+
mutation DeckImportFormatUpdate($id: UUID!, $input: DeckImportFormatUpdateInput!) {
|
|
2924
|
+
deckImportFormatUpdate(id: $id, input: $input) {
|
|
2925
|
+
${DECK_IMPORT_FORMAT_DEFINITION_FIELDS}
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
`
|
|
2929
|
+
};
|
|
2930
|
+
},
|
|
2931
|
+
archiveDeckImportFormat() {
|
|
2932
|
+
return {
|
|
2933
|
+
query: `
|
|
2934
|
+
mutation DeckImportFormatArchive($id: UUID!) {
|
|
2935
|
+
deckImportFormatArchive(id: $id) {
|
|
2936
|
+
${DECK_IMPORT_FORMAT_DEFINITION_FIELDS}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
`
|
|
2940
|
+
};
|
|
2941
|
+
},
|
|
2942
|
+
unarchiveDeckImportFormat() {
|
|
2943
|
+
return {
|
|
2944
|
+
query: `
|
|
2945
|
+
mutation DeckImportFormatUnarchive($id: UUID!) {
|
|
2946
|
+
deckImportFormatUnarchive(id: $id) {
|
|
2947
|
+
${DECK_IMPORT_FORMAT_DEFINITION_FIELDS}
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
`
|
|
2951
|
+
};
|
|
2952
|
+
},
|
|
2953
|
+
upsertDeckByExternalRef() {
|
|
2954
|
+
return {
|
|
2955
|
+
query: `
|
|
2956
|
+
mutation DeckUpsertByExternalRef($input: DeckUpsertByExternalRefInput!) {
|
|
2957
|
+
deckUpsertByExternalRef(input: $input) {
|
|
2958
|
+
deck {
|
|
2959
|
+
${DECK_FIELDS}
|
|
2960
|
+
}
|
|
2961
|
+
created
|
|
2962
|
+
idempotentReplay
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
`
|
|
2966
|
+
};
|
|
2967
|
+
},
|
|
2968
|
+
claimDeck() {
|
|
2969
|
+
return {
|
|
2970
|
+
query: `
|
|
2971
|
+
mutation DeckClaim($id: UUID!, $input: DeckClaimInput!) {
|
|
2972
|
+
deckClaim(id: $id, input: $input) {
|
|
2973
|
+
${DECK_OWNERSHIP_TRANSFER_PAYLOAD_FIELDS}
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
`
|
|
2977
|
+
};
|
|
2978
|
+
},
|
|
2979
|
+
transferDeckOwnership() {
|
|
2980
|
+
return {
|
|
2981
|
+
query: `
|
|
2982
|
+
mutation DeckTransferOwnership($id: UUID!, $input: DeckTransferOwnershipInput!) {
|
|
2983
|
+
deckTransferOwnership(id: $id, input: $input) {
|
|
2984
|
+
${DECK_OWNERSHIP_TRANSFER_PAYLOAD_FIELDS}
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
`
|
|
2988
|
+
};
|
|
2989
|
+
},
|
|
2990
|
+
copyDeck() {
|
|
2991
|
+
return {
|
|
2992
|
+
query: `
|
|
2993
|
+
mutation DeckCopy($id: UUID!, $input: DeckCopyInput!) {
|
|
2994
|
+
deckCopy(id: $id, input: $input) {
|
|
2995
|
+
${DECK_COPY_PAYLOAD_FIELDS}
|
|
2996
|
+
}
|
|
1003
2997
|
}
|
|
1004
2998
|
`
|
|
1005
2999
|
};
|
|
@@ -1009,7 +3003,18 @@ ${RESOLVED_LINKS_FIELDS}` : selectedRecordFields;
|
|
|
1009
3003
|
query: `
|
|
1010
3004
|
mutation DeckPublish($id: UUID!, $input: DeckPublishInput!) {
|
|
1011
3005
|
deckPublish(id: $id, input: $input) {
|
|
1012
|
-
${
|
|
3006
|
+
${DECK_PUBLISH_PAYLOAD_FIELDS}
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
`
|
|
3010
|
+
};
|
|
3011
|
+
},
|
|
3012
|
+
removeInvalidDeckEntries() {
|
|
3013
|
+
return {
|
|
3014
|
+
query: `
|
|
3015
|
+
mutation DeckRemoveInvalidEntries($id: UUID!, $input: DeckRemoveInvalidEntriesInput!) {
|
|
3016
|
+
deckRemoveInvalidEntries(id: $id, input: $input) {
|
|
3017
|
+
${DECK_FIELDS}
|
|
1013
3018
|
}
|
|
1014
3019
|
}
|
|
1015
3020
|
`
|
|
@@ -1058,21 +3063,238 @@ ${RESOLVED_LINKS_FIELDS}` : selectedRecordFields;
|
|
|
1058
3063
|
`
|
|
1059
3064
|
};
|
|
1060
3065
|
},
|
|
3066
|
+
createDeckEmbedToken() {
|
|
3067
|
+
return {
|
|
3068
|
+
query: `
|
|
3069
|
+
mutation DeckEmbedTokenCreate($input: DeckEmbedTokenCreateInput!) {
|
|
3070
|
+
deckEmbedTokenCreate(input: $input) {
|
|
3071
|
+
token
|
|
3072
|
+
embedToken {
|
|
3073
|
+
${DECK_EMBED_TOKEN_FIELDS}
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
`
|
|
3078
|
+
};
|
|
3079
|
+
},
|
|
3080
|
+
revokeDeckEmbedToken() {
|
|
3081
|
+
return {
|
|
3082
|
+
query: `
|
|
3083
|
+
mutation DeckEmbedTokenRevoke($id: UUID!) {
|
|
3084
|
+
deckEmbedTokenRevoke(id: $id)
|
|
3085
|
+
}
|
|
3086
|
+
`
|
|
3087
|
+
};
|
|
3088
|
+
},
|
|
3089
|
+
createDeckAccessTokenIssuer() {
|
|
3090
|
+
return {
|
|
3091
|
+
query: `
|
|
3092
|
+
mutation DeckAccessTokenIssuerCreate($input: DeckAccessTokenIssuerCreateInput!) {
|
|
3093
|
+
deckAccessTokenIssuerCreate(input: $input) {
|
|
3094
|
+
${DECK_ACCESS_TOKEN_ISSUER_FIELDS}
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
`
|
|
3098
|
+
};
|
|
3099
|
+
},
|
|
3100
|
+
revokeDeckAccessTokenIssuer() {
|
|
3101
|
+
return {
|
|
3102
|
+
query: `
|
|
3103
|
+
mutation DeckAccessTokenIssuerRevoke($id: UUID!) {
|
|
3104
|
+
deckAccessTokenIssuerRevoke(id: $id)
|
|
3105
|
+
}
|
|
3106
|
+
`
|
|
3107
|
+
};
|
|
3108
|
+
},
|
|
3109
|
+
revokeDeckAccessTokenIssuerSigningKey() {
|
|
3110
|
+
return {
|
|
3111
|
+
query: `
|
|
3112
|
+
mutation DeckAccessTokenIssuerSigningKeyRevoke($id: UUID!) {
|
|
3113
|
+
deckAccessTokenIssuerSigningKeyRevoke(id: $id) {
|
|
3114
|
+
${DECK_ACCESS_TOKEN_ISSUER_FIELDS}
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
`
|
|
3118
|
+
};
|
|
3119
|
+
},
|
|
3120
|
+
exchangeDeckAccessToken() {
|
|
3121
|
+
return {
|
|
3122
|
+
query: `
|
|
3123
|
+
mutation DeckAccessTokenExchange($input: DeckAccessTokenExchangeInput!) {
|
|
3124
|
+
deckAccessTokenExchange(input: $input) {
|
|
3125
|
+
token
|
|
3126
|
+
accessToken {
|
|
3127
|
+
${DECK_ACCESS_TOKEN_FIELDS}
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
`
|
|
3132
|
+
};
|
|
3133
|
+
},
|
|
3134
|
+
grantDeckApiApplicationAccess() {
|
|
3135
|
+
return {
|
|
3136
|
+
query: `
|
|
3137
|
+
mutation DeckApiApplicationAccessGrant($input: DeckAPIApplicationAccessGrantInput!) {
|
|
3138
|
+
deckApiApplicationAccessGrant(input: $input) {
|
|
3139
|
+
${DECK_API_APPLICATION_ACCESS_FIELDS}
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
`
|
|
3143
|
+
};
|
|
3144
|
+
},
|
|
3145
|
+
revokeDeckApiApplicationAccess() {
|
|
3146
|
+
return {
|
|
3147
|
+
query: `
|
|
3148
|
+
mutation DeckApiApplicationAccessRevoke($deckId: UUID!, $apiApplicationId: UUID!) {
|
|
3149
|
+
deckApiApplicationAccessRevoke(deckId: $deckId, apiApplicationId: $apiApplicationId)
|
|
3150
|
+
}
|
|
3151
|
+
`
|
|
3152
|
+
};
|
|
3153
|
+
},
|
|
3154
|
+
revokeDeckAccessToken() {
|
|
3155
|
+
return {
|
|
3156
|
+
query: `
|
|
3157
|
+
mutation DeckAccessTokenRevoke($id: UUID!) {
|
|
3158
|
+
deckAccessTokenRevoke(id: $id)
|
|
3159
|
+
}
|
|
3160
|
+
`
|
|
3161
|
+
};
|
|
3162
|
+
},
|
|
1061
3163
|
deckCreateVariables(input) {
|
|
1062
3164
|
return { input };
|
|
1063
3165
|
},
|
|
1064
3166
|
deckUpdateVariables(id, input) {
|
|
1065
3167
|
return { id, input };
|
|
1066
3168
|
},
|
|
1067
|
-
|
|
3169
|
+
deckEntryAddVariables(input) {
|
|
3170
|
+
return { input };
|
|
3171
|
+
},
|
|
3172
|
+
deckEntryUpdateVariables(id, input) {
|
|
3173
|
+
return { id, input };
|
|
3174
|
+
},
|
|
3175
|
+
deckEntryRemoveVariables(id, expectedDraftRevision) {
|
|
3176
|
+
return { id, expectedDraftRevision };
|
|
3177
|
+
},
|
|
3178
|
+
deckEntryReorderVariables(deckId, input) {
|
|
3179
|
+
return { deckId, input };
|
|
3180
|
+
},
|
|
3181
|
+
deckEntriesReplaceVariables(deckId, input) {
|
|
3182
|
+
return { deckId, input };
|
|
3183
|
+
},
|
|
3184
|
+
deckImportVariables(input) {
|
|
3185
|
+
return { input };
|
|
3186
|
+
},
|
|
3187
|
+
deckImportFormatCreateVariables(input) {
|
|
3188
|
+
return { input };
|
|
3189
|
+
},
|
|
3190
|
+
deckImportFormatUpdateVariables(id, input) {
|
|
3191
|
+
return { id, input };
|
|
3192
|
+
},
|
|
3193
|
+
deckImportFormatTestVariables(input) {
|
|
3194
|
+
return { input };
|
|
3195
|
+
},
|
|
3196
|
+
deckUpsertByExternalRefVariables(input) {
|
|
3197
|
+
return { input };
|
|
3198
|
+
},
|
|
3199
|
+
deckClaimVariables(id, input) {
|
|
3200
|
+
return { id, input };
|
|
3201
|
+
},
|
|
3202
|
+
deckTransferOwnershipVariables(id, input) {
|
|
3203
|
+
return { id, input };
|
|
3204
|
+
},
|
|
3205
|
+
deckCopyVariables(id, input) {
|
|
3206
|
+
return { id, input };
|
|
3207
|
+
},
|
|
3208
|
+
deckPublishVariables(id, input) {
|
|
1068
3209
|
return { id, input };
|
|
1069
3210
|
},
|
|
3211
|
+
deckValidateVariables(id, input) {
|
|
3212
|
+
return input === void 0 ? { id } : { id, input };
|
|
3213
|
+
},
|
|
3214
|
+
deckRemoveInvalidEntriesVariables(id, input) {
|
|
3215
|
+
return { id, input };
|
|
3216
|
+
},
|
|
3217
|
+
deckHydrateEntriesVariables(input) {
|
|
3218
|
+
return { input };
|
|
3219
|
+
},
|
|
3220
|
+
deckExportVariables(id, format) {
|
|
3221
|
+
return { id, format };
|
|
3222
|
+
},
|
|
3223
|
+
deckVersionDiffVariables(fromVersionId, toVersionId) {
|
|
3224
|
+
return { fromVersionId, toVersionId };
|
|
3225
|
+
},
|
|
1070
3226
|
deckCollaboratorVariables(deckId, accountId, role) {
|
|
1071
3227
|
return role === void 0 ? { deckId, accountId } : { deckId, accountId, role };
|
|
1072
3228
|
},
|
|
1073
3229
|
deckPreviewTokenCreateVariables(input) {
|
|
1074
3230
|
return { input };
|
|
1075
3231
|
},
|
|
3232
|
+
deckEmbedTokenCreateVariables(input) {
|
|
3233
|
+
return { input };
|
|
3234
|
+
},
|
|
3235
|
+
deckAccessTokenIssuerCreateVariables(input) {
|
|
3236
|
+
return { input };
|
|
3237
|
+
},
|
|
3238
|
+
deckAccessTokenExchangeVariables(input) {
|
|
3239
|
+
return { input };
|
|
3240
|
+
},
|
|
3241
|
+
deckApiApplicationAccessesVariables(deckId, includeRevoked) {
|
|
3242
|
+
return includeRevoked === void 0 ? { deckId } : { deckId, includeRevoked };
|
|
3243
|
+
},
|
|
3244
|
+
myDeckApiApplicationAccessesVariables(applicationId) {
|
|
3245
|
+
return applicationId === void 0 ? {} : { applicationId };
|
|
3246
|
+
},
|
|
3247
|
+
deckApiApplicationAccessGrantVariables(input) {
|
|
3248
|
+
return { input };
|
|
3249
|
+
},
|
|
3250
|
+
deckApiApplicationAccessRevokeVariables(deckId, apiApplicationId) {
|
|
3251
|
+
return { deckId, apiApplicationId };
|
|
3252
|
+
},
|
|
3253
|
+
gameCreateVariables(input) {
|
|
3254
|
+
return { input };
|
|
3255
|
+
},
|
|
3256
|
+
gameUpdateVariables(id, input) {
|
|
3257
|
+
return { id, input };
|
|
3258
|
+
},
|
|
3259
|
+
datasetImportPreviewVariables(input) {
|
|
3260
|
+
return { input };
|
|
3261
|
+
},
|
|
3262
|
+
datasetImportValidateVariables(input) {
|
|
3263
|
+
return { input };
|
|
3264
|
+
},
|
|
3265
|
+
datasetImportFromFileVariables(input) {
|
|
3266
|
+
return { input };
|
|
3267
|
+
},
|
|
3268
|
+
datasetImportFromPayloadVariables(input) {
|
|
3269
|
+
return { input };
|
|
3270
|
+
},
|
|
3271
|
+
datasetImportFromUrlVariables(input) {
|
|
3272
|
+
return { input };
|
|
3273
|
+
},
|
|
3274
|
+
gameImportPreviewVariables(input) {
|
|
3275
|
+
return { input };
|
|
3276
|
+
},
|
|
3277
|
+
gameImportFromFileVariables(input) {
|
|
3278
|
+
return { input };
|
|
3279
|
+
},
|
|
3280
|
+
gameImportFromPayloadVariables(input) {
|
|
3281
|
+
return { input };
|
|
3282
|
+
},
|
|
3283
|
+
gameImportFromUrlVariables(input) {
|
|
3284
|
+
return { input };
|
|
3285
|
+
},
|
|
3286
|
+
datasetRecordsUpsertVariables(input) {
|
|
3287
|
+
return { input };
|
|
3288
|
+
},
|
|
3289
|
+
datasetRecordsDeleteVariables(input) {
|
|
3290
|
+
return { input };
|
|
3291
|
+
},
|
|
3292
|
+
fileUploadRequestVariables(input) {
|
|
3293
|
+
return { input };
|
|
3294
|
+
},
|
|
3295
|
+
datasetExportVariables(input) {
|
|
3296
|
+
return { input };
|
|
3297
|
+
},
|
|
1076
3298
|
// API Key Info
|
|
1077
3299
|
fetchMe() {
|
|
1078
3300
|
return {
|