@dokamerce/web-sdk 0.9.8 → 0.11.9

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.
@@ -110,6 +110,7 @@ export type Category = {
110
110
  createdAt: Scalars['DateTime']['output'];
111
111
  description?: Maybe<Scalars['String']['output']>;
112
112
  id: Scalars['ID']['output'];
113
+ image?: Maybe<File>;
113
114
  name: Scalars['String']['output'];
114
115
  names?: Maybe<Array<LocalizedText>>;
115
116
  parent?: Maybe<Category>;
@@ -164,7 +165,35 @@ export type CreateOrderInput = {
164
165
  total: Scalars['Float']['input'];
165
166
  };
166
167
  export type CreateProductInput = {
168
+ active?: InputMaybe<Scalars['Boolean']['input']>;
169
+ brandId: Scalars['ID']['input'];
170
+ businessRules?: InputMaybe<Scalars['String']['input']>;
171
+ categoryId: Scalars['ID']['input'];
172
+ condition: ProductCondition;
173
+ content: Scalars['String']['input'];
174
+ currencyId: Scalars['ID']['input'];
175
+ description?: InputMaybe<Scalars['String']['input']>;
176
+ featured?: Scalars['Boolean']['input'];
177
+ imageIds?: InputMaybe<Array<Scalars['ID']['input']>>;
178
+ maxOrderQty?: InputMaybe<Scalars['Float']['input']>;
179
+ metaDescription?: InputMaybe<Scalars['String']['input']>;
180
+ metaKeywords?: InputMaybe<Scalars['String']['input']>;
181
+ metaTitle?: InputMaybe<Scalars['String']['input']>;
182
+ minOrderQty?: InputMaybe<Scalars['Float']['input']>;
167
183
  name: Scalars['String']['input'];
184
+ price: Scalars['Float']['input'];
185
+ publishedAt: Scalars['DateTime']['input'];
186
+ shippingId?: InputMaybe<Scalars['ID']['input']>;
187
+ sizeGroupId: Scalars['ID']['input'];
188
+ status: ProductType;
189
+ thumbnailId?: InputMaybe<Scalars['ID']['input']>;
190
+ todayDeal?: Scalars['Boolean']['input'];
191
+ type: ProductType;
192
+ variants: Array<ProductVariantInput>;
193
+ videoIds?: InputMaybe<Array<Scalars['ID']['input']>>;
194
+ warrantyDescription?: InputMaybe<Scalars['String']['input']>;
195
+ warrantyTime?: InputMaybe<Scalars['String']['input']>;
196
+ warrantyType?: InputMaybe<Scalars['String']['input']>;
168
197
  };
169
198
  export type CreateSellerInput = {
170
199
  active: Scalars['Boolean']['input'];
@@ -591,35 +620,76 @@ export type PaginatedTagsConnection = {
591
620
  export type Product = {
592
621
  __typename?: 'Product';
593
622
  active: Scalars['Boolean']['output'];
594
- barcode?: Maybe<Scalars['String']['output']>;
595
623
  brand?: Maybe<Brand>;
596
- category: Category;
624
+ category?: Maybe<Category>;
625
+ condition: ProductCondition;
626
+ content?: Maybe<Scalars['String']['output']>;
597
627
  createdAt: Scalars['DateTime']['output'];
598
- deleted: Scalars['Boolean']['output'];
599
- deletedAt?: Maybe<Scalars['DateTime']['output']>;
600
628
  description?: Maybe<Scalars['String']['output']>;
601
629
  featured: Scalars['Boolean']['output'];
630
+ files: Array<ProductFile>;
602
631
  id: Scalars['ID']['output'];
632
+ maxOrderQty?: Maybe<Scalars['Boolean']['output']>;
633
+ metaDescription?: Maybe<Scalars['Boolean']['output']>;
634
+ metaKeywords?: Maybe<Scalars['Boolean']['output']>;
635
+ metaTitle?: Maybe<Scalars['Boolean']['output']>;
636
+ minOrderQty?: Maybe<Scalars['Boolean']['output']>;
603
637
  name: Scalars['String']['output'];
604
638
  price: Scalars['Float']['output'];
605
639
  publishedAt?: Maybe<Scalars['DateTime']['output']>;
606
- seller?: Maybe<Seller>;
607
- shortDescription?: Maybe<Scalars['String']['output']>;
608
- sku?: Maybe<Scalars['String']['output']>;
609
640
  slug: Scalars['String']['output'];
610
641
  soldCount: Scalars['Int']['output'];
611
- status: Scalars['String']['output'];
612
- stock: Scalars['Int']['output'];
642
+ status: ProductStatus;
643
+ thumbnail: File;
613
644
  todayDeal: Scalars['Boolean']['output'];
614
- type: Scalars['String']['output'];
645
+ type: ProductType;
615
646
  updatedAt: Scalars['DateTime']['output'];
647
+ variants: Array<ProductVariant>;
616
648
  views: Scalars['Int']['output'];
617
- };
649
+ warrantyDescription?: Maybe<Scalars['String']['output']>;
650
+ warrantyTime?: Maybe<Scalars['String']['output']>;
651
+ warrantyType?: Maybe<Scalars['String']['output']>;
652
+ };
653
+ export declare enum ProductCondition {
654
+ New = "NEW",
655
+ Oldstock = "OLDSTOCK",
656
+ Refurbished = "REFURBISHED",
657
+ Used = "USED"
658
+ }
618
659
  export declare enum ProductFieldsEnum {
660
+ Active = "active",
661
+ Condition = "condition",
662
+ Content = "content",
619
663
  CreatedAt = "createdAt",
664
+ Description = "description",
665
+ Featured = "featured",
620
666
  Id = "id",
667
+ MaxOrderQty = "maxOrderQty",
668
+ MetaDescription = "metaDescription",
669
+ MetaKeywords = "metaKeywords",
670
+ MetaTitle = "metaTitle",
671
+ MinOrderQty = "minOrderQty",
621
672
  Name = "name",
622
- UpdatedAt = "updatedAt"
673
+ Price = "price",
674
+ PublishedAt = "publishedAt",
675
+ Slug = "slug",
676
+ SoldCount = "soldCount",
677
+ Status = "status",
678
+ TodayDeal = "todayDeal",
679
+ Type = "type",
680
+ UpdatedAt = "updatedAt",
681
+ WarrantyDescription = "warrantyDescription",
682
+ WarrantyTime = "warrantyTime",
683
+ WarrantyType = "warrantyType"
684
+ }
685
+ export type ProductFile = {
686
+ __typename?: 'ProductFile';
687
+ file: File;
688
+ type: ProductFileType;
689
+ };
690
+ export declare enum ProductFileType {
691
+ Image = "IMAGE",
692
+ Video = "VIDEO"
623
693
  }
624
694
  export type ProductFilter = {
625
695
  id?: InputMaybe<IdArrayFilter>;
@@ -629,6 +699,70 @@ export type ProductSort = {
629
699
  field: ProductFieldsEnum;
630
700
  order?: InputMaybe<SortOrderEnum>;
631
701
  };
702
+ export declare enum ProductStatus {
703
+ Archived = "ARCHIVED",
704
+ Draft = "DRAFT",
705
+ Published = "PUBLISHED",
706
+ Waiting = "WAITING"
707
+ }
708
+ export declare enum ProductType {
709
+ Digital = "DIGITAL",
710
+ Physical = "PHYSICAL"
711
+ }
712
+ export type ProductVariant = {
713
+ __typename?: 'ProductVariant';
714
+ active?: Maybe<Scalars['Boolean']['output']>;
715
+ attributes: Array<ProductVariantAttribute>;
716
+ default: Scalars['Boolean']['output'];
717
+ id: Scalars['ID']['output'];
718
+ sellers: Array<ProductVariantSeller>;
719
+ };
720
+ export type ProductVariantAttribute = {
721
+ __typename?: 'ProductVariantAttribute';
722
+ attribute: Attribute;
723
+ value: Scalars['String']['output'];
724
+ };
725
+ export type ProductVariantAttributeInput = {
726
+ attributeId: Scalars['ID']['input'];
727
+ value: Scalars['String']['input'];
728
+ };
729
+ export type ProductVariantInput = {
730
+ active?: InputMaybe<Scalars['Boolean']['input']>;
731
+ attributes: Array<ProductVariantAttributeInput>;
732
+ color?: InputMaybe<Scalars['String']['input']>;
733
+ sellers?: InputMaybe<Array<ProductVariantSellerInput>>;
734
+ };
735
+ export type ProductVariantSeller = {
736
+ __typename?: 'ProductVariantSeller';
737
+ active?: Maybe<Scalars['Boolean']['output']>;
738
+ barcode?: Maybe<Scalars['String']['output']>;
739
+ discountEndAt?: Maybe<Scalars['Float']['output']>;
740
+ discountFixed?: Maybe<Scalars['Float']['output']>;
741
+ discountPercentage?: Maybe<Scalars['Float']['output']>;
742
+ discountStartAt?: Maybe<Scalars['Float']['output']>;
743
+ priceDiff: Scalars['Float']['output'];
744
+ quantity: Scalars['Int']['output'];
745
+ seller: Seller;
746
+ sku?: Maybe<Scalars['String']['output']>;
747
+ stock: ProductVariantStock;
748
+ };
749
+ export type ProductVariantSellerInput = {
750
+ active?: InputMaybe<Scalars['Boolean']['input']>;
751
+ barcode?: InputMaybe<Scalars['String']['input']>;
752
+ discountEndAt?: InputMaybe<Scalars['Float']['input']>;
753
+ discountFixed?: InputMaybe<Scalars['Float']['input']>;
754
+ discountPercentage?: InputMaybe<Scalars['Float']['input']>;
755
+ discountStartAt?: InputMaybe<Scalars['Float']['input']>;
756
+ priceDiff: Scalars['Float']['input'];
757
+ quantity: Scalars['Int']['input'];
758
+ sellerId?: InputMaybe<Scalars['ID']['input']>;
759
+ sku?: InputMaybe<Scalars['String']['input']>;
760
+ };
761
+ export type ProductVariantStock = {
762
+ __typename?: 'ProductVariantStock';
763
+ quantity: Scalars['Int']['output'];
764
+ seller: Array<Seller>;
765
+ };
632
766
  export type Query = {
633
767
  __typename?: 'Query';
634
768
  attribute?: Maybe<Array<Attribute>>;
@@ -977,7 +1111,35 @@ export type UpdateOrderInput = {
977
1111
  total?: InputMaybe<Scalars['Float']['input']>;
978
1112
  };
979
1113
  export type UpdateProductInput = {
1114
+ active?: InputMaybe<Scalars['Boolean']['input']>;
1115
+ brandId?: InputMaybe<Scalars['ID']['input']>;
1116
+ businessRules?: InputMaybe<Scalars['String']['input']>;
1117
+ categoryId?: InputMaybe<Scalars['ID']['input']>;
1118
+ condition?: InputMaybe<ProductCondition>;
1119
+ content?: InputMaybe<Scalars['String']['input']>;
1120
+ currencyId?: InputMaybe<Scalars['ID']['input']>;
1121
+ description?: InputMaybe<Scalars['String']['input']>;
1122
+ featured?: InputMaybe<Scalars['Boolean']['input']>;
1123
+ imageIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1124
+ maxOrderQty?: InputMaybe<Scalars['Float']['input']>;
1125
+ metaDescription?: InputMaybe<Scalars['String']['input']>;
1126
+ metaKeywords?: InputMaybe<Scalars['String']['input']>;
1127
+ metaTitle?: InputMaybe<Scalars['String']['input']>;
1128
+ minOrderQty?: InputMaybe<Scalars['Float']['input']>;
980
1129
  name?: InputMaybe<Scalars['String']['input']>;
1130
+ price?: InputMaybe<Scalars['Float']['input']>;
1131
+ publishedAt?: InputMaybe<Scalars['DateTime']['input']>;
1132
+ shippingId?: InputMaybe<Scalars['ID']['input']>;
1133
+ sizeGroupId?: InputMaybe<Scalars['ID']['input']>;
1134
+ status?: InputMaybe<ProductType>;
1135
+ thumbnailId?: InputMaybe<Scalars['ID']['input']>;
1136
+ todayDeal?: InputMaybe<Scalars['Boolean']['input']>;
1137
+ type?: InputMaybe<ProductType>;
1138
+ variants?: InputMaybe<Array<ProductVariantInput>>;
1139
+ videoIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1140
+ warrantyDescription?: InputMaybe<Scalars['String']['input']>;
1141
+ warrantyTime?: InputMaybe<Scalars['String']['input']>;
1142
+ warrantyType?: InputMaybe<Scalars['String']['input']>;
981
1143
  };
982
1144
  export type UpdateSellerInput = {
983
1145
  active?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1193,6 +1355,7 @@ export type InfiniteCategoriesQueryVariables = Exact<{
1193
1355
  sort?: InputMaybe<Array<CategorySort> | CategorySort>;
1194
1356
  withChildren?: InputMaybe<Scalars['Boolean']['input']>;
1195
1357
  withParent?: InputMaybe<Scalars['Boolean']['input']>;
1358
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
1196
1359
  }>;
1197
1360
  export type InfiniteCategoriesQuery = {
1198
1361
  __typename?: 'Query';
@@ -1237,6 +1400,22 @@ export type InfiniteCategoriesQuery = {
1237
1400
  value: string;
1238
1401
  }> | null;
1239
1402
  }> | null;
1403
+ image?: {
1404
+ __typename?: 'File';
1405
+ createdAt: any;
1406
+ id: string;
1407
+ name: string;
1408
+ size?: number | null;
1409
+ status: FileStatusEnum;
1410
+ type?: string | null;
1411
+ updatedAt: any;
1412
+ url?: string | null;
1413
+ thumbnails: {
1414
+ __typename?: 'FileThumbnails';
1415
+ thumbnail450Url?: string | null;
1416
+ thumbnail900Url?: string | null;
1417
+ };
1418
+ } | null;
1240
1419
  names?: Array<{
1241
1420
  __typename?: 'LocalizedText';
1242
1421
  locale: string;
@@ -1260,6 +1439,7 @@ export type PaginatedCategoriesQueryVariables = Exact<{
1260
1439
  sort?: InputMaybe<Array<CategorySort> | CategorySort>;
1261
1440
  withChildren?: InputMaybe<Scalars['Boolean']['input']>;
1262
1441
  withParent?: InputMaybe<Scalars['Boolean']['input']>;
1442
+ withImage?: InputMaybe<Scalars['Boolean']['input']>;
1263
1443
  }>;
1264
1444
  export type PaginatedCategoriesQuery = {
1265
1445
  __typename?: 'Query';
@@ -1304,6 +1484,22 @@ export type PaginatedCategoriesQuery = {
1304
1484
  value: string;
1305
1485
  }> | null;
1306
1486
  }> | null;
1487
+ image?: {
1488
+ __typename?: 'File';
1489
+ createdAt: any;
1490
+ id: string;
1491
+ name: string;
1492
+ size?: number | null;
1493
+ status: FileStatusEnum;
1494
+ type?: string | null;
1495
+ updatedAt: any;
1496
+ url?: string | null;
1497
+ thumbnails: {
1498
+ __typename?: 'FileThumbnails';
1499
+ thumbnail450Url?: string | null;
1500
+ thumbnail900Url?: string | null;
1501
+ };
1502
+ } | null;
1307
1503
  names?: Array<{
1308
1504
  __typename?: 'LocalizedText';
1309
1505
  locale: string;
@@ -1761,7 +1957,154 @@ export type PaginatedOrdersQuery = {
1761
1957
  export type ProductFragmentFragment = {
1762
1958
  __typename?: 'Product';
1763
1959
  id: string;
1960
+ active: boolean;
1961
+ condition: ProductCondition;
1962
+ content?: string | null;
1963
+ createdAt: any;
1964
+ description?: string | null;
1965
+ featured: boolean;
1966
+ maxOrderQty?: boolean | null;
1967
+ metaDescription?: boolean | null;
1968
+ metaKeywords?: boolean | null;
1969
+ metaTitle?: boolean | null;
1970
+ minOrderQty?: boolean | null;
1764
1971
  name: string;
1972
+ price: number;
1973
+ slug: string;
1974
+ soldCount: number;
1975
+ status: ProductStatus;
1976
+ todayDeal: boolean;
1977
+ type: ProductType;
1978
+ updatedAt: any;
1979
+ views: number;
1980
+ warrantyDescription?: string | null;
1981
+ warrantyTime?: string | null;
1982
+ warrantyType?: string | null;
1983
+ };
1984
+ export type ProductVariantStockFragmentFragment = {
1985
+ __typename?: 'ProductVariantStock';
1986
+ quantity: number;
1987
+ seller: Array<{
1988
+ __typename?: 'Seller';
1989
+ id: string;
1990
+ name: string;
1991
+ description?: string | null;
1992
+ active: boolean;
1993
+ orderNumber: number;
1994
+ slug: string;
1995
+ rating?: number | null;
1996
+ verified: boolean;
1997
+ createdAt: any;
1998
+ updatedAt: any;
1999
+ }>;
2000
+ };
2001
+ export type ProductVariantSellerFragmentFragment = {
2002
+ __typename?: 'ProductVariantSeller';
2003
+ active?: boolean | null;
2004
+ barcode?: string | null;
2005
+ discountEndAt?: number | null;
2006
+ discountFixed?: number | null;
2007
+ discountPercentage?: number | null;
2008
+ discountStartAt?: number | null;
2009
+ priceDiff: number;
2010
+ quantity: number;
2011
+ sku?: string | null;
2012
+ seller: {
2013
+ __typename?: 'Seller';
2014
+ id: string;
2015
+ name: string;
2016
+ description?: string | null;
2017
+ active: boolean;
2018
+ orderNumber: number;
2019
+ slug: string;
2020
+ rating?: number | null;
2021
+ verified: boolean;
2022
+ createdAt: any;
2023
+ updatedAt: any;
2024
+ };
2025
+ stock: {
2026
+ __typename?: 'ProductVariantStock';
2027
+ quantity: number;
2028
+ seller: Array<{
2029
+ __typename?: 'Seller';
2030
+ id: string;
2031
+ name: string;
2032
+ description?: string | null;
2033
+ active: boolean;
2034
+ orderNumber: number;
2035
+ slug: string;
2036
+ rating?: number | null;
2037
+ verified: boolean;
2038
+ createdAt: any;
2039
+ updatedAt: any;
2040
+ }>;
2041
+ };
2042
+ };
2043
+ export type ProductVariantFragmentFragment = {
2044
+ __typename?: 'ProductVariant';
2045
+ active?: boolean | null;
2046
+ default: boolean;
2047
+ id: string;
2048
+ attributes: Array<{
2049
+ __typename?: 'ProductVariantAttribute';
2050
+ value: string;
2051
+ attribute: {
2052
+ __typename?: 'Attribute';
2053
+ active: boolean;
2054
+ createdAt: any;
2055
+ id: string;
2056
+ name: string;
2057
+ type: string;
2058
+ updatedAt: any;
2059
+ values?: Array<{
2060
+ __typename?: 'AttributeValue';
2061
+ default: boolean;
2062
+ name: string;
2063
+ }> | null;
2064
+ };
2065
+ }>;
2066
+ sellers: Array<{
2067
+ __typename?: 'ProductVariantSeller';
2068
+ active?: boolean | null;
2069
+ barcode?: string | null;
2070
+ discountEndAt?: number | null;
2071
+ discountFixed?: number | null;
2072
+ discountPercentage?: number | null;
2073
+ discountStartAt?: number | null;
2074
+ priceDiff: number;
2075
+ quantity: number;
2076
+ sku?: string | null;
2077
+ seller: {
2078
+ __typename?: 'Seller';
2079
+ id: string;
2080
+ name: string;
2081
+ description?: string | null;
2082
+ active: boolean;
2083
+ orderNumber: number;
2084
+ slug: string;
2085
+ rating?: number | null;
2086
+ verified: boolean;
2087
+ createdAt: any;
2088
+ updatedAt: any;
2089
+ };
2090
+ stock: {
2091
+ __typename?: 'ProductVariantStock';
2092
+ quantity: number;
2093
+ seller: Array<{
2094
+ __typename?: 'Seller';
2095
+ id: string;
2096
+ name: string;
2097
+ description?: string | null;
2098
+ active: boolean;
2099
+ orderNumber: number;
2100
+ slug: string;
2101
+ rating?: number | null;
2102
+ verified: boolean;
2103
+ createdAt: any;
2104
+ updatedAt: any;
2105
+ }>;
2106
+ };
2107
+ }>;
1765
2108
  };
1766
2109
  export type InfiniteProductsQueryVariables = Exact<{
1767
2110
  after?: InputMaybe<Scalars['String']['input']>;
@@ -1770,6 +2113,11 @@ export type InfiniteProductsQueryVariables = Exact<{
1770
2113
  first?: InputMaybe<Scalars['Int']['input']>;
1771
2114
  last?: InputMaybe<Scalars['Int']['input']>;
1772
2115
  sort?: InputMaybe<Array<ProductSort> | ProductSort>;
2116
+ withCategory?: InputMaybe<Scalars['Boolean']['input']>;
2117
+ withBrand?: InputMaybe<Scalars['Boolean']['input']>;
2118
+ withVariant?: InputMaybe<Scalars['Boolean']['input']>;
2119
+ withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
2120
+ withFiles?: InputMaybe<Scalars['Boolean']['input']>;
1773
2121
  }>;
1774
2122
  export type InfiniteProductsQuery = {
1775
2123
  __typename?: 'Query';
@@ -1781,7 +2129,158 @@ export type InfiniteProductsQuery = {
1781
2129
  node: {
1782
2130
  __typename?: 'Product';
1783
2131
  id: string;
2132
+ active: boolean;
2133
+ condition: ProductCondition;
2134
+ content?: string | null;
2135
+ createdAt: any;
2136
+ description?: string | null;
2137
+ featured: boolean;
2138
+ maxOrderQty?: boolean | null;
2139
+ metaDescription?: boolean | null;
2140
+ metaKeywords?: boolean | null;
2141
+ metaTitle?: boolean | null;
2142
+ minOrderQty?: boolean | null;
1784
2143
  name: string;
2144
+ price: number;
2145
+ slug: string;
2146
+ soldCount: number;
2147
+ status: ProductStatus;
2148
+ todayDeal: boolean;
2149
+ type: ProductType;
2150
+ updatedAt: any;
2151
+ views: number;
2152
+ warrantyDescription?: string | null;
2153
+ warrantyTime?: string | null;
2154
+ warrantyType?: string | null;
2155
+ category?: {
2156
+ __typename?: 'Category';
2157
+ id: string;
2158
+ name: string;
2159
+ description?: string | null;
2160
+ slug: string;
2161
+ createdAt: any;
2162
+ updatedAt: any;
2163
+ names?: Array<{
2164
+ __typename?: 'LocalizedText';
2165
+ locale: string;
2166
+ value: string;
2167
+ }> | null;
2168
+ } | null;
2169
+ brand?: {
2170
+ __typename?: 'Brand';
2171
+ id: string;
2172
+ name: string;
2173
+ active?: boolean | null;
2174
+ description?: string | null;
2175
+ orderNumber: number;
2176
+ slug: string;
2177
+ logo?: {
2178
+ __typename?: 'File';
2179
+ url?: string | null;
2180
+ } | null;
2181
+ } | null;
2182
+ variants?: Array<{
2183
+ __typename?: 'ProductVariant';
2184
+ active?: boolean | null;
2185
+ default: boolean;
2186
+ id: string;
2187
+ attributes: Array<{
2188
+ __typename?: 'ProductVariantAttribute';
2189
+ value: string;
2190
+ attribute: {
2191
+ __typename?: 'Attribute';
2192
+ active: boolean;
2193
+ createdAt: any;
2194
+ id: string;
2195
+ name: string;
2196
+ type: string;
2197
+ updatedAt: any;
2198
+ values?: Array<{
2199
+ __typename?: 'AttributeValue';
2200
+ default: boolean;
2201
+ name: string;
2202
+ }> | null;
2203
+ };
2204
+ }>;
2205
+ sellers: Array<{
2206
+ __typename?: 'ProductVariantSeller';
2207
+ active?: boolean | null;
2208
+ barcode?: string | null;
2209
+ discountEndAt?: number | null;
2210
+ discountFixed?: number | null;
2211
+ discountPercentage?: number | null;
2212
+ discountStartAt?: number | null;
2213
+ priceDiff: number;
2214
+ quantity: number;
2215
+ sku?: string | null;
2216
+ seller: {
2217
+ __typename?: 'Seller';
2218
+ id: string;
2219
+ name: string;
2220
+ description?: string | null;
2221
+ active: boolean;
2222
+ orderNumber: number;
2223
+ slug: string;
2224
+ rating?: number | null;
2225
+ verified: boolean;
2226
+ createdAt: any;
2227
+ updatedAt: any;
2228
+ };
2229
+ stock: {
2230
+ __typename?: 'ProductVariantStock';
2231
+ quantity: number;
2232
+ seller: Array<{
2233
+ __typename?: 'Seller';
2234
+ id: string;
2235
+ name: string;
2236
+ description?: string | null;
2237
+ active: boolean;
2238
+ orderNumber: number;
2239
+ slug: string;
2240
+ rating?: number | null;
2241
+ verified: boolean;
2242
+ createdAt: any;
2243
+ updatedAt: any;
2244
+ }>;
2245
+ };
2246
+ }>;
2247
+ }>;
2248
+ thumbnail?: {
2249
+ __typename?: 'File';
2250
+ createdAt: any;
2251
+ id: string;
2252
+ name: string;
2253
+ size?: number | null;
2254
+ status: FileStatusEnum;
2255
+ type?: string | null;
2256
+ updatedAt: any;
2257
+ url?: string | null;
2258
+ thumbnails: {
2259
+ __typename?: 'FileThumbnails';
2260
+ thumbnail450Url?: string | null;
2261
+ thumbnail900Url?: string | null;
2262
+ };
2263
+ };
2264
+ files?: Array<{
2265
+ __typename?: 'ProductFile';
2266
+ type: ProductFileType;
2267
+ file: {
2268
+ __typename?: 'File';
2269
+ createdAt: any;
2270
+ id: string;
2271
+ name: string;
2272
+ size?: number | null;
2273
+ status: FileStatusEnum;
2274
+ type?: string | null;
2275
+ updatedAt: any;
2276
+ url?: string | null;
2277
+ thumbnails: {
2278
+ __typename?: 'FileThumbnails';
2279
+ thumbnail450Url?: string | null;
2280
+ thumbnail900Url?: string | null;
2281
+ };
2282
+ };
2283
+ }>;
1785
2284
  };
1786
2285
  }>;
1787
2286
  pageInfo: {
@@ -1798,6 +2297,11 @@ export type PaginatedProductsQueryVariables = Exact<{
1798
2297
  limit?: InputMaybe<Scalars['Int']['input']>;
1799
2298
  page?: InputMaybe<Scalars['Int']['input']>;
1800
2299
  sort?: InputMaybe<Array<ProductSort> | ProductSort>;
2300
+ withCategory?: InputMaybe<Scalars['Boolean']['input']>;
2301
+ withBrand?: InputMaybe<Scalars['Boolean']['input']>;
2302
+ withVariant?: InputMaybe<Scalars['Boolean']['input']>;
2303
+ withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
2304
+ withFiles?: InputMaybe<Scalars['Boolean']['input']>;
1801
2305
  }>;
1802
2306
  export type PaginatedProductsQuery = {
1803
2307
  __typename?: 'Query';
@@ -1809,7 +2313,158 @@ export type PaginatedProductsQuery = {
1809
2313
  node: {
1810
2314
  __typename?: 'Product';
1811
2315
  id: string;
2316
+ active: boolean;
2317
+ condition: ProductCondition;
2318
+ content?: string | null;
2319
+ createdAt: any;
2320
+ description?: string | null;
2321
+ featured: boolean;
2322
+ maxOrderQty?: boolean | null;
2323
+ metaDescription?: boolean | null;
2324
+ metaKeywords?: boolean | null;
2325
+ metaTitle?: boolean | null;
2326
+ minOrderQty?: boolean | null;
1812
2327
  name: string;
2328
+ price: number;
2329
+ slug: string;
2330
+ soldCount: number;
2331
+ status: ProductStatus;
2332
+ todayDeal: boolean;
2333
+ type: ProductType;
2334
+ updatedAt: any;
2335
+ views: number;
2336
+ warrantyDescription?: string | null;
2337
+ warrantyTime?: string | null;
2338
+ warrantyType?: string | null;
2339
+ category?: {
2340
+ __typename?: 'Category';
2341
+ id: string;
2342
+ name: string;
2343
+ description?: string | null;
2344
+ slug: string;
2345
+ createdAt: any;
2346
+ updatedAt: any;
2347
+ names?: Array<{
2348
+ __typename?: 'LocalizedText';
2349
+ locale: string;
2350
+ value: string;
2351
+ }> | null;
2352
+ } | null;
2353
+ brand?: {
2354
+ __typename?: 'Brand';
2355
+ id: string;
2356
+ name: string;
2357
+ active?: boolean | null;
2358
+ description?: string | null;
2359
+ orderNumber: number;
2360
+ slug: string;
2361
+ logo?: {
2362
+ __typename?: 'File';
2363
+ url?: string | null;
2364
+ } | null;
2365
+ } | null;
2366
+ variants?: Array<{
2367
+ __typename?: 'ProductVariant';
2368
+ active?: boolean | null;
2369
+ default: boolean;
2370
+ id: string;
2371
+ attributes: Array<{
2372
+ __typename?: 'ProductVariantAttribute';
2373
+ value: string;
2374
+ attribute: {
2375
+ __typename?: 'Attribute';
2376
+ active: boolean;
2377
+ createdAt: any;
2378
+ id: string;
2379
+ name: string;
2380
+ type: string;
2381
+ updatedAt: any;
2382
+ values?: Array<{
2383
+ __typename?: 'AttributeValue';
2384
+ default: boolean;
2385
+ name: string;
2386
+ }> | null;
2387
+ };
2388
+ }>;
2389
+ sellers: Array<{
2390
+ __typename?: 'ProductVariantSeller';
2391
+ active?: boolean | null;
2392
+ barcode?: string | null;
2393
+ discountEndAt?: number | null;
2394
+ discountFixed?: number | null;
2395
+ discountPercentage?: number | null;
2396
+ discountStartAt?: number | null;
2397
+ priceDiff: number;
2398
+ quantity: number;
2399
+ sku?: string | null;
2400
+ seller: {
2401
+ __typename?: 'Seller';
2402
+ id: string;
2403
+ name: string;
2404
+ description?: string | null;
2405
+ active: boolean;
2406
+ orderNumber: number;
2407
+ slug: string;
2408
+ rating?: number | null;
2409
+ verified: boolean;
2410
+ createdAt: any;
2411
+ updatedAt: any;
2412
+ };
2413
+ stock: {
2414
+ __typename?: 'ProductVariantStock';
2415
+ quantity: number;
2416
+ seller: Array<{
2417
+ __typename?: 'Seller';
2418
+ id: string;
2419
+ name: string;
2420
+ description?: string | null;
2421
+ active: boolean;
2422
+ orderNumber: number;
2423
+ slug: string;
2424
+ rating?: number | null;
2425
+ verified: boolean;
2426
+ createdAt: any;
2427
+ updatedAt: any;
2428
+ }>;
2429
+ };
2430
+ }>;
2431
+ }>;
2432
+ thumbnail?: {
2433
+ __typename?: 'File';
2434
+ createdAt: any;
2435
+ id: string;
2436
+ name: string;
2437
+ size?: number | null;
2438
+ status: FileStatusEnum;
2439
+ type?: string | null;
2440
+ updatedAt: any;
2441
+ url?: string | null;
2442
+ thumbnails: {
2443
+ __typename?: 'FileThumbnails';
2444
+ thumbnail450Url?: string | null;
2445
+ thumbnail900Url?: string | null;
2446
+ };
2447
+ };
2448
+ files?: Array<{
2449
+ __typename?: 'ProductFile';
2450
+ type: ProductFileType;
2451
+ file: {
2452
+ __typename?: 'File';
2453
+ createdAt: any;
2454
+ id: string;
2455
+ name: string;
2456
+ size?: number | null;
2457
+ status: FileStatusEnum;
2458
+ type?: string | null;
2459
+ updatedAt: any;
2460
+ url?: string | null;
2461
+ thumbnails: {
2462
+ __typename?: 'FileThumbnails';
2463
+ thumbnail450Url?: string | null;
2464
+ thumbnail900Url?: string | null;
2465
+ };
2466
+ };
2467
+ }>;
1813
2468
  };
1814
2469
  }>;
1815
2470
  pageInfo: {
@@ -1830,7 +2485,29 @@ export type ProductQuery = {
1830
2485
  product?: Array<{
1831
2486
  __typename?: 'Product';
1832
2487
  id: string;
2488
+ active: boolean;
2489
+ condition: ProductCondition;
2490
+ content?: string | null;
2491
+ createdAt: any;
2492
+ description?: string | null;
2493
+ featured: boolean;
2494
+ maxOrderQty?: boolean | null;
2495
+ metaDescription?: boolean | null;
2496
+ metaKeywords?: boolean | null;
2497
+ metaTitle?: boolean | null;
2498
+ minOrderQty?: boolean | null;
1833
2499
  name: string;
2500
+ price: number;
2501
+ slug: string;
2502
+ soldCount: number;
2503
+ status: ProductStatus;
2504
+ todayDeal: boolean;
2505
+ type: ProductType;
2506
+ updatedAt: any;
2507
+ views: number;
2508
+ warrantyDescription?: string | null;
2509
+ warrantyTime?: string | null;
2510
+ warrantyType?: string | null;
1834
2511
  }> | null;
1835
2512
  };
1836
2513
  export type CreateProductMutationVariables = Exact<{
@@ -1841,7 +2518,29 @@ export type CreateProductMutation = {
1841
2518
  createProduct: {
1842
2519
  __typename?: 'Product';
1843
2520
  id: string;
2521
+ active: boolean;
2522
+ condition: ProductCondition;
2523
+ content?: string | null;
2524
+ createdAt: any;
2525
+ description?: string | null;
2526
+ featured: boolean;
2527
+ maxOrderQty?: boolean | null;
2528
+ metaDescription?: boolean | null;
2529
+ metaKeywords?: boolean | null;
2530
+ metaTitle?: boolean | null;
2531
+ minOrderQty?: boolean | null;
1844
2532
  name: string;
2533
+ price: number;
2534
+ slug: string;
2535
+ soldCount: number;
2536
+ status: ProductStatus;
2537
+ todayDeal: boolean;
2538
+ type: ProductType;
2539
+ updatedAt: any;
2540
+ views: number;
2541
+ warrantyDescription?: string | null;
2542
+ warrantyTime?: string | null;
2543
+ warrantyType?: string | null;
1845
2544
  };
1846
2545
  };
1847
2546
  export type UpdateProductMutationVariables = Exact<{
@@ -1853,7 +2552,29 @@ export type UpdateProductMutation = {
1853
2552
  updateProduct: {
1854
2553
  __typename?: 'Product';
1855
2554
  id: string;
2555
+ active: boolean;
2556
+ condition: ProductCondition;
2557
+ content?: string | null;
2558
+ createdAt: any;
2559
+ description?: string | null;
2560
+ featured: boolean;
2561
+ maxOrderQty?: boolean | null;
2562
+ metaDescription?: boolean | null;
2563
+ metaKeywords?: boolean | null;
2564
+ metaTitle?: boolean | null;
2565
+ minOrderQty?: boolean | null;
1856
2566
  name: string;
2567
+ price: number;
2568
+ slug: string;
2569
+ soldCount: number;
2570
+ status: ProductStatus;
2571
+ todayDeal: boolean;
2572
+ type: ProductType;
2573
+ updatedAt: any;
2574
+ views: number;
2575
+ warrantyDescription?: string | null;
2576
+ warrantyTime?: string | null;
2577
+ warrantyType?: string | null;
1857
2578
  };
1858
2579
  };
1859
2580
  export type DeleteProductMutationVariables = Exact<{
@@ -2041,6 +2762,9 @@ export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
2041
2762
  export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
2042
2763
  export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
2043
2764
  export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
2765
+ export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
2766
+ export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
2767
+ export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
2044
2768
  export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
2045
2769
  export declare const PaginatedAttributesDocument: import("graphql").DocumentNode;
2046
2770
  export declare const InfiniteBrandsDocument: import("graphql").DocumentNode;