oneentry 1.0.106 → 1.0.109

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.
Files changed (42) hide show
  1. package/README.md +6479 -3951
  2. package/dist/attribute-sets/attributeSetsApi.d.ts +11 -14
  3. package/dist/attribute-sets/attributeSetsApi.js +14 -17
  4. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +2 -2
  5. package/dist/auth-provider/authProviderApi.d.ts +21 -23
  6. package/dist/auth-provider/authProviderApi.js +28 -30
  7. package/dist/auth-provider/authProvidersInterfaces.d.ts +1 -1
  8. package/dist/blocks/blocksApi.d.ts +6 -6
  9. package/dist/blocks/blocksApi.js +9 -8
  10. package/dist/events/eventsApi.d.ts +7 -7
  11. package/dist/events/eventsApi.js +11 -7
  12. package/dist/file-uploading/fileUploadingApi.d.ts +4 -4
  13. package/dist/file-uploading/fileUploadingApi.js +4 -4
  14. package/dist/forms/formsApi.d.ts +1 -1
  15. package/dist/forms/formsApi.js +1 -1
  16. package/dist/formsData/formsDataApi.d.ts +16 -12
  17. package/dist/formsData/formsDataApi.js +21 -17
  18. package/dist/integration-collections/integrationCollectionsApi.d.ts +18 -20
  19. package/dist/integration-collections/integrationCollectionsApi.js +15 -19
  20. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +45 -8
  21. package/dist/menus/menusApi.d.ts +1 -1
  22. package/dist/menus/menusApi.js +1 -1
  23. package/dist/orders/ordersApi.d.ts +43 -43
  24. package/dist/orders/ordersApi.js +60 -60
  25. package/dist/orders/ordersInterfaces.d.ts +2 -2
  26. package/dist/pages/pagesApi.d.ts +15 -15
  27. package/dist/pages/pagesApi.js +20 -20
  28. package/dist/payments/paymentsApi.d.ts +5 -5
  29. package/dist/payments/paymentsApi.js +5 -5
  30. package/dist/product-statuses/productStatusesApi.d.ts +7 -6
  31. package/dist/product-statuses/productStatusesApi.js +7 -6
  32. package/dist/products/productsApi.d.ts +19 -19
  33. package/dist/products/productsApi.js +18 -18
  34. package/dist/products/productsInterfaces.d.ts +1 -1
  35. package/dist/templates/templatesApi.d.ts +3 -3
  36. package/dist/templates/templatesApi.js +3 -3
  37. package/dist/templates-preview/templatesPreviewApi.d.ts +2 -2
  38. package/dist/templates-preview/templatesPreviewApi.js +2 -2
  39. package/dist/users/usersApi.d.ts +9 -9
  40. package/dist/users/usersApi.js +19 -19
  41. package/package.json +8 -9
  42. package/readme.js +103 -0
@@ -20,24 +20,28 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
20
20
  */
21
21
  getFormsData(langCode?: string, offset?: number, limit?: number): Promise<IFormsDataEntity | IError>;
22
22
  /**
23
- * Find all product page objects with pagination and multiple filtering.
23
+ * Creating an object of data save information by form
24
24
  *
25
- * @param {object} [data] - Request body.
25
+ * @param {object} [body] - Request body.
26
26
  * @param {string} [langCode] - Optional language field
27
27
  *
28
28
  * @example
29
- * const data = {
30
- * formIdentifier: 'test',
31
- * formData: {
32
- * marker: 'test',
33
- * value: 'Test',
34
- * type: 'string'
35
- * },
36
- * }
29
+ * const body = {
30
+ "formIdentifier": "reg",
31
+ "formData": {
32
+ "en_US": [
33
+ {
34
+ "marker": "last_name",
35
+ "type": "string",
36
+ "value": "Федор Иванов"
37
+ }
38
+ ]
39
+ }
40
+ }
37
41
  *
38
- * @returns - Returns created FormData objects.
42
+ * @returns - Returns a created FormDataEntity object.
39
43
  */
