oneentry 1.0.123 → 1.0.125

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 (76) hide show
  1. package/README.md +24 -22
  2. package/dist/admins/adminsApi.d.ts +30 -9
  3. package/dist/admins/adminsApi.js +30 -9
  4. package/dist/admins/adminsInterfaces.d.ts +77 -32
  5. package/dist/attribute-sets/attributeSetsApi.d.ts +36 -22
  6. package/dist/attribute-sets/attributeSetsApi.js +41 -25
  7. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +133 -39
  8. package/dist/auth-provider/authProviderApi.d.ts +209 -88
  9. package/dist/auth-provider/authProviderApi.js +226 -87
  10. package/dist/auth-provider/authProvidersInterfaces.d.ts +345 -18
  11. package/dist/base/asyncModules.d.ts +38 -28
  12. package/dist/base/asyncModules.js +178 -47
  13. package/dist/base/result.js +23 -0
  14. package/dist/base/syncModules.d.ts +48 -44
  15. package/dist/base/syncModules.js +84 -64
  16. package/dist/base/utils.d.ts +1 -1
  17. package/dist/blocks/blocksApi.d.ts +48 -27
  18. package/dist/blocks/blocksApi.js +48 -27
  19. package/dist/blocks/blocksInterfaces.d.ts +126 -32
  20. package/dist/events/eventsApi.d.ts +45 -12
  21. package/dist/events/eventsApi.js +47 -12
  22. package/dist/events/eventsInterfaces.d.ts +50 -3
  23. package/dist/file-uploading/fileUploadingApi.d.ts +57 -29
  24. package/dist/file-uploading/fileUploadingApi.js +57 -30
  25. package/dist/file-uploading/fileUploadingInterfaces.d.ts +90 -17
  26. package/dist/forms/formsApi.d.ts +20 -9
  27. package/dist/forms/formsApi.js +19 -8
  28. package/dist/forms/formsInterfaces.d.ts +86 -23
  29. package/dist/formsData/formsDataApi.d.ts +33 -21
  30. package/dist/formsData/formsDataApi.js +33 -21
  31. package/dist/formsData/formsDataInterfaces.d.ts +212 -41
  32. package/dist/general-types/generalTypesApi.d.ts +11 -2
  33. package/dist/general-types/generalTypesApi.js +10 -1
  34. package/dist/general-types/generalTypesInterfaces.d.ts +17 -6
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +2 -2
  37. package/dist/integration-collections/integrationCollectionsApi.d.ts +134 -81
  38. package/dist/integration-collections/integrationCollectionsApi.js +135 -83
  39. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +246 -43
  40. package/dist/locales/localesApi.d.ts +5 -1
  41. package/dist/locales/localesApi.js +5 -1
  42. package/dist/locales/localesInterfaces.d.ts +19 -12
  43. package/dist/menus/menusApi.d.ts +6 -3
  44. package/dist/menus/menusApi.js +6 -3
  45. package/dist/menus/menusInterfaces.d.ts +60 -21
  46. package/dist/orders/ordersApi.d.ts +84 -66
  47. package/dist/orders/ordersApi.js +91 -71
  48. package/dist/orders/ordersInterfaces.d.ts +282 -86
  49. package/dist/pages/pagesApi.d.ts +101 -42
  50. package/dist/pages/pagesApi.js +93 -39
  51. package/dist/pages/pagesInterfaces.d.ts +218 -75
  52. package/dist/payments/paymentsApi.d.ts +53 -39
  53. package/dist/payments/paymentsApi.js +55 -40
  54. package/dist/payments/paymentsInterfaces.d.ts +121 -56
  55. package/dist/product-statuses/productStatusesApi.d.ts +17 -17
  56. package/dist/product-statuses/productStatusesApi.js +16 -19
  57. package/dist/product-statuses/productStatusesInterfaces.d.ts +43 -14
  58. package/dist/products/productsApi.d.ts +309 -177
  59. package/dist/products/productsApi.js +313 -167
  60. package/dist/products/productsInterfaces.d.ts +447 -81
  61. package/dist/system/systemApi.d.ts +42 -12
  62. package/dist/system/systemApi.js +43 -10
  63. package/dist/system/systemInterfaces.d.ts +7 -0
  64. package/dist/templates/templatesApi.d.ts +24 -20
  65. package/dist/templates/templatesApi.js +22 -21
  66. package/dist/templates/templatesInterfaces.d.ts +48 -22
  67. package/dist/templates-preview/templatesPreviewApi.d.ts +17 -17
  68. package/dist/templates-preview/templatesPreviewApi.js +16 -19
  69. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +85 -32
  70. package/dist/users/usersApi.d.ts +59 -35
  71. package/dist/users/usersApi.js +62 -35
  72. package/dist/users/usersInterfaces.d.ts +136 -14
  73. package/dist/web-socket/wsApi.d.ts +4 -5
  74. package/dist/web-socket/wsApi.js +4 -5
  75. package/dist/web-socket/wsInterfaces.d.ts +2 -1
  76. package/package.json +20 -18
