@dokamerce/web-sdk 0.17.0 → 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.
@@ -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;
@@ -469,9 +502,6 @@ export type CreateCustomerTelephoneNumberInput = {
469
502
  targets?: InputMaybe<Array<TelephoneNumberTarget>>;
470
503
  value: Scalars['String']['input'];
471
504
  };
472
- export type CreateOrderInput = {
473
- total: Scalars['Float']['input'];
474
- };
475
505
  export type CreateProductInput = {
476
506
  active?: InputMaybe<Scalars['Boolean']['input']>;
477
507
  brandId: Scalars['ID']['input'];
@@ -536,8 +566,12 @@ export declare enum CustomFieldFieldsEnum {
536
566
  Values = "values"
537
567
  }
538
568
  export type CustomFieldFilter = {
569
+ enabled?: InputMaybe<BooleanFilter>;
539
570
  id?: InputMaybe<IdArrayFilter>;
540
- name?: InputMaybe<StringArrayFilter>;
571
+ name?: InputMaybe<StringFilter>;
572
+ required?: InputMaybe<StringFilter>;
573
+ target?: InputMaybe<CustomFieldTargetEnumFilter>;
574
+ type?: InputMaybe<CustomFieldTypeEnumFilter>;
541
575
  };
542
576
  export type CustomFieldSort = {
543
577
  field: CustomFieldFieldsEnum;
@@ -546,8 +580,15 @@ export type CustomFieldSort = {
546
580
  export declare enum CustomFieldTarget {
547
581
  Customer = "CUSTOMER",
548
582
  Order = "ORDER",
549
- Product = "PRODUCT"
583
+ Product = "PRODUCT",
584
+ Seller = "SELLER"
550
585
  }
586
+ export type CustomFieldTargetEnumFilter = {
587
+ equals?: InputMaybe<CustomFieldTarget>;
588
+ in?: InputMaybe<Array<CustomFieldTarget>>;
589
+ not?: InputMaybe<CustomFieldTarget>;
590
+ notIn?: InputMaybe<Array<CustomFieldTarget>>;
591
+ };
551
592
  export declare enum CustomFieldType {
552
593
  Boolean = "BOOLEAN",
553
594
  Date = "DATE",
@@ -556,6 +597,12 @@ export declare enum CustomFieldType {
556
597
  Number = "NUMBER",
557
598
  Shorttext = "SHORTTEXT"
558
599
  }
600
+ export type CustomFieldTypeEnumFilter = {
601
+ equals?: InputMaybe<CustomFieldType>;
602
+ in?: InputMaybe<Array<CustomFieldType>>;
603
+ not?: InputMaybe<CustomFieldType>;
604
+ notIn?: InputMaybe<Array<CustomFieldType>>;
605
+ };
559
606
  export type Customer = {
560
607
  __typename?: 'Customer';
561
608
  active: Scalars['Boolean']['output'];
@@ -599,8 +646,8 @@ export declare enum CustomerAddressFieldsEnum {
599
646
  RegionName = "regionName"
600
647
  }
601
648
  export type CustomerAddressFilter = {
602
- address?: InputMaybe<StringArrayFilter>;
603
- address2?: InputMaybe<StringArrayFilter>;
649
+ address?: InputMaybe<StringFilter>;
650
+ address2?: InputMaybe<StringFilter>;
604
651
  id?: InputMaybe<IdArrayFilter>;
605
652
  };
606
653
  export type CustomerAddressSort = {
@@ -616,10 +663,10 @@ export declare enum CustomerFieldsEnum {
616
663
  Username = "username"
617
664
  }
618
665
  export type CustomerFilter = {
619
- active?: InputMaybe<StringArrayFilter>;
666
+ active?: InputMaybe<BooleanFilter>;
620
667
  id?: InputMaybe<IdArrayFilter>;
621
- name?: InputMaybe<StringArrayFilter>;
622
- username?: InputMaybe<StringArrayFilter>;
668
+ name?: InputMaybe<StringFilter>;
669
+ username?: InputMaybe<StringFilter>;
623
670
  };
624
671
  export type CustomerSort = {
625
672
  field: CustomerFieldsEnum;
@@ -642,11 +689,11 @@ export declare enum CustomerTelephoneNumberFieldsEnum {
642
689
  }
643
690
  export type CustomerTelephoneNumberFilter = {
644
691
  createdAt?: InputMaybe<DateTimeArrayFilter>;
645
- customType?: InputMaybe<StringArrayFilter>;
692
+ customType?: InputMaybe<StringFilter>;
646
693
  id?: InputMaybe<IdArrayFilter>;
647
694
  targets?: InputMaybe<TelephoneNumbersTypeEnumArrayFilter>;
648
695
  updatedAt?: InputMaybe<DateTimeArrayFilter>;
649
- value?: InputMaybe<StringArrayFilter>;
696
+ value?: InputMaybe<StringFilter>;
650
697
  };
651
698
  export type CustomerTelephoneNumberSort = {
652
699
  field: CustomerTelephoneNumberFieldsEnum;
@@ -898,7 +945,7 @@ export declare enum MetricFieldsEnum {
898
945
  }
899
946
  export type MetricFilter = {
900
947
  id?: InputMaybe<IdArrayFilter>;
901
- name?: InputMaybe<StringArrayFilter>;
948
+ name?: InputMaybe<StringFilter>;
902
949
  };
903
950
  export type MetricSort = {
904
951
  field: MetricFieldsEnum;
@@ -906,25 +953,32 @@ export type MetricSort = {
906
953
  };
907
954
  export type Mutation = {
908
955
  __typename?: 'Mutation';
956
+ addToCart?: Maybe<Cart>;
909
957
  completeFileUpload: File;
910
958
  createCustomer: Customer;
911
959
  createCustomerAddress: CustomerAddress;
912
960
  createCustomerTelephoneNumber: CustomerTelephoneNumber;
913
- createOrder: Order;
914
961
  createProduct: Product;
915
962
  createSeller: Seller;
916
963
  deleteCustomerAddress: Status;
917
964
  deleteCustomerTelephoneNumber: Status;
918
965
  deleteProduct: Status;
919
966
  deleteSeller: Status;
967
+ finalizeOrder: Order;
920
968
  initiateFileUpload: FileUpload;
969
+ removeFromCart?: Maybe<Cart>;
970
+ setCartAddress?: Maybe<Cart>;
971
+ updateCartItem?: Maybe<Cart>;
921
972
  updateCustomer: Customer;
922
973
  updateCustomerAddress: CustomerAddress;
923
974
  updateCustomerTelephoneNumber: CustomerTelephoneNumber;
924
- updateOrder: Order;
925
975
  updateProduct: Product;
926
976
  updateSeller: Seller;
927
977
  };
978
+ export type MutationAddToCartArgs = {
979
+ customerId: Scalars['ID']['input'];
980
+ data: Array<AddToCartInput>;
981
+ };
928
982
  export type MutationCompleteFileUploadArgs = {
929
983
  data: CompleteFileUploadInput;
930
984
  id: Scalars['ID']['input'];
@@ -938,9 +992,6 @@ export type MutationCreateCustomerAddressArgs = {
938
992
  export type MutationCreateCustomerTelephoneNumberArgs = {
939
993
  data: CreateCustomerTelephoneNumberInput;
940
994
  };
941
- export type MutationCreateOrderArgs = {
942
- data: CreateOrderInput;
943
- };
944
995
  export type MutationCreateProductArgs = {
945
996
  data: CreateProductInput;
946
997
  };
@@ -959,9 +1010,25 @@ export type MutationDeleteProductArgs = {
959
1010
  export type MutationDeleteSellerArgs = {
960
1011
  id: Scalars['ID']['input'];
961
1012
  };
1013
+ export type MutationFinalizeOrderArgs = {
1014
+ customerId: Scalars['ID']['input'];
1015
+ };
962
1016
  export type MutationInitiateFileUploadArgs = {
963
1017
  data: InitiateFileUploadInput;
964
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
+ };
965
1032
  export type MutationUpdateCustomerArgs = {
966
1033
  data: UpdateCustomerInput;
967
1034
  id: Scalars['ID']['input'];
@@ -974,10 +1041,6 @@ export type MutationUpdateCustomerTelephoneNumberArgs = {
974
1041
  data: UpdateCustomerTelephoneNumberInput;
975
1042
  id: Scalars['ID']['input'];
976
1043
  };
977
- export type MutationUpdateOrderArgs = {
978
- data: UpdateOrderInput;
979
- id: Scalars['ID']['input'];
980
- };
981
1044
  export type MutationUpdateProductArgs = {
982
1045
  data: UpdateProductInput;
983
1046
  id: Scalars['ID']['input'];
@@ -998,21 +1061,31 @@ export type NumberFilter = {
998
1061
  };
999
1062
  export type Order = {
1000
1063
  __typename?: 'Order';
1064
+ amount: Scalars['Int']['output'];
1001
1065
  createdAt: Scalars['DateTime']['output'];
1002
1066
  customer: Customer;
1003
1067
  id: Scalars['ID']['output'];
1004
- 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'];
1005
1073
  updatedAt?: Maybe<Scalars['DateTime']['output']>;
1074
+ year: Scalars['Int']['output'];
1006
1075
  };
1007
1076
  export declare enum OrderFieldsEnum {
1077
+ Amount = "amount",
1008
1078
  CreatedAt = "createdAt",
1009
1079
  Id = "id",
1010
- Total = "total",
1080
+ Quantity = "quantity",
1081
+ ShippingCost = "shippingCost",
1082
+ TaxAmount = "taxAmount",
1083
+ TotalAmount = "totalAmount",
1011
1084
  UpdatedAt = "updatedAt"
1012
1085
  }
1013
1086
  export type OrderFilter = {
1014
1087
  id?: InputMaybe<IdArrayFilter>;
1015
- name?: InputMaybe<StringArrayFilter>;
1088
+ name?: InputMaybe<StringFilter>;
1016
1089
  };
1017
1090
  export type OrderSort = {
1018
1091
  field: OrderFieldsEnum;
@@ -1174,6 +1247,7 @@ export type Product = {
1174
1247
  condition: ProductCondition;
1175
1248
  content?: Maybe<Scalars['String']['output']>;
1176
1249
  createdAt: Scalars['DateTime']['output'];
1250
+ deletedAt?: Maybe<Scalars['DateTime']['output']>;
1177
1251
  description?: Maybe<Scalars['String']['output']>;
1178
1252
  featured: Scalars['Boolean']['output'];
1179
1253
  files: Array<ProductFile>;
@@ -1192,7 +1266,7 @@ export type Product = {
1192
1266
  thumbnail: File;
1193
1267
  todayDeal: Scalars['Boolean']['output'];
1194
1268
  type: ProductType;
1195
- updatedAt: Scalars['DateTime']['output'];
1269
+ updatedAt?: Maybe<Scalars['DateTime']['output']>;
1196
1270
  variants: Array<ProductVariant>;
1197
1271
  views: Scalars['Int']['output'];
1198
1272
  warrantyDescription?: Maybe<Scalars['String']['output']>;
@@ -1253,13 +1327,13 @@ export type ProductFilter = {
1253
1327
  condition?: InputMaybe<ProductConditionEnumFilter>;
1254
1328
  featured?: InputMaybe<BooleanFilter>;
1255
1329
  id?: InputMaybe<IdArrayFilter>;
1256
- metaDescription?: InputMaybe<StringArrayFilter>;
1257
- metaKeywords?: InputMaybe<StringArrayFilter>;
1258
- metaTitle?: InputMaybe<StringArrayFilter>;
1259
- name?: InputMaybe<StringArrayFilter>;
1330
+ metaDescription?: InputMaybe<StringFilter>;
1331
+ metaKeywords?: InputMaybe<StringFilter>;
1332
+ metaTitle?: InputMaybe<StringFilter>;
1333
+ name?: InputMaybe<StringFilter>;
1260
1334
  price?: InputMaybe<NumberFilter>;
1261
1335
  publishedAt?: InputMaybe<DateTimeFilter>;
1262
- slug?: InputMaybe<StringArrayFilter>;
1336
+ slug?: InputMaybe<StringFilter>;
1263
1337
  soldCount?: InputMaybe<NumberFilter>;
1264
1338
  status?: InputMaybe<ProductStatusEnumFilter>;
1265
1339
  todayDeal?: InputMaybe<BooleanFilter>;
@@ -1353,6 +1427,7 @@ export type Query = {
1353
1427
  allTimeZones: Array<TimeZone>;
1354
1428
  attribute?: Maybe<Array<Attribute>>;
1355
1429
  brand?: Maybe<Array<Brand>>;
1430
+ cart?: Maybe<Cart>;
1356
1431
  customField?: Maybe<Array<CustomField>>;
1357
1432
  customer?: Maybe<Customer>;
1358
1433
  customerCustomerAddress?: Maybe<CustomerAddress>;
@@ -1407,6 +1482,9 @@ export type QueryAttributeArgs = {
1407
1482
  export type QueryBrandArgs = {
1408
1483
  id: Scalars['ID']['input'];
1409
1484
  };
1485
+ export type QueryCartArgs = {
1486
+ customerId: Scalars['ID']['input'];
1487
+ };
1410
1488
  export type QueryCustomFieldArgs = {
1411
1489
  id: Scalars['ID']['input'];
1412
1490
  };
@@ -1716,7 +1794,7 @@ export declare enum SellerFieldsEnum {
1716
1794
  }
1717
1795
  export type SellerFilter = {
1718
1796
  id?: InputMaybe<IdArrayFilter>;
1719
- name?: InputMaybe<StringArrayFilter>;
1797
+ name?: InputMaybe<StringFilter>;
1720
1798
  };
1721
1799
  export type SellerSort = {
1722
1800
  field: SellerFieldsEnum;
@@ -1738,7 +1816,7 @@ export declare enum SizeFieldsEnum {
1738
1816
  }
1739
1817
  export type SizeFilter = {
1740
1818
  id?: InputMaybe<IdArrayFilter>;
1741
- name?: InputMaybe<StringArrayFilter>;
1819
+ name?: InputMaybe<StringFilter>;
1742
1820
  };
1743
1821
  export type SizeGroup = {
1744
1822
  __typename?: 'SizeGroup';
@@ -1771,11 +1849,6 @@ export declare enum StatusEnum {
1771
1849
  Error = "ERROR",
1772
1850
  Ok = "OK"
1773
1851
  }
1774
- export type StringArrayFilter = {
1775
- every?: InputMaybe<Array<Scalars['String']['input']>>;
1776
- none?: InputMaybe<Array<Scalars['String']['input']>>;
1777
- some?: InputMaybe<Array<Scalars['String']['input']>>;
1778
- };
1779
1852
  export type StringFilter = {
1780
1853
  contains?: InputMaybe<Scalars['String']['input']>;
1781
1854
  endsWith?: InputMaybe<Scalars['String']['input']>;
@@ -1812,7 +1885,7 @@ export declare enum TagFieldsEnum {
1812
1885
  }
1813
1886
  export type TagFilter = {
1814
1887
  id?: InputMaybe<IdArrayFilter>;
1815
- name?: InputMaybe<StringArrayFilter>;
1888
+ name?: InputMaybe<StringFilter>;
1816
1889
  };
1817
1890
  export type TagSort = {
1818
1891
  field: TagFieldsEnum;
@@ -2483,6 +2556,11 @@ export declare enum UnitType {
2483
2556
  Volume = "VOLUME",
2484
2557
  Weight = "WEIGHT"
2485
2558
  }
2559
+ export type UpdateCartItemInput = {
2560
+ addressId?: InputMaybe<Scalars['ID']['input']>;
2561
+ quantity?: Scalars['Int']['input'];
2562
+ shippingId?: InputMaybe<Scalars['ID']['input']>;
2563
+ };
2486
2564
  export type UpdateCustomerAddressInput = {
2487
2565
  address?: InputMaybe<Scalars['String']['input']>;
2488
2566
  address2?: InputMaybe<Scalars['String']['input']>;
@@ -2509,9 +2587,6 @@ export type UpdateCustomerTelephoneNumberInput = {
2509
2587
  targets?: InputMaybe<Array<TelephoneNumberTarget>>;
2510
2588
  value?: InputMaybe<Scalars['String']['input']>;
2511
2589
  };
2512
- export type UpdateOrderInput = {
2513
- total?: InputMaybe<Scalars['Float']['input']>;
2514
- };
2515
2590
  export type UpdateProductInput = {
2516
2591
  active?: InputMaybe<Scalars['Boolean']['input']>;
2517
2592
  brandId?: InputMaybe<Scalars['ID']['input']>;
@@ -2734,139 +2809,1022 @@ export type PaginatedBrandsQuery = {
2734
2809
  };
2735
2810
  } | null;
2736
2811
  };
2737
- export type CategoryFragmentFragment = {
2738
- __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';
2739
2821
  id: string;
2740
- name: string;
2741
- description?: string | null;
2742
- slug: string;
2822
+ amount: number;
2823
+ discountValue: number;
2824
+ quantity: number;
2825
+ shippingCost: number;
2826
+ taxAmount: number;
2827
+ totalAmount: number;
2743
2828
  createdAt: any;
2744
2829
  updatedAt: any;
2745
- names?: Array<{
2746
- __typename?: 'LocalizedText';
2747
- locale: string;
2748
- value: string;
2749
- }> | null;
2750
- };
2751
- export type InfiniteCategoriesQueryVariables = Exact<{
2752
- after?: InputMaybe<Scalars['String']['input']>;
2753
- before?: InputMaybe<Scalars['String']['input']>;
2754
- filter?: InputMaybe<CategoryFilter>;
2755
- first?: InputMaybe<Scalars['Int']['input']>;
2756
- last?: InputMaybe<Scalars['Int']['input']>;
2757
- sort?: InputMaybe<Array<CategorySort> | CategorySort>;
2758
- withChildren?: InputMaybe<Scalars['Boolean']['input']>;
2759
- withParent?: InputMaybe<Scalars['Boolean']['input']>;
2760
- withImage?: InputMaybe<Scalars['Boolean']['input']>;
2761
- }>;
2762
- export type InfiniteCategoriesQuery = {
2763
- __typename?: 'Query';
2764
- infiniteCategories: {
2765
- __typename?: 'InfiniteCategoriesConnection';
2766
- edges: Array<{
2767
- __typename?: 'InfiniteCategoryEdge';
2768
- cursor: string;
2769
- node: {
2770
- __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';
2771
2914
  id: string;
2772
2915
  name: string;
2773
2916
  description?: string | null;
2917
+ active: boolean;
2918
+ orderNumber: number;
2774
2919
  slug: string;
2920
+ rating?: number | null;
2921
+ verified: boolean;
2775
2922
  createdAt: any;
2776
2923
  updatedAt: any;
2777
- parent?: {
2778
- __typename?: 'Category';
2779
- id: string;
2780
- name: string;
2781
- description?: string | null;
2782
- slug: string;
2783
- createdAt: any;
2784
- updatedAt: any;
2785
- names?: Array<{
2786
- __typename?: 'LocalizedText';
2787
- locale: string;
2788
- value: string;
2789
- }> | null;
2790
- } | null;
2791
- children?: Array<{
2792
- __typename?: 'Category';
2924
+ };
2925
+ stock: {
2926
+ __typename?: 'ProductVariantStock';
2927
+ quantity: number;
2928
+ seller: Array<{
2929
+ __typename?: 'Seller';
2793
2930
  id: string;
2794
2931
  name: string;
2795
2932
  description?: string | null;
2933
+ active: boolean;
2934
+ orderNumber: number;
2796
2935
  slug: string;
2936
+ rating?: number | null;
2937
+ verified: boolean;
2797
2938
  createdAt: any;
2798
2939
  updatedAt: any;
2799
- names?: Array<{
2800
- __typename?: 'LocalizedText';
2801
- locale: string;
2802
- value: string;
2803
- }> | null;
2804
- }> | null;
2805
- image?: {
2806
- __typename?: 'File';
2807
- createdAt: any;
2808
- id: string;
2809
- name: string;
2810
- size?: number | null;
2811
- status: FileStatusEnum;
2812
- type?: string | null;
2813
- updatedAt: any;
2814
- url?: string | null;
2815
- thumbnails: {
2816
- __typename?: 'FileThumbnails';
2817
- thumbnail450Url?: string | null;
2818
- thumbnail900Url?: string | null;
2819
- };
2820
- } | null;
2821
- names?: Array<{
2822
- __typename?: 'LocalizedText';
2823
- locale: string;
2824
- value: string;
2825
- }> | null;
2940
+ }>;
2826
2941
  };
2827
2942
  }>;
2828
- pageInfo: {
2829
- __typename?: 'InfinitePageInfo';
2830
- endCursor?: string | null;
2831
- hasNextPage: boolean;
2832
- hasPreviousPage: boolean;
2833
- startCursor?: string | null;
2834
- };
2835
- };
2943
+ }>;
2836
2944
  };
2837
- export type PaginatedCategoriesQueryVariables = Exact<{
2838
- filter?: InputMaybe<CategoryFilter>;
2839
- limit?: InputMaybe<Scalars['Int']['input']>;
2840
- page?: InputMaybe<Scalars['Int']['input']>;
2841
- sort?: InputMaybe<Array<CategorySort> | CategorySort>;
2842
- withChildren?: InputMaybe<Scalars['Boolean']['input']>;
2843
- withParent?: InputMaybe<Scalars['Boolean']['input']>;
2844
- 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']>;
2845
2950
  }>;
2846
- export type PaginatedCategoriesQuery = {
2847
- __typename?: 'Query';
2848
- paginatedCategories?: {
2849
- __typename?: 'PaginatedCategoriesConnection';
2850
- edges: Array<{
2851
- __typename?: 'PaginatedCategoryEdge';
2852
- cursor: string;
2853
- node: {
2854
- __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';
2855
3007
  id: string;
2856
3008
  name: string;
2857
3009
  description?: string | null;
3010
+ active: boolean;
3011
+ orderNumber: number;
2858
3012
  slug: string;
3013
+ rating?: number | null;
3014
+ verified: boolean;
2859
3015
  createdAt: any;
2860
3016
  updatedAt: any;
2861
- parent?: {
2862
- __typename?: 'Category';
2863
- id: string;
2864
- name: string;
2865
- description?: string | null;
2866
- slug: string;
2867
- createdAt: any;
2868
- updatedAt: any;
2869
- names?: Array<{
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;
3824
+ slug: string;
3825
+ createdAt: any;
3826
+ updatedAt: any;
3827
+ names?: Array<{
2870
3828
  __typename?: 'LocalizedText';
2871
3829
  locale: string;
2872
3830
  value: string;
@@ -3046,7 +4004,6 @@ export type PaginatedCustomFieldsQueryVariables = Exact<{
3046
4004
  limit?: InputMaybe<Scalars['Int']['input']>;
3047
4005
  page?: InputMaybe<Scalars['Int']['input']>;
3048
4006
  sort?: InputMaybe<Array<CustomFieldSort> | CustomFieldSort>;
3049
- withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
3050
4007
  }>;
3051
4008
  export type PaginatedCustomFieldsQuery = {
3052
4009
  __typename?: 'Query';
@@ -3291,6 +4248,9 @@ export type PaginatedCustomersQuery = {
3291
4248
  };
3292
4249
  export type CustomerQueryVariables = Exact<{
3293
4250
  id: Scalars['ID']['input'];
4251
+ withTelephoneNumbers?: InputMaybe<Scalars['Boolean']['input']>;
4252
+ withAddresses?: InputMaybe<Scalars['Boolean']['input']>;
4253
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
3294
4254
  }>;
3295
4255
  export type CustomerQuery = {
3296
4256
  __typename?: 'Query';
@@ -3302,6 +4262,38 @@ export type CustomerQuery = {
3302
4262
  active: boolean;
3303
4263
  createdAt: any;
3304
4264
  updatedAt: any;
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;
3305
4297
  } | null;
3306
4298
  };
3307
4299
  export type FileThumbnailsFieldsFragment = {
@@ -3477,33 +4469,19 @@ export type InfiniteMetricsQuery = {
3477
4469
  export type OrderFragmentFragment = {
3478
4470
  __typename?: 'Order';
3479
4471
  id: string;
3480
- total: number;
4472
+ totalAmount: number;
3481
4473
  createdAt: any;
3482
4474
  updatedAt?: any | null;
3483
4475
  };
3484
- export type CreateOrderMutationVariables = Exact<{
3485
- data: CreateOrderInput;
3486
- }>;
3487
- export type CreateOrderMutation = {
3488
- __typename?: 'Mutation';
3489
- createOrder: {
3490
- __typename?: 'Order';
3491
- id: string;
3492
- total: number;
3493
- createdAt: any;
3494
- updatedAt?: any | null;
3495
- };
3496
- };
3497
- export type UpdateOrderMutationVariables = Exact<{
3498
- data: UpdateOrderInput;
3499
- id: Scalars['ID']['input'];
4476
+ export type FinalizeOrderMutationVariables = Exact<{
4477
+ customerId: Scalars['ID']['input'];
3500
4478
  }>;
3501
- export type UpdateOrderMutation = {
4479
+ export type FinalizeOrderMutation = {
3502
4480
  __typename?: 'Mutation';
3503
- updateOrder: {
4481
+ finalizeOrder: {
3504
4482
  __typename?: 'Order';
3505
4483
  id: string;
3506
- total: number;
4484
+ totalAmount: number;
3507
4485
  createdAt: any;
3508
4486
  updatedAt?: any | null;
3509
4487
  };
@@ -3526,7 +4504,7 @@ export type InfiniteOrdersQuery = {
3526
4504
  node: {
3527
4505
  __typename?: 'Order';
3528
4506
  id: string;
3529
- total: number;
4507
+ totalAmount: number;
3530
4508
  createdAt: any;
3531
4509
  updatedAt?: any | null;
3532
4510
  };
@@ -3556,7 +4534,7 @@ export type PaginatedOrdersQuery = {
3556
4534
  node: {
3557
4535
  __typename?: 'Order';
3558
4536
  id: string;
3559
- total: number;
4537
+ totalAmount: number;
3560
4538
  createdAt: any;
3561
4539
  updatedAt?: any | null;
3562
4540
  };
@@ -3579,7 +4557,7 @@ export type OrderQuery = {
3579
4557
  order?: Array<{
3580
4558
  __typename?: 'Order';
3581
4559
  id: string;
3582
- total: number;
4560
+ totalAmount: number;
3583
4561
  createdAt: any;
3584
4562
  updatedAt?: any | null;
3585
4563
  }> | null;
@@ -3605,7 +4583,7 @@ export type ProductFragmentFragment = {
3605
4583
  status: ProductStatus;
3606
4584
  todayDeal: boolean;
3607
4585
  type: ProductType;
3608
- updatedAt: any;
4586
+ updatedAt?: any | null;
3609
4587
  views: number;
3610
4588
  warrantyDescription?: string | null;
3611
4589
  warrantyTime?: string | null;
@@ -3777,7 +4755,7 @@ export type InfiniteProductsQuery = {
3777
4755
  status: ProductStatus;
3778
4756
  todayDeal: boolean;
3779
4757
  type: ProductType;
3780
- updatedAt: any;
4758
+ updatedAt?: any | null;
3781
4759
  views: number;
3782
4760
  warrantyDescription?: string | null;
3783
4761
  warrantyTime?: string | null;
@@ -3961,7 +4939,7 @@ export type PaginatedProductsQuery = {
3961
4939
  status: ProductStatus;
3962
4940
  todayDeal: boolean;
3963
4941
  type: ProductType;
3964
- updatedAt: any;
4942
+ updatedAt?: any | null;
3965
4943
  views: number;
3966
4944
  warrantyDescription?: string | null;
3967
4945
  warrantyTime?: string | null;
@@ -4133,7 +5111,7 @@ export type ProductQuery = {
4133
5111
  status: ProductStatus;
4134
5112
  todayDeal: boolean;
4135
5113
  type: ProductType;
4136
- updatedAt: any;
5114
+ updatedAt?: any | null;
4137
5115
  views: number;
4138
5116
  warrantyDescription?: string | null;
4139
5117
  warrantyTime?: string | null;
@@ -4166,7 +5144,7 @@ export type CreateProductMutation = {
4166
5144
  status: ProductStatus;
4167
5145
  todayDeal: boolean;
4168
5146
  type: ProductType;
4169
- updatedAt: any;
5147
+ updatedAt?: any | null;
4170
5148
  views: number;
4171
5149
  warrantyDescription?: string | null;
4172
5150
  warrantyTime?: string | null;
@@ -4200,7 +5178,7 @@ export type UpdateProductMutation = {
4200
5178
  status: ProductStatus;
4201
5179
  todayDeal: boolean;
4202
5180
  type: ProductType;
4203
- updatedAt: any;
5181
+ updatedAt?: any | null;
4204
5182
  views: number;
4205
5183
  warrantyDescription?: string | null;
4206
5184
  warrantyTime?: string | null;
@@ -4487,11 +5465,18 @@ export type TagQuery = {
4487
5465
  };
4488
5466
  export declare const AttributeFragmentFragmentDoc: import("graphql").DocumentNode;
4489
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;
4490
5476
  export declare const CategoryFragmentFragmentDoc: import("graphql").DocumentNode;
4491
5477
  export declare const ColorFragmentFragmentDoc: import("graphql").DocumentNode;
4492
5478
  export declare const CustomFieldFragmentFragmentDoc: import("graphql").DocumentNode;
4493
5479
  export declare const CustomerFragmentFragmentDoc: import("graphql").DocumentNode;
4494
- export declare const CustomerAddressFragmentFragmentDoc: import("graphql").DocumentNode;
4495
5480
  export declare const CustomerTelephoneNumberFragmentFragmentDoc: import("graphql").DocumentNode;
4496
5481
  export declare const FileThumbnailsFieldsFragmentDoc: import("graphql").DocumentNode;
4497
5482
  export declare const FileFieldsFragmentDoc: import("graphql").DocumentNode;
@@ -4499,16 +5484,16 @@ export declare const FileUploadUrlFieldsFragmentDoc: import("graphql").DocumentN
4499
5484
  export declare const FileUploadFieldsFragmentDoc: import("graphql").DocumentNode;
4500
5485
  export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
4501
5486
  export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
4502
- export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
4503
- export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
4504
- export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
4505
- export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
4506
- export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
4507
5487
  export declare const TagFragmentFragmentDoc: import("graphql").DocumentNode;
4508
5488
  export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
4509
5489
  export declare const PaginatedAttributesDocument: import("graphql").DocumentNode;
4510
5490
  export declare const InfiniteBrandsDocument: import("graphql").DocumentNode;
4511
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;
4512
5497
  export declare const InfiniteCategoriesDocument: import("graphql").DocumentNode;
4513
5498
  export declare const PaginatedCategoriesDocument: import("graphql").DocumentNode;
4514
5499
  export declare const InfiniteColorsDocument: import("graphql").DocumentNode;
@@ -4525,8 +5510,7 @@ export declare const InitiateFileUploadDocument: import("graphql").DocumentNode;
4525
5510
  export declare const CompleteFileUploadDocument: import("graphql").DocumentNode;
4526
5511
  export declare const FileDocument: import("graphql").DocumentNode;
4527
5512
  export declare const InfiniteMetricsDocument: import("graphql").DocumentNode;
4528
- export declare const CreateOrderDocument: import("graphql").DocumentNode;
4529
- export declare const UpdateOrderDocument: import("graphql").DocumentNode;
5513
+ export declare const FinalizeOrderDocument: import("graphql").DocumentNode;
4530
5514
  export declare const InfiniteOrdersDocument: import("graphql").DocumentNode;
4531
5515
  export declare const PaginatedOrdersDocument: import("graphql").DocumentNode;
4532
5516
  export declare const OrderDocument: import("graphql").DocumentNode;