@jetshop/core 5.13.0 → 5.13.1
Sign up to get free protection for your applications and to get access to all the features.
- package/analytics/trackerRegistry.js +3 -4
- package/analytics/trackerRegistry.js.map +1 -1
- package/components/Notifications/useNotification.d.ts +1 -1
- package/components/Notifications/useNotification.js.map +1 -1
- package/hooks/ProductList/list-transforms.d.ts +1 -0
- package/package.json +1 -1
- package/resolvers/filters/updateQueryString.d.ts +1 -1
- package/resolvers/filters/updateQueryString.js +4 -2
- package/resolvers/filters/updateQueryString.js.map +1 -1
- package/types.d.ts +78 -4
@@ -43,17 +43,16 @@ export function createServerTracker({ currency, useArticleNumberAsId, pixelId, t
|
|
43
43
|
trackCartCheckout(props, context, eventId) {
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
45
45
|
try {
|
46
|
-
|
46
|
+
yield fetch(`/_event?event=trackCartCheckout`, {
|
47
47
|
method: 'POST',
|
48
48
|
headers: {
|
49
49
|
'Content-Type': 'application/json'
|
50
50
|
},
|
51
51
|
body: JSON.stringify(Object.assign(Object.assign({}, defaults), { eventId, props: { cart: props.cart }, context, location: window.location.href }))
|
52
52
|
});
|
53
|
-
props.callback(response);
|
54
53
|
}
|
55
|
-
|
56
|
-
props.callback(
|
54
|
+
finally {
|
55
|
+
props.callback();
|
57
56
|
}
|
58
57
|
});
|
59
58
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trackerRegistry.js","sourceRoot":"","sources":["trackerRegistry.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,aAAa,MAAM,eAAe,CAAC;AAmI1C,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,eAAe;IACf,oBAAoB;CACrB,CAAC;AA4BF,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,KAAK,EAMN;IACC,MAAM,QAAQ,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ACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;iBAC9D;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,QAAQ,EAAE;gBACZ,OAAO;aACR;YAED,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;gBACxB,OAAO;aACR;YAED,IAAI,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe,CAAA,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE;gBACtE,OAAO;aACR;YAED,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC;YACnD,IAAI;gBACF,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;aAC3B;YAAC,OAAO,GAAG,EAAE;gBACZ,OAAO,CAAC,KAAK,CAAC,SAAS,OAAO,CAAC,IAAI,cAAc,EAAE;oBACjD,GAAG;oBACH,IAAI;iBACL,CAAC,CAAC;aACJ;QACH,CAAC;KACF,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
@@ -5,5 +5,5 @@ interface NotificationOptions {
|
|
5
5
|
type?: string;
|
6
6
|
autoCloseAfter?: number;
|
7
7
|
}
|
8
|
-
export declare function useNotification(): (
|
8
|
+
export declare function useNotification(): readonly [(content: NotificationContent, { id, type, autoCloseAfter }?: NotificationOptions) => void, (id?: string) => void];
|
9
9
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useNotification.js","sourceRoot":"","sources":["useNotification.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAiBvD,MAAM,UAAU,eAAe;IAC7B,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU,C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CAAC,IAAI,CAAC,CACP,CAAC;IAEF,MAAM,OAAO,GAAG,WAAW,CACzB,CAAC,EAAW,EAAE,EAAE;QACd,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;YAC1B,IAAI,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,EAAE,EAAE,CAAC,CAAC;SAC3C;aAAM;YACL,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACxB,IAAI,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC;SACvC;IACH,CAAC,EACD,CAAC,IAAI,CAAC,CACP,CAAC;IAEF,OAAO,CAAC,OAAO,EAAE,OAAO,CAAU,CAAC;AACrC,CAAC;AAED,uCAAuC;AACvC,mDAAmD"}
|
@@ -67,6 +67,7 @@ productQueryResult: ProductsQuery): {
|
|
67
67
|
inPackages?: Product[];
|
68
68
|
hasUpsell?: boolean;
|
69
69
|
familyMembers?: Product[];
|
70
|
+
history?: import("../../types").ProductHistory;
|
70
71
|
}[];
|
71
72
|
export declare function getVariantFromProductDetails(variant: Product['articleNumber'], product: Product): import("../../types").ProductVariant;
|
72
73
|
export declare function flattenList(list: NormalizedProductList): FlattenedProductListItem[];
|
package/package.json
CHANGED
@@ -9,4 +9,4 @@ import { ActiveFilters } from '.';
|
|
9
9
|
export declare function updateListFilterQueryString(activeFilters: ActiveFilters, history?: History): void;
|
10
10
|
export declare function updateBooleanQueryString(activeFilters: ActiveFilters, history?: History): void;
|
11
11
|
export declare function updateRangeQueryString(activeFilters: ActiveFilters, history?: History): void;
|
12
|
-
export declare function updateMultiListQueryString(activeFilters: ActiveFilters): void;
|
12
|
+
export declare function updateMultiListQueryString(activeFilters: ActiveFilters, history?: History): void;
|
@@ -88,8 +88,10 @@ export function updateRangeQueryString(activeFilters, history) {
|
|
88
88
|
routeType: 'filterChange'
|
89
89
|
});
|
90
90
|
}
|
91
|
-
export function updateMultiListQueryString(activeFilters) {
|
92
|
-
|
91
|
+
export function updateMultiListQueryString(activeFilters, history) {
|
92
|
+
if (history === undefined) {
|
93
|
+
history = createBrowserHistory();
|
94
|
+
}
|
93
95
|
const activeMultiFilters = activeFilters.multiListFilters;
|
94
96
|
let queryString = '';
|
95
97
|
if (activeMultiFilters.length === 0) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateQueryString.js","sourceRoot":"","sources":["updateQueryString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAW,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,aAA4B,EAC5B,OAAiB;IAEjB,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,OAAO,GAAG,oBAAoB,EAAE,CAAC;KAClC;IAED,MAAM,iBAAiB,GAAG,aAAa,CAAC,WAAW,CAAC;IACpD,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE;QAClC,gEAAgE;QAChE,WAAW,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;KAC5C;SAAM;QACL,MAAM,MAAM,GAIR,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACjB,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACnC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,WAAW,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE;YACjC,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;KACJ;
|
1
|
+
{"version":3,"file":"updateQueryString.js","sourceRoot":"","sources":["updateQueryString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAW,M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used.
|
232
232
|
*/
|
233
233
|
isDynamic: Scalars['Boolean'];
|
234
|
+
/**
|
235
|
+
* The category's dynamic filtersNB: Carries a performance cost, as asking for
|
236
|
+
* this will result in a separate API call in the backend.
|
237
|
+
*/
|
238
|
+
dynamicFiltering?: Maybe<Array<Maybe<CategoryDynamicFilter>>>;
|
234
239
|
/**
|
235
240
|
* Get content data set via the Content Editor.NB: Carries a performance cost, as
|
236
241
|
* asking for this will result in a separate API call in the backend.
|
@@ -258,6 +263,14 @@ export type CategoryAutoCompleteResult = {
|
|
258
263
|
result?: Maybe<Array<Maybe<Category>>>;
|
259
264
|
};
|
260
265
|
|
266
|
+
export type CategoryDynamicFilter = {
|
267
|
+
__typename?: 'CategoryDynamicFilter';
|
268
|
+
type?: Maybe<Scalars['String']>;
|
269
|
+
value?: Maybe<CategoryDynamicFilterValue>;
|
270
|
+
};
|
271
|
+
|
272
|
+
export type CategoryDynamicFilterValue = StringValue | ListStringValue | BoolValue;
|
273
|
+
|
261
274
|
export type CategoryImage = {
|
262
275
|
__typename?: 'CategoryImage';
|
263
276
|
width?: Maybe<Scalars['Int']>;
|
@@ -646,8 +659,8 @@ export type CustomerUpdateDeliveryAddressInput = {
|
|
646
659
|
};
|
647
660
|
|
648
661
|
export type CustomerUpdateExternalAttribute = {
|
649
|
-
name
|
650
|
-
value
|
662
|
+
name: Scalars['String'];
|
663
|
+
value: Scalars['String'];
|
651
664
|
};
|
652
665
|
|
653
666
|
export type CustomerUpdateInput = {
|
@@ -894,6 +907,11 @@ export type ListFilterItem = {
|
|
894
907
|
isActive?: Maybe<Scalars['Boolean']>;
|
895
908
|
};
|
896
909
|
|
910
|
+
export type ListStringValue = {
|
911
|
+
__typename?: 'ListStringValue';
|
912
|
+
value?: Maybe<Array<Maybe<Scalars['String']>>>;
|
913
|
+
};
|
914
|
+
|
897
915
|
export type LoginExternalCustomerInput = {
|
898
916
|
externalCustomerToken: Scalars['String'];
|
899
917
|
};
|
@@ -1070,6 +1088,22 @@ export type Mutation = {
|
|
1070
1088
|
* If the sign up is successful the customer may be considered to be logged on and an authentication token will be returned
|
1071
1089
|
*/
|
1072
1090
|
signUp?: Maybe<SignUpResponse>;
|
1091
|
+
/**
|
1092
|
+
* ## Description
|
1093
|
+
* This mutation's purpose is to update a existing customer's group using an
|
1094
|
+
* access code. An authorization token is needed in the request, in order to be
|
1095
|
+
* able to update the customer.
|
1096
|
+
* ## Error Codes
|
1097
|
+
* ### Unauthorized
|
1098
|
+
* Unauthorized
|
1099
|
+
* ### UnableToUpdateCustomer
|
1100
|
+
* Error in underlying API call, more info may be contained in the error message.
|
1101
|
+
* ### CustomerAlreadyUpdated
|
1102
|
+
* Customer already in the customer group
|
1103
|
+
* ### CustomerNotFound
|
1104
|
+
* No match on customer with access code
|
1105
|
+
*/
|
1106
|
+
updateCustomerGroup?: Maybe<UpdateCustomerGroupResult>;
|
1073
1107
|
/**
|
1074
1108
|
* This mutation's purpose is to update a existing customer's information. An
|
1075
1109
|
* authorization token is needed in the request, in order to be able to update the customer.
|
@@ -1209,6 +1243,11 @@ export type MutationSignUpArgs = {
|
|
1209
1243
|
};
|
1210
1244
|
|
1211
1245
|
|
1246
|
+
export type MutationUpdateCustomerGroupArgs = {
|
1247
|
+
customerGroupAccessCode: Scalars['String'];
|
1248
|
+
};
|
1249
|
+
|
1250
|
+
|
1212
1251
|
export type MutationUpdateCustomerArgs = {
|
1213
1252
|
input: CustomerUpdateInput;
|
1214
1253
|
};
|
@@ -1602,6 +1641,12 @@ export type Price = {
|
|
1602
1641
|
vat: Scalars['Decimal'];
|
1603
1642
|
};
|
1604
1643
|
|
1644
|
+
export type PriceHistory = {
|
1645
|
+
__typename?: 'PriceHistory';
|
1646
|
+
timestamp?: Maybe<Scalars['DateTime']>;
|
1647
|
+
price?: Maybe<Price>;
|
1648
|
+
};
|
1649
|
+
|
1605
1650
|
export type PrivateCustomer = Customer & {
|
1606
1651
|
__typename?: 'PrivateCustomer';
|
1607
1652
|
pid?: Maybe<Scalars['String']>;
|
@@ -1748,6 +1793,8 @@ export type Product = Document & {
|
|
1748
1793
|
* performance cost, as asking for this will result in a separate API call in the backend.
|
1749
1794
|
*/
|
1750
1795
|
familyMembers?: Maybe<Array<Product>>;
|
1796
|
+
/** Get Product History within the set number of days */
|
1797
|
+
history?: Maybe<ProductHistory>;
|
1751
1798
|
};
|
1752
1799
|
|
1753
1800
|
|
@@ -1776,6 +1823,11 @@ export type ProductPackageArgs = {
|
|
1776
1823
|
articleNumbers?: Maybe<Array<Maybe<PackagePriceInput>>>;
|
1777
1824
|
};
|
1778
1825
|
|
1826
|
+
|
1827
|
+
export type ProductHistoryArgs = {
|
1828
|
+
days?: Maybe<Scalars['Int']>;
|
1829
|
+
};
|
1830
|
+
|
1779
1831
|
export type ProductAutoCompleteResult = {
|
1780
1832
|
__typename?: 'ProductAutoCompleteResult';
|
1781
1833
|
result: Array<Maybe<Product>>;
|
@@ -1867,6 +1919,11 @@ export enum ProductCustomFieldType {
|
|
1867
1919
|
MultiLevelList = 'MULTI_LEVEL_LIST'
|
1868
1920
|
}
|
1869
1921
|
|
1922
|
+
export type ProductHistory = {
|
1923
|
+
__typename?: 'ProductHistory';
|
1924
|
+
previousPrice?: Maybe<Array<Maybe<PriceHistory>>>;
|
1925
|
+
};
|
1926
|
+
|
1870
1927
|
export type ProductImage = {
|
1871
1928
|
__typename?: 'ProductImage';
|
1872
1929
|
/** Alternate text for the image, commonly used for the alt attribute of img-tags. */
|
@@ -1951,6 +2008,8 @@ export type ProductVariant = {
|
|
1951
2008
|
warehouseStock?: Maybe<Array<Maybe<Warehouse>>>;
|
1952
2009
|
images?: Maybe<Array<Maybe<ProductImage>>>;
|
1953
2010
|
barcode?: Maybe<Scalars['String']>;
|
2011
|
+
/** Get Product History within the set number of days */
|
2012
|
+
history?: Maybe<ProductVariantHistory>;
|
1954
2013
|
};
|
1955
2014
|
|
1956
2015
|
|
@@ -1958,6 +2017,16 @@ export type ProductVariantWarehouseStockArgs = {
|
|
1958
2017
|
includeInactive?: Maybe<Scalars['Boolean']>;
|
1959
2018
|
};
|
1960
2019
|
|
2020
|
+
|
2021
|
+
export type ProductVariantHistoryArgs = {
|
2022
|
+
days?: Maybe<Scalars['Int']>;
|
2023
|
+
};
|
2024
|
+
|
2025
|
+
export type ProductVariantHistory = {
|
2026
|
+
__typename?: 'ProductVariantHistory';
|
2027
|
+
previousPrice?: Maybe<Array<Maybe<PriceHistory>>>;
|
2028
|
+
};
|
2029
|
+
|
1961
2030
|
export type ProductVariantOption = {
|
1962
2031
|
__typename?: 'ProductVariantOption';
|
1963
2032
|
name?: Maybe<Scalars['String']>;
|
@@ -2299,8 +2368,8 @@ export type SignUpDeliveryAddressInput = {
|
|
2299
2368
|
};
|
2300
2369
|
|
2301
2370
|
export type SignUpExternalAttribute = {
|
2302
|
-
name
|
2303
|
-
value
|
2371
|
+
name: Scalars['String'];
|
2372
|
+
value: Scalars['String'];
|
2304
2373
|
};
|
2305
2374
|
|
2306
2375
|
export type SignUpInput = {
|
@@ -2450,6 +2519,11 @@ export type UpdateCartMutation = {
|
|
2450
2519
|
cart?: Maybe<Cart>;
|
2451
2520
|
};
|
2452
2521
|
|
2522
|
+
export type UpdateCustomerGroupResult = {
|
2523
|
+
__typename?: 'UpdateCustomerGroupResult';
|
2524
|
+
success: Scalars['Boolean'];
|
2525
|
+
};
|
2526
|
+
|
2453
2527
|
export type UpdateCustomerPriceListResult = {
|
2454
2528
|
__typename?: 'UpdateCustomerPriceListResult';
|
2455
2529
|
success: Scalars['Boolean'];
|