@plentymarkets/shop-api 0.134.1 → 0.135.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/getInit/index.d.ts.map +1 -1
- package/lib/getters/productGetters.d.ts +4 -0
- package/lib/getters/productGetters.d.ts.map +1 -1
- package/lib/index.cjs.js +13 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +13 -2
- package/lib/index.es.js.map +1 -1
- package/lib/types/api/customer.d.ts +1 -1
- package/lib/types/api/customer.d.ts.map +1 -1
- package/lib/types/api/index.d.ts +1 -0
- package/lib/types/api/index.d.ts.map +1 -1
- package/lib/types/api/init.d.ts +2 -0
- package/lib/types/api/init.d.ts.map +1 -1
- package/lib/types/api/settings.d.ts +6 -0
- package/lib/types/api/settings.d.ts.map +1 -0
- package/package.json +4 -4
- package/server/api/getInit/index.d.ts.map +1 -1
- package/server/getters/productGetters.d.ts +4 -0
- package/server/getters/productGetters.d.ts.map +1 -1
- package/server/index.js +3 -0
- package/server/index.js.map +1 -1
- package/server/types/api/customer.d.ts +1 -1
- package/server/types/api/customer.d.ts.map +1 -1
- package/server/types/api/index.d.ts +1 -0
- package/server/types/api/index.d.ts.map +1 -1
- package/server/types/api/init.d.ts +2 -0
- package/server/types/api/init.d.ts.map +1 -1
- package/server/types/api/settings.d.ts +6 -0
- package/server/types/api/settings.d.ts.map +1 -0
|
@@ -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"}
|
|
@@ -9,6 +9,7 @@ declare function getImageWidth(product: Product): number;
|
|
|
9
9
|
declare function getImageHeight(product: Product): number;
|
|
10
10
|
declare function getCategoryUrlPath(product: Product, categories: CategoryTreeItem[]): string;
|
|
11
11
|
declare function getCoverImage(product: Product): string;
|
|
12
|
+
declare function getSecondCoverImage(product: Product): string;
|
|
12
13
|
declare function getCoverImagePreview(product: Product): string;
|
|
13
14
|
declare function getFullImage(product: Product): string;
|
|
14
15
|
declare function getMiddleImage(product: Product): string;
|
|
@@ -41,6 +42,7 @@ declare function getPropertyGroups(product: Product): VariationPropertyGroup[];
|
|
|
41
42
|
declare function getPropertyGroupById(id: number, product: Product): VariationPropertyGroup;
|
|
42
43
|
declare function getPropertyById(id: number, product: Product): VariationProperty;
|
|
43
44
|
declare function getVariationId(product: Product): number;
|
|
45
|
+
declare function getVariationNumber(product: Product): string;
|
|
44
46
|
declare function getSalableVariationCount(product: Product): number;
|
|
45
47
|
declare function getVariationAvailableUntil(product: Product): unknown;
|
|
46
48
|
declare function getWidthMM(product: Product): number;
|
|
@@ -73,6 +75,7 @@ export declare const productGetters: {
|
|
|
73
75
|
getImageWidth: typeof getImageWidth;
|
|
74
76
|
getImageHeight: typeof getImageHeight;
|
|
75
77
|
getCoverImage: typeof getCoverImage;
|
|
78
|
+
getSecondCoverImage: typeof getSecondCoverImage;
|
|
76
79
|
getCoverImagePreview: typeof getCoverImagePreview;
|
|
77
80
|
getAttributes: typeof getAttributes;
|
|
78
81
|
getTitle: typeof getTitle;
|
|
@@ -99,6 +102,7 @@ export declare const productGetters: {
|
|
|
99
102
|
getLengthMM: typeof getLengthMM;
|
|
100
103
|
getVariationAvailableUntil: typeof getVariationAvailableUntil;
|
|
101
104
|
getVariationId: typeof getVariationId;
|
|
105
|
+
getVariationNumber: typeof getVariationNumber;
|
|
102
106
|
getSalableVariationCount: typeof getSalableVariationCount;
|
|
103
107
|
getCrossedPrice: (product: Product) => number | null;
|
|
104
108
|
getSpecialOffer: (product: Product) => number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productGetters.d.ts","sourceRoot":"","sources":["../../src/getters/productGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKb,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EACV,gBAAgB,EAChB,OAAO,EAEP,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,OAAO,EACR,MAAM,UAAU,CAAC;AAWlB,iBAAS,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEzC;AAED,iBAAS,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEzC;AACD,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE5C;AAED,iBAAS,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEzD;AAED,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,EAAE,GAAG,EAAE,CAOvD;AAED,iBAAS,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE/C;AAED,iBAAS,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEhD;AAED,iBAAS,kBAAkB,CACzB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,gBAAgB,EAAE,GAC7B,MAAM,CAWR;AAED,iBAAS,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE/C;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ErD;AAED,iBAAS,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,CAEhD;AAED,iBAAS,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,CAIvD;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyE1B,CAAC"}
|
package/lib/index.cjs.js
CHANGED
|
@@ -1916,10 +1916,12 @@ const deleteCoupon = async (context, params) => {
|
|
|
1916
1916
|
const getInit = async (context) => {
|
|
1917
1917
|
const url = new URL('/rest/storefront/init', context.config.api.url);
|
|
1918
1918
|
url.searchParams.set('level', '5');
|
|
1919
|
+
url.searchParams.set('format', 'flat');
|
|
1919
1920
|
const { data: response } = await context.client.get(url.href);
|
|
1920
1921
|
const session = response.data.session;
|
|
1921
1922
|
const categories = response.data.categories;
|
|
1922
1923
|
const robots = response.data.robots;
|
|
1924
|
+
const settings = response.data.settings;
|
|
1923
1925
|
const cartItems = session.cartItems;
|
|
1924
1926
|
const cart = { ...session.cart, items: getMappedCartItems(cartItems) };
|
|
1925
1927
|
return {
|
|
@@ -1933,6 +1935,7 @@ const getInit = async (context) => {
|
|
|
1933
1935
|
},
|
|
1934
1936
|
categories,
|
|
1935
1937
|
robots,
|
|
1938
|
+
settings,
|
|
1936
1939
|
},
|
|
1937
1940
|
};
|
|
1938
1941
|
};
|
|
@@ -4031,10 +4034,13 @@ function getCategoryUrlPath(product, categories) {
|
|
|
4031
4034
|
return categoryTreeGetters.generateCategoryLink(categories, category, '');
|
|
4032
4035
|
}
|
|
4033
4036
|
function getCoverImage(product) {
|
|
4034
|
-
return productImageFilter(product)[0]
|
|
4037
|
+
return productImageFilter(product)?.[0]?.normal ?? '';
|
|
4038
|
+
}
|
|
4039
|
+
function getSecondCoverImage(product) {
|
|
4040
|
+
return productImageFilter(product)?.[1]?.normal ?? '';
|
|
4035
4041
|
}
|
|
4036
4042
|
function getCoverImagePreview(product) {
|
|
4037
|
-
return productImageFilter(product)[0]
|
|
4043
|
+
return productImageFilter(product)?.[0]?.small ?? '';
|
|
4038
4044
|
}
|
|
4039
4045
|
function getFullImage(product) {
|
|
4040
4046
|
return product.images?.variation?.[0]?.url || product.images.all[0].url || '';
|
|
@@ -4192,6 +4198,9 @@ function getPropertyById(id, product) {
|
|
|
4192
4198
|
function getVariationId$1(product) {
|
|
4193
4199
|
return product?.variation?.id || 0;
|
|
4194
4200
|
}
|
|
4201
|
+
function getVariationNumber(product) {
|
|
4202
|
+
return product?.variation?.number || '';
|
|
4203
|
+
}
|
|
4195
4204
|
function getSalableVariationCount(product) {
|
|
4196
4205
|
return product?.item?.salableVariationCount || 0;
|
|
4197
4206
|
}
|
|
@@ -4255,6 +4264,7 @@ const productGetters = {
|
|
|
4255
4264
|
getImageWidth: getImageWidth$1,
|
|
4256
4265
|
getImageHeight: getImageHeight$1,
|
|
4257
4266
|
getCoverImage,
|
|
4267
|
+
getSecondCoverImage,
|
|
4258
4268
|
getCoverImagePreview,
|
|
4259
4269
|
// getFiltered,
|
|
4260
4270
|
getAttributes: getAttributes$1,
|
|
@@ -4282,6 +4292,7 @@ const productGetters = {
|
|
|
4282
4292
|
getLengthMM,
|
|
4283
4293
|
getVariationAvailableUntil,
|
|
4284
4294
|
getVariationId: getVariationId$1,
|
|
4295
|
+
getVariationNumber,
|
|
4285
4296
|
getSalableVariationCount,
|
|
4286
4297
|
getCrossedPrice: productPriceGetters.getCrossedPrice,
|
|
4287
4298
|
getSpecialOffer: productPriceGetters.getSpecialOffer,
|
package/lib/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.es.js
CHANGED
|
@@ -1892,10 +1892,12 @@ const deleteCoupon = async (context, params) => {
|
|
|
1892
1892
|
const getInit = async (context) => {
|
|
1893
1893
|
const url = new URL('/rest/storefront/init', context.config.api.url);
|
|
1894
1894
|
url.searchParams.set('level', '5');
|
|
1895
|
+
url.searchParams.set('format', 'flat');
|
|
1895
1896
|
const { data: response } = await context.client.get(url.href);
|
|
1896
1897
|
const session = response.data.session;
|
|
1897
1898
|
const categories = response.data.categories;
|
|
1898
1899
|
const robots = response.data.robots;
|
|
1900
|
+
const settings = response.data.settings;
|
|
1899
1901
|
const cartItems = session.cartItems;
|
|
1900
1902
|
const cart = { ...session.cart, items: getMappedCartItems(cartItems) };
|
|
1901
1903
|
return {
|
|
@@ -1909,6 +1911,7 @@ const getInit = async (context) => {
|
|
|
1909
1911
|
},
|
|
1910
1912
|
categories,
|
|
1911
1913
|
robots,
|
|
1914
|
+
settings,
|
|
1912
1915
|
},
|
|
1913
1916
|
};
|
|
1914
1917
|
};
|
|
@@ -4007,10 +4010,13 @@ function getCategoryUrlPath(product, categories) {
|
|
|
4007
4010
|
return categoryTreeGetters.generateCategoryLink(categories, category, '');
|
|
4008
4011
|
}
|
|
4009
4012
|
function getCoverImage(product) {
|
|
4010
|
-
return productImageFilter(product)[0]
|
|
4013
|
+
return productImageFilter(product)?.[0]?.normal ?? '';
|
|
4014
|
+
}
|
|
4015
|
+
function getSecondCoverImage(product) {
|
|
4016
|
+
return productImageFilter(product)?.[1]?.normal ?? '';
|
|
4011
4017
|
}
|
|
4012
4018
|
function getCoverImagePreview(product) {
|
|
4013
|
-
return productImageFilter(product)[0]
|
|
4019
|
+
return productImageFilter(product)?.[0]?.small ?? '';
|
|
4014
4020
|
}
|
|
4015
4021
|
function getFullImage(product) {
|
|
4016
4022
|
return product.images?.variation?.[0]?.url || product.images.all[0].url || '';
|
|
@@ -4168,6 +4174,9 @@ function getPropertyById(id, product) {
|
|
|
4168
4174
|
function getVariationId$1(product) {
|
|
4169
4175
|
return product?.variation?.id || 0;
|
|
4170
4176
|
}
|
|
4177
|
+
function getVariationNumber(product) {
|
|
4178
|
+
return product?.variation?.number || '';
|
|
4179
|
+
}
|
|
4171
4180
|
function getSalableVariationCount(product) {
|
|
4172
4181
|
return product?.item?.salableVariationCount || 0;
|
|
4173
4182
|
}
|
|
@@ -4231,6 +4240,7 @@ const productGetters = {
|
|
|
4231
4240
|
getImageWidth: getImageWidth$1,
|
|
4232
4241
|
getImageHeight: getImageHeight$1,
|
|
4233
4242
|
getCoverImage,
|
|
4243
|
+
getSecondCoverImage,
|
|
4234
4244
|
getCoverImagePreview,
|
|
4235
4245
|
// getFiltered,
|
|
4236
4246
|
getAttributes: getAttributes$1,
|
|
@@ -4258,6 +4268,7 @@ const productGetters = {
|
|
|
4258
4268
|
getLengthMM,
|
|
4259
4269
|
getVariationAvailableUntil,
|
|
4260
4270
|
getVariationId: getVariationId$1,
|
|
4271
|
+
getVariationNumber,
|
|
4261
4272
|
getSalableVariationCount,
|
|
4262
4273
|
getCrossedPrice: productPriceGetters.getCrossedPrice,
|
|
4263
4274
|
getSpecialOffer: productPriceGetters.getSpecialOffer,
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RecaptchaPayload } from './recaptcha';
|
|
2
2
|
export interface CustomerContactEmailParams extends RecaptchaPayload {
|
|
3
|
+
subject: string;
|
|
3
4
|
email: string;
|
|
4
5
|
message: string;
|
|
5
6
|
username?: {
|
|
@@ -7,6 +8,5 @@ export interface CustomerContactEmailParams extends RecaptchaPayload {
|
|
|
7
8
|
};
|
|
8
9
|
name?: string;
|
|
9
10
|
orderId?: number;
|
|
10
|
-
subject?: string;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/types/api/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/types/api/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/lib/types/api/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
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.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SessionResult } from './session';
|
|
2
2
|
import { CategoryTreeItem } from './categoryTree';
|
|
3
3
|
import { RobotsStaticPages } from './robot';
|
|
4
|
+
import { Setting } from './settings';
|
|
4
5
|
export type InitResult = {
|
|
5
6
|
session: SessionResult;
|
|
6
7
|
categories: CategoryTreeItem[];
|
|
7
8
|
robots: RobotsStaticPages;
|
|
9
|
+
settings: Setting[];
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=init.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/types/api/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/types/api/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/api/settings.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;CACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plentymarkets/shop-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.135.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vue-storefront/middleware": "5.4.1",
|
|
32
|
-
"axios": "1.12.
|
|
32
|
+
"axios": "1.12.2",
|
|
33
33
|
"consola": "3.4.2",
|
|
34
34
|
"validator": "13.15.15"
|
|
35
35
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/validator": "^13.15.2",
|
|
40
40
|
"@vue-storefront/sdk": "1.5.0",
|
|
41
41
|
"jsdom": "17.0.0",
|
|
42
|
-
"typedoc": "0.28.
|
|
42
|
+
"typedoc": "0.28.13",
|
|
43
43
|
"typedoc-plugin-markdown": "4.8.1",
|
|
44
44
|
"typedoc-vitepress-theme": "1.1.2"
|
|
45
45
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"lib/**/*",
|
|
48
48
|
"server/**/*"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "a02860c9fcc3671b80b07a36b062b7f6b1608bcb"
|
|
51
51
|
}
|
|
@@ -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"}
|
|
@@ -9,6 +9,7 @@ declare function getImageWidth(product: Product): number;
|
|
|
9
9
|
declare function getImageHeight(product: Product): number;
|
|
10
10
|
declare function getCategoryUrlPath(product: Product, categories: CategoryTreeItem[]): string;
|
|
11
11
|
declare function getCoverImage(product: Product): string;
|
|
12
|
+
declare function getSecondCoverImage(product: Product): string;
|
|
12
13
|
declare function getCoverImagePreview(product: Product): string;
|
|
13
14
|
declare function getFullImage(product: Product): string;
|
|
14
15
|
declare function getMiddleImage(product: Product): string;
|
|
@@ -41,6 +42,7 @@ declare function getPropertyGroups(product: Product): VariationPropertyGroup[];
|
|
|
41
42
|
declare function getPropertyGroupById(id: number, product: Product): VariationPropertyGroup;
|
|
42
43
|
declare function getPropertyById(id: number, product: Product): VariationProperty;
|
|
43
44
|
declare function getVariationId(product: Product): number;
|
|
45
|
+
declare function getVariationNumber(product: Product): string;
|
|
44
46
|
declare function getSalableVariationCount(product: Product): number;
|
|
45
47
|
declare function getVariationAvailableUntil(product: Product): unknown;
|
|
46
48
|
declare function getWidthMM(product: Product): number;
|
|
@@ -73,6 +75,7 @@ export declare const productGetters: {
|
|
|
73
75
|
getImageWidth: typeof getImageWidth;
|
|
74
76
|
getImageHeight: typeof getImageHeight;
|
|
75
77
|
getCoverImage: typeof getCoverImage;
|
|
78
|
+
getSecondCoverImage: typeof getSecondCoverImage;
|
|
76
79
|
getCoverImagePreview: typeof getCoverImagePreview;
|
|
77
80
|
getAttributes: typeof getAttributes;
|
|
78
81
|
getTitle: typeof getTitle;
|
|
@@ -99,6 +102,7 @@ export declare const productGetters: {
|
|
|
99
102
|
getLengthMM: typeof getLengthMM;
|
|
100
103
|
getVariationAvailableUntil: typeof getVariationAvailableUntil;
|
|
101
104
|
getVariationId: typeof getVariationId;
|
|
105
|
+
getVariationNumber: typeof getVariationNumber;
|
|
102
106
|
getSalableVariationCount: typeof getSalableVariationCount;
|
|
103
107
|
getCrossedPrice: (product: Product) => number | null;
|
|
104
108
|
getSpecialOffer: (product: Product) => number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productGetters.d.ts","sourceRoot":"","sources":["../../src/getters/productGetters.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKb,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EACV,gBAAgB,EAChB,OAAO,EAEP,4BAA4B,EAC5B,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,OAAO,EACR,MAAM,UAAU,CAAC;AAWlB,iBAAS,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEzC;AAED,iBAAS,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEzC;AACD,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE5C;AAED,iBAAS,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEzD;AAED,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,EAAE,GAAG,EAAE,CAOvD;AAED,iBAAS,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE/C;AAED,iBAAS,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEhD;AAED,iBAAS,kBAAkB,CACzB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,gBA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,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,iBAAS,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAErD;AAED,iBAAS,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,CAEhD;AAED,iBAAS,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,CAIvD;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyE1B,CAAC"}
|
package/server/index.js
CHANGED
|
@@ -1904,10 +1904,12 @@ const deleteCoupon = async (context, params) => {
|
|
|
1904
1904
|
const getInit = async (context) => {
|
|
1905
1905
|
const url = new URL('/rest/storefront/init', context.config.api.url);
|
|
1906
1906
|
url.searchParams.set('level', '5');
|
|
1907
|
+
url.searchParams.set('format', 'flat');
|
|
1907
1908
|
const { data: response } = await context.client.get(url.href);
|
|
1908
1909
|
const session = response.data.session;
|
|
1909
1910
|
const categories = response.data.categories;
|
|
1910
1911
|
const robots = response.data.robots;
|
|
1912
|
+
const settings = response.data.settings;
|
|
1911
1913
|
const cartItems = session.cartItems;
|
|
1912
1914
|
const cart = { ...session.cart, items: getMappedCartItems(cartItems) };
|
|
1913
1915
|
return {
|
|
@@ -1921,6 +1923,7 @@ const getInit = async (context) => {
|
|
|
1921
1923
|
},
|
|
1922
1924
|
categories,
|
|
1923
1925
|
robots,
|
|
1926
|
+
settings,
|
|
1924
1927
|
},
|
|
1925
1928
|
};
|
|
1926
1929
|
};
|
package/server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RecaptchaPayload } from './recaptcha';
|
|
2
2
|
export interface CustomerContactEmailParams extends RecaptchaPayload {
|
|
3
|
+
subject: string;
|
|
3
4
|
email: string;
|
|
4
5
|
message: string;
|
|
5
6
|
username?: {
|
|
@@ -7,6 +8,5 @@ export interface CustomerContactEmailParams extends RecaptchaPayload {
|
|
|
7
8
|
};
|
|
8
9
|
name?: string;
|
|
9
10
|
orderId?: number;
|
|
10
|
-
subject?: string;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/types/api/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/types/api/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;A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AC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SessionResult } from './session';
|
|
2
2
|
import { CategoryTreeItem } from './categoryTree';
|
|
3
3
|
import { RobotsStaticPages } from './robot';
|
|
4
|
+
import { Setting } from './settings';
|
|
4
5
|
export type InitResult = {
|
|
5
6
|
session: SessionResult;
|
|
6
7
|
categories: CategoryTreeItem[];
|
|
7
8
|
robots: RobotsStaticPages;
|
|
9
|
+
settings: Setting[];
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=init.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/types/api/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/types/api/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/api/settings.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;CACjC,CAAC"}
|