@dokamerce/web-sdk 0.21.2 → 0.22.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.
- package/dist/graphql/__generated__/gateway.d.ts +605 -470
- package/dist/graphql/__generated__/gateway.js +119 -44
- package/dist/graphql/__generated__/gateway.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web-sdk/src/functions/init-sdk-client.function.d.ts +1 -2
- package/dist/web-sdk/src/functions/init-sdk.function.d.ts +1 -2
- package/dist/web-sdk/src/index.d.ts +5 -13
- package/dist/web-sdk/src/index.js +18 -36
- package/dist/web-sdk/src/index.js.map +1 -1
- package/dist/web-sdk/src/main.d.ts +10 -0
- package/dist/web-sdk/src/main.js +40 -0
- package/dist/web-sdk/src/main.js.map +1 -0
- package/dist/web-sdk/src/services/attributes.d.ts +1 -1
- package/dist/web-sdk/src/services/index.d.ts +1 -0
- package/dist/web-sdk/src/services/index.js +1 -0
- package/dist/web-sdk/src/services/index.js.map +1 -1
- package/dist/web-sdk/src/services/products.d.ts +1 -1
- package/dist/web-sdk/src/typings/sdk.typing.d.ts +3 -5
- package/package.json +2 -2
|
@@ -153,6 +153,7 @@ export type CartItem = {
|
|
|
153
153
|
};
|
|
154
154
|
export type Category = {
|
|
155
155
|
__typename?: 'Category';
|
|
156
|
+
active: Scalars['Boolean']['output'];
|
|
156
157
|
children?: Maybe<Array<Category>>;
|
|
157
158
|
createdAt: Scalars['DateTime']['output'];
|
|
158
159
|
description?: Maybe<Scalars['String']['output']>;
|
|
@@ -521,6 +522,7 @@ export type CreateProductInput = {
|
|
|
521
522
|
name: Scalars['String']['input'];
|
|
522
523
|
price: Scalars['Float']['input'];
|
|
523
524
|
publishedAt: Scalars['DateTime']['input'];
|
|
525
|
+
seller?: InputMaybe<ProductSellerInput>;
|
|
524
526
|
shippingId?: InputMaybe<Scalars['ID']['input']>;
|
|
525
527
|
sizeGroupId: Scalars['ID']['input'];
|
|
526
528
|
status: ProductType;
|
|
@@ -1260,6 +1262,7 @@ export type Product = {
|
|
|
1260
1262
|
name: Scalars['String']['output'];
|
|
1261
1263
|
price: Scalars['Float']['output'];
|
|
1262
1264
|
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1265
|
+
sellers: Array<ProductSeller>;
|
|
1263
1266
|
slug: Scalars['String']['output'];
|
|
1264
1267
|
soldCount: Scalars['Int']['output'];
|
|
1265
1268
|
status: ProductStatus;
|
|
@@ -1340,6 +1343,32 @@ export type ProductFilter = {
|
|
|
1340
1343
|
type?: InputMaybe<ProductTypeEnumFilter>;
|
|
1341
1344
|
views?: InputMaybe<NumberFilter>;
|
|
1342
1345
|
};
|
|
1346
|
+
export type ProductSeller = {
|
|
1347
|
+
__typename?: 'ProductSeller';
|
|
1348
|
+
active?: Maybe<Scalars['Boolean']['output']>;
|
|
1349
|
+
barcode?: Maybe<Scalars['String']['output']>;
|
|
1350
|
+
discountEndAt?: Maybe<Scalars['Float']['output']>;
|
|
1351
|
+
discountFixed?: Maybe<Scalars['Float']['output']>;
|
|
1352
|
+
discountPercentage?: Maybe<Scalars['Float']['output']>;
|
|
1353
|
+
discountStartAt?: Maybe<Scalars['Float']['output']>;
|
|
1354
|
+
priceDiff: Scalars['Float']['output'];
|
|
1355
|
+
quantity: Scalars['Int']['output'];
|
|
1356
|
+
seller: Seller;
|
|
1357
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
1358
|
+
variant?: Maybe<Array<ProductVariant>>;
|
|
1359
|
+
};
|
|
1360
|
+
export type ProductSellerInput = {
|
|
1361
|
+
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1362
|
+
barcode?: InputMaybe<Scalars['String']['input']>;
|
|
1363
|
+
discountEndAt?: InputMaybe<Scalars['Float']['input']>;
|
|
1364
|
+
discountFixed?: InputMaybe<Scalars['Float']['input']>;
|
|
1365
|
+
discountPercentage?: InputMaybe<Scalars['Float']['input']>;
|
|
1366
|
+
discountStartAt?: InputMaybe<Scalars['Float']['input']>;
|
|
1367
|
+
priceDiff: Scalars['Float']['input'];
|
|
1368
|
+
quantity: Scalars['Int']['input'];
|
|
1369
|
+
sellerId?: InputMaybe<Scalars['ID']['input']>;
|
|
1370
|
+
sku?: InputMaybe<Scalars['String']['input']>;
|
|
1371
|
+
};
|
|
1343
1372
|
export type ProductSort = {
|
|
1344
1373
|
field: ProductFieldsEnum;
|
|
1345
1374
|
order?: InputMaybe<SortOrderEnum>;
|
|
@@ -1372,7 +1401,6 @@ export type ProductVariant = {
|
|
|
1372
1401
|
attributes: Array<ProductVariantAttribute>;
|
|
1373
1402
|
default: Scalars['Boolean']['output'];
|
|
1374
1403
|
id: Scalars['ID']['output'];
|
|
1375
|
-
sellers: Array<ProductVariantSeller>;
|
|
1376
1404
|
};
|
|
1377
1405
|
export type ProductVariantAttribute = {
|
|
1378
1406
|
__typename?: 'ProductVariantAttribute';
|
|
@@ -1387,38 +1415,7 @@ export type ProductVariantInput = {
|
|
|
1387
1415
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1388
1416
|
attributes: Array<ProductVariantAttributeInput>;
|
|
1389
1417
|
color?: InputMaybe<Scalars['String']['input']>;
|
|
1390
|
-
sellers?: InputMaybe<Array<
|
|
1391
|
-
};
|
|
1392
|
-
export type ProductVariantSeller = {
|
|
1393
|
-
__typename?: 'ProductVariantSeller';
|
|
1394
|
-
active?: Maybe<Scalars['Boolean']['output']>;
|
|
1395
|
-
barcode?: Maybe<Scalars['String']['output']>;
|
|
1396
|
-
discountEndAt?: Maybe<Scalars['Float']['output']>;
|
|
1397
|
-
discountFixed?: Maybe<Scalars['Float']['output']>;
|
|
1398
|
-
discountPercentage?: Maybe<Scalars['Float']['output']>;
|
|
1399
|
-
discountStartAt?: Maybe<Scalars['Float']['output']>;
|
|
1400
|
-
priceDiff: Scalars['Float']['output'];
|
|
1401
|
-
quantity: Scalars['Int']['output'];
|
|
1402
|
-
seller: Seller;
|
|
1403
|
-
sku?: Maybe<Scalars['String']['output']>;
|
|
1404
|
-
stock: ProductVariantStock;
|
|
1405
|
-
};
|
|
1406
|
-
export type ProductVariantSellerInput = {
|
|
1407
|
-
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1408
|
-
barcode?: InputMaybe<Scalars['String']['input']>;
|
|
1409
|
-
discountEndAt?: InputMaybe<Scalars['Float']['input']>;
|
|
1410
|
-
discountFixed?: InputMaybe<Scalars['Float']['input']>;
|
|
1411
|
-
discountPercentage?: InputMaybe<Scalars['Float']['input']>;
|
|
1412
|
-
discountStartAt?: InputMaybe<Scalars['Float']['input']>;
|
|
1413
|
-
priceDiff: Scalars['Float']['input'];
|
|
1414
|
-
quantity: Scalars['Int']['input'];
|
|
1415
|
-
sellerId?: InputMaybe<Scalars['ID']['input']>;
|
|
1416
|
-
sku?: InputMaybe<Scalars['String']['input']>;
|
|
1417
|
-
};
|
|
1418
|
-
export type ProductVariantStock = {
|
|
1419
|
-
__typename?: 'ProductVariantStock';
|
|
1420
|
-
quantity: Scalars['Int']['output'];
|
|
1421
|
-
seller: Array<Seller>;
|
|
1418
|
+
sellers?: InputMaybe<Array<ProductSellerInput>>;
|
|
1422
1419
|
};
|
|
1423
1420
|
export type Query = {
|
|
1424
1421
|
__typename?: 'Query';
|
|
@@ -2606,6 +2603,7 @@ export type UpdateProductInput = {
|
|
|
2606
2603
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
2607
2604
|
price?: InputMaybe<Scalars['Float']['input']>;
|
|
2608
2605
|
publishedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2606
|
+
seller?: InputMaybe<ProductSellerInput>;
|
|
2609
2607
|
shippingId?: InputMaybe<Scalars['ID']['input']>;
|
|
2610
2608
|
sizeGroupId?: InputMaybe<Scalars['ID']['input']>;
|
|
2611
2609
|
status?: InputMaybe<ProductType>;
|
|
@@ -2898,48 +2896,6 @@ export type CartItemFragmentFragment = {
|
|
|
2898
2896
|
}> | null;
|
|
2899
2897
|
};
|
|
2900
2898
|
}>;
|
|
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';
|
|
2914
|
-
id: string;
|
|
2915
|
-
name: string;
|
|
2916
|
-
description?: string | null;
|
|
2917
|
-
active: boolean;
|
|
2918
|
-
orderNumber: number;
|
|
2919
|
-
slug: string;
|
|
2920
|
-
rating?: number | null;
|
|
2921
|
-
verified: boolean;
|
|
2922
|
-
createdAt: any;
|
|
2923
|
-
updatedAt: any;
|
|
2924
|
-
};
|
|
2925
|
-
stock: {
|
|
2926
|
-
__typename?: 'ProductVariantStock';
|
|
2927
|
-
quantity: number;
|
|
2928
|
-
seller: Array<{
|
|
2929
|
-
__typename?: 'Seller';
|
|
2930
|
-
id: string;
|
|
2931
|
-
name: string;
|
|
2932
|
-
description?: string | null;
|
|
2933
|
-
active: boolean;
|
|
2934
|
-
orderNumber: number;
|
|
2935
|
-
slug: string;
|
|
2936
|
-
rating?: number | null;
|
|
2937
|
-
verified: boolean;
|
|
2938
|
-
createdAt: any;
|
|
2939
|
-
updatedAt: any;
|
|
2940
|
-
}>;
|
|
2941
|
-
};
|
|
2942
|
-
}>;
|
|
2943
2899
|
}>;
|
|
2944
2900
|
};
|
|
2945
2901
|
export type AddToCartMutationVariables = Exact<{
|
|
@@ -3038,48 +2994,6 @@ export type AddToCartMutation = {
|
|
|
3038
2994
|
}> | null;
|
|
3039
2995
|
};
|
|
3040
2996
|
}>;
|
|
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
2997
|
}>;
|
|
3084
2998
|
}>;
|
|
3085
2999
|
address?: {
|
|
@@ -3188,48 +3102,6 @@ export type RemoveFromCartMutation = {
|
|
|
3188
3102
|
}> | null;
|
|
3189
3103
|
};
|
|
3190
3104
|
}>;
|
|
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
3105
|
}>;
|
|
3234
3106
|
}>;
|
|
3235
3107
|
address?: {
|
|
@@ -3338,48 +3210,6 @@ export type SetCartAddressMutation = {
|
|
|
3338
3210
|
}> | null;
|
|
3339
3211
|
};
|
|
3340
3212
|
}>;
|
|
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
3213
|
}>;
|
|
3384
3214
|
}>;
|
|
3385
3215
|
address?: {
|
|
@@ -3489,48 +3319,6 @@ export type UpdateCartItemMutation = {
|
|
|
3489
3319
|
}> | null;
|
|
3490
3320
|
};
|
|
3491
3321
|
}>;
|
|
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
3322
|
}>;
|
|
3535
3323
|
}>;
|
|
3536
3324
|
address?: {
|
|
@@ -3638,48 +3426,6 @@ export type CartQuery = {
|
|
|
3638
3426
|
}> | null;
|
|
3639
3427
|
};
|
|
3640
3428
|
}>;
|
|
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
3429
|
}>;
|
|
3684
3430
|
}>;
|
|
3685
3431
|
address?: {
|
|
@@ -4589,67 +4335,8 @@ export type ProductFragmentFragment = {
|
|
|
4589
4335
|
warrantyTime?: string | null;
|
|
4590
4336
|
warrantyType?: string | null;
|
|
4591
4337
|
};
|
|
4592
|
-
export type
|
|
4593
|
-
__typename?: '
|
|
4594
|
-
quantity: number;
|
|
4595
|
-
seller: Array<{
|
|
4596
|
-
__typename?: 'Seller';
|
|
4597
|
-
id: string;
|
|
4598
|
-
name: string;
|
|
4599
|
-
description?: string | null;
|
|
4600
|
-
active: boolean;
|
|
4601
|
-
orderNumber: number;
|
|
4602
|
-
slug: string;
|
|
4603
|
-
rating?: number | null;
|
|
4604
|
-
verified: boolean;
|
|
4605
|
-
createdAt: any;
|
|
4606
|
-
updatedAt: any;
|
|
4607
|
-
}>;
|
|
4608
|
-
};
|
|
4609
|
-
export type ProductVariantSellerFragmentFragment = {
|
|
4610
|
-
__typename?: 'ProductVariantSeller';
|
|
4611
|
-
active?: boolean | null;
|
|
4612
|
-
barcode?: string | null;
|
|
4613
|
-
discountEndAt?: number | null;
|
|
4614
|
-
discountFixed?: number | null;
|
|
4615
|
-
discountPercentage?: number | null;
|
|
4616
|
-
discountStartAt?: number | null;
|
|
4617
|
-
priceDiff: number;
|
|
4618
|
-
quantity: number;
|
|
4619
|
-
sku?: string | null;
|
|
4620
|
-
seller: {
|
|
4621
|
-
__typename?: 'Seller';
|
|
4622
|
-
id: string;
|
|
4623
|
-
name: string;
|
|
4624
|
-
description?: string | null;
|
|
4625
|
-
active: boolean;
|
|
4626
|
-
orderNumber: number;
|
|
4627
|
-
slug: string;
|
|
4628
|
-
rating?: number | null;
|
|
4629
|
-
verified: boolean;
|
|
4630
|
-
createdAt: any;
|
|
4631
|
-
updatedAt: any;
|
|
4632
|
-
};
|
|
4633
|
-
stock: {
|
|
4634
|
-
__typename?: 'ProductVariantStock';
|
|
4635
|
-
quantity: number;
|
|
4636
|
-
seller: Array<{
|
|
4637
|
-
__typename?: 'Seller';
|
|
4638
|
-
id: string;
|
|
4639
|
-
name: string;
|
|
4640
|
-
description?: string | null;
|
|
4641
|
-
active: boolean;
|
|
4642
|
-
orderNumber: number;
|
|
4643
|
-
slug: string;
|
|
4644
|
-
rating?: number | null;
|
|
4645
|
-
verified: boolean;
|
|
4646
|
-
createdAt: any;
|
|
4647
|
-
updatedAt: any;
|
|
4648
|
-
}>;
|
|
4649
|
-
};
|
|
4650
|
-
};
|
|
4651
|
-
export type ProductVariantFragmentFragment = {
|
|
4652
|
-
__typename?: 'ProductVariant';
|
|
4338
|
+
export type ProductVariantFragmentFragment = {
|
|
4339
|
+
__typename?: 'ProductVariant';
|
|
4653
4340
|
active?: boolean | null;
|
|
4654
4341
|
default: boolean;
|
|
4655
4342
|
id: string;
|
|
@@ -4671,48 +4358,55 @@ export type ProductVariantFragmentFragment = {
|
|
|
4671
4358
|
}> | null;
|
|
4672
4359
|
};
|
|
4673
4360
|
}>;
|
|
4674
|
-
|
|
4675
|
-
|
|
4361
|
+
};
|
|
4362
|
+
export type ProductSellerFragmentFragment = {
|
|
4363
|
+
__typename?: 'ProductSeller';
|
|
4364
|
+
active?: boolean | null;
|
|
4365
|
+
barcode?: string | null;
|
|
4366
|
+
discountEndAt?: number | null;
|
|
4367
|
+
discountFixed?: number | null;
|
|
4368
|
+
discountPercentage?: number | null;
|
|
4369
|
+
discountStartAt?: number | null;
|
|
4370
|
+
priceDiff: number;
|
|
4371
|
+
quantity: number;
|
|
4372
|
+
sku?: string | null;
|
|
4373
|
+
seller: {
|
|
4374
|
+
__typename?: 'Seller';
|
|
4375
|
+
id: string;
|
|
4376
|
+
name: string;
|
|
4377
|
+
description?: string | null;
|
|
4378
|
+
active: boolean;
|
|
4379
|
+
orderNumber: number;
|
|
4380
|
+
slug: string;
|
|
4381
|
+
rating?: number | null;
|
|
4382
|
+
verified: boolean;
|
|
4383
|
+
createdAt: any;
|
|
4384
|
+
updatedAt: any;
|
|
4385
|
+
};
|
|
4386
|
+
variant?: Array<{
|
|
4387
|
+
__typename?: 'ProductVariant';
|
|
4676
4388
|
active?: boolean | null;
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
sku?: string | null;
|
|
4685
|
-
seller: {
|
|
4686
|
-
__typename?: 'Seller';
|
|
4687
|
-
id: string;
|
|
4688
|
-
name: string;
|
|
4689
|
-
description?: string | null;
|
|
4690
|
-
active: boolean;
|
|
4691
|
-
orderNumber: number;
|
|
4692
|
-
slug: string;
|
|
4693
|
-
rating?: number | null;
|
|
4694
|
-
verified: boolean;
|
|
4695
|
-
createdAt: any;
|
|
4696
|
-
updatedAt: any;
|
|
4697
|
-
};
|
|
4698
|
-
stock: {
|
|
4699
|
-
__typename?: 'ProductVariantStock';
|
|
4700
|
-
quantity: number;
|
|
4701
|
-
seller: Array<{
|
|
4702
|
-
__typename?: 'Seller';
|
|
4703
|
-
id: string;
|
|
4704
|
-
name: string;
|
|
4705
|
-
description?: string | null;
|
|
4389
|
+
default: boolean;
|
|
4390
|
+
id: string;
|
|
4391
|
+
attributes: Array<{
|
|
4392
|
+
__typename?: 'ProductVariantAttribute';
|
|
4393
|
+
value: string;
|
|
4394
|
+
attribute: {
|
|
4395
|
+
__typename?: 'Attribute';
|
|
4706
4396
|
active: boolean;
|
|
4707
|
-
orderNumber: number;
|
|
4708
|
-
slug: string;
|
|
4709
|
-
rating?: number | null;
|
|
4710
|
-
verified: boolean;
|
|
4711
4397
|
createdAt: any;
|
|
4398
|
+
id: string;
|
|
4399
|
+
name: string;
|
|
4400
|
+
type: string;
|
|
4712
4401
|
updatedAt: any;
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4402
|
+
values?: Array<{
|
|
4403
|
+
__typename?: 'AttributeValue';
|
|
4404
|
+
default: boolean;
|
|
4405
|
+
name: string;
|
|
4406
|
+
}> | null;
|
|
4407
|
+
};
|
|
4408
|
+
}>;
|
|
4409
|
+
}> | null;
|
|
4716
4410
|
};
|
|
4717
4411
|
export type InfiniteProductsQueryVariables = Exact<{
|
|
4718
4412
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4726,6 +4420,7 @@ export type InfiniteProductsQueryVariables = Exact<{
|
|
|
4726
4420
|
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4727
4421
|
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4728
4422
|
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4423
|
+
withSellers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4729
4424
|
}>;
|
|
4730
4425
|
export type InfiniteProductsQuery = {
|
|
4731
4426
|
__typename?: 'Query';
|
|
@@ -4810,48 +4505,6 @@ export type InfiniteProductsQuery = {
|
|
|
4810
4505
|
}> | null;
|
|
4811
4506
|
};
|
|
4812
4507
|
}>;
|
|
4813
|
-
sellers: Array<{
|
|
4814
|
-
__typename?: 'ProductVariantSeller';
|
|
4815
|
-
active?: boolean | null;
|
|
4816
|
-
barcode?: string | null;
|
|
4817
|
-
discountEndAt?: number | null;
|
|
4818
|
-
discountFixed?: number | null;
|
|
4819
|
-
discountPercentage?: number | null;
|
|
4820
|
-
discountStartAt?: number | null;
|
|
4821
|
-
priceDiff: number;
|
|
4822
|
-
quantity: number;
|
|
4823
|
-
sku?: string | null;
|
|
4824
|
-
seller: {
|
|
4825
|
-
__typename?: 'Seller';
|
|
4826
|
-
id: string;
|
|
4827
|
-
name: string;
|
|
4828
|
-
description?: string | null;
|
|
4829
|
-
active: boolean;
|
|
4830
|
-
orderNumber: number;
|
|
4831
|
-
slug: string;
|
|
4832
|
-
rating?: number | null;
|
|
4833
|
-
verified: boolean;
|
|
4834
|
-
createdAt: any;
|
|
4835
|
-
updatedAt: any;
|
|
4836
|
-
};
|
|
4837
|
-
stock: {
|
|
4838
|
-
__typename?: 'ProductVariantStock';
|
|
4839
|
-
quantity: number;
|
|
4840
|
-
seller: Array<{
|
|
4841
|
-
__typename?: 'Seller';
|
|
4842
|
-
id: string;
|
|
4843
|
-
name: string;
|
|
4844
|
-
description?: string | null;
|
|
4845
|
-
active: boolean;
|
|
4846
|
-
orderNumber: number;
|
|
4847
|
-
slug: string;
|
|
4848
|
-
rating?: number | null;
|
|
4849
|
-
verified: boolean;
|
|
4850
|
-
createdAt: any;
|
|
4851
|
-
updatedAt: any;
|
|
4852
|
-
}>;
|
|
4853
|
-
};
|
|
4854
|
-
}>;
|
|
4855
4508
|
}>;
|
|
4856
4509
|
thumbnail?: {
|
|
4857
4510
|
__typename?: 'File';
|
|
@@ -4889,6 +4542,55 @@ export type InfiniteProductsQuery = {
|
|
|
4889
4542
|
};
|
|
4890
4543
|
};
|
|
4891
4544
|
}>;
|
|
4545
|
+
sellers?: Array<{
|
|
4546
|
+
__typename?: 'ProductSeller';
|
|
4547
|
+
active?: boolean | null;
|
|
4548
|
+
barcode?: string | null;
|
|
4549
|
+
discountEndAt?: number | null;
|
|
4550
|
+
discountFixed?: number | null;
|
|
4551
|
+
discountPercentage?: number | null;
|
|
4552
|
+
discountStartAt?: number | null;
|
|
4553
|
+
priceDiff: number;
|
|
4554
|
+
quantity: number;
|
|
4555
|
+
sku?: string | null;
|
|
4556
|
+
seller: {
|
|
4557
|
+
__typename?: 'Seller';
|
|
4558
|
+
id: string;
|
|
4559
|
+
name: string;
|
|
4560
|
+
description?: string | null;
|
|
4561
|
+
active: boolean;
|
|
4562
|
+
orderNumber: number;
|
|
4563
|
+
slug: string;
|
|
4564
|
+
rating?: number | null;
|
|
4565
|
+
verified: boolean;
|
|
4566
|
+
createdAt: any;
|
|
4567
|
+
updatedAt: any;
|
|
4568
|
+
};
|
|
4569
|
+
variant?: Array<{
|
|
4570
|
+
__typename?: 'ProductVariant';
|
|
4571
|
+
active?: boolean | null;
|
|
4572
|
+
default: boolean;
|
|
4573
|
+
id: string;
|
|
4574
|
+
attributes: Array<{
|
|
4575
|
+
__typename?: 'ProductVariantAttribute';
|
|
4576
|
+
value: string;
|
|
4577
|
+
attribute: {
|
|
4578
|
+
__typename?: 'Attribute';
|
|
4579
|
+
active: boolean;
|
|
4580
|
+
createdAt: any;
|
|
4581
|
+
id: string;
|
|
4582
|
+
name: string;
|
|
4583
|
+
type: string;
|
|
4584
|
+
updatedAt: any;
|
|
4585
|
+
values?: Array<{
|
|
4586
|
+
__typename?: 'AttributeValue';
|
|
4587
|
+
default: boolean;
|
|
4588
|
+
name: string;
|
|
4589
|
+
}> | null;
|
|
4590
|
+
};
|
|
4591
|
+
}>;
|
|
4592
|
+
}> | null;
|
|
4593
|
+
}>;
|
|
4892
4594
|
};
|
|
4893
4595
|
}>;
|
|
4894
4596
|
pageInfo: {
|
|
@@ -4910,6 +4612,7 @@ export type PaginatedProductsQueryVariables = Exact<{
|
|
|
4910
4612
|
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4911
4613
|
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4912
4614
|
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4615
|
+
withSellers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4913
4616
|
}>;
|
|
4914
4617
|
export type PaginatedProductsQuery = {
|
|
4915
4618
|
__typename?: 'Query';
|
|
@@ -4994,48 +4697,6 @@ export type PaginatedProductsQuery = {
|
|
|
4994
4697
|
}> | null;
|
|
4995
4698
|
};
|
|
4996
4699
|
}>;
|
|
4997
|
-
sellers: Array<{
|
|
4998
|
-
__typename?: 'ProductVariantSeller';
|
|
4999
|
-
active?: boolean | null;
|
|
5000
|
-
barcode?: string | null;
|
|
5001
|
-
discountEndAt?: number | null;
|
|
5002
|
-
discountFixed?: number | null;
|
|
5003
|
-
discountPercentage?: number | null;
|
|
5004
|
-
discountStartAt?: number | null;
|
|
5005
|
-
priceDiff: number;
|
|
5006
|
-
quantity: number;
|
|
5007
|
-
sku?: string | null;
|
|
5008
|
-
seller: {
|
|
5009
|
-
__typename?: 'Seller';
|
|
5010
|
-
id: string;
|
|
5011
|
-
name: string;
|
|
5012
|
-
description?: string | null;
|
|
5013
|
-
active: boolean;
|
|
5014
|
-
orderNumber: number;
|
|
5015
|
-
slug: string;
|
|
5016
|
-
rating?: number | null;
|
|
5017
|
-
verified: boolean;
|
|
5018
|
-
createdAt: any;
|
|
5019
|
-
updatedAt: any;
|
|
5020
|
-
};
|
|
5021
|
-
stock: {
|
|
5022
|
-
__typename?: 'ProductVariantStock';
|
|
5023
|
-
quantity: number;
|
|
5024
|
-
seller: Array<{
|
|
5025
|
-
__typename?: 'Seller';
|
|
5026
|
-
id: string;
|
|
5027
|
-
name: string;
|
|
5028
|
-
description?: string | null;
|
|
5029
|
-
active: boolean;
|
|
5030
|
-
orderNumber: number;
|
|
5031
|
-
slug: string;
|
|
5032
|
-
rating?: number | null;
|
|
5033
|
-
verified: boolean;
|
|
5034
|
-
createdAt: any;
|
|
5035
|
-
updatedAt: any;
|
|
5036
|
-
}>;
|
|
5037
|
-
};
|
|
5038
|
-
}>;
|
|
5039
4700
|
}>;
|
|
5040
4701
|
thumbnail?: {
|
|
5041
4702
|
__typename?: 'File';
|
|
@@ -5073,6 +4734,55 @@ export type PaginatedProductsQuery = {
|
|
|
5073
4734
|
};
|
|
5074
4735
|
};
|
|
5075
4736
|
}>;
|
|
4737
|
+
sellers?: Array<{
|
|
4738
|
+
__typename?: 'ProductSeller';
|
|
4739
|
+
active?: boolean | null;
|
|
4740
|
+
barcode?: string | null;
|
|
4741
|
+
discountEndAt?: number | null;
|
|
4742
|
+
discountFixed?: number | null;
|
|
4743
|
+
discountPercentage?: number | null;
|
|
4744
|
+
discountStartAt?: number | null;
|
|
4745
|
+
priceDiff: number;
|
|
4746
|
+
quantity: number;
|
|
4747
|
+
sku?: string | null;
|
|
4748
|
+
seller: {
|
|
4749
|
+
__typename?: 'Seller';
|
|
4750
|
+
id: string;
|
|
4751
|
+
name: string;
|
|
4752
|
+
description?: string | null;
|
|
4753
|
+
active: boolean;
|
|
4754
|
+
orderNumber: number;
|
|
4755
|
+
slug: string;
|
|
4756
|
+
rating?: number | null;
|
|
4757
|
+
verified: boolean;
|
|
4758
|
+
createdAt: any;
|
|
4759
|
+
updatedAt: any;
|
|
4760
|
+
};
|
|
4761
|
+
variant?: Array<{
|
|
4762
|
+
__typename?: 'ProductVariant';
|
|
4763
|
+
active?: boolean | null;
|
|
4764
|
+
default: boolean;
|
|
4765
|
+
id: string;
|
|
4766
|
+
attributes: Array<{
|
|
4767
|
+
__typename?: 'ProductVariantAttribute';
|
|
4768
|
+
value: string;
|
|
4769
|
+
attribute: {
|
|
4770
|
+
__typename?: 'Attribute';
|
|
4771
|
+
active: boolean;
|
|
4772
|
+
createdAt: any;
|
|
4773
|
+
id: string;
|
|
4774
|
+
name: string;
|
|
4775
|
+
type: string;
|
|
4776
|
+
updatedAt: any;
|
|
4777
|
+
values?: Array<{
|
|
4778
|
+
__typename?: 'AttributeValue';
|
|
4779
|
+
default: boolean;
|
|
4780
|
+
name: string;
|
|
4781
|
+
}> | null;
|
|
4782
|
+
};
|
|
4783
|
+
}>;
|
|
4784
|
+
}> | null;
|
|
4785
|
+
}>;
|
|
5076
4786
|
};
|
|
5077
4787
|
}>;
|
|
5078
4788
|
pageInfo: {
|
|
@@ -5087,6 +4797,12 @@ export type PaginatedProductsQuery = {
|
|
|
5087
4797
|
};
|
|
5088
4798
|
export type ProductQueryVariables = Exact<{
|
|
5089
4799
|
id: Scalars['ID']['input'];
|
|
4800
|
+
withCategory?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4801
|
+
withBrand?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4802
|
+
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4803
|
+
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4804
|
+
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4805
|
+
withSellers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5090
4806
|
}>;
|
|
5091
4807
|
export type ProductQuery = {
|
|
5092
4808
|
__typename?: 'Query';
|
|
@@ -5116,10 +4832,152 @@ export type ProductQuery = {
|
|
|
5116
4832
|
warrantyDescription?: string | null;
|
|
5117
4833
|
warrantyTime?: string | null;
|
|
5118
4834
|
warrantyType?: string | null;
|
|
4835
|
+
category?: {
|
|
4836
|
+
__typename?: 'Category';
|
|
4837
|
+
id: string;
|
|
4838
|
+
name: string;
|
|
4839
|
+
description?: string | null;
|
|
4840
|
+
slug: string;
|
|
4841
|
+
createdAt: any;
|
|
4842
|
+
updatedAt: any;
|
|
4843
|
+
names?: Array<{
|
|
4844
|
+
__typename?: 'LocalizedText';
|
|
4845
|
+
locale: string;
|
|
4846
|
+
value: string;
|
|
4847
|
+
}> | null;
|
|
4848
|
+
} | null;
|
|
4849
|
+
brand?: {
|
|
4850
|
+
__typename?: 'Brand';
|
|
4851
|
+
id: string;
|
|
4852
|
+
name: string;
|
|
4853
|
+
active?: boolean | null;
|
|
4854
|
+
description?: string | null;
|
|
4855
|
+
orderNumber: number;
|
|
4856
|
+
slug: string;
|
|
4857
|
+
logo?: {
|
|
4858
|
+
__typename?: 'File';
|
|
4859
|
+
url?: string | null;
|
|
4860
|
+
} | null;
|
|
4861
|
+
} | null;
|
|
4862
|
+
variants?: Array<{
|
|
4863
|
+
__typename?: 'ProductVariant';
|
|
4864
|
+
active?: boolean | null;
|
|
4865
|
+
default: boolean;
|
|
4866
|
+
id: string;
|
|
4867
|
+
attributes: Array<{
|
|
4868
|
+
__typename?: 'ProductVariantAttribute';
|
|
4869
|
+
value: string;
|
|
4870
|
+
attribute: {
|
|
4871
|
+
__typename?: 'Attribute';
|
|
4872
|
+
active: boolean;
|
|
4873
|
+
createdAt: any;
|
|
4874
|
+
id: string;
|
|
4875
|
+
name: string;
|
|
4876
|
+
type: string;
|
|
4877
|
+
updatedAt: any;
|
|
4878
|
+
values?: Array<{
|
|
4879
|
+
__typename?: 'AttributeValue';
|
|
4880
|
+
default: boolean;
|
|
4881
|
+
name: string;
|
|
4882
|
+
}> | null;
|
|
4883
|
+
};
|
|
4884
|
+
}>;
|
|
4885
|
+
}>;
|
|
4886
|
+
thumbnail?: {
|
|
4887
|
+
__typename?: 'File';
|
|
4888
|
+
createdAt: any;
|
|
4889
|
+
id: string;
|
|
4890
|
+
name: string;
|
|
4891
|
+
size?: number | null;
|
|
4892
|
+
status: FileStatusEnum;
|
|
4893
|
+
type?: string | null;
|
|
4894
|
+
updatedAt: any;
|
|
4895
|
+
url?: string | null;
|
|
4896
|
+
thumbnails: {
|
|
4897
|
+
__typename?: 'FileThumbnails';
|
|
4898
|
+
thumbnail450Url?: string | null;
|
|
4899
|
+
thumbnail900Url?: string | null;
|
|
4900
|
+
};
|
|
4901
|
+
};
|
|
4902
|
+
files?: Array<{
|
|
4903
|
+
__typename?: 'ProductFile';
|
|
4904
|
+
type: ProductFileType;
|
|
4905
|
+
file: {
|
|
4906
|
+
__typename?: 'File';
|
|
4907
|
+
createdAt: any;
|
|
4908
|
+
id: string;
|
|
4909
|
+
name: string;
|
|
4910
|
+
size?: number | null;
|
|
4911
|
+
status: FileStatusEnum;
|
|
4912
|
+
type?: string | null;
|
|
4913
|
+
updatedAt: any;
|
|
4914
|
+
url?: string | null;
|
|
4915
|
+
thumbnails: {
|
|
4916
|
+
__typename?: 'FileThumbnails';
|
|
4917
|
+
thumbnail450Url?: string | null;
|
|
4918
|
+
thumbnail900Url?: string | null;
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
4921
|
+
}>;
|
|
4922
|
+
sellers?: Array<{
|
|
4923
|
+
__typename?: 'ProductSeller';
|
|
4924
|
+
active?: boolean | null;
|
|
4925
|
+
barcode?: string | null;
|
|
4926
|
+
discountEndAt?: number | null;
|
|
4927
|
+
discountFixed?: number | null;
|
|
4928
|
+
discountPercentage?: number | null;
|
|
4929
|
+
discountStartAt?: number | null;
|
|
4930
|
+
priceDiff: number;
|
|
4931
|
+
quantity: number;
|
|
4932
|
+
sku?: string | null;
|
|
4933
|
+
seller: {
|
|
4934
|
+
__typename?: 'Seller';
|
|
4935
|
+
id: string;
|
|
4936
|
+
name: string;
|
|
4937
|
+
description?: string | null;
|
|
4938
|
+
active: boolean;
|
|
4939
|
+
orderNumber: number;
|
|
4940
|
+
slug: string;
|
|
4941
|
+
rating?: number | null;
|
|
4942
|
+
verified: boolean;
|
|
4943
|
+
createdAt: any;
|
|
4944
|
+
updatedAt: any;
|
|
4945
|
+
};
|
|
4946
|
+
variant?: Array<{
|
|
4947
|
+
__typename?: 'ProductVariant';
|
|
4948
|
+
active?: boolean | null;
|
|
4949
|
+
default: boolean;
|
|
4950
|
+
id: string;
|
|
4951
|
+
attributes: Array<{
|
|
4952
|
+
__typename?: 'ProductVariantAttribute';
|
|
4953
|
+
value: string;
|
|
4954
|
+
attribute: {
|
|
4955
|
+
__typename?: 'Attribute';
|
|
4956
|
+
active: boolean;
|
|
4957
|
+
createdAt: any;
|
|
4958
|
+
id: string;
|
|
4959
|
+
name: string;
|
|
4960
|
+
type: string;
|
|
4961
|
+
updatedAt: any;
|
|
4962
|
+
values?: Array<{
|
|
4963
|
+
__typename?: 'AttributeValue';
|
|
4964
|
+
default: boolean;
|
|
4965
|
+
name: string;
|
|
4966
|
+
}> | null;
|
|
4967
|
+
};
|
|
4968
|
+
}>;
|
|
4969
|
+
}> | null;
|
|
4970
|
+
}>;
|
|
5119
4971
|
}> | null;
|
|
5120
4972
|
};
|
|
5121
4973
|
export type CreateProductMutationVariables = Exact<{
|
|
5122
4974
|
data: CreateProductInput;
|
|
4975
|
+
withCategory?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4976
|
+
withBrand?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4977
|
+
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4978
|
+
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4979
|
+
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4980
|
+
withSellers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5123
4981
|
}>;
|
|
5124
4982
|
export type CreateProductMutation = {
|
|
5125
4983
|
__typename?: 'Mutation';
|
|
@@ -5149,11 +5007,153 @@ export type CreateProductMutation = {
|
|
|
5149
5007
|
warrantyDescription?: string | null;
|
|
5150
5008
|
warrantyTime?: string | null;
|
|
5151
5009
|
warrantyType?: string | null;
|
|
5010
|
+
category?: {
|
|
5011
|
+
__typename?: 'Category';
|
|
5012
|
+
id: string;
|
|
5013
|
+
name: string;
|
|
5014
|
+
description?: string | null;
|
|
5015
|
+
slug: string;
|
|
5016
|
+
createdAt: any;
|
|
5017
|
+
updatedAt: any;
|
|
5018
|
+
names?: Array<{
|
|
5019
|
+
__typename?: 'LocalizedText';
|
|
5020
|
+
locale: string;
|
|
5021
|
+
value: string;
|
|
5022
|
+
}> | null;
|
|
5023
|
+
} | null;
|
|
5024
|
+
brand?: {
|
|
5025
|
+
__typename?: 'Brand';
|
|
5026
|
+
id: string;
|
|
5027
|
+
name: string;
|
|
5028
|
+
active?: boolean | null;
|
|
5029
|
+
description?: string | null;
|
|
5030
|
+
orderNumber: number;
|
|
5031
|
+
slug: string;
|
|
5032
|
+
logo?: {
|
|
5033
|
+
__typename?: 'File';
|
|
5034
|
+
url?: string | null;
|
|
5035
|
+
} | null;
|
|
5036
|
+
} | null;
|
|
5037
|
+
variants?: Array<{
|
|
5038
|
+
__typename?: 'ProductVariant';
|
|
5039
|
+
active?: boolean | null;
|
|
5040
|
+
default: boolean;
|
|
5041
|
+
id: string;
|
|
5042
|
+
attributes: Array<{
|
|
5043
|
+
__typename?: 'ProductVariantAttribute';
|
|
5044
|
+
value: string;
|
|
5045
|
+
attribute: {
|
|
5046
|
+
__typename?: 'Attribute';
|
|
5047
|
+
active: boolean;
|
|
5048
|
+
createdAt: any;
|
|
5049
|
+
id: string;
|
|
5050
|
+
name: string;
|
|
5051
|
+
type: string;
|
|
5052
|
+
updatedAt: any;
|
|
5053
|
+
values?: Array<{
|
|
5054
|
+
__typename?: 'AttributeValue';
|
|
5055
|
+
default: boolean;
|
|
5056
|
+
name: string;
|
|
5057
|
+
}> | null;
|
|
5058
|
+
};
|
|
5059
|
+
}>;
|
|
5060
|
+
}>;
|
|
5061
|
+
thumbnail?: {
|
|
5062
|
+
__typename?: 'File';
|
|
5063
|
+
createdAt: any;
|
|
5064
|
+
id: string;
|
|
5065
|
+
name: string;
|
|
5066
|
+
size?: number | null;
|
|
5067
|
+
status: FileStatusEnum;
|
|
5068
|
+
type?: string | null;
|
|
5069
|
+
updatedAt: any;
|
|
5070
|
+
url?: string | null;
|
|
5071
|
+
thumbnails: {
|
|
5072
|
+
__typename?: 'FileThumbnails';
|
|
5073
|
+
thumbnail450Url?: string | null;
|
|
5074
|
+
thumbnail900Url?: string | null;
|
|
5075
|
+
};
|
|
5076
|
+
};
|
|
5077
|
+
files?: Array<{
|
|
5078
|
+
__typename?: 'ProductFile';
|
|
5079
|
+
type: ProductFileType;
|
|
5080
|
+
file: {
|
|
5081
|
+
__typename?: 'File';
|
|
5082
|
+
createdAt: any;
|
|
5083
|
+
id: string;
|
|
5084
|
+
name: string;
|
|
5085
|
+
size?: number | null;
|
|
5086
|
+
status: FileStatusEnum;
|
|
5087
|
+
type?: string | null;
|
|
5088
|
+
updatedAt: any;
|
|
5089
|
+
url?: string | null;
|
|
5090
|
+
thumbnails: {
|
|
5091
|
+
__typename?: 'FileThumbnails';
|
|
5092
|
+
thumbnail450Url?: string | null;
|
|
5093
|
+
thumbnail900Url?: string | null;
|
|
5094
|
+
};
|
|
5095
|
+
};
|
|
5096
|
+
}>;
|
|
5097
|
+
sellers?: Array<{
|
|
5098
|
+
__typename?: 'ProductSeller';
|
|
5099
|
+
active?: boolean | null;
|
|
5100
|
+
barcode?: string | null;
|
|
5101
|
+
discountEndAt?: number | null;
|
|
5102
|
+
discountFixed?: number | null;
|
|
5103
|
+
discountPercentage?: number | null;
|
|
5104
|
+
discountStartAt?: number | null;
|
|
5105
|
+
priceDiff: number;
|
|
5106
|
+
quantity: number;
|
|
5107
|
+
sku?: string | null;
|
|
5108
|
+
seller: {
|
|
5109
|
+
__typename?: 'Seller';
|
|
5110
|
+
id: string;
|
|
5111
|
+
name: string;
|
|
5112
|
+
description?: string | null;
|
|
5113
|
+
active: boolean;
|
|
5114
|
+
orderNumber: number;
|
|
5115
|
+
slug: string;
|
|
5116
|
+
rating?: number | null;
|
|
5117
|
+
verified: boolean;
|
|
5118
|
+
createdAt: any;
|
|
5119
|
+
updatedAt: any;
|
|
5120
|
+
};
|
|
5121
|
+
variant?: Array<{
|
|
5122
|
+
__typename?: 'ProductVariant';
|
|
5123
|
+
active?: boolean | null;
|
|
5124
|
+
default: boolean;
|
|
5125
|
+
id: string;
|
|
5126
|
+
attributes: Array<{
|
|
5127
|
+
__typename?: 'ProductVariantAttribute';
|
|
5128
|
+
value: string;
|
|
5129
|
+
attribute: {
|
|
5130
|
+
__typename?: 'Attribute';
|
|
5131
|
+
active: boolean;
|
|
5132
|
+
createdAt: any;
|
|
5133
|
+
id: string;
|
|
5134
|
+
name: string;
|
|
5135
|
+
type: string;
|
|
5136
|
+
updatedAt: any;
|
|
5137
|
+
values?: Array<{
|
|
5138
|
+
__typename?: 'AttributeValue';
|
|
5139
|
+
default: boolean;
|
|
5140
|
+
name: string;
|
|
5141
|
+
}> | null;
|
|
5142
|
+
};
|
|
5143
|
+
}>;
|
|
5144
|
+
}> | null;
|
|
5145
|
+
}>;
|
|
5152
5146
|
};
|
|
5153
5147
|
};
|
|
5154
5148
|
export type UpdateProductMutationVariables = Exact<{
|
|
5155
5149
|
data: UpdateProductInput;
|
|
5156
5150
|
id: Scalars['ID']['input'];
|
|
5151
|
+
withCategory?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5152
|
+
withBrand?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5153
|
+
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5154
|
+
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5155
|
+
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5156
|
+
withSellers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5157
5157
|
}>;
|
|
5158
5158
|
export type UpdateProductMutation = {
|
|
5159
5159
|
__typename?: 'Mutation';
|
|
@@ -5183,6 +5183,142 @@ export type UpdateProductMutation = {
|
|
|
5183
5183
|
warrantyDescription?: string | null;
|
|
5184
5184
|
warrantyTime?: string | null;
|
|
5185
5185
|
warrantyType?: string | null;
|
|
5186
|
+
category?: {
|
|
5187
|
+
__typename?: 'Category';
|
|
5188
|
+
id: string;
|
|
5189
|
+
name: string;
|
|
5190
|
+
description?: string | null;
|
|
5191
|
+
slug: string;
|
|
5192
|
+
createdAt: any;
|
|
5193
|
+
updatedAt: any;
|
|
5194
|
+
names?: Array<{
|
|
5195
|
+
__typename?: 'LocalizedText';
|
|
5196
|
+
locale: string;
|
|
5197
|
+
value: string;
|
|
5198
|
+
}> | null;
|
|
5199
|
+
} | null;
|
|
5200
|
+
brand?: {
|
|
5201
|
+
__typename?: 'Brand';
|
|
5202
|
+
id: string;
|
|
5203
|
+
name: string;
|
|
5204
|
+
active?: boolean | null;
|
|
5205
|
+
description?: string | null;
|
|
5206
|
+
orderNumber: number;
|
|
5207
|
+
slug: string;
|
|
5208
|
+
logo?: {
|
|
5209
|
+
__typename?: 'File';
|
|
5210
|
+
url?: string | null;
|
|
5211
|
+
} | null;
|
|
5212
|
+
} | null;
|
|
5213
|
+
variants?: Array<{
|
|
5214
|
+
__typename?: 'ProductVariant';
|
|
5215
|
+
active?: boolean | null;
|
|
5216
|
+
default: boolean;
|
|
5217
|
+
id: string;
|
|
5218
|
+
attributes: Array<{
|
|
5219
|
+
__typename?: 'ProductVariantAttribute';
|
|
5220
|
+
value: string;
|
|
5221
|
+
attribute: {
|
|
5222
|
+
__typename?: 'Attribute';
|
|
5223
|
+
active: boolean;
|
|
5224
|
+
createdAt: any;
|
|
5225
|
+
id: string;
|
|
5226
|
+
name: string;
|
|
5227
|
+
type: string;
|
|
5228
|
+
updatedAt: any;
|
|
5229
|
+
values?: Array<{
|
|
5230
|
+
__typename?: 'AttributeValue';
|
|
5231
|
+
default: boolean;
|
|
5232
|
+
name: string;
|
|
5233
|
+
}> | null;
|
|
5234
|
+
};
|
|
5235
|
+
}>;
|
|
5236
|
+
}>;
|
|
5237
|
+
thumbnail?: {
|
|
5238
|
+
__typename?: 'File';
|
|
5239
|
+
createdAt: any;
|
|
5240
|
+
id: string;
|
|
5241
|
+
name: string;
|
|
5242
|
+
size?: number | null;
|
|
5243
|
+
status: FileStatusEnum;
|
|
5244
|
+
type?: string | null;
|
|
5245
|
+
updatedAt: any;
|
|
5246
|
+
url?: string | null;
|
|
5247
|
+
thumbnails: {
|
|
5248
|
+
__typename?: 'FileThumbnails';
|
|
5249
|
+
thumbnail450Url?: string | null;
|
|
5250
|
+
thumbnail900Url?: string | null;
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
files?: Array<{
|
|
5254
|
+
__typename?: 'ProductFile';
|
|
5255
|
+
type: ProductFileType;
|
|
5256
|
+
file: {
|
|
5257
|
+
__typename?: 'File';
|
|
5258
|
+
createdAt: any;
|
|
5259
|
+
id: string;
|
|
5260
|
+
name: string;
|
|
5261
|
+
size?: number | null;
|
|
5262
|
+
status: FileStatusEnum;
|
|
5263
|
+
type?: string | null;
|
|
5264
|
+
updatedAt: any;
|
|
5265
|
+
url?: string | null;
|
|
5266
|
+
thumbnails: {
|
|
5267
|
+
__typename?: 'FileThumbnails';
|
|
5268
|
+
thumbnail450Url?: string | null;
|
|
5269
|
+
thumbnail900Url?: string | null;
|
|
5270
|
+
};
|
|
5271
|
+
};
|
|
5272
|
+
}>;
|
|
5273
|
+
sellers?: Array<{
|
|
5274
|
+
__typename?: 'ProductSeller';
|
|
5275
|
+
active?: boolean | null;
|
|
5276
|
+
barcode?: string | null;
|
|
5277
|
+
discountEndAt?: number | null;
|
|
5278
|
+
discountFixed?: number | null;
|
|
5279
|
+
discountPercentage?: number | null;
|
|
5280
|
+
discountStartAt?: number | null;
|
|
5281
|
+
priceDiff: number;
|
|
5282
|
+
quantity: number;
|
|
5283
|
+
sku?: string | null;
|
|
5284
|
+
seller: {
|
|
5285
|
+
__typename?: 'Seller';
|
|
5286
|
+
id: string;
|
|
5287
|
+
name: string;
|
|
5288
|
+
description?: string | null;
|
|
5289
|
+
active: boolean;
|
|
5290
|
+
orderNumber: number;
|
|
5291
|
+
slug: string;
|
|
5292
|
+
rating?: number | null;
|
|
5293
|
+
verified: boolean;
|
|
5294
|
+
createdAt: any;
|
|
5295
|
+
updatedAt: any;
|
|
5296
|
+
};
|
|
5297
|
+
variant?: Array<{
|
|
5298
|
+
__typename?: 'ProductVariant';
|
|
5299
|
+
active?: boolean | null;
|
|
5300
|
+
default: boolean;
|
|
5301
|
+
id: string;
|
|
5302
|
+
attributes: Array<{
|
|
5303
|
+
__typename?: 'ProductVariantAttribute';
|
|
5304
|
+
value: string;
|
|
5305
|
+
attribute: {
|
|
5306
|
+
__typename?: 'Attribute';
|
|
5307
|
+
active: boolean;
|
|
5308
|
+
createdAt: any;
|
|
5309
|
+
id: string;
|
|
5310
|
+
name: string;
|
|
5311
|
+
type: string;
|
|
5312
|
+
updatedAt: any;
|
|
5313
|
+
values?: Array<{
|
|
5314
|
+
__typename?: 'AttributeValue';
|
|
5315
|
+
default: boolean;
|
|
5316
|
+
name: string;
|
|
5317
|
+
}> | null;
|
|
5318
|
+
};
|
|
5319
|
+
}>;
|
|
5320
|
+
}> | null;
|
|
5321
|
+
}>;
|
|
5186
5322
|
};
|
|
5187
5323
|
};
|
|
5188
5324
|
export type DeleteProductMutationVariables = Exact<{
|
|
@@ -5469,8 +5605,6 @@ export declare const CartFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
|
5469
5605
|
export declare const CustomerAddressFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5470
5606
|
export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5471
5607
|
export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5472
|
-
export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5473
|
-
export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5474
5608
|
export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5475
5609
|
export declare const CartItemFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5476
5610
|
export declare const CategoryFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
@@ -5484,6 +5618,7 @@ export declare const FileUploadUrlFieldsFragmentDoc: import("graphql").DocumentN
|
|
|
5484
5618
|
export declare const FileUploadFieldsFragmentDoc: import("graphql").DocumentNode;
|
|
5485
5619
|
export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5486
5620
|
export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5621
|
+
export declare const ProductSellerFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5487
5622
|
export declare const TagFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
5488
5623
|
export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
|
|
5489
5624
|
export declare const PaginatedAttributesDocument: import("graphql").DocumentNode;
|