@jetshop/core 6.3.1 → 6.3.2

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