oneentry 1.0.127 → 1.0.128
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/dist/admins/adminsApi.d.ts +20 -20
- package/dist/admins/adminsApi.js +20 -20
- package/dist/admins/adminsInterfaces.d.ts +43 -43
- package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
- package/dist/attribute-sets/attributeSetsApi.js +16 -16
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
- package/dist/auth-provider/authProviderApi.d.ts +126 -126
- package/dist/auth-provider/authProviderApi.js +126 -126
- package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
- package/dist/base/asyncModules.d.ts +17 -17
- package/dist/base/asyncModules.js +26 -21
- package/dist/base/result.d.ts +5 -5
- package/dist/base/result.js +5 -9
- package/dist/base/stateModule.d.ts +1 -1
- package/dist/base/stateModule.js +1 -1
- package/dist/base/syncModules.d.ts +35 -35
- package/dist/base/syncModules.js +92 -45
- package/dist/base/utils.d.ts +13 -13
- package/dist/blocks/blocksApi.d.ts +24 -24
- package/dist/blocks/blocksApi.js +24 -24
- package/dist/blocks/blocksInterfaces.d.ts +85 -85
- package/dist/events/eventsApi.d.ts +11 -11
- package/dist/events/eventsApi.js +11 -11
- package/dist/events/eventsInterfaces.d.ts +23 -23
- package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
- package/dist/file-uploading/fileUploadingApi.js +38 -38
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
- package/dist/forms/formsApi.d.ts +7 -7
- package/dist/forms/formsApi.js +7 -7
- package/dist/forms/formsInterfaces.d.ts +43 -31
- package/dist/forms-data/formsDataApi.d.ts +37 -37
- package/dist/forms-data/formsDataApi.js +37 -38
- package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
- package/dist/general-types/generalTypesApi.d.ts +1 -1
- package/dist/general-types/generalTypesApi.js +1 -1
- package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
- package/dist/integration-collections/integrationCollectionsApi.js +76 -80
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
- package/dist/locales/localesInterfaces.d.ts +8 -8
- package/dist/menus/menusApi.d.ts +3 -3
- package/dist/menus/menusApi.js +3 -3
- package/dist/menus/menusInterfaces.d.ts +39 -39
- package/dist/orders/ordersApi.d.ts +56 -56
- package/dist/orders/ordersApi.js +56 -56
- package/dist/orders/ordersInterfaces.d.ts +204 -198
- package/dist/pages/pagesApi.d.ts +60 -60
- package/dist/pages/pagesApi.js +60 -60
- package/dist/pages/pagesInterfaces.d.ts +133 -141
- package/dist/payments/paymentsApi.d.ts +15 -15
- package/dist/payments/paymentsApi.js +15 -15
- package/dist/payments/paymentsInterfaces.d.ts +55 -55
- package/dist/product-statuses/productStatusesApi.d.ts +7 -7
- package/dist/product-statuses/productStatusesApi.js +7 -7
- package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
- package/dist/products/productsApi.d.ts +240 -240
- package/dist/products/productsApi.js +240 -240
- package/dist/products/productsInterfaces.d.ts +311 -311
- package/dist/system/systemApi.d.ts +10 -10
- package/dist/system/systemApi.js +10 -10
- package/dist/templates/templatesApi.d.ts +8 -8
- package/dist/templates/templatesApi.js +8 -8
- package/dist/templates/templatesInterfaces.d.ts +22 -22
- package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
- package/dist/templates-preview/templatesPreviewApi.js +5 -5
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
- package/dist/users/usersApi.d.ts +29 -29
- package/dist/users/usersApi.js +29 -29
- package/dist/users/usersInterfaces.d.ts +77 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,16 +33,16 @@ const wsApi_1 = __importDefault(require("./web-socket/wsApi"));
|
|
|
33
33
|
/**
|
|
34
34
|
* Define API.
|
|
35
35
|
* @function defineOneEntry
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @returns {IDefineApi}
|
|
36
|
+
* @param {string} url - URl of your project.
|
|
37
|
+
* @param {IConfig} config - Custom configuration settings
|
|
38
|
+
* @param {string} [config.token] - Optional token parameter
|
|
39
|
+
* @param {string} [config.langCode] - Optional langCode parameter
|
|
40
|
+
* @param {boolean} [config.traficLimit] - Some methods use multiple queries to make it easier to work with the API. Set this parameter to "false" to save traffic and decide for yourself what data you need.
|
|
41
|
+
* @param {string} [config.auth] - An object with authorization settings.
|
|
42
|
+
* @param {boolean} [config.auth.customAuth] - Set this flag to true if you want to configure the authorization process yourself. Set the flag to false, or do not pass it at all to have automatic authorization and token renewal.
|
|
43
|
+
* @param {string} [config.auth.refreshToken] - Transfer the refresh token here, for example from the local storage, to resume the user's session. Otherwise, the user will need to log in every time a new session is created.
|
|
44
|
+
* @param {string} [config.auth.saveFunction] - If you want to store the token between sessions, for example in local storage, create a custom function that takes refreshToken as a parameter and executes the necessary instructions. This function will be called every time the tokens are updated.
|
|
45
|
+
* @returns {IDefineApi} List of methods set.
|
|
46
46
|
* @description Define API.
|
|
47
47
|
*/
|
|
48
48
|
function defineOneEntry(url, config) {
|
|
@@ -21,19 +21,19 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
21
21
|
/**
|
|
22
22
|
* Get all collections.
|
|
23
23
|
* @handleName getICollections
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @returns {ICollectionEntity[]}
|
|
24
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
25
|
+
* @param {object} [userQuery] - Optional set query parameters. Example:
|
|
26
|
+
{
|
|
27
|
+
"limit": 0,
|
|
28
|
+
"offset": 30,
|
|
29
|
+
"entityType": "orders",
|
|
30
|
+
"entityId": 1
|
|
31
|
+
}
|
|
32
|
+
* @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 0.
|
|
33
|
+
* @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 30.
|
|
34
|
+
* @param {string} [userQuery.entityType] - Entity type. Example: "orders".
|
|
35
|
+
* @param {number} [userQuery.entityId] - Entity identifier. Example: 1.
|
|
36
|
+
* @returns {ICollectionEntity[]} Returns an array of ICollection objects or an error object if there was an issue.
|
|
37
37
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
38
38
|
* @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.
|
|
39
39
|
*/
|
|
@@ -46,9 +46,9 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
46
46
|
/**
|
|
47
47
|
* Get a single collection object by id.
|
|
48
48
|
* @handleName getICollectionById
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
51
|
-
* @returns {ICollectionEntity}
|
|
49
|
+
* @param {number} id - Collection id. Example: 1.
|
|
50
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
51
|
+
* @returns {ICollectionEntity} Returns an ICollection object or an error object if there was an issue.
|
|
52
52
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
53
53
|
* @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.
|
|
54
54
|
*/
|
|
@@ -56,20 +56,20 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
56
56
|
/**
|
|
57
57
|
* Get all records belonging to the collection by collection id.
|
|
58
58
|
* @handleName getICollectionRowsById
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
* @param
|
|
69
|
-
* @param
|
|
70
|
-
* @param
|
|
71
|
-
* @param
|
|
72
|
-
* @returns {ICollectionRowsResponce}
|
|
59
|
+
* @param {number} id - Collection id. Example: 1.
|
|
60
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
61
|
+
* @param {any} [userQuery] - Optional set query parameters. Example:
|
|
62
|
+
{
|
|
63
|
+
"limit": 0,
|
|
64
|
+
"offset": 30,
|
|
65
|
+
"entityType": "orders",
|
|
66
|
+
"entityId": 1
|
|
67
|
+
}
|
|
68
|
+
* @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 0.
|
|
69
|
+
* @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 30.
|
|
70
|
+
* @param {number} [userQuery.entityType] - Entity type. Example: "orders".
|
|
71
|
+
* @param {number} [userQuery.entityId] - Entity identifier. Example: 1.
|
|
72
|
+
* @returns {ICollectionRowsResponce} Returns object ItemsWithTotal, where items is an array of requested objects.
|
|
73
73
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
74
74
|
* @description Get all records belonging to the collection by collection id.
|
|
75
75
|
*/
|
|
@@ -82,11 +82,11 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
82
82
|
/**
|
|
83
83
|
* Check for the existence of a text identifier (marker).
|
|
84
84
|
* @handleName validateICollectionMarker
|
|
85
|
-
* @param
|
|
86
|
-
* @returns {ICollectionIsValid}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
* @param {string} marker - Collection marker. Example: "collection1".
|
|
86
|
+
* @returns {ICollectionIsValid} Returns an object with a boolean property `valid` indicating whether the marker is valid or not. Example:
|
|
87
|
+
{
|
|
88
|
+
"valid": true
|
|
89
|
+
}
|
|
90
90
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
91
91
|
* @description Check for the existence of a text identifier (marker).
|
|
92
92
|
*/
|
|
@@ -94,9 +94,9 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
94
94
|
/**
|
|
95
95
|
* Getting all records from the collection.
|
|
96
96
|
* @handleName getICollectionRowsByMarker
|
|
97
|
-
* @param
|
|
98
|
-
* @param
|
|
99
|
-
* @returns {ICollectionRowsResponce}
|
|
97
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
98
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
99
|
+
* @returns {ICollectionRowsResponce} Returns CollectionRowEntity object.
|
|
100
100
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
101
101
|
* @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.
|
|
102
102
|
*/
|
|
@@ -104,10 +104,10 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
104
104
|
/**
|
|
105
105
|
* Getting one record from the collection.
|
|
106
106
|
* @handleName getICollectionRowByMarkerAndId
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
110
|
-
* @returns {ICollectionRow}
|
|
107
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
108
|
+
* @param {number} id - Collection record identifier. Example: 1.
|
|
109
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
110
|
+
* @returns {ICollectionRow} Returns CollectionRowEntity object.
|
|
111
111
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
112
112
|
* @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.
|
|
113
113
|
*/
|
|
@@ -115,22 +115,20 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
115
115
|
/**
|
|
116
116
|
* Create a record in the collection.
|
|
117
117
|
* @handleName createICollectionRow
|
|
118
|
-
* @param
|
|
119
|
-
* @param
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
133
|
-
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
118
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
119
|
+
* @param {ICollectionFormObject} body - Object for creating a record. Example:
|
|
120
|
+
{
|
|
121
|
+
"formIdentifier": "collection-form",
|
|
122
|
+
"formData": [
|
|
123
|
+
{
|
|
124
|
+
"marker": "collection_marker",
|
|
125
|
+
"type": "string",
|
|
126
|
+
"value": "Collection marker"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
131
|
+
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
134
132
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
135
133
|
* @description Create a record in the collection.
|
|
136
134
|
*/
|
|
@@ -138,25 +136,23 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
138
136
|
/**
|
|
139
137
|
* Edit a record in the collection.
|
|
140
138
|
* @handleName updateICollectionRow
|
|
141
|
-
* @param
|
|
142
|
-
* @param
|
|
143
|
-
* @param
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
* @param
|
|
157
|
-
* @
|
|
158
|
-
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
159
|
-
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
139
|
+
* @param {string} marker - Text identifier of the collection. Example: "collection1".
|
|
140
|
+
* @param {number} id - Row identifier in the collection. Example: 12.
|
|
141
|
+
* @param {object} body - Object for updating a record in the collection. Example:
|
|
142
|
+
{
|
|
143
|
+
"formIdentifier": "collection-form",
|
|
144
|
+
"formData": [
|
|
145
|
+
{
|
|
146
|
+
"marker": "collection_marker",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"value": "Collection marker"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
* @param {string} body.formIdentifier - Textual identifier of the form. Example: "collection-form".
|
|
153
|
+
* @param {any} body.formData - Object with the form data.
|
|
154
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
155
|
+
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
160
156
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
161
157
|
* @description Edit a record in the collection.
|
|
162
158
|
*/
|
|
@@ -167,9 +163,9 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
167
163
|
/**
|
|
168
164
|
* Deletion of collection record object
|
|
169
165
|
* @handleName deleteICollectionRowByMarkerAndId
|
|
170
|
-
* @param
|
|
171
|
-
* @param
|
|
172
|
-
* @returns {boolean}
|
|
166
|
+
* @param {string} marker - text identifier of the collection Example: "collection1".
|
|
167
|
+
* @param {number} id - record identifier in the collection Example: 12.
|
|
168
|
+
* @returns {boolean} Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
173
169
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
174
170
|
* @description Deletion of collection record object
|
|
175
171
|
*/
|
|
@@ -30,19 +30,19 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
30
30
|
/**
|
|
31
31
|
* Get all collections.
|
|
32
32
|
* @handleName getICollections
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @returns {ICollectionEntity[]}
|
|
33
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
34
|
+
* @param {object} [userQuery] - Optional set query parameters. Example:
|
|
35
|
+
{
|
|
36
|
+
"limit": 0,
|
|
37
|
+
"offset": 30,
|
|
38
|
+
"entityType": "orders",
|
|
39
|
+
"entityId": 1
|
|
40
|
+
}
|
|
41
|
+
* @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 0.
|
|
42
|
+
* @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 30.
|
|
43
|
+
* @param {string} [userQuery.entityType] - Entity type. Example: "orders".
|
|
44
|
+
* @param {number} [userQuery.entityId] - Entity identifier. Example: 1.
|
|
45
|
+
* @returns {ICollectionEntity[]} Returns an array of ICollection objects or an error object if there was an issue.
|
|
46
46
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
47
47
|
* @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.
|
|
48
48
|
*/
|
|
@@ -55,9 +55,9 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
55
55
|
/**
|
|
56
56
|
* Get a single collection object by id.
|
|
57
57
|
* @handleName getICollectionById
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @returns {ICollectionEntity}
|
|
58
|
+
* @param {number} id - Collection id. Example: 1.
|
|
59
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
60
|
+
* @returns {ICollectionEntity} Returns an ICollection object or an error object if there was an issue.
|
|
61
61
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
62
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.
|
|
63
63
|
*/
|
|
@@ -68,20 +68,20 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
68
68
|
/**
|
|
69
69
|
* Get all records belonging to the collection by collection id.
|
|
70
70
|
* @handleName getICollectionRowsById
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* @param
|
|
81
|
-
* @param
|
|
82
|
-
* @param
|
|
83
|
-
* @param
|
|
84
|
-
* @returns {ICollectionRowsResponce}
|
|
71
|
+
* @param {number} id - Collection id. Example: 1.
|
|
72
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
73
|
+
* @param {any} [userQuery] - Optional set query parameters. Example:
|
|
74
|
+
{
|
|
75
|
+
"limit": 0,
|
|
76
|
+
"offset": 30,
|
|
77
|
+
"entityType": "orders",
|
|
78
|
+
"entityId": 1
|
|
79
|
+
}
|
|
80
|
+
* @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 0.
|
|
81
|
+
* @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 30.
|
|
82
|
+
* @param {number} [userQuery.entityType] - Entity type. Example: "orders".
|
|
83
|
+
* @param {number} [userQuery.entityId] - Entity identifier. Example: 1.
|
|
84
|
+
* @returns {ICollectionRowsResponce} Returns object ItemsWithTotal, where items is an array of requested objects.
|
|
85
85
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
86
86
|
* @description Get all records belonging to the collection by collection id.
|
|
87
87
|
*/
|
|
@@ -97,11 +97,11 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
97
97
|
/**
|
|
98
98
|
* Check for the existence of a text identifier (marker).
|
|
99
99
|
* @handleName validateICollectionMarker
|
|
100
|
-
* @param
|
|
101
|
-
* @returns {ICollectionIsValid}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
* @param {string} marker - Collection marker. Example: "collection1".
|
|
101
|
+
* @returns {ICollectionIsValid} Returns an object with a boolean property `valid` indicating whether the marker is valid or not. Example:
|
|
102
|
+
{
|
|
103
|
+
"valid": true
|
|
104
|
+
}
|
|
105
105
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
106
106
|
* @description Check for the existence of a text identifier (marker).
|
|
107
107
|
*/
|
|
@@ -112,9 +112,9 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
112
112
|
/**
|
|
113
113
|
* Getting all records from the collection.
|
|
114
114
|
* @handleName getICollectionRowsByMarker
|
|
115
|
-
* @param
|
|
116
|
-
* @param
|
|
117
|
-
* @returns {ICollectionRowsResponce}
|
|
115
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
116
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
117
|
+
* @returns {ICollectionRowsResponce} Returns CollectionRowEntity object.
|
|
118
118
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
119
119
|
* @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.
|
|
120
120
|
*/
|
|
@@ -125,10 +125,10 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
125
125
|
/**
|
|
126
126
|
* Getting one record from the collection.
|
|
127
127
|
* @handleName getICollectionRowByMarkerAndId
|
|
128
|
-
* @param
|
|
129
|
-
* @param
|
|
130
|
-
* @param
|
|
131
|
-
* @returns {ICollectionRow}
|
|
128
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
129
|
+
* @param {number} id - Collection record identifier. Example: 1.
|
|
130
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
131
|
+
* @returns {ICollectionRow} Returns CollectionRowEntity object.
|
|
132
132
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
133
133
|
* @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.
|
|
134
134
|
*/
|
|
@@ -139,22 +139,20 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
139
139
|
/**
|
|
140
140
|
* Create a record in the collection.
|
|
141
141
|
* @handleName createICollectionRow
|
|
142
|
-
* @param
|
|
143
|
-
* @param
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
157
|
-
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
142
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
143
|
+
* @param {ICollectionFormObject} body - Object for creating a record. Example:
|
|
144
|
+
{
|
|
145
|
+
"formIdentifier": "collection-form",
|
|
146
|
+
"formData": [
|
|
147
|
+
{
|
|
148
|
+
"marker": "collection_marker",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"value": "Collection marker"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
155
|
+
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
158
156
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
159
157
|
* @description Create a record in the collection.
|
|
160
158
|
*/
|
|
@@ -165,25 +163,23 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
165
163
|
/**
|
|
166
164
|
* Edit a record in the collection.
|
|
167
165
|
* @handleName updateICollectionRow
|
|
168
|
-
* @param
|
|
169
|
-
* @param
|
|
170
|
-
* @param
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* @param
|
|
184
|
-
* @
|
|
185
|
-
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
186
|
-
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
166
|
+
* @param {string} marker - Text identifier of the collection. Example: "collection1".
|
|
167
|
+
* @param {number} id - Row identifier in the collection. Example: 12.
|
|
168
|
+
* @param {object} body - Object for updating a record in the collection. Example:
|
|
169
|
+
{
|
|
170
|
+
"formIdentifier": "collection-form",
|
|
171
|
+
"formData": [
|
|
172
|
+
{
|
|
173
|
+
"marker": "collection_marker",
|
|
174
|
+
"type": "string",
|
|
175
|
+
"value": "Collection marker"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
* @param {string} body.formIdentifier - Textual identifier of the form. Example: "collection-form".
|
|
180
|
+
* @param {any} body.formData - Object with the form data.
|
|
181
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
182
|
+
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
187
183
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
188
184
|
* @description Edit a record in the collection.
|
|
189
185
|
*/
|
|
@@ -194,9 +190,9 @@ class IntegrationCollectionsApi extends asyncModules_1.default {
|
|
|
194
190
|
/**
|
|
195
191
|
* Deletion of collection record object
|
|
196
192
|
* @handleName deleteICollectionRowByMarkerAndId
|
|
197
|
-
* @param
|
|
198
|
-
* @param
|
|
199
|
-
* @returns {boolean}
|
|
193
|
+
* @param {string} marker - text identifier of the collection Example: "collection1".
|
|
194
|
+
* @param {number} id - record identifier in the collection Example: 12.
|
|
195
|
+
* @returns {boolean} Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
200
196
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
201
197
|
* @description Deletion of collection record object
|
|
202
198
|
*/
|