oneentry 1.0.19 → 1.0.21
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/README.md +288 -84
- package/dist/base/oneEntry.d.ts +5 -0
- package/dist/base/oneEntry.js +58 -0
- package/dist/base/oneEntry.js.map +1 -1
- package/dist/base/utils.d.ts +19 -1
- package/dist/forms/formsInterfaces.d.ts +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/pages/pagesApi.d.ts +15 -14
- package/dist/pages/pagesApi.js +14 -14
- package/dist/pages/pagesApi.js.map +1 -1
- package/dist/pages/pagesInterfaces.d.ts +11 -11
- package/dist/products/productsApi.d.ts +15 -15
- package/dist/products/productsApi.js +24 -59
- package/dist/products/productsApi.js.map +1 -1
- package/dist/products/productsInterfaces.d.ts +7 -8
- package/dist/templates/templatesInterfaces.d.ts +2 -2
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +2 -2
- package/package.json +1 -1
|
@@ -23,7 +23,6 @@ class ProductApi extends oneEntry_1.default {
|
|
|
23
23
|
conditionValue: null,
|
|
24
24
|
conditionMarker: null,
|
|
25
25
|
attributeMarker: null,
|
|
26
|
-
langCode: 'en_US',
|
|
27
26
|
sortOrder: 'DESC',
|
|
28
27
|
sortKey: 'id'
|
|
29
28
|
};
|
|
@@ -32,6 +31,7 @@ class ProductApi extends oneEntry_1.default {
|
|
|
32
31
|
/**
|
|
33
32
|
* Search for all product page objects with pagination and filtering.
|
|
34
33
|
*
|
|
34
|
+
* @param {string | Array<string>} [langCode] - Language code parameter. Default "en_US"
|
|
35
35
|
* @param {IProductsQuery} [userQuery] - Optional set query parameters.
|
|
36
36
|
* @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
|
|
37
37
|
*
|
|
@@ -53,16 +53,17 @@ class ProductApi extends oneEntry_1.default {
|
|
|
53
53
|
*
|
|
54
54
|
* @returns {Promise<IProductsEntity[]>} - List of products.
|
|
55
55
|
*/
|
|
56
|
-
getProducts(userQuery) {
|
|
56
|
+
getProducts(langCode = 'en_US', userQuery) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
const query = Object.assign(Object.assign({}, this._defaultQuery), userQuery);
|
|
59
|
-
const result = yield this.
|
|
60
|
-
return result
|
|
59
|
+
const result = yield this._fetchRequests(`?langCode=${this._LANGCODE_KEY}&` + this._queryParamsToString(query), langCode);
|
|
60
|
+
return result;
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Search for all product page objects with pagination that do not have a category.
|
|
65
65
|
*
|
|
66
|
+
* @param {string | Array<string>} [langCode] - Language code parameter. Default "en_US"
|
|
66
67
|
* @param {IProductsQuery} [userQuery] - Optional set query parameters.
|
|
67
68
|
* @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
|
|
68
69
|
*
|
|
@@ -76,18 +77,16 @@ class ProductApi extends oneEntry_1.default {
|
|
|
76
77
|
*
|
|
77
78
|
* @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
|
|
78
79
|
*
|
|
79
|
-
* @param {string} [userQuery.langCode] Language code parameter. Default "en_US"
|
|
80
|
-
*
|
|
81
80
|
* @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
|
|
82
81
|
*
|
|
83
82
|
* @param {string} [userQuery.sortKey] - Optional field to sort by
|
|
84
83
|
*
|
|
85
84
|
* @returns {Promise<IProductsEntity[]>} - Returns array of items, where item - ContentIndexedProductDto objects.
|
|
86
85
|
*/
|
|
87
|
-
getProductsEmptyPage(userQuery) {
|
|
86
|
+
getProductsEmptyPage(langCode = 'en_US', userQuery) {
|
|
88
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
88
|
const query = Object.assign(Object.assign({}, this._defaultQuery), userQuery);
|
|
90
|
-
const result = yield this.
|
|
89
|
+
const result = yield this._fetchRequests(`/empty-page?langCode=${this._LANGCODE_KEY}&` + this._queryParamsToString(query), langCode);
|
|
91
90
|
return result;
|
|
92
91
|
});
|
|
93
92
|
}
|
|
@@ -96,6 +95,8 @@ class ProductApi extends oneEntry_1.default {
|
|
|
96
95
|
*
|
|
97
96
|
* @param {number} [id] - Page identifier.
|
|
98
97
|
*
|
|
98
|
+
* @param {string | Array<string>} [langCode] - Language code parameter. Default "en_US"
|
|
99
|
+
*
|
|
99
100
|
* @param {IProductsQuery} [userQuery] - Optional set query parameters.
|
|
100
101
|
* @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
|
|
101
102
|
*
|
|
@@ -109,19 +110,17 @@ class ProductApi extends oneEntry_1.default {
|
|
|
109
110
|
*
|
|
110
111
|
* @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
|
|
111
112
|
*
|
|
112
|
-
* @param {string} [userQuery.langCode] Language code parameter. Default "en_US"
|
|
113
|
-
*
|
|
114
113
|
* @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
|
|
115
114
|
*
|
|
116
115
|
* @param {string} [userQuery.sortKey] - Optional field to sort by
|
|
117
116
|
*
|
|
118
117
|
* @returns {Promise<IProductsEntity[]>} - Returns array of items, where item - ContentIndexedProductDto objects.
|
|
119
118
|
*/
|
|
120
|
-
getProductsPageById(id, userQuery) {
|
|
119
|
+
getProductsPageById(id, langCode = 'en_US', userQuery) {
|
|
121
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
121
|
const query = Object.assign(Object.assign({}, this._defaultQuery), userQuery);
|
|
123
|
-
const result = yield this.
|
|
124
|
-
return result
|
|
122
|
+
const result = yield this._fetchRequests(`/page/${id}?langCode=${this._LANGCODE_KEY}&` + this._queryParamsToString(query), langCode);
|
|
123
|
+
return result;
|
|
125
124
|
});
|
|
126
125
|
}
|
|
127
126
|
/**
|
|
@@ -129,6 +128,8 @@ class ProductApi extends oneEntry_1.default {
|
|
|
129
128
|
*
|
|
130
129
|
* @param {string} [url] - URL of the category page.
|
|
131
130
|
*
|
|
131
|
+
* @param {string | Array<string>} [langCode] - Language code parameter. Default "en_US"
|
|
132
|
+
*
|
|
132
133
|
* @param {IProductsQuery} [userQuery] - Optional set query parameters.
|
|
133
134
|
* @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
|
|
134
135
|
*
|
|
@@ -144,17 +145,15 @@ class ProductApi extends oneEntry_1.default {
|
|
|
144
145
|
*
|
|
145
146
|
* @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
|
|
146
147
|
*
|
|
147
|
-
* @param {string} [userQuery.langCode] Language code parameter. Default "en_US"
|
|
148
|
-
*
|
|
149
148
|
* @param {string} [userQuery.sortKey] - Optional field to sort by
|
|
150
149
|
*
|
|
151
150
|
* @returns {Promise<IProductsEntity[]>} - Returns array of items, where item - ContentIndexedProductDto objects.
|
|
152
151
|
*/
|
|
153
|
-
getProductsPageByUrl(url, userQuery) {
|
|
152
|
+
getProductsPageByUrl(url, langCode = 'en_US', userQuery) {
|
|
154
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
154
|
const query = Object.assign(Object.assign({}, this._defaultQuery), userQuery);
|
|
156
|
-
const result = yield this.
|
|
157
|
-
return result
|
|
155
|
+
const result = yield this._fetchRequests(`/page/url/${url}?langCode=${this._LANGCODE_KEY}&` + this._queryParamsToString(query), langCode);
|
|
156
|
+
return result;
|
|
158
157
|
});
|
|
159
158
|
}
|
|
160
159
|
/**
|
|
@@ -162,6 +161,8 @@ class ProductApi extends oneEntry_1.default {
|
|
|
162
161
|
*
|
|
163
162
|
* @param {number} [id] - Product page identifier for which to find relationship.
|
|
164
163
|
*
|
|
164
|
+
* @param {string | Array<string>} [langCode] - Language code parameter. Default "en_US"
|
|
165
|
+
*
|
|
165
166
|
* @param {IProductsQuery} [userQuery] - Optional set query parameters.
|
|
166
167
|
* @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
|
|
167
168
|
*
|
|
@@ -169,17 +170,15 @@ class ProductApi extends oneEntry_1.default {
|
|
|
169
170
|
*
|
|
170
171
|
* @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
|
|
171
172
|
*
|
|
172
|
-
* @param {string} [userQuery.langCode] Language code parameter. Default "en_US"
|
|
173
|
-
*
|
|
174
173
|
* @param {string} [userQuery.sortKey] - Optional field to sort by
|
|
175
174
|
*
|
|
176
175
|
* @returns {Promise<IProductsEntity[]>} - Returns array of items, where item - ContentIndexedProductDto objects.
|
|
177
176
|
*/
|
|
178
|
-
getRelatedProductsById(id, userQuery) {
|
|
177
|
+
getRelatedProductsById(id, langCode = 'en_US', userQuery) {
|
|
179
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
179
|
const query = Object.assign(Object.assign({}, this._defaultQuery), userQuery);
|
|
181
|
-
const result = yield this.
|
|
182
|
-
return result
|
|
180
|
+
const result = yield this._fetchRequests(`/${id}/related?langCode=${this._LANGCODE_KEY}&` + this._queryParamsToString(query), langCode);
|
|
181
|
+
return result;
|
|
183
182
|
});
|
|
184
183
|
}
|
|
185
184
|
/**
|
|
@@ -193,21 +192,8 @@ class ProductApi extends oneEntry_1.default {
|
|
|
193
192
|
*/
|
|
194
193
|
getProductById(id, langCode = 'en_US') {
|
|
195
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const product = yield this._normalizeProductData(response, langCode);
|
|
199
|
-
return product;
|
|
200
|
-
}
|
|
201
|
-
else if (langCode.length === 1) {
|
|
202
|
-
const response = yield this._fetchGet(`/${id}?langCode=${langCode[0]}`);
|
|
203
|
-
const product = yield this._normalizeProductData(response, langCode[0]);
|
|
204
|
-
return product;
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
const response = yield this._fetchGet(`/${id}?langCode=${langCode[0]}`);
|
|
208
|
-
const product = yield this._normalizeProductData(response, langCode);
|
|
209
|
-
return product;
|
|
210
|
-
}
|
|
195
|
+
const result = yield this._fetchRequests(`/${id}?langCode=${this._LANGCODE_KEY}`, langCode);
|
|
196
|
+
return result;
|
|
211
197
|
});
|
|
212
198
|
}
|
|
213
199
|
/**
|
|
@@ -271,27 +257,6 @@ class ProductApi extends oneEntry_1.default {
|
|
|
271
257
|
return productsList;
|
|
272
258
|
});
|
|
273
259
|
}
|
|
274
|
-
_normalizeProductData(product, langSet) {
|
|
275
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
-
const normalizeProduct = Object.assign({}, product);
|
|
277
|
-
if (typeof langSet === 'string') {
|
|
278
|
-
normalizeProduct.attributeValues = product.attributeValues[langSet];
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
const attrs = [];
|
|
282
|
-
const id = product.id;
|
|
283
|
-
yield Promise.all(langSet.map((lang) => __awaiter(this, void 0, void 0, function* () {
|
|
284
|
-
yield this.getProductById(id, lang).then((result) => {
|
|
285
|
-
const attr = {};
|
|
286
|
-
attr[lang] = result.attributeValues;
|
|
287
|
-
attrs.push(attr);
|
|
288
|
-
});
|
|
289
|
-
})));
|
|
290
|
-
Object.assign(normalizeProduct.attributeValues, ...attrs);
|
|
291
|
-
}
|
|
292
|
-
return normalizeProduct;
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
260
|
}
|
|
296
261
|
exports.default = ProductApi;
|
|
297
262
|
//# sourceMappingURL=productsApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productsApi.js","sourceRoot":"","sources":["../../src/products/productsApi.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+CAAuC;
|
|
1
|
+
{"version":3,"file":"productsApi.js","sourceRoot":"","sources":["../../src/products/productsApi.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+CAAuC;AAGvC;;GAEG;AACH,MAAqB,UAAW,SAAQ,kBAAQ;IAC5C,YAAY,GAAU;QAClB,KAAK,CAAC,GAAG,CAAC,CAAA;QAIN,kBAAa,GAAkB;YACnC,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,EAAE;YACT,YAAY,EAAE,IAAI;YAClB,cAAc,EA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CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAC,IAAI,CAAC,CAAA;YACnG,OAAO,MAAM,CAAC,KAAK,CAAA;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACU,aAAa,CAAC,IAAW,EAAE,WAAkB,OAAO;;YAC7D,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,QAAQ,SAAS,IAAI,EAAE,CAAC,CAAA;YAC1F,MAAM,YAAY,GAA0B,EAAE,CAAA;YAI9C,MAAM,OAAO,CAAC,GAAG,CACb,cAAc,CAAC,GAAG,CAAC,CAAO,OAAsB,EAAE,EAAE;gBAChD,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;oBAClD,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;gBAC7B,CAAC,CAAC,CAAA;YACN,CAAC,CAAA,CAAC,CACL,CAAA;YACD,OAAO,YAAY,CAAA;QACvB,CAAC;KAAA;CACJ;AAxPD,6BAwPC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILocalizeInfos } from "../base/utils";
|
|
1
|
+
import { ILocalizeInfos, LangType } from "../base/utils";
|
|
2
2
|
/**
|
|
3
3
|
* Represents an interface object of Products Api.
|
|
4
4
|
*
|
|
@@ -19,12 +19,12 @@ import { ILocalizeInfos } from "../base/utils";
|
|
|
19
19
|
* @property {function} searchProduct - Quick search for product page objects with limited output.
|
|
20
20
|
*/
|
|
21
21
|
interface IProductApi {
|
|
22
|
-
getProducts(userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
23
|
-
getProductsEmptyPage(userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
24
|
-
getProductsPageById(id: number, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
25
|
-
getProductsPageByUrl(url: string, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
26
|
-
getRelatedProductsById(id: number, userQuery?: IProductsQuery): Promise<IProductsEntity>;
|
|
27
|
-
getProductById(id: number, langCode:
|
|
22
|
+
getProducts(langCode?: LangType, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
23
|
+
getProductsEmptyPage(langCode?: LangType, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
24
|
+
getProductsPageById(id: number, langCode?: LangType, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
25
|
+
getProductsPageByUrl(url: string, langCode?: LangType, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
26
|
+
getRelatedProductsById(id: number, langCode?: LangType, userQuery?: IProductsQuery): Promise<IProductsEntity>;
|
|
27
|
+
getProductById(id: number, langCode: LangType): Promise<IProductsEntity>;
|
|
28
28
|
filterProduct(data: Array<IFilterParams>, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
29
29
|
searchProduct(name: string, langCode: string): Promise<Array<IProductsEntity>>;
|
|
30
30
|
}
|
|
@@ -60,7 +60,6 @@ interface IProductsQuery {
|
|
|
60
60
|
conditionMarker?: 'in' | 'nin' | 'eq' | 'neq' | 'mth' | 'lth' | 'exs' | 'nexs' | null;
|
|
61
61
|
attributeMarker?: string | null;
|
|
62
62
|
sortOrder?: 'DESC' | 'ASC';
|
|
63
|
-
langCode?: string;
|
|
64
63
|
sortKey?: string;
|
|
65
64
|
[key: string]: string | number | null;
|
|
66
65
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ILocalizeInfos, Types } from "../base/utils";
|
|
2
2
|
import { IPosition } from "../admins/adminsInterfaces";
|
|
3
|
-
import {
|
|
3
|
+
import { IAttributeSetEntity } from "../base/utils";
|
|
4
4
|
/**
|
|
5
5
|
* Represents an interface object of Templates Api.
|
|
6
6
|
*
|
|
@@ -32,7 +32,7 @@ interface ITemplatesApi {
|
|
|
32
32
|
interface ITemplateEntity {
|
|
33
33
|
id: number;
|
|
34
34
|
identifier: string;
|
|
35
|
-
attributesValues:
|
|
35
|
+
attributesValues: IAttributeSetEntity;
|
|
36
36
|
attributeSetId: number;
|
|
37
37
|
isSync: boolean;
|
|
38
38
|
generalTypeName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ILocalizeInfos } from "../base/utils";
|
|
2
2
|
import { IPosition } from "../admins/adminsInterfaces";
|
|
3
|
-
import {
|
|
3
|
+
import { IAttributeSetEntity } from "../base/utils";
|
|
4
4
|
/**
|
|
5
5
|
* Represents an interface object of Templates Preview Api.
|
|
6
6
|
*
|
|
@@ -34,7 +34,7 @@ interface ITemplatesPreviewEntity {
|
|
|
34
34
|
updatedDate: string;
|
|
35
35
|
version: number;
|
|
36
36
|
identifier: string;
|
|
37
|
-
attributesSets:
|
|
37
|
+
attributesSets: IAttributeSetEntity;
|
|
38
38
|
attributeSetId: number;
|
|
39
39
|
localizeInfos: ILocalizeInfos;
|
|
40
40
|
position: IPosition;
|