@lunejs/core 0.1.4 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/src/api/admin/gql/custom-field-definition.admin.gql +0 -16
  2. package/dist/src/api/admin/resolvers/collection.resolver.js +1 -1
  3. package/dist/src/api/admin/resolvers/collection.resolver.js.map +1 -1
  4. package/dist/src/api/admin/resolvers/custom-field-definition.resolver.js +4 -16
  5. package/dist/src/api/admin/resolvers/custom-field-definition.resolver.js.map +1 -1
  6. package/dist/src/api/admin/resolvers/product.resolver.js +1 -1
  7. package/dist/src/api/admin/resolvers/product.resolver.js.map +1 -1
  8. package/dist/src/api/shared/gql/custom-field-definition.shared.gql +15 -0
  9. package/dist/src/api/shared/loaders/build-loaders.d.ts +41 -2
  10. package/dist/src/api/shared/loaders/build-loaders.js +17 -3
  11. package/dist/src/api/shared/loaders/build-loaders.js.map +1 -1
  12. package/dist/src/api/shared/loaders/collection/collection-custom-field-localization.loader.d.ts +3 -0
  13. package/dist/src/api/shared/loaders/collection/collection-custom-field-localization.loader.js +8 -0
  14. package/dist/src/api/shared/loaders/collection/collection-custom-field-localization.loader.js.map +1 -0
  15. package/dist/src/api/shared/loaders/collection/collection-custom-fields.loader.d.ts +5 -1
  16. package/dist/src/api/shared/loaders/collection/collection-custom-fields.loader.js +15 -5
  17. package/dist/src/api/shared/loaders/collection/collection-custom-fields.loader.js.map +1 -1
  18. package/dist/src/api/shared/loaders/custom-field/custom-field-collection-references.loader.d.ts +13 -0
  19. package/dist/src/api/shared/loaders/custom-field/custom-field-collection-references.loader.js +20 -0
  20. package/dist/src/api/shared/loaders/custom-field/custom-field-collection-references.loader.js.map +1 -0
  21. package/dist/src/api/shared/loaders/custom-field/custom-field-custom-object-references.loader.d.ts +13 -0
  22. package/dist/src/api/shared/loaders/custom-field/custom-field-custom-object-references.loader.js +20 -0
  23. package/dist/src/api/shared/loaders/custom-field/custom-field-custom-object-references.loader.js.map +1 -0
  24. package/dist/src/api/shared/loaders/custom-field/custom-field-product-references.loader.d.ts +13 -0
  25. package/dist/src/api/shared/loaders/custom-field/custom-field-product-references.loader.js +24 -0
  26. package/dist/src/api/shared/loaders/custom-field/custom-field-product-references.loader.js.map +1 -0
  27. package/dist/src/api/shared/loaders/custom-field/index.d.ts +3 -0
  28. package/dist/src/api/shared/loaders/custom-field/index.js +20 -0
  29. package/dist/src/api/shared/loaders/custom-field/index.js.map +1 -0
  30. package/dist/src/api/shared/loaders/custom-field-localization-loader-factory.d.ts +5 -0
  31. package/dist/src/api/shared/loaders/custom-field-localization-loader-factory.js +21 -0
  32. package/dist/src/api/shared/loaders/custom-field-localization-loader-factory.js.map +1 -0
  33. package/dist/src/api/shared/loaders/product/product-custom-field-localization.loader.d.ts +3 -0
  34. package/dist/src/api/shared/loaders/product/product-custom-field-localization.loader.js +8 -0
  35. package/dist/src/api/shared/loaders/product/product-custom-field-localization.loader.js.map +1 -0
  36. package/dist/src/api/shared/loaders/product/product-custom-fields.loader.d.ts +7 -3
  37. package/dist/src/api/shared/loaders/product/product-custom-fields.loader.js +15 -5
  38. package/dist/src/api/shared/loaders/product/product-custom-fields.loader.js.map +1 -1
  39. package/dist/src/api/shared/loaders/reference-loader-factory.d.ts +20 -0
  40. package/dist/src/api/shared/loaders/reference-loader-factory.js +47 -0
  41. package/dist/src/api/shared/loaders/reference-loader-factory.js.map +1 -0
  42. package/dist/src/api/shared/resolvers/enums/custom-field-definition.enums.resolver.d.ts +2 -0
  43. package/dist/src/api/shared/resolvers/enums/custom-field-definition.enums.resolver.js +22 -0
  44. package/dist/src/api/shared/resolvers/enums/custom-field-definition.enums.resolver.js.map +1 -0
  45. package/dist/src/api/shared/types/graphql.d.ts +209 -111
  46. package/dist/src/api/shared/types/graphql.js.map +1 -1
  47. package/dist/src/api/storefront/gql/collection.storefront.gql +4 -0
  48. package/dist/src/api/storefront/gql/custom-field.storefront.gql +30 -0
  49. package/dist/src/api/storefront/gql/custom-object.storefront.gql +22 -0
  50. package/dist/src/api/storefront/gql/product.storefront.gql +1 -1
  51. package/dist/src/api/storefront/loaders/custom-object/custom-object-entry-value-localization.loader.d.ts +4 -0
  52. package/dist/src/api/storefront/loaders/custom-object/custom-object-entry-value-localization.loader.js +21 -0
  53. package/dist/src/api/storefront/loaders/custom-object/custom-object-entry-value-localization.loader.js.map +1 -0
  54. package/dist/src/api/storefront/loaders/custom-object/custom-object-fields.loader.d.ts +13 -0
  55. package/dist/src/api/storefront/loaders/custom-object/custom-object-fields.loader.js +46 -0
  56. package/dist/src/api/storefront/loaders/custom-object/custom-object-fields.loader.js.map +1 -0
  57. package/dist/src/api/storefront/resolvers/collection.resolver.d.ts +2 -0
  58. package/dist/src/api/storefront/resolvers/collection.resolver.js +48 -0
  59. package/dist/src/api/storefront/resolvers/collection.resolver.js.map +1 -0
  60. package/dist/src/api/storefront/resolvers/custom-field.resolver.d.ts +2 -0
  61. package/dist/src/api/storefront/resolvers/custom-field.resolver.js +72 -0
  62. package/dist/src/api/storefront/resolvers/custom-field.resolver.js.map +1 -0
  63. package/dist/src/api/storefront/resolvers/custom-object.resolver.d.ts +2 -0
  64. package/dist/src/api/storefront/resolvers/custom-object.resolver.js +40 -0
  65. package/dist/src/api/storefront/resolvers/custom-object.resolver.js.map +1 -0
  66. package/dist/src/api/storefront/resolvers/product.resolver.js +10 -6
  67. package/dist/src/api/storefront/resolvers/product.resolver.js.map +1 -1
  68. package/dist/src/api/storefront/storefront.api.js +8 -0
  69. package/dist/src/api/storefront/storefront.api.js.map +1 -1
  70. package/dist/src/business/asset/asset.service.js +6 -0
  71. package/dist/src/business/asset/asset.service.js.map +1 -1
  72. package/dist/src/business/custom-object-entry/custom-object-entry.service.d.ts +3 -1
  73. package/dist/src/business/custom-object-entry/custom-object-entry.service.js +14 -2
  74. package/dist/src/business/custom-object-entry/custom-object-entry.service.js.map +1 -1
  75. package/dist/src/business/variant/variant.service.js +0 -3
  76. package/dist/src/business/variant/variant.service.js.map +1 -1
  77. package/dist/src/persistence/entities/custom-field-definition.d.ts +1 -0
  78. package/dist/src/persistence/entities/custom-field-definition.js +2 -1
  79. package/dist/src/persistence/entities/custom-field-definition.js.map +1 -1
  80. package/dist/src/persistence/repositories/custom-object-entry-repository/custom-object-entry.repository.d.ts +3 -0
  81. package/dist/src/persistence/repositories/custom-object-entry-repository/custom-object-entry.repository.js +22 -0
  82. package/dist/src/persistence/repositories/custom-object-entry-repository/custom-object-entry.repository.js.map +1 -1
  83. package/package.json +1 -1
