@dokamerce/web-sdk 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -539,6 +539,12 @@ export type CreateProductInput = {
539
539
  warrantyTime?: InputMaybe<Scalars['String']['input']>;
540
540
  warrantyType?: InputMaybe<Scalars['String']['input']>;
541
541
  };
542
+ export type CreateProductReviewInput = {
543
+ content?: InputMaybe<Scalars['String']['input']>;
544
+ productId: Scalars['ID']['input'];
545
+ rating?: InputMaybe<Scalars['Float']['input']>;
546
+ title?: InputMaybe<Scalars['String']['input']>;
547
+ };
542
548
  export type CreateSellerInput = {
543
549
  active: Scalars['Boolean']['input'];
544
550
  name: Scalars['String']['input'];
@@ -820,6 +826,19 @@ export type IdArrayFilter = {
820
826
  none?: InputMaybe<Array<Scalars['ID']['input']>>;
821
827
  some?: InputMaybe<Array<Scalars['ID']['input']>>;
822
828
  };
829
+ export type IdFilter = {
830
+ contains?: InputMaybe<Scalars['ID']['input']>;
831
+ endsWith?: InputMaybe<Scalars['ID']['input']>;
832
+ equals?: InputMaybe<Scalars['ID']['input']>;
833
+ greaterThan?: InputMaybe<Scalars['ID']['input']>;
834
+ greaterThanOrEquals?: InputMaybe<Scalars['ID']['input']>;
835
+ in?: InputMaybe<Array<Scalars['ID']['input']>>;
836
+ lessThan?: InputMaybe<Scalars['ID']['input']>;
837
+ lessThanOrEquals?: InputMaybe<Scalars['ID']['input']>;
838
+ not?: InputMaybe<Scalars['ID']['input']>;
839
+ notIn?: InputMaybe<Array<Scalars['ID']['input']>>;
840
+ startsWith?: InputMaybe<Scalars['ID']['input']>;
841
+ };
823
842
  export type InfiniteAttributeEdge = {
824
843
  __typename?: 'InfiniteAttributeEdge';
825
844
  cursor: Scalars['String']['output'];
@@ -942,6 +961,16 @@ export type InfiniteProductEdge = {
942
961
  cursor: Scalars['String']['output'];
943
962
  node: Product;
944
963
  };
964
+ export type InfiniteProductReviewEdge = {
965
+ __typename?: 'InfiniteProductReviewEdge';
966
+ cursor: Scalars['String']['output'];
967
+ node: ProductReview;
968
+ };
969
+ export type InfiniteProductReviewsConnection = {
970
+ __typename?: 'InfiniteProductReviewsConnection';
971
+ edges: Array<InfiniteProductReviewEdge>;
972
+ pageInfo: InfinitePageInfo;
973
+ };
945
974
  export type InfiniteProductsConnection = {
946
975
  __typename?: 'InfiniteProductsConnection';
947
976
  edges: Array<InfiniteProductEdge>;
@@ -1024,11 +1053,13 @@ export type Mutation = {
1024
1053
  createCustomerEmailAddress: CustomerEmailAddress;
1025
1054
  createCustomerTelephoneNumber: CustomerTelephoneNumber;
1026
1055
  createProduct: Product;
1056
+ createProductReview: ProductReview;
1027
1057
  createSeller: Seller;
1028
1058
  deleteCustomerAddress: Status;
1029
1059
  deleteCustomerEmailAddress: Status;
1030
1060
  deleteCustomerTelephoneNumber: Status;
1031
1061
  deleteProduct: Status;
1062
+ deleteProductReview: Status;
1032
1063
  deleteSeller: Status;
1033
1064
  finalizeOrder: Order;
1034
1065
  initiateFileUpload: FileUpload;
@@ -1040,6 +1071,7 @@ export type Mutation = {
1040
1071
  updateCustomerEmailAddress: CustomerEmailAddress;
1041
1072
  updateCustomerTelephoneNumber: CustomerTelephoneNumber;
1042
1073
  updateProduct: Product;
1074
+ updateProductReview: ProductReview;
1043
1075
  updateSeller: Seller;
1044
1076
  };
1045
1077
  export type MutationAddToCartArgs = {
@@ -1068,6 +1100,10 @@ export type MutationCreateCustomerTelephoneNumberArgs = {
1068
1100
  export type MutationCreateProductArgs = {
1069
1101
  data: CreateProductInput;
1070
1102
  };
1103
+ export type MutationCreateProductReviewArgs = {
1104
+ customerId: Scalars['ID']['input'];
1105
+ data: CreateProductReviewInput;
1106
+ };
1071
1107
  export type MutationCreateSellerArgs = {
1072
1108
  data: CreateSellerInput;
1073
1109
  };
@@ -1086,6 +1122,10 @@ export type MutationDeleteCustomerTelephoneNumberArgs = {
1086
1122
  export type MutationDeleteProductArgs = {
1087
1123
  id: Scalars['ID']['input'];
1088
1124
  };
1125
+ export type MutationDeleteProductReviewArgs = {
1126
+ customerId: Scalars['ID']['input'];
1127
+ id: Scalars['ID']['input'];
1128
+ };
1089
1129
  export type MutationDeleteSellerArgs = {
1090
1130
  id: Scalars['ID']['input'];
1091
1131
  };
@@ -1131,6 +1171,11 @@ export type MutationUpdateProductArgs = {
1131
1171
  data: UpdateProductInput;
1132
1172
  id: Scalars['ID']['input'];
1133
1173
  };
1174
+ export type MutationUpdateProductReviewArgs = {
1175
+ customerId: Scalars['ID']['input'];
1176
+ data: UpdateProductReviewInput;
1177
+ id: Scalars['ID']['input'];
1178
+ };
1134
1179
  export type MutationUpdateSellerArgs = {
1135
1180
  data: UpdateSellerInput;
1136
1181
  id: Scalars['ID']['input'];
@@ -1300,6 +1345,16 @@ export type PaginatedProductEdge = {
1300
1345
  cursor: Scalars['String']['output'];
1301
1346
  node: Product;
1302
1347
  };
1348
+ export type PaginatedProductReviewEdge = {
1349
+ __typename?: 'PaginatedProductReviewEdge';
1350
+ cursor: Scalars['String']['output'];
1351
+ node: ProductReview;
1352
+ };
1353
+ export type PaginatedProductReviewsConnection = {
1354
+ __typename?: 'PaginatedProductReviewsConnection';
1355
+ edges: Array<PaginatedProductReviewEdge>;
1356
+ pageInfo: PaginatedPageInfo;
1357
+ };
1303
1358
  export type PaginatedProductsConnection = {
1304
1359
  __typename?: 'PaginatedProductsConnection';
1305
1360
  edges: Array<PaginatedProductEdge>;
@@ -1356,6 +1411,7 @@ export type Product = {
1356
1411
  name: Scalars['String']['output'];
1357
1412
  price: Scalars['Float']['output'];
1358
1413
  publishedAt?: Maybe<Scalars['DateTime']['output']>;
1414
+ reviews: Array<ProductReview>;
1359
1415
  sellers: Array<ProductSeller>;
1360
1416
  slug: Scalars['String']['output'];
1361
1417
  soldCount: Scalars['Int']['output'];
@@ -1437,6 +1493,29 @@ export type ProductFilter = {
1437
1493
  type?: InputMaybe<ProductTypeEnumFilter>;
1438
1494
  views?: InputMaybe<NumberFilter>;
1439
1495
  };
1496
+ export type ProductReview = {
1497
+ __typename?: 'ProductReview';
1498
+ content?: Maybe<Scalars['String']['output']>;
1499
+ createdAt: Scalars['DateTime']['output'];
1500
+ customer?: Maybe<Customer>;
1501
+ id: Scalars['ID']['output'];
1502
+ product?: Maybe<Product>;
1503
+ rating?: Maybe<Scalars['Float']['output']>;
1504
+ title?: Maybe<Scalars['String']['output']>;
1505
+ updatedAt: Scalars['DateTime']['output'];
1506
+ };
1507
+ export type ProductReviewFilter = {
1508
+ content?: InputMaybe<StringFilter>;
1509
+ customerId?: InputMaybe<IdFilter>;
1510
+ id?: InputMaybe<IdArrayFilter>;
1511
+ productId?: InputMaybe<IdFilter>;
1512
+ rating?: InputMaybe<NumberFilter>;
1513
+ title?: InputMaybe<StringFilter>;
1514
+ };
1515
+ export type ProductReviewSort = {
1516
+ field: ReviewFieldsEnum;
1517
+ order?: InputMaybe<SortOrderEnum>;
1518
+ };
1440
1519
  export type ProductSeller = {
1441
1520
  __typename?: 'ProductSeller';
1442
1521
  active?: Maybe<Scalars['Boolean']['output']>;
@@ -1533,6 +1612,7 @@ export type Query = {
1533
1612
  infiniteCustomers: InfiniteCustomersConnection;
1534
1613
  infiniteMetrics: InfiniteMetricsConnection;
1535
1614
  infiniteOrders: InfiniteOrdersConnection;
1615
+ infiniteProductReviews: InfiniteProductReviewsConnection;
1536
1616
  infiniteProducts: InfiniteProductsConnection;
1537
1617
  infiniteSellers: InfiniteSellersConnection;
1538
1618
  infiniteSizes: InfiniteSizesConnection;
@@ -1550,6 +1630,7 @@ export type Query = {
1550
1630
  paginatedCustomers?: Maybe<PaginatedCustomersConnection>;
1551
1631
  paginatedMetrics?: Maybe<PaginatedMetricsConnection>;
1552
1632
  paginatedOrders?: Maybe<PaginatedOrdersConnection>;
1633
+ paginatedProductReviews?: Maybe<PaginatedProductReviewsConnection>;
1553
1634
  paginatedProducts?: Maybe<PaginatedProductsConnection>;
1554
1635
  paginatedSellers?: Maybe<PaginatedSellersConnection>;
1555
1636
  paginatedSizes?: Maybe<PaginatedSizesConnection>;
@@ -1676,6 +1757,14 @@ export type QueryInfiniteOrdersArgs = {
1676
1757
  last?: InputMaybe<Scalars['Int']['input']>;
1677
1758
  sort?: InputMaybe<Array<OrderSort>>;
1678
1759
  };
1760
+ export type QueryInfiniteProductReviewsArgs = {
1761
+ after?: InputMaybe<Scalars['String']['input']>;
1762
+ before?: InputMaybe<Scalars['String']['input']>;
1763
+ filter?: InputMaybe<ProductReviewFilter>;
1764
+ first?: InputMaybe<Scalars['Int']['input']>;
1765
+ last?: InputMaybe<Scalars['Int']['input']>;
1766
+ sort?: InputMaybe<Array<ProductReviewSort>>;
1767
+ };
1679
1768
  export type QueryInfiniteProductsArgs = {
1680
1769
  after?: InputMaybe<Scalars['String']['input']>;
1681
1770
  before?: InputMaybe<Scalars['String']['input']>;
@@ -1783,6 +1872,12 @@ export type QueryPaginatedOrdersArgs = {
1783
1872
  page?: InputMaybe<Scalars['Int']['input']>;
1784
1873
  sort?: InputMaybe<Array<OrderSort>>;
1785
1874
  };
1875
+ export type QueryPaginatedProductReviewsArgs = {
1876
+ filter?: InputMaybe<ProductReviewFilter>;
1877
+ limit?: InputMaybe<Scalars['Int']['input']>;
1878
+ page?: InputMaybe<Scalars['Int']['input']>;
1879
+ sort?: InputMaybe<Array<ProductReviewSort>>;
1880
+ };
1786
1881
  export type QueryPaginatedProductsArgs = {
1787
1882
  filter?: InputMaybe<ProductFilter>;
1788
1883
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -1872,6 +1967,14 @@ export type RegionSort = {
1872
1967
  field: RegionFieldsEnum;
1873
1968
  order?: InputMaybe<SortOrderEnum>;
1874
1969
  };
1970
+ export declare enum ReviewFieldsEnum {
1971
+ Content = "content",
1972
+ CreatedAt = "createdAt",
1973
+ Id = "id",
1974
+ Rating = "rating",
1975
+ Title = "title",
1976
+ UpdatedAt = "updatedAt"
1977
+ }
1875
1978
  export type Seller = {
1876
1979
  __typename?: 'Seller';
1877
1980
  active: Scalars['Boolean']['output'];
@@ -2728,6 +2831,11 @@ export type UpdateProductInput = {
2728
2831
  warrantyTime?: InputMaybe<Scalars['String']['input']>;
2729
2832
  warrantyType?: InputMaybe<Scalars['String']['input']>;
2730
2833
  };
2834
+ export type UpdateProductReviewInput = {
2835
+ content?: InputMaybe<Scalars['String']['input']>;
2836
+ rating?: InputMaybe<Scalars['Float']['input']>;
2837
+ title?: InputMaybe<Scalars['String']['input']>;
2838
+ };
2731
2839
  export type UpdateSellerInput = {
2732
2840
  active?: InputMaybe<Scalars['Boolean']['input']>;
2733
2841
  name?: InputMaybe<Scalars['String']['input']>;
@@ -5086,56 +5194,282 @@ export type OrderQuery = {
5086
5194
  updatedAt?: any | null;
5087
5195
  }> | null;
5088
5196
  };
5089
- export type ProductFragmentFragment = {
5090
- __typename?: 'Product';
5197
+ export type ProductReviewFragmentFragment = {
5198
+ __typename?: 'ProductReview';
5091
5199
  id: string;
5092
- active: boolean;
5093
- condition: ProductCondition;
5200
+ title?: string | null;
5094
5201
  content?: string | null;
5202
+ rating?: number | null;
5095
5203
  createdAt: any;
5096
- description?: string | null;
5097
- featured: boolean;
5098
- maxOrderQty?: boolean | null;
5099
- metaDescription?: boolean | null;
5100
- metaKeywords?: boolean | null;
5101
- metaTitle?: boolean | null;
5102
- minOrderQty?: boolean | null;
5103
- name: string;
5104
- price: number;
5105
- slug: string;
5106
- soldCount: number;
5107
- status: ProductStatus;
5108
- todayDeal: boolean;
5109
- type: ProductType;
5110
- updatedAt?: any | null;
5111
- views: number;
5112
- warrantyDescription?: string | null;
5113
- warrantyTime?: string | null;
5114
- warrantyType?: string | null;
5204
+ updatedAt: any;
5115
5205
  };
5116
- export type ProductVariantFragmentFragment = {
5117
- __typename?: 'ProductVariant';
5118
- active?: boolean | null;
5119
- default: boolean;
5120
- id: string;
5121
- attributes: Array<{
5122
- __typename?: 'ProductVariantAttribute';
5123
- value: string;
5124
- attribute: {
5125
- __typename?: 'Attribute';
5206
+ export type InfiniteProductReviewsQueryVariables = Exact<{
5207
+ after?: InputMaybe<Scalars['String']['input']>;
5208
+ before?: InputMaybe<Scalars['String']['input']>;
5209
+ filter?: InputMaybe<ProductReviewFilter>;
5210
+ first?: InputMaybe<Scalars['Int']['input']>;
5211
+ last?: InputMaybe<Scalars['Int']['input']>;
5212
+ sort?: InputMaybe<Array<ProductReviewSort> | ProductReviewSort>;
5213
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5214
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5215
+ }>;
5216
+ export type InfiniteProductReviewsQuery = {
5217
+ __typename?: 'Query';
5218
+ infiniteProductReviews: {
5219
+ __typename?: 'InfiniteProductReviewsConnection';
5220
+ edges: Array<{
5221
+ __typename?: 'InfiniteProductReviewEdge';
5222
+ cursor: string;
5223
+ node: {
5224
+ __typename?: 'ProductReview';
5225
+ id: string;
5226
+ title?: string | null;
5227
+ content?: string | null;
5228
+ rating?: number | null;
5229
+ createdAt: any;
5230
+ updatedAt: any;
5231
+ product?: {
5232
+ __typename?: 'Product';
5233
+ id: string;
5234
+ active: boolean;
5235
+ condition: ProductCondition;
5236
+ content?: string | null;
5237
+ createdAt: any;
5238
+ description?: string | null;
5239
+ featured: boolean;
5240
+ maxOrderQty?: boolean | null;
5241
+ metaDescription?: boolean | null;
5242
+ metaKeywords?: boolean | null;
5243
+ metaTitle?: boolean | null;
5244
+ minOrderQty?: boolean | null;
5245
+ name: string;
5246
+ price: number;
5247
+ slug: string;
5248
+ soldCount: number;
5249
+ status: ProductStatus;
5250
+ todayDeal: boolean;
5251
+ type: ProductType;
5252
+ updatedAt?: any | null;
5253
+ views: number;
5254
+ warrantyDescription?: string | null;
5255
+ warrantyTime?: string | null;
5256
+ warrantyType?: string | null;
5257
+ } | null;
5258
+ customer?: {
5259
+ __typename?: 'Customer';
5260
+ id: string;
5261
+ fullName: string;
5262
+ username: string;
5263
+ active: boolean;
5264
+ orderCount: number;
5265
+ createdAt: any;
5266
+ updatedAt: any;
5267
+ } | null;
5268
+ };
5269
+ }>;
5270
+ pageInfo: {
5271
+ __typename?: 'InfinitePageInfo';
5272
+ endCursor?: string | null;
5273
+ hasNextPage: boolean;
5274
+ hasPreviousPage: boolean;
5275
+ startCursor?: string | null;
5276
+ };
5277
+ };
5278
+ };
5279
+ export type PaginatedProductReviewsQueryVariables = Exact<{
5280
+ filter?: InputMaybe<ProductReviewFilter>;
5281
+ limit?: InputMaybe<Scalars['Int']['input']>;
5282
+ page?: InputMaybe<Scalars['Int']['input']>;
5283
+ sort?: InputMaybe<Array<ProductReviewSort> | ProductReviewSort>;
5284
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5285
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5286
+ }>;
5287
+ export type PaginatedProductReviewsQuery = {
5288
+ __typename?: 'Query';
5289
+ paginatedProductReviews?: {
5290
+ __typename?: 'PaginatedProductReviewsConnection';
5291
+ edges: Array<{
5292
+ __typename?: 'PaginatedProductReviewEdge';
5293
+ cursor: string;
5294
+ node: {
5295
+ __typename?: 'ProductReview';
5296
+ id: string;
5297
+ title?: string | null;
5298
+ content?: string | null;
5299
+ rating?: number | null;
5300
+ createdAt: any;
5301
+ updatedAt: any;
5302
+ product?: {
5303
+ __typename?: 'Product';
5304
+ id: string;
5305
+ active: boolean;
5306
+ condition: ProductCondition;
5307
+ content?: string | null;
5308
+ createdAt: any;
5309
+ description?: string | null;
5310
+ featured: boolean;
5311
+ maxOrderQty?: boolean | null;
5312
+ metaDescription?: boolean | null;
5313
+ metaKeywords?: boolean | null;
5314
+ metaTitle?: boolean | null;
5315
+ minOrderQty?: boolean | null;
5316
+ name: string;
5317
+ price: number;
5318
+ slug: string;
5319
+ soldCount: number;
5320
+ status: ProductStatus;
5321
+ todayDeal: boolean;
5322
+ type: ProductType;
5323
+ updatedAt?: any | null;
5324
+ views: number;
5325
+ warrantyDescription?: string | null;
5326
+ warrantyTime?: string | null;
5327
+ warrantyType?: string | null;
5328
+ } | null;
5329
+ customer?: {
5330
+ __typename?: 'Customer';
5331
+ id: string;
5332
+ fullName: string;
5333
+ username: string;
5334
+ active: boolean;
5335
+ orderCount: number;
5336
+ createdAt: any;
5337
+ updatedAt: any;
5338
+ } | null;
5339
+ };
5340
+ }>;
5341
+ pageInfo: {
5342
+ __typename?: 'PaginatedPageInfo';
5343
+ currentPage: number;
5344
+ hasNextPage: boolean;
5345
+ hasPreviousPage: boolean;
5346
+ totalEdges: number;
5347
+ totalPages: number;
5348
+ };
5349
+ } | null;
5350
+ };
5351
+ export type CreateProductReviewMutationVariables = Exact<{
5352
+ data: CreateProductReviewInput;
5353
+ customerId: Scalars['ID']['input'];
5354
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5355
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5356
+ }>;
5357
+ export type CreateProductReviewMutation = {
5358
+ __typename?: 'Mutation';
5359
+ createProductReview: {
5360
+ __typename?: 'ProductReview';
5361
+ id: string;
5362
+ title?: string | null;
5363
+ content?: string | null;
5364
+ rating?: number | null;
5365
+ createdAt: any;
5366
+ updatedAt: any;
5367
+ product?: {
5368
+ __typename?: 'Product';
5369
+ id: string;
5126
5370
  active: boolean;
5371
+ condition: ProductCondition;
5372
+ content?: string | null;
5127
5373
  createdAt: any;
5374
+ description?: string | null;
5375
+ featured: boolean;
5376
+ maxOrderQty?: boolean | null;
5377
+ metaDescription?: boolean | null;
5378
+ metaKeywords?: boolean | null;
5379
+ metaTitle?: boolean | null;
5380
+ minOrderQty?: boolean | null;
5381
+ name: string;
5382
+ price: number;
5383
+ slug: string;
5384
+ soldCount: number;
5385
+ status: ProductStatus;
5386
+ todayDeal: boolean;
5387
+ type: ProductType;
5388
+ updatedAt?: any | null;
5389
+ views: number;
5390
+ warrantyDescription?: string | null;
5391
+ warrantyTime?: string | null;
5392
+ warrantyType?: string | null;
5393
+ } | null;
5394
+ customer?: {
5395
+ __typename?: 'Customer';
5128
5396
  id: string;
5397
+ fullName: string;
5398
+ username: string;
5399
+ active: boolean;
5400
+ orderCount: number;
5401
+ createdAt: any;
5402
+ updatedAt: any;
5403
+ } | null;
5404
+ };
5405
+ };
5406
+ export type UpdateProductReviewMutationVariables = Exact<{
5407
+ data: UpdateProductReviewInput;
5408
+ id: Scalars['ID']['input'];
5409
+ customerId: Scalars['ID']['input'];
5410
+ withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
5411
+ withProduct?: InputMaybe<Scalars['Boolean']['input']>;
5412
+ }>;
5413
+ export type UpdateProductReviewMutation = {
5414
+ __typename?: 'Mutation';
5415
+ updateProductReview: {
5416
+ __typename?: 'ProductReview';
5417
+ id: string;
5418
+ title?: string | null;
5419
+ content?: string | null;
5420
+ rating?: number | null;
5421
+ createdAt: any;
5422
+ updatedAt: any;
5423
+ product?: {
5424
+ __typename?: 'Product';
5425
+ id: string;
5426
+ active: boolean;
5427
+ condition: ProductCondition;
5428
+ content?: string | null;
5429
+ createdAt: any;
5430
+ description?: string | null;
5431
+ featured: boolean;
5432
+ maxOrderQty?: boolean | null;
5433
+ metaDescription?: boolean | null;
5434
+ metaKeywords?: boolean | null;
5435
+ metaTitle?: boolean | null;
5436
+ minOrderQty?: boolean | null;
5129
5437
  name: string;
5130
- type: string;
5438
+ price: number;
5439
+ slug: string;
5440
+ soldCount: number;
5441
+ status: ProductStatus;
5442
+ todayDeal: boolean;
5443
+ type: ProductType;
5444
+ updatedAt?: any | null;
5445
+ views: number;
5446
+ warrantyDescription?: string | null;
5447
+ warrantyTime?: string | null;
5448
+ warrantyType?: string | null;
5449
+ } | null;
5450
+ customer?: {
5451
+ __typename?: 'Customer';
5452
+ id: string;
5453
+ fullName: string;
5454
+ username: string;
5455
+ active: boolean;
5456
+ orderCount: number;
5457
+ createdAt: any;
5131
5458
  updatedAt: any;
5132
- values?: Array<{
5133
- __typename?: 'AttributeValue';
5134
- default: boolean;
5135
- name: string;
5136
- }> | null;
5137
- };
5138
- }>;
5459
+ } | null;
5460
+ };
5461
+ };
5462
+ export type DeleteProductReviewMutationVariables = Exact<{
5463
+ id: Scalars['ID']['input'];
5464
+ customerId: Scalars['ID']['input'];
5465
+ }>;
5466
+ export type DeleteProductReviewMutation = {
5467
+ __typename?: 'Mutation';
5468
+ deleteProductReview: {
5469
+ __typename?: 'Status';
5470
+ reason?: string | null;
5471
+ status: StatusEnum;
5472
+ };
5139
5473
  };
5140
5474
  export type ProductSellerFragmentFragment = {
5141
5475
  __typename?: 'ProductSeller';
@@ -5186,6 +5520,57 @@ export type ProductSellerFragmentFragment = {
5186
5520
  }>;
5187
5521
  }> | null;
5188
5522
  };
5523
+ export type ProductVariantFragmentFragment = {
5524
+ __typename?: 'ProductVariant';
5525
+ active?: boolean | null;
5526
+ default: boolean;
5527
+ id: string;
5528
+ attributes: Array<{
5529
+ __typename?: 'ProductVariantAttribute';
5530
+ value: string;
5531
+ attribute: {
5532
+ __typename?: 'Attribute';
5533
+ active: boolean;
5534
+ createdAt: any;
5535
+ id: string;
5536
+ name: string;
5537
+ type: string;
5538
+ updatedAt: any;
5539
+ values?: Array<{
5540
+ __typename?: 'AttributeValue';
5541
+ default: boolean;
5542
+ name: string;
5543
+ }> | null;
5544
+ };
5545
+ }>;
5546
+ };
5547
+ export type ProductFragmentFragment = {
5548
+ __typename?: 'Product';
5549
+ id: string;
5550
+ active: boolean;
5551
+ condition: ProductCondition;
5552
+ content?: string | null;
5553
+ createdAt: any;
5554
+ description?: string | null;
5555
+ featured: boolean;
5556
+ maxOrderQty?: boolean | null;
5557
+ metaDescription?: boolean | null;
5558
+ metaKeywords?: boolean | null;
5559
+ metaTitle?: boolean | null;
5560
+ minOrderQty?: boolean | null;
5561
+ name: string;
5562
+ price: number;
5563
+ slug: string;
5564
+ soldCount: number;
5565
+ status: ProductStatus;
5566
+ todayDeal: boolean;
5567
+ type: ProductType;
5568
+ updatedAt?: any | null;
5569
+ views: number;
5570
+ warrantyDescription?: string | null;
5571
+ warrantyTime?: string | null;
5572
+ warrantyType?: string | null;
5573
+ };
5189
5574
  export type InfiniteProductsQueryVariables = Exact<{
5190
5575
  after?: InputMaybe<Scalars['String']['input']>;
5191
5576
  before?: InputMaybe<Scalars['String']['input']>;
@@ -5199,6 +5584,7 @@ export type InfiniteProductsQueryVariables = Exact<{
5199
5584
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5200
5585
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5201
5586
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5587
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
5202
5588
  }>;
5203
5589
  export type InfiniteProductsQuery = {
5204
5590
  __typename?: 'Query';
@@ -5369,6 +5755,15 @@ export type InfiniteProductsQuery = {
5369
5755
  }>;
5370
5756
  }> | null;
5371
5757
  }>;
5758
+ reviews?: Array<{
5759
+ __typename?: 'ProductReview';
5760
+ id: string;
5761
+ title?: string | null;
5762
+ content?: string | null;
5763
+ rating?: number | null;
5764
+ createdAt: any;
5765
+ updatedAt: any;
5766
+ }>;
5372
5767
  };
5373
5768
  }>;
5374
5769
  pageInfo: {
@@ -5391,6 +5786,7 @@ export type PaginatedProductsQueryVariables = Exact<{
5391
5786
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5392
5787
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5393
5788
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5789
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
5394
5790
  }>;
5395
5791
  export type PaginatedProductsQuery = {
5396
5792
  __typename?: 'Query';
@@ -5561,6 +5957,15 @@ export type PaginatedProductsQuery = {
5561
5957
  }>;
5562
5958
  }> | null;
5563
5959
  }>;
5960
+ reviews?: Array<{
5961
+ __typename?: 'ProductReview';
5962
+ id: string;
5963
+ title?: string | null;
5964
+ content?: string | null;
5965
+ rating?: number | null;
5966
+ createdAt: any;
5967
+ updatedAt: any;
5968
+ }>;
5564
5969
  };
5565
5970
  }>;
5566
5971
  pageInfo: {
@@ -5581,6 +5986,7 @@ export type ProductQueryVariables = Exact<{
5581
5986
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5582
5987
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5583
5988
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
5989
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
5584
5990
  }>;
5585
5991
  export type ProductQuery = {
5586
5992
  __typename?: 'Query';
@@ -5746,6 +6152,15 @@ export type ProductQuery = {
5746
6152
  }>;
5747
6153
  }> | null;
5748
6154
  }>;
6155
+ reviews?: Array<{
6156
+ __typename?: 'ProductReview';
6157
+ id: string;
6158
+ title?: string | null;
6159
+ content?: string | null;
6160
+ rating?: number | null;
6161
+ createdAt: any;
6162
+ updatedAt: any;
6163
+ }>;
5749
6164
  } | null;
5750
6165
  };
5751
6166
  export type CreateProductMutationVariables = Exact<{
@@ -5756,6 +6171,7 @@ export type CreateProductMutationVariables = Exact<{
5756
6171
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5757
6172
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5758
6173
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
6174
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
5759
6175
  }>;
5760
6176
  export type CreateProductMutation = {
5761
6177
  __typename?: 'Mutation';
@@ -5921,6 +6337,15 @@ export type CreateProductMutation = {
5921
6337
  }>;
5922
6338
  }> | null;
5923
6339
  }>;
6340
+ reviews?: Array<{
6341
+ __typename?: 'ProductReview';
6342
+ id: string;
6343
+ title?: string | null;
6344
+ content?: string | null;
6345
+ rating?: number | null;
6346
+ createdAt: any;
6347
+ updatedAt: any;
6348
+ }>;
5924
6349
  };
5925
6350
  };
5926
6351
  export type UpdateProductMutationVariables = Exact<{
@@ -5932,6 +6357,7 @@ export type UpdateProductMutationVariables = Exact<{
5932
6357
  withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
5933
6358
  withFiles?: InputMaybe<Scalars['Boolean']['input']>;
5934
6359
  withSellers?: InputMaybe<Scalars['Boolean']['input']>;
6360
+ withReviews?: InputMaybe<Scalars['Boolean']['input']>;
5935
6361
  }>;
5936
6362
  export type UpdateProductMutation = {
5937
6363
  __typename?: 'Mutation';
@@ -6097,6 +6523,15 @@ export type UpdateProductMutation = {
6097
6523
  }>;
6098
6524
  }> | null;
6099
6525
  }>;
6526
+ reviews?: Array<{
6527
+ __typename?: 'ProductReview';
6528
+ id: string;
6529
+ title?: string | null;
6530
+ content?: string | null;
6531
+ rating?: number | null;
6532
+ createdAt: any;
6533
+ updatedAt: any;
6534
+ }>;
6100
6535
  };
6101
6536
  };
6102
6537
  export type DeleteProductMutationVariables = Exact<{
@@ -6397,6 +6832,7 @@ export declare const FileUploadUrlFieldsFragmentDoc: import("graphql").DocumentN
6397
6832
  export declare const FileUploadFieldsFragmentDoc: import("graphql").DocumentNode;
6398
6833
  export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
6399
6834
  export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
6835
+ export declare const ProductReviewFragmentFragmentDoc: import("graphql").DocumentNode;
6400
6836
  export declare const ProductSellerFragmentFragmentDoc: import("graphql").DocumentNode;
6401
6837
  export declare const TagFragmentFragmentDoc: import("graphql").DocumentNode;
6402
6838
  export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
@@ -6443,6 +6879,11 @@ export declare const FinalizeOrderDocument: import("graphql").DocumentNode;
6443
6879
  export declare const InfiniteOrdersDocument: import("graphql").DocumentNode;
6444
6880
  export declare const PaginatedOrdersDocument: import("graphql").DocumentNode;
6445
6881
  export declare const OrderDocument: import("graphql").DocumentNode;
6882
+ export declare const InfiniteProductReviewsDocument: import("graphql").DocumentNode;
6883
+ export declare const PaginatedProductReviewsDocument: import("graphql").DocumentNode;
6884
+ export declare const CreateProductReviewDocument: import("graphql").DocumentNode;
6885
+ export declare const UpdateProductReviewDocument: import("graphql").DocumentNode;
6886
+ export declare const DeleteProductReviewDocument: import("graphql").DocumentNode;
6446
6887
  export declare const InfiniteProductsDocument: import("graphql").DocumentNode;
6447
6888
  export declare const PaginatedProductsDocument: import("graphql").DocumentNode;
6448
6889
  export declare const ProductDocument: import("graphql").DocumentNode;