@dokamerce/web-sdk 0.21.2 → 0.25.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.
Files changed (28) hide show
  1. package/dist/graphql/__generated__/gateway.d.ts +1590 -661
  2. package/dist/graphql/__generated__/gateway.js +424 -63
  3. package/dist/graphql/__generated__/gateway.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/web-sdk/src/functions/init-sdk-client.function.d.ts +1 -2
  6. package/dist/web-sdk/src/functions/init-sdk.function.d.ts +1 -2
  7. package/dist/web-sdk/src/index.d.ts +5 -13
  8. package/dist/web-sdk/src/index.js +18 -36
  9. package/dist/web-sdk/src/index.js.map +1 -1
  10. package/dist/web-sdk/src/main.d.ts +10 -0
  11. package/dist/web-sdk/src/main.js +43 -0
  12. package/dist/web-sdk/src/main.js.map +1 -0
  13. package/dist/web-sdk/src/services/attributes.d.ts +1 -1
  14. package/dist/web-sdk/src/services/customer-addresses.d.ts +10 -0
  15. package/dist/web-sdk/src/services/customer-addresses.js +27 -0
  16. package/dist/web-sdk/src/services/customer-addresses.js.map +1 -0
  17. package/dist/web-sdk/src/services/customer-email-addresses.d.ts +10 -0
  18. package/dist/web-sdk/src/services/customer-email-addresses.js +27 -0
  19. package/dist/web-sdk/src/services/customer-email-addresses.js.map +1 -0
  20. package/dist/web-sdk/src/services/customer-telephone-numbers.d.ts +10 -0
  21. package/dist/web-sdk/src/services/customer-telephone-numbers.js +27 -0
  22. package/dist/web-sdk/src/services/customer-telephone-numbers.js.map +1 -0
  23. package/dist/web-sdk/src/services/index.d.ts +4 -0
  24. package/dist/web-sdk/src/services/index.js +4 -0
  25. package/dist/web-sdk/src/services/index.js.map +1 -1
  26. package/dist/web-sdk/src/services/products.d.ts +1 -1
  27. package/dist/web-sdk/src/typings/sdk.typing.d.ts +6 -5
  28. package/package.json +2 -2
@@ -153,6 +153,7 @@ export type CartItem = {
153
153
  };
