@dokamerce/web-sdk 0.15.9 → 0.21.2

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 (60) hide show
  1. package/dist/graphql/__generated__/gateway.d.ts +1286 -193
  2. package/dist/graphql/__generated__/gateway.js +305 -115
  3. package/dist/graphql/__generated__/gateway.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/web-sdk/src/functions/index.d.ts +3 -0
  6. package/dist/web-sdk/src/functions/index.js +20 -0
  7. package/dist/web-sdk/src/functions/index.js.map +1 -0
  8. package/dist/web-sdk/src/functions/init-sdk-client.function.d.ts +2 -1
  9. package/dist/web-sdk/src/functions/init-sdk-client.function.js +3 -2
  10. package/dist/web-sdk/src/functions/init-sdk-client.function.js.map +1 -1
  11. package/dist/web-sdk/src/functions/init-sdk.function.d.ts +2 -1
  12. package/dist/web-sdk/src/functions/init-sdk.function.js +2 -1
  13. package/dist/web-sdk/src/functions/init-sdk.function.js.map +1 -1
  14. package/dist/web-sdk/src/index.d.ts +6 -4
  15. package/dist/web-sdk/src/index.js +5 -19
  16. package/dist/web-sdk/src/index.js.map +1 -1
  17. package/dist/web-sdk/src/services/attributes.d.ts +2 -2
  18. package/dist/web-sdk/src/services/attributes.js +15 -15
  19. package/dist/web-sdk/src/services/attributes.js.map +1 -1
  20. package/dist/web-sdk/src/services/brands.d.ts +2 -2
  21. package/dist/web-sdk/src/services/brands.js +11 -15
  22. package/dist/web-sdk/src/services/brands.js.map +1 -1
  23. package/dist/web-sdk/src/services/cart.d.ts +10 -0
  24. package/dist/web-sdk/src/services/cart.js +33 -0
  25. package/dist/web-sdk/src/services/cart.js.map +1 -0
  26. package/dist/web-sdk/src/services/categories.d.ts +2 -2
  27. package/dist/web-sdk/src/services/categories.js +12 -15
  28. package/dist/web-sdk/src/services/categories.js.map +1 -1
  29. package/dist/web-sdk/src/services/colors.d.ts +2 -2
  30. package/dist/web-sdk/src/services/colors.js +11 -15
  31. package/dist/web-sdk/src/services/colors.js.map +1 -1
  32. package/dist/web-sdk/src/services/custom-fields.d.ts +3 -3
  33. package/dist/web-sdk/src/services/custom-fields.js +15 -19
  34. package/dist/web-sdk/src/services/custom-fields.js.map +1 -1
  35. package/dist/web-sdk/src/services/customers.d.ts +5 -5
  36. package/dist/web-sdk/src/services/customers.js +18 -26
  37. package/dist/web-sdk/src/services/customers.js.map +1 -1
  38. package/dist/web-sdk/src/services/files.d.ts +3 -3
  39. package/dist/web-sdk/src/services/files.js +3 -3
  40. package/dist/web-sdk/src/services/files.js.map +1 -1
  41. package/dist/web-sdk/src/services/index.d.ts +2 -0
  42. package/dist/web-sdk/src/services/index.js +2 -0
  43. package/dist/web-sdk/src/services/index.js.map +1 -1
  44. package/dist/web-sdk/src/services/metrics.d.ts +1 -1
  45. package/dist/web-sdk/src/services/metrics.js +9 -11
  46. package/dist/web-sdk/src/services/metrics.js.map +1 -1
  47. package/dist/web-sdk/src/services/orders.d.ts +5 -5
  48. package/dist/web-sdk/src/services/orders.js +24 -22
  49. package/dist/web-sdk/src/services/orders.js.map +1 -1
  50. package/dist/web-sdk/src/services/products.d.ts +6 -6
  51. package/dist/web-sdk/src/services/products.js +45 -33
  52. package/dist/web-sdk/src/services/products.js.map +1 -1
  53. package/dist/web-sdk/src/services/sellers.d.ts +5 -5
  54. package/dist/web-sdk/src/services/sellers.js +28 -26
  55. package/dist/web-sdk/src/services/sellers.js.map +1 -1
  56. package/dist/web-sdk/src/services/tags.d.ts +9 -0
  57. package/dist/web-sdk/src/services/tags.js +30 -0
  58. package/dist/web-sdk/src/services/tags.js.map +1 -0
  59. package/dist/web-sdk/src/typings/sdk.typing.d.ts +4 -1
  60. package/package.json +2 -1
@@ -53,6 +53,14 @@ export type Scalars = {
53
53
  output: any;
54
54
  };
55
55
  };