40
- postFormsData(data: IFormsPost, langCode?: string): Promise<IFormDataEntity | IError>;
44
+ postFormsData(body: IFormsPost, langCode?: string): Promise<IFormDataEntity | IError>;
41
45
  /**
42
46
  * Get one object of form data by marker.
43
47
  *
@@ -27,30 +27,34 @@ class FormsDataApi extends asyncModules_1.default {
27
27
  return this._dataPostProcess(result, langCode);
28
28
  }
29
29
  /**
30
- * Find all product page objects with pagination and multiple filtering.
30
+ * Creating an object of data save information by form
31
31
  *
32
- * @param {object} [data] - Request body.
32
+ * @param {object} [body] - Request body.
33
33
  * @param {string} [langCode] - Optional language field
34
34
  *
35
35
  * @example
36
- * const data = {
37
- * formIdentifier: 'test',
38
- * formData: {
39
- * marker: 'test',
40
- * value: 'Test',
41
- * type: 'string'
42
- * },
43
- * }
36
+ * const body = {
37
+ "formIdentifier": "reg",
38
+ "formData": {
39
+ "en_US": [
40
+ {
41
+ "marker": "last_name",
42
+ "type": "string",
43
+ "value": "Федор Иванов"
44
+ }
45
+ ]
46
+ }
47
+ }
44
48
  *
45
- * @returns - Returns created FormData objects.
49
+ * @returns - Returns a created FormDataEntity object.
46
50
  */