154
154
  export type Category = {
155
155
  __typename?: 'Category';
156
+ active: Scalars['Boolean']['output'];
156
157
  children?: Maybe<Array<Category>>;
157
158
  createdAt: Scalars['DateTime']['output'];
158
159
  description?: Maybe<Scalars['String']['output']>;
@@ -488,6 +489,10 @@ export type CreateCustomerAddressInput = {
488
489
  regionCode?: InputMaybe<RegionCodeEnum>;
489
490
  regionName?: InputMaybe<Scalars['String']['input']>;
490
491
  };
492
+ export type CreateCustomerEmailAddressInput = {
493
+ roles?: InputMaybe<Array<EmailAddressRole>>;
494
+ value: Scalars['String']['input'];
495
+ };
491
496
  export type CreateCustomerInput = {
492
497
  active?: Scalars['Boolean']['input'];
493
498
  addresses?: InputMaybe<Array<CreateCustomerAddressInput>>;
@@ -521,6 +526,7 @@ export type CreateProductInput = {
521
526
  name: Scalars['String']['input'];
522
527
  price: Scalars['Float']['input'];
523
528
  publishedAt: Scalars['DateTime']['input'];
529
+ seller?: InputMaybe<ProductSellerInput>;
524
530
  shippingId?: InputMaybe<Scalars['ID']['input']>;
525
531
  sizeGroupId: Scalars['ID']['input'];
526
532
  status: ProductType;
@@ -608,9 +614,11 @@ export type Customer = {
608
614
  active: Scalars['Boolean']['output'];
609
615
  addresses?: Maybe<Array<CustomerAddress>>;
610
616
  createdAt: Scalars['DateTime']['output'];
617
+ emails?: Maybe<Array<CustomerEmailAddress>>;
611
618
  fullName: Scalars['String']['output'];
612
619
  id: Scalars['ID']['output'];
613
620
  image?: Maybe<File>;
621
+ orderCount: Scalars['Int']['output'];
614
622
  tags?: Maybe<Array<Tag>>;
615
623
  telephoneNumbers?: Maybe<Array<CustomerTelephoneNumber>>;
616
624
  updatedAt: Scalars['DateTime']['output'];
@@ -654,6 +662,34 @@ export type CustomerAddressSort = {
654
662
  field: CustomerAddressFieldsEnum;
655
663
  order?: InputMaybe<SortOrderEnum>;
656
664
  };
665
+ export type CustomerEmailAddress = {
666
+ __typename?: 'CustomerEmailAddress';
667
+ bcc: Scalars['Boolean']['output'];
668
+ confirmed: Scalars['Boolean']['output'];
669
+ createdAt: Scalars['DateTime']['output'];
670
+ emailAddress: EmailAddress;
671
+ id: Scalars['ID']['output'];
672
+ roles?: Maybe<Array<EmailAddressRole>>;
673
+ updatedAt: Scalars['DateTime']['output'];
674
+ };
675
+ export declare enum CustomerEmailAddressFieldsEnum {
676
+ Bcc = "bcc",
677
+ Confirmed = "confirmed",
678
+ CreatedAt = "createdAt",
679
+ Id = "id",
680
+ Roles = "roles",
681
+ UpdatedAt = "updatedAt"
682
+ }
683
+ export type CustomerEmailAddressFilter = {
684
+ createdAt?: InputMaybe<DateTimeArrayFilter>;
685
+ id?: InputMaybe<IdArrayFilter>;
686
+ roles?: InputMaybe<EmailAddressesRoleEnumArrayFilter>;
687
+ updatedAt?: InputMaybe<DateTimeArrayFilter>;
688
+ };
689
+ export type CustomerEmailAddressSort = {
690
+ field: CustomerEmailAddressFieldsEnum;
691
+ order?: InputMaybe<SortOrderEnum>;
692
+ };
657
693
  export declare enum CustomerFieldsEnum {
658
694
  Active = "active",
659
695
  CreatedAt = "createdAt",
@@ -714,6 +750,24 @@ export type DateTimeFilter = {
714
750
  not?: InputMaybe<Scalars['DateTime']['input']>;
715
751
  notIn?: InputMaybe<Array<Scalars['DateTime']['input']>>;
716
752
  };
753
+ export type EmailAddress = {
754
+ __typename?: 'EmailAddress';
755
+ createdAt: Scalars['DateTime']['output'];
756
+ id: Scalars['ID']['output'];
757
+ value?: Maybe<Scalars['String']['output']>;
758
+ };
759
+ export declare enum EmailAddressRole {
760
+ Billing = "BILLING",
761
+ Marketing = "MARKETING",
762
+ Notification = "NOTIFICATION",
763
+ Primary = "PRIMARY",
764
+ Support = "SUPPORT"
765
+ }
766
+ export type EmailAddressesRoleEnumArrayFilter = {
767
+ every?: InputMaybe<Array<EmailAddressRole>>;
768
+ none?: InputMaybe<Array<EmailAddressRole>>;
769
+ some?: InputMaybe<Array<EmailAddressRole>>;
770
+ };
717
771
  export type File = {
718
772
  __typename?: 'File';
719
773
  createdAt: Scalars['DateTime']['output'];
@@ -831,6 +885,16 @@ export type InfiniteCustomerEdge = {
831
885
  cursor: Scalars['String']['output'];
832
886
  node: Customer;
833
887
  };
888
+ export type InfiniteCustomerEmailAddressEdge = {
889
+ __typename?: 'InfiniteCustomerEmailAddressEdge';
890
+ cursor: Scalars['String']['output'];
891
+ node: CustomerEmailAddress;
892
+ };
893
+ export type InfiniteCustomerEmailAddressesConnection = {
894
+ __typename?: 'InfiniteCustomerEmailAddressesConnection';
895
+ edges: Array<InfiniteCustomerEmailAddressEdge>;
896
+ pageInfo: InfinitePageInfo;
897
+ };
834
898
  export type InfiniteCustomerTelephoneNumberEdge = {
835
899
  __typename?: 'InfiniteCustomerTelephoneNumberEdge';
836
900
  cursor: Scalars['String']['output'];
@@ -957,10 +1021,12 @@ export type Mutation = {
957
1021
  completeFileUpload: File;
958
1022
  createCustomer: Customer;
959
1023
  createCustomerAddress: CustomerAddress;
1024
+ createCustomerEmailAddress: CustomerEmailAddress;
960
1025
  createCustomerTelephoneNumber: CustomerTelephoneNumber;
961
1026
  createProduct: Product;
962
1027
  createSeller: Seller;
963
1028
  deleteCustomerAddress: Status;
1029
+ deleteCustomerEmailAddress: Status;
964
1030
  deleteCustomerTelephoneNumber: Status;
965
1031
  deleteProduct: Status;
966
1032
  deleteSeller: Status;
@@ -971,6 +1037,7 @@ export type Mutation = {
971
1037
  updateCartItem?: Maybe<Cart>;
972
1038
  updateCustomer: Customer;
973
1039
  updateCustomerAddress: CustomerAddress;
1040
+ updateCustomerEmailAddress: CustomerEmailAddress;
974
1041
  updateCustomerTelephoneNumber: CustomerTelephoneNumber;
975
1042
  updateProduct: Product;
976
1043
  updateSeller: Seller;
@@ -987,9 +1054,15 @@ export type MutationCreateCustomerArgs = {
987
1054
  data: CreateCustomerInput;
988
1055
  };
989
1056
  export type MutationCreateCustomerAddressArgs = {
1057
+ customerId: Scalars['ID']['input'];
990
1058
  data: CreateCustomerAddressInput;
991
1059
  };
1060
+ export type MutationCreateCustomerEmailAddressArgs = {
1061
+ customerId: Scalars['ID']['input'];
1062
+ data: CreateCustomerEmailAddressInput;
1063
+ };
992
1064
  export type MutationCreateCustomerTelephoneNumberArgs = {
1065
+ customerId: Scalars['ID']['input'];
993
1066
  data: CreateCustomerTelephoneNumberInput;
994
1067
  };
995
1068
  export type MutationCreateProductArgs = {
@@ -999,9 +1072,15 @@ export type MutationCreateSellerArgs = {
999
1072
  data: CreateSellerInput;
1000
1073
  };
1001
1074
  export type MutationDeleteCustomerAddressArgs = {
1075
+ customerId: Scalars['ID']['input'];
1076
+ id: Scalars['ID']['input'];
1077
+ };
1078
+ export type MutationDeleteCustomerEmailAddressArgs = {
1079
+ customerId: Scalars['ID']['input'];
1002
1080
  id: Scalars['ID']['input'];
1003
1081
  };
1004
1082
  export type MutationDeleteCustomerTelephoneNumberArgs = {
1083
+ customerId: Scalars['ID']['input'];
1005
1084
  id: Scalars['ID']['input'];
1006
1085
  };
1007
1086
  export type MutationDeleteProductArgs = {
@@ -1034,10 +1113,17 @@ export type MutationUpdateCustomerArgs = {
1034
1113
  id: Scalars['ID']['input'];
1035
1114
  };
1036
1115
  export type MutationUpdateCustomerAddressArgs = {
1116
+ customerId: Scalars['ID']['input'];
1037
1117
  data: UpdateCustomerAddressInput;
1038
1118
  id: Scalars['ID']['input'];
1039
1119
  };
1120
+ export type MutationUpdateCustomerEmailAddressArgs = {
1121
+ customerId: Scalars['ID']['input'];
1122
+ data: UpdateCustomerEmailAddressInput;
1123
+ id: Scalars['ID']['input'];
1124
+ };
1040
1125
  export type MutationUpdateCustomerTelephoneNumberArgs = {
1126
+ customerId: Scalars['ID']['input'];
1041
1127
  data: UpdateCustomerTelephoneNumberInput;
1042
1128
  id: Scalars['ID']['input'];
1043
1129
  };
@@ -1156,6 +1242,16 @@ export type PaginatedCustomerEdge = {
1156
1242
  cursor: Scalars['String']['output'];
1157
1243
  node: Customer;
1158
1244
  };
1245
+ export type PaginatedCustomerEmailAddressEdge = {
1246
+ __typename?: 'PaginatedCustomerEmailAddressEdge';
1247
+ cursor: Scalars['String']['output'];
1248
+ node: CustomerEmailAddress;
1249
+ };
1250
+ export type PaginatedCustomerEmailAddressesConnection = {
1251
+ __typename?: 'PaginatedCustomerEmailAddressesConnection';
1252
+ edges: Array<PaginatedCustomerEmailAddressEdge>;
1253
+ pageInfo: PaginatedPageInfo;
1254
+ };
1159
1255
  export type PaginatedCustomerTelephoneNumberEdge = {
1160
1256
  __typename?: 'PaginatedCustomerTelephoneNumberEdge';
1161
1257
  cursor: Scalars['String']['output'];
@@ -1260,6 +1356,7 @@ export type Product = {
1260
1356
  name: Scalars['String']['output'];
1261
1357
  price: Scalars['Float']['output'];
1262
1358
  publishedAt?: Maybe<Scalars['DateTime']['output']>;
1359
+ sellers: Array<ProductSeller>;
1263
1360
  slug: Scalars['String']['output'];
1264
1361
  soldCount: Scalars['Int']['output'];
1265
1362
  status: ProductStatus;
@@ -1340,6 +1437,32 @@ export type ProductFilter = {
1340
1437
  type?: InputMaybe<ProductTypeEnumFilter>;
1341
1438
  views?: InputMaybe<NumberFilter>;
1342
1439
  };
1440
+ export type ProductSeller = {
1441
+ __typename?: 'ProductSeller';
1442
+ active?: Maybe<Scalars['Boolean']['output']>;
1443
+ barcode?: Maybe<Scalars['String']['output']>;
1444
+ discountEndAt?: Maybe<Scalars['Float']['output']>;
1445
+ discountFixed?: Maybe<Scalars['Float']['output']>;
1446
+ discountPercentage?: Maybe<Scalars['Float']['output']>;
1447
+ discountStartAt?: Maybe<Scalars['Float']['output']>;
1448
+ priceDiff: Scalars['Float']['output'];
1449
+ quantity: Scalars['Int']['output'];
1450
+ seller: Seller;
1451
+ sku?: Maybe<Scalars['String']['output']>;
1452
+ variant?: Maybe<Array<ProductVariant>>;
1453
+ };
1454
+ export type ProductSellerInput = {
1455
+ active?: InputMaybe<Scalars['Boolean']['input']>;
1456
+ barcode?: InputMaybe<Scalars['String']['input']>;
1457
+ discountEndAt?: InputMaybe<Scalars['Float']['input']>;
1458
+ discountFixed?: InputMaybe<Scalars['Float']['input']>;
1459
+ discountPercentage?: InputMaybe<Scalars['Float']['input']>;
1460
+ discountStartAt?: InputMaybe<Scalars['Float']['input']>;
1461
+ priceDiff: Scalars['Float']['input'];
1462
+ quantity: Scalars['Int']['input'];
1463
+ sellerId?: InputMaybe<Scalars['ID']['input']>;
1464
+ sku?: InputMaybe<Scalars['String']['input']>;
1465
+ };
1343
1466
  export type ProductSort = {
1344
1467
  field: ProductFieldsEnum;
1345
1468
  order?: InputMaybe<SortOrderEnum>;
@@ -1372,7 +1495,6 @@ export type ProductVariant = {
1372
1495
  attributes: Array<ProductVariantAttribute>;
1373
1496
  default: Scalars['Boolean']['output'];
1374
1497
  id: Scalars['ID']['output'];
1375
- sellers: Array<ProductVariantSeller>;
1376
1498
  };
1377
1499
  export type ProductVariantAttribute = {
1378
1500
  __typename?: 'ProductVariantAttribute';
@@ -1387,38 +1509,7 @@ export type ProductVariantInput = {
1387
1509
  active?: InputMaybe<Scalars['Boolean']['input']>;
1388
1510
  attributes: Array<ProductVariantAttributeInput>;
1389
1511
  color?: InputMaybe<Scalars['String']['input']>;
1390
- sellers?: InputMaybe<Array<ProductVariantSellerInput>>;
1391
- };
1392
- export type ProductVariantSeller = {
1393
- __typename?: 'ProductVariantSeller';
1394
- active?: Maybe<Scalars['Boolean']['output']>;
1395
- barcode?: Maybe<Scalars['String']['output']>;
1396
- discountEndAt?: Maybe<Scalars['Float']['output']>;
1397
- discountFixed?: Maybe<Scalars['Float']['output']>;
1398
- discountPercentage?: Maybe<Scalars['Float']['output']>;
1399
- discountStartAt?: Maybe<Scalars['Float']['output']>;
1400
- priceDiff: Scalars['Float']['output'];
1401
- quantity: Scalars['Int']['output'];
1402
- seller: Seller;
1403
- sku?: Maybe<Scalars['String']['output']>;
1404
- stock: ProductVariantStock;
1405
- };
1406
- export type ProductVariantSellerInput = {
1407
- active?: InputMaybe<Scalars['Boolean']['input']>;
1408
- barcode?: InputMaybe<Scalars['String']['input']>;
1409
- discountEndAt?: InputMaybe<Scalars['Float']['input']>;
1410
- discountFixed?: InputMaybe<Scalars['Float']['input']>;
1411
- discountPercentage?: InputMaybe<Scalars['Float']['input']>;
1412
- discountStartAt?: InputMaybe<Scalars['Float']['input']>;
1413
- priceDiff: Scalars['Float']['input'];
1414
- quantity: Scalars['Int']['input'];
1415
- sellerId?: InputMaybe<Scalars['ID']['input']>;
1416
- sku?: InputMaybe<Scalars['String']['input']>;
1417
- };
1418
- export type ProductVariantStock = {
1419
- __typename?: 'ProductVariantStock';
1420
- quantity: Scalars['Int']['output'];
1421
- seller: Array<Seller>;
1512
+ sellers?: InputMaybe<Array<ProductSellerInput>>;
1422
1513
  };
1423
1514
  export type Query = {
1424
1515
  __typename?: 'Query';
@@ -1430,8 +1521,6 @@ export type Query = {
1430
1521
  cart?: Maybe<Cart>;
1431
1522
  customField?: Maybe<Array<CustomField>>;
1432
1523
  customer?: Maybe<Customer>;
1433
- customerCustomerAddress?: Maybe<CustomerAddress>;
1434
- customerTelephoneNumber?: Maybe<CustomerTelephoneNumber>;
1435
1524
  file: File;
1436
1525
  infiniteAttributes: InfiniteAttributesConnection;
1437
1526
  infiniteBrands: InfiniteBrandsConnection;
@@ -1439,6 +1528,7 @@ export type Query = {
1439
1528
  infiniteColors: InfiniteColorsConnection;
1440
1529
  infiniteCustomFields: InfiniteCustomFieldsConnection;
1441
1530
  infiniteCustomerAddress: InfiniteCustomerAddressesConnection;
1531
+ infiniteCustomerEmailAddresses: InfiniteCustomerEmailAddressesConnection;
1442
1532
  infiniteCustomerTelephoneNumbers: InfiniteCustomerTelephoneNumbersConnection;
1443
1533
  infiniteCustomers: InfiniteCustomersConnection;
1444
1534
  infiniteMetrics: InfiniteMetricsConnection;
@@ -1455,6 +1545,7 @@ export type Query = {
1455
1545
  paginatedColors?: Maybe<PaginatedColorsConnection>;
1456
1546
  paginatedCustomFields?: Maybe<PaginatedCustomFieldsConnection>;
1457
1547
  paginatedCustomerAddress: PaginatedCustomerAddressesConnection;
1548
+ paginatedCustomerEmailAddresses: PaginatedCustomerEmailAddressesConnection;
1458
1549
  paginatedCustomerTelephoneNumbers: PaginatedCustomerTelephoneNumbersConnection;
1459
1550
  paginatedCustomers?: Maybe<PaginatedCustomersConnection>;
1460
1551
  paginatedMetrics?: Maybe<PaginatedMetricsConnection>;
@@ -1463,7 +1554,7 @@ export type Query = {
1463
1554
  paginatedSellers?: Maybe<PaginatedSellersConnection>;
1464
1555
  paginatedSizes?: Maybe<PaginatedSizesConnection>;
1465
1556
  paginatedTags?: Maybe<PaginatedTagsConnection>;
1466
- product?: Maybe<Array<Product>>;
1557
+ product?: Maybe<Product>;
1467
1558
  seller?: Maybe<Seller>;
1468
1559
  size?: Maybe<Array<SizeGroup>>;
1469
1560
  tag?: Maybe<Array<Tag>>;
@@ -1491,12 +1582,6 @@ export type QueryCustomFieldArgs = {
1491
1582
  export type QueryCustomerArgs = {
1492
1583
  id: Scalars['ID']['input'];
1493
1584
  };
1494
- export type QueryCustomerCustomerAddressArgs = {
1495
- id: Scalars['ID']['input'];
1496
- };
1497
- export type QueryCustomerTelephoneNumberArgs = {
1498
- id: Scalars['ID']['input'];
1499
- };
1500
1585
  export type QueryFileArgs = {
1501
1586
  id: Scalars['ID']['input'];
1502
1587
  };
@@ -1543,14 +1628,25 @@ export type QueryInfiniteCustomFieldsArgs = {
1543
1628
  export type QueryInfiniteCustomerAddressArgs = {
1544
1629
  after?: InputMaybe<Scalars['String']['input']>;
1545
1630
  before?: InputMaybe<Scalars['String']['input']>;
1631
+ customerId: Scalars['ID']['input'];
1546
1632
  filter?: InputMaybe<CustomerAddressFilter>;
1547
1633
  first?: InputMaybe<Scalars['Int']['input']>;
1548
1634
  last?: InputMaybe<Scalars['Int']['input']>;
1549
1635
  sort?: InputMaybe<Array<CustomerAddressSort>>;
1550
1636
  };
1637
+ export type QueryInfiniteCustomerEmailAddressesArgs = {
1638
+ after?: InputMaybe<Scalars['String']['input']>;
1639
+ before?: InputMaybe<Scalars['String']['input']>;
1640
+ customerId: Scalars['ID']['input'];
1641
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
1642
+ first?: InputMaybe<Scalars['Int']['input']>;
1643
+ last?: InputMaybe<Scalars['Int']['input']>;
1644
+ sort?: InputMaybe<Array<CustomerEmailAddressSort>>;
1645
+ };
1551
1646
  export type QueryInfiniteCustomerTelephoneNumbersArgs = {
1552
1647
  after?: InputMaybe<Scalars['String']['input']>;
1553
1648
  before?: InputMaybe<Scalars['String']['input']>;
1649
+ customerId: Scalars['ID']['input'];
1554
1650
  filter?: InputMaybe<CustomerTelephoneNumberFilter>;
1555
1651
  first?: InputMaybe<Scalars['Int']['input']>;
1556
1652
  last?: InputMaybe<Scalars['Int']['input']>;
@@ -1649,12 +1745,21 @@ export type QueryPaginatedCustomFieldsArgs = {
1649
1745
  sort?: InputMaybe<Array<CustomFieldSort>>;
1650
1746
  };
1651
1747
  export type QueryPaginatedCustomerAddressArgs = {
1748
+ customerId: Scalars['ID']['input'];
1652
1749
  filter?: InputMaybe<CustomerAddressFilter>;
1653
1750
  limit?: InputMaybe<Scalars['Int']['input']>;
1654
1751
  page?: InputMaybe<Scalars['Int']['input']>;
1655
1752
  sort?: InputMaybe<Array<CustomerAddressSort>>;
1656
1753
  };
1754
+ export type QueryPaginatedCustomerEmailAddressesArgs = {
1755
+ customerId: Scalars['ID']['input'];
1756
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
1757
+ limit?: InputMaybe<Scalars['Int']['input']>;
1758
+ page?: InputMaybe<Scalars['Int']['input']>;
1759
+ sort?: InputMaybe<Array<CustomerEmailAddressSort>>;
1760
+ };
1657
1761
  export type QueryPaginatedCustomerTelephoneNumbersArgs = {
1762
+ customerId: Scalars['ID']['input'];
1658
1763
  filter?: InputMaybe<CustomerTelephoneNumberFilter>;
1659
1764
  limit?: InputMaybe<Scalars['Int']['input']>;
1660
1765
  page?: InputMaybe<Scalars['Int']['input']>;
@@ -2573,6 +2678,10 @@ export type UpdateCustomerAddressInput = {
2573
2678
  regionCode?: InputMaybe<RegionCodeEnum>;
2574
2679
  regionName?: InputMaybe<Scalars['String']['input']>;
2575
2680
  };
2681
+ export type UpdateCustomerEmailAddressInput = {
2682
+ roles?: InputMaybe<Array<EmailAddressRole>>;
2683
+ value?: InputMaybe<Scalars['String']['input']>;
2684
+ };
2576
2685
  export type UpdateCustomerInput = {
2577
2686
  active?: InputMaybe<Scalars['Boolean']['input']>;
2578
2687
  addresses?: InputMaybe<Array<CreateCustomerAddressInput>>;
@@ -2606,6 +2715,7 @@ export type UpdateProductInput = {
2606
2715
  name?: InputMaybe<Scalars['String']['input']>;
2607
2716
  price?: InputMaybe<Scalars['Float']['input']>;
2608
2717
  publishedAt?: InputMaybe<Scalars['DateTime']['input']>;
2718
+ seller?: InputMaybe<ProductSellerInput>;
2609
2719
  shippingId?: InputMaybe<Scalars['ID']['input']>;
2610
2720
  sizeGroupId?: InputMaybe<Scalars['ID']['input']>;
2611
2721
  status?: InputMaybe<ProductType>;
@@ -2830,10 +2940,22 @@ export type CartItemFragmentFragment = {
2830
2940
  address?: {
2831
2941
  __typename?: 'CustomerAddress';
2832
2942
  id: string;
2943
+ name?: string | null;
2944
+ postalCode?: string | null;
2945
+ regionCode?: RegionCodeEnum | null;
2946
+ regionName?: string | null;
2833
2947
  address?: string | null;
2834
2948
  address2?: string | null;
2949
+ city?: string | null;
2950
+ countryCode?: CountryCodeEnum | null;
2951
+ default: boolean;
2835
2952
  createdAt: any;
2836
2953
  updatedAt: any;
2954
+ geometry?: {
2955
+ __typename?: 'Geometry';
2956
+ coordinates: any;
2957
+ type: string;
2958
+ } | null;
2837
2959
  } | null;
2838
2960
  product: {
2839
2961
  __typename?: 'Product';
@@ -2898,48 +3020,6 @@ export type CartItemFragmentFragment = {
2898
3020
  }> | null;
2899
3021
  };
2900
3022
  }>;
2901
- sellers: Array<{
2902
- __typename?: 'ProductVariantSeller';
2903
- active?: boolean | null;
2904
- barcode?: string | null;
2905
- discountEndAt?: number | null;
2906
- discountFixed?: number | null;
2907
- discountPercentage?: number | null;
2908
- discountStartAt?: number | null;
2909
- priceDiff: number;
2910
- quantity: number;
2911
- sku?: string | null;
2912
- seller: {
2913
- __typename?: 'Seller';
2914
- id: string;
2915
- name: string;
2916
- description?: string | null;
2917
- active: boolean;
2918
- orderNumber: number;
2919
- slug: string;
2920
- rating?: number | null;
2921
- verified: boolean;
2922
- createdAt: any;
2923
- updatedAt: any;
2924
- };
2925
- stock: {
2926
- __typename?: 'ProductVariantStock';
2927
- quantity: number;
2928
- seller: Array<{
2929
- __typename?: 'Seller';
2930
- id: string;
2931
- name: string;
2932
- description?: string | null;
2933
- active: boolean;
2934
- orderNumber: number;
2935
- slug: string;
2936
- rating?: number | null;
2937
- verified: boolean;
2938
- createdAt: any;
2939
- updatedAt: any;
2940
- }>;
2941
- };
2942
- }>;
2943
3023
  }>;
2944
3024
  };
2945
3025
  export type AddToCartMutationVariables = Exact<{
@@ -2970,10 +3050,22 @@ export type AddToCartMutation = {
2970
3050
  address?: {
2971
3051
  __typename?: 'CustomerAddress';
2972
3052
  id: string;
3053
+ name?: string | null;
3054
+ postalCode?: string | null;
3055
+ regionCode?: RegionCodeEnum | null;
3056
+ regionName?: string | null;
2973
3057
  address?: string | null;
2974
3058
  address2?: string | null;
3059
+ city?: string | null;
3060
+ countryCode?: CountryCodeEnum | null;
3061
+ default: boolean;
2975
3062
  createdAt: any;
2976
3063
  updatedAt: any;
3064
+ geometry?: {
3065
+ __typename?: 'Geometry';
3066
+ coordinates: any;
3067
+ type: string;
3068
+ } | null;
2977
3069
  } | null;
2978
3070
  product: {
2979
3071
  __typename?: 'Product';
@@ -3038,57 +3130,27 @@ export type AddToCartMutation = {
3038
3130
  }> | null;
3039
3131
  };
3040
3132
  }>;
3041
- sellers: Array<{
3042
- __typename?: 'ProductVariantSeller';
3043
- active?: boolean | null;
3044
- barcode?: string | null;
3045
- discountEndAt?: number | null;
3046
- discountFixed?: number | null;
3047
- discountPercentage?: number | null;
3048
- discountStartAt?: number | null;
3049
- priceDiff: number;
3050
- quantity: number;
3051
- sku?: string | null;
3052
- seller: {
3053
- __typename?: 'Seller';
3054
- id: string;
3055
- name: string;
3056
- description?: string | null;
3057
- active: boolean;
3058
- orderNumber: number;
3059
- slug: string;
3060
- rating?: number | null;
3061
- verified: boolean;
3062
- createdAt: any;
3063
- updatedAt: any;
3064
- };
3065
- stock: {
3066
- __typename?: 'ProductVariantStock';
3067
- quantity: number;
3068
- seller: Array<{
3069
- __typename?: 'Seller';
3070
- id: string;
3071
- name: string;
3072
- description?: string | null;
3073
- active: boolean;
3074
- orderNumber: number;
3075
- slug: string;
3076
- rating?: number | null;
3077
- verified: boolean;
3078
- createdAt: any;
3079
- updatedAt: any;
3080
- }>;
3081
- };
3082
- }>;
3083
3133
  }>;
3084
3134
  }>;
3085
3135
  address?: {
3086
3136
  __typename?: 'CustomerAddress';
3087
3137
  id: string;
3138
+ name?: string | null;
3139
+ postalCode?: string | null;
3140
+ regionCode?: RegionCodeEnum | null;
3141
+ regionName?: string | null;
3088
3142
  address?: string | null;
3089
3143
  address2?: string | null;
3144
+ city?: string | null;
3145
+ countryCode?: CountryCodeEnum | null;
3146
+ default: boolean;
3090
3147
  createdAt: any;
3091
3148
  updatedAt: any;
3149
+ geometry?: {
3150
+ __typename?: 'Geometry';
3151
+ coordinates: any;
3152
+ type: string;
3153
+ } | null;
3092
3154
  } | null;
3093
3155
  } | null;
3094
3156
  };
@@ -3120,10 +3182,22 @@ export type RemoveFromCartMutation = {
3120
3182
  address?: {
3121
3183
  __typename?: 'CustomerAddress';
3122
3184
  id: string;
3185
+ name?: string | null;
3186
+ postalCode?: string | null;
3187
+ regionCode?: RegionCodeEnum | null;
3188
+ regionName?: string | null;
3123
3189
  address?: string | null;
3124
3190
  address2?: string | null;
3191
+ city?: string | null;
3192
+ countryCode?: CountryCodeEnum | null;
3193
+ default: boolean;
3125
3194
  createdAt: any;
3126
3195
  updatedAt: any;
3196
+ geometry?: {
3197
+ __typename?: 'Geometry';
3198
+ coordinates: any;
3199
+ type: string;
3200
+ } | null;
3127
3201
  } | null;
3128
3202
  product: {
3129
3203
  __typename?: 'Product';
@@ -3188,57 +3262,27 @@ export type RemoveFromCartMutation = {
3188
3262
  }> | null;
3189
3263
  };
3190
3264
  }>;
3191
- sellers: Array<{
3192
- __typename?: 'ProductVariantSeller';
3193
- active?: boolean | null;
3194
- barcode?: string | null;
3195
- discountEndAt?: number | null;
3196
- discountFixed?: number | null;
3197
- discountPercentage?: number | null;
3198
- discountStartAt?: number | null;
3199
- priceDiff: number;
3200
- quantity: number;
3201
- sku?: string | null;
3202
- seller: {
3203
- __typename?: 'Seller';
3204
- id: string;
3205
- name: string;
3206
- description?: string | null;
3207
- active: boolean;
3208
- orderNumber: number;
3209
- slug: string;
3210
- rating?: number | null;
3211
- verified: boolean;
3212
- createdAt: any;
3213
- updatedAt: any;
3214
- };
3215
- stock: {
3216
- __typename?: 'ProductVariantStock';
3217
- quantity: number;
3218
- seller: Array<{
3219
- __typename?: 'Seller';
3220
- id: string;
3221
- name: string;
3222
- description?: string | null;
3223
- active: boolean;
3224
- orderNumber: number;
3225
- slug: string;
3226
- rating?: number | null;
3227
- verified: boolean;
3228
- createdAt: any;
3229
- updatedAt: any;
3230
- }>;
3231
- };
3232
- }>;
3233
3265
  }>;
3234
3266
  }>;
3235
3267
  address?: {
3236
3268
  __typename?: 'CustomerAddress';
3237
3269
  id: string;
3270
+ name?: string | null;
3271
+ postalCode?: string | null;
3272
+ regionCode?: RegionCodeEnum | null;
3273
+ regionName?: string | null;
3238
3274
  address?: string | null;
3239
3275
  address2?: string | null;
3276
+ city?: string | null;
3277
+ countryCode?: CountryCodeEnum | null;
3278
+ default: boolean;
3240
3279
  createdAt: any;
3241
3280
  updatedAt: any;
3281
+ geometry?: {
3282
+ __typename?: 'Geometry';
3283
+ coordinates: any;
3284
+ type: string;
3285
+ } | null;
3242
3286
  } | null;
3243
3287
  } | null;
3244
3288
  };
@@ -3270,10 +3314,22 @@ export type SetCartAddressMutation = {
3270
3314
  address?: {
3271
3315
  __typename?: 'CustomerAddress';
3272
3316
  id: string;
3317
+ name?: string | null;
3318
+ postalCode?: string | null;
3319
+ regionCode?: RegionCodeEnum | null;
3320
+ regionName?: string | null;
3273
3321
  address?: string | null;
3274
3322
  address2?: string | null;
3323
+ city?: string | null;
3324
+ countryCode?: CountryCodeEnum | null;
3325
+ default: boolean;
3275
3326
  createdAt: any;
3276
3327
  updatedAt: any;
3328
+ geometry?: {
3329
+ __typename?: 'Geometry';
3330
+ coordinates: any;
3331
+ type: string;
3332
+ } | null;
3277
3333
  } | null;
3278
3334
  product: {
3279
3335
  __typename?: 'Product';
@@ -3338,57 +3394,27 @@ export type SetCartAddressMutation = {
3338
3394
  }> | null;
3339
3395
  };
3340
3396
  }>;
3341
- sellers: Array<{
3342
- __typename?: 'ProductVariantSeller';
3343
- active?: boolean | null;
3344
- barcode?: string | null;
3345
- discountEndAt?: number | null;
3346
- discountFixed?: number | null;
3347
- discountPercentage?: number | null;
3348
- discountStartAt?: number | null;
3349
- priceDiff: number;
3350
- quantity: number;
3351
- sku?: string | null;
3352
- seller: {
3353
- __typename?: 'Seller';
3354
- id: string;
3355
- name: string;
3356
- description?: string | null;
3357
- active: boolean;
3358
- orderNumber: number;
3359
- slug: string;
3360
- rating?: number | null;
3361
- verified: boolean;
3362
- createdAt: any;
3363
- updatedAt: any;
3364
- };
3365
- stock: {
3366
- __typename?: 'ProductVariantStock';
3367
- quantity: number;
3368
- seller: Array<{
3369
- __typename?: 'Seller';
3370
- id: string;
3371
- name: string;
3372
- description?: string | null;
3373
- active: boolean;
3374
- orderNumber: number;
3375
- slug: string;
3376
- rating?: number | null;
3377
- verified: boolean;
3378
- createdAt: any;
3379
- updatedAt: any;
3380
- }>;
3381
- };
3382
- }>;
3383
3397
  }>;
3384
3398
  }>;
3385
3399
  address?: {
3386
3400
  __typename?: 'CustomerAddress';
3387
3401
  id: string;
3402
+ name?: string | null;
3403
+ postalCode?: string | null;
3404
+ regionCode?: RegionCodeEnum | null;
3405
+ regionName?: string | null;
3388
3406
  address?: string | null;
3389
3407
  address2?: string | null;
3408
+ city?: string | null;
3409
+ countryCode?: CountryCodeEnum | null;
3410
+ default: boolean;
3390
3411
  createdAt: any;
3391
3412
  updatedAt: any;
3413
+ geometry?: {
3414
+ __typename?: 'Geometry';
3415
+ coordinates: any;
3416
+ type: string;
3417
+ } | null;
3392
3418
  } | null;
3393
3419
  } | null;
3394
3420
  };
@@ -3421,10 +3447,22 @@ export type UpdateCartItemMutation = {
3421
3447
  address?: {
3422
3448
  __typename?: 'CustomerAddress';
3423
3449
  id: string;
3450
+ name?: string | null;
3451
+ postalCode?: string | null;
3452
+ regionCode?: RegionCodeEnum | null;
3453
+ regionName?: string | null;
3424
3454
  address?: string | null;
3425
3455
  address2?: string | null;
3456
+ city?: string | null;
3457
+ countryCode?: CountryCodeEnum | null;
3458
+ default: boolean;
3426
3459
  createdAt: any;
3427
3460
  updatedAt: any;
3461
+ geometry?: {
3462
+ __typename?: 'Geometry';
3463
+ coordinates: any;
3464
+ type: string;
3465
+ } | null;
3428
3466
  } | null;
3429
3467
  product: {
3430
3468
  __typename?: 'Product';
@@ -3489,57 +3527,27 @@ export type UpdateCartItemMutation = {
3489
3527
  }> | null;
3490
3528
  };
3491
3529
  }>;
3492
- sellers: Array<{
3493
- __typename?: 'ProductVariantSeller';
3494
- active?: boolean | null;
3495
- barcode?: string | null;
3496
- discountEndAt?: number | null;
3497
- discountFixed?: number | null;
3498
- discountPercentage?: number | null;
3499
- discountStartAt?: number | null;
3500
- priceDiff: number;
3501
- quantity: number;
3502
- sku?: string | null;
3503
- seller: {
3504
- __typename?: 'Seller';
3505
- id: string;
3506
- name: string;
3507
- description?: string | null;
3508
- active: boolean;
3509
- orderNumber: number;
3510
- slug: string;
3511
- rating?: number | null;
3512
- verified: boolean;
3513
- createdAt: any;
3514
- updatedAt: any;
3515
- };
3516
- stock: {
3517
- __typename?: 'ProductVariantStock';
3518
- quantity: number;
3519
- seller: Array<{
3520
- __typename?: 'Seller';
3521
- id: string;
3522
- name: string;
3523
- description?: string | null;
3524
- active: boolean;
3525
- orderNumber: number;
3526
- slug: string;
3527
- rating?: number | null;
3528
- verified: boolean;
3529
- createdAt: any;
3530
- updatedAt: any;
3531
- }>;
3532
- };
3533
- }>;
3534
3530
  }>;
3535
3531
  }>;
3536
3532
  address?: {
3537
3533
  __typename?: 'CustomerAddress';
3538
3534
  id: string;
3535
+ name?: string | null;
3536
+ postalCode?: string | null;
3537
+ regionCode?: RegionCodeEnum | null;
3538
+ regionName?: string | null;
3539
3539
  address?: string | null;
3540
3540
  address2?: string | null;
3541
+ city?: string | null;
3542
+ countryCode?: CountryCodeEnum | null;
3543
+ default: boolean;
3541
3544
  createdAt: any;
3542
3545
  updatedAt: any;
3546
+ geometry?: {
3547
+ __typename?: 'Geometry';
3548
+ coordinates: any;
3549
+ type: string;
3550
+ } | null;
3543
3551
  } | null;
3544
3552
  } | null;
3545
3553
  };
@@ -3570,10 +3578,22 @@ export type CartQuery = {
3570
3578
  address?: {
3571
3579
  __typename?: 'CustomerAddress';
3572
3580
  id: string;
3581
+ name?: string | null;
3582
+ postalCode?: string | null;
3583
+ regionCode?: RegionCodeEnum | null;
3584
+ regionName?: string | null;
3573
3585
  address?: string | null;
3574
3586
  address2?: string | null;
3587
+ city?: string | null;
3588
+ countryCode?: CountryCodeEnum | null;
3589
+ default: boolean;
3575
3590
  createdAt: any;
3576
3591
  updatedAt: any;
3592
+ geometry?: {
3593
+ __typename?: 'Geometry';
3594
+ coordinates: any;
3595
+ type: string;
3596
+ } | null;
3577
3597
  } | null;
3578
3598
  product: {
3579
3599
  __typename?: 'Product';
@@ -3638,57 +3658,27 @@ export type CartQuery = {
3638
3658
  }> | null;
3639
3659
  };
3640
3660
  }>;
3641
- sellers: Array<{
3642
- __typename?: 'ProductVariantSeller';
3643
- active?: boolean | null;
3644
- barcode?: string | null;
3645
- discountEndAt?: number | null;
3646
- discountFixed?: number | null;
3647
- discountPercentage?: number | null;
3648
- discountStartAt?: number | null;
3649
- priceDiff: number;
3650
- quantity: number;
3651
- sku?: string | null;
3652
- seller: {
3653
- __typename?: 'Seller';
3654
- id: string;
3655
- name: string;
3656
- description?: string | null;
3657
- active: boolean;
3658
- orderNumber: number;
3659
- slug: string;
3660
- rating?: number | null;
3661
- verified: boolean;
3662
- createdAt: any;
3663
- updatedAt: any;
3664
- };
3665
- stock: {
3666
- __typename?: 'ProductVariantStock';
3667
- quantity: number;
3668
- seller: Array<{
3669
- __typename?: 'Seller';
3670
- id: string;
3671
- name: string;
3672
- description?: string | null;
3673
- active: boolean;
3674
- orderNumber: number;
3675
- slug: string;
3676
- rating?: number | null;
3677
- verified: boolean;
3678
- createdAt: any;
3679
- updatedAt: any;
3680
- }>;
3681
- };
3682
- }>;
3683
3661
  }>;
3684
3662
  }>;
3685
3663
  address?: {
3686
3664
  __typename?: 'CustomerAddress';
3687
3665
  id: string;
3666
+ name?: string | null;
3667
+ postalCode?: string | null;
3668
+ regionCode?: RegionCodeEnum | null;
3669
+ regionName?: string | null;
3688
3670
  address?: string | null;
3689
3671
  address2?: string | null;
3672
+ city?: string | null;
3673
+ countryCode?: CountryCodeEnum | null;
3674
+ default: boolean;
3690
3675
  createdAt: any;
3691
3676
  updatedAt: any;
3677
+ geometry?: {
3678
+ __typename?: 'Geometry';
3679
+ coordinates: any;
3680
+ type: string;
3681
+ } | null;
3692
3682
  } | null;
3693
3683
  } | null;
3694
3684
  };
@@ -4053,119 +4043,127 @@ export type CustomFieldQuery = {
4053
4043
  updatedAt: any;
4054
4044
  }> | null;
4055
4045
  };
4056
- export type CustomerFragmentFragment = {
4057
- __typename?: 'Customer';
4058
- id: string;
4059
- fullName: string;
4060
- username: string;
4061
- active: boolean;
4062
- createdAt: any;
4063
- updatedAt: any;
4064
- };
4065
4046
  export type CustomerAddressFragmentFragment = {
4066
4047
  __typename?: 'CustomerAddress';
4067
4048
  id: string;
4049
+ name?: string | null;
4050
+ postalCode?: string | null;
4051
+ regionCode?: RegionCodeEnum | null;
4052
+ regionName?: string | null;
4068
4053
  address?: string | null;
4069
4054
  address2?: string | null;
4055
+ city?: string | null;
4056
+ countryCode?: CountryCodeEnum | null;
4057
+ default: boolean;
4070
4058
  createdAt: any;
4071
4059
  updatedAt: any;
4060
+ geometry?: {
4061
+ __typename?: 'Geometry';
4062
+ coordinates: any;
4063
+ type: string;
4064
+ } | null;
4072
4065
  };
4073
- export type CustomerTelephoneNumberFragmentFragment = {
4074
- __typename?: 'CustomerTelephoneNumber';
4075
- id: string;
4076
- number?: string | null;
4077
- targets?: Array<TelephoneNumberTarget> | null;
4078
- createdAt: any;
4079
- updatedAt: any;
4080
- };
4081
- export type CreateCustomerMutationVariables = Exact<{
4082
- data: CreateCustomerInput;
4066
+ export type CreateCustomerAddressMutationVariables = Exact<{
4067
+ customerId: Scalars['ID']['input'];
4068
+ data: CreateCustomerAddressInput;
4083
4069
  }>;
4084
- export type CreateCustomerMutation = {
4070
+ export type CreateCustomerAddressMutation = {
4085
4071
  __typename?: 'Mutation';
4086
- createCustomer: {
4087
- __typename?: 'Customer';
4072
+ createCustomerAddress: {
4073
+ __typename?: 'CustomerAddress';
4088
4074
  id: string;
4089
- fullName: string;
4090
- username: string;
4091
- active: boolean;
4075
+ name?: string | null;
4076
+ postalCode?: string | null;
4077
+ regionCode?: RegionCodeEnum | null;
4078
+ regionName?: string | null;
4079
+ address?: string | null;
4080
+ address2?: string | null;
4081
+ city?: string | null;
4082
+ countryCode?: CountryCodeEnum | null;
4083
+ default: boolean;
4092
4084
  createdAt: any;
4093
4085
  updatedAt: any;
4086
+ geometry?: {
4087
+ __typename?: 'Geometry';
4088
+ coordinates: any;
4089
+ type: string;
4090
+ } | null;
4094
4091
  };
4095
4092
  };
4096
- export type UpdateCustomerMutationVariables = Exact<{
4097
- data: UpdateCustomerInput;
4093
+ export type UpdateCustomerAddressMutationVariables = Exact<{
4094
+ customerId: Scalars['ID']['input'];
4095
+ data: UpdateCustomerAddressInput;
4098
4096
  id: Scalars['ID']['input'];
4099
4097
  }>;
4100
- export type UpdateCustomerMutation = {
4098
+ export type UpdateCustomerAddressMutation = {
4101
4099
  __typename?: 'Mutation';
4102
- updateCustomer: {
4103
- __typename?: 'Customer';
4100
+ updateCustomerAddress: {
4101
+ __typename?: 'CustomerAddress';
4104
4102
  id: string;
4105
- fullName: string;
4106
- username: string;
4107
- active: boolean;
4103
+ name?: string | null;
4104
+ postalCode?: string | null;
4105
+ regionCode?: RegionCodeEnum | null;
4106
+ regionName?: string | null;
4107
+ address?: string | null;
4108
+ address2?: string | null;
4109
+ city?: string | null;
4110
+ countryCode?: CountryCodeEnum | null;
4111
+ default: boolean;
4108
4112
  createdAt: any;
4109
4113
  updatedAt: any;
4114
+ geometry?: {
4115
+ __typename?: 'Geometry';
4116
+ coordinates: any;
4117
+ type: string;
4118
+ } | null;
4110
4119
  };
4111
4120
  };
4112
- export type InfiniteCustomersQueryVariables = Exact<{
4121
+ export type DeleteCustomerAddressMutationVariables = Exact<{
4122
+ customerId: Scalars['ID']['input'];
4123
+ id: Scalars['ID']['input'];
4124
+ }>;
4125
+ export type DeleteCustomerAddressMutation = {
4126
+ __typename?: 'Mutation';
4127
+ deleteCustomerAddress: {
4128
+ __typename?: 'Status';
4129
+ reason?: string | null;
4130
+ status: StatusEnum;
4131
+ };
4132
+ };
4133
+ export type InfiniteCustomerAddressQueryVariables = Exact<{
4113
4134
  after?: InputMaybe<Scalars['String']['input']>;
4114
4135
  before?: InputMaybe<Scalars['String']['input']>;
4115
- filter?: InputMaybe<CustomerFilter>;
4136
+ filter?: InputMaybe<CustomerAddressFilter>;
4116
4137
  first?: InputMaybe<Scalars['Int']['input']>;
4117
4138
  last?: InputMaybe<Scalars['Int']['input']>;
4118
- sort?: InputMaybe<Array<CustomerSort> | CustomerSort>;
4119
- withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4120
- withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4121
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
4139
+ sort?: InputMaybe<Array<CustomerAddressSort> | CustomerAddressSort>;
4140
+ customerId: Scalars['ID']['input'];
4122
4141
  }>;
4123
- export type InfiniteCustomersQuery = {
4142
+ export type InfiniteCustomerAddressQuery = {
4124
4143
  __typename?: 'Query';
4125
- infiniteCustomers: {
4126
- __typename?: 'InfiniteCustomersConnection';
4144
+ infiniteCustomerAddress: {
4145
+ __typename?: 'InfiniteCustomerAddressesConnection';
4127
4146
  edges: Array<{
4128
- __typename?: 'InfiniteCustomerEdge';
4147
+ __typename?: 'InfiniteCustomerAddressEdge';
4129
4148
  cursor: string;
4130
4149
  node: {
4131
- __typename?: 'Customer';
4150
+ __typename?: 'CustomerAddress';
4132
4151
  id: string;
4133
- fullName: string;
4134
- username: string;
4135
- active: boolean;
4152
+ name?: string | null;
4153
+ postalCode?: string | null;
4154
+ regionCode?: RegionCodeEnum | null;
4155
+ regionName?: string | null;
4156
+ address?: string | null;
4157
+ address2?: string | null;
4158
+ city?: string | null;
4159
+ countryCode?: CountryCodeEnum | null;
4160
+ default: boolean;
4136
4161
  createdAt: any;
4137
4162
  updatedAt: any;
4138
- addresses?: Array<{
4139
- __typename?: 'CustomerAddress';
4140
- id: string;
4141
- address?: string | null;
4142
- address2?: string | null;
4143
- createdAt: any;
4144
- updatedAt: any;
4145
- }> | null;
4146
- telephoneNumbers?: Array<{
4147
- __typename?: 'CustomerTelephoneNumber';
4148
- id: string;
4149
- number?: string | null;
4150
- targets?: Array<TelephoneNumberTarget> | null;
4151
- createdAt: any;
4152
- updatedAt: any;
4153
- }> | null;
4154
- image?: {
4155
- __typename?: 'File';
4156
- createdAt: any;
4157
- id: string;
4158
- name: string;
4159
- size?: number | null;
4160
- status: FileStatusEnum;
4161
- type?: string | null;
4162
- updatedAt: any;
4163
- url?: string | null;
4164
- thumbnails: {
4165
- __typename?: 'FileThumbnails';
4166
- thumbnail450Url?: string | null;
4167
- thumbnail900Url?: string | null;
4168
- };
4163
+ geometry?: {
4164
+ __typename?: 'Geometry';
4165
+ coordinates: any;
4166
+ type: string;
4169
4167
  } | null;
4170
4168
  };
4171
4169
  }>;
@@ -4178,61 +4176,38 @@ export type InfiniteCustomersQuery = {
4178
4176
  };
4179
4177
  };
4180
4178
  };
4181
- export type PaginatedCustomersQueryVariables = Exact<{
4182
- filter?: InputMaybe<CustomerFilter>;
4179
+ export type PaginatedCustomerAddressQueryVariables = Exact<{
4180
+ filter?: InputMaybe<CustomerAddressFilter>;
4183
4181
  limit?: InputMaybe<Scalars['Int']['input']>;
4184
4182
  page?: InputMaybe<Scalars['Int']['input']>;
4185
- sort?: InputMaybe<Array<CustomerSort> | CustomerSort>;
4186
- withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4187
- withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4188
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
4183
+ sort?: InputMaybe<Array<CustomerAddressSort> | CustomerAddressSort>;
4184
+ customerId: Scalars['ID']['input'];
4189
4185
  }>;
4190
- export type PaginatedCustomersQuery = {
4186
+ export type PaginatedCustomerAddressQuery = {
4191
4187
  __typename?: 'Query';
4192
- paginatedCustomers?: {
4193
- __typename?: 'PaginatedCustomersConnection';
4188
+ paginatedCustomerAddress: {
4189
+ __typename?: 'PaginatedCustomerAddressesConnection';
4194
4190
  edges: Array<{
4195
- __typename?: 'PaginatedCustomerEdge';
4191
+ __typename?: 'PaginatedCustomerAddressEdge';
4196
4192
  cursor: string;
4197
4193
  node: {
4198
- __typename?: 'Customer';
4194
+ __typename?: 'CustomerAddress';
4199
4195
  id: string;
4200
- fullName: string;
4201
- username: string;
4202
- active: boolean;
4196
+ name?: string | null;
4197
+ postalCode?: string | null;
4198
+ regionCode?: RegionCodeEnum | null;
4199
+ regionName?: string | null;
4200
+ address?: string | null;
4201
+ address2?: string | null;
4202
+ city?: string | null;
4203
+ countryCode?: CountryCodeEnum | null;
4204
+ default: boolean;
4203
4205
  createdAt: any;
4204
4206
  updatedAt: any;
4205
- addresses?: Array<{
4206
- __typename?: 'CustomerAddress';
4207
- id: string;
4208
- address?: string | null;
4209
- address2?: string | null;
4210
- createdAt: any;
4211
- updatedAt: any;
4212
- }> | null;
4213
- telephoneNumbers?: Array<{
4214
- __typename?: 'CustomerTelephoneNumber';
4215
- id: string;
4216
- number?: string | null;
4217
- targets?: Array<TelephoneNumberTarget> | null;
4218
- createdAt: any;
4219
- updatedAt: any;
4220
- }> | null;
4221
- image?: {
4222
- __typename?: 'File';
4223
- createdAt: any;
4224
- id: string;
4225
- name: string;
4226
- size?: number | null;
4227
- status: FileStatusEnum;
4228
- type?: string | null;
4229
- updatedAt: any;
4230
- url?: string | null;
4231
- thumbnails: {
4232
- __typename?: 'FileThumbnails';
4233
- thumbnail450Url?: string | null;
4234
- thumbnail900Url?: string | null;
4235
- };
4207
+ geometry?: {
4208
+ __typename?: 'Geometry';
4209
+ coordinates: any;
4210
+ type: string;
4236
4211
  } | null;
4237
4212
  };
4238
4213
  }>;
@@ -4244,31 +4219,526 @@ export type PaginatedCustomersQuery = {
4244
4219
  totalEdges: number;
4245
4220
  totalPages: number;
4246
4221
  };
4247
- } | null;
4222
+ };
4248
4223
  };
4249
- export type CustomerQueryVariables = Exact<{
4250
- id: Scalars['ID']['input'];
4251
- withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4252
- withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4253
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
4224
+ export type CustomerEmailAddressFragmentFragment = {
4225
+ __typename?: 'CustomerEmailAddress';
4226
+ bcc: boolean;
4227
+ confirmed: boolean;
4228
+ createdAt: any;
4229
+ id: string;
4230
+ roles?: Array<EmailAddressRole> | null;
4231
+ updatedAt: any;
4232
+ emailAddress: {
4233
+ __typename?: 'EmailAddress';
4234
+ value?: string | null;
4235
+ };
4236
+ };
4237
+ export type CreateCustomerEmailAddressMutationVariables = Exact<{
4238
+ customerId: Scalars['ID']['input'];
4239
+ data: CreateCustomerEmailAddressInput;
4254
4240
  }>;
4255
- export type CustomerQuery = {
4256
- __typename?: 'Query';
4257
- customer?: {
4258
- __typename?: 'Customer';
4241
+ export type CreateCustomerEmailAddressMutation = {
4242
+ __typename?: 'Mutation';
4243
+ createCustomerEmailAddress: {
4244
+ __typename?: 'CustomerEmailAddress';
4245
+ bcc: boolean;
4246
+ confirmed: boolean;
4247
+ createdAt: any;
4259
4248
  id: string;
4260
- fullName: string;
4261
- username: string;
4262
- active: boolean;
4249
+ roles?: Array<EmailAddressRole> | null;
4250
+ updatedAt: any;
4251
+ emailAddress: {
4252
+ __typename?: 'EmailAddress';
4253
+ value?: string | null;
4254
+ };
4255
+ };
4256
+ };
4257
+ export type UpdateCustomerEmailAddressMutationVariables = Exact<{
4258
+ customerId: Scalars['ID']['input'];
4259
+ data: UpdateCustomerEmailAddressInput;
4260
+ id: Scalars['ID']['input'];
4261
+ }>;
4262
+ export type UpdateCustomerEmailAddressMutation = {
4263
+ __typename?: 'Mutation';
4264
+ updateCustomerEmailAddress: {
4265
+ __typename?: 'CustomerEmailAddress';
4266
+ bcc: boolean;
4267
+ confirmed: boolean;
4263
4268
  createdAt: any;
4269
+ id: string;
4270
+ roles?: Array<EmailAddressRole> | null;
4264
4271
  updatedAt: any;
4265
- addresses?: Array<{
4266
- __typename?: 'CustomerAddress';
4272
+ emailAddress: {
4273
+ __typename?: 'EmailAddress';
4274
+ value?: string | null;
4275
+ };
4276
+ };
4277
+ };
4278
+ export type DeleteCustomerEmailAddressMutationVariables = Exact<{
4279
+ customerId: Scalars['ID']['input'];
4280
+ id: Scalars['ID']['input'];
4281
+ }>;
4282
+ export type DeleteCustomerEmailAddressMutation = {
4283
+ __typename?: 'Mutation';
4284
+ deleteCustomerEmailAddress: {
4285
+ __typename?: 'Status';
4286
+ reason?: string | null;
4287
+ status: StatusEnum;
4288
+ };
4289
+ };
4290
+ export type InfiniteCustomerEmailAddressQueryVariables = Exact<{
4291
+ after?: InputMaybe<Scalars['String']['input']>;
4292
+ before?: InputMaybe<Scalars['String']['input']>;
4293
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
4294
+ first?: InputMaybe<Scalars['Int']['input']>;
4295
+ last?: InputMaybe<Scalars['Int']['input']>;
4296
+ sort?: InputMaybe<Array<CustomerEmailAddressSort> | CustomerEmailAddressSort>;
4297
+ customerId: Scalars['ID']['input'];
4298
+ }>;
4299
+ export type InfiniteCustomerEmailAddressQuery = {
4300
+ __typename?: 'Query';
4301
+ infiniteCustomerEmailAddresses: {
4302
+ __typename?: 'InfiniteCustomerEmailAddressesConnection';
4303
+ edges: Array<{
4304
+ __typename?: 'InfiniteCustomerEmailAddressEdge';
4305
+ cursor: string;
4306
+ node: {
4307
+ __typename?: 'CustomerEmailAddress';
4308
+ bcc: boolean;
4309
+ confirmed: boolean;
4310
+ createdAt: any;
4311
+ id: string;
4312
+ roles?: Array<EmailAddressRole> | null;
4313
+ updatedAt: any;
4314
+ emailAddress: {
4315
+ __typename?: 'EmailAddress';
4316
+ value?: string | null;
4317
+ };
4318
+ };
4319
+ }>;
4320
+ pageInfo: {
4321
+ __typename?: 'InfinitePageInfo';
4322
+ endCursor?: string | null;
4323
+ hasNextPage: boolean;
4324
+ hasPreviousPage: boolean;
4325
+ startCursor?: string | null;
4326
+ };
4327
+ };
4328
+ };
4329
+ export type PaginatedCustomerEmailAddressQueryVariables = Exact<{
4330
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
4331
+ limit?: InputMaybe<Scalars['Int']['input']>;
4332
+ page?: InputMaybe<Scalars['Int']['input']>;
4333
+ sort?: InputMaybe<Array<CustomerEmailAddressSort> | CustomerEmailAddressSort>;
4334
+ customerId: Scalars['ID']['input'];
4335
+ }>;
4336
+ export type PaginatedCustomerEmailAddressQuery = {
4337
+ __typename?: 'Query';
4338
+ paginatedCustomerEmailAddresses: {
4339
+ __typename?: 'PaginatedCustomerEmailAddressesConnection';
4340
+ edges: Array<{
4341
+ __typename?: 'PaginatedCustomerEmailAddressEdge';
4342
+ cursor: string;
4343
+ node: {
4344
+ __typename?: 'CustomerEmailAddress';
4345
+ bcc: boolean;
4346
+ confirmed: boolean;
4347
+ createdAt: any;
4348
+ id: string;
4349
+ roles?: Array<EmailAddressRole> | null;
4350
+ updatedAt: any;
4351
+ emailAddress: {
4352
+ __typename?: 'EmailAddress';
4353
+ value?: string | null;
4354
+ };
4355
+ };
4356
+ }>;
4357
+ pageInfo: {
4358
+ __typename?: 'PaginatedPageInfo';
4359
+ currentPage: number;
4360
+ hasNextPage: boolean;
4361
+ hasPreviousPage: boolean;
4362
+ totalEdges: number;
4363
+ totalPages: number;
4364
+ };
4365
+ };
4366
+ };
4367
+ export type CustomerTelephoneNumberFragmentFragment = {
4368
+ __typename?: 'CustomerTelephoneNumber';
4369
+ id: string;
4370
+ number?: string | null;
4371
+ targets?: Array<TelephoneNumberTarget> | null;
4372
+ createdAt: any;
4373
+ updatedAt: any;
4374
+ };
4375
+ export type CreateCustomerTelephoneNumberMutationVariables = Exact<{
4376
+ customerId: Scalars['ID']['input'];
4377
+ data: CreateCustomerTelephoneNumberInput;
4378
+ }>;
4379
+ export type CreateCustomerTelephoneNumberMutation = {
4380
+ __typename?: 'Mutation';
4381
+ createCustomerTelephoneNumber: {
4382
+ __typename?: 'CustomerTelephoneNumber';
4383
+ id: string;
4384
+ number?: string | null;
4385
+ targets?: Array<TelephoneNumberTarget> | null;
4386
+ createdAt: any;
4387
+ updatedAt: any;
4388
+ };
4389
+ };
4390
+ export type UpdateCustomerTelephoneNumberMutationVariables = Exact<{
4391
+ customerId: Scalars['ID']['input'];
4392
+ data: UpdateCustomerTelephoneNumberInput;
4393
+ id: Scalars['ID']['input'];
4394
+ }>;
4395
+ export type UpdateCustomerTelephoneNumberMutation = {
4396
+ __typename?: 'Mutation';
4397
+ updateCustomerTelephoneNumber: {
4398
+ __typename?: 'CustomerTelephoneNumber';
4399
+ id: string;
4400
+ number?: string | null;
4401
+ targets?: Array<TelephoneNumberTarget> | null;
4402
+ createdAt: any;
4403
+ updatedAt: any;
4404
+ };
4405
+ };
4406
+ export type DeleteCustomerTelephoneNumberMutationVariables = Exact<{
4407
+ customerId: Scalars['ID']['input'];
4408
+ id: Scalars['ID']['input'];
4409
+ }>;
4410
+ export type DeleteCustomerTelephoneNumberMutation = {
4411
+ __typename?: 'Mutation';
4412
+ deleteCustomerTelephoneNumber: {
4413
+ __typename?: 'Status';
4414
+ reason?: string | null;
4415
+ status: StatusEnum;
4416
+ };
4417
+ };
4418
+ export type InfiniteCustomerTelephoneNumberQueryVariables = Exact<{
4419
+ after?: InputMaybe<Scalars['String']['input']>;
4420
+ before?: InputMaybe<Scalars['String']['input']>;
4421
+ filter?: InputMaybe<CustomerTelephoneNumberFilter>;
4422
+ first?: InputMaybe<Scalars['Int']['input']>;
4423
+ last?: InputMaybe<Scalars['Int']['input']>;
4424
+ sort?: InputMaybe<Array<CustomerTelephoneNumberSort> | CustomerTelephoneNumberSort>;
4425
+ customerId: Scalars['ID']['input'];
4426
+ }>;
4427
+ export type InfiniteCustomerTelephoneNumberQuery = {
4428
+ __typename?: 'Query';
4429
+ infiniteCustomerTelephoneNumbers: {
4430
+ __typename?: 'InfiniteCustomerTelephoneNumbersConnection';
4431
+ edges: Array<{
4432
+ __typename?: 'InfiniteCustomerTelephoneNumberEdge';
4433
+ cursor: string;
4434
+ node: {
4435
+ __typename?: 'CustomerTelephoneNumber';
4436
+ id: string;
4437
+ number?: string | null;
4438
+ targets?: Array<TelephoneNumberTarget> | null;
4439
+ createdAt: any;
4440
+ updatedAt: any;
4441
+ };
4442
+ }>;
4443
+ pageInfo: {
4444
+ __typename?: 'InfinitePageInfo';
4445
+ endCursor?: string | null;
4446
+ hasNextPage: boolean;
4447
+ hasPreviousPage: boolean;
4448
+ startCursor?: string | null;
4449
+ };
4450
+ };
4451
+ };
4452
+ export type PaginatedCustomerTelephoneNumberQueryVariables = Exact<{
4453
+ filter?: InputMaybe<CustomerTelephoneNumberFilter>;
4454
+ limit?: InputMaybe<Scalars['Int']['input']>;
4455
+ page?: InputMaybe<Scalars['Int']['input']>;
4456
+ sort?: InputMaybe<Array<CustomerTelephoneNumberSort> | CustomerTelephoneNumberSort>;
4457
+ customerId: Scalars['ID']['input'];
4458
+ }>;
4459
+ export type PaginatedCustomerTelephoneNumberQuery = {
4460
+ __typename?: 'Query';
4461
+ paginatedCustomerTelephoneNumbers: {
4462
+ __typename?: 'PaginatedCustomerTelephoneNumbersConnection';
4463
+ edges: Array<{
4464
+ __typename?: 'PaginatedCustomerTelephoneNumberEdge';
4465
+ cursor: string;
4466
+ node: {
4467
+ __typename?: 'CustomerTelephoneNumber';
4468
+ id: string;
4469
+ number?: string | null;
4470
+ targets?: Array<TelephoneNumberTarget> | null;
4471
+ createdAt: any;
4472
+ updatedAt: any;
4473
+ };
4474
+ }>;
4475
+ pageInfo: {
4476
+ __typename?: 'PaginatedPageInfo';
4477
+ currentPage: number;
4478
+ hasNextPage: boolean;
4479
+ hasPreviousPage: boolean;
4480
+ totalEdges: number;
4481
+ totalPages: number;
4482
+ };
4483
+ };
4484
+ };
4485
+ export type CustomerFragmentFragment = {
4486
+ __typename?: 'Customer';
4487
+ id: string;
4488
+ fullName: string;
4489
+ username: string;
4490
+ active: boolean;
4491
+ orderCount: number;
4492
+ createdAt: any;
4493
+ updatedAt: any;
4494
+ };
4495
+ export type InfiniteCustomersQueryVariables = Exact<{
4496
+ after?: InputMaybe<Scalars['String']['input']>;
4497
+ before?: InputMaybe<Scalars['String']['input']>;
4498
+ filter?: InputMaybe<CustomerFilter>;
4499
+ first?: InputMaybe<Scalars['Int']['input']>;
4500
+ last?: InputMaybe<Scalars['Int']['input']>;
4501
+ sort?: InputMaybe<Array<CustomerSort> | CustomerSort>;
4502
+ withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4503
+ withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4504
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
4505
+ withTags?: InputMaybe<Scalars['Boolean']['input']>;
4506
+ withEmails?: InputMaybe<Scalars['Boolean']['input']>;
4507
+ }>;
4508
+ export type InfiniteCustomersQuery = {
4509
+ __typename?: 'Query';
4510
+ infiniteCustomers: {
4511
+ __typename?: 'InfiniteCustomersConnection';
4512
+ edges: Array<{
4513
+ __typename?: 'InfiniteCustomerEdge';
4514
+ cursor: string;
4515
+ node: {
4516
+ __typename?: 'Customer';
4517
+ id: string;
4518
+ fullName: string;
4519
+ username: string;
4520
+ active: boolean;
4521
+ orderCount: number;
4522
+ createdAt: any;
4523
+ updatedAt: any;
4524
+ addresses?: Array<{
4525
+ __typename?: 'CustomerAddress';
4526
+ id: string;
4527
+ name?: string | null;
4528
+ postalCode?: string | null;
4529
+ regionCode?: RegionCodeEnum | null;
4530
+ regionName?: string | null;
4531
+ address?: string | null;
4532
+ address2?: string | null;
4533
+ city?: string | null;
4534
+ countryCode?: CountryCodeEnum | null;
4535
+ default: boolean;
4536
+ createdAt: any;
4537
+ updatedAt: any;
4538
+ geometry?: {
4539
+ __typename?: 'Geometry';
4540
+ coordinates: any;
4541
+ type: string;
4542
+ } | null;
4543
+ }> | null;
4544
+ telephoneNumbers?: Array<{
4545
+ __typename?: 'CustomerTelephoneNumber';
4546
+ id: string;
4547
+ number?: string | null;
4548
+ targets?: Array<TelephoneNumberTarget> | null;
4549
+ createdAt: any;
4550
+ updatedAt: any;
4551
+ }> | null;
4552
+ tags?: Array<{
4553
+ __typename?: 'Tag';
4554
+ id: string;
4555
+ name: string;
4556
+ color?: string | null;
4557
+ createdAt: any;
4558
+ updatedAt: any;
4559
+ }> | null;
4560
+ emails?: Array<{
4561
+ __typename?: 'CustomerEmailAddress';
4562
+ bcc: boolean;
4563
+ confirmed: boolean;
4564
+ createdAt: any;
4565
+ id: string;
4566
+ roles?: Array<EmailAddressRole> | null;
4567
+ updatedAt: any;
4568
+ emailAddress: {
4569
+ __typename?: 'EmailAddress';
4570
+ value?: string | null;
4571
+ };
4572
+ }> | null;
4573
+ image?: {
4574
+ __typename?: 'File';
4575
+ createdAt: any;
4576
+ id: string;
4577
+ name: string;
4578
+ size?: number | null;
4579
+ status: FileStatusEnum;
4580
+ type?: string | null;
4581
+ updatedAt: any;
4582
+ url?: string | null;
4583
+ thumbnails: {
4584
+ __typename?: 'FileThumbnails';
4585
+ thumbnail450Url?: string | null;
4586
+ thumbnail900Url?: string | null;
4587
+ };
4588
+ } | null;
4589
+ };
4590
+ }>;
4591
+ pageInfo: {
4592
+ __typename?: 'InfinitePageInfo';
4593
+ endCursor?: string | null;
4594
+ hasNextPage: boolean;
4595
+ hasPreviousPage: boolean;
4596
+ startCursor?: string | null;
4597
+ };
4598
+ };
4599
+ };
4600
+ export type PaginatedCustomersQueryVariables = Exact<{
4601
+ filter?: InputMaybe<CustomerFilter>;
4602
+ limit?: InputMaybe<Scalars['Int']['input']>;
4603
+ page?: InputMaybe<Scalars['Int']['input']>;
4604
+ sort?: InputMaybe<Array<CustomerSort> | CustomerSort>;
4605
+ withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4606
+ withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4607
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
4608
+ withTags?: InputMaybe<Scalars['Boolean']['input']>;
4609
+ withEmails?: InputMaybe<Scalars['Boolean']['input']>;
4610
+ }>;
4611
+ export type PaginatedCustomersQuery = {
4612
+ __typename?: 'Query';
4613
+ paginatedCustomers?: {
4614
+ __typename?: 'PaginatedCustomersConnection';
4615
+ edges: Array<{
4616
+ __typename?: 'PaginatedCustomerEdge';
4617
+ cursor: string;
4618
+ node: {
4619
+ __typename?: 'Customer';
4620
+ id: string;
4621
+ fullName: string;
4622
+ username: string;
4623
+ active: boolean;
4624
+ orderCount: number;
4625
+ createdAt: any;
4626
+ updatedAt: any;
4627
+ addresses?: Array<{
4628
+ __typename?: 'CustomerAddress';
4629
+ id: string;
4630
+ name?: string | null;
4631
+ postalCode?: string | null;
4632
+ regionCode?: RegionCodeEnum | null;
4633
+ regionName?: string | null;
4634
+ address?: string | null;
4635
+ address2?: string | null;
4636
+ city?: string | null;
4637
+ countryCode?: CountryCodeEnum | null;
4638
+ default: boolean;
4639
+ createdAt: any;
4640
+ updatedAt: any;
4641
+ geometry?: {
4642
+ __typename?: 'Geometry';
4643
+ coordinates: any;
4644
+ type: string;
4645
+ } | null;
4646
+ }> | null;
4647
+ telephoneNumbers?: Array<{
4648
+ __typename?: 'CustomerTelephoneNumber';
4649
+ id: string;
4650
+ number?: string | null;
4651
+ targets?: Array<TelephoneNumberTarget> | null;
4652
+ createdAt: any;
4653
+ updatedAt: any;
4654
+ }> | null;
4655
+ tags?: Array<{
4656
+ __typename?: 'Tag';
4657
+ id: string;
4658
+ name: string;
4659
+ color?: string | null;
4660
+ createdAt: any;
4661
+ updatedAt: any;
4662
+ }> | null;
4663
+ emails?: Array<{
4664
+ __typename?: 'CustomerEmailAddress';
4665
+ bcc: boolean;
4666
+ confirmed: boolean;
4667
+ createdAt: any;
4668
+ id: string;
4669
+ roles?: Array<EmailAddressRole> | null;
4670
+ updatedAt: any;
4671
+ emailAddress: {
4672
+ __typename?: 'EmailAddress';
4673
+ value?: string | null;
4674
+ };
4675
+ }> | null;
4676
+ image?: {
4677
+ __typename?: 'File';
4678
+ createdAt: any;
4679
+ id: string;
4680
+ name: string;
4681
+ size?: number | null;
4682
+ status: FileStatusEnum;
4683
+ type?: string | null;
4684
+ updatedAt: any;
4685
+ url?: string | null;
4686
+ thumbnails: {
4687
+ __typename?: 'FileThumbnails';
4688
+ thumbnail450Url?: string | null;
4689
+ thumbnail900Url?: string | null;
4690
+ };
4691
+ } | null;
4692
+ };
4693
+ }>;
4694
+ pageInfo: {
4695
+ __typename?: 'PaginatedPageInfo';
4696
+ currentPage: number;
4697
+ hasNextPage: boolean;
4698
+ hasPreviousPage: boolean;
4699
+ totalEdges: number;
4700
+ totalPages: number;
4701
+ };
4702
+ } | null;
4703
+ };
4704
+ export type CustomerQueryVariables = Exact<{
4705
+ id: Scalars['ID']['input'];
4706
+ withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4707
+ withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4708
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
4709
+ withTags?: InputMaybe<Scalars['Boolean']['input']>;
4710
+ withEmails?: InputMaybe<Scalars['Boolean']['input']>;
4711
+ }>;
4712
+ export type CustomerQuery = {
4713
+ __typename?: 'Query';
4714
+ customer?: {
4715
+ __typename?: 'Customer';
4716
+ id: string;
4717
+ fullName: string;
4718
+ username: string;
4719
+ active: boolean;
4720
+ orderCount: number;
4721
+ createdAt: any;
4722
+ updatedAt: any;
4723
+ addresses?: Array<{
4724
+ __typename?: 'CustomerAddress';
4267
4725
  id: string;
4726
+ name?: string | null;
4727
+ postalCode?: string | null;
4728
+ regionCode?: RegionCodeEnum | null;
4729
+ regionName?: string | null;
4268
4730
  address?: string | null;
4269
4731
  address2?: string | null;
4732
+ city?: string | null;
4733
+ countryCode?: CountryCodeEnum | null;
4734
+ default: boolean;
4270
4735
  createdAt: any;
4271
4736
  updatedAt: any;
4737
+ geometry?: {
4738
+ __typename?: 'Geometry';
4739
+ coordinates: any;
4740
+ type: string;
4741
+ } | null;
4272
4742
  }> | null;
4273
4743
  telephoneNumbers?: Array<{
4274
4744
  __typename?: 'CustomerTelephoneNumber';
@@ -4278,6 +4748,27 @@ export type CustomerQuery = {
4278
4748
  createdAt: any;
4279
4749
  updatedAt: any;
4280
4750
  }> | null;
4751
+ tags?: Array<{
4752
+ __typename?: 'Tag';
4753
+ id: string;
4754
+ name: string;
4755
+ color?: string | null;
4756
+ createdAt: any;
4757
+ updatedAt: any;
4758
+ }> | null;
4759
+ emails?: Array<{
4760
+ __typename?: 'CustomerEmailAddress';
4761
+ bcc: boolean;
4762
+ confirmed: boolean;
4763
+ createdAt: any;
4764
+ id: string;
4765
+ roles?: Array<EmailAddressRole> | null;
4766
+ updatedAt: any;
4767
+ emailAddress: {
4768
+ __typename?: 'EmailAddress';
4769
+ value?: string | null;
4770
+ };
4771
+ }> | null;
4281
4772
  image?: {
4282
4773
  __typename?: 'File';
4283
4774
  createdAt: any;
@@ -4296,6 +4787,39 @@ export type CustomerQuery = {
4296
4787
  } | null;
4297
4788
  } | null;
4298
4789
  };
4790
+ export type CreateCustomerMutationVariables = Exact<{
4791
+ data: CreateCustomerInput;
4792
+ }>;
4793
+ export type CreateCustomerMutation = {
4794
+ __typename?: 'Mutation';
4795
+ createCustomer: {
4796
+ __typename?: 'Customer';
4797
+ id: string;
4798
+ fullName: string;
4799
+ username: string;
4800
+ active: boolean;
4801
+ orderCount: number;
4802
+ createdAt: any;
4803
+ updatedAt: any;
4804
+ };
4805
+ };
4806
+ export type UpdateCustomerMutationVariables = Exact<{
4807
+ data: UpdateCustomerInput;
4808
+ id: Scalars['ID']['input'];
4809
+ }>;
4810
+ export type UpdateCustomerMutation = {
4811
+ __typename?: 'Mutation';
4812
+ updateCustomer: {
4813
+ __typename?: 'Customer';
4814
+ id: string;
4815
+ fullName: string;
4816
+ username: string;
4817
+ active: boolean;
4818
+ orderCount: number;
4819
+ createdAt: any;
4820
+ updatedAt: any;
4821
+ };
4822
+ };
4299
4823
  export type FileThumbnailsFieldsFragment = {
4300
4824
  __typename?: 'FileThumbnails';
4301
4825
  thumbnail450Url?: string | null;
@@ -4589,65 +5113,6 @@ export type ProductFragmentFragment = {
4589
5113
  warrantyTime?: string | null;
4590
5114
  warrantyType?: string | null;
4591
5115
  };
4592
- export type ProductVariantStockFragmentFragment = {
4593
- __typename?: 'ProductVariantStock';
4594
- quantity: number;
4595
- seller: Array<{
4596
- __typename?: 'Seller';
4597
- id: string;
4598
- name: string;
4599
- description?: string | null;
4600
- active: boolean;
4601
- orderNumber: number;
4602
- slug: string;
4603
- rating?: number | null;
4604
- verified: boolean;
4605
- createdAt: any;
4606
- updatedAt: any;
4607
- }>;
4608
- };
4609
- export type ProductVariantSellerFragmentFragment = {
4610
- __typename?: 'ProductVariantSeller';
4611
- active?: boolean | null;
4612
- barcode?: string | null;
4613
- discountEndAt?: number | null;
4614
- discountFixed?: number | null;
4615
- discountPercentage?: number | null;
4616
- discountStartAt?: number | null;
4617
- priceDiff: number;
4618
- quantity: number;
4619
- sku?: string | null;
4620
- seller: {
4621
- __typename?: 'Seller';
4622
- id: string;
4623
- name: string;
4624
- description?: string | null;
4625
- active: boolean;
4626
- orderNumber: number;
4627
- slug: string;
4628
- rating?: number | null;
4629
- verified: boolean;
4630
- createdAt: any;
4631
- updatedAt: any;
4632
- };
4633
- stock: {
4634
- __typename?: 'ProductVariantStock';
4635
- quantity: number;
4636
- seller: Array<{
4637
- __typename?: 'Seller';
4638
- id: string;
4639
- name: string;
4640
- description?: string | null;
4641
- active: boolean;
4642
- orderNumber: number;
4643
- slug: string;
4644
- rating?: number | null;
4645
- verified: boolean;
4646
- createdAt: any;
4647
- updatedAt: any;
4648
- }>;
4649
- };
4650
- };
4651
5116
  export type ProductVariantFragmentFragment = {
4652
5117
  __typename?: 'ProductVariant';
4653
5118
  active?: boolean | null;
@@ -4671,48 +5136,55 @@ export type ProductVariantFragmentFragment = {
4671
5136
  }> | null;
4672
5137
  };
4673
5138
  }>;
4674
- sellers: Array<{
4675
- __typename?: 'ProductVariantSeller';
4676
- active?: boolean | null;
4677
- barcode?: string | null;
4678
- discountEndAt?: number | null;
4679
- discountFixed?: number | null;
4680
- discountPercentage?: number | null;
4681
- discountStartAt?: number | null;
4682
- priceDiff: number;
4683
- quantity: number;
4684
- sku?: string | null;
4685
- seller: {
4686
- __typename?: 'Seller';
4687
- id: string;
4688
- name: string;
4689
- description?: string | null;
4690
- active: boolean;
4691
- orderNumber: number;
4692
- slug: string;
4693
- rating?: number | null;
4694
- verified: boolean;
4695
- createdAt: any;
4696
- updatedAt: any;
4697
- };
4698
- stock: {
4699
- __typename?: 'ProductVariantStock';
4700
- quantity: number;
4701
- seller: Array<{
4702
- __typename?: 'Seller';
4703
- id: string;
4704
- name: string;
4705
- description?: string | null;
5139
+ };
5140
+ export type ProductSellerFragmentFragment = {
5141
+ __typename?: 'ProductSeller';
5142
+ active?: boolean | null;
5143
+ barcode?: string | null;
5144
+ discountEndAt?: number | null;
5145
+ discountFixed?: number | null;
5146
+ discountPercentage?: number | null;
5147
+ discountStartAt?: number | null;
5148
+ priceDiff: number;
5149
+ quantity: number;
5150
+ sku?: string | null;
5151
+ seller: {
5152
+ __typename?: 'Seller';
5153
+ id: string;
5154
+ name: string;
5155
+ description?: string | null;
5156
+ active: boolean;
5157
+ orderNumber: number;
5158
+ slug: string;
5159
+ rating?: number | null;
5160
+ verified: boolean;
5161
+ createdAt: any;
5162
+ updatedAt: any;
5163
+ };
5164
+ variant?: Array<{
5165
+ __typename?: 'ProductVariant';
5166
+ active?: boolean | null;
5167
+ default: boolean;
5168
+ id: string;
5169
+ attributes: Array<{
5170
+ __typename?: 'ProductVariantAttribute';
5171
+ value: string;
5172
+ attribute: {
5173
+ __typename?: 'Attribute';
4706
5174
  active: boolean;
4707
- orderNumber: number;
4708
- slug: string;
4709
- rating?: number | null;
4710
- verified: boolean;
4711
5175
  createdAt: any;
5176
+ id: string;
5177
+ name: string;
5178
+ type: string;
4712
5179
  updatedAt: any;
4713
- }>;
4714
- };
4715
- }>;
5180
+ values?: Array<{
5181
+ __typename?: 'AttributeValue';
5182
+ default: boolean;
5183
+ name: string;
5184
+ }> | null;
5185
+ };
5186
+ }>;
5187
+ }> | null;
4716
5188
  };
4717
5189
  export type InfiniteProductsQueryVariables = Exact<{
4718
5190
  after?: InputMaybe<Scalars['String']['input']>;
@@ -4726,6 +5198,7 @@ export type InfiniteProductsQueryVariables = Exact<{
4726
5198
  withVariant?: InputMaybe<Scalars['Boolean']['input']>;
4727
5199
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
4728
5200
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5201
+ withSellers?: InputMaybe<Scalars['Boolean']['input']>;
4729
5202
  }>;
4730
5203
  export type InfiniteProductsQuery = {
4731
5204
  __typename?: 'Query';
@@ -4810,48 +5283,6 @@ export type InfiniteProductsQuery = {
4810
5283
  }> | null;
4811
5284
  };
4812
5285
  }>;
4813
- sellers: Array<{
4814
- __typename?: 'ProductVariantSeller';
4815
- active?: boolean | null;
4816
- barcode?: string | null;
4817
- discountEndAt?: number | null;
4818
- discountFixed?: number | null;
4819
- discountPercentage?: number | null;
4820
- discountStartAt?: number | null;
4821
- priceDiff: number;
4822
- quantity: number;
4823
- sku?: string | null;
4824
- seller: {
4825
- __typename?: 'Seller';
4826
- id: string;
4827
- name: string;
4828
- description?: string | null;
4829
- active: boolean;
4830
- orderNumber: number;
4831
- slug: string;
4832
- rating?: number | null;
4833
- verified: boolean;
4834
- createdAt: any;
4835
- updatedAt: any;
4836
- };
4837
- stock: {
4838
- __typename?: 'ProductVariantStock';
4839
- quantity: number;
4840
- seller: Array<{
4841
- __typename?: 'Seller';
4842
- id: string;
4843
- name: string;
4844
- description?: string | null;
4845
- active: boolean;
4846
- orderNumber: number;
4847
- slug: string;
4848
- rating?: number | null;
4849
- verified: boolean;
4850
- createdAt: any;
4851
- updatedAt: any;
4852
- }>;
4853
- };
4854
- }>;
4855
5286
  }>;
4856
5287
  thumbnail?: {
4857
5288
  __typename?: 'File';
@@ -4889,6 +5320,55 @@ export type InfiniteProductsQuery = {
4889
5320
  };
4890
5321
  };
4891
5322
  }>;
5323
+ sellers?: Array<{
5324
+ __typename?: 'ProductSeller';
5325
+ active?: boolean | null;
5326
+ barcode?: string | null;
5327
+ discountEndAt?: number | null;
5328
+ discountFixed?: number | null;
5329
+ discountPercentage?: number | null;
5330
+ discountStartAt?: number | null;
5331
+ priceDiff: number;
5332
+ quantity: number;
5333
+ sku?: string | null;
5334
+ seller: {
5335
+ __typename?: 'Seller';
5336
+ id: string;
5337
+ name: string;
5338
+ description?: string | null;
5339
+ active: boolean;
5340
+ orderNumber: number;
5341
+ slug: string;
5342
+ rating?: number | null;
5343
+ verified: boolean;
5344
+ createdAt: any;
5345
+ updatedAt: any;
5346
+ };
5347
+ variant?: Array<{
5348
+ __typename?: 'ProductVariant';
5349
+ active?: boolean | null;
5350
+ default: boolean;
5351
+ id: string;
5352
+ attributes: Array<{
5353
+ __typename?: 'ProductVariantAttribute';
5354
+ value: string;
5355
+ attribute: {
5356
+ __typename?: 'Attribute';
5357
+ active: boolean;
5358
+ createdAt: any;
5359
+ id: string;
5360
+ name: string;
5361
+ type: string;
5362
+ updatedAt: any;
5363
+ values?: Array<{
5364
+ __typename?: 'AttributeValue';
5365
+ default: boolean;
5366
+ name: string;
5367
+ }> | null;
5368
+ };
5369
+ }>;
5370
+ }> | null;
5371
+ }>;
4892
5372
  };
4893
5373
  }>;
4894
5374
  pageInfo: {
@@ -4910,6 +5390,7 @@ export type PaginatedProductsQueryVariables = Exact<{
4910
5390
  withVariant?: InputMaybe<Scalars['Boolean']['input']>;
4911
5391
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
4912
5392
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5393
+ withSellers?: InputMaybe<Scalars['Boolean']['input']>;
4913
5394
  }>;
4914
5395
  export type PaginatedProductsQuery = {
4915
5396
  __typename?: 'Query';
@@ -4994,48 +5475,6 @@ export type PaginatedProductsQuery = {
4994
5475
  }> | null;
4995
5476
  };
4996
5477
  }>;
4997
- sellers: Array<{
4998
- __typename?: 'ProductVariantSeller';
4999
- active?: boolean | null;
5000
- barcode?: string | null;
5001
- discountEndAt?: number | null;
5002
- discountFixed?: number | null;
5003
- discountPercentage?: number | null;
5004
- discountStartAt?: number | null;
5005
- priceDiff: number;
5006
- quantity: number;
5007
- sku?: string | null;
5008
- seller: {
5009
- __typename?: 'Seller';
5010
- id: string;
5011
- name: string;
5012
- description?: string | null;
5013
- active: boolean;
5014
- orderNumber: number;
5015
- slug: string;
5016
- rating?: number | null;
5017
- verified: boolean;
5018
- createdAt: any;
5019
- updatedAt: any;
5020
- };
5021
- stock: {
5022
- __typename?: 'ProductVariantStock';
5023
- quantity: number;
5024
- seller: Array<{
5025
- __typename?: 'Seller';
5026
- id: string;
5027
- name: string;
5028
- description?: string | null;
5029
- active: boolean;
5030
- orderNumber: number;
5031
- slug: string;
5032
- rating?: number | null;
5033
- verified: boolean;
5034
- createdAt: any;
5035
- updatedAt: any;
5036
- }>;
5037
- };
5038
- }>;
5039
5478
  }>;
5040
5479
  thumbnail?: {
5041
5480
  __typename?: 'File';
@@ -5073,53 +5512,250 @@ export type PaginatedProductsQuery = {
5073
5512
  };
5074
5513
  };
5075
5514
  }>;
5076
- };
5515
+ sellers?: Array<{
5516
+ __typename?: 'ProductSeller';
5517
+ active?: boolean | null;
5518
+ barcode?: string | null;
5519
+ discountEndAt?: number | null;
5520
+ discountFixed?: number | null;
5521
+ discountPercentage?: number | null;
5522
+ discountStartAt?: number | null;
5523
+ priceDiff: number;
5524
+ quantity: number;
5525
+ sku?: string | null;
5526
+ seller: {
5527
+ __typename?: 'Seller';
5528
+ id: string;
5529
+ name: string;
5530
+ description?: string | null;
5531
+ active: boolean;
5532
+ orderNumber: number;
5533
+ slug: string;
5534
+ rating?: number | null;
5535
+ verified: boolean;
5536
+ createdAt: any;
5537
+ updatedAt: any;
5538
+ };
5539
+ variant?: Array<{
5540
+ __typename?: 'ProductVariant';
5541
+ active?: boolean | null;
5542
+ default: boolean;
5543
+ id: string;
5544
+ attributes: Array<{
5545
+ __typename?: 'ProductVariantAttribute';
5546
+ value: string;
5547
+ attribute: {
5548
+ __typename?: 'Attribute';
5549
+ active: boolean;
5550
+ createdAt: any;
5551
+ id: string;
5552
+ name: string;
5553
+ type: string;
5554
+ updatedAt: any;
5555
+ values?: Array<{
5556
+ __typename?: 'AttributeValue';
5557
+ default: boolean;
5558
+ name: string;
5559
+ }> | null;
5560
+ };
5561
+ }>;
5562
+ }> | null;
5563
+ }>;
5564
+ };
5565
+ }>;
5566
+ pageInfo: {
5567
+ __typename?: 'PaginatedPageInfo';
5568
+ currentPage: number;
5569
+ hasNextPage: boolean;
5570
+ hasPreviousPage: boolean;
5571
+ totalEdges: number;
5572
+ totalPages: number;
5573
+ };
5574
+ } | null;
5575
+ };
5576
+ export type ProductQueryVariables = Exact<{
5577
+ id: Scalars['ID']['input'];
5578
+ withCategory?: InputMaybe<Scalars['Boolean']['input']>;
5579
+ withBrand?: InputMaybe<Scalars['Boolean']['input']>;
5580
+ withVariant?: InputMaybe<Scalars['Boolean']['input']>;
5581
+ withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5582
+ withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5583
+ withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5584
+ }>;
5585
+ export type ProductQuery = {
5586
+ __typename?: 'Query';
5587
+ product?: {
5588
+ __typename?: 'Product';
5589
+ id: string;
5590
+ active: boolean;
5591
+ condition: ProductCondition;
5592
+ content?: string | null;
5593
+ createdAt: any;
5594
+ description?: string | null;
5595
+ featured: boolean;
5596
+ maxOrderQty?: boolean | null;
5597
+ metaDescription?: boolean | null;
5598
+ metaKeywords?: boolean | null;
5599
+ metaTitle?: boolean | null;
5600
+ minOrderQty?: boolean | null;
5601
+ name: string;
5602
+ price: number;
5603
+ slug: string;
5604
+ soldCount: number;
5605
+ status: ProductStatus;
5606
+ todayDeal: boolean;
5607
+ type: ProductType;
5608
+ updatedAt?: any | null;
5609
+ views: number;
5610
+ warrantyDescription?: string | null;
5611
+ warrantyTime?: string | null;
5612
+ warrantyType?: string | null;
5613
+ category?: {
5614
+ __typename?: 'Category';
5615
+ id: string;
5616
+ name: string;
5617
+ description?: string | null;
5618
+ slug: string;
5619
+ createdAt: any;
5620
+ updatedAt: any;
5621
+ names?: Array<{
5622
+ __typename?: 'LocalizedText';
5623
+ locale: string;
5624
+ value: string;
5625
+ }> | null;
5626
+ } | null;
5627
+ brand?: {
5628
+ __typename?: 'Brand';
5629
+ id: string;
5630
+ name: string;
5631
+ active?: boolean | null;
5632
+ description?: string | null;
5633
+ orderNumber: number;
5634
+ slug: string;
5635
+ logo?: {
5636
+ __typename?: 'File';
5637
+ url?: string | null;
5638
+ } | null;
5639
+ } | null;
5640
+ variants?: Array<{
5641
+ __typename?: 'ProductVariant';
5642
+ active?: boolean | null;
5643
+ default: boolean;
5644
+ id: string;
5645
+ attributes: Array<{
5646
+ __typename?: 'ProductVariantAttribute';
5647
+ value: string;
5648
+ attribute: {
5649
+ __typename?: 'Attribute';
5650
+ active: boolean;
5651
+ createdAt: any;
5652
+ id: string;
5653
+ name: string;
5654
+ type: string;
5655
+ updatedAt: any;
5656
+ values?: Array<{
5657
+ __typename?: 'AttributeValue';
5658
+ default: boolean;
5659
+ name: string;
5660
+ }> | null;
5661
+ };
5662
+ }>;
5663
+ }>;
5664
+ thumbnail?: {
5665
+ __typename?: 'File';
5666
+ createdAt: any;
5667
+ id: string;
5668
+ name: string;
5669
+ size?: number | null;
5670
+ status: FileStatusEnum;
5671
+ type?: string | null;
5672
+ updatedAt: any;
5673
+ url?: string | null;
5674
+ thumbnails: {
5675
+ __typename?: 'FileThumbnails';
5676
+ thumbnail450Url?: string | null;
5677
+ thumbnail900Url?: string | null;
5678
+ };
5679
+ };
5680
+ files?: Array<{
5681
+ __typename?: 'ProductFile';
5682
+ type: ProductFileType;
5683
+ file: {
5684
+ __typename?: 'File';
5685
+ createdAt: any;
5686
+ id: string;
5687
+ name: string;
5688
+ size?: number | null;
5689
+ status: FileStatusEnum;
5690
+ type?: string | null;
5691
+ updatedAt: any;
5692
+ url?: string | null;
5693
+ thumbnails: {
5694
+ __typename?: 'FileThumbnails';
5695
+ thumbnail450Url?: string | null;
5696
+ thumbnail900Url?: string | null;
5697
+ };
5698
+ };
5699
+ }>;
5700
+ sellers?: Array<{
5701
+ __typename?: 'ProductSeller';
5702
+ active?: boolean | null;
5703
+ barcode?: string | null;
5704
+ discountEndAt?: number | null;
5705
+ discountFixed?: number | null;
5706
+ discountPercentage?: number | null;
5707
+ discountStartAt?: number | null;
5708
+ priceDiff: number;
5709
+ quantity: number;
5710
+ sku?: string | null;
5711
+ seller: {
5712
+ __typename?: 'Seller';
5713
+ id: string;
5714
+ name: string;
5715
+ description?: string | null;
5716
+ active: boolean;
5717
+ orderNumber: number;
5718
+ slug: string;
5719
+ rating?: number | null;
5720
+ verified: boolean;
5721
+ createdAt: any;
5722
+ updatedAt: any;
5723
+ };
5724
+ variant?: Array<{
5725
+ __typename?: 'ProductVariant';
5726
+ active?: boolean | null;
5727
+ default: boolean;
5728
+ id: string;
5729
+ attributes: Array<{
5730
+ __typename?: 'ProductVariantAttribute';
5731
+ value: string;
5732
+ attribute: {
5733
+ __typename?: 'Attribute';
5734
+ active: boolean;
5735
+ createdAt: any;
5736
+ id: string;
5737
+ name: string;
5738
+ type: string;
5739
+ updatedAt: any;
5740
+ values?: Array<{
5741
+ __typename?: 'AttributeValue';
5742
+ default: boolean;
5743
+ name: string;
5744
+ }> | null;
5745
+ };
5746
+ }>;
5747
+ }> | null;
5077
5748
  }>;
5078
- pageInfo: {
5079
- __typename?: 'PaginatedPageInfo';
5080
- currentPage: number;
5081
- hasNextPage: boolean;
5082
- hasPreviousPage: boolean;
5083
- totalEdges: number;
5084
- totalPages: number;
5085
- };
5086
5749
  } | null;
5087
5750
  };
5088
- export type ProductQueryVariables = Exact<{
5089
- id: Scalars['ID']['input'];
5090
- }>;
5091
- export type ProductQuery = {
5092
- __typename?: 'Query';
5093
- product?: Array<{
5094
- __typename?: 'Product';
5095
- id: string;
5096
- active: boolean;
5097
- condition: ProductCondition;
5098
- content?: string | null;
5099
- createdAt: any;
5100
- description?: string | null;
5101
- featured: boolean;
5102
- maxOrderQty?: boolean | null;
5103
- metaDescription?: boolean | null;
5104
- metaKeywords?: boolean | null;
5105
- metaTitle?: boolean | null;
5106
- minOrderQty?: boolean | null;
5107
- name: string;
5108
- price: number;
5109
- slug: string;
5110
- soldCount: number;
5111
- status: ProductStatus;
5112
- todayDeal: boolean;
5113
- type: ProductType;
5114
- updatedAt?: any | null;
5115
- views: number;
5116
- warrantyDescription?: string | null;
5117
- warrantyTime?: string | null;
5118
- warrantyType?: string | null;
5119
- }> | null;
5120
- };
5121
5751
  export type CreateProductMutationVariables = Exact<{
5122
5752
  data: CreateProductInput;
5753
+ withCategory?: InputMaybe<Scalars['Boolean']['input']>;
5754
+ withBrand?: InputMaybe<Scalars['Boolean']['input']>;
5755
+ withVariant?: InputMaybe<Scalars['Boolean']['input']>;
5756
+ withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5757
+ withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5758
+ withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5123
5759
  }>;
5124
5760
  export type CreateProductMutation = {
5125
5761
  __typename?: 'Mutation';
@@ -5149,11 +5785,153 @@ export type CreateProductMutation = {
5149
5785
  warrantyDescription?: string | null;
5150
5786
  warrantyTime?: string | null;
5151
5787
  warrantyType?: string | null;
5788
+ category?: {
5789
+ __typename?: 'Category';
5790
+ id: string;
5791
+ name: string;
5792
+ description?: string | null;
5793
+ slug: string;
5794
+ createdAt: any;
5795
+ updatedAt: any;
5796
+ names?: Array<{
5797
+ __typename?: 'LocalizedText';
5798
+ locale: string;
5799
+ value: string;
5800
+ }> | null;
5801
+ } | null;
5802
+ brand?: {
5803
+ __typename?: 'Brand';
5804
+ id: string;
5805
+ name: string;
5806
+ active?: boolean | null;
5807
+ description?: string | null;
5808
+ orderNumber: number;
5809
+ slug: string;
5810
+ logo?: {
5811
+ __typename?: 'File';
5812
+ url?: string | null;
5813
+ } | null;
5814
+ } | null;
5815
+ variants?: Array<{
5816
+ __typename?: 'ProductVariant';
5817
+ active?: boolean | null;
5818
+ default: boolean;
5819
+ id: string;
5820
+ attributes: Array<{
5821
+ __typename?: 'ProductVariantAttribute';
5822
+ value: string;
5823
+ attribute: {
5824
+ __typename?: 'Attribute';
5825
+ active: boolean;
5826
+ createdAt: any;
5827
+ id: string;
5828
+ name: string;
5829
+ type: string;
5830
+ updatedAt: any;
5831
+ values?: Array<{
5832
+ __typename?: 'AttributeValue';
5833
+ default: boolean;
5834
+ name: string;
5835
+ }> | null;
5836
+ };
5837
+ }>;
5838
+ }>;
5839
+ thumbnail?: {
5840
+ __typename?: 'File';
5841
+ createdAt: any;
5842
+ id: string;
5843
+ name: string;
5844
+ size?: number | null;
5845
+ status: FileStatusEnum;
5846
+ type?: string | null;
5847
+ updatedAt: any;
5848
+ url?: string | null;
5849
+ thumbnails: {
5850
+ __typename?: 'FileThumbnails';
5851
+ thumbnail450Url?: string | null;
5852
+ thumbnail900Url?: string | null;
5853
+ };
5854
+ };
5855
+ files?: Array<{
5856
+ __typename?: 'ProductFile';
5857
+ type: ProductFileType;
5858
+ file: {
5859
+ __typename?: 'File';
5860
+ createdAt: any;
5861
+ id: string;
5862
+ name: string;
5863
+ size?: number | null;
5864
+ status: FileStatusEnum;
5865
+ type?: string | null;
5866
+ updatedAt: any;
5867
+ url?: string | null;
5868
+ thumbnails: {
5869
+ __typename?: 'FileThumbnails';
5870
+ thumbnail450Url?: string | null;
5871
+ thumbnail900Url?: string | null;
5872
+ };
5873
+ };
5874
+ }>;
5875
+ sellers?: Array<{
5876
+ __typename?: 'ProductSeller';
5877
+ active?: boolean | null;
5878
+ barcode?: string | null;
5879
+ discountEndAt?: number | null;
5880
+ discountFixed?: number | null;
5881
+ discountPercentage?: number | null;
5882
+ discountStartAt?: number | null;
5883
+ priceDiff: number;
5884
+ quantity: number;
5885
+ sku?: string | null;
5886
+ seller: {
5887
+ __typename?: 'Seller';
5888
+ id: string;
5889
+ name: string;
5890
+ description?: string | null;
5891
+ active: boolean;
5892
+ orderNumber: number;
5893
+ slug: string;
5894
+ rating?: number | null;
5895
+ verified: boolean;
5896
+ createdAt: any;
5897
+ updatedAt: any;
5898
+ };
5899
+ variant?: Array<{
5900
+ __typename?: 'ProductVariant';
5901
+ active?: boolean | null;
5902
+ default: boolean;
5903
+ id: string;
5904
+ attributes: Array<{
5905
+ __typename?: 'ProductVariantAttribute';
5906
+ value: string;
5907
+ attribute: {
5908
+ __typename?: 'Attribute';
5909
+ active: boolean;
5910
+ createdAt: any;
5911
+ id: string;
5912
+ name: string;
5913
+ type: string;
5914
+ updatedAt: any;
5915
+ values?: Array<{
5916
+ __typename?: 'AttributeValue';
5917
+ default: boolean;
5918
+ name: string;
5919
+ }> | null;
5920
+ };
5921
+ }>;
5922
+ }> | null;
5923
+ }>;
5152
5924
  };
5153
5925
  };
5154
5926
  export type UpdateProductMutationVariables = Exact<{
5155
5927
  data: UpdateProductInput;
5156
5928
  id: Scalars['ID']['input'];
5929
+ withCategory?: InputMaybe<Scalars['Boolean']['input']>;
5930
+ withBrand?: InputMaybe<Scalars['Boolean']['input']>;
5931
+ withVariant?: InputMaybe<Scalars['Boolean']['input']>;
5932
+ withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5933
+ withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5934
+ withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5157
5935
  }>;
5158
5936
  export type UpdateProductMutation = {
5159
5937
  __typename?: 'Mutation';
@@ -5183,6 +5961,142 @@ export type UpdateProductMutation = {
5183
5961
  warrantyDescription?: string | null;
5184
5962
  warrantyTime?: string | null;
5185
5963
  warrantyType?: string | null;
5964
+ category?: {
5965
+ __typename?: 'Category';
5966
+ id: string;
5967
+ name: string;
5968
+ description?: string | null;
5969
+ slug: string;
5970
+ createdAt: any;
5971
+ updatedAt: any;
5972
+ names?: Array<{
5973
+ __typename?: 'LocalizedText';
5974
+ locale: string;
5975
+ value: string;
5976
+ }> | null;
5977
+ } | null;
5978
+ brand?: {
5979
+ __typename?: 'Brand';
5980
+ id: string;
5981
+ name: string;
5982
+ active?: boolean | null;
5983
+ description?: string | null;
5984
+ orderNumber: number;
5985
+ slug: string;
5986
+ logo?: {
5987
+ __typename?: 'File';
5988
+ url?: string | null;
5989
+ } | null;
5990
+ } | null;
5991
+ variants?: Array<{
5992
+ __typename?: 'ProductVariant';
5993
+ active?: boolean | null;
5994
+ default: boolean;
5995
+ id: string;
5996
+ attributes: Array<{
5997
+ __typename?: 'ProductVariantAttribute';
5998
+ value: string;
5999
+ attribute: {
6000
+ __typename?: 'Attribute';
6001
+ active: boolean;
6002
+ createdAt: any;
6003
+ id: string;
6004
+ name: string;
6005
+ type: string;
6006
+ updatedAt: any;
6007
+ values?: Array<{
6008
+ __typename?: 'AttributeValue';
6009
+ default: boolean;
6010
+ name: string;
6011
+ }> | null;
6012
+ };
6013
+ }>;
6014
+ }>;
6015
+ thumbnail?: {
6016
+ __typename?: 'File';
6017
+ createdAt: any;
6018
+ id: string;
6019
+ name: string;
6020
+ size?: number | null;
6021
+ status: FileStatusEnum;
6022
+ type?: string | null;
6023
+ updatedAt: any;
6024
+ url?: string | null;
6025
+ thumbnails: {
6026
+ __typename?: 'FileThumbnails';
6027
+ thumbnail450Url?: string | null;
6028
+ thumbnail900Url?: string | null;
6029
+ };
6030
+ };
6031
+ files?: Array<{
6032
+ __typename?: 'ProductFile';
6033
+ type: ProductFileType;
6034
+ file: {
6035
+ __typename?: 'File';
6036
+ createdAt: any;
6037
+ id: string;
6038
+ name: string;
6039
+ size?: number | null;
6040
+ status: FileStatusEnum;
6041
+ type?: string | null;
6042
+ updatedAt: any;
6043
+ url?: string | null;
6044
+ thumbnails: {
6045
+ __typename?: 'FileThumbnails';
6046
+ thumbnail450Url?: string | null;
6047
+ thumbnail900Url?: string | null;
6048
+ };
6049
+ };
6050
+ }>;
6051
+ sellers?: Array<{
6052
+ __typename?: 'ProductSeller';
6053
+ active?: boolean | null;
6054
+ barcode?: string | null;
6055
+ discountEndAt?: number | null;
6056
+ discountFixed?: number | null;
6057
+ discountPercentage?: number | null;
6058
+ discountStartAt?: number | null;
6059
+ priceDiff: number;
6060
+ quantity: number;
6061
+ sku?: string | null;
6062
+ seller: {
6063
+ __typename?: 'Seller';
6064
+ id: string;
6065
+ name: string;
6066
+ description?: string | null;
6067
+ active: boolean;
6068
+ orderNumber: number;
6069
+ slug: string;
6070
+ rating?: number | null;
6071
+ verified: boolean;
6072
+ createdAt: any;
6073
+ updatedAt: any;
6074
+ };
6075
+ variant?: Array<{
6076
+ __typename?: 'ProductVariant';
6077
+ active?: boolean | null;
6078
+ default: boolean;
6079
+ id: string;
6080
+ attributes: Array<{
6081
+ __typename?: 'ProductVariantAttribute';
6082
+ value: string;
6083
+ attribute: {
6084
+ __typename?: 'Attribute';
6085
+ active: boolean;
6086
+ createdAt: any;
6087
+ id: string;
6088
+ name: string;
6089
+ type: string;
6090
+ updatedAt: any;
6091
+ values?: Array<{
6092
+ __typename?: 'AttributeValue';
6093
+ default: boolean;
6094
+ name: string;
6095
+ }> | null;
6096
+ };
6097
+ }>;
6098
+ }> | null;
6099
+ }>;
5186
6100
  };
5187
6101
  };
5188
6102
  export type DeleteProductMutationVariables = Exact<{
@@ -5469,21 +6383,21 @@ export declare const CartFragmentFragmentDoc: import("graphql").DocumentNode;
5469
6383
  export declare const CustomerAddressFragmentFragmentDoc: import("graphql").DocumentNode;
5470
6384
  export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
5471
6385
  export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
5472
- export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
5473
- export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
5474
6386
  export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
5475
6387
  export declare const CartItemFragmentFragmentDoc: import("graphql").DocumentNode;
5476
6388
  export declare const CategoryFragmentFragmentDoc: import("graphql").DocumentNode;
5477
6389
  export declare const ColorFragmentFragmentDoc: import("graphql").DocumentNode;
5478
6390
  export declare const CustomFieldFragmentFragmentDoc: import("graphql").DocumentNode;
5479
- export declare const CustomerFragmentFragmentDoc: import("graphql").DocumentNode;
6391
+ export declare const CustomerEmailAddressFragmentFragmentDoc: import("graphql").DocumentNode;
5480
6392
  export declare const CustomerTelephoneNumberFragmentFragmentDoc: import("graphql").DocumentNode;
6393
+ export declare const CustomerFragmentFragmentDoc: import("graphql").DocumentNode;
5481
6394
  export declare const FileThumbnailsFieldsFragmentDoc: import("graphql").DocumentNode;
5482
6395
  export declare const FileFieldsFragmentDoc: import("graphql").DocumentNode;
5483
6396
  export declare const FileUploadUrlFieldsFragmentDoc: import("graphql").DocumentNode;
5484
6397
  export declare const FileUploadFieldsFragmentDoc: import("graphql").DocumentNode;
5485
6398
  export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
5486
6399
  export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
6400
+ export declare const ProductSellerFragmentFragmentDoc: import("graphql").DocumentNode;
5487
6401
  export declare const TagFragmentFragmentDoc: import("graphql").DocumentNode;
5488
6402
  export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
5489
6403
  export declare const PaginatedAttributesDocument: import("graphql").DocumentNode;
@@ -5501,11 +6415,26 @@ export declare const PaginatedColorsDocument: import("graphql").DocumentNode;
5501
6415
  export declare const InfiniteCustomFieldsDocument: import("graphql").DocumentNode;
5502
6416
  export declare const PaginatedCustomFieldsDocument: import("graphql").DocumentNode;
5503
6417
  export declare const CustomFieldDocument: import("graphql").DocumentNode;
5504
- export declare const CreateCustomerDocument: import("graphql").DocumentNode;
5505
- export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
6418
+ export declare const CreateCustomerAddressDocument: import("graphql").DocumentNode;
6419
+ export declare const UpdateCustomerAddressDocument: import("graphql").DocumentNode;
6420
+ export declare const DeleteCustomerAddressDocument: import("graphql").DocumentNode;
6421
+ export declare const InfiniteCustomerAddressDocument: import("graphql").DocumentNode;
6422
+ export declare const PaginatedCustomerAddressDocument: import("graphql").DocumentNode;
6423
+ export declare const CreateCustomerEmailAddressDocument: import("graphql").DocumentNode;
6424
+ export declare const UpdateCustomerEmailAddressDocument: import("graphql").DocumentNode;
6425
+ export declare const DeleteCustomerEmailAddressDocument: import("graphql").DocumentNode;
6426
+ export declare const InfiniteCustomerEmailAddressDocument: import("graphql").DocumentNode;
6427
+ export declare const PaginatedCustomerEmailAddressDocument: import("graphql").DocumentNode;
6428
+ export declare const CreateCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6429
+ export declare const UpdateCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6430
+ export declare const DeleteCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6431
+ export declare const InfiniteCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6432
+ export declare const PaginatedCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
5506
6433
  export declare const InfiniteCustomersDocument: import("graphql").DocumentNode;
5507
6434
  export declare const PaginatedCustomersDocument: import("graphql").DocumentNode;
5508
6435
  export declare const CustomerDocument: import("graphql").DocumentNode;
6436
+ export declare const CreateCustomerDocument: import("graphql").DocumentNode;
6437
+ export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
5509
6438
  export declare const InitiateFileUploadDocument: import("graphql").DocumentNode;
5510
6439
  export declare const CompleteFileUploadDocument: import("graphql").DocumentNode;
5511
6440
  export declare const FileDocument: import("graphql").DocumentNode;