@plentymarkets/shop-api 0.152.2 → 0.153.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/lib/api/__tests__/__fixtures__/ApiChangeUserPasswordFixture.d.ts +1 -1
- package/lib/api/__tests__/__fixtures__/ApiChangeUserPasswordFixture.d.ts.map +1 -1
- package/lib/api/__tests__/__fixtures__/ApiInitFixture.d.ts +0 -3
- package/lib/api/__tests__/__fixtures__/ApiInitFixture.d.ts.map +1 -1
- package/lib/api/__tests__/__fixtures__/ApiRegisterUserFixture.d.ts +1 -1
- package/lib/api/__tests__/__fixtures__/ApiRegisterUserFixture.d.ts.map +1 -1
- package/lib/api/deleteCartItem/index.d.ts.map +1 -1
- package/lib/api/doAddCartItem/index.d.ts.map +1 -1
- package/lib/api/doPlaceOrder/index.d.ts.map +1 -1
- package/lib/api/getActiveShippingCountries/index.d.ts.map +1 -1
- package/lib/api/getCart/index.d.ts.map +1 -1
- package/lib/api/getCategoriesSearch/index.d.ts.map +1 -1
- package/lib/api/getCategoryTree/index.d.ts.map +1 -1
- package/lib/api/getInit/index.d.ts.map +1 -1
- package/lib/api/getOrder/index.d.ts.map +1 -1
- package/lib/api/getProduct/index.d.ts.map +1 -1
- package/lib/api/getReturns/index.d.ts.map +1 -1
- package/lib/api/getSearch/index.d.ts.map +1 -1
- package/lib/api/setCartItemQuantity/index.d.ts.map +1 -1
- package/lib/helpers/apiTransformations.helper.d.ts +33 -0
- package/lib/helpers/apiTransformations.helper.d.ts.map +1 -0
- package/lib/helpers/header.helper.d.ts.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.d.ts.map +1 -1
- package/lib/hooks/onRequest.d.ts.map +1 -1
- package/lib/index.cjs.js +280 -101
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +280 -101
- package/lib/index.es.js.map +1 -1
- package/lib/types/api/categoriesSearch.d.ts +1 -0
- package/lib/types/api/categoriesSearch.d.ts.map +1 -1
- package/lib/types/api/user.d.ts +0 -3
- package/lib/types/api/user.d.ts.map +1 -1
- package/package.json +2 -2
- package/server/api/__tests__/__fixtures__/ApiChangeUserPasswordFixture.d.ts +1 -1
- package/server/api/__tests__/__fixtures__/ApiChangeUserPasswordFixture.d.ts.map +1 -1
- package/server/api/__tests__/__fixtures__/ApiInitFixture.d.ts +0 -3
- package/server/api/__tests__/__fixtures__/ApiInitFixture.d.ts.map +1 -1
- package/server/api/__tests__/__fixtures__/ApiRegisterUserFixture.d.ts +1 -1
- package/server/api/__tests__/__fixtures__/ApiRegisterUserFixture.d.ts.map +1 -1
- package/server/api/deleteCartItem/index.d.ts.map +1 -1
- package/server/api/doAddCartItem/index.d.ts.map +1 -1
- package/server/api/doPlaceOrder/index.d.ts.map +1 -1
- package/server/api/getActiveShippingCountries/index.d.ts.map +1 -1
- package/server/api/getCart/index.d.ts.map +1 -1
- package/server/api/getCategoriesSearch/index.d.ts.map +1 -1
- package/server/api/getCategoryTree/index.d.ts.map +1 -1
- package/server/api/getInit/index.d.ts.map +1 -1
- package/server/api/getOrder/index.d.ts.map +1 -1
- package/server/api/getProduct/index.d.ts.map +1 -1
- package/server/api/getReturns/index.d.ts.map +1 -1
- package/server/api/getSearch/index.d.ts.map +1 -1
- package/server/api/setCartItemQuantity/index.d.ts.map +1 -1
- package/server/helpers/apiTransformations.helper.d.ts +33 -0
- package/server/helpers/apiTransformations.helper.d.ts.map +1 -0
- package/server/helpers/header.helper.d.ts.map +1 -1
- package/server/helpers/index.d.ts +1 -0
- package/server/helpers/index.d.ts.map +1 -1
- package/server/hooks/onRequest.d.ts.map +1 -1
- package/server/index.js +289 -105
- package/server/index.js.map +1 -1
- package/server/types/api/categoriesSearch.d.ts +1 -0
- package/server/types/api/categoriesSearch.d.ts.map +1 -1
- package/server/types/api/user.d.ts +0 -3
- package/server/types/api/user.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiChangeUserPasswordFixture.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/__fixtures__/ApiChangeUserPasswordFixture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiChangeUserPasswordFixture.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/__fixtures__/ApiChangeUserPasswordFixture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,eAAO,MAAM,4BAA4B,EAAE,kBAsI1C,CAAC"}
|
|
@@ -108,8 +108,6 @@ export declare const ApiInitFixture: {
|
|
|
108
108
|
timeForPaymentAllowedDays: null;
|
|
109
109
|
salesRepresentativeContactId: null;
|
|
110
110
|
anonymizeAt: null;
|
|
111
|
-
isLead: boolean;
|
|
112
|
-
leadStatusKey: string;
|
|
113
111
|
position_id: null;
|
|
114
112
|
plentyId: number;
|
|
115
113
|
email: string;
|
|
@@ -125,7 +123,6 @@ export declare const ApiInitFixture: {
|
|
|
125
123
|
contactPerson: string;
|
|
126
124
|
marketplacePartner: string;
|
|
127
125
|
fullName: string;
|
|
128
|
-
inLeadStatusSince: number;
|
|
129
126
|
options: {
|
|
130
127
|
id: number;
|
|
131
128
|
contactId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiInitFixture.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/__fixtures__/ApiInitFixture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiInitFixture.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/__fixtures__/ApiInitFixture.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6O1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRegisterUserFixture.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/__fixtures__/ApiRegisterUserFixture.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiRegisterUserFixture.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/__fixtures__/ApiRegisterUserFixture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAAE,kBAmIpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/deleteCartItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/deleteCartItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,+BAA+B,EACxC,QAAQ,oBAAoB,KAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAgBpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doAddCartItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doAddCartItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,GACxB,SAAS,+BAA+B,EACxC,QAAQ,eAAe,KACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAoCpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doPlaceOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doPlaceOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,+BAA+B,KACvC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAKrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getActiveShippingCountries/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getActiveShippingCountries/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,qBAAqB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAE3E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,+BAA+B,KACvC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAYvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getCart/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,IAAI,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getCart/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,IAAI,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,GAClB,SAAS,+BAA+B,KACvC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAWpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getCategoriesSearch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getCategoriesSearch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE7E,eAAO,MAAM,mBAAmB,GAC9B,SAAS,+BAA+B,EACxC,QAAQ,sBAAsB,KAC7B,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAoD5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getCategoryTree/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getCategoryTree/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,+BAA+B,KACvC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAgBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getInit/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,GAClB,SAAS,+BAA+B,KACvC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getInit/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,GAClB,SAAS,+BAA+B,KACvC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CA8B1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getOrder/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getOrder/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,GACnB,SAAS,+BAA+B,EACxC,QAAQ,iBAAiB,KACxB,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,CA4BrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getProduct/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getProduct/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAEL,OAAO,EACP,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAItE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,GACrB,SAAS,+BAA+B,EACxC,QAAQ,aAAa,KACpB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAuCvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getReturns/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getReturns/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,GACrB,SAAS,+BAA+B,EACxC,QAAQ,aAAa,KACpB,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAkBtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getSearch/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getSearch/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAGjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS,GACpB,SAAS,+BAA+B,EACxC,QAAQ,gBAAgB,KACvB,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAmEhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/setCartItemQuantity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/setCartItemQuantity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAGtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,SAAS,+BAA+B,EACxC,QAAQ,yBAAyB,KAChC,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,CAsCpC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CategoryTreeItem, CategoryTreeItemCount, ShippingCountryState, ShippingCountryName, ActiveShippingCountry, OrderItem, CategoryDetails, Category, client, FilterGroup, Facet } from '../types/api';
|
|
2
|
+
export declare const toStringId: (value: number | string | null | undefined) => string;
|
|
3
|
+
export declare const transformCategoryTreeItemCount: (count: CategoryTreeItemCount) => CategoryTreeItemCount;
|
|
4
|
+
export declare const transformCategoryTreeItem: (item: CategoryTreeItem) => CategoryTreeItem;
|
|
5
|
+
export declare const transformCountryState: (state: ShippingCountryState) => ShippingCountryState;
|
|
6
|
+
export declare const transformCountryName: (name: ShippingCountryName) => ShippingCountryName;
|
|
7
|
+
export declare const transformShippingCountry: (country: ActiveShippingCountry) => ActiveShippingCountry;
|
|
8
|
+
export declare const transformOrderItem: (item: OrderItem) => OrderItem;
|
|
9
|
+
type OrderReference = {
|
|
10
|
+
orderId: number | string;
|
|
11
|
+
originOrderId: number | string;
|
|
12
|
+
referenceOrderId: number | string;
|
|
13
|
+
};
|
|
14
|
+
export declare const transformOrderReference: (ref: OrderReference) => OrderReference;
|
|
15
|
+
type OrderResponse = {
|
|
16
|
+
order: {
|
|
17
|
+
locationId: number | string;
|
|
18
|
+
ownerId: number | string;
|
|
19
|
+
orderItems?: OrderItem[];
|
|
20
|
+
orderReferences?: OrderReference[];
|
|
21
|
+
};
|
|
22
|
+
variations?: Record<string, unknown>;
|
|
23
|
+
};
|
|
24
|
+
export declare const transformOrder: <T extends OrderResponse>(order: T) => T;
|
|
25
|
+
export declare const transformCategoryDetails: (details: CategoryDetails) => CategoryDetails;
|
|
26
|
+
export declare const transformCategoryClient: (c: client) => client;
|
|
27
|
+
export declare const transformCategory: (category: Category) => Category;
|
|
28
|
+
export declare const transformFilterGroup: (facet: FilterGroup) => FilterGroup;
|
|
29
|
+
export declare const transformSearchFacet: (facet: FilterGroup) => FilterGroup;
|
|
30
|
+
export declare const transformFacetResponse: (response: Facet) => Facet;
|
|
31
|
+
export declare const transformProductItem: (product: Record<string, unknown>) => Record<string, unknown>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=apiTransformations.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiTransformations.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/apiTransformations.helper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,SAAS,EACT,eAAe,EACf,QAAQ,EACR,MAAM,EACN,WAAW,EACX,KAAK,EACN,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,UAAU,GACrB,OAAO,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KACxC,MAIF,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACzC,OAAO,qBAAqB,KAC3B,qBAOD,CAAC;AAEH,eAAO,MAAM,yBAAyB,GACpC,MAAM,gBAAgB,KACrB,gBA8BF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,oBAAoB,KAC1B,oBAGD,CAAC;AAEH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,mBAAmB,KACxB,mBAGD,CAAC;AAEH,eAAO,MAAM,wBAAwB,GACnC,SAAS,qBAAqB,KAC7B,qBAID,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,KAAG,SAuBpD,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,KAAK,cAAc,KAClB,cAKD,CAAC;AAEH,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE;QACL,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;QACzB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;KACpC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,aAAa,EAAE,OAAO,CAAC,KAAG,CAgDlE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,SAAS,eAAe,KACvB,eAID,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,GAAG,MAAM,KAAG,MAGlD,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,UAAU,QAAQ,KAAG,QAIrD,CAAC;AA6BH,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,KAAG,WAEzD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,KAAG,WAEzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,UAAU,KAAK,KAAG,KAmCxD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC/B,MAAM,CAAC,MAAM,EAAE,OAAO,CAcxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/header.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"header.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/header.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,oBAAoB,UAAgI,CAAC;AAgBlK,eAAO,MAAM,oBAAoB,GAAI,OAAO,gBAAgB,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,MAAM,GAAG,MAAM,EA6C7G,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAExI,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAAM,GAAG,MAAM,EAElE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,gBAAgB,EAAE,UAAU,cAAc,KAAG,IA0BpF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,gBAAgB,EAAE,UAAU,aAAa,KAAG,QAK1F,CAAC"}
|
package/lib/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onRequest.d.ts","sourceRoot":"","sources":["../../src/hooks/onRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,eAAO,MAAM,gBAAgB,GAAI,SAAS,0BAA0B,EAAE,QAAQ,gBAAgB,KAAG,
|
|
1
|
+
{"version":3,"file":"onRequest.d.ts","sourceRoot":"","sources":["../../src/hooks/onRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAI7C,eAAO,MAAM,gBAAgB,GAAI,SAAS,0BAA0B,EAAE,QAAQ,gBAAgB,KAAG,0BA4ChG,CAAC"}
|