@carddb/core 0.4.5 → 0.5.0

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/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Core types for CardDB JavaScript clients
3
3
  */
4
4
  type LogLevel = 'debug' | 'info' | 'warn' | 'error';
5
- type ResourceType = 'publishers' | 'games' | 'datasets' | 'records' | 'decks' | 'importFormats' | 'imports' | 'exports' | 'files' | 'scans' | 'scanTemplates';
5
+ type ResourceType = 'publishers' | 'games' | 'datasets' | 'records' | 'decks' | 'rulesets' | 'importFormats' | 'imports' | 'exports' | 'files' | 'scans' | 'scanTemplates';
6
6
  interface Logger {
7
7
  debug(message: string, ...args: unknown[]): void;
8
8
  info(message: string, ...args: unknown[]): void;
@@ -490,6 +490,19 @@ interface Dataset {
490
490
  createdAt: string;
491
491
  updatedAt: string;
492
492
  }
493
+ interface DatasetFilterValue {
494
+ value: string;
495
+ count: number | null;
496
+ }
497
+ interface DatasetFilterValueEdge {
498
+ cursor: string;
499
+ node: DatasetFilterValue;
500
+ }
501
+ interface DatasetFilterValueConnection {
502
+ field: string;
503
+ edges: DatasetFilterValueEdge[];
504
+ pageInfo: PageInfo;
505
+ }
493
506
  type DatasetPurpose = 'DATA' | 'RULES';
494
507
  type DatasetVisibility = 'PRIVATE' | 'PUBLIC';
495
508
  interface DatasetRef {
@@ -1319,6 +1332,134 @@ interface DeckSectionDefinition {
1319
1332
  legalCardTypes: string[];
1320
1333
  metadata: Record<string, unknown>;
1321
1334
  }
1335
+ type RulesetVersionStatus = 'DRAFT' | 'ACTIVE' | 'SUPERSEDED';
1336
+ interface Ruleset {
1337
+ id: string;
1338
+ gameId: string;
1339
+ game: GameRef | null;
1340
+ key: string;
1341
+ name: string;
1342
+ description: string | null;
1343
+ tags: string[];
1344
+ sortOrder: number;
1345
+ currentVersionId: string | null;
1346
+ currentVersion: RulesetVersion | null;
1347
+ archivedAt: string | null;
1348
+ isArchived: boolean;
1349
+ createdAt: string;
1350
+ updatedAt: string;
1351
+ }
1352
+ interface RulesetVersion {
1353
+ id: string;
1354
+ rulesetId: string;
1355
+ versionLabel: string;
1356
+ status: RulesetVersionStatus;
1357
+ rules: Record<string, unknown>;
1358
+ sectionDefinitions: DeckSectionDefinition[];
1359
+ cardDatasetId: string | null;
1360
+ cardDatasetVersionId: string | null;
1361
+ sourceDatasetId: string | null;
1362
+ sourceDatasetVersionId: string | null;
1363
+ sourceDatasetRecordId: string | null;
1364
+ sourceRecordIdentifier: string | null;
1365
+ rulesFingerprint: string | null;
1366
+ effectiveAt: string | null;
1367
+ changelog: string | null;
1368
+ createdByAccountId: string | null;
1369
+ publishedByAccountId: string | null;
1370
+ publishedAt: string | null;
1371
+ supersededAt: string | null;
1372
+ createdAt: string;
1373
+ updatedAt: string;
1374
+ }
1375
+ type RulesetConnection = Connection<Ruleset>;
1376
+ type RulesetVersionConnection = Connection<RulesetVersion>;
1377
+ interface DeckValidationRules {
1378
+ rulesetId: string;
1379
+ rulesetVersionId: string;
1380
+ rulesetKey: string;
1381
+ rulesetVersionLabel: string;
1382
+ rules: Record<string, unknown>;
1383
+ sections: DeckSectionDefinition[];
1384
+ }
1385
+ interface RulesetValidationImpact {
1386
+ rulesetId: string;
1387
+ rulesetVersionId: string;
1388
+ checkedAt: string;
1389
+ affectedDeckCount: number;
1390
+ invalidDeckCount: number;
1391
+ blockerCount: number;
1392
+ warningCount: number;
1393
+ results: RulesetValidationImpactDeck[];
1394
+ }
1395
+ interface RulesetValidationImpactDeck {
1396
+ deckId: string;
1397
+ title: string;
1398
+ slug: string;
1399
+ state: DeckState;
1400
+ hasUnpublishedChanges: boolean;
1401
+ valid: boolean;
1402
+ blockerCount: number;
1403
+ warningCount: number;
1404
+ affectedEntryCount: number;
1405
+ issues: DeckValidationIssue[];
1406
+ }
1407
+ interface RulesetVersionDraftImportPreview {
1408
+ sourceDatasetId: string;
1409
+ sourceDatasetVersionId: string | null;
1410
+ sourceDatasetRecordId: string;
1411
+ sourceRecordIdentifier: string;
1412
+ rules: Record<string, unknown>;
1413
+ sectionDefinitions: DeckSectionDefinition[];
1414
+ rulesFingerprint: string;
1415
+ summary: string;
1416
+ sectionCount: number;
1417
+ copyLimitCount: number;
1418
+ }
1419
+ interface RulesetCreateInput {
1420
+ gameId: string;
1421
+ key: string;
1422
+ name: string;
1423
+ description?: string;
1424
+ tags?: string[];
1425
+ sortOrder?: number;
1426
+ }
1427
+ interface RulesetUpdateInput {
1428
+ name?: string;
1429
+ description?: string;
1430
+ tags?: string[];
1431
+ sortOrder?: number;
1432
+ }
1433
+ interface RulesetVersionDraftCreateInput {
1434
+ versionLabel: string;
1435
+ rules: Record<string, unknown>;
1436
+ cardDatasetId?: string;
1437
+ cardDatasetVersionId?: string;
1438
+ effectiveAt?: string;
1439
+ changelog?: string;
1440
+ }
1441
+ interface RulesetVersionDraftImportFromDatasetRecordInput {
1442
+ versionLabel: string;
1443
+ sourceDatasetId: string;
1444
+ sourceDatasetRecordId: string;
1445
+ sourceDatasetVersionId?: string;
1446
+ cardDatasetId?: string;
1447
+ cardDatasetVersionId?: string;
1448
+ effectiveAt?: string;
1449
+ changelog?: string;
1450
+ }
1451
+ interface RulesetVersionDraftUpdateInput {
1452
+ versionLabel?: string;
1453
+ rules?: Record<string, unknown>;
1454
+ cardDatasetId?: string;
1455
+ cardDatasetVersionId?: string;
1456
+ effectiveAt?: string;
1457
+ changelog?: string;
1458
+ }
1459
+ interface RulesetVersionPublishInput {
1460
+ effectiveAt?: string;
1461
+ changelog?: string;
1462
+ }
1322
1463
  interface DeckTokenIssuerCreateInput {
1323
1464
  label?: string;
1324
1465
  allowedScopes: DeckTokenScope[];
@@ -1995,6 +2136,17 @@ interface DatasetLookupParams {
1995
2136
  gameId?: string;
1996
2137
  datasetKey?: string;
1997
2138
  }
2139
+ interface DatasetFilterValuesParams {
2140
+ id?: string;
2141
+ publisherSlug?: string;
2142
+ gameKey?: string;
2143
+ datasetKey?: string;
2144
+ fields: string[];
2145
+ search?: string;
2146
+ includeCounts?: boolean;
2147
+ first?: number;
2148
+ after?: string;
2149
+ }
1998
2150
  interface ListDatasetRecordsParams {
1999
2151
  datasetId: string;
2000
2152
  filter?: FilterCondition;
@@ -2064,6 +2216,37 @@ interface DeckSectionDefinitionsParams {
2064
2216
  rulesetKey?: string;
2065
2217
  rulesetVersionId?: string;
2066
2218
  }
2219
+ interface ListRulesetsParams {
2220
+ gameId: string;
2221
+ includeArchived?: boolean;
2222
+ first?: number;
2223
+ after?: string;
2224
+ }
2225
+ interface ListPublicRulesetsParams {
2226
+ gameId: string;
2227
+ first?: number;
2228
+ after?: string;
2229
+ }
2230
+ interface RulesetLookupParams {
2231
+ id?: string;
2232
+ gameId?: string;
2233
+ key?: string;
2234
+ }
2235
+ interface ListRulesetVersionsParams {
2236
+ rulesetId: string;
2237
+ status?: RulesetVersionStatus;
2238
+ first?: number;
2239
+ after?: string;
2240
+ }
2241
+ interface RulesetValidationRulesParams {
2242
+ gameId: string;
2243
+ rulesetKey: string;
2244
+ rulesetVersionId?: string;
2245
+ }
2246
+ interface RulesetValidationImpactParams {
2247
+ rulesetVersionId: string;
2248
+ first?: number;
2249
+ }
2067
2250
  interface ViewerDecksParams {
2068
2251
  filter?: ViewerDecksFilterInput;
2069
2252
  first?: number;
@@ -2140,6 +2323,10 @@ declare const QueryBuilder: {
2140
2323
  fetchDatasets(): {
2141
2324
  query: string;
2142
2325
  };
2326
+ fetchDatasetFilterValues(params: DatasetFilterValuesParams): {
2327
+ query: string;
2328
+ variables: Record<string, unknown>;
2329
+ };
2143
2330
  listDatasets(params: ListDatasetsParams): {
2144
2331
  query: string;
2145
2332
  variables: Record<string, unknown>;
@@ -2306,6 +2493,59 @@ declare const QueryBuilder: {
2306
2493
  exportJobRefreshUrl(): {
2307
2494
  query: string;
2308
2495
  };
2496
+ rulesets(params: ListRulesetsParams): {
2497
+ query: string;
2498
+ variables: Record<string, unknown>;
2499
+ };
2500
+ publicRulesets(params: ListPublicRulesetsParams): {
2501
+ query: string;
2502
+ variables: Record<string, unknown>;
2503
+ };
2504
+ ruleset(params: RulesetLookupParams): {
2505
+ query: string;
2506
+ variables: Record<string, unknown>;
2507
+ };
2508
+ rulesetVersions(params: ListRulesetVersionsParams): {
2509
+ query: string;
2510
+ variables: Record<string, unknown>;
2511
+ };
2512
+ rulesetVersion(): {
2513
+ query: string;
2514
+ };
2515
+ rulesetValidationRules(): {
2516
+ query: string;
2517
+ };
2518
+ deckValidationRules(): {
2519
+ query: string;
2520
+ };
2521
+ rulesetVersionDraftImportPreview(): {
2522
+ query: string;
2523
+ };
2524
+ rulesetValidationImpact(params: RulesetValidationImpactParams): {
2525
+ query: string;
2526
+ variables: Record<string, unknown>;
2527
+ };
2528
+ createRuleset(): {
2529
+ query: string;
2530
+ };
2531
+ updateRuleset(): {
2532
+ query: string;
2533
+ };
2534
+ createRulesetVersionDraft(): {
2535
+ query: string;
2536
+ };
2537
+ importRulesetVersionDraftFromDatasetRecord(): {
2538
+ query: string;
2539
+ };
2540
+ updateRulesetVersionDraft(): {
2541
+ query: string;
2542
+ };
2543
+ publishRulesetVersion(): {
2544
+ query: string;
2545
+ };
2546
+ activateRulesetVersion(): {
2547
+ query: string;
2548
+ };
2309
2549
  listMyDecks(params?: ListDecksParams): {
2310
2550
  query: string;
2311
2551
  variables: Record<string, unknown>;
@@ -2481,6 +2721,14 @@ declare const QueryBuilder: {
2481
2721
  revokeDeckApiApplicationAccess(): {
2482
2722
  query: string;
2483
2723
  };
2724
+ rulesetValidationRulesVariables(gameId: string, rulesetKey: string, rulesetVersionId?: string): Record<string, unknown>;
2725
+ rulesetVersionDraftImportPreviewVariables(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Record<string, unknown>;
2726
+ rulesetCreateVariables(input: RulesetCreateInput): Record<string, unknown>;
2727
+ rulesetUpdateVariables(id: string, input: RulesetUpdateInput): Record<string, unknown>;
2728
+ rulesetVersionDraftCreateVariables(rulesetId: string, input: RulesetVersionDraftCreateInput): Record<string, unknown>;
2729
+ rulesetVersionDraftImportFromDatasetRecordVariables(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Record<string, unknown>;
2730
+ rulesetVersionDraftUpdateVariables(id: string, input: RulesetVersionDraftUpdateInput): Record<string, unknown>;
2731
+ rulesetVersionPublishVariables(id: string, input?: RulesetVersionPublishInput): Record<string, unknown>;
2484
2732
  deckCreateVariables(input: DeckCreateInput): Record<string, unknown>;
2485
2733
  deckUpdateVariables(id: string, input: DeckUpdateInput): Record<string, unknown>;
2486
2734
  deckEntryAddVariables(input: DeckEntryAddInput): Record<string, unknown>;
@@ -2672,4 +2920,4 @@ declare class Collection<T> implements AsyncIterable<T> {
2672
2920
  each(): AsyncIterable<T>;
2673
2921
  }
2674
2922
 
2675
- export { type APIAccount, type APIApplication, type APIKeyInfo, type AppDecksFilterInput, type AppDecksParams, AuthenticationError, type BulkCreateResult, type BulkImportResult, type BulkInsertMode, type BulkRecordError, type Cache, type CardDBConfig, CardDBError, Collection, type ConfirmScanUploadInput, type Connection, ConnectionError, type CreateScanJobInput, type CreateScanUploadSessionInput, type CsvOptions, type Dataset, type DatasetExportInput, type DatasetImportFromFileInput, type DatasetImportFromPayloadInput, type DatasetImportFromUrlInput, type DatasetImportPreview, type DatasetImportPreviewInput, type DatasetImportPreviewResult, type DatasetImportRunInput, type DatasetImportValidateInput, type DatasetPurpose, type DatasetRecord, type DatasetRecordDeleteJob, type DatasetRecordDeleteJobConnection, type DatasetRecordDeleteJobResult, type DatasetRecordDeleteJobStatus, type DatasetRecordDeleteResultStatus, type DatasetRecordDeleteTargetType, type DatasetRecordsDeleteInput, type DatasetRecordsUpsertInput, type DatasetRecordsUpsertPayload, type DatasetRef, type DatasetSchema, type DatasetVisibility, type Deck, type DeckAPIApplicationAccess, type DeckAPIApplicationAccessGrantInput, type DeckAPIApplicationAccessGrantSource, type DeckAPIApplicationAccessRole, type DeckAccessApplication, type DeckAccessMode, type DeckAppAccessRetention, type DeckClaimInput, type DeckCollaborator, type DeckCollaboratorRole, type DeckCopyInput, type DeckCopyPayload, type DeckCreateInput, type DeckDiff, type DeckDiscoverability, type DeckEntriesReplaceInput, type DeckEntriesReplacePayload, type DeckEntry, type DeckEntryAddInput, type DeckEntryInput, type DeckEntryMutationPayload, type DeckEntryReorderInput, type DeckEntryReorderItemInput, type DeckEntryReorderPayload, type DeckEntryUpdateInput, type DeckEnvironment, type DeckExportFormat, type DeckExportPayload, type DeckHydrateEntriesInput, type DeckHydrateEntriesPayload, type DeckImportAmbiguousEntry, type DeckImportCandidate, type DeckImportEntry, type DeckImportFormat, type DeckImportFormatCreateInput, type DeckImportFormatDefinition, type DeckImportFormatDefinitionConnection, type DeckImportFormatDetection, type DeckImportFormatTestInput, type DeckImportFormatTestPayload, type DeckImportFormatUpdateInput, type DeckImportInput, type DeckImportIssue, type DeckImportPayload, type DeckImportUnmatchedEntry, type DeckOwnerType, type DeckOwnershipTransferPayload, type DeckPublishInput, type DeckPublishPayload, type DeckPublishedVersionSelector, type DeckReadState, type DeckRemoveInvalidEntriesInput, type DeckRepresentation, type DeckSectionDefinition, type DeckSectionDefinitionsParams, type DeckState, type DeckToken, type DeckTokenExchangeInput, type DeckTokenExchangePayload, type DeckTokenIssuer, type DeckTokenIssuerCreateInput, type DeckTokenIssuerSigningKeyInput, type DeckTokenScope, type DeckTokenSigningAlgorithm, type DeckTransferOwnershipInput, type DeckUpdateInput, type DeckUpsertByExternalRefInput, type DeckUpsertByExternalRefPayload, type DeckValidateInput, type DeckValidatedAgainst, type DeckValidation, type DeckValidationAffectedEntry, type DeckValidationIssue, type DeckValidationSeverity, type DeckVersion, type DeckVersionConnection, type DeckVisibility, type Edge, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobStatus, type FieldInfo, type FieldMapping, type FieldMappingOverrideInput, type FieldMappingStatus, type FieldType, type File, type FileInfo, type FileStatus, type FileUploadInput, FilterBuilder, type FilterBuilderInterface, type FilterCondition, type FilterInput, type FilterOperatorValue, type FilterValue, type Game, type GameCreateInput, type GameImportDatasetStatus, type GameImportFromFileInput, type GameImportFromPayloadInput, type GameImportFromUrlInput, type GameImportJob, type GameImportJobConnection, type GameImportPreview, type GameImportPreviewInput, type GameImportRunInput, type GameRef, type GameScanRegion, type GameUpdateInput, type GameVisibility, GraphQLError, type GraphQLErrorInfo, type HydrateDeckEntryInput, type HydratedDeckEntry, type ImportFormat, type ImportJob, type ImportJobAsset, type ImportJobAssetInput, type ImportJobConnection, type ImportJobLog, type ImportJobLogConnection, type ImportJobStatus, type ImportLogLevel, type ImportMode, type ImportOptions, type ImportStats, type ImportValidationError, type ImportWarning, type ImportWarningSeverity, type InferredChildField, type LinkFieldInfo, LinkResolutionError, type LinkResolutionFailure, type ListDeckImportFormatsParams, type ListDeckVersionsParams, type ListDecksParams, type LogLevel, type Logger, type NextPageLoader, NotFoundError, type ObjectField, type OnConflict, type PageInfo, type PresignedUpload, type PreviewScanTemplateInput, type PublicDecksFilterInput, type PublicDecksParams, type Publisher, type PublisherRef, type PublisherStatus, QueryBuilder, RateLimitError, type RateLimitInfo, type ResolveScanTemplateInput, type ResolvedLink, type ResourceType, RestrictedError, type SaveScanTemplateInput, type ScanBestMatch, type ScanCandidate, type ScanFeatureVersionMetrics, type ScanFeedbackMetrics, type ScanFeedbackPayload, type ScanJob, type ScanJobError, type ScanJobMetrics, type ScanJobPayload, type ScanJobStatus, type ScanMetrics, type ScanMetricsInput, type ScanStageMetrics, type ScanTemplate, type ScanTemplateList, type ScanTemplatePayload, type ScanTemplatePreview, type ScanTemplateRegion, type ScanTemplateRegionInput, type ScanTemplateRegionPreview, type ScanTemplateResolution, type ScanTemplateWarning, type ScanTemplatesInput, type ScanWebhookState, type SearchDatasetsParams, type SearchGamesParams, type SearchPublishersParams, type SearchRecordsParams, ServerError, type SubmitScanFeedbackInput, type TCGPlayerPrice, type TCGPlayerPricing, TimeoutError, type UploadPurpose, ValidationError, type ViewerDecksFilterInput, type ViewerDecksParams, contains, eq, gt, gte, ilike, isNotNull, isNull, like, lt, lte, neq, notWithin, resolveFilter, within };
2923
+ export { type APIAccount, type APIApplication, type APIKeyInfo, type AppDecksFilterInput, type AppDecksParams, AuthenticationError, type BulkCreateResult, type BulkImportResult, type BulkInsertMode, type BulkRecordError, type Cache, type CardDBConfig, CardDBError, Collection, type ConfirmScanUploadInput, type Connection, ConnectionError, type CreateScanJobInput, type CreateScanUploadSessionInput, type CsvOptions, type Dataset, type DatasetExportInput, type DatasetFilterValue, type DatasetFilterValueConnection, type DatasetFilterValueEdge, type DatasetImportFromFileInput, type DatasetImportFromPayloadInput, type DatasetImportFromUrlInput, type DatasetImportPreview, type DatasetImportPreviewInput, type DatasetImportPreviewResult, type DatasetImportRunInput, type DatasetImportValidateInput, type DatasetPurpose, type DatasetRecord, type DatasetRecordDeleteJob, type DatasetRecordDeleteJobConnection, type DatasetRecordDeleteJobResult, type DatasetRecordDeleteJobStatus, type DatasetRecordDeleteResultStatus, type DatasetRecordDeleteTargetType, type DatasetRecordsDeleteInput, type DatasetRecordsUpsertInput, type DatasetRecordsUpsertPayload, type DatasetRef, type DatasetSchema, type DatasetVisibility, type Deck, type DeckAPIApplicationAccess, type DeckAPIApplicationAccessGrantInput, type DeckAPIApplicationAccessGrantSource, type DeckAPIApplicationAccessRole, type DeckAccessApplication, type DeckAccessMode, type DeckAppAccessRetention, type DeckClaimInput, type DeckCollaborator, type DeckCollaboratorRole, type DeckCopyInput, type DeckCopyPayload, type DeckCreateInput, type DeckDiff, type DeckDiscoverability, type DeckEntriesReplaceInput, type DeckEntriesReplacePayload, type DeckEntry, type DeckEntryAddInput, type DeckEntryInput, type DeckEntryMutationPayload, type DeckEntryReorderInput, type DeckEntryReorderItemInput, type DeckEntryReorderPayload, type DeckEntryUpdateInput, type DeckEnvironment, type DeckExportFormat, type DeckExportPayload, type DeckHydrateEntriesInput, type DeckHydrateEntriesPayload, type DeckImportAmbiguousEntry, type DeckImportCandidate, type DeckImportEntry, type DeckImportFormat, type DeckImportFormatCreateInput, type DeckImportFormatDefinition, type DeckImportFormatDefinitionConnection, type DeckImportFormatDetection, type DeckImportFormatTestInput, type DeckImportFormatTestPayload, type DeckImportFormatUpdateInput, type DeckImportInput, type DeckImportIssue, type DeckImportPayload, type DeckImportUnmatchedEntry, type DeckOwnerType, type DeckOwnershipTransferPayload, type DeckPublishInput, type DeckPublishPayload, type DeckPublishedVersionSelector, type DeckReadState, type DeckRemoveInvalidEntriesInput, type DeckRepresentation, type DeckSectionDefinition, type DeckSectionDefinitionsParams, type DeckState, type DeckToken, type DeckTokenExchangeInput, type DeckTokenExchangePayload, type DeckTokenIssuer, type DeckTokenIssuerCreateInput, type DeckTokenIssuerSigningKeyInput, type DeckTokenScope, type DeckTokenSigningAlgorithm, type DeckTransferOwnershipInput, type DeckUpdateInput, type DeckUpsertByExternalRefInput, type DeckUpsertByExternalRefPayload, type DeckValidateInput, type DeckValidatedAgainst, type DeckValidation, type DeckValidationAffectedEntry, type DeckValidationIssue, type DeckValidationRules, type DeckValidationSeverity, type DeckVersion, type DeckVersionConnection, type DeckVisibility, type Edge, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobStatus, type FieldInfo, type FieldMapping, type FieldMappingOverrideInput, type FieldMappingStatus, type FieldType, type File, type FileInfo, type FileStatus, type FileUploadInput, FilterBuilder, type FilterBuilderInterface, type FilterCondition, type FilterInput, type FilterOperatorValue, type FilterValue, type Game, type GameCreateInput, type GameImportDatasetStatus, type GameImportFromFileInput, type GameImportFromPayloadInput, type GameImportFromUrlInput, type GameImportJob, type GameImportJobConnection, type GameImportPreview, type GameImportPreviewInput, type GameImportRunInput, type GameRef, type GameScanRegion, type GameUpdateInput, type GameVisibility, GraphQLError, type GraphQLErrorInfo, type HydrateDeckEntryInput, type HydratedDeckEntry, type ImportFormat, type ImportJob, type ImportJobAsset, type ImportJobAssetInput, type ImportJobConnection, type ImportJobLog, type ImportJobLogConnection, type ImportJobStatus, type ImportLogLevel, type ImportMode, type ImportOptions, type ImportStats, type ImportValidationError, type ImportWarning, type ImportWarningSeverity, type InferredChildField, type LinkFieldInfo, LinkResolutionError, type LinkResolutionFailure, type ListDeckImportFormatsParams, type ListDeckVersionsParams, type ListDecksParams, type ListPublicRulesetsParams, type ListRulesetVersionsParams, type ListRulesetsParams, type LogLevel, type Logger, type NextPageLoader, NotFoundError, type ObjectField, type OnConflict, type PageInfo, type PresignedUpload, type PreviewScanTemplateInput, type PublicDecksFilterInput, type PublicDecksParams, type Publisher, type PublisherRef, type PublisherStatus, QueryBuilder, RateLimitError, type RateLimitInfo, type ResolveScanTemplateInput, type ResolvedLink, type ResourceType, RestrictedError, type Ruleset, type RulesetConnection, type RulesetCreateInput, type RulesetLookupParams, type RulesetUpdateInput, type RulesetValidationImpact, type RulesetValidationImpactDeck, type RulesetValidationImpactParams, type RulesetValidationRulesParams, type RulesetVersion, type RulesetVersionConnection, type RulesetVersionDraftCreateInput, type RulesetVersionDraftImportFromDatasetRecordInput, type RulesetVersionDraftImportPreview, type RulesetVersionDraftUpdateInput, type RulesetVersionPublishInput, type RulesetVersionStatus, type SaveScanTemplateInput, type ScanBestMatch, type ScanCandidate, type ScanFeatureVersionMetrics, type ScanFeedbackMetrics, type ScanFeedbackPayload, type ScanJob, type ScanJobError, type ScanJobMetrics, type ScanJobPayload, type ScanJobStatus, type ScanMetrics, type ScanMetricsInput, type ScanStageMetrics, type ScanTemplate, type ScanTemplateList, type ScanTemplatePayload, type ScanTemplatePreview, type ScanTemplateRegion, type ScanTemplateRegionInput, type ScanTemplateRegionPreview, type ScanTemplateResolution, type ScanTemplateWarning, type ScanTemplatesInput, type ScanWebhookState, type SearchDatasetsParams, type SearchGamesParams, type SearchPublishersParams, type SearchRecordsParams, ServerError, type SubmitScanFeedbackInput, type TCGPlayerPrice, type TCGPlayerPricing, TimeoutError, type UploadPurpose, ValidationError, type ViewerDecksFilterInput, type ViewerDecksParams, contains, eq, gt, gte, ilike, isNotNull, isNull, like, lt, lte, neq, notWithin, resolveFilter, within };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Core types for CardDB JavaScript clients
3
3
  */
4
4
  type LogLevel = 'debug' | 'info' | 'warn' | 'error';
5
- type ResourceType = 'publishers' | 'games' | 'datasets' | 'records' | 'decks' | 'importFormats' | 'imports' | 'exports' | 'files' | 'scans' | 'scanTemplates';
5
+ type ResourceType = 'publishers' | 'games' | 'datasets' | 'records' | 'decks' | 'rulesets' | 'importFormats' | 'imports' | 'exports' | 'files' | 'scans' | 'scanTemplates';
6
6
  interface Logger {
7
7
  debug(message: string, ...args: unknown[]): void;
8
8
  info(message: string, ...args: unknown[]): void;
@@ -490,6 +490,19 @@ interface Dataset {
490
490
  createdAt: string;
491
491
  updatedAt: string;
492
492
  }
493
+ interface DatasetFilterValue {
494
+ value: string;
495
+ count: number | null;
496
+ }
497
+ interface DatasetFilterValueEdge {
498
+ cursor: string;
499
+ node: DatasetFilterValue;
500
+ }
501
+ interface DatasetFilterValueConnection {
502
+ field: string;
503
+ edges: DatasetFilterValueEdge[];
504
+ pageInfo: PageInfo;
505
+ }
493
506
  type DatasetPurpose = 'DATA' | 'RULES';
494
507
  type DatasetVisibility = 'PRIVATE' | 'PUBLIC';
495
508
  interface DatasetRef {
@@ -1319,6 +1332,134 @@ interface DeckSectionDefinition {
1319
1332
  legalCardTypes: string[];
1320
1333
  metadata: Record<string, unknown>;
1321
1334
  }
1335
+ type RulesetVersionStatus = 'DRAFT' | 'ACTIVE' | 'SUPERSEDED';
1336
+ interface Ruleset {
1337
+ id: string;
1338
+ gameId: string;
1339
+ game: GameRef | null;
1340
+ key: string;
1341
+ name: string;
1342
+ description: string | null;
1343
+ tags: string[];
1344
+ sortOrder: number;
1345
+ currentVersionId: string | null;
1346
+ currentVersion: RulesetVersion | null;
1347
+ archivedAt: string | null;
1348
+ isArchived: boolean;
1349
+ createdAt: string;
1350
+ updatedAt: string;
1351
+ }
1352
+ interface RulesetVersion {
1353
+ id: string;
1354
+ rulesetId: string;
1355
+ versionLabel: string;
1356
+ status: RulesetVersionStatus;
1357
+ rules: Record<string, unknown>;
1358
+ sectionDefinitions: DeckSectionDefinition[];
1359
+ cardDatasetId: string | null;
1360
+ cardDatasetVersionId: string | null;
1361
+ sourceDatasetId: string | null;
1362
+ sourceDatasetVersionId: string | null;
1363
+ sourceDatasetRecordId: string | null;
1364
+ sourceRecordIdentifier: string | null;
1365
+ rulesFingerprint: string | null;
1366
+ effectiveAt: string | null;
1367
+ changelog: string | null;
1368
+ createdByAccountId: string | null;
1369
+ publishedByAccountId: string | null;
1370
+ publishedAt: string | null;
1371
+ supersededAt: string | null;
1372
+ createdAt: string;
1373
+ updatedAt: string;
1374
+ }
1375
+ type RulesetConnection = Connection<Ruleset>;
1376
+ type RulesetVersionConnection = Connection<RulesetVersion>;
1377
+ interface DeckValidationRules {
1378
+ rulesetId: string;
1379
+ rulesetVersionId: string;
1380
+ rulesetKey: string;
1381
+ rulesetVersionLabel: string;
1382
+ rules: Record<string, unknown>;
1383
+ sections: DeckSectionDefinition[];
1384
+ }
1385
+ interface RulesetValidationImpact {
1386
+ rulesetId: string;
1387
+ rulesetVersionId: string;
1388
+ checkedAt: string;
1389
+ affectedDeckCount: number;
1390
+ invalidDeckCount: number;
1391
+ blockerCount: number;
1392
+ warningCount: number;
1393
+ results: RulesetValidationImpactDeck[];
1394
+ }
1395
+ interface RulesetValidationImpactDeck {
1396
+ deckId: string;
1397
+ title: string;
1398
+ slug: string;
1399
+ state: DeckState;
1400
+ hasUnpublishedChanges: boolean;
1401
+ valid: boolean;
1402
+ blockerCount: number;
1403
+ warningCount: number;
1404
+ affectedEntryCount: number;
1405
+ issues: DeckValidationIssue[];
1406
+ }
1407
+ interface RulesetVersionDraftImportPreview {
1408
+ sourceDatasetId: string;
1409
+ sourceDatasetVersionId: string | null;
1410
+ sourceDatasetRecordId: string;
1411
+ sourceRecordIdentifier: string;
1412
+ rules: Record<string, unknown>;
1413
+ sectionDefinitions: DeckSectionDefinition[];
1414
+ rulesFingerprint: string;
1415
+ summary: string;
1416
+ sectionCount: number;
1417
+ copyLimitCount: number;
1418
+ }
1419
+ interface RulesetCreateInput {
1420
+ gameId: string;
1421
+ key: string;
1422
+ name: string;
1423
+ description?: string;
1424
+ tags?: string[];
1425
+ sortOrder?: number;
1426
+ }
1427
+ interface RulesetUpdateInput {
1428
+ name?: string;
1429
+ description?: string;
1430
+ tags?: string[];
1431
+ sortOrder?: number;
1432
+ }
1433
+ interface RulesetVersionDraftCreateInput {
1434
+ versionLabel: string;
1435
+ rules: Record<string, unknown>;
1436
+ cardDatasetId?: string;
1437
+ cardDatasetVersionId?: string;
1438
+ effectiveAt?: string;
1439
+ changelog?: string;
1440
+ }
1441
+ interface RulesetVersionDraftImportFromDatasetRecordInput {
1442
+ versionLabel: string;
1443
+ sourceDatasetId: string;
1444
+ sourceDatasetRecordId: string;
1445
+ sourceDatasetVersionId?: string;
1446
+ cardDatasetId?: string;
1447
+ cardDatasetVersionId?: string;
1448
+ effectiveAt?: string;
1449
+ changelog?: string;
1450
+ }
1451
+ interface RulesetVersionDraftUpdateInput {
1452
+ versionLabel?: string;
1453
+ rules?: Record<string, unknown>;
1454
+ cardDatasetId?: string;
1455
+ cardDatasetVersionId?: string;
1456
+ effectiveAt?: string;
1457
+ changelog?: string;
1458
+ }
1459
+ interface RulesetVersionPublishInput {
1460
+ effectiveAt?: string;
1461
+ changelog?: string;
1462
+ }
1322
1463
  interface DeckTokenIssuerCreateInput {
1323
1464
  label?: string;
1324
1465
  allowedScopes: DeckTokenScope[];
@@ -1995,6 +2136,17 @@ interface DatasetLookupParams {
1995
2136
  gameId?: string;
1996
2137
  datasetKey?: string;
1997
2138
  }
2139
+ interface DatasetFilterValuesParams {
2140
+ id?: string;
2141
+ publisherSlug?: string;
2142
+ gameKey?: string;
2143
+ datasetKey?: string;
2144
+ fields: string[];
2145
+ search?: string;
2146
+ includeCounts?: boolean;
2147
+ first?: number;
2148
+ after?: string;
2149
+ }
1998
2150
  interface ListDatasetRecordsParams {
1999
2151
  datasetId: string;
2000
2152
  filter?: FilterCondition;
@@ -2064,6 +2216,37 @@ interface DeckSectionDefinitionsParams {
2064
2216
  rulesetKey?: string;
2065
2217
  rulesetVersionId?: string;
2066
2218
  }
2219
+ interface ListRulesetsParams {
2220
+ gameId: string;
2221
+ includeArchived?: boolean;
2222
+ first?: number;
2223
+ after?: string;
2224
+ }
2225
+ interface ListPublicRulesetsParams {
2226
+ gameId: string;
2227
+ first?: number;
2228
+ after?: string;
2229
+ }
2230
+ interface RulesetLookupParams {
2231
+ id?: string;
2232
+ gameId?: string;
2233
+ key?: string;
2234
+ }
2235
+ interface ListRulesetVersionsParams {
2236
+ rulesetId: string;
2237
+ status?: RulesetVersionStatus;
2238
+ first?: number;
2239
+ after?: string;
2240
+ }
2241
+ interface RulesetValidationRulesParams {
2242
+ gameId: string;
2243
+ rulesetKey: string;
2244
+ rulesetVersionId?: string;
2245
+ }
2246
+ interface RulesetValidationImpactParams {
2247
+ rulesetVersionId: string;
2248
+ first?: number;
2249
+ }
2067
2250
  interface ViewerDecksParams {
2068
2251
  filter?: ViewerDecksFilterInput;
2069
2252
  first?: number;
@@ -2140,6 +2323,10 @@ declare const QueryBuilder: {
2140
2323
  fetchDatasets(): {
2141
2324
  query: string;
2142
2325
  };
2326
+ fetchDatasetFilterValues(params: DatasetFilterValuesParams): {
2327
+ query: string;
2328
+ variables: Record<string, unknown>;
2329
+ };
2143
2330
  listDatasets(params: ListDatasetsParams): {
2144
2331
  query: string;
2145
2332
  variables: Record<string, unknown>;
@@ -2306,6 +2493,59 @@ declare const QueryBuilder: {
2306
2493
  exportJobRefreshUrl(): {
2307
2494
  query: string;
2308
2495
  };
2496
+ rulesets(params: ListRulesetsParams): {
2497
+ query: string;
2498
+ variables: Record<string, unknown>;
2499
+ };
2500
+ publicRulesets(params: ListPublicRulesetsParams): {
2501
+ query: string;
2502
+ variables: Record<string, unknown>;
2503
+ };
2504
+ ruleset(params: RulesetLookupParams): {
2505
+ query: string;
2506
+ variables: Record<string, unknown>;
2507
+ };
2508
+ rulesetVersions(params: ListRulesetVersionsParams): {
2509
+ query: string;
2510
+ variables: Record<string, unknown>;
2511
+ };
2512
+ rulesetVersion(): {
2513
+ query: string;
2514
+ };
2515
+ rulesetValidationRules(): {
2516
+ query: string;
2517
+ };
2518
+ deckValidationRules(): {
2519
+ query: string;
2520
+ };
2521
+ rulesetVersionDraftImportPreview(): {
2522
+ query: string;
2523
+ };
2524
+ rulesetValidationImpact(params: RulesetValidationImpactParams): {
2525
+ query: string;
2526
+ variables: Record<string, unknown>;
2527
+ };
2528
+ createRuleset(): {
2529
+ query: string;
2530
+ };
2531
+ updateRuleset(): {
2532
+ query: string;
2533
+ };
2534
+ createRulesetVersionDraft(): {
2535
+ query: string;
2536
+ };
2537
+ importRulesetVersionDraftFromDatasetRecord(): {
2538
+ query: string;
2539
+ };
2540
+ updateRulesetVersionDraft(): {
2541
+ query: string;
2542
+ };
2543
+ publishRulesetVersion(): {
2544
+ query: string;
2545
+ };
2546
+ activateRulesetVersion(): {
2547
+ query: string;
2548
+ };
2309
2549
  listMyDecks(params?: ListDecksParams): {
2310
2550
  query: string;
2311
2551
  variables: Record<string, unknown>;
@@ -2481,6 +2721,14 @@ declare const QueryBuilder: {
2481
2721
  revokeDeckApiApplicationAccess(): {
2482
2722
  query: string;
2483
2723
  };
2724
+ rulesetValidationRulesVariables(gameId: string, rulesetKey: string, rulesetVersionId?: string): Record<string, unknown>;
2725
+ rulesetVersionDraftImportPreviewVariables(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Record<string, unknown>;
2726
+ rulesetCreateVariables(input: RulesetCreateInput): Record<string, unknown>;
2727
+ rulesetUpdateVariables(id: string, input: RulesetUpdateInput): Record<string, unknown>;
2728
+ rulesetVersionDraftCreateVariables(rulesetId: string, input: RulesetVersionDraftCreateInput): Record<string, unknown>;
2729
+ rulesetVersionDraftImportFromDatasetRecordVariables(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Record<string, unknown>;
2730
+ rulesetVersionDraftUpdateVariables(id: string, input: RulesetVersionDraftUpdateInput): Record<string, unknown>;
2731
+ rulesetVersionPublishVariables(id: string, input?: RulesetVersionPublishInput): Record<string, unknown>;
2484
2732
  deckCreateVariables(input: DeckCreateInput): Record<string, unknown>;
2485
2733
  deckUpdateVariables(id: string, input: DeckUpdateInput): Record<string, unknown>;
2486
2734
  deckEntryAddVariables(input: DeckEntryAddInput): Record<string, unknown>;
@@ -2672,4 +2920,4 @@ declare class Collection<T> implements AsyncIterable<T> {
2672
2920
  each(): AsyncIterable<T>;
2673
2921
  }
2674
2922
 
2675
- export { type APIAccount, type APIApplication, type APIKeyInfo, type AppDecksFilterInput, type AppDecksParams, AuthenticationError, type BulkCreateResult, type BulkImportResult, type BulkInsertMode, type BulkRecordError, type Cache, type CardDBConfig, CardDBError, Collection, type ConfirmScanUploadInput, type Connection, ConnectionError, type CreateScanJobInput, type CreateScanUploadSessionInput, type CsvOptions, type Dataset, type DatasetExportInput, type DatasetImportFromFileInput, type DatasetImportFromPayloadInput, type DatasetImportFromUrlInput, type DatasetImportPreview, type DatasetImportPreviewInput, type DatasetImportPreviewResult, type DatasetImportRunInput, type DatasetImportValidateInput, type DatasetPurpose, type DatasetRecord, type DatasetRecordDeleteJob, type DatasetRecordDeleteJobConnection, type DatasetRecordDeleteJobResult, type DatasetRecordDeleteJobStatus, type DatasetRecordDeleteResultStatus, type DatasetRecordDeleteTargetType, type DatasetRecordsDeleteInput, type DatasetRecordsUpsertInput, type DatasetRecordsUpsertPayload, type DatasetRef, type DatasetSchema, type DatasetVisibility, type Deck, type DeckAPIApplicationAccess, type DeckAPIApplicationAccessGrantInput, type DeckAPIApplicationAccessGrantSource, type DeckAPIApplicationAccessRole, type DeckAccessApplication, type DeckAccessMode, type DeckAppAccessRetention, type DeckClaimInput, type DeckCollaborator, type DeckCollaboratorRole, type DeckCopyInput, type DeckCopyPayload, type DeckCreateInput, type DeckDiff, type DeckDiscoverability, type DeckEntriesReplaceInput, type DeckEntriesReplacePayload, type DeckEntry, type DeckEntryAddInput, type DeckEntryInput, type DeckEntryMutationPayload, type DeckEntryReorderInput, type DeckEntryReorderItemInput, type DeckEntryReorderPayload, type DeckEntryUpdateInput, type DeckEnvironment, type DeckExportFormat, type DeckExportPayload, type DeckHydrateEntriesInput, type DeckHydrateEntriesPayload, type DeckImportAmbiguousEntry, type DeckImportCandidate, type DeckImportEntry, type DeckImportFormat, type DeckImportFormatCreateInput, type DeckImportFormatDefinition, type DeckImportFormatDefinitionConnection, type DeckImportFormatDetection, type DeckImportFormatTestInput, type DeckImportFormatTestPayload, type DeckImportFormatUpdateInput, type DeckImportInput, type DeckImportIssue, type DeckImportPayload, type DeckImportUnmatchedEntry, type DeckOwnerType, type DeckOwnershipTransferPayload, type DeckPublishInput, type DeckPublishPayload, type DeckPublishedVersionSelector, type DeckReadState, type DeckRemoveInvalidEntriesInput, type DeckRepresentation, type DeckSectionDefinition, type DeckSectionDefinitionsParams, type DeckState, type DeckToken, type DeckTokenExchangeInput, type DeckTokenExchangePayload, type DeckTokenIssuer, type DeckTokenIssuerCreateInput, type DeckTokenIssuerSigningKeyInput, type DeckTokenScope, type DeckTokenSigningAlgorithm, type DeckTransferOwnershipInput, type DeckUpdateInput, type DeckUpsertByExternalRefInput, type DeckUpsertByExternalRefPayload, type DeckValidateInput, type DeckValidatedAgainst, type DeckValidation, type DeckValidationAffectedEntry, type DeckValidationIssue, type DeckValidationSeverity, type DeckVersion, type DeckVersionConnection, type DeckVisibility, type Edge, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobStatus, type FieldInfo, type FieldMapping, type FieldMappingOverrideInput, type FieldMappingStatus, type FieldType, type File, type FileInfo, type FileStatus, type FileUploadInput, FilterBuilder, type FilterBuilderInterface, type FilterCondition, type FilterInput, type FilterOperatorValue, type FilterValue, type Game, type GameCreateInput, type GameImportDatasetStatus, type GameImportFromFileInput, type GameImportFromPayloadInput, type GameImportFromUrlInput, type GameImportJob, type GameImportJobConnection, type GameImportPreview, type GameImportPreviewInput, type GameImportRunInput, type GameRef, type GameScanRegion, type GameUpdateInput, type GameVisibility, GraphQLError, type GraphQLErrorInfo, type HydrateDeckEntryInput, type HydratedDeckEntry, type ImportFormat, type ImportJob, type ImportJobAsset, type ImportJobAssetInput, type ImportJobConnection, type ImportJobLog, type ImportJobLogConnection, type ImportJobStatus, type ImportLogLevel, type ImportMode, type ImportOptions, type ImportStats, type ImportValidationError, type ImportWarning, type ImportWarningSeverity, type InferredChildField, type LinkFieldInfo, LinkResolutionError, type LinkResolutionFailure, type ListDeckImportFormatsParams, type ListDeckVersionsParams, type ListDecksParams, type LogLevel, type Logger, type NextPageLoader, NotFoundError, type ObjectField, type OnConflict, type PageInfo, type PresignedUpload, type PreviewScanTemplateInput, type PublicDecksFilterInput, type PublicDecksParams, type Publisher, type PublisherRef, type PublisherStatus, QueryBuilder, RateLimitError, type RateLimitInfo, type ResolveScanTemplateInput, type ResolvedLink, type ResourceType, RestrictedError, type SaveScanTemplateInput, type ScanBestMatch, type ScanCandidate, type ScanFeatureVersionMetrics, type ScanFeedbackMetrics, type ScanFeedbackPayload, type ScanJob, type ScanJobError, type ScanJobMetrics, type ScanJobPayload, type ScanJobStatus, type ScanMetrics, type ScanMetricsInput, type ScanStageMetrics, type ScanTemplate, type ScanTemplateList, type ScanTemplatePayload, type ScanTemplatePreview, type ScanTemplateRegion, type ScanTemplateRegionInput, type ScanTemplateRegionPreview, type ScanTemplateResolution, type ScanTemplateWarning, type ScanTemplatesInput, type ScanWebhookState, type SearchDatasetsParams, type SearchGamesParams, type SearchPublishersParams, type SearchRecordsParams, ServerError, type SubmitScanFeedbackInput, type TCGPlayerPrice, type TCGPlayerPricing, TimeoutError, type UploadPurpose, ValidationError, type ViewerDecksFilterInput, type ViewerDecksParams, contains, eq, gt, gte, ilike, isNotNull, isNull, like, lt, lte, neq, notWithin, resolveFilter, within };
2923
+ export { type APIAccount, type APIApplication, type APIKeyInfo, type AppDecksFilterInput, type AppDecksParams, AuthenticationError, type BulkCreateResult, type BulkImportResult, type BulkInsertMode, type BulkRecordError, type Cache, type CardDBConfig, CardDBError, Collection, type ConfirmScanUploadInput, type Connection, ConnectionError, type CreateScanJobInput, type CreateScanUploadSessionInput, type CsvOptions, type Dataset, type DatasetExportInput, type DatasetFilterValue, type DatasetFilterValueConnection, type DatasetFilterValueEdge, type DatasetImportFromFileInput, type DatasetImportFromPayloadInput, type DatasetImportFromUrlInput, type DatasetImportPreview, type DatasetImportPreviewInput, type DatasetImportPreviewResult, type DatasetImportRunInput, type DatasetImportValidateInput, type DatasetPurpose, type DatasetRecord, type DatasetRecordDeleteJob, type DatasetRecordDeleteJobConnection, type DatasetRecordDeleteJobResult, type DatasetRecordDeleteJobStatus, type DatasetRecordDeleteResultStatus, type DatasetRecordDeleteTargetType, type DatasetRecordsDeleteInput, type DatasetRecordsUpsertInput, type DatasetRecordsUpsertPayload, type DatasetRef, type DatasetSchema, type DatasetVisibility, type Deck, type DeckAPIApplicationAccess, type DeckAPIApplicationAccessGrantInput, type DeckAPIApplicationAccessGrantSource, type DeckAPIApplicationAccessRole, type DeckAccessApplication, type DeckAccessMode, type DeckAppAccessRetention, type DeckClaimInput, type DeckCollaborator, type DeckCollaboratorRole, type DeckCopyInput, type DeckCopyPayload, type DeckCreateInput, type DeckDiff, type DeckDiscoverability, type DeckEntriesReplaceInput, type DeckEntriesReplacePayload, type DeckEntry, type DeckEntryAddInput, type DeckEntryInput, type DeckEntryMutationPayload, type DeckEntryReorderInput, type DeckEntryReorderItemInput, type DeckEntryReorderPayload, type DeckEntryUpdateInput, type DeckEnvironment, type DeckExportFormat, type DeckExportPayload, type DeckHydrateEntriesInput, type DeckHydrateEntriesPayload, type DeckImportAmbiguousEntry, type DeckImportCandidate, type DeckImportEntry, type DeckImportFormat, type DeckImportFormatCreateInput, type DeckImportFormatDefinition, type DeckImportFormatDefinitionConnection, type DeckImportFormatDetection, type DeckImportFormatTestInput, type DeckImportFormatTestPayload, type DeckImportFormatUpdateInput, type DeckImportInput, type DeckImportIssue, type DeckImportPayload, type DeckImportUnmatchedEntry, type DeckOwnerType, type DeckOwnershipTransferPayload, type DeckPublishInput, type DeckPublishPayload, type DeckPublishedVersionSelector, type DeckReadState, type DeckRemoveInvalidEntriesInput, type DeckRepresentation, type DeckSectionDefinition, type DeckSectionDefinitionsParams, type DeckState, type DeckToken, type DeckTokenExchangeInput, type DeckTokenExchangePayload, type DeckTokenIssuer, type DeckTokenIssuerCreateInput, type DeckTokenIssuerSigningKeyInput, type DeckTokenScope, type DeckTokenSigningAlgorithm, type DeckTransferOwnershipInput, type DeckUpdateInput, type DeckUpsertByExternalRefInput, type DeckUpsertByExternalRefPayload, type DeckValidateInput, type DeckValidatedAgainst, type DeckValidation, type DeckValidationAffectedEntry, type DeckValidationIssue, type DeckValidationRules, type DeckValidationSeverity, type DeckVersion, type DeckVersionConnection, type DeckVisibility, type Edge, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobStatus, type FieldInfo, type FieldMapping, type FieldMappingOverrideInput, type FieldMappingStatus, type FieldType, type File, type FileInfo, type FileStatus, type FileUploadInput, FilterBuilder, type FilterBuilderInterface, type FilterCondition, type FilterInput, type FilterOperatorValue, type FilterValue, type Game, type GameCreateInput, type GameImportDatasetStatus, type GameImportFromFileInput, type GameImportFromPayloadInput, type GameImportFromUrlInput, type GameImportJob, type GameImportJobConnection, type GameImportPreview, type GameImportPreviewInput, type GameImportRunInput, type GameRef, type GameScanRegion, type GameUpdateInput, type GameVisibility, GraphQLError, type GraphQLErrorInfo, type HydrateDeckEntryInput, type HydratedDeckEntry, type ImportFormat, type ImportJob, type ImportJobAsset, type ImportJobAssetInput, type ImportJobConnection, type ImportJobLog, type ImportJobLogConnection, type ImportJobStatus, type ImportLogLevel, type ImportMode, type ImportOptions, type ImportStats, type ImportValidationError, type ImportWarning, type ImportWarningSeverity, type InferredChildField, type LinkFieldInfo, LinkResolutionError, type LinkResolutionFailure, type ListDeckImportFormatsParams, type ListDeckVersionsParams, type ListDecksParams, type ListPublicRulesetsParams, type ListRulesetVersionsParams, type ListRulesetsParams, type LogLevel, type Logger, type NextPageLoader, NotFoundError, type ObjectField, type OnConflict, type PageInfo, type PresignedUpload, type PreviewScanTemplateInput, type PublicDecksFilterInput, type PublicDecksParams, type Publisher, type PublisherRef, type PublisherStatus, QueryBuilder, RateLimitError, type RateLimitInfo, type ResolveScanTemplateInput, type ResolvedLink, type ResourceType, RestrictedError, type Ruleset, type RulesetConnection, type RulesetCreateInput, type RulesetLookupParams, type RulesetUpdateInput, type RulesetValidationImpact, type RulesetValidationImpactDeck, type RulesetValidationImpactParams, type RulesetValidationRulesParams, type RulesetVersion, type RulesetVersionConnection, type RulesetVersionDraftCreateInput, type RulesetVersionDraftImportFromDatasetRecordInput, type RulesetVersionDraftImportPreview, type RulesetVersionDraftUpdateInput, type RulesetVersionPublishInput, type RulesetVersionStatus, type SaveScanTemplateInput, type ScanBestMatch, type ScanCandidate, type ScanFeatureVersionMetrics, type ScanFeedbackMetrics, type ScanFeedbackPayload, type ScanJob, type ScanJobError, type ScanJobMetrics, type ScanJobPayload, type ScanJobStatus, type ScanMetrics, type ScanMetricsInput, type ScanStageMetrics, type ScanTemplate, type ScanTemplateList, type ScanTemplatePayload, type ScanTemplatePreview, type ScanTemplateRegion, type ScanTemplateRegionInput, type ScanTemplateRegionPreview, type ScanTemplateResolution, type ScanTemplateWarning, type ScanTemplatesInput, type ScanWebhookState, type SearchDatasetsParams, type SearchGamesParams, type SearchPublishersParams, type SearchRecordsParams, ServerError, type SubmitScanFeedbackInput, type TCGPlayerPrice, type TCGPlayerPricing, TimeoutError, type UploadPurpose, ValidationError, type ViewerDecksFilterInput, type ViewerDecksParams, contains, eq, gt, gte, ilike, isNotNull, isNull, like, lt, lte, neq, notWithin, resolveFilter, within };