oneentry 1.0.105 → 1.0.107
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 -7
- package/dist/attribute-sets/attributeSetsApi.d.ts +2 -2
- package/dist/attribute-sets/attributeSetsApi.js +2 -2
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +2 -2
- package/dist/integration-collections/integrationCollectionsApi.d.ts +17 -19
- package/dist/integration-collections/integrationCollectionsApi.js +14 -18
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +45 -8
- package/dist/orders/ordersInterfaces.d.ts +2 -2
- package/dist/products/productsInterfaces.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -204,7 +204,7 @@ Now you can use the following links to jump to specific entries:
|
|
|
204
204
|
const { Admins } = defineOneEntry('your-url');
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
> Method accept the body as a parameter for filtering. If you don't want to set up sorting, pass an empty array or don't pass anything.
|
|
207
|
+
> Method accept the body as a parameter for filtering. If you don't want to set up filtering/sorting, pass an empty array or don't pass anything.
|
|
208
208
|
|
|
209
209
|
Parameters:
|
|
210
210
|
|
|
@@ -2662,9 +2662,9 @@ const body = {
|
|
|
2662
2662
|
"formData": {
|
|
2663
2663
|
"en_US": [
|
|
2664
2664
|
{
|
|
2665
|
-
"marker": "
|
|
2665
|
+
"marker": "name_1",
|
|
2666
2666
|
"type": "string",
|
|
2667
|
-
"value": "
|
|
2667
|
+
"value": "Value"
|
|
2668
2668
|
}
|
|
2669
2669
|
]
|
|
2670
2670
|
}
|
|
@@ -2678,13 +2678,13 @@ Example return:
|
|
|
2678
2678
|
|
|
2679
2679
|
```json
|
|
2680
2680
|
{
|
|
2681
|
-
"formIdentifier": "
|
|
2681
|
+
"formIdentifier": "collection-form",
|
|
2682
2682
|
"formData": {
|
|
2683
2683
|
"en_US": [
|
|
2684
2684
|
{
|
|
2685
|
-
"marker": "
|
|
2685
|
+
"marker": "name_1",
|
|
2686
2686
|
"type": "string",
|
|
2687
|
-
"value": "
|
|
2687
|
+
"value": "Value"
|
|
2688
2688
|
}
|
|
2689
2689
|
]
|
|
2690
2690
|
}
|
|
@@ -2754,7 +2754,7 @@ Example return:
|
|
|
2754
2754
|
>
|
|
2755
2755
|
></details>
|
|
2756
2756
|
|
|
2757
|
-
### IntegrationCollections.
|
|
2757
|
+
### IntegrationCollections.deleteICollectionRowByMarker(id, marker)
|
|
2758
2758
|
|
|
2759
2759
|
```js
|
|
2760
2760
|
const result = await IntegrationCollections.deleteCollectionRowByMarker(1, 'test_collection');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AsyncModules from '../base/asyncModules';
|
|
2
2
|
import type StateModule from '../base/stateModule';
|
|
3
3
|
import type { IError } from '../base/utils';
|
|
4
|
-
import type { IAttributeSetsEntity, IAttributesSets, IAttributesSetsEntity,
|
|
4
|
+
import type { IAttributeSetsEntity, IAttributesSets, IAttributesSetsEntity, IAttributesSetsResponse } from './attributeSetsInterfaces';
|
|
5
5
|
/**
|
|
6
6
|
* Controllers for working with attributes - AttributesSetsApi.
|
|
7
7
|
* @class
|
|
@@ -24,7 +24,7 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
|
|
|
24
24
|
*
|
|
25
25
|
* @returns Returns an array of AttributeInSet objects.
|
|
26
26
|
*/
|
|
27
|
-
getAttributes(langCode?: string,
|
|
27
|
+
getAttributes(langCode?: string, offset?: number, limit?: number, typeId?: any, sortBy?: string): Promise<IAttributesSetsResponse | IError>;
|
|
28
28
|
/**
|
|
29
29
|
* Getting all attributes with data from the attribute set
|
|
30
30
|
*
|
|
@@ -28,11 +28,11 @@ class AttributesSetsApi extends asyncModules_1.default {
|
|
|
28
28
|
*
|
|
29
29
|
* @returns Returns an array of AttributeInSet objects.
|
|
30
30
|
*/
|
|
31
|
-
async getAttributes(langCode = this.state.lang,
|
|
31
|
+
async getAttributes(langCode = this.state.lang, offset = 0, limit = 30, typeId = null, sortBy = 'id') {
|
|
32
32
|
const query = {
|
|
33
33
|
langCode,
|
|
34
|
-
limit,
|
|
35
34
|
offset,
|
|
35
|
+
limit,
|
|
36
36
|
typeId,
|
|
37
37
|
sortBy,
|
|
38
38
|
};
|
|
@@ -76,8 +76,8 @@ interface IAttributeSetsEntity {
|
|
|
76
76
|
* @property {IAttributeSetsEntity[]} items - IAttributeSetsEntity
|
|
77
77
|
* @property {number} total - total items
|
|
78
78
|
*/
|
|
79
|
-
interface
|
|
79
|
+
interface IAttributesSetsResponse {
|
|
80
80
|
items: IAttributeSetsEntity[];
|
|
81
81
|
total: number;
|
|
82
82
|
}
|
|
83
|
-
export type { AttributeType, IAttributeSetsEntity, IAttributesSets, IAttributesSetsEntity,
|
|
83
|
+
export type { AttributeType, IAttributeSetsEntity, IAttributesSets, IAttributesSetsEntity, IAttributesSetsResponse, IListTitle, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AsyncModules from '../base/asyncModules';
|
|
2
2
|
import type StateModule from '../base/stateModule';
|
|
3
3
|
import type { IError } from '../base/utils';
|
|
4
|
-
import type { ICollection, ICollectionFormObject, ICollectionResponce, ICollectionsApi } from './integrationCollectionsInterfaces';
|
|
4
|
+
import type { ICollection, ICollectionFormObject, ICollectionResponce, ICollectionRow, ICollectionsApi } from './integrationCollectionsInterfaces';
|
|
5
5
|
/**
|
|
6
6
|
* Controllers for working with attributes.
|
|
7
7
|
*/
|
|
@@ -24,7 +24,6 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
24
24
|
getICollections(langCode?: string, userQuery?: any): Promise<Array<ICollection> | IError>;
|
|
25
25
|
/**
|
|
26
26
|
* Get a single collection object by id.
|
|
27
|
-
* GET/api/content/integration-collections/{id}
|
|
28
27
|
*
|
|
29
28
|
* @param {number} [id] - Collection id.
|
|
30
29
|
* @param {string} [langCode] - Language code.
|
|
@@ -34,7 +33,6 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
34
33
|
getICollectionById(id: number, langCode?: string): Promise<ICollection | IError>;
|
|
35
34
|
/**
|
|
36
35
|
* Get all records belonging to the collection by collection id.
|
|
37
|
-
* GET/api/content/integration-collections/{id}/rows
|
|
38
36
|
*
|
|
39
37
|
* @param {number} [id] - Collection id.
|
|
40
38
|
* @param {string} [langCode] - Language code.
|
|
@@ -48,16 +46,16 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
48
46
|
getICollectionRowsById(id: number, langCode?: string, userQuery?: any): Promise<ICollectionResponce | IError>;
|
|
49
47
|
/**
|
|
50
48
|
* Check for the existence of a text identifier (marker)
|
|
51
|
-
* GET/api/content/integration-collections/marker-validation/{marker}
|
|
52
49
|
*
|
|
53
50
|
* @param {string} [marker] - Collection id.
|
|
54
51
|
*
|
|
55
52
|
* @returns Returns object MarkerValidDto with value true if text identifier (marker) exists or false if not
|
|
56
53
|
*/
|
|
57
|
-
validateICollectionMarker(marker: string): Promise<
|
|
54
|
+
validateICollectionMarker(marker: string): Promise<{
|
|
55
|
+
valid: boolean;
|
|
56
|
+
} | IError>;
|
|
58
57
|
/**
|
|
59
58
|
* Getting one record from the collection.
|
|
60
|
-
* GET/api/content/integration-collections/marker/{marker}/rows/{id}
|
|
61
59
|
*
|
|
62
60
|
* @param {string} [marker] - Collection text identifier
|
|
63
61
|
* @param {number} [id] - Collection record identifier
|
|
@@ -68,11 +66,10 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
68
66
|
getICollectionRowByMarkerAndId(marker: string, id: number, langCode?: string): Promise<any | IError>;
|
|
69
67
|
/**
|
|
70
68
|
* Create a record in the collection
|
|
71
|
-
* POST/api/content/integration-collections/marker/{marker}/rows
|
|
72
69
|
*
|
|
73
70
|
* @param {string} [marker] - Collection text identifier. Example : collection1
|
|
74
|
-
* @param {ICollectionFormObject} [
|
|
75
|
-
* const
|
|
71
|
+
* @param {ICollectionFormObject} [body] - Object for creating a record
|
|
72
|
+
* const body: ICollectionFormObject = {
|
|
76
73
|
"formIdentifier": "collection-form",
|
|
77
74
|
"formData": {
|
|
78
75
|
"en_US": [
|
|
@@ -88,13 +85,14 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
88
85
|
*
|
|
89
86
|
* @description Create a record in the collection
|
|
90
87
|
*/
|
|
91
|
-
createICollectionRow(marker: string,
|
|
88
|
+
createICollectionRow(marker: string, body: ICollectionFormObject, langCode?: string): Promise<any | IError>;
|
|
92
89
|
/**
|
|
93
90
|
* Edit a record in the collection
|
|
94
|
-
* PUT/api/content/integration-collections/marker/{marker}/rows/{id}
|
|
95
91
|
*
|
|
96
|
-
* @param {string} marker - text identifier of the collection
|
|
97
|
-
* @param {
|
|
92
|
+
* @param {string} [marker] - text identifier of the collection
|
|
93
|
+
* @param {number} [id] -
|
|
94
|
+
* @param {any} [body] - Object UpdateCollectionRowDto for updating a record in the collection
|
|
95
|
+
*
|
|
98
96
|
* const body = {
|
|
99
97
|
"formIdentifier": "collection-form",
|
|
100
98
|
"formData": {
|
|
@@ -107,22 +105,22 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
107
105
|
]
|
|
108
106
|
}
|
|
109
107
|
}
|
|
110
|
-
*
|
|
108
|
+
*
|
|
109
|
+
* @param {string} [langCode] - language code
|
|
111
110
|
*
|
|
112
111
|
* @returns Returns object UpdateCollectionRowDto
|
|
113
112
|
*/
|
|
114
113
|
updateICollectionRow(marker: string, id: number, body: {
|
|
115
114
|
formIdentifier: string;
|
|
116
115
|
formData: any;
|
|
117
|
-
}, langCode?: string): Promise<
|
|
116
|
+
}, langCode?: string): Promise<ICollectionRow | IError>;
|
|
118
117
|
/**
|
|
119
118
|
* Deletion of collection record object
|
|
120
|
-
* DELETE/api/content/integration-collections/marker/{marker}/rows/{id} Удаление объекта записи коллекции
|
|
121
119
|
*
|
|
122
|
-
* @param
|
|
123
|
-
* @param
|
|
120
|
+
* @param {string} [marker] - text identifier of the collection Example : collection1
|
|
121
|
+
* @param {number} [id] - record identifier in the collection Example : 12
|
|
124
122
|
*
|
|
125
123
|
* @returns Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
126
124
|
*/
|
|
127
|
-
|
|
125
|
+
deleteICollectionRowByMarkerAndId(marker: string, id: number): Promise<boolean | IError>;
|
|
128
126
|
}
|
|
@@ -36,7 +36,6 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Get a single collection object by id.
|
|
39
|
-
* GET/api/content/integration-collections/{id}
|
|
40
39
|
*
|
|
41
40
|
* @param {number} [id] - Collection id.
|
|
42
41
|
* @param {string} [langCode] - Language code.
|
|
@@ -50,7 +49,6 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
50
49
|
}
|
|
51
50
|
/**
|
|
52
51
|
* Get all records belonging to the collection by collection id.
|
|
53
|
-
* GET/api/content/integration-collections/{id}/rows
|
|
54
52
|
*
|
|
55
53
|
* @param {number} [id] - Collection id.
|
|
56
54
|
* @param {string} [langCode] - Language code.
|
|
@@ -68,7 +66,6 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
68
66
|
}
|
|
69
67
|
/**
|
|
70
68
|
* Check for the existence of a text identifier (marker)
|
|
71
|
-
* GET/api/content/integration-collections/marker-validation/{marker}
|
|
72
69
|
*
|
|
73
70
|
* @param {string} [marker] - Collection id.
|
|
74
71
|
*
|
|
@@ -80,7 +77,6 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
80
77
|
}
|
|
81
78
|
/**
|
|
82
79
|
* Getting one record from the collection.
|
|
83
|
-
* GET/api/content/integration-collections/marker/{marker}/rows/{id}
|
|
84
80
|
*
|
|
85
81
|
* @param {string} [marker] - Collection text identifier
|
|
86
82
|
* @param {number} [id] - Collection record identifier
|
|
@@ -94,11 +90,10 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
94
90
|
}
|
|
95
91
|
/**
|
|
96
92
|
* Create a record in the collection
|
|
97
|
-
* POST/api/content/integration-collections/marker/{marker}/rows
|
|
98
93
|
*
|
|
99
94
|
* @param {string} [marker] - Collection text identifier. Example : collection1
|
|
100
|
-
* @param {ICollectionFormObject} [
|
|
101
|
-
* const
|
|
95
|
+
* @param {ICollectionFormObject} [body] - Object for creating a record
|
|
96
|
+
* const body: ICollectionFormObject = {
|
|
102
97
|
"formIdentifier": "collection-form",
|
|
103
98
|
"formData": {
|
|
104
99
|
"en_US": [
|
|
@@ -114,16 +109,17 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
114
109
|
*
|
|
115
110
|
* @description Create a record in the collection
|
|
116
111
|
*/
|
|
117
|
-
async createICollectionRow(marker,
|
|
118
|
-
const response = await this._fetchPost(`/marker/${marker}/rows/?` + `langCode=${langCode}`,
|
|
112
|
+
async createICollectionRow(marker, body, langCode = this.state.lang) {
|
|
113
|
+
const response = await this._fetchPost(`/marker/${marker}/rows/?` + `langCode=${langCode}`, body);
|
|
119
114
|
return this._normalizeData(response, langCode);
|
|
120
115
|
}
|
|
121
116
|
/**
|
|
122
117
|
* Edit a record in the collection
|
|
123
|
-
* PUT/api/content/integration-collections/marker/{marker}/rows/{id}
|
|
124
118
|
*
|
|
125
|
-
* @param {string} marker - text identifier of the collection
|
|
126
|
-
* @param {
|
|
119
|
+
* @param {string} [marker] - text identifier of the collection
|
|
120
|
+
* @param {number} [id] -
|
|
121
|
+
* @param {any} [body] - Object UpdateCollectionRowDto for updating a record in the collection
|
|
122
|
+
*
|
|
127
123
|
* const body = {
|
|
128
124
|
"formIdentifier": "collection-form",
|
|
129
125
|
"formData": {
|
|
@@ -136,7 +132,8 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
136
132
|
]
|
|
137
133
|
}
|
|
138
134
|
}
|
|
139
|
-
*
|
|
135
|
+
*
|
|
136
|
+
* @param {string} [langCode] - language code
|
|
140
137
|
*
|
|
141
138
|
* @returns Returns object UpdateCollectionRowDto
|
|
142
139
|
*/
|
|
@@ -146,16 +143,15 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
146
143
|
}
|
|
147
144
|
/**
|
|
148
145
|
* Deletion of collection record object
|
|
149
|
-
* DELETE/api/content/integration-collections/marker/{marker}/rows/{id} Удаление объекта записи коллекции
|
|
150
146
|
*
|
|
151
|
-
* @param
|
|
152
|
-
* @param
|
|
147
|
+
* @param {string} [marker] - text identifier of the collection Example : collection1
|
|
148
|
+
* @param {number} [id] - record identifier in the collection Example : 12
|
|
153
149
|
*
|
|
154
150
|
* @returns Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
155
151
|
*/
|
|
156
|
-
async
|
|
152
|
+
async deleteICollectionRowByMarkerAndId(marker, id) {
|
|
157
153
|
const result = await this._fetchDelete(`/marker/${marker}/rows/${id}`);
|
|
158
|
-
return result
|
|
154
|
+
return result;
|
|
159
155
|
}
|
|
160
156
|
}
|
|
161
157
|
exports.default = IntegrationCollectionsApi;
|
|
@@ -2,13 +2,14 @@ import type { IError } from '../base/utils';
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents an interface object of ICollections Api.
|
|
4
4
|
*
|
|
5
|
-
* @property {function} getICollections - Get all collections
|
|
6
|
-
* @property {function} getICollectionById - Get a single collection object
|
|
7
|
-
* @property {function} getICollectionRowsById -
|
|
8
|
-
* @property {function} validateICollectionMarker -
|
|
9
|
-
* @property {function} getICollectionRowByMarkerAndId -
|
|
10
|
-
* @property {function} createICollectionRow -
|
|
11
|
-
* @property {function} updateICollectionRow -
|
|
5
|
+
* @property {function} [getICollections] - Get all collections
|
|
6
|
+
* @property {function} [getICollectionById] - Get a single collection object
|
|
7
|
+
* @property {function} [getICollectionRowsById] - Get all records belonging to the collection by collection id.
|
|
8
|
+
* @property {function} [validateICollectionMarker] - Check for the existence of a text identifier (marker)
|
|
9
|
+
* @property {function} [getICollectionRowByMarkerAndId] - Getting one record (row) from the collection.
|
|
10
|
+
* @property {function} [createICollectionRow] - Create a record (row) in the collection
|
|
11
|
+
* @property {function} [updateICollectionRow] - Edit a record (row) in the collection
|
|
12
|
+
* @property {function} [deleteICollectionRowByMarkerAndId] - Deletion of collection record object (row)
|
|
12
13
|
*/
|
|
13
14
|
interface ICollectionsApi {
|
|
14
15
|
getICollections(marker: string, langCode: string, userQuery?: any): Promise<Array<any> | IError>;
|
|
@@ -18,9 +19,17 @@ interface ICollectionsApi {
|
|
|
18
19
|
getICollectionRowByMarkerAndId(marker: string, id: number, langCode: string): Promise<any | IError>;
|
|
19
20
|
createICollectionRow(marker: string, body: any, langCode: string): Promise<Array<any> | IError>;
|
|
20
21
|
updateICollectionRow(marker: string, id: number, body: any, langCode: string): Promise<any | IError>;
|
|
22
|
+
deleteICollectionRowByMarkerAndId(marker: string, id: number): Promise<any | IError>;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* ICollection
|
|
26
|
+
*
|
|
27
|
+
* @property {number} [id] - Object identifier
|
|
28
|
+
* @property {object} [localizeInfos] - Name considering localization
|
|
29
|
+
* @property {string | null} [identifier] - Text identifier for record field
|
|
30
|
+
* @property {number | null} [formId] - Identifier for the form used by the order storage
|
|
31
|
+
* @property {string | null} [attributeSetId] - Identifier of the set of attributes used by the form attached to the collection
|
|
32
|
+
* @property {string | null} [selectedAttributeMarkers] - Text identifiers of form object attributes for display in the data table
|
|
24
33
|
*/
|
|
25
34
|
interface ICollection {
|
|
26
35
|
id: number;
|
|
@@ -32,6 +41,9 @@ interface ICollection {
|
|
|
32
41
|
}
|
|
33
42
|
/**
|
|
34
43
|
* ICollectionResponce
|
|
44
|
+
*
|
|
45
|
+
* @property {ICollection[]} items -
|
|
46
|
+
* @property {number} total -
|
|
35
47
|
*/
|
|
36
48
|
interface ICollectionResponce {
|
|
37
49
|
items: ICollection[];
|
|
@@ -39,6 +51,10 @@ interface ICollectionResponce {
|
|
|
39
51
|
}
|
|
40
52
|
/**
|
|
41
53
|
* ICollectionFormData
|
|
54
|
+
*
|
|
55
|
+
* @property {string} marker -
|
|
56
|
+
* @property {string} type -
|
|
57
|
+
* @property {string} value -
|
|
42
58
|
*/
|
|
43
59
|
interface ICollectionFormData {
|
|
44
60
|
marker: string;
|
|
@@ -47,6 +63,9 @@ interface ICollectionFormData {
|
|
|
47
63
|
}
|
|
48
64
|
/**
|
|
49
65
|
* ICollectionFormObject
|
|
66
|
+
*
|
|
67
|
+
* @property {string} formIdentifier -
|
|
68
|
+
* @property {object} formData -
|
|
50
69
|
*/
|
|
51
70
|
interface ICollectionFormObject {
|
|
52
71
|
formIdentifier: string;
|
|
@@ -54,4 +73,22 @@ interface ICollectionFormObject {
|
|
|
54
73
|
[key: string]: ICollectionFormData[];
|
|
55
74
|
};
|
|
56
75
|
}
|
|
57
|
-
|
|
76
|
+
/**
|
|
77
|
+
* ICollectionRow
|
|
78
|
+
*/
|
|
79
|
+
interface ICollectionRow {
|
|
80
|
+
id: number;
|
|
81
|
+
createdDate: string;
|
|
82
|
+
updatedDate: string;
|
|
83
|
+
formData: ICollectionFormData[];
|
|
84
|
+
attributeSetIdentifier: string | null;
|
|
85
|
+
total?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* ICollectionRows
|
|
89
|
+
*/
|
|
90
|
+
interface ICollectionRowsResponce {
|
|
91
|
+
items: ICollectionRow[];
|
|
92
|
+
total: number;
|
|
93
|
+
}
|
|
94
|
+
export type { ICollection, ICollectionFormObject, ICollectionResponce, ICollectionRow, ICollectionRowsResponce, ICollectionsApi, };
|
|
@@ -13,11 +13,11 @@ import type { IError } from '../base/utils';
|
|
|
13
13
|
*/
|
|
14
14
|
interface IOrdersApi {
|
|
15
15
|
createOrder(marker: string, data: IOrderData): Promise<IBaseOrdersEntity | IError>;
|
|
16
|
-
getAllOrdersByMarker(marker: string, langCode?: string,
|
|
16
|
+
getAllOrdersByMarker(marker: string, langCode?: string, offset?: number, limit?: number): Promise<IOrdersByMarkerEntity | IError>;
|
|
17
17
|
getOrderByMarker(marker: string, langCode?: string): Promise<IOrdersEntity | IError>;
|
|
18
18
|
updateOrderByMarkerAndId(marker: string, id: number, data: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
|
|
19
19
|
getOrderByMarkerAndId(marker: string, id: number, langCode?: string): Promise<IOrderByMarkerEntity | IError>;
|
|
20
|
-
getAllOrdersStorage(langCode?: string,
|
|
20
|
+
getAllOrdersStorage(langCode?: string, offset?: number, limit?: number): Promise<Array<IOrdersEntity> | IError>;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Represents a form data.
|
|
@@ -77,7 +77,7 @@ interface IFilterParams {
|
|
|
77
77
|
* @property {object} additional - Additional value from the index.
|
|
78
78
|
* @property {Record<string, any>} localizeInfos - The name of the products, taking into account localization.
|
|
79
79
|
* @property {boolean} isVisible - A sign of page visibility.
|
|
80
|
-
* @property {boolean}
|
|
80
|
+
* @property {boolean} isPositionLocked - Sorting position lock indicator (optional).
|
|
81
81
|
* @property {number | null} statusIdentifier - Product page status identifiers (may be null).
|
|
82
82
|
* @property {Array<number>} relatedIds - Ids of related product pages.
|
|
83
83
|
* @property {string} attributeSetIdentifier - Set of attributes id.
|