47
- async postFormsData(data, langCode = this.state.lang) {
51
+ async postFormsData(body, langCode = this.state.lang) {
48
52
  const formData = {};
49
- formData[langCode] = Array.isArray(data.formData)
50
- ? data.formData
51
- : [data.formData];
52
- data.formData = formData;
53
- const result = await this._fetchPost(``, data);
53
+ formData[langCode] = Array.isArray(body.formData)
54
+ ? body.formData
55
+ : [body.formData];
56
+ body.formData = formData;
57
+ const result = await this._fetchPost(``, body);
54
58
  return this._dataPostProcess(result);
55
59
  }
56
60
  /**
@@ -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
- * @param {string} [marker] - Collection id.
50
+ * @param {string} [marker] - Collection marker.
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<any | IError>;
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} [data] - Object for creating a record
75
- * const data: ICollectionFormObject = {
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, data: ICollectionFormObject, langCode?: string): Promise<Array<any> | IError>;
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 {any} body - Object UpdateCollectionRowDto for updating a record in the collection
92
+ * @param {string} [marker] - text identifier of the collection
93
+ * @param {number} [id] - row 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
- * @param {string} langCode - language code
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<any | IError>;
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 id - record identifier in the collection Example : 12
123
- * @param marker - text identifier of the collection Example : collection1
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
- deleteCollectionRowByMarker(marker: number, id: number): Promise<any | IError>;
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,9 +66,8 @@ 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
- * @param {string} [marker] - Collection id.
70
+ * @param {string} [marker] - Collection marker.
74
71
  *
75
72
  * @returns Returns object MarkerValidDto with value true if text identifier (marker) exists or false if not
76
73
  */
@@ -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} [data] - Object for creating a record
101
- * const data: ICollectionFormObject = {
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, data, langCode = this.state.lang) {
118
- const response = await this._fetchPost(`/marker/${marker}/rows/?` + `langCode=${langCode}`, data);
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 {any} body - Object UpdateCollectionRowDto for updating a record in the collection
119
+ * @param {string} [marker] - text identifier of the collection
120
+ * @param {number} [id] - row 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
- * @param {string} langCode - language code
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 id - record identifier in the collection Example : 12
152
- * @param marker - text identifier of the collection Example : collection1
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 deleteCollectionRowByMarker(marker, id) {
152
+ async deleteICollectionRowByMarkerAndId(marker, id) {
157
153
  const result = await this._fetchDelete(`/marker/${marker}/rows/${id}`);
158
- return result.json();
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
- export type { ICollection, ICollectionFormObject, ICollectionResponce, ICollectionsApi, };
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, };
@@ -12,7 +12,7 @@ export default class MenusApi extends AsyncModules implements IMenus {
12
12
  /**
13
13
  * Get pages includes in menu by marker.
14
14
  *
15
- * @param {string} marker - Menu marker
15
+ * @param {string} [marker] - Menu marker
16
16
  * @param {string} [langCode] - Language code
17
17
  *
18
18
  * @returns Returns a single menu object as a ContentMenu object with included pages
@@ -15,7 +15,7 @@ class MenusApi extends asyncModules_1.default {
15
15
  /**
16
16
  * Get pages includes in menu by marker.
17
17
  *
18
- * @param {string} marker - Menu marker
18
+ * @param {string} [marker] - Menu marker
19
19
  * @param {string} [langCode] - Language code
20
20
  *
21
21
  * @returns Returns a single menu object as a ContentMenu object with included pages
@@ -9,6 +9,44 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
9
9
  protected state: StateModule;
10
10
  protected _url: string;
11
11
  constructor(state: StateModule);
12
+ /**
13
+ * Getting all the order storage objects
14
+ * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
15
+ *
16
+ * @param {number} [langCode] - Optional language field
17
+ * @param {number} [offset] - Optional parameter for pagination, default is 0
18
+ * @param {number} [limit] - Optional parameter for pagination, default is 30
19
+ */
20
+ getAllOrdersStorage(langCode?: string, offset?: number, limit?: number): Promise<Array<IOrdersEntity> | IError>;
21
+ /**
22
+ * Getting all orders from the orders storage object created by the user
23
+ *
24
+ * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
25
+ * @param {string} [marker] - Textual identifier of the order storage object
26
+ * @param {string} [langCode] - Optional language field
27
+ * @param {number} [offset] - Offset parameter. Default 0
28
+ * @param {number} [limit] - Limit parameter. Default 30
29
+ */
30
+ getAllOrdersByMarker(marker: string, langCode?: string, offset?: number, limit?: number): Promise<IOrdersByMarkerEntity | IError>;
31
+ /**
32
+ * Retrieve one order storage object by marker.
33
+ *
34
+ * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
35
+ * @param {string} [marker] - Marker of the order object
36
+ * @param {string} [langCode] - Language code
37
+ *
38
+ * @returns Return object of order information.
39
+ */
40
+ getOrderByMarker(marker: string, langCode?: string): Promise<IOrdersEntity | IError>;
41
+ /**
42
+ * Getting a single order from the order storage object created by the user
43
+ *
44
+ * @param {string} [marker] - The text identifier of the order storage object
45
+ * @param {number} [id] - ID of the order object
46
+ * @param {string} [langCode] - Optional language field
47
+ *
48
+ */
49
+ getOrderByMarkerAndId(marker: string, id: number, langCode?: string): Promise<IOrderByMarkerEntity | IError>;
12
50
  /**
13
51
  * Creation of an order in the order storage.
14
52
  *
@@ -38,24 +76,14 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
38
76
  * @returns Returns object for creating an order.
39
77
  */
40
78
  createOrder(marker: string, data: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
41
- /**
42
- * Getting all orders from the orders storage object created by the user
43
- *
44
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
45
- * @param {number} marker - Textual identifier of the order storage object
46
- * @param {string} [langCode] Optional language field
47
- * @param {number} [offset] Offset parameter. Default 0
48
- * @param {number} [limit] Limit parameter. Default 30
49
- */
50
- getAllOrdersByMarker(marker: string, langCode?: string, offset?: number, limit?: number): Promise<IOrdersByMarkerEntity | IError>;
51
79
  /**
52
80
  * Changing an order in the orders storage
53
81
  *
54
82
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
55
- * @param marker - The text identifier of the order storage object
56
- * @param id - ID of the order object
57
- * @param data Object for updating an order
58
- * @param langCode Optional language field
83
+ * @param {string} [marker] - The text identifier of the order storage object
84
+ * @param {number} [id] - ID of the order object
85
+ * @param {IOrderData} [body] - Object for updating an order
86
+ * @param {string} [langCode] - Optional language field
59
87
  *
60
88
  * @example
61
89
  * const body = {
@@ -75,33 +103,5 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
75
103
  * "currency": "USD"
76
104
  * }
77
105
  */
78
- updateOrderByMarkerAndId(marker: string, id: number, data: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
79
- /**
80
- * Getting a single order from the order storage object created by the user
81
- *
82
- * @param marker - The text identifier of the order storage object
83
- * @param id - ID of the order object
84
- * @param langCode Optional language field
85
- *
86
- */
87
- getOrderByMarkerAndId(marker: string, id: number, langCode?: string): Promise<IOrderByMarkerEntity | IError>;
88
- /**
89
- * Getting all the order storage objects
90
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
91
- *
92
- * @param {number} [langCode] Optional language field
93
- * @param {number} [offset] - Optional parameter for pagination, default is 30
94
- * @param {number} [limit] - Optional parameter for pagination, default is 0
95
- */
96
- getAllOrdersStorage(langCode?: string, offset?: number, limit?: number): Promise<Array<IOrdersEntity> | IError>;
97
- /**
98
- * Retrieve one order storage object by marker.
99
- *
100
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
101
- * @param {string} marker - Marker of the order object
102
- * @param {string} [langCode] - Language code
103
- *
104
- * @returns Return object of order information.
105
- */
106
- getOrderByMarker(marker: string, langCode?: string): Promise<IOrdersEntity | IError>;
106
+ updateOrderByMarkerAndId(marker: string, id: number, body: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
107
107
  }