56
+ export type AddToCartInput = {
57
+ addressId?: InputMaybe<Scalars['ID']['input']>;
58
+ productId: Scalars['ID']['input'];
59
+ quantity?: Scalars['Int']['input'];
60
+ sellerId: Scalars['ID']['input'];
61
+ shippingId?: InputMaybe<Scalars['ID']['input']>;
62
+ variantId?: InputMaybe<Scalars['ID']['input']>;
63
+ };
56
64
  export type Attribute = {
57
65
  __typename?: 'Attribute';
58
66
  active: Scalars['Boolean']['output'];
@@ -71,7 +79,7 @@ export declare enum AttributeFieldsEnum {
71
79
  }
72
80
  export type AttributeFilter = {
73
81
  id?: InputMaybe<IdArrayFilter>;
74
- name?: InputMaybe<StringArrayFilter>;
82
+ name?: InputMaybe<StringFilter>;
75
83
  };
76
84
  export type AttributeSort = {
77
85
  field: AttributeFieldsEnum;
@@ -111,13 +119,38 @@ export declare enum BrandFieldsEnum {
111
119
  export type BrandFilter = {
112
120
  active?: InputMaybe<BooleanFilter>;
113
121
  id?: InputMaybe<IdArrayFilter>;
114
- name?: InputMaybe<StringArrayFilter>;
115
- slug?: InputMaybe<StringArrayFilter>;
122
+ name?: InputMaybe<StringFilter>;
123
+ slug?: InputMaybe<StringFilter>;
116
124
  };
117
125
  export type BrandSort = {
118
126
  field: BrandFieldsEnum;
119
127
  order?: InputMaybe<SortOrderEnum>;
120
128
  };
129
+ export type Cart = {
130
+ __typename?: 'Cart';
131
+ address?: Maybe<CustomerAddress>;
132
+ amount: Scalars['Float']['output'];
133
+ items: Array<CartItem>;
134
+ shippingCost: Scalars['Float']['output'];
135
+ taxAmount: Scalars['Float']['output'];
136
+ totalAmount: Scalars['Float']['output'];
137
+ };
138
+ export type CartItem = {
139
+ __typename?: 'CartItem';
140
+ address?: Maybe<CustomerAddress>;
141
+ amount: Scalars['Float']['output'];
142
+ createdAt: Scalars['DateTime']['output'];
143
+ discountValue: Scalars['Float']['output'];
144
+ id: Scalars['ID']['output'];
145
+ product: Product;
146
+ quantity: Scalars['Float']['output'];
147
+ seller?: Maybe<Seller>;
148
+ shippingCost: Scalars['Float']['output'];
149
+ taxAmount: Scalars['Float']['output'];
150
+ totalAmount: Scalars['Float']['output'];
151
+ updatedAt: Scalars['DateTime']['output'];
152
+ variants: Array<ProductVariant>;
153
+ };
121
154
  export type Category = {
122
155
  __typename?: 'Category';
123
156
  children?: Maybe<Array<Category>>;
@@ -139,8 +172,8 @@ export declare enum CategoryFieldsEnum {
139
172
  }
140
173
  export type CategoryFilter = {
141
174
  id?: InputMaybe<IdArrayFilter>;
142
- name?: InputMaybe<StringArrayFilter>;
143
- slug?: InputMaybe<StringArrayFilter>;
175
+ name?: InputMaybe<StringFilter>;
176
+ slug?: InputMaybe<StringFilter>;
144
177
  };
145
178
  export type CategorySort = {
146
179
  field: CategoryFieldsEnum;
@@ -162,7 +195,7 @@ export declare enum ColorFieldsEnum {
162
195
  }
163
196
  export type ColorFilter = {
164
197
  id?: InputMaybe<IdArrayFilter>;
165
- name?: InputMaybe<StringArrayFilter>;
198
+ name?: InputMaybe<StringFilter>;
166
199
  };
167
200
  export type ColorSort = {
168
201
  field: ColorFieldsEnum;
@@ -456,6 +489,7 @@ export type CreateCustomerAddressInput = {
456
489
  regionName?: InputMaybe<Scalars['String']['input']>;
457
490
  };
458
491
  export type CreateCustomerInput = {
492
+ active?: Scalars['Boolean']['input'];
459
493
  addresses?: InputMaybe<Array<CreateCustomerAddressInput>>;
460
494
  customFields?: InputMaybe<Scalars['ID']['input']>;
461
495
  fullName: Scalars['String']['input'];
@@ -468,9 +502,6 @@ export type CreateCustomerTelephoneNumberInput = {
468
502
  targets?: InputMaybe<Array<TelephoneNumberTarget>>;
469
503
  value: Scalars['String']['input'];
470
504
  };
471
- export type CreateOrderInput = {
472
- total: Scalars['Float']['input'];
473
- };
474
505
  export type CreateProductInput = {
475
506
  active?: InputMaybe<Scalars['Boolean']['input']>;
476
507
  brandId: Scalars['ID']['input'];
@@ -535,8 +566,12 @@ export declare enum CustomFieldFieldsEnum {
535
566
  Values = "values"
536
567
  }
537
568
  export type CustomFieldFilter = {
569
+ enabled?: InputMaybe<BooleanFilter>;
538
570
  id?: InputMaybe<IdArrayFilter>;
539
- name?: InputMaybe<StringArrayFilter>;
571
+ name?: InputMaybe<StringFilter>;
572
+ required?: InputMaybe<StringFilter>;
573
+ target?: InputMaybe<CustomFieldTargetEnumFilter>;
574
+ type?: InputMaybe<CustomFieldTypeEnumFilter>;
540
575
  };
541
576
  export type CustomFieldSort = {
542
577
  field: CustomFieldFieldsEnum;
@@ -545,8 +580,15 @@ export type CustomFieldSort = {
545
580
  export declare enum CustomFieldTarget {
546
581
  Customer = "CUSTOMER",
547
582
  Order = "ORDER",
548
- Product = "PRODUCT"
583
+ Product = "PRODUCT",
584
+ Seller = "SELLER"
549
585
  }
586
+ export type CustomFieldTargetEnumFilter = {
587
+ equals?: InputMaybe<CustomFieldTarget>;
588
+ in?: InputMaybe<Array<CustomFieldTarget>>;
589
+ not?: InputMaybe<CustomFieldTarget>;
590
+ notIn?: InputMaybe<Array<CustomFieldTarget>>;
591
+ };
550
592
  export declare enum CustomFieldType {
551
593
  Boolean = "BOOLEAN",
552
594
  Date = "DATE",
@@ -555,6 +597,12 @@ export declare enum CustomFieldType {
555
597
  Number = "NUMBER",
556
598
  Shorttext = "SHORTTEXT"
557
599
  }
600
+ export type CustomFieldTypeEnumFilter = {
601
+ equals?: InputMaybe<CustomFieldType>;
602
+ in?: InputMaybe<Array<CustomFieldType>>;
603
+ not?: InputMaybe<CustomFieldType>;
604
+ notIn?: InputMaybe<Array<CustomFieldType>>;
605
+ };
558
606
  export type Customer = {
559
607
  __typename?: 'Customer';
560
608
  active: Scalars['Boolean']['output'];
@@ -598,8 +646,8 @@ export declare enum CustomerAddressFieldsEnum {
598
646
  RegionName = "regionName"
599
647
  }
600
648
  export type CustomerAddressFilter = {
601
- address?: InputMaybe<StringArrayFilter>;
602
- address2?: InputMaybe<StringArrayFilter>;
649
+ address?: InputMaybe<StringFilter>;
650
+ address2?: InputMaybe<StringFilter>;
603
651
  id?: InputMaybe<IdArrayFilter>;
604
652
  };
605
653
  export type CustomerAddressSort = {
@@ -607,16 +655,18 @@ export type CustomerAddressSort = {
607
655
  order?: InputMaybe<SortOrderEnum>;
608
656
  };
609
657
  export declare enum CustomerFieldsEnum {
658
+ Active = "active",
610
659
  CreatedAt = "createdAt",
611
660
  FullName = "fullName",
612
661
  Id = "id",
613
- UpdatedAt = "updatedAt"
662
+ UpdatedAt = "updatedAt",
663
+ Username = "username"
614
664
  }
615
665
  export type CustomerFilter = {
616
- active?: InputMaybe<StringArrayFilter>;
666
+ active?: InputMaybe<BooleanFilter>;
617
667
  id?: InputMaybe<IdArrayFilter>;
618
- name?: InputMaybe<StringArrayFilter>;
619
- username?: InputMaybe<StringArrayFilter>;
668
+ name?: InputMaybe<StringFilter>;
669
+ username?: InputMaybe<StringFilter>;
620
670
  };
621
671
  export type CustomerSort = {
622
672
  field: CustomerFieldsEnum;
@@ -639,11 +689,11 @@ export declare enum CustomerTelephoneNumberFieldsEnum {
639
689
  }
640
690
  export type CustomerTelephoneNumberFilter = {
641
691
  createdAt?: InputMaybe<DateTimeArrayFilter>;
642
- customType?: InputMaybe<StringArrayFilter>;
692
+ customType?: InputMaybe<StringFilter>;
643
693
  id?: InputMaybe<IdArrayFilter>;
644
694
  targets?: InputMaybe<TelephoneNumbersTypeEnumArrayFilter>;
645
695
  updatedAt?: InputMaybe<DateTimeArrayFilter>;
646
- value?: InputMaybe<StringArrayFilter>;
696
+ value?: InputMaybe<StringFilter>;
647
697
  };
648
698
  export type CustomerTelephoneNumberSort = {
649
699
  field: CustomerTelephoneNumberFieldsEnum;
@@ -895,7 +945,7 @@ export declare enum MetricFieldsEnum {
895
945
  }
896
946
  export type MetricFilter = {
897
947
  id?: InputMaybe<IdArrayFilter>;
898
- name?: InputMaybe<StringArrayFilter>;
948
+ name?: InputMaybe<StringFilter>;
899
949
  };
900
950
  export type MetricSort = {
901
951
  field: MetricFieldsEnum;
@@ -903,25 +953,32 @@ export type MetricSort = {
903
953
  };
904
954
  export type Mutation = {
905
955
  __typename?: 'Mutation';
956
+ addToCart?: Maybe<Cart>;
906
957
  completeFileUpload: File;
907
958
  createCustomer: Customer;
908
959
  createCustomerAddress: CustomerAddress;
909
960
  createCustomerTelephoneNumber: CustomerTelephoneNumber;
910
- createOrder: Order;
911
961
  createProduct: Product;
912
962
  createSeller: Seller;
913
963
  deleteCustomerAddress: Status;
914
964
  deleteCustomerTelephoneNumber: Status;
915
965
  deleteProduct: Status;
916
966
  deleteSeller: Status;
967
+ finalizeOrder: Order;
917
968
  initiateFileUpload: FileUpload;
969
+ removeFromCart?: Maybe<Cart>;
970
+ setCartAddress?: Maybe<Cart>;
971
+ updateCartItem?: Maybe<Cart>;
918
972
  updateCustomer: Customer;
919
973
  updateCustomerAddress: CustomerAddress;
920
974
  updateCustomerTelephoneNumber: CustomerTelephoneNumber;
921
- updateOrder: Order;
922
975
  updateProduct: Product;
923
976
  updateSeller: Seller;
924
977
  };
978
+ export type MutationAddToCartArgs = {
979
+ customerId: Scalars['ID']['input'];
980
+ data: Array<AddToCartInput>;
981
+ };
925
982
  export type MutationCompleteFileUploadArgs = {
926
983
  data: CompleteFileUploadInput;
927
984
  id: Scalars['ID']['input'];
@@ -935,9 +992,6 @@ export type MutationCreateCustomerAddressArgs = {
935
992
  export type MutationCreateCustomerTelephoneNumberArgs = {
936
993
  data: CreateCustomerTelephoneNumberInput;
937
994
  };
938
- export type MutationCreateOrderArgs = {
939
- data: CreateOrderInput;
940
- };
941
995
  export type MutationCreateProductArgs = {
942
996
  data: CreateProductInput;
943
997
  };
@@ -956,9 +1010,25 @@ export type MutationDeleteProductArgs = {
956
1010
  export type MutationDeleteSellerArgs = {
957
1011
  id: Scalars['ID']['input'];
958
1012
  };
1013
+ export type MutationFinalizeOrderArgs = {
1014
+ customerId: Scalars['ID']['input'];
1015
+ };
959
1016
  export type MutationInitiateFileUploadArgs = {
960
1017
  data: InitiateFileUploadInput;
961
1018
  };
1019
+ export type MutationRemoveFromCartArgs = {
1020
+ cartItemId: Scalars['ID']['input'];
1021
+ customerId: Scalars['ID']['input'];
1022
+ };
1023
+ export type MutationSetCartAddressArgs = {
1024
+ addressId: Scalars['ID']['input'];
1025
+ customerId: Scalars['ID']['input'];
1026
+ };
1027
+ export type MutationUpdateCartItemArgs = {
1028
+ cartItemId: Scalars['ID']['input'];
1029
+ customerId: Scalars['ID']['input'];
1030
+ data: UpdateCartItemInput;
1031
+ };
962
1032
  export type MutationUpdateCustomerArgs = {
963
1033
  data: UpdateCustomerInput;
964
1034
  id: Scalars['ID']['input'];
@@ -971,10 +1041,6 @@ export type MutationUpdateCustomerTelephoneNumberArgs = {
971
1041
  data: UpdateCustomerTelephoneNumberInput;
972
1042
  id: Scalars['ID']['input'];
973
1043
  };
974
- export type MutationUpdateOrderArgs = {
975
- data: UpdateOrderInput;
976
- id: Scalars['ID']['input'];
977
- };
978
1044
  export type MutationUpdateProductArgs = {
979
1045
  data: UpdateProductInput;
980
1046
  id: Scalars['ID']['input'];
@@ -995,21 +1061,31 @@ export type NumberFilter = {
995
1061
  };
996
1062
  export type Order = {
997
1063
  __typename?: 'Order';
1064
+ amount: Scalars['Int']['output'];
998
1065
  createdAt: Scalars['DateTime']['output'];
999
1066
  customer: Customer;
1000
1067
  id: Scalars['ID']['output'];
1001
- total: Scalars['Int']['output'];
1068
+ month: Scalars['Int']['output'];
1069
+ quantity: Scalars['Int']['output'];
1070
+ shippingCost: Scalars['Int']['output'];
1071
+ taxAmount: Scalars['Int']['output'];
1072
+ totalAmount: Scalars['Int']['output'];
1002
1073
  updatedAt?: Maybe<Scalars['DateTime']['output']>;
1074
+ year: Scalars['Int']['output'];
1003
1075
  };
1004
1076
  export declare enum OrderFieldsEnum {
1077
+ Amount = "amount",
1005
1078
  CreatedAt = "createdAt",
1006
1079
  Id = "id",
1007
- Total = "total",
1080
+ Quantity = "quantity",
1081
+ ShippingCost = "shippingCost",
1082
+ TaxAmount = "taxAmount",
1083
+ TotalAmount = "totalAmount",
1008
1084
  UpdatedAt = "updatedAt"
1009
1085
  }
1010
1086
  export type OrderFilter = {
1011
1087
  id?: InputMaybe<IdArrayFilter>;
1012
- name?: InputMaybe<StringArrayFilter>;
1088
+ name?: InputMaybe<StringFilter>;
1013
1089
  };
1014
1090
  export type OrderSort = {
1015
1091
  field: OrderFieldsEnum;
@@ -1171,6 +1247,7 @@ export type Product = {
1171
1247
  condition: ProductCondition;
1172
1248
  content?: Maybe<Scalars['String']['output']>;
1173
1249
  createdAt: Scalars['DateTime']['output'];
1250
+ deletedAt?: Maybe<Scalars['DateTime']['output']>;
1174
1251
  description?: Maybe<Scalars['String']['output']>;
1175
1252
  featured: Scalars['Boolean']['output'];
1176
1253
  files: Array<ProductFile>;
@@ -1189,7 +1266,7 @@ export type Product = {
1189
1266
  thumbnail: File;
1190
1267
  todayDeal: Scalars['Boolean']['output'];
1191
1268
  type: ProductType;
1192
- updatedAt: Scalars['DateTime']['output'];
1269
+ updatedAt?: Maybe<Scalars['DateTime']['output']>;
1193
1270
  variants: Array<ProductVariant>;
1194
1271
  views: Scalars['Int']['output'];
1195
1272
  warrantyDescription?: Maybe<Scalars['String']['output']>;
@@ -1250,13 +1327,13 @@ export type ProductFilter = {
1250
1327
  condition?: InputMaybe<ProductConditionEnumFilter>;
1251
1328
  featured?: InputMaybe<BooleanFilter>;
1252
1329
  id?: InputMaybe<IdArrayFilter>;
1253
- metaDescription?: InputMaybe<StringArrayFilter>;
1254
- metaKeywords?: InputMaybe<StringArrayFilter>;
1255
- metaTitle?: InputMaybe<StringArrayFilter>;
1256
- name?: InputMaybe<StringArrayFilter>;
1330
+ metaDescription?: InputMaybe<StringFilter>;
1331
+ metaKeywords?: InputMaybe<StringFilter>;
1332
+ metaTitle?: InputMaybe<StringFilter>;
1333
+ name?: InputMaybe<StringFilter>;
1257
1334
  price?: InputMaybe<NumberFilter>;
1258
1335
  publishedAt?: InputMaybe<DateTimeFilter>;
1259
- slug?: InputMaybe<StringArrayFilter>;
1336
+ slug?: InputMaybe<StringFilter>;
1260
1337
  soldCount?: InputMaybe<NumberFilter>;
1261
1338
  status?: InputMaybe<ProductStatusEnumFilter>;
1262
1339
  todayDeal?: InputMaybe<BooleanFilter>;
@@ -1350,8 +1427,9 @@ export type Query = {
1350
1427
  allTimeZones: Array<TimeZone>;
1351
1428
  attribute?: Maybe<Array<Attribute>>;
1352
1429
  brand?: Maybe<Array<Brand>>;
1430
+ cart?: Maybe<Cart>;
1353
1431
  customField?: Maybe<Array<CustomField>>;
1354
- customer?: Maybe<Array<Customer>>;
1432
+ customer?: Maybe<Customer>;
1355
1433
  customerCustomerAddress?: Maybe<CustomerAddress>;
1356
1434
  customerTelephoneNumber?: Maybe<CustomerTelephoneNumber>;
1357
1435
  file: File;
@@ -1404,6 +1482,9 @@ export type QueryAttributeArgs = {
1404
1482
  export type QueryBrandArgs = {
1405
1483
  id: Scalars['ID']['input'];
1406
1484
  };
1485
+ export type QueryCartArgs = {
1486
+ customerId: Scalars['ID']['input'];
1487
+ };
1407
1488
  export type QueryCustomFieldArgs = {
1408
1489
  id: Scalars['ID']['input'];
1409
1490
  };
@@ -1713,7 +1794,7 @@ export declare enum SellerFieldsEnum {
1713
1794
  }
1714
1795
  export type SellerFilter = {
1715
1796
  id?: InputMaybe<IdArrayFilter>;
1716
- name?: InputMaybe<StringArrayFilter>;
1797
+ name?: InputMaybe<StringFilter>;
1717
1798
  };
1718
1799
  export type SellerSort = {
1719
1800
  field: SellerFieldsEnum;
@@ -1735,7 +1816,7 @@ export declare enum SizeFieldsEnum {
1735
1816
  }
1736
1817
  export type SizeFilter = {
1737
1818
  id?: InputMaybe<IdArrayFilter>;
1738
- name?: InputMaybe<StringArrayFilter>;
1819
+ name?: InputMaybe<StringFilter>;
1739
1820
  };
1740
1821
  export type SizeGroup = {
1741
1822
  __typename?: 'SizeGroup';
@@ -1768,11 +1849,6 @@ export declare enum StatusEnum {
1768
1849
  Error = "ERROR",
1769
1850
  Ok = "OK"
1770
1851
  }
1771
- export type StringArrayFilter = {
1772
- every?: InputMaybe<Array<Scalars['String']['input']>>;
1773
- none?: InputMaybe<Array<Scalars['String']['input']>>;
1774
- some?: InputMaybe<Array<Scalars['String']['input']>>;
1775
- };
1776
1852
  export type StringFilter = {
1777
1853
  contains?: InputMaybe<Scalars['String']['input']>;
1778
1854
  endsWith?: InputMaybe<Scalars['String']['input']>;
@@ -1809,7 +1885,7 @@ export declare enum TagFieldsEnum {
1809
1885
  }
1810
1886
  export type TagFilter = {
1811
1887
  id?: InputMaybe<IdArrayFilter>;
1812
- name?: InputMaybe<StringArrayFilter>;
1888
+ name?: InputMaybe<StringFilter>;
1813
1889
  };
1814
1890
  export type TagSort = {
1815
1891
  field: TagFieldsEnum;
@@ -2480,6 +2556,11 @@ export declare enum UnitType {
2480
2556
  Volume = "VOLUME",
2481
2557
  Weight = "WEIGHT"
2482
2558
  }
2559
+ export type UpdateCartItemInput = {
2560
+ addressId?: InputMaybe<Scalars['ID']['input']>;
2561
+ quantity?: Scalars['Int']['input'];
2562
+ shippingId?: InputMaybe<Scalars['ID']['input']>;
2563
+ };
2483
2564
  export type UpdateCustomerAddressInput = {
2484
2565
  address?: InputMaybe<Scalars['String']['input']>;
2485
2566
  address2?: InputMaybe<Scalars['String']['input']>;
@@ -2493,6 +2574,7 @@ export type UpdateCustomerAddressInput = {
2493
2574
  regionName?: InputMaybe<Scalars['String']['input']>;
2494
2575
  };
2495
2576
  export type UpdateCustomerInput = {
2577
+ active?: InputMaybe<Scalars['Boolean']['input']>;
2496
2578
  addresses?: InputMaybe<Array<CreateCustomerAddressInput>>;
2497
2579
  customFields?: InputMaybe<Scalars['ID']['input']>;
2498
2580
  fullName?: InputMaybe<Scalars['String']['input']>;
@@ -2505,9 +2587,6 @@ export type UpdateCustomerTelephoneNumberInput = {
2505
2587
  targets?: InputMaybe<Array<TelephoneNumberTarget>>;
2506
2588
  value?: InputMaybe<Scalars['String']['input']>;
2507
2589
  };
2508
- export type UpdateOrderInput = {
2509
- total?: InputMaybe<Scalars['Float']['input']>;
2510
- };
2511
2590
  export type UpdateProductInput = {
2512
2591
  active?: InputMaybe<Scalars['Boolean']['input']>;
2513
2592
  brandId?: InputMaybe<Scalars['ID']['input']>;
@@ -2730,135 +2809,1018 @@ export type PaginatedBrandsQuery = {
2730
2809
  };
2731
2810
  } | null;
2732
2811
  };
2733
- export type CategoryFragmentFragment = {
2734
- __typename?: 'Category';
2812
+ export type CartFragmentFragment = {
2813
+ __typename?: 'Cart';
2814
+ amount: number;
2815
+ shippingCost: number;
2816
+ taxAmount: number;
2817
+ totalAmount: number;
2818
+ };
2819
+ export type CartItemFragmentFragment = {
2820
+ __typename?: 'CartItem';
2735
2821
  id: string;
2736
- name: string;
2737
- description?: string | null;
2738
- slug: string;
2822
+ amount: number;
2823
+ discountValue: number;
2824
+ quantity: number;
2825
+ shippingCost: number;
2826
+ taxAmount: number;
2827
+ totalAmount: number;
2739
2828
  createdAt: any;
2740
2829
  updatedAt: any;
2741
- names?: Array<{
2742
- __typename?: 'LocalizedText';
2743
- locale: string;
2744
- value: string;
2745
- }> | null;
2746
- };
2747
- export type InfiniteCategoriesQueryVariables = Exact<{
2748
- after?: InputMaybe<Scalars['String']['input']>;
2749
- before?: InputMaybe<Scalars['String']['input']>;
2750
- filter?: InputMaybe<CategoryFilter>;
2751
- first?: InputMaybe<Scalars['Int']['input']>;
2752
- last?: InputMaybe<Scalars['Int']['input']>;
2753
- sort?: InputMaybe<Array<CategorySort> | CategorySort>;
2754
- withChildren?: InputMaybe<Scalars['Boolean']['input']>;
2755
- withParent?: InputMaybe<Scalars['Boolean']['input']>;
2756
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
2757
- }>;
2758
- export type InfiniteCategoriesQuery = {
2759
- __typename?: 'Query';
2760
- infiniteCategories: {
2761
- __typename?: 'InfiniteCategoriesConnection';
2762
- edges: Array<{
2763
- __typename?: 'InfiniteCategoryEdge';
2764
- cursor: string;
2765
- node: {
2766
- __typename?: 'Category';
2830
+ address?: {
2831
+ __typename?: 'CustomerAddress';
2832
+ id: string;
2833
+ address?: string | null;
2834
+ address2?: string | null;
2835
+ createdAt: any;
2836
+ updatedAt: any;
2837
+ } | null;
2838
+ product: {
2839
+ __typename?: 'Product';
2840
+ id: string;
2841
+ active: boolean;
2842
+ condition: ProductCondition;
2843
+ content?: string | null;
2844
+ createdAt: any;
2845
+ description?: string | null;
2846
+ featured: boolean;
2847
+ maxOrderQty?: boolean | null;
2848
+ metaDescription?: boolean | null;
2849
+ metaKeywords?: boolean | null;
2850
+ metaTitle?: boolean | null;
2851
+ minOrderQty?: boolean | null;
2852
+ name: string;
2853
+ price: number;
2854
+ slug: string;
2855
+ soldCount: number;
2856
+ status: ProductStatus;
2857
+ todayDeal: boolean;
2858
+ type: ProductType;
2859
+ updatedAt?: any | null;
2860
+ views: number;
2861
+ warrantyDescription?: string | null;
2862
+ warrantyTime?: string | null;
2863
+ warrantyType?: string | null;
2864
+ };
2865
+ seller?: {
2866
+ __typename?: 'Seller';
2867
+ id: string;
2868
+ name: string;
2869
+ description?: string | null;
2870
+ active: boolean;
2871
+ orderNumber: number;
2872
+ slug: string;
2873
+ rating?: number | null;
2874
+ verified: boolean;
2875
+ createdAt: any;
2876
+ updatedAt: any;
2877
+ } | null;
2878
+ variants: Array<{
2879
+ __typename?: 'ProductVariant';
2880
+ active?: boolean | null;
2881
+ default: boolean;
2882
+ id: string;
2883
+ attributes: Array<{
2884
+ __typename?: 'ProductVariantAttribute';
2885
+ value: string;
2886
+ attribute: {
2887
+ __typename?: 'Attribute';
2888
+ active: boolean;
2889
+ createdAt: any;
2890
+ id: string;
2891
+ name: string;
2892
+ type: string;
2893
+ updatedAt: any;
2894
+ values?: Array<{
2895
+ __typename?: 'AttributeValue';
2896
+ default: boolean;
2897
+ name: string;
2898
+ }> | null;
2899
+ };
2900
+ }>;
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';
2767
2914
  id: string;
2768
2915
  name: string;
2769
2916
  description?: string | null;
2917
+ active: boolean;
2918
+ orderNumber: number;
2770
2919
  slug: string;
2920
+ rating?: number | null;
2921
+ verified: boolean;
2771
2922
  createdAt: any;
2772
2923
  updatedAt: any;
2773
- parent?: {
2774
- __typename?: 'Category';
2775
- id: string;
2776
- name: string;
2777
- description?: string | null;
2778
- slug: string;
2779
- createdAt: any;
2780
- updatedAt: any;
2781
- names?: Array<{
2782
- __typename?: 'LocalizedText';
2783
- locale: string;
2784
- value: string;
2785
- }> | null;
2786
- } | null;
2787
- children?: Array<{
2788
- __typename?: 'Category';
2924
+ };
2925
+ stock: {
2926
+ __typename?: 'ProductVariantStock';
2927
+ quantity: number;
2928
+ seller: Array<{
2929
+ __typename?: 'Seller';
2789
2930
  id: string;
2790
2931
  name: string;
2791
2932
  description?: string | null;
2933
+ active: boolean;
2934
+ orderNumber: number;
2792
2935
  slug: string;
2936
+ rating?: number | null;
2937
+ verified: boolean;
2793
2938
  createdAt: any;
2794
2939
  updatedAt: any;
2795
- names?: Array<{
2796
- __typename?: 'LocalizedText';
2797
- locale: string;
2798
- value: string;
2799
- }> | null;
2800
- }> | null;
2801
- image?: {
2802
- __typename?: 'File';
2803
- createdAt: any;
2804
- id: string;
2805
- name: string;
2806
- size?: number | null;
2807
- status: FileStatusEnum;
2808
- type?: string | null;
2809
- updatedAt: any;
2810
- url?: string | null;
2811
- thumbnails: {
2812
- __typename?: 'FileThumbnails';
2813
- thumbnail450Url?: string | null;
2814
- thumbnail900Url?: string | null;
2815
- };
2816
- } | null;
2817
- names?: Array<{
2818
- __typename?: 'LocalizedText';
2819
- locale: string;
2820
- value: string;
2821
- }> | null;
2940
+ }>;
2822
2941
  };
2823
2942
  }>;
2824
- pageInfo: {
2825
- __typename?: 'InfinitePageInfo';
2826
- endCursor?: string | null;
2827
- hasNextPage: boolean;
2828
- hasPreviousPage: boolean;
2829
- startCursor?: string | null;
2830
- };
2831
- };
2943
+ }>;
2832
2944
  };
2833
- export type PaginatedCategoriesQueryVariables = Exact<{
2834
- filter?: InputMaybe<CategoryFilter>;
2835
- limit?: InputMaybe<Scalars['Int']['input']>;
2836
- page?: InputMaybe<Scalars['Int']['input']>;
2837
- sort?: InputMaybe<Array<CategorySort> | CategorySort>;
2838
- withChildren?: InputMaybe<Scalars['Boolean']['input']>;
2839
- withParent?: InputMaybe<Scalars['Boolean']['input']>;
2840
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
2945
+ export type AddToCartMutationVariables = Exact<{
2946
+ customerId: Scalars['ID']['input'];
2947
+ data: Array<AddToCartInput> | AddToCartInput;
2948
+ withItems?: InputMaybe<Scalars['Boolean']['input']>;
2949
+ withAddress?: InputMaybe<Scalars['Boolean']['input']>;
2841
2950
  }>;
2842
- export type PaginatedCategoriesQuery = {
2843
- __typename?: 'Query';
2844
- paginatedCategories?: {
2845
- __typename?: 'PaginatedCategoriesConnection';
2846
- edges: Array<{
2847
- __typename?: 'PaginatedCategoryEdge';
2848
- cursor: string;
2849
- node: {
2850
- __typename?: 'Category';
2951
+ export type AddToCartMutation = {
2952
+ __typename?: 'Mutation';
2953
+ addToCart?: {
2954
+ __typename?: 'Cart';
2955
+ amount: number;
2956
+ shippingCost: number;
2957
+ taxAmount: number;
2958
+ totalAmount: number;
2959
+ items?: Array<{
2960
+ __typename?: 'CartItem';
2961
+ id: string;
2962
+ amount: number;
2963
+ discountValue: number;
2964
+ quantity: number;
2965
+ shippingCost: number;
2966
+ taxAmount: number;
2967
+ totalAmount: number;
2968
+ createdAt: any;
2969
+ updatedAt: any;
2970
+ address?: {
2971
+ __typename?: 'CustomerAddress';
2972
+ id: string;
2973
+ address?: string | null;
2974
+ address2?: string | null;
2975
+ createdAt: any;
2976
+ updatedAt: any;
2977
+ } | null;
2978
+ product: {
2979
+ __typename?: 'Product';
2980
+ id: string;
2981
+ active: boolean;
2982
+ condition: ProductCondition;
2983
+ content?: string | null;
2984
+ createdAt: any;
2985
+ description?: string | null;
2986
+ featured: boolean;
2987
+ maxOrderQty?: boolean | null;
2988
+ metaDescription?: boolean | null;
2989
+ metaKeywords?: boolean | null;
2990
+ metaTitle?: boolean | null;
2991
+ minOrderQty?: boolean | null;
2992
+ name: string;
2993
+ price: number;
2994
+ slug: string;
2995
+ soldCount: number;
2996
+ status: ProductStatus;
2997
+ todayDeal: boolean;
2998
+ type: ProductType;
2999
+ updatedAt?: any | null;
3000
+ views: number;
3001
+ warrantyDescription?: string | null;
3002
+ warrantyTime?: string | null;
3003
+ warrantyType?: string | null;
3004
+ };
3005
+ seller?: {
3006
+ __typename?: 'Seller';
2851
3007
  id: string;
2852
3008
  name: string;
2853
3009
  description?: string | null;
3010
+ active: boolean;
3011
+ orderNumber: number;
2854
3012
  slug: string;
3013
+ rating?: number | null;
3014
+ verified: boolean;
2855
3015
  createdAt: any;
2856
3016
  updatedAt: any;
2857
- parent?: {
2858
- __typename?: 'Category';
2859
- id: string;
2860
- name: string;
2861
- description?: string | null;
3017
+ } | null;
3018
+ variants: Array<{
3019
+ __typename?: 'ProductVariant';
3020
+ active?: boolean | null;
3021
+ default: boolean;
3022
+ id: string;
3023
+ attributes: Array<{
3024
+ __typename?: 'ProductVariantAttribute';
3025
+ value: string;
3026
+ attribute: {
3027
+ __typename?: 'Attribute';
3028
+ active: boolean;
3029
+ createdAt: any;
3030
+ id: string;
3031
+ name: string;
3032
+ type: string;
3033
+ updatedAt: any;
3034
+ values?: Array<{
3035
+ __typename?: 'AttributeValue';
3036
+ default: boolean;
3037
+ name: string;
3038
+ }> | null;
3039
+ };
3040
+ }>;
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
+ }>;
3084
+ }>;
3085
+ address?: {
3086
+ __typename?: 'CustomerAddress';
3087
+ id: string;
3088
+ address?: string | null;
3089
+ address2?: string | null;
3090
+ createdAt: any;
3091
+ updatedAt: any;
3092
+ } | null;
3093
+ } | null;
3094
+ };
3095
+ export type RemoveFromCartMutationVariables = Exact<{
3096
+ cartItemId: Scalars['ID']['input'];
3097
+ customerId: Scalars['ID']['input'];
3098
+ withItems?: InputMaybe<Scalars['Boolean']['input']>;
3099
+ withAddress?: InputMaybe<Scalars['Boolean']['input']>;
3100
+ }>;
3101
+ export type RemoveFromCartMutation = {
3102
+ __typename?: 'Mutation';
3103
+ removeFromCart?: {
3104
+ __typename?: 'Cart';
3105
+ amount: number;
3106
+ shippingCost: number;
3107
+ taxAmount: number;
3108
+ totalAmount: number;
3109
+ items?: Array<{
3110
+ __typename?: 'CartItem';
3111
+ id: string;
3112
+ amount: number;
3113
+ discountValue: number;
3114
+ quantity: number;
3115
+ shippingCost: number;
3116
+ taxAmount: number;
3117
+ totalAmount: number;
3118
+ createdAt: any;
3119
+ updatedAt: any;
3120
+ address?: {
3121
+ __typename?: 'CustomerAddress';
3122
+ id: string;
3123
+ address?: string | null;
3124
+ address2?: string | null;
3125
+ createdAt: any;
3126
+ updatedAt: any;
3127
+ } | null;
3128
+ product: {
3129
+ __typename?: 'Product';
3130
+ id: string;
3131
+ active: boolean;
3132
+ condition: ProductCondition;
3133
+ content?: string | null;
3134
+ createdAt: any;
3135
+ description?: string | null;
3136
+ featured: boolean;
3137
+ maxOrderQty?: boolean | null;
3138
+ metaDescription?: boolean | null;
3139
+ metaKeywords?: boolean | null;
3140
+ metaTitle?: boolean | null;
3141
+ minOrderQty?: boolean | null;
3142
+ name: string;
3143
+ price: number;
3144
+ slug: string;
3145
+ soldCount: number;
3146
+ status: ProductStatus;
3147
+ todayDeal: boolean;
3148
+ type: ProductType;
3149
+ updatedAt?: any | null;
3150
+ views: number;
3151
+ warrantyDescription?: string | null;
3152
+ warrantyTime?: string | null;
3153
+ warrantyType?: string | null;
3154
+ };
3155
+ seller?: {
3156
+ __typename?: 'Seller';
3157
+ id: string;
3158
+ name: string;
3159
+ description?: string | null;
3160
+ active: boolean;
3161
+ orderNumber: number;
3162
+ slug: string;
3163
+ rating?: number | null;
3164
+ verified: boolean;
3165
+ createdAt: any;
3166
+ updatedAt: any;
3167
+ } | null;
3168
+ variants: Array<{
3169
+ __typename?: 'ProductVariant';
3170
+ active?: boolean | null;
3171
+ default: boolean;
3172
+ id: string;
3173
+ attributes: Array<{
3174
+ __typename?: 'ProductVariantAttribute';
3175
+ value: string;
3176
+ attribute: {
3177
+ __typename?: 'Attribute';
3178
+ active: boolean;
3179
+ createdAt: any;
3180
+ id: string;
3181
+ name: string;
3182
+ type: string;
3183
+ updatedAt: any;
3184
+ values?: Array<{
3185
+ __typename?: 'AttributeValue';
3186
+ default: boolean;
3187
+ name: string;
3188
+ }> | null;
3189
+ };
3190
+ }>;
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
+ }>;
3234
+ }>;
3235
+ address?: {
3236
+ __typename?: 'CustomerAddress';
3237
+ id: string;
3238
+ address?: string | null;
3239
+ address2?: string | null;
3240
+ createdAt: any;
3241
+ updatedAt: any;
3242
+ } | null;
3243
+ } | null;
3244
+ };
3245
+ export type SetCartAddressMutationVariables = Exact<{
3246
+ addressId: Scalars['ID']['input'];
3247
+ customerId: Scalars['ID']['input'];
3248
+ withItems?: InputMaybe<Scalars['Boolean']['input']>;
3249
+ withAddress?: InputMaybe<Scalars['Boolean']['input']>;
3250
+ }>;
3251
+ export type SetCartAddressMutation = {
3252
+ __typename?: 'Mutation';
3253
+ setCartAddress?: {
3254
+ __typename?: 'Cart';
3255
+ amount: number;
3256
+ shippingCost: number;
3257
+ taxAmount: number;
3258
+ totalAmount: number;
3259
+ items?: Array<{
3260
+ __typename?: 'CartItem';
3261
+ id: string;
3262
+ amount: number;
3263
+ discountValue: number;
3264
+ quantity: number;
3265
+ shippingCost: number;
3266
+ taxAmount: number;
3267
+ totalAmount: number;
3268
+ createdAt: any;
3269
+ updatedAt: any;
3270
+ address?: {
3271
+ __typename?: 'CustomerAddress';
3272
+ id: string;
3273
+ address?: string | null;
3274
+ address2?: string | null;
3275
+ createdAt: any;
3276
+ updatedAt: any;
3277
+ } | null;
3278
+ product: {
3279
+ __typename?: 'Product';
3280
+ id: string;
3281
+ active: boolean;
3282
+ condition: ProductCondition;
3283
+ content?: string | null;
3284
+ createdAt: any;
3285
+ description?: string | null;
3286
+ featured: boolean;
3287
+ maxOrderQty?: boolean | null;
3288
+ metaDescription?: boolean | null;
3289
+ metaKeywords?: boolean | null;
3290
+ metaTitle?: boolean | null;
3291
+ minOrderQty?: boolean | null;
3292
+ name: string;
3293
+ price: number;
3294
+ slug: string;
3295
+ soldCount: number;
3296
+ status: ProductStatus;
3297
+ todayDeal: boolean;
3298
+ type: ProductType;
3299
+ updatedAt?: any | null;
3300
+ views: number;
3301
+ warrantyDescription?: string | null;
3302
+ warrantyTime?: string | null;
3303
+ warrantyType?: string | null;
3304
+ };
3305
+ seller?: {
3306
+ __typename?: 'Seller';
3307
+ id: string;
3308
+ name: string;
3309
+ description?: string | null;
3310
+ active: boolean;
3311
+ orderNumber: number;
3312
+ slug: string;
3313
+ rating?: number | null;
3314
+ verified: boolean;
3315
+ createdAt: any;
3316
+ updatedAt: any;
3317
+ } | null;
3318
+ variants: Array<{
3319
+ __typename?: 'ProductVariant';
3320
+ active?: boolean | null;
3321
+ default: boolean;
3322
+ id: string;
3323
+ attributes: Array<{
3324
+ __typename?: 'ProductVariantAttribute';
3325
+ value: string;
3326
+ attribute: {
3327
+ __typename?: 'Attribute';
3328
+ active: boolean;
3329
+ createdAt: any;
3330
+ id: string;
3331
+ name: string;
3332
+ type: string;
3333
+ updatedAt: any;
3334
+ values?: Array<{
3335
+ __typename?: 'AttributeValue';
3336
+ default: boolean;
3337
+ name: string;
3338
+ }> | null;
3339
+ };
3340
+ }>;
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
+ }>;
3384
+ }>;
3385
+ address?: {
3386
+ __typename?: 'CustomerAddress';
3387
+ id: string;
3388
+ address?: string | null;
3389
+ address2?: string | null;
3390
+ createdAt: any;
3391
+ updatedAt: any;
3392
+ } | null;
3393
+ } | null;
3394
+ };
3395
+ export type UpdateCartItemMutationVariables = Exact<{
3396
+ cartItemId: Scalars['ID']['input'];
3397
+ customerId: Scalars['ID']['input'];
3398
+ data: UpdateCartItemInput;
3399
+ withItems?: InputMaybe<Scalars['Boolean']['input']>;
3400
+ withAddress?: InputMaybe<Scalars['Boolean']['input']>;
3401
+ }>;
3402
+ export type UpdateCartItemMutation = {
3403
+ __typename?: 'Mutation';
3404
+ updateCartItem?: {
3405
+ __typename?: 'Cart';
3406
+ amount: number;
3407
+ shippingCost: number;
3408
+ taxAmount: number;
3409
+ totalAmount: number;
3410
+ items?: Array<{
3411
+ __typename?: 'CartItem';
3412
+ id: string;
3413
+ amount: number;
3414
+ discountValue: number;
3415
+ quantity: number;
3416
+ shippingCost: number;
3417
+ taxAmount: number;
3418
+ totalAmount: number;
3419
+ createdAt: any;
3420
+ updatedAt: any;
3421
+ address?: {
3422
+ __typename?: 'CustomerAddress';
3423
+ id: string;
3424
+ address?: string | null;
3425
+ address2?: string | null;
3426
+ createdAt: any;
3427
+ updatedAt: any;
3428
+ } | null;
3429
+ product: {
3430
+ __typename?: 'Product';
3431
+ id: string;
3432
+ active: boolean;
3433
+ condition: ProductCondition;
3434
+ content?: string | null;
3435
+ createdAt: any;
3436
+ description?: string | null;
3437
+ featured: boolean;
3438
+ maxOrderQty?: boolean | null;
3439
+ metaDescription?: boolean | null;
3440
+ metaKeywords?: boolean | null;
3441
+ metaTitle?: boolean | null;
3442
+ minOrderQty?: boolean | null;
3443
+ name: string;
3444
+ price: number;
3445
+ slug: string;
3446
+ soldCount: number;
3447
+ status: ProductStatus;
3448
+ todayDeal: boolean;
3449
+ type: ProductType;
3450
+ updatedAt?: any | null;
3451
+ views: number;
3452
+ warrantyDescription?: string | null;
3453
+ warrantyTime?: string | null;
3454
+ warrantyType?: string | null;
3455
+ };
3456
+ seller?: {
3457
+ __typename?: 'Seller';
3458
+ id: string;
3459
+ name: string;
3460
+ description?: string | null;
3461
+ active: boolean;
3462
+ orderNumber: number;
3463
+ slug: string;
3464
+ rating?: number | null;
3465
+ verified: boolean;
3466
+ createdAt: any;
3467
+ updatedAt: any;
3468
+ } | null;
3469
+ variants: Array<{
3470
+ __typename?: 'ProductVariant';
3471
+ active?: boolean | null;
3472
+ default: boolean;
3473
+ id: string;
3474
+ attributes: Array<{
3475
+ __typename?: 'ProductVariantAttribute';
3476
+ value: string;
3477
+ attribute: {
3478
+ __typename?: 'Attribute';
3479
+ active: boolean;
3480
+ createdAt: any;
3481
+ id: string;
3482
+ name: string;
3483
+ type: string;
3484
+ updatedAt: any;
3485
+ values?: Array<{
3486
+ __typename?: 'AttributeValue';
3487
+ default: boolean;
3488
+ name: string;
3489
+ }> | null;
3490
+ };
3491
+ }>;
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
+ }>;
3535
+ }>;
3536
+ address?: {
3537
+ __typename?: 'CustomerAddress';
3538
+ id: string;
3539
+ address?: string | null;
3540
+ address2?: string | null;
3541
+ createdAt: any;
3542
+ updatedAt: any;
3543
+ } | null;
3544
+ } | null;
3545
+ };
3546
+ export type CartQueryVariables = Exact<{
3547
+ customerId: Scalars['ID']['input'];
3548
+ withItems?: InputMaybe<Scalars['Boolean']['input']>;
3549
+ withAddress?: InputMaybe<Scalars['Boolean']['input']>;
3550
+ }>;
3551
+ export type CartQuery = {
3552
+ __typename?: 'Query';
3553
+ cart?: {
3554
+ __typename?: 'Cart';
3555
+ amount: number;
3556
+ shippingCost: number;
3557
+ taxAmount: number;
3558
+ totalAmount: number;
3559
+ items?: Array<{
3560
+ __typename?: 'CartItem';
3561
+ id: string;
3562
+ amount: number;
3563
+ discountValue: number;
3564
+ quantity: number;
3565
+ shippingCost: number;
3566
+ taxAmount: number;
3567
+ totalAmount: number;
3568
+ createdAt: any;
3569
+ updatedAt: any;
3570
+ address?: {
3571
+ __typename?: 'CustomerAddress';
3572
+ id: string;
3573
+ address?: string | null;
3574
+ address2?: string | null;
3575
+ createdAt: any;
3576
+ updatedAt: any;
3577
+ } | null;
3578
+ product: {
3579
+ __typename?: 'Product';
3580
+ id: string;
3581
+ active: boolean;
3582
+ condition: ProductCondition;
3583
+ content?: string | null;
3584
+ createdAt: any;
3585
+ description?: string | null;
3586
+ featured: boolean;
3587
+ maxOrderQty?: boolean | null;
3588
+ metaDescription?: boolean | null;
3589
+ metaKeywords?: boolean | null;
3590
+ metaTitle?: boolean | null;
3591
+ minOrderQty?: boolean | null;
3592
+ name: string;
3593
+ price: number;
3594
+ slug: string;
3595
+ soldCount: number;
3596
+ status: ProductStatus;
3597
+ todayDeal: boolean;
3598
+ type: ProductType;
3599
+ updatedAt?: any | null;
3600
+ views: number;
3601
+ warrantyDescription?: string | null;
3602
+ warrantyTime?: string | null;
3603
+ warrantyType?: string | null;
3604
+ };
3605
+ seller?: {
3606
+ __typename?: 'Seller';
3607
+ id: string;
3608
+ name: string;
3609
+ description?: string | null;
3610
+ active: boolean;
3611
+ orderNumber: number;
3612
+ slug: string;
3613
+ rating?: number | null;
3614
+ verified: boolean;
3615
+ createdAt: any;
3616
+ updatedAt: any;
3617
+ } | null;
3618
+ variants: Array<{
3619
+ __typename?: 'ProductVariant';
3620
+ active?: boolean | null;
3621
+ default: boolean;
3622
+ id: string;
3623
+ attributes: Array<{
3624
+ __typename?: 'ProductVariantAttribute';
3625
+ value: string;
3626
+ attribute: {
3627
+ __typename?: 'Attribute';
3628
+ active: boolean;
3629
+ createdAt: any;
3630
+ id: string;
3631
+ name: string;
3632
+ type: string;
3633
+ updatedAt: any;
3634
+ values?: Array<{
3635
+ __typename?: 'AttributeValue';
3636
+ default: boolean;
3637
+ name: string;
3638
+ }> | null;
3639
+ };
3640
+ }>;
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
+ }>;
3684
+ }>;
3685
+ address?: {
3686
+ __typename?: 'CustomerAddress';
3687
+ id: string;
3688
+ address?: string | null;
3689
+ address2?: string | null;
3690
+ createdAt: any;
3691
+ updatedAt: any;
3692
+ } | null;
3693
+ } | null;
3694
+ };
3695
+ export type CategoryFragmentFragment = {
3696
+ __typename?: 'Category';
3697
+ id: string;
3698
+ name: string;
3699
+ description?: string | null;
3700
+ slug: string;
3701
+ createdAt: any;
3702
+ updatedAt: any;
3703
+ names?: Array<{
3704
+ __typename?: 'LocalizedText';
3705
+ locale: string;
3706
+ value: string;
3707
+ }> | null;
3708
+ };
3709
+ export type InfiniteCategoriesQueryVariables = Exact<{
3710
+ after?: InputMaybe<Scalars['String']['input']>;
3711
+ before?: InputMaybe<Scalars['String']['input']>;
3712
+ filter?: InputMaybe<CategoryFilter>;
3713
+ first?: InputMaybe<Scalars['Int']['input']>;
3714
+ last?: InputMaybe<Scalars['Int']['input']>;
3715
+ sort?: InputMaybe<Array<CategorySort> | CategorySort>;
3716
+ withChildren?: InputMaybe<Scalars['Boolean']['input']>;
3717
+ withParent?: InputMaybe<Scalars['Boolean']['input']>;
3718
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
3719
+ }>;
3720
+ export type InfiniteCategoriesQuery = {
3721
+ __typename?: 'Query';
3722
+ infiniteCategories: {
3723
+ __typename?: 'InfiniteCategoriesConnection';
3724
+ edges: Array<{
3725
+ __typename?: 'InfiniteCategoryEdge';
3726
+ cursor: string;
3727
+ node: {
3728
+ __typename?: 'Category';
3729
+ id: string;
3730
+ name: string;
3731
+ description?: string | null;
3732
+ slug: string;
3733
+ createdAt: any;
3734
+ updatedAt: any;
3735
+ parent?: {
3736
+ __typename?: 'Category';
3737
+ id: string;
3738
+ name: string;
3739
+ description?: string | null;
3740
+ slug: string;
3741
+ createdAt: any;
3742
+ updatedAt: any;
3743
+ names?: Array<{
3744
+ __typename?: 'LocalizedText';
3745
+ locale: string;
3746
+ value: string;
3747
+ }> | null;
3748
+ } | null;
3749
+ children?: Array<{
3750
+ __typename?: 'Category';
3751
+ id: string;
3752
+ name: string;
3753
+ description?: string | null;
3754
+ slug: string;
3755
+ createdAt: any;
3756
+ updatedAt: any;
3757
+ names?: Array<{
3758
+ __typename?: 'LocalizedText';
3759
+ locale: string;
3760
+ value: string;
3761
+ }> | null;
3762
+ }> | null;
3763
+ image?: {
3764
+ __typename?: 'File';
3765
+ createdAt: any;
3766
+ id: string;
3767
+ name: string;
3768
+ size?: number | null;
3769
+ status: FileStatusEnum;
3770
+ type?: string | null;
3771
+ updatedAt: any;
3772
+ url?: string | null;
3773
+ thumbnails: {
3774
+ __typename?: 'FileThumbnails';
3775
+ thumbnail450Url?: string | null;
3776
+ thumbnail900Url?: string | null;
3777
+ };
3778
+ } | null;
3779
+ names?: Array<{
3780
+ __typename?: 'LocalizedText';
3781
+ locale: string;
3782
+ value: string;
3783
+ }> | null;
3784
+ };
3785
+ }>;
3786
+ pageInfo: {
3787
+ __typename?: 'InfinitePageInfo';
3788
+ endCursor?: string | null;
3789
+ hasNextPage: boolean;
3790
+ hasPreviousPage: boolean;
3791
+ startCursor?: string | null;
3792
+ };
3793
+ };
3794
+ };
3795
+ export type PaginatedCategoriesQueryVariables = Exact<{
3796
+ filter?: InputMaybe<CategoryFilter>;
3797
+ limit?: InputMaybe<Scalars['Int']['input']>;
3798
+ page?: InputMaybe<Scalars['Int']['input']>;
3799
+ sort?: InputMaybe<Array<CategorySort> | CategorySort>;
3800
+ withChildren?: InputMaybe<Scalars['Boolean']['input']>;
3801
+ withParent?: InputMaybe<Scalars['Boolean']['input']>;
3802
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
3803
+ }>;
3804
+ export type PaginatedCategoriesQuery = {
3805
+ __typename?: 'Query';
3806
+ paginatedCategories?: {
3807
+ __typename?: 'PaginatedCategoriesConnection';
3808
+ edges: Array<{
3809
+ __typename?: 'PaginatedCategoryEdge';
3810
+ cursor: string;
3811
+ node: {
3812
+ __typename?: 'Category';
3813
+ id: string;
3814
+ name: string;
3815
+ description?: string | null;
3816
+ slug: string;
3817
+ createdAt: any;
3818
+ updatedAt: any;
3819
+ parent?: {
3820
+ __typename?: 'Category';
3821
+ id: string;
3822
+ name: string;
3823
+ description?: string | null;
2862
3824
  slug: string;
2863
3825
  createdAt: any;
2864
3826
  updatedAt: any;
@@ -3042,7 +4004,6 @@ export type PaginatedCustomFieldsQueryVariables = Exact<{
3042
4004
  limit?: InputMaybe<Scalars['Int']['input']>;
3043
4005
  page?: InputMaybe<Scalars['Int']['input']>;
3044
4006
  sort?: InputMaybe<Array<CustomFieldSort> | CustomFieldSort>;
3045
- withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
3046
4007
  }>;
3047
4008
  export type PaginatedCustomFieldsQuery = {
3048
4009
  __typename?: 'Query';
@@ -3287,10 +4248,13 @@ export type PaginatedCustomersQuery = {
3287
4248
  };
3288
4249
  export type CustomerQueryVariables = Exact<{
3289
4250
  id: Scalars['ID']['input'];
4251
+ withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4252
+ withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4253
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
3290
4254
  }>;
3291
4255
  export type CustomerQuery = {
3292
4256
  __typename?: 'Query';
3293
- customer?: Array<{
4257
+ customer?: {
3294
4258
  __typename?: 'Customer';
3295
4259
  id: string;
3296
4260
  fullName: string;
@@ -3298,7 +4262,39 @@ export type CustomerQuery = {
3298
4262
  active: boolean;
3299
4263
  createdAt: any;
3300
4264
  updatedAt: any;
3301
- }> | null;
4265
+ addresses?: Array<{
4266
+ __typename?: 'CustomerAddress';
4267
+ id: string;
4268
+ address?: string | null;
4269
+ address2?: string | null;
4270
+ createdAt: any;
4271
+ updatedAt: any;
4272
+ }> | null;
4273
+ telephoneNumbers?: Array<{
4274
+ __typename?: 'CustomerTelephoneNumber';
4275
+ id: string;
4276
+ number?: string | null;
4277
+ targets?: Array<TelephoneNumberTarget> | null;
4278
+ createdAt: any;
4279
+ updatedAt: any;
4280
+ }> | null;
4281
+ image?: {
4282
+ __typename?: 'File';
4283
+ createdAt: any;
4284
+ id: string;
4285
+ name: string;
4286
+ size?: number | null;
4287
+ status: FileStatusEnum;
4288
+ type?: string | null;
4289
+ updatedAt: any;
4290
+ url?: string | null;
4291
+ thumbnails: {
4292
+ __typename?: 'FileThumbnails';
4293
+ thumbnail450Url?: string | null;
4294
+ thumbnail900Url?: string | null;
4295
+ };
4296
+ } | null;
4297
+ } | null;
3302
4298
  };
3303
4299
  export type FileThumbnailsFieldsFragment = {
3304
4300
  __typename?: 'FileThumbnails';
@@ -3473,33 +4469,19 @@ export type InfiniteMetricsQuery = {
3473
4469
  export type OrderFragmentFragment = {
3474
4470
  __typename?: 'Order';
3475
4471
  id: string;
3476
- total: number;
4472
+ totalAmount: number;
3477
4473
  createdAt: any;
3478
4474
  updatedAt?: any | null;
3479
4475
  };
3480
- export type CreateOrderMutationVariables = Exact<{
3481
- data: CreateOrderInput;
3482
- }>;
3483
- export type CreateOrderMutation = {
3484
- __typename?: 'Mutation';
3485
- createOrder: {
3486
- __typename?: 'Order';
3487
- id: string;
3488
- total: number;
3489
- createdAt: any;
3490
- updatedAt?: any | null;
3491
- };
3492
- };
3493
- export type UpdateOrderMutationVariables = Exact<{
3494
- data: UpdateOrderInput;
3495
- id: Scalars['ID']['input'];
4476
+ export type FinalizeOrderMutationVariables = Exact<{
4477
+ customerId: Scalars['ID']['input'];
3496
4478
  }>;
3497
- export type UpdateOrderMutation = {
4479
+ export type FinalizeOrderMutation = {
3498
4480
  __typename?: 'Mutation';
3499
- updateOrder: {
4481
+ finalizeOrder: {
3500
4482
  __typename?: 'Order';
3501
4483
  id: string;
3502
- total: number;
4484
+ totalAmount: number;
3503
4485
  createdAt: any;
3504
4486
  updatedAt?: any | null;
3505
4487
  };
@@ -3522,7 +4504,7 @@ export type InfiniteOrdersQuery = {
3522
4504
  node: {
3523
4505
  __typename?: 'Order';
3524
4506
  id: string;
3525
- total: number;
4507
+ totalAmount: number;
3526
4508
  createdAt: any;
3527
4509
  updatedAt?: any | null;
3528
4510
  };
@@ -3552,7 +4534,7 @@ export type PaginatedOrdersQuery = {
3552
4534
  node: {
3553
4535
  __typename?: 'Order';
3554
4536
  id: string;
3555
- total: number;
4537
+ totalAmount: number;
3556
4538
  createdAt: any;
3557
4539
  updatedAt?: any | null;
3558
4540
  };
@@ -3567,6 +4549,19 @@ export type PaginatedOrdersQuery = {
3567
4549
  };
3568
4550
  } | null;
3569
4551
  };
4552
+ export type OrderQueryVariables = Exact<{
4553
+ id: Scalars['ID']['input'];
4554
+ }>;
4555
+ export type OrderQuery = {
4556
+ __typename?: 'Query';
4557
+ order?: Array<{
4558
+ __typename?: 'Order';
4559
+ id: string;
4560
+ totalAmount: number;
4561
+ createdAt: any;
4562
+ updatedAt?: any | null;
4563
+ }> | null;
4564
+ };
3570
4565
  export type ProductFragmentFragment = {
3571
4566
  __typename?: 'Product';
3572
4567
  id: string;
@@ -3588,7 +4583,7 @@ export type ProductFragmentFragment = {
3588
4583
  status: ProductStatus;
3589
4584
  todayDeal: boolean;
3590
4585
  type: ProductType;
3591
- updatedAt: any;
4586
+ updatedAt?: any | null;
3592
4587
  views: number;
3593
4588
  warrantyDescription?: string | null;
3594
4589
  warrantyTime?: string | null;
@@ -3760,7 +4755,7 @@ export type InfiniteProductsQuery = {
3760
4755
  status: ProductStatus;
3761
4756
  todayDeal: boolean;
3762
4757
  type: ProductType;
3763
- updatedAt: any;
4758
+ updatedAt?: any | null;
3764
4759
  views: number;
3765
4760
  warrantyDescription?: string | null;
3766
4761
  warrantyTime?: string | null;
@@ -3944,7 +4939,7 @@ export type PaginatedProductsQuery = {
3944
4939
  status: ProductStatus;
3945
4940
  todayDeal: boolean;
3946
4941
  type: ProductType;
3947
- updatedAt: any;
4942
+ updatedAt?: any | null;
3948
4943
  views: number;
3949
4944
  warrantyDescription?: string | null;
3950
4945
  warrantyTime?: string | null;
@@ -4116,7 +5111,7 @@ export type ProductQuery = {
4116
5111
  status: ProductStatus;
4117
5112
  todayDeal: boolean;
4118
5113
  type: ProductType;
4119
- updatedAt: any;
5114
+ updatedAt?: any | null;
4120
5115
  views: number;
4121
5116
  warrantyDescription?: string | null;
4122
5117
  warrantyTime?: string | null;
@@ -4149,7 +5144,7 @@ export type CreateProductMutation = {
4149
5144
  status: ProductStatus;
4150
5145
  todayDeal: boolean;
4151
5146
  type: ProductType;
4152
- updatedAt: any;
5147
+ updatedAt?: any | null;
4153
5148
  views: number;
4154
5149
  warrantyDescription?: string | null;
4155
5150
  warrantyTime?: string | null;
@@ -4183,7 +5178,7 @@ export type UpdateProductMutation = {
4183
5178
  status: ProductStatus;
4184
5179
  todayDeal: boolean;
4185
5180
  type: ProductType;
4186
- updatedAt: any;
5181
+ updatedAt?: any | null;
4187
5182
  views: number;
4188
5183
  warrantyDescription?: string | null;
4189
5184
  warrantyTime?: string | null;
@@ -4381,13 +5376,107 @@ export type SellerQuery = {
4381
5376
  updatedAt: any;
4382
5377
  } | null;
4383
5378
  };
5379
+ export type TagFragmentFragment = {
5380
+ __typename?: 'Tag';
5381
+ id: string;
5382
+ name: string;
5383
+ color?: string | null;
5384
+ createdAt: any;
5385
+ updatedAt: any;
5386
+ };
5387
+ export type InfiniteTagsQueryVariables = Exact<{
5388
+ after?: InputMaybe<Scalars['String']['input']>;
5389
+ before?: InputMaybe<Scalars['String']['input']>;
5390
+ filter?: InputMaybe<TagFilter>;
5391
+ first?: InputMaybe<Scalars['Int']['input']>;
5392
+ last?: InputMaybe<Scalars['Int']['input']>;
5393
+ sort?: InputMaybe<Array<TagSort> | TagSort>;
5394
+ }>;
5395
+ export type InfiniteTagsQuery = {
5396
+ __typename?: 'Query';
5397
+ infiniteTags: {
5398
+ __typename?: 'InfiniteTagsConnection';
5399
+ edges: Array<{
5400
+ __typename?: 'InfiniteTagEdge';
5401
+ cursor: string;
5402
+ node: {
5403
+ __typename?: 'Tag';
5404
+ id: string;
5405
+ name: string;
5406
+ color?: string | null;
5407
+ createdAt: any;
5408
+ updatedAt: any;
5409
+ };
5410
+ }>;
5411
+ pageInfo: {
5412
+ __typename?: 'InfinitePageInfo';
5413
+ endCursor?: string | null;
5414
+ hasNextPage: boolean;
5415
+ hasPreviousPage: boolean;
5416
+ startCursor?: string | null;
5417
+ };
5418
+ };
5419
+ };
5420
+ export type PaginatedTagsQueryVariables = Exact<{
5421
+ filter?: InputMaybe<TagFilter>;
5422
+ limit?: InputMaybe<Scalars['Int']['input']>;
5423
+ page?: InputMaybe<Scalars['Int']['input']>;
5424
+ sort?: InputMaybe<Array<TagSort> | TagSort>;
5425
+ }>;
5426
+ export type PaginatedTagsQuery = {
5427
+ __typename?: 'Query';
5428
+ paginatedTags?: {
5429
+ __typename?: 'PaginatedTagsConnection';
5430
+ edges: Array<{
5431
+ __typename?: 'PaginatedTagEdge';
5432
+ cursor: string;
5433
+ node: {
5434
+ __typename?: 'Tag';
5435
+ id: string;
5436
+ name: string;
5437
+ color?: string | null;
5438
+ createdAt: any;
5439
+ updatedAt: any;
5440
+ };
5441
+ }>;
5442
+ pageInfo: {
5443
+ __typename?: 'PaginatedPageInfo';
5444
+ currentPage: number;
5445
+ hasNextPage: boolean;
5446
+ hasPreviousPage: boolean;
5447
+ totalEdges: number;
5448
+ totalPages: number;
5449
+ };
5450
+ } | null;
5451
+ };
5452
+ export type TagQueryVariables = Exact<{
5453
+ id: Scalars['ID']['input'];
5454
+ }>;
5455
+ export type TagQuery = {
5456
+ __typename?: 'Query';
5457
+ tag?: Array<{
5458
+ __typename?: 'Tag';
5459
+ id: string;
5460
+ name: string;
5461
+ color?: string | null;
5462
+ createdAt: any;
5463
+ updatedAt: any;
5464
+ }> | null;
5465
+ };
4384
5466
  export declare const AttributeFragmentFragmentDoc: import("graphql").DocumentNode;
4385
5467
  export declare const BrandFragmentFragmentDoc: import("graphql").DocumentNode;
5468
+ export declare const CartFragmentFragmentDoc: import("graphql").DocumentNode;
5469
+ export declare const CustomerAddressFragmentFragmentDoc: import("graphql").DocumentNode;
5470
+ export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
5471
+ export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
5472
+ export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
5473
+ export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
5474
+ export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
5475
+ export declare const CartItemFragmentFragmentDoc: import("graphql").DocumentNode;
4386
5476
  export declare const CategoryFragmentFragmentDoc: import("graphql").DocumentNode;
4387
5477
  export declare const ColorFragmentFragmentDoc: import("graphql").DocumentNode;
4388
5478
  export declare const CustomFieldFragmentFragmentDoc: import("graphql").DocumentNode;
4389
5479
  export declare const CustomerFragmentFragmentDoc: import("graphql").DocumentNode;
4390
- export declare const CustomerAddressFragmentFragmentDoc: import("graphql").DocumentNode;
4391
5480
  export declare const CustomerTelephoneNumberFragmentFragmentDoc: import("graphql").DocumentNode;
4392
5481
  export declare const FileThumbnailsFieldsFragmentDoc: import("graphql").DocumentNode;
4393
5482
  export declare const FileFieldsFragmentDoc: import("graphql").DocumentNode;
@@ -4395,15 +5484,16 @@ export declare const FileUploadUrlFieldsFragmentDoc: import("graphql").DocumentN
4395
5484
  export declare const FileUploadFieldsFragmentDoc: import("graphql").DocumentNode;
4396
5485
  export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
4397
5486
  export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
4398
- export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
4399
- export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
4400
- export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
4401
- export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
4402
- export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
5487
+ export declare const TagFragmentFragmentDoc: import("graphql").DocumentNode;
4403
5488
  export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
4404
5489
  export declare const PaginatedAttributesDocument: import("graphql").DocumentNode;
4405
5490
  export declare const InfiniteBrandsDocument: import("graphql").DocumentNode;
4406
5491
  export declare const PaginatedBrandsDocument: import("graphql").DocumentNode;
5492
+ export declare const AddToCartDocument: import("graphql").DocumentNode;
5493
+ export declare const RemoveFromCartDocument: import("graphql").DocumentNode;
5494
+ export declare const SetCartAddressDocument: import("graphql").DocumentNode;
5495
+ export declare const UpdateCartItemDocument: import("graphql").DocumentNode;
5496
+ export declare const CartDocument: import("graphql").DocumentNode;
4407
5497
  export declare const InfiniteCategoriesDocument: import("graphql").DocumentNode;
4408
5498
  export declare const PaginatedCategoriesDocument: import("graphql").DocumentNode;
4409
5499
  export declare const InfiniteColorsDocument: import("graphql").DocumentNode;
@@ -4420,10 +5510,10 @@ export declare const InitiateFileUploadDocument: import("graphql").DocumentNode;
4420
5510
  export declare const CompleteFileUploadDocument: import("graphql").DocumentNode;
4421
5511
  export declare const FileDocument: import("graphql").DocumentNode;
4422
5512
  export declare const InfiniteMetricsDocument: import("graphql").DocumentNode;
4423
- export declare const CreateOrderDocument: import("graphql").DocumentNode;
4424
- export declare const UpdateOrderDocument: import("graphql").DocumentNode;
5513
+ export declare const FinalizeOrderDocument: import("graphql").DocumentNode;
4425
5514
  export declare const InfiniteOrdersDocument: import("graphql").DocumentNode;
4426
5515
  export declare const PaginatedOrdersDocument: import("graphql").DocumentNode;
5516
+ export declare const OrderDocument: import("graphql").DocumentNode;
4427
5517
  export declare const InfiniteProductsDocument: import("graphql").DocumentNode;
4428
5518
  export declare const PaginatedProductsDocument: import("graphql").DocumentNode;
4429
5519
  export declare const ProductDocument: import("graphql").DocumentNode;
@@ -4435,3 +5525,6 @@ export declare const UpdateSellerDocument: import("graphql").DocumentNode;
4435
5525
  export declare const InfiniteSellersDocument: import("graphql").DocumentNode;
4436
5526
  export declare const PaginatedSellersDocument: import("graphql").DocumentNode;
4437
5527
  export declare const SellerDocument: import("graphql").DocumentNode;
5528
+ export declare const InfiniteTagsDocument: import("graphql").DocumentNode;
5529
+ export declare const PaginatedTagsDocument: import("graphql").DocumentNode;
5530
+ export declare const TagDocument: import("graphql").DocumentNode;