@jetshop/core 6.3.2 → 6.3.3
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.
@@ -25,16 +25,16 @@ const StructuredProductData = ({ product, initialVariant, extraFields = {} }) =>
|
|
25
25
|
price: (_b = product.price) === null || _b === void 0 ? void 0 : _b.incVat,
|
26
26
|
url: url + ((_c = product.primaryRoute) === null || _c === void 0 ? void 0 : _c.path),
|
27
27
|
availability: (((_d = product.stockStatus) === null || _d === void 0 ? void 0 : _d.buyable)
|
28
|
-
? '
|
29
|
-
: '
|
28
|
+
? 'https://schema.org/InStock'
|
29
|
+
: 'https://schema.org/OutOfStock')
|
30
30
|
}
|
31
31
|
};
|
32
32
|
if (variant) {
|
33
33
|
baseProductData = Object.assign(Object.assign({}, baseProductData), { image: (variant === null || variant === void 0 ? void 0 : variant.images.length)
|
34
34
|
? variant.images.map((image) => image.url)
|
35
35
|
: baseProductData.image, sku: (variant === null || variant === void 0 ? void 0 : variant.articleNumber) || baseProductData.sku, mpn: (variant === null || variant === void 0 ? void 0 : variant.barcode) || (variant === null || variant === void 0 ? void 0 : variant.articleNumber), offers: Object.assign(Object.assign({}, baseProductData.offers), { price: (_e = variant === null || variant === void 0 ? void 0 : variant.price) === null || _e === void 0 ? void 0 : _e.incVat, availability: (((_f = variant.stockStatus) === null || _f === void 0 ? void 0 : _f.buyable)
|
36
|
-
? '
|
37
|
-
: '
|
36
|
+
? 'https://schema.org/InStock'
|
37
|
+
: 'https://schema.org/OutOfStock') }) });
|
38
38
|
}
|
39
39
|
const withInjectedProductData = Object.assign(Object.assign({}, baseProductData), extraFields);
|
40
40
|
return React.createElement(StructuredData, { json: withInjectedProductData });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StructuredProductData.js","sourceRoot":"","sources":["StructuredProductData.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,MAAM,mBAAmB,CAA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ACd,WAAuB,CAC5B,CAAC;IAEF,OAAO,oBAAC,cAAc,IAAC,IAAI,EAAE,uBAAuB,GAAI,CAAC;AAC3D,CAAC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
@@ -55,7 +55,7 @@ test('Render StructuredData with values from main product', () => {
|
|
55
55
|
} = JSON.parse(getByTestId('structured-data').textContent);
|
56
56
|
|
57
57
|
expect(name).toBe('Well this is an excellent product name');
|
58
|
-
expect(availability).toBe('
|
58
|
+
expect(availability).toBe('https://schema.org/InStock');
|
59
59
|
expect(price).toBe(9820);
|
60
60
|
expect(sku).toBe('060A');
|
61
61
|
// Since product is missing it's barcode.
|
@@ -76,7 +76,7 @@ test('Render StructuredData with values from pre selected variant', () => {
|
|
76
76
|
|
77
77
|
expect(image).toContain('/main/product/image/cuz/variant/is/missing/image');
|
78
78
|
expect(name).toBe('Well this is an excellent product name');
|
79
|
-
expect(availability).toBe('
|
79
|
+
expect(availability).toBe('https://schema.org/OutOfStock');
|
80
80
|
expect(price).toBe(21595);
|
81
81
|
expect(sku).toBe('060A-20');
|
82
82
|
// Since variant is missing it's barcode.
|
@@ -96,7 +96,7 @@ test('Render StructuredData with values from pre selected variant and weird opti
|
|
96
96
|
} = JSON.parse(getByTestId('structured-data').textContent);
|
97
97
|
|
98
98
|
expect(name).toBe('Well this is an excellent product name');
|
99
|
-
expect(availability).toBe('
|
99
|
+
expect(availability).toBe('https://schema.org/InStock');
|
100
100
|
expect(image).toEqual(['/single/variant/image/url']);
|
101
101
|
expect(mpn).toBe(`I'm a variant barcode yo`);
|
102
102
|
expect(sku).toBe('060A-40');
|
@@ -123,7 +123,7 @@ test('Render correct initialVariant values from URL', () => {
|
|
123
123
|
|
124
124
|
expect(name).toBe('Well this is an excellent product name');
|
125
125
|
expect(image).toEqual(['/single/variant/image/url']);
|
126
|
-
expect(availability).toBe('
|
126
|
+
expect(availability).toBe('https://schema.org/InStock');
|
127
127
|
expect(price).toBe(666);
|
128
128
|
expect(mpn).toBe(`I'm a variant barcode yo`);
|
129
129
|
expect(sku).toBe('060A-40');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetshop/core",
|
3
|
-
"version": "6.3.
|
3
|
+
"version": "6.3.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"**/*.js",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"main": "index.js",
|
16
16
|
"scripts": {
|
17
|
-
"build": "
|
17
|
+
"build": "tsc --noEmit false",
|
18
18
|
"build-dev": "rm -rf build && tsc --noEmit false --outDir build --module commonjs --target es2017",
|
19
19
|
"gen-types": "graphql codegen",
|
20
20
|
"test": "react-scripts test",
|
@@ -113,5 +113,5 @@
|
|
113
113
|
"react": "^18",
|
114
114
|
"react-dom": "^18"
|
115
115
|
},
|
116
|
-
"gitHead": "
|
116
|
+
"gitHead": "cddb48be4625b45e4d8bf9c3af95674ea5c8efba"
|
117
117
|
}
|
package/types.d.ts
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
export type Maybe<T> = T | null;
|
2
|
-
export type Exact<T extends { [key: string]: unknown }> = {
|
3
|
-
|
4
|
-
|
2
|
+
export type Exact<T extends { [key: string]: unknown }> = {
|
3
|
+
[K in keyof T]: T[K];
|
4
|
+
};
|
5
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
6
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
7
|
+
};
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
9
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
10
|
+
};
|
5
11
|
/** All built-in and custom scalars, mapped to their actual values */
|
6
12
|
export type Scalars = {
|
7
13
|
ID: string;
|
@@ -17,8 +23,6 @@ export type Scalars = {
|
|
17
23
|
Paging: any;
|
18
24
|
};
|
19
25
|
|
20
|
-
|
21
|
-
|
22
26
|
export type CustomStringField = CustomField & {
|
23
27
|
__typename?: 'CustomStringField';
|
24
28
|
value: Scalars['String'];
|
@@ -113,7 +117,6 @@ export type NumericRangeFilter = Filter & {
|
|
113
117
|
value?: Maybe<Array<Maybe<Scalars['Decimal']>>>;
|
114
118
|
};
|
115
119
|
|
116
|
-
|
117
120
|
export type BooleanFilter = Filter & {
|
118
121
|
__typename?: 'BooleanFilter';
|
119
122
|
default?: Maybe<Scalars['Boolean']>;
|
@@ -162,7 +165,6 @@ export type PrivateCustomer = Customer & {
|
|
162
165
|
googleUserId?: Maybe<Scalars['String']>;
|
163
166
|
};
|
164
167
|
|
165
|
-
|
166
168
|
export type PrivateCustomerOrderHeadersArgs = {
|
167
169
|
first?: Maybe<Scalars['Int']>;
|
168
170
|
offset?: Maybe<Scalars['Int']>;
|
@@ -231,7 +233,6 @@ export type OrderStatus = {
|
|
231
233
|
timestamp?: Maybe<Scalars['DateTime']>;
|
232
234
|
};
|
233
235
|
|
234
|
-
|
235
236
|
export type Price = {
|
236
237
|
__typename?: 'Price';
|
237
238
|
incVat: Scalars['Decimal'];
|
@@ -312,7 +313,6 @@ export type Customer = {
|
|
312
313
|
googleUserId?: Maybe<Scalars['String']>;
|
313
314
|
};
|
314
315
|
|
315
|
-
|
316
316
|
export type CustomerOrderHeadersArgs = {
|
317
317
|
first?: Maybe<Scalars['Int']>;
|
318
318
|
offset?: Maybe<Scalars['Int']>;
|
@@ -344,7 +344,6 @@ export type BusinessCustomer = Customer & {
|
|
344
344
|
googleUserId?: Maybe<Scalars['String']>;
|
345
345
|
};
|
346
346
|
|
347
|
-
|
348
347
|
export type BusinessCustomerOrderHeadersArgs = {
|
349
348
|
first?: Maybe<Scalars['Int']>;
|
350
349
|
offset?: Maybe<Scalars['Int']>;
|
@@ -398,106 +397,87 @@ export type Query = {
|
|
398
397
|
cart?: Maybe<Cart>;
|
399
398
|
};
|
400
399
|
|
401
|
-
|
402
400
|
export type QueryStoreArgs = {
|
403
401
|
id: Scalars['Int'];
|
404
402
|
};
|
405
403
|
|
406
|
-
|
407
404
|
export type QueryStoresArgs = {
|
408
405
|
includeInactive?: Scalars['Boolean'];
|
409
406
|
};
|
410
407
|
|
411
|
-
|
412
408
|
export type QueryStartPageArgs = {
|
413
409
|
id?: Maybe<Scalars['Int']>;
|
414
410
|
};
|
415
411
|
|
416
|
-
|
417
412
|
export type QuerySearchAutoCompleteArgs = {
|
418
413
|
term: Scalars['String'];
|
419
414
|
};
|
420
415
|
|
421
|
-
|
422
416
|
export type QuerySearchArgs = {
|
423
417
|
term: Scalars['String'];
|
424
418
|
};
|
425
419
|
|
426
|
-
|
427
420
|
export type QueryRouteArgs = {
|
428
421
|
path: Scalars['String'];
|
429
422
|
};
|
430
423
|
|
431
|
-
|
432
424
|
export type QueryProductArgs = {
|
433
425
|
articleNumber?: Maybe<Scalars['String']>;
|
434
426
|
id?: Maybe<Scalars['Int']>;
|
435
427
|
barcode?: Maybe<Scalars['String']>;
|
436
428
|
};
|
437
429
|
|
438
|
-
|
439
430
|
export type QueryProductsArgs = {
|
440
431
|
articleNumbers?: Maybe<Array<Maybe<Scalars['String']>>>;
|
441
432
|
ids?: Maybe<Array<Maybe<Scalars['Int']>>>;
|
442
433
|
barcodes?: Maybe<Array<Maybe<Scalars['String']>>>;
|
443
434
|
};
|
444
435
|
|
445
|
-
|
446
436
|
export type QueryPageArgs = {
|
447
437
|
id: Scalars['Int'];
|
448
438
|
};
|
449
439
|
|
450
|
-
|
451
440
|
export type QueryOrderArgs = {
|
452
441
|
id?: Maybe<Scalars['Int']>;
|
453
442
|
orderId?: Maybe<Scalars['ID']>;
|
454
443
|
};
|
455
444
|
|
456
|
-
|
457
445
|
export type QueryCustomerProductListArgs = {
|
458
446
|
id?: Maybe<Scalars['ID']>;
|
459
447
|
shareToken?: Maybe<Scalars['String']>;
|
460
448
|
};
|
461
449
|
|
462
|
-
|
463
450
|
export type QueryCustomerLookupArgs = {
|
464
451
|
phoneNumber?: Maybe<Scalars['String']>;
|
465
452
|
};
|
466
453
|
|
467
|
-
|
468
454
|
export type QueryExternalCustomerLookupArgs = {
|
469
455
|
key?: Maybe<Scalars['String']>;
|
470
456
|
};
|
471
457
|
|
472
|
-
|
473
458
|
export type QueryPersonLookupArgs = {
|
474
459
|
key: Scalars['String'];
|
475
460
|
};
|
476
461
|
|
477
|
-
|
478
462
|
export type QueryContentArgs = {
|
479
463
|
ids?: Maybe<Array<Maybe<Scalars['String']>>>;
|
480
464
|
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
481
465
|
};
|
482
466
|
|
483
|
-
|
484
467
|
export type QueryChannelArgs = {
|
485
468
|
id?: Maybe<Scalars['String']>;
|
486
469
|
};
|
487
470
|
|
488
|
-
|
489
471
|
export type QueryCategoriesArgs = {
|
490
472
|
root?: Maybe<Scalars['Int']>;
|
491
473
|
levels?: Maybe<Scalars['Int']>;
|
492
474
|
includeHidden?: Maybe<Scalars['Boolean']>;
|
493
475
|
};
|
494
476
|
|
495
|
-
|
496
477
|
export type QueryCategoryArgs = {
|
497
478
|
id: Scalars['ID'];
|
498
479
|
};
|
499
480
|
|
500
|
-
|
501
481
|
export type QueryCartArgs = {
|
502
482
|
id?: Maybe<Scalars['String']>;
|
503
483
|
};
|
@@ -645,33 +625,27 @@ export type Product = Document & {
|
|
645
625
|
history?: Maybe<ProductHistory>;
|
646
626
|
};
|
647
627
|
|
648
|
-
|
649
628
|
export type ProductCategoriesArgs = {
|
650
629
|
includeHidden?: Maybe<Scalars['Boolean']>;
|
651
630
|
};
|
652
631
|
|
653
|
-
|
654
632
|
export type ProductImagesArgs = {
|
655
633
|
includeVariantImages?: Maybe<Scalars['Boolean']>;
|
656
634
|
limit?: Maybe<Scalars['Int']>;
|
657
635
|
};
|
658
636
|
|
659
|
-
|
660
637
|
export type ProductWarehouseStockArgs = {
|
661
638
|
includeInactive?: Maybe<Scalars['Boolean']>;
|
662
639
|
};
|
663
640
|
|
664
|
-
|
665
641
|
export type ProductConfigurationPriceArgs = {
|
666
642
|
options?: Maybe<Array<ProductConfigurationPriceInput>>;
|
667
643
|
};
|
668
644
|
|
669
|
-
|
670
645
|
export type ProductPackageArgs = {
|
671
646
|
articleNumbers?: Maybe<Array<Maybe<PackagePriceInput>>>;
|
672
647
|
};
|
673
648
|
|
674
|
-
|
675
649
|
export type ProductHistoryArgs = {
|
676
650
|
days?: Maybe<Scalars['Int']>;
|
677
651
|
};
|
@@ -718,7 +692,6 @@ export type Category = Document & {
|
|
718
692
|
allowWebIndexing?: Maybe<Scalars['Boolean']>;
|
719
693
|
};
|
720
694
|
|
721
|
-
|
722
695
|
export type CategoryProductsArgs = {
|
723
696
|
first?: Maybe<Scalars['Paging']>;
|
724
697
|
offset?: Maybe<Scalars['Int']>;
|
@@ -750,7 +723,6 @@ export type PagedResult = {
|
|
750
723
|
result: Array<Maybe<Product>>;
|
751
724
|
};
|
752
725
|
|
753
|
-
|
754
726
|
export type PagedResultFiltersArgs = {
|
755
727
|
ids?: Maybe<Array<Maybe<Scalars['String']>>>;
|
756
728
|
};
|
@@ -778,7 +750,6 @@ export enum SortDirection {
|
|
778
750
|
Descending = 'DESCENDING'
|
779
751
|
}
|
780
752
|
|
781
|
-
|
782
753
|
export type FilterInput = {
|
783
754
|
listFilters?: Maybe<Array<Maybe<ListFilterInput>>>;
|
784
755
|
rangeFilters?: Maybe<Array<Maybe<RangeFilterInput>>>;
|
@@ -859,7 +830,10 @@ export type CategoryDynamicFilter = {
|
|
859
830
|
value?: Maybe<CategoryDynamicFilterValue>;
|
860
831
|
};
|
861
832
|
|
862
|
-
export type CategoryDynamicFilterValue =
|
833
|
+
export type CategoryDynamicFilterValue =
|
834
|
+
| StringValue
|
835
|
+
| ListStringValue
|
836
|
+
| BoolValue;
|
863
837
|
|
864
838
|
export type StringValue = {
|
865
839
|
__typename?: 'StringValue';
|
@@ -892,7 +866,6 @@ export type ContentItem = {
|
|
892
866
|
children?: Maybe<Array<Maybe<ContentItem>>>;
|
893
867
|
};
|
894
868
|
|
895
|
-
|
896
869
|
export type ContentItemPropertiesArgs = {
|
897
870
|
getImageAsImageValue?: Maybe<Scalars['Boolean']>;
|
898
871
|
};
|
@@ -910,7 +883,12 @@ export enum ContentPropertyValueType {
|
|
910
883
|
Scalar = 'SCALAR'
|
911
884
|
}
|
912
885
|
|
913
|
-
export type ContentItemPropertyValue =
|
886
|
+
export type ContentItemPropertyValue =
|
887
|
+
| StringValue
|
888
|
+
| ImageValue
|
889
|
+
| BoolValue
|
890
|
+
| Product
|
891
|
+
| Category;
|
914
892
|
|
915
893
|
export type ImageValue = {
|
916
894
|
__typename?: 'ImageValue';
|
@@ -972,12 +950,10 @@ export type ProductVariant = {
|
|
972
950
|
history?: Maybe<ProductVariantHistory>;
|
973
951
|
};
|
974
952
|
|
975
|
-
|
976
953
|
export type ProductVariantWarehouseStockArgs = {
|
977
954
|
includeInactive?: Maybe<Scalars['Boolean']>;
|
978
955
|
};
|
979
956
|
|
980
|
-
|
981
957
|
export type ProductVariantHistoryArgs = {
|
982
958
|
days?: Maybe<Scalars['Int']>;
|
983
959
|
};
|
@@ -1070,17 +1046,14 @@ export type RecommendedProducts = {
|
|
1070
1046
|
shuffledToplist?: Maybe<Array<Maybe<Product>>>;
|
1071
1047
|
};
|
1072
1048
|
|
1073
|
-
|
1074
1049
|
export type RecommendedProductsBoughtArgs = {
|
1075
1050
|
count?: Maybe<Scalars['Int']>;
|
1076
1051
|
};
|
1077
1052
|
|
1078
|
-
|
1079
1053
|
export type RecommendedProductsViewedArgs = {
|
1080
1054
|
count?: Maybe<Scalars['Int']>;
|
1081
1055
|
};
|
1082
1056
|
|
1083
|
-
|
1084
1057
|
export type RecommendedProductsShuffledToplistArgs = {
|
1085
1058
|
count?: Maybe<Scalars['Int']>;
|
1086
1059
|
};
|
@@ -1237,7 +1210,6 @@ export type SearchAutoCompleteResult = {
|
|
1237
1210
|
categories?: Maybe<CategoryAutoCompleteResult>;
|
1238
1211
|
};
|
1239
1212
|
|
1240
|
-
|
1241
1213
|
export type SearchAutoCompleteResultCategoriesArgs = {
|
1242
1214
|
first?: Maybe<Scalars['Paging']>;
|
1243
1215
|
};
|
@@ -1259,13 +1231,11 @@ export type SearchResult = {
|
|
1259
1231
|
categories?: Maybe<CategorySearchResult>;
|
1260
1232
|
};
|
1261
1233
|
|
1262
|
-
|
1263
1234
|
export type SearchResultProductsArgs = {
|
1264
1235
|
paging?: Maybe<PagingInput>;
|
1265
1236
|
filters?: Maybe<FilterInput>;
|
1266
1237
|
};
|
1267
1238
|
|
1268
|
-
|
1269
1239
|
export type SearchResultCategoriesArgs = {
|
1270
1240
|
paging?: Maybe<PagingInput>;
|
1271
1241
|
};
|
@@ -1319,7 +1289,6 @@ export type Page = Document & {
|
|
1319
1289
|
allowWebIndexing?: Maybe<Scalars['Boolean']>;
|
1320
1290
|
};
|
1321
1291
|
|
1322
|
-
|
1323
1292
|
export type PageSubPagesArgs = {
|
1324
1293
|
includeHidden?: Maybe<Scalars['Boolean']>;
|
1325
1294
|
};
|
@@ -1349,7 +1318,6 @@ export type Order = {
|
|
1349
1318
|
orderComments?: Maybe<Array<Maybe<OrderComment>>>;
|
1350
1319
|
};
|
1351
1320
|
|
1352
|
-
|
1353
1321
|
export type OrderItemsArgs = {
|
1354
1322
|
first?: Maybe<Scalars['Int']>;
|
1355
1323
|
offset?: Maybe<Scalars['Int']>;
|
@@ -1488,7 +1456,6 @@ export type CustomerLoyalty = {
|
|
1488
1456
|
bonusPoints?: Maybe<CustomerLoyaltyBonusPoints>;
|
1489
1457
|
};
|
1490
1458
|
|
1491
|
-
|
1492
1459
|
export type CustomerLoyaltyDiscountsArgs = {
|
1493
1460
|
includeRedeemed?: Scalars['Boolean'];
|
1494
1461
|
};
|
@@ -2005,65 +1972,53 @@ export type Mutation = {
|
|
2005
1972
|
clearMultiListFilterList?: Maybe<MultiListFilter>;
|
2006
1973
|
};
|
2007
1974
|
|
2008
|
-
|
2009
1975
|
export type MutationSubscribeToStockNotificationsArgs = {
|
2010
1976
|
email: Scalars['String'];
|
2011
1977
|
articleNumber: Scalars['String'];
|
2012
1978
|
};
|
2013
1979
|
|
2014
|
-
|
2015
1980
|
export type MutationSubscribeToNewsletterArgs = {
|
2016
1981
|
email: Scalars['String'];
|
2017
1982
|
};
|
2018
1983
|
|
2019
|
-
|
2020
1984
|
export type MutationAddToCustomerProductListArgs = {
|
2021
1985
|
id?: Maybe<Scalars['ID']>;
|
2022
1986
|
items: Array<AddToCustomerProductListInput>;
|
2023
1987
|
};
|
2024
1988
|
|
2025
|
-
|
2026
1989
|
export type MutationCreateCustomerProductListArgs = {
|
2027
1990
|
input: CreateCustomerProductListInput;
|
2028
1991
|
};
|
2029
1992
|
|
2030
|
-
|
2031
1993
|
export type MutationDeleteCustomerProductListArgs = {
|
2032
1994
|
id: Scalars['ID'];
|
2033
1995
|
};
|
2034
1996
|
|
2035
|
-
|
2036
1997
|
export type MutationRemoveFromCustomerProductListArgs = {
|
2037
1998
|
id?: Maybe<Scalars['ID']>;
|
2038
1999
|
articleNumbers?: Maybe<Array<Scalars['String']>>;
|
2039
2000
|
};
|
2040
2001
|
|
2041
|
-
|
2042
2002
|
export type MutationUpdateCustomerProductListItemArgs = {
|
2043
2003
|
input: UpdateCustomerProductListItemInput;
|
2044
2004
|
};
|
2045
2005
|
|
2046
|
-
|
2047
2006
|
export type MutationUpdateCustomerProductListArgs = {
|
2048
2007
|
input: UpdateCustomerProductListInput;
|
2049
2008
|
};
|
2050
2009
|
|
2051
|
-
|
2052
2010
|
export type MutationActivateExternalCustomerByIdArgs = {
|
2053
2011
|
input?: Maybe<ActivateExternalCustomerByIdInput>;
|
2054
2012
|
};
|
2055
2013
|
|
2056
|
-
|
2057
2014
|
export type MutationActivateExternalCustomerByTokenArgs = {
|
2058
2015
|
input?: Maybe<ActivateExternalCustomerByTokenInput>;
|
2059
2016
|
};
|
2060
2017
|
|
2061
|
-
|
2062
2018
|
export type MutationLoginExternalCustomerArgs = {
|
2063
2019
|
input?: Maybe<LoginExternalCustomerInput>;
|
2064
2020
|
};
|
2065
2021
|
|
2066
|
-
|
2067
2022
|
export type MutationLoginArgs = {
|
2068
2023
|
password?: Maybe<Scalars['String']>;
|
2069
2024
|
email?: Maybe<Scalars['String']>;
|
@@ -2076,132 +2031,108 @@ export type MutationLoginArgs = {
|
|
2076
2031
|
cartId?: Maybe<Scalars['String']>;
|
2077
2032
|
};
|
2078
2033
|
|
2079
|
-
|
2080
2034
|
export type MutationRequestPasswordResetArgs = {
|
2081
2035
|
email: Scalars['String'];
|
2082
2036
|
};
|
2083
2037
|
|
2084
|
-
|
2085
2038
|
export type MutationResetPasswordArgs = {
|
2086
2039
|
resetPasswordToken: Scalars['String'];
|
2087
2040
|
newPassword: Scalars['String'];
|
2088
2041
|
};
|
2089
2042
|
|
2090
|
-
|
2091
2043
|
export type MutationSignUpArgs = {
|
2092
2044
|
input: SignUpInput;
|
2093
2045
|
};
|
2094
2046
|
|
2095
|
-
|
2096
2047
|
export type MutationUpdateCustomerGroupArgs = {
|
2097
2048
|
customerGroupAccessCode: Scalars['String'];
|
2098
2049
|
};
|
2099
2050
|
|
2100
|
-
|
2101
2051
|
export type MutationUpdateCustomerArgs = {
|
2102
2052
|
input: CustomerUpdateInput;
|
2103
2053
|
};
|
2104
2054
|
|
2105
|
-
|
2106
2055
|
export type MutationUpdateCustomerPriceListArgs = {
|
2107
2056
|
priceListAccessCode: Scalars['String'];
|
2108
2057
|
};
|
2109
2058
|
|
2110
|
-
|
2111
2059
|
export type MutationUpdatePasswordArgs = {
|
2112
2060
|
oldPassword: Scalars['String'];
|
2113
2061
|
newPassword: Scalars['String'];
|
2114
2062
|
};
|
2115
2063
|
|
2116
|
-
|
2117
2064
|
export type MutationAddMultipleToCartArgs = {
|
2118
2065
|
cartId?: Maybe<Scalars['String']>;
|
2119
2066
|
items: Array<Maybe<AddMultipleToCartInput>>;
|
2120
2067
|
};
|
2121
2068
|
|
2122
|
-
|
2123
2069
|
export type MutationAddToCartArgs = {
|
2124
2070
|
input: AddToCartInput;
|
2125
2071
|
};
|
2126
2072
|
|
2127
|
-
|
2128
2073
|
export type MutationDecrementItemQuantityArgs = {
|
2129
2074
|
input: ChangeByOneItemQuantityInput;
|
2130
2075
|
};
|
2131
2076
|
|
2132
|
-
|
2133
2077
|
export type MutationSetItemQuantityArgs = {
|
2134
2078
|
input: SetItemQuantityInput;
|
2135
2079
|
};
|
2136
2080
|
|
2137
|
-
|
2138
2081
|
export type MutationIncrementItemQuantityArgs = {
|
2139
2082
|
input: ChangeByOneItemQuantityInput;
|
2140
2083
|
};
|
2141
2084
|
|
2142
|
-
|
2143
2085
|
export type MutationRemoveFromCartArgs = {
|
2144
2086
|
input: RemoveFromCartInput;
|
2145
2087
|
};
|
2146
2088
|
|
2147
|
-
|
2148
2089
|
export type MutationRemoveMultipleFromCartArgs = {
|
2149
2090
|
input: RemoveMultipleFromCartInput;
|
2150
2091
|
};
|
2151
2092
|
|
2152
|
-
|
2153
2093
|
export type MutationUpdateCartArgs = {
|
2154
2094
|
input: UpdateCartInput;
|
2155
2095
|
};
|
2156
2096
|
|
2157
|
-
|
2158
2097
|
export type MutationToggleListFilterItemArgs = {
|
2159
2098
|
value: Scalars['String'];
|
2160
2099
|
parentId: Scalars['String'];
|
2161
2100
|
set?: Maybe<Scalars['Boolean']>;
|
2162
2101
|
};
|
2163
2102
|
|
2164
|
-
|
2165
2103
|
export type MutationClearListFilterArgs = {
|
2166
2104
|
id: Scalars['String'];
|
2167
2105
|
};
|
2168
2106
|
|
2169
|
-
|
2170
2107
|
export type MutationSetBoolFilterArgs = {
|
2171
2108
|
value: Scalars['Boolean'];
|
2172
2109
|
id: Scalars['String'];
|
2173
2110
|
};
|
2174
2111
|
|
2175
|
-
|
2176
2112
|
export type MutationSetRangeFilterArgs = {
|
2177
2113
|
value: Array<Scalars['Decimal']>;
|
2178
2114
|
id: Scalars['String'];
|
2179
2115
|
};
|
2180
2116
|
|
2181
|
-
|
2182
2117
|
export type MutationClearRangeFilterArgs = {
|
2183
2118
|
id: Scalars['String'];
|
2184
2119
|
};
|
2185
2120
|
|
2186
|
-
|
2187
2121
|
export type MutationToggleMultiListFilterItemArgs = {
|
2188
2122
|
value: Scalars['String'];
|
2189
2123
|
listIndex: Scalars['Int'];
|
2190
2124
|
filter: MultiListFilter;
|
2191
2125
|
};
|
2192
2126
|
|
2193
|
-
|
2194
2127
|
export type MutationSetMultiListFilterArgs = {
|
2195
2128
|
values?: Maybe<Array<Scalars['String']>>;
|
2196
2129
|
id: Scalars['String'];
|
2197
2130
|
};
|
2198
2131
|
|
2199
|
-
|
2200
2132
|
export type MutationClearMultiListFilterArgs = {
|
2201
2133
|
id: Scalars['String'];
|
2202
2134
|
};
|
2203
2135
|
|
2204
|
-
|
2205
2136
|
export type MutationClearMultiListFilterListArgs = {
|
2206
2137
|
listIndex: Scalars['Int'];
|
2207
2138
|
filter: MultiListFilter;
|