@@ -24,12 +24,12 @@ export type Incremental<T> = T | {
24
24
  [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
25
25
  };
26
26
  export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
27
- export type EnumResolverSignature<T, AllowedValues = any> = {
28
- [key in keyof T]?: AllowedValues;
29
- };
30
27
  export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
31
28
  [P in K]-?: NonNullable<T[P]>;
32
29
  };
30
+ export type EnumResolverSignature<T, AllowedValues = any> = {
31
+ [key in keyof T]?: AllowedValues;
32
+ };
33
33
  /** All built-in and custom scalars, mapped to their actual values */
34
34
  export type Scalars = {
35
35
  ID: {
@@ -189,6 +189,7 @@ export type Collection = Node & {
189
189
  contentType: CollectionContentType;
190
190
  createdAt: Scalars['Date']['output'];
191
191
  customFieldEntries: Array<CollectionCustomField>;
192
+ customFields: Array<CustomField>;
192
193
  /** The collection's description */
193
194
  description?: Maybe<Scalars['String']['output']>;
194
195
  /**
@@ -214,6 +215,10 @@ export type CollectionAssetsArgs = {
214
215
  input?: InputMaybe<ListInput>;
215
216
  };
216
217
  /** A collection is a group of products that are displayed together in the storefront. */
218
+ export type CollectionCustomFieldsArgs = {
219
+ keys: Array<Scalars['String']['input']>;
220
+ };
221
+ /** A collection is a group of products that are displayed together in the storefront. */
217
222
  export type CollectionProductsArgs = {
218
223
  input?: InputMaybe<ProductListInput>;
219
224
  };
@@ -363,8 +368,6 @@ export type CreateOptionValueInput = {
363
368
  customObjectEntryId?: InputMaybe<Scalars['ID']['input']>;
364
369
  name?: InputMaybe<Scalars['String']['input']>;
365
370
  order: Scalars['Int']['input'];
366
- /** @deprecated Use customObjectEntryId instead */
367
- presetId?: InputMaybe<Scalars['ID']['input']>;
368
371
  };
369
372
  export type CreateOrderAddressInput = {
370
373
  city: Scalars['String']['input'];
@@ -439,6 +442,22 @@ export type CreateZoneInput = {
439
442
  name: Scalars['String']['input'];
440
443
  stateIds?: InputMaybe<Array<Scalars['ID']['input']>>;
441
444
  };
445
+ export type CustomField = {
446
+ __typename?: 'CustomField';
447
+ /** Weather the field is a list of values */
448
+ isList: Scalars['Boolean']['output'];
449
+ /** A unique and readable key to make reference to the definition */
450
+ key: Scalars['String']['output'];
451
+ /** A list of reference objects if the metafield's type is a reference type. */
452
+ references: CustomFieldReferenceList;
453
+ /** Type of the definition */
454
+ type: CustomFieldType;
455
+ /** Custom field value in JSON type */
456
+ value: Scalars['JSON']['output'];
457
+ };
458
+ export type CustomFieldReferencesArgs = {
459
+ input?: InputMaybe<ListInput>;
460
+ };
442
461
  export { CustomFieldAppliesToEntity };
443
462
  /** Represents a custom field that cna be attached to an entity */
444
463
  export type CustomFieldDefinition = {
@@ -495,11 +514,29 @@ export type CustomFieldDefinitionResult = {
495
514
  apiErrors: Array<CustomFieldDefinitionErrorResult>;
496
515
  customFieldDefinition?: Maybe<CustomFieldDefinition>;
497
516
  };
517
+ export type CustomFieldReference = Collection | Product;
518
+ export type CustomFieldReferenceList = {
519
+ __typename?: 'CustomFieldReferenceList';
520
+ count: Scalars['Int']['output'];
521
+ items: Array<CustomFieldReference>;
522
+ pageInfo: PageInfo;
523
+ };
498
524
  export { CustomFieldType };
499
525
  export type CustomFieldValue = {
500
526
  id: Scalars['ID']['input'];
501
527
  value?: InputMaybe<Scalars['JSON']['input']>;
502
528
  };
529
+ export type CustomObject = {
530
+ __typename?: 'CustomObject';
531
+ /** The fields of this entry */
532
+ fields: Array<CustomField>;
533
+ id: Scalars['ID']['output'];
534
+ /** A unique and readable identifier for the entry */
535
+ slug: Scalars['String']['output'];
536
+ };
537
+ export type CustomObjectFieldsArgs = {
538
+ keys: Array<Scalars['String']['input']>;
539
+ };
503
540
  /** Represents a custom object definition that can be used to create custom entities */
504
541
  export type CustomObjectDefinition = {
505
542
  __typename?: 'CustomObjectDefinition';
@@ -587,6 +624,12 @@ export type CustomObjectEntryValueTranslation = {
587
624
  updatedAt: Scalars['Date']['output'];
588
625
  value?: Maybe<Scalars['JSON']['output']>;
589
626
  };
627
+ export type CustomObjectList = {
628
+ __typename?: 'CustomObjectList';
629
+ count: Scalars['Int']['output'];
630
+ items: Array<CustomObject>;
631
+ pageInfo: PageInfo;
632
+ };
590
633
  /** A customer is a person who interacts with the shop, whether browsing, purchasing, or managing their profile */
591
634
  export type Customer = {
592
635
  __typename?: 'Customer';
@@ -1352,25 +1395,6 @@ export type OptionList = List & {
1352
1395
  items: Array<Option>;
1353
1396
  pageInfo: PageInfo;
1354
1397
  };
1355
- export type OptionPreset = {
1356
- __typename?: 'OptionPreset';
1357
- createdAt: Scalars['Date']['output'];
1358
- id: Scalars['ID']['output'];
1359
- /** The preset's name */
1360
- name: Scalars['String']['output'];
1361
- updatedAt: Scalars['Date']['output'];
1362
- /** Option values for this preset */
1363
- values: OptionValuePresetList;
1364
- };
1365
- export type OptionPresetValuesArgs = {
1366
- input?: InputMaybe<ListInput>;
1367
- };
1368
- export type OptionPresetList = {
1369
- __typename?: 'OptionPresetList';
1370
- count: Scalars['Int']['output'];
1371
- items: Array<OptionPreset>;
1372
- pageInfo: PageInfo;
1373
- };
1374
1398
  export type OptionTranslation = {
1375
1399
  __typename?: 'OptionTranslation';
1376
1400
  createdAt: Scalars['Date']['output'];
@@ -1392,8 +1416,6 @@ export type OptionValue = Node & {
1392
1416
  name: Scalars['String']['output'];
1393
1417
  option: Option;
1394
1418
  order: Scalars['Int']['output'];
1395
- /** @deprecated Use customObjectEntry instead */
1396
- preset?: Maybe<OptionValuePreset>;
1397
1419
  translations: Array<OptionValueTranslation>;
1398
1420
  updatedAt: Scalars['Date']['output'];
1399
1421
  };
@@ -1408,22 +1430,6 @@ export type OptionValueMetadata = {
1408
1430
  export type OptionValueMetadataInput = {
1409
1431
  color?: InputMaybe<Scalars['String']['input']>;
1410
1432
  };
1411
- export type OptionValuePreset = {
1412
- __typename?: 'OptionValuePreset';
1413
- createdAt: Scalars['Date']['output'];
1414
- id: Scalars['ID']['output'];
1415
- /** Additional metadata (e.g., hex color for Color option) */
1416
- metadata?: Maybe<Scalars['JSON']['output']>;
1417
- /** The preset's name */
1418
- name: Scalars['String']['output'];
1419
- updatedAt: Scalars['Date']['output'];
1420
- };
1421
- export type OptionValuePresetList = {
1422
- __typename?: 'OptionValuePresetList';
1423
- count: Scalars['Int']['output'];
1424
- items: Array<OptionValuePreset>;
1425
- pageInfo: PageInfo;
1426
- };
1427
1433
  export type OptionValueTranslation = {
1428
1434
  __typename?: 'OptionValueTranslation';
1429
1435
  createdAt: Scalars['Date']['output'];
@@ -1746,7 +1752,7 @@ export type Product = Node & {
1746
1752
  createdAt: Scalars['Date']['output'];
1747
1753
  customFieldEntries: Array<ProductCustomField>;
1748
1754
  /** Custom fields as key-value pairs */
1749
- customFields: Scalars['JSON']['output'];
1755
+ customFields: Array<CustomField>;
1750
1756
  /** The product's description */
1751
1757
  description?: Maybe<Scalars['String']['output']>;
1752
1758
  /**
@@ -1781,6 +1787,10 @@ export type ProductAssetsArgs = {
1781
1787
  input?: InputMaybe<ListInput>;
1782
1788
  };
1783
1789
  /** A product is a good or service that you want to sell. */
1790
+ export type ProductCustomFieldsArgs = {
1791
+ keys: Array<Scalars['String']['input']>;
1792
+ };
1793
+ /** A product is a good or service that you want to sell. */
1784
1794
  export type ProductOptionsArgs = {
1785
1795
  name?: InputMaybe<Scalars['String']['input']>;
1786
1796
  };
@@ -1854,10 +1864,12 @@ export type Query = {
1854
1864
  countries: Array<Country>;
1855
1865
  customFieldDefinition?: Maybe<CustomFieldDefinition>;
1856
1866
  customFieldDefinitions: CustomFieldDefinitionList;
1867
+ customObject?: Maybe<CustomObject>;
1857
1868
  customObjectDefinition?: Maybe<CustomObjectDefinition>;
1858
1869
  customObjectDefinitions: CustomObjectDefinitionList;
1859
1870
  customObjectEntries: CustomObjectEntryList;
1860
1871
  customObjectEntry?: Maybe<CustomObjectEntry>;
1872
+ customObjects?: Maybe<CustomObject>;
1861
1873
  customer?: Maybe<Customer>;
1862
1874
  customers: CustomerList;
1863
1875
  discount?: Maybe<Discount>;
@@ -1867,7 +1879,6 @@ export type Query = {
1867
1879
  locations: LocationList;
1868
1880
  /** Get authenticated customer */
1869
1881
  me?: Maybe<Customer>;
1870
- optionPresets: OptionPresetList;
1871
1882
  order?: Maybe<Order>;
1872
1883
  orders: OrderList;
1873
1884
  paymentHandlers: Array<PaymentHandler>;
@@ -1920,6 +1931,10 @@ export type QueryCustomFieldDefinitionArgs = {
1920
1931
  export type QueryCustomFieldDefinitionsArgs = {
1921
1932
  input?: InputMaybe<CustomFieldDefinitionListInput>;
1922
1933
  };
1934
+ export type QueryCustomObjectArgs = {
1935
+ id?: InputMaybe<Scalars['ID']['input']>;
1936
+ slug?: InputMaybe<Scalars['String']['input']>;
1937
+ };
1923
1938
  export type QueryCustomObjectDefinitionArgs = {
1924
1939
  id: Scalars['ID']['input'];
1925
1940
  };
@@ -1933,6 +1948,10 @@ export type QueryCustomObjectEntriesArgs = {
1933
1948
  export type QueryCustomObjectEntryArgs = {
1934
1949
  id: Scalars['ID']['input'];
1935
1950
  };
1951
+ export type QueryCustomObjectsArgs = {
1952
+ definitionKey: Scalars['String']['input'];
1953
+ input?: InputMaybe<ListInput>;
1954
+ };
1936
1955
  export type QueryCustomerArgs = {
1937
1956
  id: Scalars['ID']['input'];
1938
1957
  };
@@ -1951,9 +1970,6 @@ export type QueryLocationArgs = {
1951
1970
  export type QueryLocationsArgs = {
1952
1971
  input?: InputMaybe<ListInput>;
1953
1972
  };
1954
- export type QueryOptionPresetsArgs = {
1955
- input?: InputMaybe<ListInput>;
1956
- };
1957
1973
  export type QueryOrderArgs = {
1958
1974
  code?: InputMaybe<Scalars['String']['input']>;
1959
1975
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -2253,8 +2269,6 @@ export type UpdateOptionValueInput = {
2253
2269
  id?: InputMaybe<Scalars['ID']['input']>;
2254
2270
  name?: InputMaybe<Scalars['String']['input']>;
2255
2271
  order?: InputMaybe<Scalars['Int']['input']>;
2256
- /** @deprecated Use customObjectEntryId instead */
2257
- presetId?: InputMaybe<Scalars['ID']['input']>;
2258
2272
  };
2259
2273
  export type UpdateOrderLineInput = {
2260
2274
  quantity: Scalars['Int']['input'];
@@ -2446,6 +2460,15 @@ export type NextResolverFn<T> = () => Promise<T>;
2446
2460
  export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
2447
2461
  /** Mapping of union types */
2448
2462
  export type ResolversUnionTypes<_RefType extends Record<string, unknown>> = {
2463
+ CustomFieldReference: (Omit<Collection, 'customFields' | 'parentCollection' | 'products' | 'subCollections'> & {
2464
+ customFields: Array<_RefType['CustomField']>;
2465
+ parentCollection?: Maybe<_RefType['Collection']>;
2466
+ products: _RefType['ProductList'];
2467
+ subCollections: _RefType['CollectionList'];
2468
+ }) | (Omit<Product, 'customFields' | 'variants'> & {
2469
+ customFields: Array<_RefType['CustomField']>;
2470
+ variants: _RefType['VariantList'];
2471
+ });
2449
2472
  DeliveryMethodDetails: (DeliveryMethodPickup) | (DeliveryMethodShipping);
2450
2473
  PaymentDetails: (Omit<PaymentCancellation, 'payment'> & {
2451
2474
  payment: _RefType['Payment'];
@@ -2457,7 +2480,9 @@ export type ResolversUnionTypes<_RefType extends Record<string, unknown>> = {
2457
2480
  };
2458
2481
  /** Mapping of interface types */
2459
2482
  export type ResolversInterfaceTypes<_RefType extends Record<string, unknown>> = {
2460
- List: (AssetList) | (CollectionList) | (DiscountList) | (Omit<FulfillmentLineList, 'items'> & {
2483
+ List: (AssetList) | (Omit<CollectionList, 'items'> & {
2484
+ items: Array<_RefType['Collection']>;
2485
+ }) | (DiscountList) | (Omit<FulfillmentLineList, 'items'> & {
2461
2486
  items: Array<_RefType['FulfillmentLine']>;
2462
2487
  }) | (Omit<FulfillmentList, 'items'> & {
2463
2488
  items: Array<_RefType['Fulfillment']>;
@@ -2465,8 +2490,17 @@ export type ResolversInterfaceTypes<_RefType extends Record<string, unknown>> =
2465
2490
  items: Array<_RefType['OrderLine']>;
2466
2491
  }) | (Omit<OrderList, 'items'> & {
2467
2492
  items: Array<_RefType['Order']>;
2468
- }) | (ProductList) | (ShopList) | (TagList) | (UserList) | (VariantList);
2469
- Node: (Asset) | (Collection) | (Omit<DeliveryMethod, 'details'> & {
2493
+ }) | (Omit<ProductList, 'items'> & {
2494
+ items: Array<_RefType['Product']>;
2495
+ }) | (ShopList) | (TagList) | (UserList) | (Omit<VariantList, 'items'> & {
2496
+ items: Array<_RefType['Variant']>;
2497
+ });
2498
+ Node: (Asset) | (Omit<Collection, 'customFields' | 'parentCollection' | 'products' | 'subCollections'> & {
2499
+ customFields: Array<_RefType['CustomField']>;
2500
+ parentCollection?: Maybe<_RefType['Collection']>;
2501
+ products: _RefType['ProductList'];
2502
+ subCollections: _RefType['CollectionList'];
2503
+ }) | (Omit<DeliveryMethod, 'details'> & {
2470
2504
  details: _RefType['DeliveryMethodDetails'];
2471
2505
  }) | (Discount) | (Omit<Fulfillment, 'lines'> & {
2472
2506
  lines: _RefType['FulfillmentLineList'];
@@ -2480,15 +2514,22 @@ export type ResolversInterfaceTypes<_RefType extends Record<string, unknown>> =
2480
2514
  payments: Array<_RefType['Payment']>;
2481
2515
  }) | (Omit<OrderCancellation, 'order'> & {
2482
2516
  order: _RefType['Order'];
2483
- }) | (Omit<OrderLine, 'appliedDiscounts'> & {
2517
+ }) | (Omit<OrderLine, 'appliedDiscounts' | 'variant'> & {
2484
2518
  appliedDiscounts: Array<_RefType['AppliedDiscount']>;
2519
+ variant: _RefType['Variant'];
2485
2520
  }) | (Omit<PaymentCancellation, 'payment'> & {
2486
2521
  payment: _RefType['Payment'];
2487
2522
  }) | (Omit<PaymentFailure, 'payment'> & {
2488
2523
  payment: _RefType['Payment'];
2489
2524
  }) | (Omit<PaymentRejection, 'payment'> & {
2490
2525
  payment: _RefType['Payment'];
2491
- }) | (Product) | (Shop) | (Tag) | (User) | (Variant) | (Zone);
2526
+ }) | (Omit<Product, 'customFields' | 'variants'> & {
2527
+ customFields: Array<_RefType['CustomField']>;
2528
+ variants: _RefType['VariantList'];
2529
+ }) | (Shop) | (Tag) | (User) | (Omit<Variant, 'dimensions' | 'product'> & {
2530
+ dimensions?: Maybe<_RefType['Dimensions']>;
2531
+ product: _RefType['Product'];
2532
+ }) | (Zone);
2492
2533
  };
2493
2534
  /** Mapping between all available schema types and the resolvers types */
2494
2535
  export type ResolversTypes = {
@@ -2511,12 +2552,19 @@ export type ResolversTypes = {
2511
2552
  Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>;
2512
2553
  BooleanFilter: BooleanFilter;
2513
2554
  CancelOrderInput: CancelOrderInput;
2514
- Collection: ResolverTypeWrapper<Collection>;
2555
+ Collection: ResolverTypeWrapper<Omit<Collection, 'customFields' | 'parentCollection' | 'products' | 'subCollections'> & {
2556
+ customFields: Array<ResolversTypes['CustomField']>;
2557
+ parentCollection?: Maybe<ResolversTypes['Collection']>;
2558
+ products: ResolversTypes['ProductList'];
2559
+ subCollections: ResolversTypes['CollectionList'];
2560
+ }>;
2515
2561
  CollectionContentType: CollectionContentType;
2516
2562
  CollectionCustomField: ResolverTypeWrapper<CollectionCustomField>;
2517
2563
  CollectionCustomFieldTranslation: ResolverTypeWrapper<CollectionCustomFieldTranslation>;
2518
2564
  CollectionFilters: CollectionFilters;
2519
- CollectionList: ResolverTypeWrapper<CollectionList>;
2565
+ CollectionList: ResolverTypeWrapper<Omit<CollectionList, 'items'> & {
2566
+ items: Array<ResolversTypes['Collection']>;
2567
+ }>;
2520
2568
  CollectionListInput: CollectionListInput;
2521
2569
  CollectionTranslation: ResolverTypeWrapper<CollectionTranslation>;
2522
2570
  CollectionTranslationInput: CollectionTranslationInput;
@@ -2542,6 +2590,9 @@ export type ResolversTypes = {
2542
2590
  CreateUserInput: CreateUserInput;
2543
2591
  CreateVariantInput: CreateVariantInput;
2544
2592
  CreateZoneInput: CreateZoneInput;
2593
+ CustomField: ResolverTypeWrapper<Omit<CustomField, 'references'> & {
2594
+ references: ResolversTypes['CustomFieldReferenceList'];
2595
+ }>;
2545
2596
  CustomFieldAppliesToEntity: CustomFieldAppliesToEntity;
2546
2597
  CustomFieldDefinition: ResolverTypeWrapper<CustomFieldDefinition>;
2547
2598
  CustomFieldDefinitionErrorCode: CustomFieldDefinitionErrorCode;
@@ -2550,8 +2601,15 @@ export type ResolversTypes = {
2550
2601
  CustomFieldDefinitionList: ResolverTypeWrapper<CustomFieldDefinitionList>;
2551
2602
  CustomFieldDefinitionListInput: CustomFieldDefinitionListInput;
2552
2603
  CustomFieldDefinitionResult: ResolverTypeWrapper<CustomFieldDefinitionResult>;
2604
+ CustomFieldReference: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['CustomFieldReference']>;
2605
+ CustomFieldReferenceList: ResolverTypeWrapper<Omit<CustomFieldReferenceList, 'items'> & {
2606
+ items: Array<ResolversTypes['CustomFieldReference']>;
2607
+ }>;
2553
2608
  CustomFieldType: CustomFieldType;
2554
2609
  CustomFieldValue: CustomFieldValue;
2610
+ CustomObject: ResolverTypeWrapper<Omit<CustomObject, 'fields'> & {
2611
+ fields: Array<ResolversTypes['CustomField']>;
2612
+ }>;
2555
2613
  CustomObjectDefinition: ResolverTypeWrapper<CustomObjectDefinition>;
2556
2614
  CustomObjectDefinitionErrorCode: CustomObjectDefinitionErrorCode;
2557
2615
  CustomObjectDefinitionErrorResult: ResolverTypeWrapper<CustomObjectDefinitionErrorResult>;
@@ -2563,6 +2621,9 @@ export type ResolversTypes = {
2563
2621
  CustomObjectEntryList: ResolverTypeWrapper<CustomObjectEntryList>;
2564
2622
  CustomObjectEntryValue: ResolverTypeWrapper<CustomObjectEntryValue>;
2565
2623
  CustomObjectEntryValueTranslation: ResolverTypeWrapper<CustomObjectEntryValueTranslation>;
2624
+ CustomObjectList: ResolverTypeWrapper<Omit<CustomObjectList, 'items'> & {
2625
+ items: Array<ResolversTypes['CustomObject']>;
2626
+ }>;
2566
2627
  Customer: ResolverTypeWrapper<Omit<Customer, 'orders'> & {
2567
2628
  orders: ResolversTypes['OrderList'];
2568
2629
  }>;
@@ -2632,16 +2693,12 @@ export type ResolversTypes = {
2632
2693
  Node: ResolverTypeWrapper<ResolversInterfaceTypes<ResolversTypes>['Node']>;
2633
2694
  Option: ResolverTypeWrapper<Option>;
2634
2695
  OptionList: ResolverTypeWrapper<OptionList>;
2635
- OptionPreset: ResolverTypeWrapper<OptionPreset>;
2636
- OptionPresetList: ResolverTypeWrapper<OptionPresetList>;
2637
2696
  OptionTranslation: ResolverTypeWrapper<OptionTranslation>;
2638
2697
  OptionTranslationInput: OptionTranslationInput;
2639
2698
  OptionValue: ResolverTypeWrapper<OptionValue>;
2640
2699
  OptionValueFilter: OptionValueFilter;
2641
2700
  OptionValueMetadata: ResolverTypeWrapper<OptionValueMetadata>;
2642
2701
  OptionValueMetadataInput: OptionValueMetadataInput;
2643
- OptionValuePreset: ResolverTypeWrapper<OptionValuePreset>;
2644
- OptionValuePresetList: ResolverTypeWrapper<OptionValuePresetList>;
2645
2702
  OptionValueTranslation: ResolverTypeWrapper<OptionValueTranslation>;
2646
2703
  OptionValueTranslationInput: OptionValueTranslationInput;
2647
2704
  Order: ResolverTypeWrapper<Omit<Order, 'appliedDiscounts' | 'deliveryMethod' | 'fulfillments' | 'lines' | 'payments'> & {
@@ -2659,8 +2716,9 @@ export type ResolversTypes = {
2659
2716
  OrderErrorCode: OrderErrorCode;
2660
2717
  OrderErrorResult: ResolverTypeWrapper<OrderErrorResult>;
2661
2718
  OrderFilters: OrderFilters;
2662
- OrderLine: ResolverTypeWrapper<Omit<OrderLine, 'appliedDiscounts'> & {
2719
+ OrderLine: ResolverTypeWrapper<Omit<OrderLine, 'appliedDiscounts' | 'variant'> & {
2663
2720
  appliedDiscounts: Array<ResolversTypes['AppliedDiscount']>;
2721
+ variant: ResolversTypes['Variant'];
2664
2722
  }>;
2665
2723
  OrderLineList: ResolverTypeWrapper<Omit<OrderLineList, 'items'> & {
2666
2724
  items: Array<ResolversTypes['OrderLine']>;
@@ -2694,11 +2752,16 @@ export type ResolversTypes = {
2694
2752
  }>;
2695
2753
  PaymentState: PaymentState;
2696
2754
  PriceRange: PriceRange;
2697
- Product: ResolverTypeWrapper<Product>;
2755
+ Product: ResolverTypeWrapper<Omit<Product, 'customFields' | 'variants'> & {
2756
+ customFields: Array<ResolversTypes['CustomField']>;
2757
+ variants: ResolversTypes['VariantList'];
2758
+ }>;
2698
2759
  ProductCustomField: ResolverTypeWrapper<ProductCustomField>;
2699
2760
  ProductCustomFieldTranslation: ResolverTypeWrapper<ProductCustomFieldTranslation>;
2700
2761
  ProductFilters: ProductFilters;
2701
- ProductList: ResolverTypeWrapper<ProductList>;
2762
+ ProductList: ResolverTypeWrapper<Omit<ProductList, 'items'> & {
2763
+ items: Array<ResolversTypes['Product']>;
2764
+ }>;
2702
2765
  ProductListInput: ProductListInput;
2703
2766
  ProductSort: ProductSort;
2704
2767
  ProductTranslation: ResolverTypeWrapper<ProductTranslation>;
@@ -2753,8 +2816,13 @@ export type ResolversTypes = {
2753
2816
  UserErrorResult: ResolverTypeWrapper<UserErrorResult>;
2754
2817
  UserList: ResolverTypeWrapper<UserList>;
2755
2818
  UserResult: ResolverTypeWrapper<UserResult>;
2756
- Variant: ResolverTypeWrapper<Variant>;
2757
- VariantList: ResolverTypeWrapper<VariantList>;
2819
+ Variant: ResolverTypeWrapper<Omit<Variant, 'dimensions' | 'product'> & {
2820
+ dimensions?: Maybe<ResolversTypes['Dimensions']>;
2821
+ product: ResolversTypes['Product'];
2822
+ }>;
2823
+ VariantList: ResolverTypeWrapper<Omit<VariantList, 'items'> & {
2824
+ items: Array<ResolversTypes['Variant']>;
2825
+ }>;
2758
2826
  Zone: ResolverTypeWrapper<Zone>;
2759
2827
  addCustomObjectEntryTranslationInput: AddCustomObjectEntryTranslationInput;
2760
2828
  };
@@ -2779,11 +2847,18 @@ export type ResolversParentTypes = {
2779
2847
  Boolean: Scalars['Boolean']['output'];
2780
2848
  BooleanFilter: BooleanFilter;
2781
2849
  CancelOrderInput: CancelOrderInput;
2782
- Collection: Collection;
2850
+ Collection: Omit<Collection, 'customFields' | 'parentCollection' | 'products' | 'subCollections'> & {
2851
+ customFields: Array<ResolversParentTypes['CustomField']>;
2852
+ parentCollection?: Maybe<ResolversParentTypes['Collection']>;
2853
+ products: ResolversParentTypes['ProductList'];
2854
+ subCollections: ResolversParentTypes['CollectionList'];
2855
+ };
2783
2856
  CollectionCustomField: CollectionCustomField;
2784
2857
  CollectionCustomFieldTranslation: CollectionCustomFieldTranslation;
2785
2858
  CollectionFilters: CollectionFilters;
2786
- CollectionList: CollectionList;
2859
+ CollectionList: Omit<CollectionList, 'items'> & {
2860
+ items: Array<ResolversParentTypes['Collection']>;
2861
+ };
2787
2862
  CollectionListInput: CollectionListInput;
2788
2863
  CollectionTranslation: CollectionTranslation;
2789
2864
  CollectionTranslationInput: CollectionTranslationInput;
@@ -2809,13 +2884,23 @@ export type ResolversParentTypes = {
2809
2884
  CreateUserInput: CreateUserInput;
2810
2885
  CreateVariantInput: CreateVariantInput;
2811
2886
  CreateZoneInput: CreateZoneInput;
2887
+ CustomField: Omit<CustomField, 'references'> & {
2888
+ references: ResolversParentTypes['CustomFieldReferenceList'];
2889
+ };
2812
2890
  CustomFieldDefinition: CustomFieldDefinition;
2813
2891
  CustomFieldDefinitionErrorResult: CustomFieldDefinitionErrorResult;
2814
2892
  CustomFieldDefinitionFilters: CustomFieldDefinitionFilters;
2815
2893
  CustomFieldDefinitionList: CustomFieldDefinitionList;
2816
2894
  CustomFieldDefinitionListInput: CustomFieldDefinitionListInput;
2817
2895
  CustomFieldDefinitionResult: CustomFieldDefinitionResult;
2896
+ CustomFieldReference: ResolversUnionTypes<ResolversParentTypes>['CustomFieldReference'];
2897
+ CustomFieldReferenceList: Omit<CustomFieldReferenceList, 'items'> & {
2898
+ items: Array<ResolversParentTypes['CustomFieldReference']>;
2899
+ };
2818
2900
  CustomFieldValue: CustomFieldValue;
2901
+ CustomObject: Omit<CustomObject, 'fields'> & {
2902
+ fields: Array<ResolversParentTypes['CustomField']>;
2903
+ };
2819
2904
  CustomObjectDefinition: CustomObjectDefinition;
2820
2905
  CustomObjectDefinitionErrorResult: CustomObjectDefinitionErrorResult;
2821
2906
  CustomObjectDefinitionFilters: CustomObjectDefinitionFilters;
@@ -2826,6 +2911,9 @@ export type ResolversParentTypes = {
2826
2911
  CustomObjectEntryList: CustomObjectEntryList;
2827
2912
  CustomObjectEntryValue: CustomObjectEntryValue;
2828
2913
  CustomObjectEntryValueTranslation: CustomObjectEntryValueTranslation;
2914
+ CustomObjectList: Omit<CustomObjectList, 'items'> & {
2915
+ items: Array<ResolversParentTypes['CustomObject']>;
2916
+ };
2829
2917
  Customer: Omit<Customer, 'orders'> & {
2830
2918
  orders: ResolversParentTypes['OrderList'];
2831
2919
  };
@@ -2886,16 +2974,12 @@ export type ResolversParentTypes = {
2886
2974
  Node: ResolversInterfaceTypes<ResolversParentTypes>['Node'];
2887
2975
  Option: Option;
2888
2976
  OptionList: OptionList;
2889
- OptionPreset: OptionPreset;
2890
- OptionPresetList: OptionPresetList;
2891
2977
  OptionTranslation: OptionTranslation;
2892
2978
  OptionTranslationInput: OptionTranslationInput;
2893
2979
  OptionValue: OptionValue;
2894
2980
  OptionValueFilter: OptionValueFilter;
2895
2981
  OptionValueMetadata: OptionValueMetadata;
2896
2982
  OptionValueMetadataInput: OptionValueMetadataInput;
2897
- OptionValuePreset: OptionValuePreset;
2898
- OptionValuePresetList: OptionValuePresetList;
2899
2983
  OptionValueTranslation: OptionValueTranslation;
2900
2984
  OptionValueTranslationInput: OptionValueTranslationInput;
2901
2985
  Order: Omit<Order, 'appliedDiscounts' | 'deliveryMethod' | 'fulfillments' | 'lines' | 'payments'> & {
@@ -2911,8 +2995,9 @@ export type ResolversParentTypes = {
2911
2995
  };
2912
2996
  OrderErrorResult: OrderErrorResult;
2913
2997
  OrderFilters: OrderFilters;
2914
- OrderLine: Omit<OrderLine, 'appliedDiscounts'> & {
2998
+ OrderLine: Omit<OrderLine, 'appliedDiscounts' | 'variant'> & {
2915
2999
  appliedDiscounts: Array<ResolversParentTypes['AppliedDiscount']>;
3000
+ variant: ResolversParentTypes['Variant'];
2916
3001
  };
2917
3002
  OrderLineList: Omit<OrderLineList, 'items'> & {
2918
3003
  items: Array<ResolversParentTypes['OrderLine']>;
@@ -2943,11 +3028,16 @@ export type ResolversParentTypes = {
2943
3028
  payment: ResolversParentTypes['Payment'];
2944
3029
  };
2945
3030
  PriceRange: PriceRange;
2946
- Product: Product;
3031
+ Product: Omit<Product, 'customFields' | 'variants'> & {
3032
+ customFields: Array<ResolversParentTypes['CustomField']>;
3033
+ variants: ResolversParentTypes['VariantList'];
3034
+ };
2947
3035
  ProductCustomField: ProductCustomField;
2948
3036
  ProductCustomFieldTranslation: ProductCustomFieldTranslation;
2949
3037
  ProductFilters: ProductFilters;
2950
- ProductList: ProductList;
3038
+ ProductList: Omit<ProductList, 'items'> & {
3039
+ items: Array<ResolversParentTypes['Product']>;
3040
+ };
2951
3041
  ProductListInput: ProductListInput;
2952
3042
  ProductSort: ProductSort;
2953
3043
  ProductTranslation: ProductTranslation;
@@ -2998,8 +3088,13 @@ export type ResolversParentTypes = {
2998
3088
  UserErrorResult: UserErrorResult;
2999
3089
  UserList: UserList;
3000
3090
  UserResult: UserResult;
3001
- Variant: Variant;
3002
- VariantList: VariantList;
3091
+ Variant: Omit<Variant, 'dimensions' | 'product'> & {
3092
+ dimensions?: Maybe<ResolversParentTypes['Dimensions']>;
3093
+ product: ResolversParentTypes['Product'];
3094
+ };
3095
+ VariantList: Omit<VariantList, 'items'> & {
3096
+ items: Array<ResolversParentTypes['Variant']>;
3097
+ };
3003
3098
  Zone: Zone;
3004
3099
  addCustomObjectEntryTranslationInput: AddCustomObjectEntryTranslationInput;
3005
3100
  };
@@ -3056,6 +3151,7 @@ export type CollectionResolvers<ContextType = ExecutionContext, ParentType exten
3056
3151
  contentType?: Resolver<ResolversTypes['CollectionContentType'], ParentType, ContextType>;
3057
3152
  createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3058
3153
  customFieldEntries?: Resolver<Array<ResolversTypes['CollectionCustomField']>, ParentType, ContextType>;
3154
+ customFields?: Resolver<Array<ResolversTypes['CustomField']>, ParentType, ContextType, RequireFields<CollectionCustomFieldsArgs, 'keys'>>;
3059
3155
  description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
3060
3156
  enabled?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
3061
3157
  id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
@@ -3114,6 +3210,14 @@ export type CreateTagsResultResolvers<ContextType = ExecutionContext, ParentType
3114
3210
  tags?: Resolver<Array<ResolversTypes['Tag']>, ParentType, ContextType>;
3115
3211
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3116
3212
  };
3213
+ export type CustomFieldResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['CustomField'] = ResolversParentTypes['CustomField']> = {
3214
+ isList?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
3215
+ key?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
3216
+ references?: Resolver<ResolversTypes['CustomFieldReferenceList'], ParentType, ContextType, Partial<CustomFieldReferencesArgs>>;
3217
+ type?: Resolver<ResolversTypes['CustomFieldType'], ParentType, ContextType>;
3218
+ value?: Resolver<ResolversTypes['JSON'], ParentType, ContextType>;
3219
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3220
+ };
3117
3221
  export type CustomFieldAppliesToEntityResolvers = EnumResolverSignature<{
3118
3222
  COLLECTION?: any;
3119
3223
  CUSTOM_OBJECT?: any;
@@ -3150,6 +3254,15 @@ export type CustomFieldDefinitionResultResolvers<ContextType = ExecutionContext,
3150
3254
  customFieldDefinition?: Resolver<Maybe<ResolversTypes['CustomFieldDefinition']>, ParentType, ContextType>;
3151
3255
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3152
3256
  };
3257
+ export type CustomFieldReferenceResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['CustomFieldReference'] = ResolversParentTypes['CustomFieldReference']> = {
3258
+ __resolveType: TypeResolveFn<'Collection' | 'Product', ParentType, ContextType>;
3259
+ };
3260
+ export type CustomFieldReferenceListResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['CustomFieldReferenceList'] = ResolversParentTypes['CustomFieldReferenceList']> = {
3261
+ count?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
3262
+ items?: Resolver<Array<ResolversTypes['CustomFieldReference']>, ParentType, ContextType>;
3263
+ pageInfo?: Resolver<ResolversTypes['PageInfo'], ParentType, ContextType>;
3264
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3265
+ };
3153
3266
  export type CustomFieldTypeResolvers = EnumResolverSignature<{
3154
3267
  BOOLEAN?: any;
3155
3268
  COLLECTION_REFERENCE?: any;
@@ -3165,6 +3278,12 @@ export type CustomFieldTypeResolvers = EnumResolverSignature<{
3165
3278
  SINGLE_LINE_TEXT?: any;
3166
3279
  URL?: any;
3167
3280
  }, ResolversTypes['CustomFieldType']>;
3281
+ export type CustomObjectResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['CustomObject'] = ResolversParentTypes['CustomObject']> = {
3282
+ fields?: Resolver<Array<ResolversTypes['CustomField']>, ParentType, ContextType, RequireFields<CustomObjectFieldsArgs, 'keys'>>;
3283
+ id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
3284
+ slug?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
3285
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3286
+ };
3168
3287
  export type CustomObjectDefinitionResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['CustomObjectDefinition'] = ResolversParentTypes['CustomObjectDefinition']> = {
3169
3288
  createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3170
3289
  displayField?: Resolver<Maybe<ResolversTypes['CustomFieldDefinition']>, ParentType, ContextType>;
@@ -3225,6 +3344,12 @@ export type CustomObjectEntryValueTranslationResolvers<ContextType = ExecutionCo
3225
3344
  value?: Resolver<Maybe<ResolversTypes['JSON']>, ParentType, ContextType>;
3226
3345
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3227
3346
  };
3347
+ export type CustomObjectListResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['CustomObjectList'] = ResolversParentTypes['CustomObjectList']> = {
3348
+ count?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
3349
+ items?: Resolver<Array<ResolversTypes['CustomObject']>, ParentType, ContextType>;
3350
+ pageInfo?: Resolver<ResolversTypes['PageInfo'], ParentType, ContextType>;
3351
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3352
+ };
3228
3353
  export type CustomerResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['Customer'] = ResolversParentTypes['Customer']> = {
3229
3354
  createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3230
3355
  email?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
@@ -3545,20 +3670,6 @@ export type OptionListResolvers<ContextType = ExecutionContext, ParentType exten
3545
3670
  pageInfo?: Resolver<ResolversTypes['PageInfo'], ParentType, ContextType>;
3546
3671
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3547
3672
  };
3548
- export type OptionPresetResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['OptionPreset'] = ResolversParentTypes['OptionPreset']> = {
3549
- createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3550
- id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
3551
- name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
3552
- updatedAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3553
- values?: Resolver<ResolversTypes['OptionValuePresetList'], ParentType, ContextType, Partial<OptionPresetValuesArgs>>;
3554
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3555
- };
3556
- export type OptionPresetListResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['OptionPresetList'] = ResolversParentTypes['OptionPresetList']> = {
3557
- count?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
3558
- items?: Resolver<Array<ResolversTypes['OptionPreset']>, ParentType, ContextType>;
3559
- pageInfo?: Resolver<ResolversTypes['PageInfo'], ParentType, ContextType>;
3560
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3561
- };
3562
3673
  export type OptionTranslationResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['OptionTranslation'] = ResolversParentTypes['OptionTranslation']> = {
3563
3674
  createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3564
3675
  id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
@@ -3575,7 +3686,6 @@ export type OptionValueResolvers<ContextType = ExecutionContext, ParentType exte
3575
3686
  name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
3576
3687
  option?: Resolver<ResolversTypes['Option'], ParentType, ContextType>;
3577
3688
  order?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
3578
- preset?: Resolver<Maybe<ResolversTypes['OptionValuePreset']>, ParentType, ContextType>;
3579
3689
  translations?: Resolver<Array<ResolversTypes['OptionValueTranslation']>, ParentType, ContextType>;
3580
3690
  updatedAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3581
3691
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
@@ -3584,20 +3694,6 @@ export type OptionValueMetadataResolvers<ContextType = ExecutionContext, ParentT
3584
3694
  color?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
3585
3695
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3586
3696
  };
3587
- export type OptionValuePresetResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['OptionValuePreset'] = ResolversParentTypes['OptionValuePreset']> = {
3588
- createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3589
- id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
3590
- metadata?: Resolver<Maybe<ResolversTypes['JSON']>, ParentType, ContextType>;
3591
- name?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
3592
- updatedAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3593
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3594
- };
3595
- export type OptionValuePresetListResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['OptionValuePresetList'] = ResolversParentTypes['OptionValuePresetList']> = {
3596
- count?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
3597
- items?: Resolver<Array<ResolversTypes['OptionValuePreset']>, ParentType, ContextType>;
3598
- pageInfo?: Resolver<ResolversTypes['PageInfo'], ParentType, ContextType>;
3599
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
3600
- };
3601
3697
  export type OptionValueTranslationResolvers<ContextType = ExecutionContext, ParentType extends ResolversParentTypes['OptionValueTranslation'] = ResolversParentTypes['OptionValueTranslation']> = {
3602
3698
  createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3603
3699
  id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
@@ -3756,7 +3852,7 @@ export type ProductResolvers<ContextType = ExecutionContext, ParentType extends
3756
3852
  assets?: Resolver<ResolversTypes['AssetList'], ParentType, ContextType, Partial<ProductAssetsArgs>>;
3757
3853
  createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
3758
3854
  customFieldEntries?: Resolver<Array<ResolversTypes['ProductCustomField']>, ParentType, ContextType>;
3759
- customFields?: Resolver<ResolversTypes['JSON'], ParentType, ContextType>;
3855
+ customFields?: Resolver<Array<ResolversTypes['CustomField']>, ParentType, ContextType, RequireFields<ProductCustomFieldsArgs, 'keys'>>;
3760
3856
  description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
3761
3857
  enabled?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
3762
3858
  id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
@@ -3812,10 +3908,12 @@ export type QueryResolvers<ContextType = ExecutionContext, ParentType extends Re
3812
3908
  countries?: Resolver<Array<ResolversTypes['Country']>, ParentType, ContextType>;
3813
3909
  customFieldDefinition?: Resolver<Maybe<ResolversTypes['CustomFieldDefinition']>, ParentType, ContextType, RequireFields<QueryCustomFieldDefinitionArgs, 'id'>>;
3814
3910
  customFieldDefinitions?: Resolver<ResolversTypes['CustomFieldDefinitionList'], ParentType, ContextType, Partial<QueryCustomFieldDefinitionsArgs>>;
3911
+ customObject?: Resolver<Maybe<ResolversTypes['CustomObject']>, ParentType, ContextType, Partial<QueryCustomObjectArgs>>;
3815
3912
  customObjectDefinition?: Resolver<Maybe<ResolversTypes['CustomObjectDefinition']>, ParentType, ContextType, RequireFields<QueryCustomObjectDefinitionArgs, 'id'>>;
3816
3913
  customObjectDefinitions?: Resolver<ResolversTypes['CustomObjectDefinitionList'], ParentType, ContextType, Partial<QueryCustomObjectDefinitionsArgs>>;
3817
3914
  customObjectEntries?: Resolver<ResolversTypes['CustomObjectEntryList'], ParentType, ContextType, RequireFields<QueryCustomObjectEntriesArgs, 'definitionId' | 'input'>>;
3818
3915
  customObjectEntry?: Resolver<Maybe<ResolversTypes['CustomObjectEntry']>, ParentType, ContextType, RequireFields<QueryCustomObjectEntryArgs, 'id'>>;
3916
+ customObjects?: Resolver<Maybe<ResolversTypes['CustomObject']>, ParentType, ContextType, RequireFields<QueryCustomObjectsArgs, 'definitionKey'>>;
3819
3917
  customer?: Resolver<Maybe<ResolversTypes['Customer']>, ParentType, ContextType, RequireFields<QueryCustomerArgs, 'id'>>;
3820
3918
  customers?: Resolver<ResolversTypes['CustomerList'], ParentType, ContextType, Partial<QueryCustomersArgs>>;
3821
3919
  discount?: Resolver<Maybe<ResolversTypes['Discount']>, ParentType, ContextType, RequireFields<QueryDiscountArgs, 'id'>>;
@@ -3824,7 +3922,6 @@ export type QueryResolvers<ContextType = ExecutionContext, ParentType extends Re
3824
3922
  location?: Resolver<Maybe<ResolversTypes['Location']>, ParentType, ContextType, RequireFields<QueryLocationArgs, 'id'>>;
3825
3923
  locations?: Resolver<ResolversTypes['LocationList'], ParentType, ContextType, Partial<QueryLocationsArgs>>;
3826
3924
  me?: Resolver<Maybe<ResolversTypes['Customer']>, ParentType, ContextType>;
3827
- optionPresets?: Resolver<ResolversTypes['OptionPresetList'], ParentType, ContextType, Partial<QueryOptionPresetsArgs>>;
3828
3925
  order?: Resolver<Maybe<ResolversTypes['Order']>, ParentType, ContextType, Partial<QueryOrderArgs>>;
3829
3926
  orders?: Resolver<ResolversTypes['OrderList'], ParentType, ContextType, Partial<QueryOrdersArgs>>;
3830
3927
  paymentHandlers?: Resolver<Array<ResolversTypes['PaymentHandler']>, ParentType, ContextType>;
@@ -4019,12 +4116,16 @@ export type Resolvers<ContextType = ExecutionContext> = {
4019
4116
  CollectionTranslation?: CollectionTranslationResolvers<ContextType>;
4020
4117
  Country?: CountryResolvers<ContextType>;
4021
4118
  CreateTagsResult?: CreateTagsResultResolvers<ContextType>;
4119
+ CustomField?: CustomFieldResolvers<ContextType>;
4022
4120
  CustomFieldAppliesToEntity?: CustomFieldAppliesToEntityResolvers;
4023
4121
  CustomFieldDefinition?: CustomFieldDefinitionResolvers<ContextType>;
4024
4122
  CustomFieldDefinitionErrorResult?: CustomFieldDefinitionErrorResultResolvers<ContextType>;
4025
4123
  CustomFieldDefinitionList?: CustomFieldDefinitionListResolvers<ContextType>;
4026
4124
  CustomFieldDefinitionResult?: CustomFieldDefinitionResultResolvers<ContextType>;
4125
+ CustomFieldReference?: CustomFieldReferenceResolvers<ContextType>;
4126
+ CustomFieldReferenceList?: CustomFieldReferenceListResolvers<ContextType>;
4027
4127
  CustomFieldType?: CustomFieldTypeResolvers;
4128
+ CustomObject?: CustomObjectResolvers<ContextType>;
4028
4129
  CustomObjectDefinition?: CustomObjectDefinitionResolvers<ContextType>;
4029
4130
  CustomObjectDefinitionErrorResult?: CustomObjectDefinitionErrorResultResolvers<ContextType>;
4030
4131
  CustomObjectDefinitionList?: CustomObjectDefinitionListResolvers<ContextType>;
@@ -4033,6 +4134,7 @@ export type Resolvers<ContextType = ExecutionContext> = {
4033
4134
  CustomObjectEntryList?: CustomObjectEntryListResolvers<ContextType>;
4034
4135
  CustomObjectEntryValue?: CustomObjectEntryValueResolvers<ContextType>;
4035
4136
  CustomObjectEntryValueTranslation?: CustomObjectEntryValueTranslationResolvers<ContextType>;
4137
+ CustomObjectList?: CustomObjectListResolvers<ContextType>;
4036
4138
  Customer?: CustomerResolvers<ContextType>;
4037
4139
  CustomerErrorResult?: CustomerErrorResultResolvers<ContextType>;
4038
4140
  CustomerList?: CustomerListResolvers<ContextType>;
@@ -4068,13 +4170,9 @@ export type Resolvers<ContextType = ExecutionContext> = {
4068
4170
  Node?: NodeResolvers<ContextType>;
4069
4171
  Option?: OptionResolvers<ContextType>;
4070
4172
  OptionList?: OptionListResolvers<ContextType>;
4071
- OptionPreset?: OptionPresetResolvers<ContextType>;
4072
- OptionPresetList?: OptionPresetListResolvers<ContextType>;
4073
4173
  OptionTranslation?: OptionTranslationResolvers<ContextType>;
4074
4174
  OptionValue?: OptionValueResolvers<ContextType>;
4075
4175
  OptionValueMetadata?: OptionValueMetadataResolvers<ContextType>;
4076
- OptionValuePreset?: OptionValuePresetResolvers<ContextType>;
4077
- OptionValuePresetList?: OptionValuePresetListResolvers<ContextType>;
4078
4176
  OptionValueTranslation?: OptionValueTranslationResolvers<ContextType>;
4079
4177
  Order?: OrderResolvers<ContextType>;
4080
4178
  OrderAddressJson?: OrderAddressJsonResolvers<ContextType>;