@@ -3,106 +3,124 @@ import type StateModule from '../base/stateModule';
3
3
  import type { IError } from '../base/utils';
4
4
  import type { IBaseOrdersEntity, IOrderByMarkerEntity, IOrderData, IOrdersApi, IOrdersByMarkerEntity, IOrdersEntity } from './ordersInterfaces';
5
5
  /**
6
- * Controllers for working with orders
6
+ * Controllers for working with orders.
7
+ *
7
8
  * @handle /api/content/orders-storage
9
+ * @module OrdersApi
10
+ * @description This module provides methods for working with orders, including retrieving, creating, and updating orders in the order storage.
8
11
  */
9
12
  export default class OrdersApi extends AsyncModules implements IOrdersApi {
10
13
  protected state: StateModule;
11
14
  protected _url: string;
12
15
  constructor(state: StateModule);
13
16
  /**
14
- * Getting all the order storage objects
15
- * @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.
17
+ * Getting all the order storage objects.
16
18
  *
17
- * @param {number} [langCode] - Optional language field
18
- * @param {number} [offset] - Optional parameter for pagination, default is 0
19
- * @param {number} [limit] - Optional parameter for pagination, default is 30
20
- */
21
- getAllOrdersStorage(langCode?: string, offset?: number, limit?: number): Promise<Array<IOrdersEntity> | IError>;
19
+ * @handleName getAllOrdersStorage
20
+ *
21
+ * @param {string} [langCode] - Language code. Default: "en_US".
22
+ * @param {number} [offset] - Optional parameter for pagination. Default: 0.
23
+ * @param {number} [limit] - Optional parameter for pagination. Default: 30.
24
+ * @return {IOrdersEntity[]} Returns an array of order storage objects.
25
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
26
+ * @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.
27
+ **/
28
+ getAllOrdersStorage(langCode?: string, offset?: number, limit?: number): Promise<IOrdersEntity[] | IError>;
22
29
  /**
23
- * Getting all orders from the orders storage object created by the user
30
+ * Getting all orders from the orders storage object created by the user.
31
+ *
32
+ * @handleName getAllOrdersByMarker
24
33
  *
34
+ * @param {string} marker - Textual identifier of the order storage object. Example: "order_storage_1".
35
+ * @param {string} [langCode] - Language code. Default: "en_US".
36
+ * @param {number} [offset] - Offset parameter. Default: 0.
37
+ * @param {number} [limit] - Limit parameter. Default: 30.
38
+ * @return {IOrdersByMarkerEntity} Returns an object with the orders.
39
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
25
40
  * @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.
26
- * @param {string} [marker] - Textual identifier of the order storage object
27
- * @param {string} [langCode] - Optional language field
28
- * @param {number} [offset] - Offset parameter. Default 0
29
- * @param {number} [limit] - Limit parameter. Default 30
30
41
  */
31
42
  getAllOrdersByMarker(marker: string, langCode?: string, offset?: number, limit?: number): Promise<IOrdersByMarkerEntity | IError>;
32
43
  /**
33
44
  * Retrieve one order storage object by marker.
34
45
  *
35
- * @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.
36
- * @param {string} [marker] - Marker of the order object
37
- * @param {string} [langCode] - Language code
46
+ * @handleName getOrderByMarker
38
47
  *
39
- * @returns Return object of order information.
48
+ * @param {string} marker - Marker of the order object. Example: "order_storage_1".
49
+ * @param {string} [langCode] - Language code. Default: "en_US".
50
+ * @return {IOrdersEntity} Return object of order information.
51
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
52
+ * @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.
40
53
  */
41
54
  getOrderByMarker(marker: string, langCode?: string): Promise<IOrdersEntity | IError>;
42
55
  /**
43
- * Getting a single order from the order storage object created by the user
56
+ * Getting a single order from the order storage object created by the user.
44
57
  *
45
- * @param {string} [marker] - The text identifier of the order storage object
46
- * @param {number} [id] - ID of the order object
47
- * @param {string} [langCode] - Optional language field
58
+ * @handleName getOrderByMarkerAndId
48
59
  *
60
+ * @param {string} marker - The text identifier of the order storage object. Example: "order_storage_1".
61
+ * @param {number} id - ID of the order object. Example: 12345.
62
+ * @param {string} [langCode] - Language code. Default: "en_US".
63
+ * @return {IOrderByMarkerEntity} Returns an object with the order.
64
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
65
+ * @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.
49
66
  */
50
67
  getOrderByMarkerAndId(marker: string, id: number, langCode?: string): Promise<IOrderByMarkerEntity | IError>;
51
68
  /**
52
69
  * Creation of an order in the order storage.
53
70
  *
54
- * @param {string} marker - Textual identifier of the order storage object
55
- * @param {IOrderData} data - Object for creating an order
56
- * @param {String} langCode - Optional language field
71
+ * @handleName createOrder
57
72
  *
73
+ * @param {string} marker - Textual identifier of the order storage object. Example: "order_storage_1".
74
+ * @param {IOrderData} body - Object for creating an order. Example:
75
+ {
76
+ "formIdentifier": "bar-orders-form",
77
+ "paymentAccountIdentifier": "usd-payment",
78
+ "formData": {
79
+ "marker": "name_1",
80
+ "value": "Name",
81
+ "type": "string"
82
+ },
83
+ "products": [
84
+ {
85
+ "productId": 1,
86
+ "quantity": 2
87
+ }
88
+ ]
89
+ }
90
+ * @param {String} [langCode] - Language code. Default: "en_US".
91
+ * @return {IBaseOrdersEntity} Returns an object with the created order.
92
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
58
93
  * @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.
59
- *
60
- * @example
61
- * const body = {
62
- * "formIdentifier": "bar-orders-form",
63
- * "paymentAccountIdentifier": "usd-payment",
64
- * "formData": {
65
- * "marker": "name_1",
66
- * "value": "Name",
67
- * "type": "string"
68
- * },
69
- * "products": [
70
- * {
71
- * "productId": 1,
72
- * "quantity": 2,
73
- * }
74
- * ],
75
- * }
76
- *
77
- * @returns Returns object for creating an order.
78
94
  */
79
- createOrder(marker: string, data: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
95
+ createOrder(marker: string, body: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
80
96
  /**
81
97
  * Changing an order in the orders storage
82
98
  *
83
- * @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.
84
- * @param {string} [marker] - The text identifier of the order storage object
85
- * @param {number} [id] - ID of the order object
86
- * @param {IOrderData} [body] - Object for updating an order
87
- * @param {string} [langCode] - Optional language field
99
+ * @handleName updateOrderByMarkerAndId
88
100
  *
89
- * @example
90
- * const body = {
91
- * "formIdentifier": "bar-orders-form",
92
- * "paymentAccountIdentifier": "usd-payment",
93
- * "formData": {
94
- * "marker": "name_1",
95
- * "value": "Name",
96
- * "type": "string"
97
- * },
98
- * "products": [
99
- * {
100
- * "productId": 1,
101
- * "quantity": 2
102
- * }
103
- * ],
104
- * "currency": "USD"
105
- * }
101
+ * @param {string} marker - The text identifier of the order storage object. Example: "order_storage_1".
102
+ * @param {number} id - ID of the order object. Example: 12345.
103
+ * @param {IOrderData} body - Object for updating an order. Example:
104
+ {
105
+ "formIdentifier": "bar-orders-form",
106
+ "paymentAccountIdentifier": "usd-payment",
107
+ "formData": {
108
+ "marker": "name_1",
109
+ "value": "Name",
110
+ "type": "string"
111
+ },
112
+ "products": [
113
+ {
114
+ "productId": 1,
115
+ "quantity": 2
116
+ }
117
+ ],
118
+ "currency": "USD"
119
+ }
120
+ * @param {string} [langCode] - Language code. Default: "en_US".
121
+ * @return {IBaseOrdersEntity} Returns an object with the updated order.
122
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
123
+ * @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.
106
124
  */
107
125
  updateOrderByMarkerAndId(marker: string, id: number, body: IOrderData, langCode?: string): Promise<IBaseOrdersEntity | IError>;
108
126
  }
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable @typescript-eslint/no-explicit-any */
7
6
  const asyncModules_1 = __importDefault(require("../base/asyncModules"));
8
7
  /**
9
- * Controllers for working with orders
8
+ * Controllers for working with orders.
9
+ *
10
10
  * @handle /api/content/orders-storage
11
+ * @module OrdersApi
12
+ * @description This module provides methods for working with orders, including retrieving, creating, and updating orders in the order storage.
11
13
  */
12
14
  class OrdersApi extends asyncModules_1.default {
13
15
  constructor(state) {
@@ -15,50 +17,65 @@ class OrdersApi extends asyncModules_1.default {
15
17
  this._url = state.url + '/api/content/orders-storage';
16
18
  }
17
19
  /**
18
- * Getting all the order storage objects
19
- * @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.
20
+ * Getting all the order storage objects.
20
21
  *
21
- * @param {number} [langCode] - Optional language field
22
- * @param {number} [offset] - Optional parameter for pagination, default is 0
23
- * @param {number} [limit] - Optional parameter for pagination, default is 30
24
- */
22
+ * @handleName getAllOrdersStorage
23
+ *
24
+ * @param {string} [langCode] - Language code. Default: "en_US".
25
+ * @param {number} [offset] - Optional parameter for pagination. Default: 0.
26
+ * @param {number} [limit] - Optional parameter for pagination. Default: 30.
27
+ * @return {IOrdersEntity[]} Returns an array of order storage objects.
28
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
29
+ * @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.
30
+ **/
25
31
  async getAllOrdersStorage(langCode = this.state.lang, offset = 0, limit = 30) {
26
32
  const result = await this._fetchGet(`?langCode=${langCode}&limit=${limit}&offset=${offset}`);
27
33
  return this._normalizeData(result);
28
34
  }
29
35
  /**
30
- * Getting all orders from the orders storage object created by the user
36
+ * Getting all orders from the orders storage object created by the user.
31
37
  *
38
+ * @handleName getAllOrdersByMarker
39
+ *
40
+ * @param {string} marker - Textual identifier of the order storage object. Example: "order_storage_1".
41
+ * @param {string} [langCode] - Language code. Default: "en_US".
42
+ * @param {number} [offset] - Offset parameter. Default: 0.
43
+ * @param {number} [limit] - Limit parameter. Default: 30.
44
+ * @return {IOrdersByMarkerEntity} Returns an object with the orders.
45
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
32
46
  * @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.
33
- * @param {string} [marker] - Textual identifier of the order storage object
34
- * @param {string} [langCode] - Optional language field
35
- * @param {number} [offset] - Offset parameter. Default 0
36
- * @param {number} [limit] - Limit parameter. Default 30
37
47
  */
38
48
  async getAllOrdersByMarker(marker, langCode = this.state.lang, offset = 0, limit = 30) {
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
50
  const result = await this._fetchGet(`/marker/${marker}/orders?langCode=${langCode}&limit=${limit}&offset=${offset}`);
40
51
  return this._normalizeData(result);
41
52
  }
42
53
  /**
43
54
  * Retrieve one order storage object by marker.
44
55
  *
45
- * @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.
46
- * @param {string} [marker] - Marker of the order object
47
- * @param {string} [langCode] - Language code
56
+ * @handleName getOrderByMarker
48
57
  *
49
- * @returns Return object of order information.
58
+ * @param {string} marker - Marker of the order object. Example: "order_storage_1".
59
+ * @param {string} [langCode] - Language code. Default: "en_US".
60
+ * @return {IOrdersEntity} Return object of order information.
61
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
62
+ * @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.
50
63
  */
51
64
  async getOrderByMarker(marker, langCode = this.state.lang) {
52
65
  const result = await this._fetchGet(`/marker/${marker}?langCode=${langCode}`);
53
66
  return this._normalizeData(result);
54
67
  }
55
68
  /**
56
- * Getting a single order from the order storage object created by the user
69
+ * Getting a single order from the order storage object created by the user.
57
70
  *
58
- * @param {string} [marker] - The text identifier of the order storage object
59
- * @param {number} [id] - ID of the order object
60
- * @param {string} [langCode] - Optional language field
71
+ * @handleName getOrderByMarkerAndId
61
72
  *
73
+ * @param {string} marker - The text identifier of the order storage object. Example: "order_storage_1".
74
+ * @param {number} id - ID of the order object. Example: 12345.
75
+ * @param {string} [langCode] - Language code. Default: "en_US".
76
+ * @return {IOrderByMarkerEntity} Returns an object with the order.
77
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
78
+ * @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.
62
79
  */
63
80
  async getOrderByMarkerAndId(marker, id, langCode = this.state.lang) {
64
81
  const result = await this._fetchGet(`/marker/${marker}/orders/${id}?langCode=${langCode}`);
@@ -67,68 +84,71 @@ class OrdersApi extends asyncModules_1.default {
67
84
  /**
68
85
  * Creation of an order in the order storage.
69
86
  *
70
- * @param {string} marker - Textual identifier of the order storage object
71
- * @param {IOrderData} data - Object for creating an order
72
- * @param {String} langCode - Optional language field
87
+ * @handleName createOrder
73
88
  *
89
+ * @param {string} marker - Textual identifier of the order storage object. Example: "order_storage_1".
90
+ * @param {IOrderData} body - Object for creating an order. Example:
91
+ {
92
+ "formIdentifier": "bar-orders-form",
93
+ "paymentAccountIdentifier": "usd-payment",
94
+ "formData": {
95
+ "marker": "name_1",
96
+ "value": "Name",
97
+ "type": "string"
98
+ },
99
+ "products": [
100
+ {
101
+ "productId": 1,
102
+ "quantity": 2
103
+ }
104
+ ]
105
+ }
106
+ * @param {String} [langCode] - Language code. Default: "en_US".
107
+ * @return {IBaseOrdersEntity} Returns an object with the created order.
108
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
74
109
  * @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.
75
- *
76
- * @example
77
- * const body = {
78
- * "formIdentifier": "bar-orders-form",
79
- * "paymentAccountIdentifier": "usd-payment",
80
- * "formData": {
81
- * "marker": "name_1",
82
- * "value": "Name",
83
- * "type": "string"
84
- * },
85
- * "products": [
86
- * {
87
- * "productId": 1,
88
- * "quantity": 2,
89
- * }
90
- * ],
91
- * }
92
- *
93
- * @returns Returns object for creating an order.
94
110
  */
95
- async createOrder(marker, data, langCode = this.state.lang) {
111
+ async createOrder(marker, body, langCode = this.state.lang) {
112
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
113
  const formData = {};
97
- formData[langCode] = Array.isArray(data.formData)
98
- ? data.formData
99
- : [data.formData];
100
- data.formData = formData;
101
- const result = await this._fetchPost(`/marker/${marker}/orders`, data);
114
+ formData[langCode] = Array.isArray(body.formData)
115
+ ? body.formData
116
+ : [body.formData];
117
+ body.formData = formData;
118
+ const result = await this._fetchPost(`/marker/${marker}/orders`, body);
102
119
  return this._normalizeData(result);
103
120
  }
104
121
  /**
105
122
  * Changing an order in the orders storage
106
123
  *
107
- * @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.
108
- * @param {string} [marker] - The text identifier of the order storage object
109
- * @param {number} [id] - ID of the order object
110
- * @param {IOrderData} [body] - Object for updating an order
111
- * @param {string} [langCode] - Optional language field
124
+ * @handleName updateOrderByMarkerAndId
112
125
  *
113
- * @example
114
- * const body = {
115
- * "formIdentifier": "bar-orders-form",
116
- * "paymentAccountIdentifier": "usd-payment",
117
- * "formData": {
118
- * "marker": "name_1",
119
- * "value": "Name",
120
- * "type": "string"
121
- * },
122
- * "products": [
123
- * {
124
- * "productId": 1,
125
- * "quantity": 2
126
- * }
127
- * ],
128
- * "currency": "USD"
129
- * }
126
+ * @param {string} marker - The text identifier of the order storage object. Example: "order_storage_1".
127
+ * @param {number} id - ID of the order object. Example: 12345.
128
+ * @param {IOrderData} body - Object for updating an order. Example:
129
+ {
130
+ "formIdentifier": "bar-orders-form",
131
+ "paymentAccountIdentifier": "usd-payment",
132
+ "formData": {
133
+ "marker": "name_1",
134
+ "value": "Name",
135
+ "type": "string"
136
+ },
137
+ "products": [
138
+ {
139
+ "productId": 1,
140
+ "quantity": 2
141
+ }
142
+ ],
143
+ "currency": "USD"
144
+ }
145
+ * @param {string} [langCode] - Language code. Default: "en_US".
146
+ * @return {IBaseOrdersEntity} Returns an object with the updated order.
147
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
148
+ * @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.
130
149
  */
131
150
  async updateOrderByMarkerAndId(marker, id, body, langCode = this.state.lang) {
151
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
152
  const formData = {};
133
153
  formData[langCode] = Array.isArray(body.formData)
134
154
  ? body.formData