oneentry 1.0.83 → 1.0.84
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 +7 -2
- package/dist/auth-provider/authProvidersInterfaces.d.ts +1 -1
- package/dist/payments/paymentsInterfaces.d.ts +1 -1
- package/dist/products/productsApi.d.ts +2 -2
- package/dist/products/productsInterfaces.d.ts +7 -11
- package/dist/users/usersApi.d.ts +1 -1
- package/dist/users/usersApi.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -468,7 +468,7 @@ Example return:
|
|
|
468
468
|
],
|
|
469
469
|
"notificationData": {
|
|
470
470
|
"email": "test@test.com",
|
|
471
|
-
"phonePush": "",
|
|
471
|
+
"phonePush": ["+999999999"],
|
|
472
472
|
"phoneSMS": "+9999999999"
|
|
473
473
|
},
|
|
474
474
|
"systemCode": {
|
|
@@ -3749,6 +3749,7 @@ Example return:
|
|
|
3749
3749
|
"attributeSetIdentifier": "products",
|
|
3750
3750
|
"position": 1,
|
|
3751
3751
|
"templateIdentifier": null,
|
|
3752
|
+
"isPositionLocked": false,
|
|
3752
3753
|
"shortDescTemplateIdentifier": null,
|
|
3753
3754
|
"price": 150,
|
|
3754
3755
|
"additional": {
|
|
@@ -3879,6 +3880,7 @@ Example return:
|
|
|
3879
3880
|
"attributeSetIdentifier": "products",
|
|
3880
3881
|
"position": 1,
|
|
3881
3882
|
"templateIdentifier": null,
|
|
3883
|
+
"isPositionLocked": false,
|
|
3882
3884
|
"shortDescTemplateIdentifier": null,
|
|
3883
3885
|
"price": 150,
|
|
3884
3886
|
"additional": {
|
|
@@ -4031,6 +4033,7 @@ Example return:
|
|
|
4031
4033
|
"attributeSetIdentifier": "products",
|
|
4032
4034
|
"position": 3,
|
|
4033
4035
|
"templateIdentifier": null,
|
|
4036
|
+
"isPositionLocked": false,
|
|
4034
4037
|
"shortDescTemplateIdentifier": null,
|
|
4035
4038
|
"price": 148,
|
|
4036
4039
|
"additional": {
|
|
@@ -4348,6 +4351,7 @@ Example return:
|
|
|
4348
4351
|
"attributeSetIdentifier": "products",
|
|
4349
4352
|
"position": 3,
|
|
4350
4353
|
"templateIdentifier": null,
|
|
4354
|
+
"isPositionLocked": false,
|
|
4351
4355
|
"shortDescTemplateIdentifier": null,
|
|
4352
4356
|
"price": 148,
|
|
4353
4357
|
"additional": {
|
|
@@ -4709,6 +4713,7 @@ Example return:
|
|
|
4709
4713
|
"attributeSetIdentifier": "products",
|
|
4710
4714
|
"position": 1,
|
|
4711
4715
|
"templateIdentifier": null,
|
|
4716
|
+
"isPositionLocked": false,
|
|
4712
4717
|
"shortDescTemplateIdentifier": null,
|
|
4713
4718
|
"price": 150,
|
|
4714
4719
|
"additional": {
|
|
@@ -5485,7 +5490,7 @@ const data = {
|
|
|
5485
5490
|
],
|
|
5486
5491
|
"notificationData": {
|
|
5487
5492
|
"email": "example@oneentry.cloud",
|
|
5488
|
-
"phonePush": "",
|
|
5493
|
+
"phonePush": ["+99999999999"],
|
|
5489
5494
|
"phoneSMS": "+99999999999"
|
|
5490
5495
|
}
|
|
5491
5496
|
}
|
|
@@ -86,7 +86,7 @@ interface IConnectedEntity {
|
|
|
86
86
|
* @property {number} id - Object identifier.
|
|
87
87
|
* @property {string} identifier - Text identifier for the recording field.
|
|
88
88
|
* @property {Record<string, any>} localizeInfos - Json description of the payment account object.
|
|
89
|
-
* @property {
|
|
89
|
+
* @property {'stripe' | 'custom'} type - Type may be 'stripe' or 'custom'.
|
|
90
90
|
* @property {boolean} isVisible - Visibility indicator of the payment account.
|
|
91
91
|
*/
|
|
92
92
|
interface IAccountsEntity {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IProductsQuery, IFilterParams, IProductApi, IProductsEntity, IProductInfo, IProductBlock } from './productsInterfaces';
|
|
1
|
+
import { IProductsQuery, IFilterParams, IProductApi, IProductsEntity, IProductInfo, IProductBlock, IProductEntity } from './productsInterfaces';
|
|
2
2
|
import AsyncModules from '../base/asyncModules';
|
|
3
3
|
import StateModule from "../base/stateModule";
|
|
4
4
|
/**
|
|
@@ -222,7 +222,7 @@ export default class ProductApi extends AsyncModules implements IProductApi {
|
|
|
222
222
|
*
|
|
223
223
|
* @returns ProductEntity object.
|
|
224
224
|
*/
|
|
225
|
-
getProductById(id: number, langCode?: string): Promise<
|
|
225
|
+
getProductById(id: number, langCode?: string): Promise<IProductEntity>;
|
|
226
226
|
/**
|
|
227
227
|
* Getting a product block object by product id.
|
|
228
228
|
* @param {number} id - Product id
|
|
@@ -3,21 +3,13 @@ import { LangType, Types } from "../base/utils";
|
|
|
3
3
|
* Represents an interface object of Products Api.
|
|
4
4
|
*
|
|
5
5
|
* @property {function} getProducts - Search for all product page objects with pagination and filtering.
|
|
6
|
-
*
|
|
7
6
|
* @property {function} getProductsEmptyPage - Search for all product page objects with pagination that do not have a category.
|
|
8
|
-
*
|
|
9
7
|
* @property {function} getProductsByPageId - Search for all products with pagination for the selected category.
|
|
10
|
-
*
|
|
11
8
|
* @property {function} getProductsPriceByPageUrl - Search for information about products and prices for the selected category.
|
|
12
|
-
*
|
|
13
9
|
* @property {function} getProductsByPageUrl - Search for all products with pagination for the selected category.
|
|
14
|
-
*
|
|
15
10
|
* @property {function} getRelatedProductsById - Find all related product page objects.
|
|
16
|
-
*
|
|
17
11
|
* @property {function} getProductById - Retrieve one product object.
|
|
18
|
-
*
|
|
19
12
|
* @property {function} getProductBlockById - Getting a product block object by product id.
|
|
20
|
-
*
|
|
21
13
|
* @property {function} searchProduct - Quick search for product page objects with limited output.
|
|
22
14
|
*/
|
|
23
15
|
interface IProductApi {
|
|
@@ -27,7 +19,7 @@ interface IProductApi {
|
|
|
27
19
|
getProductsPriceByPageUrl(url: string, langCode?: string, userQuery?: IProductsQuery): Promise<Array<IProductInfo>>;
|
|
28
20
|
getProductsByPageUrl(url: string, body?: Array<IFilterParams>, langCode?: string, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
29
21
|
getRelatedProductsById(id: number, langCode?: string, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
30
|
-
getProductById(id: number, langCode: string): Promise<
|
|
22
|
+
getProductById(id: number, langCode: string): Promise<IProductEntity>;
|
|
31
23
|
getProductBlockById(id: number): Promise<Array<IProductBlock>>;
|
|
32
24
|
searchProduct(name: string, langCode: string): Promise<Array<IProductsEntity>>;
|
|
33
25
|
}
|
|
@@ -99,6 +91,7 @@ interface IFilterParams {
|
|
|
99
91
|
* @property {object} additional - Additional value from the index.
|
|
100
92
|
* @property {Record<string, any>} localizeInfos - The name of the products, taking into account localization.
|
|
101
93
|
* @property {boolean} isVisible - A sign of page visibility.
|
|
94
|
+
* @property {boolean} [isPositionLocked] - Sorting position lock indicator (optional).
|
|
102
95
|
* @property {number | null} statusIdentifier - Product page status identifiers (may be null).
|
|
103
96
|
* @property {Array<number>} relatedIds - Ids of related product pages.
|
|
104
97
|
* @property {string} attributeSetIdentifier - Set of attributes id.
|
|
@@ -117,8 +110,8 @@ interface IProductsEntity {
|
|
|
117
110
|
max: number;
|
|
118
111
|
};
|
|
119
112
|
};
|
|
113
|
+
isPositionLocked?: Boolean;
|
|
120
114
|
localizeInfos: Record<string, any>;
|
|
121
|
-
blocks?: string | Array<string>;
|
|
122
115
|
isVisible: boolean;
|
|
123
116
|
statusIdentifier: string | null;
|
|
124
117
|
attributeSetIdentifier: string;
|
|
@@ -130,6 +123,9 @@ interface IProductsEntity {
|
|
|
130
123
|
attributeValues: Record<string, any>;
|
|
131
124
|
position: number;
|
|
132
125
|
sku: string | null;
|
|
126
|
+
}
|
|
127
|
+
interface IProductEntity extends IProductsEntity {
|
|
128
|
+
blocks?: Array<IProductBlock>;
|
|
133
129
|
productPages?: Array<Record<string, any>> | Record<string, any>;
|
|
134
130
|
}
|
|
135
131
|
interface IProductInfo {
|
|
@@ -166,4 +162,4 @@ interface IProductBlock {
|
|
|
166
162
|
isSync: boolean;
|
|
167
163
|
attributeValues: Record<string, any>;
|
|
168
164
|
}
|
|
169
|
-
export { IFilterParams, IProductsQuery, IProductApi, IProductsEntity, IProductInfo, IProductBlock };
|
|
165
|
+
export { IFilterParams, IProductsQuery, IProductApi, IProductsEntity, IProductInfo, IProductBlock, IProductEntity };
|
package/dist/users/usersApi.d.ts
CHANGED
package/dist/users/usersApi.js
CHANGED
package/package.json
CHANGED