@dokamerce/web-sdk 0.22.0 → 0.26.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.
@@ -489,6 +489,10 @@ export type CreateCustomerAddressInput = {
489
489
  regionCode?: InputMaybe<RegionCodeEnum>;
490
490
  regionName?: InputMaybe<Scalars['String']['input']>;
491
491
  };
492
+ export type CreateCustomerEmailAddressInput = {
493
+ roles?: InputMaybe<Array<EmailAddressRole>>;
494
+ value: Scalars['String']['input'];
495
+ };
492
496
  export type CreateCustomerInput = {
493
497
  active?: Scalars['Boolean']['input'];
494
498
  addresses?: InputMaybe<Array<CreateCustomerAddressInput>>;
@@ -535,6 +539,12 @@ export type CreateProductInput = {
535
539
  warrantyTime?: InputMaybe<Scalars['String']['input']>;
536
540
  warrantyType?: InputMaybe<Scalars['String']['input']>;
537
541
  };
542
+ export type CreateProductReviewInput = {
543
+ content?: InputMaybe<Scalars['String']['input']>;
544
+ productId: Scalars['ID']['input'];
545
+ rating?: InputMaybe<Scalars['Float']['input']>;
546
+ title?: InputMaybe<Scalars['String']['input']>;
547
+ };
538
548
  export type CreateSellerInput = {
539
549
  active: Scalars['Boolean']['input'];
540
550
  name: Scalars['String']['input'];
@@ -610,9 +620,11 @@ export type Customer = {
610
620
  active: Scalars['Boolean']['output'];
611
621
  addresses?: Maybe<Array<CustomerAddress>>;
612
622
  createdAt: Scalars['DateTime']['output'];
623
+ emails?: Maybe<Array<CustomerEmailAddress>>;
613
624
  fullName: Scalars['String']['output'];
614
625
  id: Scalars['ID']['output'];
615
626
  image?: Maybe<File>;
627
+ orderCount: Scalars['Int']['output'];
616
628
  tags?: Maybe<Array<Tag>>;
617
629
  telephoneNumbers?: Maybe<Array<CustomerTelephoneNumber>>;
618
630
  updatedAt: Scalars['DateTime']['output'];
@@ -656,6 +668,34 @@ export type CustomerAddressSort = {
656
668
  field: CustomerAddressFieldsEnum;
657
669
  order?: InputMaybe<SortOrderEnum>;
658
670
  };
671
+ export type CustomerEmailAddress = {
672
+ __typename?: 'CustomerEmailAddress';
673
+ bcc: Scalars['Boolean']['output'];
674
+ confirmed: Scalars['Boolean']['output'];
675
+ createdAt: Scalars['DateTime']['output'];
676
+ emailAddress: EmailAddress;
677
+ id: Scalars['ID']['output'];
678
+ roles?: Maybe<Array<EmailAddressRole>>;
679
+ updatedAt: Scalars['DateTime']['output'];
680
+ };
681
+ export declare enum CustomerEmailAddressFieldsEnum {
682
+ Bcc = "bcc",
683
+ Confirmed = "confirmed",
684
+ CreatedAt = "createdAt",
685
+ Id = "id",
686
+ Roles = "roles",
687
+ UpdatedAt = "updatedAt"
688
+ }
689
+ export type CustomerEmailAddressFilter = {
690
+ createdAt?: InputMaybe<DateTimeArrayFilter>;
691
+ id?: InputMaybe<IdArrayFilter>;
692
+ roles?: InputMaybe<EmailAddressesRoleEnumArrayFilter>;
693
+ updatedAt?: InputMaybe<DateTimeArrayFilter>;
694
+ };
695
+ export type CustomerEmailAddressSort = {
696
+ field: CustomerEmailAddressFieldsEnum;
697
+ order?: InputMaybe<SortOrderEnum>;
698
+ };
659
699
  export declare enum CustomerFieldsEnum {
660
700
  Active = "active",
661
701
  CreatedAt = "createdAt",
@@ -716,6 +756,24 @@ export type DateTimeFilter = {
716
756
  not?: InputMaybe<Scalars['DateTime']['input']>;
717
757
  notIn?: InputMaybe<Array<Scalars['DateTime']['input']>>;
718
758
  };
759
+ export type EmailAddress = {
760
+ __typename?: 'EmailAddress';
761
+ createdAt: Scalars['DateTime']['output'];
762
+ id: Scalars['ID']['output'];
763
+ value?: Maybe<Scalars['String']['output']>;
764
+ };
765
+ export declare enum EmailAddressRole {
766
+ Billing = "BILLING",
767
+ Marketing = "MARKETING",
768
+ Notification = "NOTIFICATION",
769
+ Primary = "PRIMARY",
770
+ Support = "SUPPORT"
771
+ }
772
+ export type EmailAddressesRoleEnumArrayFilter = {
773
+ every?: InputMaybe<Array<EmailAddressRole>>;
774
+ none?: InputMaybe<Array<EmailAddressRole>>;
775
+ some?: InputMaybe<Array<EmailAddressRole>>;
776
+ };
719
777
  export type File = {
720
778
  __typename?: 'File';
721
779
  createdAt: Scalars['DateTime']['output'];
@@ -768,6 +826,19 @@ export type IdArrayFilter = {
768
826
  none?: InputMaybe<Array<Scalars['ID']['input']>>;
769
827
  some?: InputMaybe<Array<Scalars['ID']['input']>>;
770
828
  };
829
+ export type IdFilter = {
830
+ contains?: InputMaybe<Scalars['ID']['input']>;
831
+ endsWith?: InputMaybe<Scalars['ID']['input']>;
832
+ equals?: InputMaybe<Scalars['ID']['input']>;
833
+ greaterThan?: InputMaybe<Scalars['ID']['input']>;
834
+ greaterThanOrEquals?: InputMaybe<Scalars['ID']['input']>;
835
+ in?: InputMaybe<Array<Scalars['ID']['input']>>;
836
+ lessThan?: InputMaybe<Scalars['ID']['input']>;
837
+ lessThanOrEquals?: InputMaybe<Scalars['ID']['input']>;
838
+ not?: InputMaybe<Scalars['ID']['input']>;
839
+ notIn?: InputMaybe<Array<Scalars['ID']['input']>>;
840
+ startsWith?: InputMaybe<Scalars['ID']['input']>;
841
+ };
771
842
  export type InfiniteAttributeEdge = {
772
843
  __typename?: 'InfiniteAttributeEdge';
773
844
  cursor: Scalars['String']['output'];
@@ -833,6 +904,16 @@ export type InfiniteCustomerEdge = {
833
904
  cursor: Scalars['String']['output'];
834
905
  node: Customer;
835
906
  };
907
+ export type InfiniteCustomerEmailAddressEdge = {
908
+ __typename?: 'InfiniteCustomerEmailAddressEdge';
909
+ cursor: Scalars['String']['output'];
910
+ node: CustomerEmailAddress;
911
+ };
912
+ export type InfiniteCustomerEmailAddressesConnection = {
913
+ __typename?: 'InfiniteCustomerEmailAddressesConnection';
914
+ edges: Array<InfiniteCustomerEmailAddressEdge>;
915
+ pageInfo: InfinitePageInfo;
916
+ };
836
917
  export type InfiniteCustomerTelephoneNumberEdge = {
837
918
  __typename?: 'InfiniteCustomerTelephoneNumberEdge';
838
919
  cursor: Scalars['String']['output'];
@@ -880,6 +961,16 @@ export type InfiniteProductEdge = {
880
961
  cursor: Scalars['String']['output'];
881
962
  node: Product;
882
963
  };
964
+ export type InfiniteProductReviewEdge = {
965
+ __typename?: 'InfiniteProductReviewEdge';
966
+ cursor: Scalars['String']['output'];
967
+ node: ProductReview;
968
+ };
969
+ export type InfiniteProductReviewsConnection = {
970
+ __typename?: 'InfiniteProductReviewsConnection';
971
+ edges: Array<InfiniteProductReviewEdge>;
972
+ pageInfo: InfinitePageInfo;
973
+ };
883
974
  export type InfiniteProductsConnection = {
884
975
  __typename?: 'InfiniteProductsConnection';
885
976
  edges: Array<InfiniteProductEdge>;
@@ -959,12 +1050,16 @@ export type Mutation = {
959
1050
  completeFileUpload: File;
960
1051
  createCustomer: Customer;
961
1052
  createCustomerAddress: CustomerAddress;
1053
+ createCustomerEmailAddress: CustomerEmailAddress;
962
1054
  createCustomerTelephoneNumber: CustomerTelephoneNumber;
963
1055
  createProduct: Product;
1056
+ createProductReview: ProductReview;
964
1057
  createSeller: Seller;
965
1058
  deleteCustomerAddress: Status;
1059
+ deleteCustomerEmailAddress: Status;
966
1060
  deleteCustomerTelephoneNumber: Status;
967
1061
  deleteProduct: Status;
1062
+ deleteProductReview: Status;
968
1063
  deleteSeller: Status;
969
1064
  finalizeOrder: Order;
970
1065
  initiateFileUpload: FileUpload;
@@ -973,8 +1068,10 @@ export type Mutation = {
973
1068
  updateCartItem?: Maybe<Cart>;
974
1069
  updateCustomer: Customer;
975
1070
  updateCustomerAddress: CustomerAddress;
1071
+ updateCustomerEmailAddress: CustomerEmailAddress;
976
1072
  updateCustomerTelephoneNumber: CustomerTelephoneNumber;
977
1073
  updateProduct: Product;
1074
+ updateProductReview: ProductReview;
978
1075
  updateSeller: Seller;
979
1076
  };
980
1077
  export type MutationAddToCartArgs = {
@@ -989,26 +1086,46 @@ export type MutationCreateCustomerArgs = {
989
1086
  data: CreateCustomerInput;
990
1087
  };
991
1088
  export type MutationCreateCustomerAddressArgs = {
1089
+ customerId: Scalars['ID']['input'];
992
1090
  data: CreateCustomerAddressInput;
993
1091
  };
1092
+ export type MutationCreateCustomerEmailAddressArgs = {
1093
+ customerId: Scalars['ID']['input'];
1094
+ data: CreateCustomerEmailAddressInput;
1095
+ };
994
1096
  export type MutationCreateCustomerTelephoneNumberArgs = {
1097
+ customerId: Scalars['ID']['input'];
995
1098
  data: CreateCustomerTelephoneNumberInput;
996
1099
  };
997
1100
  export type MutationCreateProductArgs = {
998
1101
  data: CreateProductInput;
999
1102
  };
1103
+ export type MutationCreateProductReviewArgs = {
1104
+ customerId: Scalars['ID']['input'];
1105
+ data: CreateProductReviewInput;
1106
+ };
1000
1107
  export type MutationCreateSellerArgs = {
1001
1108
  data: CreateSellerInput;
1002
1109
  };
1003
1110
  export type MutationDeleteCustomerAddressArgs = {
1111
+ customerId: Scalars['ID']['input'];
1112
+ id: Scalars['ID']['input'];
1113
+ };
1114
+ export type MutationDeleteCustomerEmailAddressArgs = {
1115
+ customerId: Scalars['ID']['input'];
1004
1116
  id: Scalars['ID']['input'];
1005
1117
  };
1006
1118
  export type MutationDeleteCustomerTelephoneNumberArgs = {
1119
+ customerId: Scalars['ID']['input'];
1007
1120
  id: Scalars['ID']['input'];
1008
1121
  };
1009
1122
  export type MutationDeleteProductArgs = {
1010
1123
  id: Scalars['ID']['input'];
1011
1124
  };
1125
+ export type MutationDeleteProductReviewArgs = {
1126
+ customerId: Scalars['ID']['input'];
1127
+ id: Scalars['ID']['input'];
1128
+ };
1012
1129
  export type MutationDeleteSellerArgs = {
1013
1130
  id: Scalars['ID']['input'];
1014
1131
  };
@@ -1036,10 +1153,17 @@ export type MutationUpdateCustomerArgs = {
1036
1153
  id: Scalars['ID']['input'];
1037
1154
  };
1038
1155
  export type MutationUpdateCustomerAddressArgs = {
1156
+ customerId: Scalars['ID']['input'];
1039
1157
  data: UpdateCustomerAddressInput;
1040
1158
  id: Scalars['ID']['input'];
1041
1159
  };
1160
+ export type MutationUpdateCustomerEmailAddressArgs = {
1161
+ customerId: Scalars['ID']['input'];
1162
+ data: UpdateCustomerEmailAddressInput;
1163
+ id: Scalars['ID']['input'];
1164
+ };
1042
1165
  export type MutationUpdateCustomerTelephoneNumberArgs = {
1166
+ customerId: Scalars['ID']['input'];
1043
1167
  data: UpdateCustomerTelephoneNumberInput;
1044
1168
  id: Scalars['ID']['input'];
1045
1169
  };
@@ -1047,6 +1171,11 @@ export type MutationUpdateProductArgs = {
1047
1171
  data: UpdateProductInput;
1048
1172
  id: Scalars['ID']['input'];
1049
1173
  };
1174
+ export type MutationUpdateProductReviewArgs = {
1175
+ customerId: Scalars['ID']['input'];
1176
+ data: UpdateProductReviewInput;
1177
+ id: Scalars['ID']['input'];
1178
+ };
1050
1179
  export type MutationUpdateSellerArgs = {
1051
1180
  data: UpdateSellerInput;
1052
1181
  id: Scalars['ID']['input'];
@@ -1158,6 +1287,16 @@ export type PaginatedCustomerEdge = {
1158
1287
  cursor: Scalars['String']['output'];
1159
1288
  node: Customer;
1160
1289
  };
1290
+ export type PaginatedCustomerEmailAddressEdge = {
1291
+ __typename?: 'PaginatedCustomerEmailAddressEdge';
1292
+ cursor: Scalars['String']['output'];
1293
+ node: CustomerEmailAddress;
1294
+ };
1295
+ export type PaginatedCustomerEmailAddressesConnection = {
1296
+ __typename?: 'PaginatedCustomerEmailAddressesConnection';
1297
+ edges: Array<PaginatedCustomerEmailAddressEdge>;
1298
+ pageInfo: PaginatedPageInfo;
1299
+ };
1161
1300
  export type PaginatedCustomerTelephoneNumberEdge = {
1162
1301
  __typename?: 'PaginatedCustomerTelephoneNumberEdge';
1163
1302
  cursor: Scalars['String']['output'];
@@ -1206,6 +1345,16 @@ export type PaginatedProductEdge = {
1206
1345
  cursor: Scalars['String']['output'];
1207
1346
  node: Product;
1208
1347
  };
1348
+ export type PaginatedProductReviewEdge = {
1349
+ __typename?: 'PaginatedProductReviewEdge';
1350
+ cursor: Scalars['String']['output'];
1351
+ node: ProductReview;
1352
+ };
1353
+ export type PaginatedProductReviewsConnection = {
1354
+ __typename?: 'PaginatedProductReviewsConnection';
1355
+ edges: Array<PaginatedProductReviewEdge>;
1356
+ pageInfo: PaginatedPageInfo;
1357
+ };
1209
1358
  export type PaginatedProductsConnection = {
1210
1359
  __typename?: 'PaginatedProductsConnection';
1211
1360
  edges: Array<PaginatedProductEdge>;
@@ -1262,6 +1411,7 @@ export type Product = {
1262
1411
  name: Scalars['String']['output'];
1263
1412
  price: Scalars['Float']['output'];
1264
1413
  publishedAt?: Maybe<Scalars['DateTime']['output']>;
1414
+ reviews: Array<ProductReview>;
1265
1415
  sellers: Array<ProductSeller>;
1266
1416
  slug: Scalars['String']['output'];
1267
1417
  soldCount: Scalars['Int']['output'];
@@ -1343,6 +1493,29 @@ export type ProductFilter = {
1343
1493
  type?: InputMaybe<ProductTypeEnumFilter>;
1344
1494
  views?: InputMaybe<NumberFilter>;
1345
1495
  };
1496
+ export type ProductReview = {
1497
+ __typename?: 'ProductReview';
1498
+ content?: Maybe<Scalars['String']['output']>;
1499
+ createdAt: Scalars['DateTime']['output'];
1500
+ customer?: Maybe<Customer>;
1501
+ id: Scalars['ID']['output'];
1502
+ product?: Maybe<Product>;
1503
+ rating?: Maybe<Scalars['Float']['output']>;
1504
+ title?: Maybe<Scalars['String']['output']>;
1505
+ updatedAt: Scalars['DateTime']['output'];
1506
+ };
1507
+ export type ProductReviewFilter = {
1508
+ content?: InputMaybe<StringFilter>;
1509
+ customerId?: InputMaybe<IdFilter>;
1510
+ id?: InputMaybe<IdArrayFilter>;
1511
+ productId?: InputMaybe<IdFilter>;
1512
+ rating?: InputMaybe<NumberFilter>;
1513
+ title?: InputMaybe<StringFilter>;
1514
+ };
1515
+ export type ProductReviewSort = {
1516
+ field: ReviewFieldsEnum;
1517
+ order?: InputMaybe<SortOrderEnum>;
1518
+ };
1346
1519
  export type ProductSeller = {
1347
1520
  __typename?: 'ProductSeller';
1348
1521
  active?: Maybe<Scalars['Boolean']['output']>;
@@ -1427,8 +1600,6 @@ export type Query = {
1427
1600
  cart?: Maybe<Cart>;
1428
1601
  customField?: Maybe<Array<CustomField>>;
1429
1602
  customer?: Maybe<Customer>;
1430
- customerCustomerAddress?: Maybe<CustomerAddress>;
1431
- customerTelephoneNumber?: Maybe<CustomerTelephoneNumber>;
1432
1603
  file: File;
1433
1604
  infiniteAttributes: InfiniteAttributesConnection;
1434
1605
  infiniteBrands: InfiniteBrandsConnection;
@@ -1436,10 +1607,12 @@ export type Query = {
1436
1607
  infiniteColors: InfiniteColorsConnection;
1437
1608
  infiniteCustomFields: InfiniteCustomFieldsConnection;
1438
1609
  infiniteCustomerAddress: InfiniteCustomerAddressesConnection;
1610
+ infiniteCustomerEmailAddresses: InfiniteCustomerEmailAddressesConnection;
1439
1611
  infiniteCustomerTelephoneNumbers: InfiniteCustomerTelephoneNumbersConnection;
1440
1612
  infiniteCustomers: InfiniteCustomersConnection;
1441
1613
  infiniteMetrics: InfiniteMetricsConnection;
1442
1614
  infiniteOrders: InfiniteOrdersConnection;
1615
+ infiniteProductReviews: InfiniteProductReviewsConnection;
1443
1616
  infiniteProducts: InfiniteProductsConnection;
1444
1617
  infiniteSellers: InfiniteSellersConnection;
1445
1618
  infiniteSizes: InfiniteSizesConnection;
@@ -1452,15 +1625,17 @@ export type Query = {
1452
1625
  paginatedColors?: Maybe<PaginatedColorsConnection>;
1453
1626
  paginatedCustomFields?: Maybe<PaginatedCustomFieldsConnection>;
1454
1627
  paginatedCustomerAddress: PaginatedCustomerAddressesConnection;
1628
+ paginatedCustomerEmailAddresses: PaginatedCustomerEmailAddressesConnection;
1455
1629
  paginatedCustomerTelephoneNumbers: PaginatedCustomerTelephoneNumbersConnection;
1456
1630
  paginatedCustomers?: Maybe<PaginatedCustomersConnection>;
1457
1631
  paginatedMetrics?: Maybe<PaginatedMetricsConnection>;
1458
1632
  paginatedOrders?: Maybe<PaginatedOrdersConnection>;
1633
+ paginatedProductReviews?: Maybe<PaginatedProductReviewsConnection>;
1459
1634
  paginatedProducts?: Maybe<PaginatedProductsConnection>;
1460
1635
  paginatedSellers?: Maybe<PaginatedSellersConnection>;
1461
1636
  paginatedSizes?: Maybe<PaginatedSizesConnection>;
1462
1637
  paginatedTags?: Maybe<PaginatedTagsConnection>;
1463
- product?: Maybe<Array<Product>>;
1638
+ product?: Maybe<Product>;
1464
1639
  seller?: Maybe<Seller>;
1465
1640
  size?: Maybe<Array<SizeGroup>>;
1466
1641
  tag?: Maybe<Array<Tag>>;
@@ -1488,12 +1663,6 @@ export type QueryCustomFieldArgs = {
1488
1663
  export type QueryCustomerArgs = {
1489
1664
  id: Scalars['ID']['input'];
1490
1665
  };
1491
- export type QueryCustomerCustomerAddressArgs = {
1492
- id: Scalars['ID']['input'];
1493
- };
1494
- export type QueryCustomerTelephoneNumberArgs = {
1495
- id: Scalars['ID']['input'];
1496
- };
1497
1666
  export type QueryFileArgs = {
1498
1667
  id: Scalars['ID']['input'];
1499
1668
  };
@@ -1540,14 +1709,25 @@ export type QueryInfiniteCustomFieldsArgs = {
1540
1709
  export type QueryInfiniteCustomerAddressArgs = {
1541
1710
  after?: InputMaybe<Scalars['String']['input']>;
1542
1711
  before?: InputMaybe<Scalars['String']['input']>;
1712
+ customerId: Scalars['ID']['input'];
1543
1713
  filter?: InputMaybe<CustomerAddressFilter>;
1544
1714
  first?: InputMaybe<Scalars['Int']['input']>;
1545
1715
  last?: InputMaybe<Scalars['Int']['input']>;
1546
1716
  sort?: InputMaybe<Array<CustomerAddressSort>>;
1547
1717
  };
1718
+ export type QueryInfiniteCustomerEmailAddressesArgs = {
1719
+ after?: InputMaybe<Scalars['String']['input']>;
1720
+ before?: InputMaybe<Scalars['String']['input']>;
1721
+ customerId: Scalars['ID']['input'];
1722
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
1723
+ first?: InputMaybe<Scalars['Int']['input']>;
1724
+ last?: InputMaybe<Scalars['Int']['input']>;
1725
+ sort?: InputMaybe<Array<CustomerEmailAddressSort>>;
1726
+ };
1548
1727
  export type QueryInfiniteCustomerTelephoneNumbersArgs = {
1549
1728
  after?: InputMaybe<Scalars['String']['input']>;
1550
1729
  before?: InputMaybe<Scalars['String']['input']>;
1730
+ customerId: Scalars['ID']['input'];
1551
1731
  filter?: InputMaybe<CustomerTelephoneNumberFilter>;
1552
1732
  first?: InputMaybe<Scalars['Int']['input']>;
1553
1733
  last?: InputMaybe<Scalars['Int']['input']>;
@@ -1577,6 +1757,14 @@ export type QueryInfiniteOrdersArgs = {
1577
1757
  last?: InputMaybe<Scalars['Int']['input']>;
1578
1758
  sort?: InputMaybe<Array<OrderSort>>;
1579
1759
  };
1760
+ export type QueryInfiniteProductReviewsArgs = {
1761
+ after?: InputMaybe<Scalars['String']['input']>;
1762
+ before?: InputMaybe<Scalars['String']['input']>;
1763
+ filter?: InputMaybe<ProductReviewFilter>;
1764
+ first?: InputMaybe<Scalars['Int']['input']>;
1765
+ last?: InputMaybe<Scalars['Int']['input']>;
1766
+ sort?: InputMaybe<Array<ProductReviewSort>>;
1767
+ };
1580
1768
  export type QueryInfiniteProductsArgs = {
1581
1769
  after?: InputMaybe<Scalars['String']['input']>;
1582
1770
  before?: InputMaybe<Scalars['String']['input']>;
@@ -1646,12 +1834,21 @@ export type QueryPaginatedCustomFieldsArgs = {
1646
1834
  sort?: InputMaybe<Array<CustomFieldSort>>;
1647
1835
  };
1648
1836
  export type QueryPaginatedCustomerAddressArgs = {
1837
+ customerId: Scalars['ID']['input'];
1649
1838
  filter?: InputMaybe<CustomerAddressFilter>;
1650
1839
  limit?: InputMaybe<Scalars['Int']['input']>;
1651
1840
  page?: InputMaybe<Scalars['Int']['input']>;
1652
1841
  sort?: InputMaybe<Array<CustomerAddressSort>>;
1653
1842
  };
1843
+ export type QueryPaginatedCustomerEmailAddressesArgs = {
1844
+ customerId: Scalars['ID']['input'];
1845
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
1846
+ limit?: InputMaybe<Scalars['Int']['input']>;
1847
+ page?: InputMaybe<Scalars['Int']['input']>;
1848
+ sort?: InputMaybe<Array<CustomerEmailAddressSort>>;
1849
+ };
1654
1850
  export type QueryPaginatedCustomerTelephoneNumbersArgs = {
1851
+ customerId: Scalars['ID']['input'];
1655
1852
  filter?: InputMaybe<CustomerTelephoneNumberFilter>;
1656
1853
  limit?: InputMaybe<Scalars['Int']['input']>;
1657
1854
  page?: InputMaybe<Scalars['Int']['input']>;
@@ -1675,6 +1872,12 @@ export type QueryPaginatedOrdersArgs = {
1675
1872
  page?: InputMaybe<Scalars['Int']['input']>;
1676
1873
  sort?: InputMaybe<Array<OrderSort>>;
1677
1874
  };
1875
+ export type QueryPaginatedProductReviewsArgs = {
1876
+ filter?: InputMaybe<ProductReviewFilter>;
1877
+ limit?: InputMaybe<Scalars['Int']['input']>;
1878
+ page?: InputMaybe<Scalars['Int']['input']>;
1879
+ sort?: InputMaybe<Array<ProductReviewSort>>;
1880
+ };
1678
1881
  export type QueryPaginatedProductsArgs = {
1679
1882
  filter?: InputMaybe<ProductFilter>;
1680
1883
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -1764,6 +1967,14 @@ export type RegionSort = {
1764
1967
  field: RegionFieldsEnum;
1765
1968
  order?: InputMaybe<SortOrderEnum>;
1766
1969
  };
1970
+ export declare enum ReviewFieldsEnum {
1971
+ Content = "content",
1972
+ CreatedAt = "createdAt",
1973
+ Id = "id",
1974
+ Rating = "rating",
1975
+ Title = "title",
1976
+ UpdatedAt = "updatedAt"
1977
+ }
1767
1978
  export type Seller = {
1768
1979
  __typename?: 'Seller';
1769
1980
  active: Scalars['Boolean']['output'];
@@ -2570,6 +2781,10 @@ export type UpdateCustomerAddressInput = {
2570
2781
  regionCode?: InputMaybe<RegionCodeEnum>;
2571
2782
  regionName?: InputMaybe<Scalars['String']['input']>;
2572
2783
  };
2784
+ export type UpdateCustomerEmailAddressInput = {
2785
+ roles?: InputMaybe<Array<EmailAddressRole>>;
2786
+ value?: InputMaybe<Scalars['String']['input']>;
2787
+ };
2573
2788
  export type UpdateCustomerInput = {
2574
2789
  active?: InputMaybe<Scalars['Boolean']['input']>;
2575
2790
  addresses?: InputMaybe<Array<CreateCustomerAddressInput>>;
@@ -2616,6 +2831,11 @@ export type UpdateProductInput = {
2616
2831
  warrantyTime?: InputMaybe<Scalars['String']['input']>;
2617
2832
  warrantyType?: InputMaybe<Scalars['String']['input']>;
2618
2833
  };
2834
+ export type UpdateProductReviewInput = {
2835
+ content?: InputMaybe<Scalars['String']['input']>;
2836
+ rating?: InputMaybe<Scalars['Float']['input']>;
2837
+ title?: InputMaybe<Scalars['String']['input']>;
2838
+ };
2619
2839
  export type UpdateSellerInput = {
2620
2840
  active?: InputMaybe<Scalars['Boolean']['input']>;
2621
2841
  name?: InputMaybe<Scalars['String']['input']>;
@@ -2828,10 +3048,22 @@ export type CartItemFragmentFragment = {
2828
3048
  address?: {
2829
3049
  __typename?: 'CustomerAddress';
2830
3050
  id: string;
3051
+ name?: string | null;
3052
+ postalCode?: string | null;
3053
+ regionCode?: RegionCodeEnum | null;
3054
+ regionName?: string | null;
2831
3055
  address?: string | null;
2832
3056
  address2?: string | null;
3057
+ city?: string | null;
3058
+ countryCode?: CountryCodeEnum | null;
3059
+ default: boolean;
2833
3060
  createdAt: any;
2834
3061
  updatedAt: any;
3062
+ geometry?: {
3063
+ __typename?: 'Geometry';
3064
+ coordinates: any;
3065
+ type: string;
3066
+ } | null;
2835
3067
  } | null;
2836
3068
  product: {
2837
3069
  __typename?: 'Product';
@@ -2926,10 +3158,22 @@ export type AddToCartMutation = {
2926
3158
  address?: {
2927
3159
  __typename?: 'CustomerAddress';
2928
3160
  id: string;
3161
+ name?: string | null;
3162
+ postalCode?: string | null;
3163
+ regionCode?: RegionCodeEnum | null;
3164
+ regionName?: string | null;
2929
3165
  address?: string | null;
2930
3166
  address2?: string | null;
3167
+ city?: string | null;
3168
+ countryCode?: CountryCodeEnum | null;
3169
+ default: boolean;
2931
3170
  createdAt: any;
2932
3171
  updatedAt: any;
3172
+ geometry?: {
3173
+ __typename?: 'Geometry';
3174
+ coordinates: any;
3175
+ type: string;
3176
+ } | null;
2933
3177
  } | null;
2934
3178
  product: {
2935
3179
  __typename?: 'Product';
@@ -2999,10 +3243,22 @@ export type AddToCartMutation = {
2999
3243
  address?: {
3000
3244
  __typename?: 'CustomerAddress';
3001
3245
  id: string;
3246
+ name?: string | null;
3247
+ postalCode?: string | null;
3248
+ regionCode?: RegionCodeEnum | null;
3249
+ regionName?: string | null;
3002
3250
  address?: string | null;
3003
3251
  address2?: string | null;
3252
+ city?: string | null;
3253
+ countryCode?: CountryCodeEnum | null;
3254
+ default: boolean;
3004
3255
  createdAt: any;
3005
3256
  updatedAt: any;
3257
+ geometry?: {
3258
+ __typename?: 'Geometry';
3259
+ coordinates: any;
3260
+ type: string;
3261
+ } | null;
3006
3262
  } | null;
3007
3263
  } | null;
3008
3264
  };
@@ -3034,10 +3290,22 @@ export type RemoveFromCartMutation = {
3034
3290
  address?: {
3035
3291
  __typename?: 'CustomerAddress';
3036
3292
  id: string;
3293
+ name?: string | null;
3294
+ postalCode?: string | null;
3295
+ regionCode?: RegionCodeEnum | null;
3296
+ regionName?: string | null;
3037
3297
  address?: string | null;
3038
3298
  address2?: string | null;
3299
+ city?: string | null;
3300
+ countryCode?: CountryCodeEnum | null;
3301
+ default: boolean;
3039
3302
  createdAt: any;
3040
3303
  updatedAt: any;
3304
+ geometry?: {
3305
+ __typename?: 'Geometry';
3306
+ coordinates: any;
3307
+ type: string;
3308
+ } | null;
3041
3309
  } | null;
3042
3310
  product: {
3043
3311
  __typename?: 'Product';
@@ -3107,10 +3375,22 @@ export type RemoveFromCartMutation = {
3107
3375
  address?: {
3108
3376
  __typename?: 'CustomerAddress';
3109
3377
  id: string;
3378
+ name?: string | null;
3379
+ postalCode?: string | null;
3380
+ regionCode?: RegionCodeEnum | null;
3381
+ regionName?: string | null;
3110
3382
  address?: string | null;
3111
3383
  address2?: string | null;
3384
+ city?: string | null;
3385
+ countryCode?: CountryCodeEnum | null;
3386
+ default: boolean;
3112
3387
  createdAt: any;
3113
3388
  updatedAt: any;
3389
+ geometry?: {
3390
+ __typename?: 'Geometry';
3391
+ coordinates: any;
3392
+ type: string;
3393
+ } | null;
3114
3394
  } | null;
3115
3395
  } | null;
3116
3396
  };
@@ -3142,10 +3422,22 @@ export type SetCartAddressMutation = {
3142
3422
  address?: {
3143
3423
  __typename?: 'CustomerAddress';
3144
3424
  id: string;
3425
+ name?: string | null;
3426
+ postalCode?: string | null;
3427
+ regionCode?: RegionCodeEnum | null;
3428
+ regionName?: string | null;
3145
3429
  address?: string | null;
3146
3430
  address2?: string | null;
3431
+ city?: string | null;
3432
+ countryCode?: CountryCodeEnum | null;
3433
+ default: boolean;
3147
3434
  createdAt: any;
3148
3435
  updatedAt: any;
3436
+ geometry?: {
3437
+ __typename?: 'Geometry';
3438
+ coordinates: any;
3439
+ type: string;
3440
+ } | null;
3149
3441
  } | null;
3150
3442
  product: {
3151
3443
  __typename?: 'Product';
@@ -3215,10 +3507,22 @@ export type SetCartAddressMutation = {
3215
3507
  address?: {
3216
3508
  __typename?: 'CustomerAddress';
3217
3509
  id: string;
3510
+ name?: string | null;
3511
+ postalCode?: string | null;
3512
+ regionCode?: RegionCodeEnum | null;
3513
+ regionName?: string | null;
3218
3514
  address?: string | null;
3219
3515
  address2?: string | null;
3516
+ city?: string | null;
3517
+ countryCode?: CountryCodeEnum | null;
3518
+ default: boolean;
3220
3519
  createdAt: any;
3221
3520
  updatedAt: any;
3521
+ geometry?: {
3522
+ __typename?: 'Geometry';
3523
+ coordinates: any;
3524
+ type: string;
3525
+ } | null;
3222
3526
  } | null;
3223
3527
  } | null;
3224
3528
  };
@@ -3251,10 +3555,22 @@ export type UpdateCartItemMutation = {
3251
3555
  address?: {
3252
3556
  __typename?: 'CustomerAddress';
3253
3557
  id: string;
3558
+ name?: string | null;
3559
+ postalCode?: string | null;
3560
+ regionCode?: RegionCodeEnum | null;
3561
+ regionName?: string | null;
3254
3562
  address?: string | null;
3255
3563
  address2?: string | null;
3564
+ city?: string | null;
3565
+ countryCode?: CountryCodeEnum | null;
3566
+ default: boolean;
3256
3567
  createdAt: any;
3257
3568
  updatedAt: any;
3569
+ geometry?: {
3570
+ __typename?: 'Geometry';
3571
+ coordinates: any;
3572
+ type: string;
3573
+ } | null;
3258
3574
  } | null;
3259
3575
  product: {
3260
3576
  __typename?: 'Product';
@@ -3324,10 +3640,22 @@ export type UpdateCartItemMutation = {
3324
3640
  address?: {
3325
3641
  __typename?: 'CustomerAddress';
3326
3642
  id: string;
3643
+ name?: string | null;
3644
+ postalCode?: string | null;
3645
+ regionCode?: RegionCodeEnum | null;
3646
+ regionName?: string | null;
3327
3647
  address?: string | null;
3328
3648
  address2?: string | null;
3649
+ city?: string | null;
3650
+ countryCode?: CountryCodeEnum | null;
3651
+ default: boolean;
3329
3652
  createdAt: any;
3330
3653
  updatedAt: any;
3654
+ geometry?: {
3655
+ __typename?: 'Geometry';
3656
+ coordinates: any;
3657
+ type: string;
3658
+ } | null;
3331
3659
  } | null;
3332
3660
  } | null;
3333
3661
  };
@@ -3358,10 +3686,22 @@ export type CartQuery = {
3358
3686
  address?: {
3359
3687
  __typename?: 'CustomerAddress';
3360
3688
  id: string;
3689
+ name?: string | null;
3690
+ postalCode?: string | null;
3691
+ regionCode?: RegionCodeEnum | null;
3692
+ regionName?: string | null;
3361
3693
  address?: string | null;
3362
3694
  address2?: string | null;
3695
+ city?: string | null;
3696
+ countryCode?: CountryCodeEnum | null;
3697
+ default: boolean;
3363
3698
  createdAt: any;
3364
3699
  updatedAt: any;
3700
+ geometry?: {
3701
+ __typename?: 'Geometry';
3702
+ coordinates: any;
3703
+ type: string;
3704
+ } | null;
3365
3705
  } | null;
3366
3706
  product: {
3367
3707
  __typename?: 'Product';
@@ -3431,10 +3771,22 @@ export type CartQuery = {
3431
3771
  address?: {
3432
3772
  __typename?: 'CustomerAddress';
3433
3773
  id: string;
3774
+ name?: string | null;
3775
+ postalCode?: string | null;
3776
+ regionCode?: RegionCodeEnum | null;
3777
+ regionName?: string | null;
3434
3778
  address?: string | null;
3435
3779
  address2?: string | null;
3780
+ city?: string | null;
3781
+ countryCode?: CountryCodeEnum | null;
3782
+ default: boolean;
3436
3783
  createdAt: any;
3437
3784
  updatedAt: any;
3785
+ geometry?: {
3786
+ __typename?: 'Geometry';
3787
+ coordinates: any;
3788
+ type: string;
3789
+ } | null;
3438
3790
  } | null;
3439
3791
  } | null;
3440
3792
  };
@@ -3799,119 +4151,548 @@ export type CustomFieldQuery = {
3799
4151
  updatedAt: any;
3800
4152
  }> | null;
3801
4153
  };
3802
- export type CustomerFragmentFragment = {
3803
- __typename?: 'Customer';
3804
- id: string;
3805
- fullName: string;
3806
- username: string;
3807
- active: boolean;
3808
- createdAt: any;
3809
- updatedAt: any;
3810
- };
3811
4154
  export type CustomerAddressFragmentFragment = {
3812
4155
  __typename?: 'CustomerAddress';
3813
4156
  id: string;
4157
+ name?: string | null;
4158
+ postalCode?: string | null;
4159
+ regionCode?: RegionCodeEnum | null;
4160
+ regionName?: string | null;
3814
4161
  address?: string | null;
3815
4162
  address2?: string | null;
4163
+ city?: string | null;
4164
+ countryCode?: CountryCodeEnum | null;
4165
+ default: boolean;
3816
4166
  createdAt: any;
3817
4167
  updatedAt: any;
4168
+ geometry?: {
4169
+ __typename?: 'Geometry';
4170
+ coordinates: any;
4171
+ type: string;
4172
+ } | null;
3818
4173
  };
3819
- export type CustomerTelephoneNumberFragmentFragment = {
3820
- __typename?: 'CustomerTelephoneNumber';
3821
- id: string;
3822
- number?: string | null;
3823
- targets?: Array<TelephoneNumberTarget> | null;
3824
- createdAt: any;
3825
- updatedAt: any;
3826
- };
3827
- export type CreateCustomerMutationVariables = Exact<{
3828
- data: CreateCustomerInput;
4174
+ export type CreateCustomerAddressMutationVariables = Exact<{
4175
+ customerId: Scalars['ID']['input'];
4176
+ data: CreateCustomerAddressInput;
3829
4177
  }>;
3830
- export type CreateCustomerMutation = {
4178
+ export type CreateCustomerAddressMutation = {
3831
4179
  __typename?: 'Mutation';
3832
- createCustomer: {
3833
- __typename?: 'Customer';
4180
+ createCustomerAddress: {
4181
+ __typename?: 'CustomerAddress';
3834
4182
  id: string;
3835
- fullName: string;
3836
- username: string;
3837
- active: boolean;
4183
+ name?: string | null;
4184
+ postalCode?: string | null;
4185
+ regionCode?: RegionCodeEnum | null;
4186
+ regionName?: string | null;
4187
+ address?: string | null;
4188
+ address2?: string | null;
4189
+ city?: string | null;
4190
+ countryCode?: CountryCodeEnum | null;
4191
+ default: boolean;
3838
4192
  createdAt: any;
3839
4193
  updatedAt: any;
4194
+ geometry?: {
4195
+ __typename?: 'Geometry';
4196
+ coordinates: any;
4197
+ type: string;
4198
+ } | null;
3840
4199
  };
3841
4200
  };
3842
- export type UpdateCustomerMutationVariables = Exact<{
3843
- data: UpdateCustomerInput;
4201
+ export type UpdateCustomerAddressMutationVariables = Exact<{
4202
+ customerId: Scalars['ID']['input'];
4203
+ data: UpdateCustomerAddressInput;
3844
4204
  id: Scalars['ID']['input'];
3845
4205
  }>;
3846
- export type UpdateCustomerMutation = {
4206
+ export type UpdateCustomerAddressMutation = {
3847
4207
  __typename?: 'Mutation';
3848
- updateCustomer: {
3849
- __typename?: 'Customer';
4208
+ updateCustomerAddress: {
4209
+ __typename?: 'CustomerAddress';
3850
4210
  id: string;
3851
- fullName: string;
3852
- username: string;
3853
- active: boolean;
4211
+ name?: string | null;
4212
+ postalCode?: string | null;
4213
+ regionCode?: RegionCodeEnum | null;
4214
+ regionName?: string | null;
4215
+ address?: string | null;
4216
+ address2?: string | null;
4217
+ city?: string | null;
4218
+ countryCode?: CountryCodeEnum | null;
4219
+ default: boolean;
3854
4220
  createdAt: any;
3855
4221
  updatedAt: any;
4222
+ geometry?: {
4223
+ __typename?: 'Geometry';
4224
+ coordinates: any;
4225
+ type: string;
4226
+ } | null;
3856
4227
  };
3857
4228
  };
3858
- export type InfiniteCustomersQueryVariables = Exact<{
4229
+ export type DeleteCustomerAddressMutationVariables = Exact<{
4230
+ customerId: Scalars['ID']['input'];
4231
+ id: Scalars['ID']['input'];
4232
+ }>;
4233
+ export type DeleteCustomerAddressMutation = {
4234
+ __typename?: 'Mutation';
4235
+ deleteCustomerAddress: {
4236
+ __typename?: 'Status';
4237
+ reason?: string | null;
4238
+ status: StatusEnum;
4239
+ };
4240
+ };
4241
+ export type InfiniteCustomerAddressQueryVariables = Exact<{
3859
4242
  after?: InputMaybe<Scalars['String']['input']>;
3860
4243
  before?: InputMaybe<Scalars['String']['input']>;
3861
- filter?: InputMaybe<CustomerFilter>;
4244
+ filter?: InputMaybe<CustomerAddressFilter>;
3862
4245
  first?: InputMaybe<Scalars['Int']['input']>;
3863
4246
  last?: InputMaybe<Scalars['Int']['input']>;
3864
- sort?: InputMaybe<Array<CustomerSort> | CustomerSort>;
3865
- withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
3866
- withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
3867
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
4247
+ sort?: InputMaybe<Array<CustomerAddressSort> | CustomerAddressSort>;
4248
+ customerId: Scalars['ID']['input'];
3868
4249
  }>;
3869
- export type InfiniteCustomersQuery = {
4250
+ export type InfiniteCustomerAddressQuery = {
3870
4251
  __typename?: 'Query';
3871
- infiniteCustomers: {
3872
- __typename?: 'InfiniteCustomersConnection';
4252
+ infiniteCustomerAddress: {
4253
+ __typename?: 'InfiniteCustomerAddressesConnection';
3873
4254
  edges: Array<{
3874
- __typename?: 'InfiniteCustomerEdge';
4255
+ __typename?: 'InfiniteCustomerAddressEdge';
3875
4256
  cursor: string;
3876
4257
  node: {
3877
- __typename?: 'Customer';
4258
+ __typename?: 'CustomerAddress';
3878
4259
  id: string;
3879
- fullName: string;
3880
- username: string;
3881
- active: boolean;
4260
+ name?: string | null;
4261
+ postalCode?: string | null;
4262
+ regionCode?: RegionCodeEnum | null;
4263
+ regionName?: string | null;
4264
+ address?: string | null;
4265
+ address2?: string | null;
4266
+ city?: string | null;
4267
+ countryCode?: CountryCodeEnum | null;
4268
+ default: boolean;
3882
4269
  createdAt: any;
3883
4270
  updatedAt: any;
3884
- addresses?: Array<{
3885
- __typename?: 'CustomerAddress';
3886
- id: string;
3887
- address?: string | null;
3888
- address2?: string | null;
3889
- createdAt: any;
3890
- updatedAt: any;
3891
- }> | null;
3892
- telephoneNumbers?: Array<{
3893
- __typename?: 'CustomerTelephoneNumber';
3894
- id: string;
3895
- number?: string | null;
3896
- targets?: Array<TelephoneNumberTarget> | null;
3897
- createdAt: any;
3898
- updatedAt: any;
3899
- }> | null;
3900
- image?: {
3901
- __typename?: 'File';
3902
- createdAt: any;
3903
- id: string;
3904
- name: string;
3905
- size?: number | null;
3906
- status: FileStatusEnum;
3907
- type?: string | null;
3908
- updatedAt: any;
3909
- url?: string | null;
3910
- thumbnails: {
3911
- __typename?: 'FileThumbnails';
3912
- thumbnail450Url?: string | null;
3913
- thumbnail900Url?: string | null;
3914
- };
4271
+ geometry?: {
4272
+ __typename?: 'Geometry';
4273
+ coordinates: any;
4274
+ type: string;
4275
+ } | null;
4276
+ };
4277
+ }>;
4278
+ pageInfo: {
4279
+ __typename?: 'InfinitePageInfo';
4280
+ endCursor?: string | null;
4281
+ hasNextPage: boolean;
4282
+ hasPreviousPage: boolean;
4283
+ startCursor?: string | null;
4284
+ };
4285
+ };
4286
+ };
4287
+ export type PaginatedCustomerAddressQueryVariables = Exact<{
4288
+ filter?: InputMaybe<CustomerAddressFilter>;
4289
+ limit?: InputMaybe<Scalars['Int']['input']>;
4290
+ page?: InputMaybe<Scalars['Int']['input']>;
4291
+ sort?: InputMaybe<Array<CustomerAddressSort> | CustomerAddressSort>;
4292
+ customerId: Scalars['ID']['input'];
4293
+ }>;
4294
+ export type PaginatedCustomerAddressQuery = {
4295
+ __typename?: 'Query';
4296
+ paginatedCustomerAddress: {
4297
+ __typename?: 'PaginatedCustomerAddressesConnection';
4298
+ edges: Array<{
4299
+ __typename?: 'PaginatedCustomerAddressEdge';
4300
+ cursor: string;
4301
+ node: {
4302
+ __typename?: 'CustomerAddress';
4303
+ id: string;
4304
+ name?: string | null;
4305
+ postalCode?: string | null;
4306
+ regionCode?: RegionCodeEnum | null;
4307
+ regionName?: string | null;
4308
+ address?: string | null;
4309
+ address2?: string | null;
4310
+ city?: string | null;
4311
+ countryCode?: CountryCodeEnum | null;
4312
+ default: boolean;
4313
+ createdAt: any;
4314
+ updatedAt: any;
4315
+ geometry?: {
4316
+ __typename?: 'Geometry';
4317
+ coordinates: any;
4318
+ type: string;
4319
+ } | null;
4320
+ };
4321
+ }>;
4322
+ pageInfo: {
4323
+ __typename?: 'PaginatedPageInfo';
4324
+ currentPage: number;
4325
+ hasNextPage: boolean;
4326
+ hasPreviousPage: boolean;
4327
+ totalEdges: number;
4328
+ totalPages: number;
4329
+ };
4330
+ };
4331
+ };
4332
+ export type CustomerEmailAddressFragmentFragment = {
4333
+ __typename?: 'CustomerEmailAddress';
4334
+ bcc: boolean;
4335
+ confirmed: boolean;
4336
+ createdAt: any;
4337
+ id: string;
4338
+ roles?: Array<EmailAddressRole> | null;
4339
+ updatedAt: any;
4340
+ emailAddress: {
4341
+ __typename?: 'EmailAddress';
4342
+ value?: string | null;
4343
+ };
4344
+ };
4345
+ export type CreateCustomerEmailAddressMutationVariables = Exact<{
4346
+ customerId: Scalars['ID']['input'];
4347
+ data: CreateCustomerEmailAddressInput;
4348
+ }>;
4349
+ export type CreateCustomerEmailAddressMutation = {
4350
+ __typename?: 'Mutation';
4351
+ createCustomerEmailAddress: {
4352
+ __typename?: 'CustomerEmailAddress';
4353
+ bcc: boolean;
4354
+ confirmed: boolean;
4355
+ createdAt: any;
4356
+ id: string;
4357
+ roles?: Array<EmailAddressRole> | null;
4358
+ updatedAt: any;
4359
+ emailAddress: {
4360
+ __typename?: 'EmailAddress';
4361
+ value?: string | null;
4362
+ };
4363
+ };
4364
+ };
4365
+ export type UpdateCustomerEmailAddressMutationVariables = Exact<{
4366
+ customerId: Scalars['ID']['input'];
4367
+ data: UpdateCustomerEmailAddressInput;
4368
+ id: Scalars['ID']['input'];
4369
+ }>;
4370
+ export type UpdateCustomerEmailAddressMutation = {
4371
+ __typename?: 'Mutation';
4372
+ updateCustomerEmailAddress: {
4373
+ __typename?: 'CustomerEmailAddress';
4374
+ bcc: boolean;
4375
+ confirmed: boolean;
4376
+ createdAt: any;
4377
+ id: string;
4378
+ roles?: Array<EmailAddressRole> | null;
4379
+ updatedAt: any;
4380
+ emailAddress: {
4381
+ __typename?: 'EmailAddress';
4382
+ value?: string | null;
4383
+ };
4384
+ };
4385
+ };
4386
+ export type DeleteCustomerEmailAddressMutationVariables = Exact<{
4387
+ customerId: Scalars['ID']['input'];
4388
+ id: Scalars['ID']['input'];
4389
+ }>;
4390
+ export type DeleteCustomerEmailAddressMutation = {
4391
+ __typename?: 'Mutation';
4392
+ deleteCustomerEmailAddress: {
4393
+ __typename?: 'Status';
4394
+ reason?: string | null;
4395
+ status: StatusEnum;
4396
+ };
4397
+ };
4398
+ export type InfiniteCustomerEmailAddressQueryVariables = Exact<{
4399
+ after?: InputMaybe<Scalars['String']['input']>;
4400
+ before?: InputMaybe<Scalars['String']['input']>;
4401
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
4402
+ first?: InputMaybe<Scalars['Int']['input']>;
4403
+ last?: InputMaybe<Scalars['Int']['input']>;
4404
+ sort?: InputMaybe<Array<CustomerEmailAddressSort> | CustomerEmailAddressSort>;
4405
+ customerId: Scalars['ID']['input'];
4406
+ }>;
4407
+ export type InfiniteCustomerEmailAddressQuery = {
4408
+ __typename?: 'Query';
4409
+ infiniteCustomerEmailAddresses: {
4410
+ __typename?: 'InfiniteCustomerEmailAddressesConnection';
4411
+ edges: Array<{
4412
+ __typename?: 'InfiniteCustomerEmailAddressEdge';
4413
+ cursor: string;
4414
+ node: {
4415
+ __typename?: 'CustomerEmailAddress';
4416
+ bcc: boolean;
4417
+ confirmed: boolean;
4418
+ createdAt: any;
4419
+ id: string;
4420
+ roles?: Array<EmailAddressRole> | null;
4421
+ updatedAt: any;
4422
+ emailAddress: {
4423
+ __typename?: 'EmailAddress';
4424
+ value?: string | null;
4425
+ };
4426
+ };
4427
+ }>;
4428
+ pageInfo: {
4429
+ __typename?: 'InfinitePageInfo';
4430
+ endCursor?: string | null;
4431
+ hasNextPage: boolean;
4432
+ hasPreviousPage: boolean;
4433
+ startCursor?: string | null;
4434
+ };
4435
+ };
4436
+ };
4437
+ export type PaginatedCustomerEmailAddressQueryVariables = Exact<{
4438
+ filter?: InputMaybe<CustomerEmailAddressFilter>;
4439
+ limit?: InputMaybe<Scalars['Int']['input']>;
4440
+ page?: InputMaybe<Scalars['Int']['input']>;
4441
+ sort?: InputMaybe<Array<CustomerEmailAddressSort> | CustomerEmailAddressSort>;
4442
+ customerId: Scalars['ID']['input'];
4443
+ }>;
4444
+ export type PaginatedCustomerEmailAddressQuery = {
4445
+ __typename?: 'Query';
4446
+ paginatedCustomerEmailAddresses: {
4447
+ __typename?: 'PaginatedCustomerEmailAddressesConnection';
4448
+ edges: Array<{
4449
+ __typename?: 'PaginatedCustomerEmailAddressEdge';
4450
+ cursor: string;
4451
+ node: {
4452
+ __typename?: 'CustomerEmailAddress';
4453
+ bcc: boolean;
4454
+ confirmed: boolean;
4455
+ createdAt: any;
4456
+ id: string;
4457
+ roles?: Array<EmailAddressRole> | null;
4458
+ updatedAt: any;
4459
+ emailAddress: {
4460
+ __typename?: 'EmailAddress';
4461
+ value?: string | null;
4462
+ };
4463
+ };
4464
+ }>;
4465
+ pageInfo: {
4466
+ __typename?: 'PaginatedPageInfo';
4467
+ currentPage: number;
4468
+ hasNextPage: boolean;
4469
+ hasPreviousPage: boolean;
4470
+ totalEdges: number;
4471
+ totalPages: number;
4472
+ };
4473
+ };
4474
+ };
4475
+ export type CustomerTelephoneNumberFragmentFragment = {
4476
+ __typename?: 'CustomerTelephoneNumber';
4477
+ id: string;
4478
+ number?: string | null;
4479
+ targets?: Array<TelephoneNumberTarget> | null;
4480
+ createdAt: any;
4481
+ updatedAt: any;
4482
+ };
4483
+ export type CreateCustomerTelephoneNumberMutationVariables = Exact<{
4484
+ customerId: Scalars['ID']['input'];
4485
+ data: CreateCustomerTelephoneNumberInput;
4486
+ }>;
4487
+ export type CreateCustomerTelephoneNumberMutation = {
4488
+ __typename?: 'Mutation';
4489
+ createCustomerTelephoneNumber: {
4490
+ __typename?: 'CustomerTelephoneNumber';
4491
+ id: string;
4492
+ number?: string | null;
4493
+ targets?: Array<TelephoneNumberTarget> | null;
4494
+ createdAt: any;
4495
+ updatedAt: any;
4496
+ };
4497
+ };
4498
+ export type UpdateCustomerTelephoneNumberMutationVariables = Exact<{
4499
+ customerId: Scalars['ID']['input'];
4500
+ data: UpdateCustomerTelephoneNumberInput;
4501
+ id: Scalars['ID']['input'];
4502
+ }>;
4503
+ export type UpdateCustomerTelephoneNumberMutation = {
4504
+ __typename?: 'Mutation';
4505
+ updateCustomerTelephoneNumber: {
4506
+ __typename?: 'CustomerTelephoneNumber';
4507
+ id: string;
4508
+ number?: string | null;
4509
+ targets?: Array<TelephoneNumberTarget> | null;
4510
+ createdAt: any;
4511
+ updatedAt: any;
4512
+ };
4513
+ };
4514
+ export type DeleteCustomerTelephoneNumberMutationVariables = Exact<{
4515
+ customerId: Scalars['ID']['input'];
4516
+ id: Scalars['ID']['input'];
4517
+ }>;
4518
+ export type DeleteCustomerTelephoneNumberMutation = {
4519
+ __typename?: 'Mutation';
4520
+ deleteCustomerTelephoneNumber: {
4521
+ __typename?: 'Status';
4522
+ reason?: string | null;
4523
+ status: StatusEnum;
4524
+ };
4525
+ };
4526
+ export type InfiniteCustomerTelephoneNumberQueryVariables = Exact<{
4527
+ after?: InputMaybe<Scalars['String']['input']>;
4528
+ before?: InputMaybe<Scalars['String']['input']>;
4529
+ filter?: InputMaybe<CustomerTelephoneNumberFilter>;
4530
+ first?: InputMaybe<Scalars['Int']['input']>;
4531
+ last?: InputMaybe<Scalars['Int']['input']>;
4532
+ sort?: InputMaybe<Array<CustomerTelephoneNumberSort> | CustomerTelephoneNumberSort>;
4533
+ customerId: Scalars['ID']['input'];
4534
+ }>;
4535
+ export type InfiniteCustomerTelephoneNumberQuery = {
4536
+ __typename?: 'Query';
4537
+ infiniteCustomerTelephoneNumbers: {
4538
+ __typename?: 'InfiniteCustomerTelephoneNumbersConnection';
4539
+ edges: Array<{
4540
+ __typename?: 'InfiniteCustomerTelephoneNumberEdge';
4541
+ cursor: string;
4542
+ node: {
4543
+ __typename?: 'CustomerTelephoneNumber';
4544
+ id: string;
4545
+ number?: string | null;
4546
+ targets?: Array<TelephoneNumberTarget> | null;
4547
+ createdAt: any;
4548
+ updatedAt: any;
4549
+ };
4550
+ }>;
4551
+ pageInfo: {
4552
+ __typename?: 'InfinitePageInfo';
4553
+ endCursor?: string | null;
4554
+ hasNextPage: boolean;
4555
+ hasPreviousPage: boolean;
4556
+ startCursor?: string | null;
4557
+ };
4558
+ };
4559
+ };
4560
+ export type PaginatedCustomerTelephoneNumberQueryVariables = Exact<{
4561
+ filter?: InputMaybe<CustomerTelephoneNumberFilter>;
4562
+ limit?: InputMaybe<Scalars['Int']['input']>;
4563
+ page?: InputMaybe<Scalars['Int']['input']>;
4564
+ sort?: InputMaybe<Array<CustomerTelephoneNumberSort> | CustomerTelephoneNumberSort>;
4565
+ customerId: Scalars['ID']['input'];
4566
+ }>;
4567
+ export type PaginatedCustomerTelephoneNumberQuery = {
4568
+ __typename?: 'Query';
4569
+ paginatedCustomerTelephoneNumbers: {
4570
+ __typename?: 'PaginatedCustomerTelephoneNumbersConnection';
4571
+ edges: Array<{
4572
+ __typename?: 'PaginatedCustomerTelephoneNumberEdge';
4573
+ cursor: string;
4574
+ node: {
4575
+ __typename?: 'CustomerTelephoneNumber';
4576
+ id: string;
4577
+ number?: string | null;
4578
+ targets?: Array<TelephoneNumberTarget> | null;
4579
+ createdAt: any;
4580
+ updatedAt: any;
4581
+ };
4582
+ }>;
4583
+ pageInfo: {
4584
+ __typename?: 'PaginatedPageInfo';
4585
+ currentPage: number;
4586
+ hasNextPage: boolean;
4587
+ hasPreviousPage: boolean;
4588
+ totalEdges: number;
4589
+ totalPages: number;
4590
+ };
4591
+ };
4592
+ };
4593
+ export type CustomerFragmentFragment = {
4594
+ __typename?: 'Customer';
4595
+ id: string;
4596
+ fullName: string;
4597
+ username: string;
4598
+ active: boolean;
4599
+ orderCount: number;
4600
+ createdAt: any;
4601
+ updatedAt: any;
4602
+ };
4603
+ export type InfiniteCustomersQueryVariables = Exact<{
4604
+ after?: InputMaybe<Scalars['String']['input']>;
4605
+ before?: InputMaybe<Scalars['String']['input']>;
4606
+ filter?: InputMaybe<CustomerFilter>;
4607
+ first?: InputMaybe<Scalars['Int']['input']>;
4608
+ last?: InputMaybe<Scalars['Int']['input']>;
4609
+ sort?: InputMaybe<Array<CustomerSort> | CustomerSort>;
4610
+ withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4611
+ withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4612
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
4613
+ withTags?: InputMaybe<Scalars['Boolean']['input']>;
4614
+ withEmails?: InputMaybe<Scalars['Boolean']['input']>;
4615
+ }>;
4616
+ export type InfiniteCustomersQuery = {
4617
+ __typename?: 'Query';
4618
+ infiniteCustomers: {
4619
+ __typename?: 'InfiniteCustomersConnection';
4620
+ edges: Array<{
4621
+ __typename?: 'InfiniteCustomerEdge';
4622
+ cursor: string;
4623
+ node: {
4624
+ __typename?: 'Customer';
4625
+ id: string;
4626
+ fullName: string;
4627
+ username: string;
4628
+ active: boolean;
4629
+ orderCount: number;
4630
+ createdAt: any;
4631
+ updatedAt: any;
4632
+ addresses?: Array<{
4633
+ __typename?: 'CustomerAddress';
4634
+ id: string;
4635
+ name?: string | null;
4636
+ postalCode?: string | null;
4637
+ regionCode?: RegionCodeEnum | null;
4638
+ regionName?: string | null;
4639
+ address?: string | null;
4640
+ address2?: string | null;
4641
+ city?: string | null;
4642
+ countryCode?: CountryCodeEnum | null;
4643
+ default: boolean;
4644
+ createdAt: any;
4645
+ updatedAt: any;
4646
+ geometry?: {
4647
+ __typename?: 'Geometry';
4648
+ coordinates: any;
4649
+ type: string;
4650
+ } | null;
4651
+ }> | null;
4652
+ telephoneNumbers?: Array<{
4653
+ __typename?: 'CustomerTelephoneNumber';
4654
+ id: string;
4655
+ number?: string | null;
4656
+ targets?: Array<TelephoneNumberTarget> | null;
4657
+ createdAt: any;
4658
+ updatedAt: any;
4659
+ }> | null;
4660
+ tags?: Array<{
4661
+ __typename?: 'Tag';
4662
+ id: string;
4663
+ name: string;
4664
+ color?: string | null;
4665
+ createdAt: any;
4666
+ updatedAt: any;
4667
+ }> | null;
4668
+ emails?: Array<{
4669
+ __typename?: 'CustomerEmailAddress';
4670
+ bcc: boolean;
4671
+ confirmed: boolean;
4672
+ createdAt: any;
4673
+ id: string;
4674
+ roles?: Array<EmailAddressRole> | null;
4675
+ updatedAt: any;
4676
+ emailAddress: {
4677
+ __typename?: 'EmailAddress';
4678
+ value?: string | null;
4679
+ };
4680
+ }> | null;
4681
+ image?: {
4682
+ __typename?: 'File';
4683
+ createdAt: any;
4684
+ id: string;
4685
+ name: string;
4686
+ size?: number | null;
4687
+ status: FileStatusEnum;
4688
+ type?: string | null;
4689
+ updatedAt: any;
4690
+ url?: string | null;
4691
+ thumbnails: {
4692
+ __typename?: 'FileThumbnails';
4693
+ thumbnail450Url?: string | null;
4694
+ thumbnail900Url?: string | null;
4695
+ };
3915
4696
  } | null;
3916
4697
  };
3917
4698
  }>;
@@ -3932,6 +4713,8 @@ export type PaginatedCustomersQueryVariables = Exact<{
3932
4713
  withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
3933
4714
  withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
3934
4715
  withImage?: InputMaybe<Scalars['Boolean']['input']>;
4716
+ withTags?: InputMaybe<Scalars['Boolean']['input']>;
4717
+ withEmails?: InputMaybe<Scalars['Boolean']['input']>;
3935
4718
  }>;
3936
4719
  export type PaginatedCustomersQuery = {
3937
4720
  __typename?: 'Query';
@@ -3946,15 +4729,28 @@ export type PaginatedCustomersQuery = {
3946
4729
  fullName: string;
3947
4730
  username: string;
3948
4731
  active: boolean;
4732
+ orderCount: number;
3949
4733
  createdAt: any;
3950
4734
  updatedAt: any;
3951
4735
  addresses?: Array<{
3952
4736
  __typename?: 'CustomerAddress';
3953
4737
  id: string;
4738
+ name?: string | null;
4739
+ postalCode?: string | null;
4740
+ regionCode?: RegionCodeEnum | null;
4741
+ regionName?: string | null;
3954
4742
  address?: string | null;
3955
4743
  address2?: string | null;
4744
+ city?: string | null;
4745
+ countryCode?: CountryCodeEnum | null;
4746
+ default: boolean;
3956
4747
  createdAt: any;
3957
4748
  updatedAt: any;
4749
+ geometry?: {
4750
+ __typename?: 'Geometry';
4751
+ coordinates: any;
4752
+ type: string;
4753
+ } | null;
3958
4754
  }> | null;
3959
4755
  telephoneNumbers?: Array<{
3960
4756
  __typename?: 'CustomerTelephoneNumber';
@@ -3964,6 +4760,27 @@ export type PaginatedCustomersQuery = {
3964
4760
  createdAt: any;
3965
4761
  updatedAt: any;
3966
4762
  }> | null;
4763
+ tags?: Array<{
4764
+ __typename?: 'Tag';
4765
+ id: string;
4766
+ name: string;
4767
+ color?: string | null;
4768
+ createdAt: any;
4769
+ updatedAt: any;
4770
+ }> | null;
4771
+ emails?: Array<{
4772
+ __typename?: 'CustomerEmailAddress';
4773
+ bcc: boolean;
4774
+ confirmed: boolean;
4775
+ createdAt: any;
4776
+ id: string;
4777
+ roles?: Array<EmailAddressRole> | null;
4778
+ updatedAt: any;
4779
+ emailAddress: {
4780
+ __typename?: 'EmailAddress';
4781
+ value?: string | null;
4782
+ };
4783
+ }> | null;
3967
4784
  image?: {
3968
4785
  __typename?: 'File';
3969
4786
  createdAt: any;
@@ -3997,6 +4814,8 @@ export type CustomerQueryVariables = Exact<{
3997
4814
  withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
3998
4815
  withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
3999
4816
  withImage?: InputMaybe<Scalars['Boolean']['input']>;
4817
+ withTags?: InputMaybe<Scalars['Boolean']['input']>;
4818
+ withEmails?: InputMaybe<Scalars['Boolean']['input']>;
4000
4819
  }>;
4001
4820
  export type CustomerQuery = {
4002
4821
  __typename?: 'Query';
@@ -4006,15 +4825,28 @@ export type CustomerQuery = {
4006
4825
  fullName: string;
4007
4826
  username: string;
4008
4827
  active: boolean;
4828
+ orderCount: number;
4009
4829
  createdAt: any;
4010
4830
  updatedAt: any;
4011
4831
  addresses?: Array<{
4012
4832
  __typename?: 'CustomerAddress';
4013
4833
  id: string;
4834
+ name?: string | null;
4835
+ postalCode?: string | null;
4836
+ regionCode?: RegionCodeEnum | null;
4837
+ regionName?: string | null;
4014
4838
  address?: string | null;
4015
4839
  address2?: string | null;
4840
+ city?: string | null;
4841
+ countryCode?: CountryCodeEnum | null;
4842
+ default: boolean;
4016
4843
  createdAt: any;
4017
4844
  updatedAt: any;
4845
+ geometry?: {
4846
+ __typename?: 'Geometry';
4847
+ coordinates: any;
4848
+ type: string;
4849
+ } | null;
4018
4850
  }> | null;
4019
4851
  telephoneNumbers?: Array<{
4020
4852
  __typename?: 'CustomerTelephoneNumber';
@@ -4024,6 +4856,27 @@ export type CustomerQuery = {
4024
4856
  createdAt: any;
4025
4857
  updatedAt: any;
4026
4858
  }> | null;
4859
+ tags?: Array<{
4860
+ __typename?: 'Tag';
4861
+ id: string;
4862
+ name: string;
4863
+ color?: string | null;
4864
+ createdAt: any;
4865
+ updatedAt: any;
4866
+ }> | null;
4867
+ emails?: Array<{
4868
+ __typename?: 'CustomerEmailAddress';
4869
+ bcc: boolean;
4870
+ confirmed: boolean;
4871
+ createdAt: any;
4872
+ id: string;
4873
+ roles?: Array<EmailAddressRole> | null;
4874
+ updatedAt: any;
4875
+ emailAddress: {
4876
+ __typename?: 'EmailAddress';
4877
+ value?: string | null;
4878
+ };
4879
+ }> | null;
4027
4880
  image?: {
4028
4881
  __typename?: 'File';
4029
4882
  createdAt: any;
@@ -4042,6 +4895,39 @@ export type CustomerQuery = {
4042
4895
  } | null;
4043
4896
  } | null;
4044
4897
  };
4898
+ export type CreateCustomerMutationVariables = Exact<{
4899
+ data: CreateCustomerInput;
4900
+ }>;
4901
+ export type CreateCustomerMutation = {
4902
+ __typename?: 'Mutation';
4903
+ createCustomer: {
4904
+ __typename?: 'Customer';
4905
+ id: string;
4906
+ fullName: string;
4907
+ username: string;
4908
+ active: boolean;
4909
+ orderCount: number;
4910
+ createdAt: any;
4911
+ updatedAt: any;
4912
+ };
4913
+ };
4914
+ export type UpdateCustomerMutationVariables = Exact<{
4915
+ data: UpdateCustomerInput;
4916
+ id: Scalars['ID']['input'];
4917
+ }>;
4918
+ export type UpdateCustomerMutation = {
4919
+ __typename?: 'Mutation';
4920
+ updateCustomer: {
4921
+ __typename?: 'Customer';
4922
+ id: string;
4923
+ fullName: string;
4924
+ username: string;
4925
+ active: boolean;
4926
+ orderCount: number;
4927
+ createdAt: any;
4928
+ updatedAt: any;
4929
+ };
4930
+ };
4045
4931
  export type FileThumbnailsFieldsFragment = {
4046
4932
  __typename?: 'FileThumbnails';
4047
4933
  thumbnail450Url?: string | null;
@@ -4308,56 +5194,282 @@ export type OrderQuery = {
4308
5194
  updatedAt?: any | null;
4309
5195
  }> | null;
4310
5196
  };
4311
- export type ProductFragmentFragment = {
4312
- __typename?: 'Product';
5197
+ export type ProductReviewFragmentFragment = {
5198
+ __typename?: 'ProductReview';
4313
5199
  id: string;
4314
- active: boolean;
4315
- condition: ProductCondition;
5200
+ title?: string | null;
4316
5201
  content?: string | null;
5202
+ rating?: number | null;
4317
5203
  createdAt: any;
4318
- description?: string | null;
4319
- featured: boolean;
4320
- maxOrderQty?: boolean | null;
4321
- metaDescription?: boolean | null;
4322
- metaKeywords?: boolean | null;
4323
- metaTitle?: boolean | null;
4324
- minOrderQty?: boolean | null;
4325
- name: string;
4326
- price: number;
4327
- slug: string;
4328
- soldCount: number;
4329
- status: ProductStatus;
4330
- todayDeal: boolean;
4331
- type: ProductType;
4332
- updatedAt?: any | null;
4333
- views: number;
4334
- warrantyDescription?: string | null;
4335
- warrantyTime?: string | null;
4336
- warrantyType?: string | null;
5204
+ updatedAt: any;
4337
5205
  };
4338
- export type ProductVariantFragmentFragment = {
4339
- __typename?: 'ProductVariant';
4340
- active?: boolean | null;
4341
- default: boolean;
4342
- id: string;
4343
- attributes: Array<{
4344
- __typename?: 'ProductVariantAttribute';
4345
- value: string;
4346
- attribute: {
4347
- __typename?: 'Attribute';
5206
+ export type InfiniteProductReviewsQueryVariables = Exact<{
5207
+ after?: InputMaybe<Scalars['String']['input']>;
5208
+ before?: InputMaybe<Scalars['String']['input']>;
5209
+ filter?: InputMaybe<ProductReviewFilter>;
5210
+ first?: InputMaybe<Scalars['Int']['input']>;
5211
+ last?: InputMaybe<Scalars['Int']['input']>;
5212
+ sort?: InputMaybe<Array<ProductReviewSort> | ProductReviewSort>;
5213
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5214
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5215
+ }>;
5216
+ export type InfiniteProductReviewsQuery = {
5217
+ __typename?: 'Query';
5218
+ infiniteProductReviews: {
5219
+ __typename?: 'InfiniteProductReviewsConnection';
5220
+ edges: Array<{
5221
+ __typename?: 'InfiniteProductReviewEdge';
5222
+ cursor: string;
5223
+ node: {
5224
+ __typename?: 'ProductReview';
5225
+ id: string;
5226
+ title?: string | null;
5227
+ content?: string | null;
5228
+ rating?: number | null;
5229
+ createdAt: any;
5230
+ updatedAt: any;
5231
+ product?: {
5232
+ __typename?: 'Product';
5233
+ id: string;
5234
+ active: boolean;
5235
+ condition: ProductCondition;
5236
+ content?: string | null;
5237
+ createdAt: any;
5238
+ description?: string | null;
5239
+ featured: boolean;
5240
+ maxOrderQty?: boolean | null;
5241
+ metaDescription?: boolean | null;
5242
+ metaKeywords?: boolean | null;
5243
+ metaTitle?: boolean | null;
5244
+ minOrderQty?: boolean | null;
5245
+ name: string;
5246
+ price: number;
5247
+ slug: string;
5248
+ soldCount: number;
5249
+ status: ProductStatus;
5250
+ todayDeal: boolean;
5251
+ type: ProductType;
5252
+ updatedAt?: any | null;
5253
+ views: number;
5254
+ warrantyDescription?: string | null;
5255
+ warrantyTime?: string | null;
5256
+ warrantyType?: string | null;
5257
+ } | null;
5258
+ customer?: {
5259
+ __typename?: 'Customer';
5260
+ id: string;
5261
+ fullName: string;
5262
+ username: string;
5263
+ active: boolean;
5264
+ orderCount: number;
5265
+ createdAt: any;
5266
+ updatedAt: any;
5267
+ } | null;
5268
+ };
5269
+ }>;
5270
+ pageInfo: {
5271
+ __typename?: 'InfinitePageInfo';
5272
+ endCursor?: string | null;
5273
+ hasNextPage: boolean;
5274
+ hasPreviousPage: boolean;
5275
+ startCursor?: string | null;
5276
+ };
5277
+ };
5278
+ };
5279
+ export type PaginatedProductReviewsQueryVariables = Exact<{
5280
+ filter?: InputMaybe<ProductReviewFilter>;
5281
+ limit?: InputMaybe<Scalars['Int']['input']>;
5282
+ page?: InputMaybe<Scalars['Int']['input']>;
5283
+ sort?: InputMaybe<Array<ProductReviewSort> | ProductReviewSort>;
5284
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5285
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5286
+ }>;
5287
+ export type PaginatedProductReviewsQuery = {
5288
+ __typename?: 'Query';
5289
+ paginatedProductReviews?: {
5290
+ __typename?: 'PaginatedProductReviewsConnection';
5291
+ edges: Array<{
5292
+ __typename?: 'PaginatedProductReviewEdge';
5293
+ cursor: string;
5294
+ node: {
5295
+ __typename?: 'ProductReview';
5296
+ id: string;
5297
+ title?: string | null;
5298
+ content?: string | null;
5299
+ rating?: number | null;
5300
+ createdAt: any;
5301
+ updatedAt: any;
5302
+ product?: {
5303
+ __typename?: 'Product';
5304
+ id: string;
5305
+ active: boolean;
5306
+ condition: ProductCondition;
5307
+ content?: string | null;
5308
+ createdAt: any;
5309
+ description?: string | null;
5310
+ featured: boolean;
5311
+ maxOrderQty?: boolean | null;
5312
+ metaDescription?: boolean | null;
5313
+ metaKeywords?: boolean | null;
5314
+ metaTitle?: boolean | null;
5315
+ minOrderQty?: boolean | null;
5316
+ name: string;
5317
+ price: number;
5318
+ slug: string;
5319
+ soldCount: number;
5320
+ status: ProductStatus;
5321
+ todayDeal: boolean;
5322
+ type: ProductType;
5323
+ updatedAt?: any | null;
5324
+ views: number;
5325
+ warrantyDescription?: string | null;
5326
+ warrantyTime?: string | null;
5327
+ warrantyType?: string | null;
5328
+ } | null;
5329
+ customer?: {
5330
+ __typename?: 'Customer';
5331
+ id: string;
5332
+ fullName: string;
5333
+ username: string;
5334
+ active: boolean;
5335
+ orderCount: number;
5336
+ createdAt: any;
5337
+ updatedAt: any;
5338
+ } | null;
5339
+ };
5340
+ }>;
5341
+ pageInfo: {
5342
+ __typename?: 'PaginatedPageInfo';
5343
+ currentPage: number;
5344
+ hasNextPage: boolean;
5345
+ hasPreviousPage: boolean;
5346
+ totalEdges: number;
5347
+ totalPages: number;
5348
+ };
5349
+ } | null;
5350
+ };
5351
+ export type CreateProductReviewMutationVariables = Exact<{
5352
+ data: CreateProductReviewInput;
5353
+ customerId: Scalars['ID']['input'];
5354
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5355
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5356
+ }>;
5357
+ export type CreateProductReviewMutation = {
5358
+ __typename?: 'Mutation';
5359
+ createProductReview: {
5360
+ __typename?: 'ProductReview';
5361
+ id: string;
5362
+ title?: string | null;
5363
+ content?: string | null;
5364
+ rating?: number | null;
5365
+ createdAt: any;
5366
+ updatedAt: any;
5367
+ product?: {
5368
+ __typename?: 'Product';
5369
+ id: string;
5370
+ active: boolean;
5371
+ condition: ProductCondition;
5372
+ content?: string | null;
5373
+ createdAt: any;
5374
+ description?: string | null;
5375
+ featured: boolean;
5376
+ maxOrderQty?: boolean | null;
5377
+ metaDescription?: boolean | null;
5378
+ metaKeywords?: boolean | null;
5379
+ metaTitle?: boolean | null;
5380
+ minOrderQty?: boolean | null;
5381
+ name: string;
5382
+ price: number;
5383
+ slug: string;
5384
+ soldCount: number;
5385
+ status: ProductStatus;
5386
+ todayDeal: boolean;
5387
+ type: ProductType;
5388
+ updatedAt?: any | null;
5389
+ views: number;
5390
+ warrantyDescription?: string | null;
5391
+ warrantyTime?: string | null;
5392
+ warrantyType?: string | null;
5393
+ } | null;
5394
+ customer?: {
5395
+ __typename?: 'Customer';
5396
+ id: string;
5397
+ fullName: string;
5398
+ username: string;
4348
5399
  active: boolean;
5400
+ orderCount: number;
4349
5401
  createdAt: any;
5402
+ updatedAt: any;
5403
+ } | null;
5404
+ };
5405
+ };
5406
+ export type UpdateProductReviewMutationVariables = Exact<{
5407
+ data: UpdateProductReviewInput;
5408
+ id: Scalars['ID']['input'];
5409
+ customerId: Scalars['ID']['input'];
5410
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5411
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5412
+ }>;
5413
+ export type UpdateProductReviewMutation = {
5414
+ __typename?: 'Mutation';
5415
+ updateProductReview: {
5416
+ __typename?: 'ProductReview';
5417
+ id: string;
5418
+ title?: string | null;
5419
+ content?: string | null;
5420
+ rating?: number | null;
5421
+ createdAt: any;
5422
+ updatedAt: any;
5423
+ product?: {
5424
+ __typename?: 'Product';
4350
5425
  id: string;
5426
+ active: boolean;
5427
+ condition: ProductCondition;
5428
+ content?: string | null;
5429
+ createdAt: any;
5430
+ description?: string | null;
5431
+ featured: boolean;
5432
+ maxOrderQty?: boolean | null;
5433
+ metaDescription?: boolean | null;
5434
+ metaKeywords?: boolean | null;
5435
+ metaTitle?: boolean | null;
5436
+ minOrderQty?: boolean | null;
4351
5437
  name: string;
4352
- type: string;
5438
+ price: number;
5439
+ slug: string;
5440
+ soldCount: number;
5441
+ status: ProductStatus;
5442
+ todayDeal: boolean;
5443
+ type: ProductType;
5444
+ updatedAt?: any | null;
5445
+ views: number;
5446
+ warrantyDescription?: string | null;
5447
+ warrantyTime?: string | null;
5448
+ warrantyType?: string | null;
5449
+ } | null;
5450
+ customer?: {
5451
+ __typename?: 'Customer';
5452
+ id: string;
5453
+ fullName: string;
5454
+ username: string;
5455
+ active: boolean;
5456
+ orderCount: number;
5457
+ createdAt: any;
4353
5458
  updatedAt: any;
4354
- values?: Array<{
4355
- __typename?: 'AttributeValue';
4356
- default: boolean;
4357
- name: string;
4358
- }> | null;
4359
- };
4360
- }>;
5459
+ } | null;
5460
+ };
5461
+ };
5462
+ export type DeleteProductReviewMutationVariables = Exact<{
5463
+ id: Scalars['ID']['input'];
5464
+ customerId: Scalars['ID']['input'];
5465
+ }>;
5466
+ export type DeleteProductReviewMutation = {
5467
+ __typename?: 'Mutation';
5468
+ deleteProductReview: {
5469
+ __typename?: 'Status';
5470
+ reason?: string | null;
5471
+ status: StatusEnum;
5472
+ };
4361
5473
  };
4362
5474
  export type ProductSellerFragmentFragment = {
4363
5475
  __typename?: 'ProductSeller';
@@ -4408,6 +5520,57 @@ export type ProductSellerFragmentFragment = {
4408
5520
  }>;
4409
5521
  }> | null;
4410
5522
  };
5523
+ export type ProductVariantFragmentFragment = {
5524
+ __typename?: 'ProductVariant';
5525
+ active?: boolean | null;
5526
+ default: boolean;
5527
+ id: string;
5528
+ attributes: Array<{
5529
+ __typename?: 'ProductVariantAttribute';
5530
+ value: string;
5531
+ attribute: {
5532
+ __typename?: 'Attribute';
5533
+ active: boolean;
5534
+ createdAt: any;
5535
+ id: string;
5536
+ name: string;
5537
+ type: string;
5538
+ updatedAt: any;
5539
+ values?: Array<{
5540
+ __typename?: 'AttributeValue';
5541
+ default: boolean;
5542
+ name: string;
5543
+ }> | null;
5544
+ };
5545
+ }>;
5546
+ };
5547
+ export type ProductFragmentFragment = {
5548
+ __typename?: 'Product';
5549
+ id: string;
5550
+ active: boolean;
5551
+ condition: ProductCondition;
5552
+ content?: string | null;
5553
+ createdAt: any;
5554
+ description?: string | null;
5555
+ featured: boolean;
5556
+ maxOrderQty?: boolean | null;
5557
+ metaDescription?: boolean | null;
5558
+ metaKeywords?: boolean | null;
5559
+ metaTitle?: boolean | null;
5560
+ minOrderQty?: boolean | null;
5561
+ name: string;
5562
+ price: number;
5563
+ slug: string;
5564
+ soldCount: number;
5565
+ status: ProductStatus;
5566
+ todayDeal: boolean;
5567
+ type: ProductType;
5568
+ updatedAt?: any | null;
5569
+ views: number;
5570
+ warrantyDescription?: string | null;
5571
+ warrantyTime?: string | null;
5572
+ warrantyType?: string | null;
5573
+ };
4411
5574
  export type InfiniteProductsQueryVariables = Exact<{
4412
5575
  after?: InputMaybe<Scalars['String']['input']>;
4413
5576
  before?: InputMaybe<Scalars['String']['input']>;
@@ -4421,6 +5584,7 @@ export type InfiniteProductsQueryVariables = Exact<{
4421
5584
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
4422
5585
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
4423
5586
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5587
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
4424
5588
  }>;
4425
5589
  export type InfiniteProductsQuery = {
4426
5590
  __typename?: 'Query';
@@ -4591,6 +5755,15 @@ export type InfiniteProductsQuery = {
4591
5755
  }>;
4592
5756
  }> | null;
4593
5757
  }>;
5758
+ reviews?: Array<{
5759
+ __typename?: 'ProductReview';
5760
+ id: string;
5761
+ title?: string | null;
5762
+ content?: string | null;
5763
+ rating?: number | null;
5764
+ createdAt: any;
5765
+ updatedAt: any;
5766
+ }>;
4594
5767
  };
4595
5768
  }>;
4596
5769
  pageInfo: {
@@ -4613,6 +5786,7 @@ export type PaginatedProductsQueryVariables = Exact<{
4613
5786
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
4614
5787
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
4615
5788
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5789
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
4616
5790
  }>;
4617
5791
  export type PaginatedProductsQuery = {
4618
5792
  __typename?: 'Query';
@@ -4783,6 +5957,15 @@ export type PaginatedProductsQuery = {
4783
5957
  }>;
4784
5958
  }> | null;
4785
5959
  }>;
5960
+ reviews?: Array<{
5961
+ __typename?: 'ProductReview';
5962
+ id: string;
5963
+ title?: string | null;
5964
+ content?: string | null;
5965
+ rating?: number | null;
5966
+ createdAt: any;
5967
+ updatedAt: any;
5968
+ }>;
4786
5969
  };
4787
5970
  }>;
4788
5971
  pageInfo: {
@@ -4803,10 +5986,11 @@ export type ProductQueryVariables = Exact<{
4803
5986
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
4804
5987
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
4805
5988
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5989
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
4806
5990
  }>;
4807
5991
  export type ProductQuery = {
4808
5992
  __typename?: 'Query';
4809
- product?: Array<{
5993
+ product?: {
4810
5994
  __typename?: 'Product';
4811
5995
  id: string;
4812
5996
  active: boolean;
@@ -4968,7 +6152,16 @@ export type ProductQuery = {
4968
6152
  }>;
4969
6153
  }> | null;
4970
6154
  }>;
4971
- }> | null;
6155
+ reviews?: Array<{
6156
+ __typename?: 'ProductReview';
6157
+ id: string;
6158
+ title?: string | null;
6159
+ content?: string | null;
6160
+ rating?: number | null;
6161
+ createdAt: any;
6162
+ updatedAt: any;
6163
+ }>;
6164
+ } | null;
4972
6165
  };
4973
6166
  export type CreateProductMutationVariables = Exact<{
4974
6167
  data: CreateProductInput;
@@ -4978,6 +6171,7 @@ export type CreateProductMutationVariables = Exact<{
4978
6171
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
4979
6172
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
4980
6173
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
6174
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
4981
6175
  }>;
4982
6176
  export type CreateProductMutation = {
4983
6177
  __typename?: 'Mutation';
@@ -5143,6 +6337,15 @@ export type CreateProductMutation = {
5143
6337
  }>;
5144
6338
  }> | null;
5145
6339
  }>;
6340
+ reviews?: Array<{
6341
+ __typename?: 'ProductReview';
6342
+ id: string;
6343
+ title?: string | null;
6344
+ content?: string | null;
6345
+ rating?: number | null;
6346
+ createdAt: any;
6347
+ updatedAt: any;
6348
+ }>;
5146
6349
  };
5147
6350
  };
5148
6351
  export type UpdateProductMutationVariables = Exact<{
@@ -5154,6 +6357,7 @@ export type UpdateProductMutationVariables = Exact<{
5154
6357
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5155
6358
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5156
6359
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
6360
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
5157
6361
  }>;
5158
6362
  export type UpdateProductMutation = {
5159
6363
  __typename?: 'Mutation';
@@ -5319,6 +6523,15 @@ export type UpdateProductMutation = {
5319
6523
  }>;
5320
6524
  }> | null;
5321
6525
  }>;
6526
+ reviews?: Array<{
6527
+ __typename?: 'ProductReview';
6528
+ id: string;
6529
+ title?: string | null;
6530
+ content?: string | null;
6531
+ rating?: number | null;
6532
+ createdAt: any;
6533
+ updatedAt: any;
6534
+ }>;
5322
6535
  };
5323
6536
  };
5324
6537
  export type DeleteProductMutationVariables = Exact<{
@@ -5610,14 +6823,16 @@ export declare const CartItemFragmentFragmentDoc: import("graphql").DocumentNode
5610
6823
  export declare const CategoryFragmentFragmentDoc: import("graphql").DocumentNode;
5611
6824
  export declare const ColorFragmentFragmentDoc: import("graphql").DocumentNode;
5612
6825
  export declare const CustomFieldFragmentFragmentDoc: import("graphql").DocumentNode;
5613
- export declare const CustomerFragmentFragmentDoc: import("graphql").DocumentNode;
6826
+ export declare const CustomerEmailAddressFragmentFragmentDoc: import("graphql").DocumentNode;
5614
6827
  export declare const CustomerTelephoneNumberFragmentFragmentDoc: import("graphql").DocumentNode;
6828
+ export declare const CustomerFragmentFragmentDoc: import("graphql").DocumentNode;
5615
6829
  export declare const FileThumbnailsFieldsFragmentDoc: import("graphql").DocumentNode;
5616
6830
  export declare const FileFieldsFragmentDoc: import("graphql").DocumentNode;
5617
6831
  export declare const FileUploadUrlFieldsFragmentDoc: import("graphql").DocumentNode;
5618
6832
  export declare const FileUploadFieldsFragmentDoc: import("graphql").DocumentNode;
5619
6833
  export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
5620
6834
  export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
6835
+ export declare const ProductReviewFragmentFragmentDoc: import("graphql").DocumentNode;
5621
6836
  export declare const ProductSellerFragmentFragmentDoc: import("graphql").DocumentNode;
5622
6837
  export declare const TagFragmentFragmentDoc: import("graphql").DocumentNode;
5623
6838
  export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
@@ -5636,11 +6851,26 @@ export declare const PaginatedColorsDocument: import("graphql").DocumentNode;
5636
6851
  export declare const InfiniteCustomFieldsDocument: import("graphql").DocumentNode;
5637
6852
  export declare const PaginatedCustomFieldsDocument: import("graphql").DocumentNode;
5638
6853
  export declare const CustomFieldDocument: import("graphql").DocumentNode;
5639
- export declare const CreateCustomerDocument: import("graphql").DocumentNode;
5640
- export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
6854
+ export declare const CreateCustomerAddressDocument: import("graphql").DocumentNode;
6855
+ export declare const UpdateCustomerAddressDocument: import("graphql").DocumentNode;
6856
+ export declare const DeleteCustomerAddressDocument: import("graphql").DocumentNode;
6857
+ export declare const InfiniteCustomerAddressDocument: import("graphql").DocumentNode;
6858
+ export declare const PaginatedCustomerAddressDocument: import("graphql").DocumentNode;
6859
+ export declare const CreateCustomerEmailAddressDocument: import("graphql").DocumentNode;
6860
+ export declare const UpdateCustomerEmailAddressDocument: import("graphql").DocumentNode;
6861
+ export declare const DeleteCustomerEmailAddressDocument: import("graphql").DocumentNode;
6862
+ export declare const InfiniteCustomerEmailAddressDocument: import("graphql").DocumentNode;
6863
+ export declare const PaginatedCustomerEmailAddressDocument: import("graphql").DocumentNode;
6864
+ export declare const CreateCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6865
+ export declare const UpdateCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6866
+ export declare const DeleteCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6867
+ export declare const InfiniteCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
6868
+ export declare const PaginatedCustomerTelephoneNumberDocument: import("graphql").DocumentNode;
5641
6869
  export declare const InfiniteCustomersDocument: import("graphql").DocumentNode;
5642
6870
  export declare const PaginatedCustomersDocument: import("graphql").DocumentNode;
5643
6871
  export declare const CustomerDocument: import("graphql").DocumentNode;
6872
+ export declare const CreateCustomerDocument: import("graphql").DocumentNode;
6873
+ export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
5644
6874
  export declare const InitiateFileUploadDocument: import("graphql").DocumentNode;
5645
6875
  export declare const CompleteFileUploadDocument: import("graphql").DocumentNode;
5646
6876
  export declare const FileDocument: import("graphql").DocumentNode;
@@ -5649,6 +6879,11 @@ export declare const FinalizeOrderDocument: import("graphql").DocumentNode;
5649
6879
  export declare const InfiniteOrdersDocument: import("graphql").DocumentNode;
5650
6880
  export declare const PaginatedOrdersDocument: import("graphql").DocumentNode;
5651
6881
  export declare const OrderDocument: import("graphql").DocumentNode;
6882
+ export declare const InfiniteProductReviewsDocument: import("graphql").DocumentNode;
6883
+ export declare const PaginatedProductReviewsDocument: import("graphql").DocumentNode;
6884
+ export declare const CreateProductReviewDocument: import("graphql").DocumentNode;
6885
+ export declare const UpdateProductReviewDocument: import("graphql").DocumentNode;
6886
+ export declare const DeleteProductReviewDocument: import("graphql").DocumentNode;
5652
6887
  export declare const InfiniteProductsDocument: import("graphql").DocumentNode;
5653
6888
  export declare const PaginatedProductsDocument: import("graphql").DocumentNode;
5654
6889
  export declare const ProductDocument: import("graphql").DocumentNode;