oneentry 1.0.126 → 1.0.127
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 +0 -2
- package/configure.js +25 -18
- package/dist/admins/adminsApi.d.ts +30 -25
- package/dist/admins/adminsApi.js +30 -25
- package/dist/admins/adminsInterfaces.d.ts +45 -54
- package/dist/attribute-sets/attributeSetsApi.d.ts +26 -27
- package/dist/attribute-sets/attributeSetsApi.js +26 -27
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +101 -109
- package/dist/auth-provider/authProviderApi.d.ts +132 -158
- package/dist/auth-provider/authProviderApi.js +131 -157
- package/dist/auth-provider/authProvidersInterfaces.d.ts +241 -237
- package/dist/base/asyncModules.d.ts +23 -21
- package/dist/base/asyncModules.js +30 -25
- package/dist/base/result.d.ts +31 -0
- package/dist/base/result.js +32 -1
- package/dist/base/stateModule.d.ts +10 -0
- package/dist/base/stateModule.js +50 -2
- package/dist/base/syncModules.d.ts +41 -49
- package/dist/base/syncModules.js +49 -48
- package/dist/base/utils.d.ts +38 -7
- package/dist/blocks/blocksApi.d.ts +27 -36
- package/dist/blocks/blocksApi.js +27 -36
- package/dist/blocks/blocksInterfaces.d.ts +92 -97
- package/dist/config.d.ts +13 -0
- package/dist/config.js +30 -0
- package/dist/events/eventsApi.d.ts +16 -33
- package/dist/events/eventsApi.js +32 -46
- package/dist/events/eventsInterfaces.d.ts +42 -37
- package/dist/file-uploading/fileUploadingApi.d.ts +42 -47
- package/dist/file-uploading/fileUploadingApi.js +44 -47
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +49 -60
- package/dist/forms/formsApi.d.ts +15 -14
- package/dist/forms/formsApi.js +15 -14
- package/dist/forms/formsInterfaces.d.ts +36 -40
- package/dist/forms-data/formsDataApi.d.ts +40 -44
- package/dist/forms-data/formsDataApi.js +42 -44
- package/dist/forms-data/formsDataInterfaces.d.ts +231 -231
- package/dist/general-types/generalTypesApi.d.ts +5 -5
- package/dist/general-types/generalTypesApi.js +5 -5
- package/dist/general-types/generalTypesInterfaces.d.ts +6 -9
- package/dist/index.d.ts +12 -13
- package/dist/index.js +12 -13
- package/dist/integration-collections/integrationCollectionsApi.d.ts +84 -98
- package/dist/integration-collections/integrationCollectionsApi.js +86 -102
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +177 -169
- package/dist/locales/localesApi.d.ts +7 -3
- package/dist/locales/localesApi.js +7 -3
- package/dist/locales/localesInterfaces.d.ts +14 -13
- package/dist/menus/menusApi.d.ts +9 -5
- package/dist/menus/menusApi.js +9 -5
- package/dist/menus/menusInterfaces.d.ts +43 -48
- package/dist/menus/menusInterfaces.js +1 -0
- package/dist/orders/ordersApi.d.ts +62 -70
- package/dist/orders/ordersApi.js +62 -71
- package/dist/orders/ordersInterfaces.d.ts +238 -203
- package/dist/pages/pagesApi.d.ts +67 -80
- package/dist/pages/pagesApi.js +71 -81
- package/dist/pages/pagesInterfaces.d.ts +164 -160
- package/dist/payments/paymentsApi.d.ts +24 -34
- package/dist/payments/paymentsApi.js +24 -38
- package/dist/payments/paymentsInterfaces.d.ts +82 -76
- package/dist/product-statuses/productStatusesApi.d.ts +13 -13
- package/dist/product-statuses/productStatusesApi.js +13 -13
- package/dist/product-statuses/productStatusesInterfaces.d.ts +29 -27
- package/dist/products/productsApi.d.ts +246 -267
- package/dist/products/productsApi.js +247 -267
- package/dist/products/productsInterfaces.d.ts +333 -339
- package/dist/system/systemApi.d.ts +19 -21
- package/dist/system/systemApi.js +20 -21
- package/dist/system/systemInterfaces.d.ts +14 -3
- package/dist/templates/templatesApi.d.ts +13 -16
- package/dist/templates/templatesApi.js +13 -16
- package/dist/templates/templatesInterfaces.d.ts +30 -29
- package/dist/templates-preview/templatesPreviewApi.d.ts +10 -11
- package/dist/templates-preview/templatesPreviewApi.js +10 -11
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +61 -64
- package/dist/users/usersApi.d.ts +36 -43
- package/dist/users/usersApi.js +36 -43
- package/dist/users/usersInterfaces.d.ts +92 -96
- package/dist/web-socket/wsApi.d.ts +5 -3
- package/dist/web-socket/wsApi.js +6 -3
- package/dist/web-socket/wsInterfaces.d.ts +7 -2
- package/package.json +16 -12
|
@@ -4,23 +4,23 @@ import type { IError } from '../base/utils';
|
|
|
4
4
|
import type { IGeneralTypes, IGeneralTypesEntity } from './generalTypesInterfaces';
|
|
5
5
|
/**
|
|
6
6
|
* Controllers for working with types
|
|
7
|
-
*
|
|
8
7
|
* @handle /api/content/general-types
|
|
9
8
|
* @class GeneralTypesApi
|
|
10
|
-
* @
|
|
9
|
+
* @augments AsyncModules
|
|
11
10
|
* @implements {IGeneralTypes}
|
|
12
11
|
* @description This class provides methods to interact with general types, including retrieving all types.
|
|
13
12
|
*/
|
|
14
13
|
export default class GeneralTypesApi extends AsyncModules implements IGeneralTypes {
|
|
15
14
|
protected state: StateModule;
|
|
16
15
|
protected _url: string;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
17
19
|
constructor(state: StateModule);
|
|
18
20
|
/**
|
|
19
21
|
* Get all types.
|
|
20
|
-
*
|
|
21
22
|
* @handleName getAllTypes
|
|
22
|
-
*
|
|
23
|
-
* @return {IGeneralTypesEntity[]} Returns an array of general types or an error object if there was an issue.
|
|
23
|
+
* @returns {IGeneralTypesEntity[]} Returns an array of general types or an error object if there was an issue.
|
|
24
24
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
25
25
|
* @description This method retrieves all general types available in the system.
|
|
26
26
|
*/
|
|
@@ -6,24 +6,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const asyncModules_1 = __importDefault(require("../base/asyncModules"));
|
|
7
7
|
/**
|
|
8
8
|
* Controllers for working with types
|
|
9
|
-
*
|
|
10
9
|
* @handle /api/content/general-types
|
|
11
10
|
* @class GeneralTypesApi
|
|
12
|
-
* @
|
|
11
|
+
* @augments AsyncModules
|
|
13
12
|
* @implements {IGeneralTypes}
|
|
14
13
|
* @description This class provides methods to interact with general types, including retrieving all types.
|
|
15
14
|
*/
|
|
16
15
|
class GeneralTypesApi extends asyncModules_1.default {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
17
19
|
constructor(state) {
|
|
18
20
|
super(state);
|
|
19
21
|
this._url = state.url + '/api/content/general-types';
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Get all types.
|
|
23
|
-
*
|
|
24
25
|
* @handleName getAllTypes
|
|
25
|
-
*
|
|
26
|
-
* @return {IGeneralTypesEntity[]} Returns an array of general types or an error object if there was an issue.
|
|
26
|
+
* @returns {IGeneralTypesEntity[]} Returns an array of general types or an error object if there was an issue.
|
|
27
27
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
28
28
|
* @description This method retrieves all general types available in the system.
|
|
29
29
|
*/
|
|
@@ -2,29 +2,26 @@ import type { BlockType } from 'blocks/blocksInterfaces';
|
|
|
2
2
|
import type { IError } from '../base/utils';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for retrieving all general types in the system.
|
|
5
|
-
*
|
|
6
5
|
* @interface IGeneralTypes
|
|
7
|
-
*
|
|
8
|
-
* @property {function} getAllTypes - Get all types.
|
|
6
|
+
* @property {Function} getAllTypes - Get all types.
|
|
9
7
|
* @description This interface defines a method for retrieving all general types in the system.
|
|
10
8
|
*/
|
|
11
9
|
interface IGeneralTypes {
|
|
12
10
|
/**
|
|
13
11
|
* Get all types.
|
|
14
|
-
*
|
|
15
|
-
* @
|
|
12
|
+
* @handleName getAllTypes
|
|
13
|
+
* @returns {IGeneralTypesEntity[]} Returns an array of general types or an error object if there was an issue.
|
|
16
14
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
15
|
+
* @description This method gets all types.
|
|
17
16
|
*/
|
|
18
17
|
getAllTypes(): Promise<IGeneralTypesEntity[] | IError>;
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* Represents a general type entity.
|
|
22
|
-
*
|
|
23
21
|
* @interface IGeneralTypesEntity
|
|
24
|
-
*
|
|
25
|
-
* @property {number} id - Type id. Example: 1.
|
|
26
|
-
* @property {Types} type - Types enum. Example: "product", "category", "etc".
|
|
27
22
|
* @description Represents a general type entity with an identifier and a type.
|
|
23
|
+
* @property {number} id - Type id. Example: 1.
|
|
24
|
+
* @property {Types} type - Types enum. Example: "product", "category", "etc".
|
|
28
25
|
*/
|
|
29
26
|
interface IGeneralTypesEntity {
|
|
30
27
|
id: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,19 +54,18 @@ interface IDefineApi {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Define API.
|
|
57
|
-
*
|
|
58
|
-
* @
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
67
|
-
* @
|
|
68
|
-
*
|
|
69
|
-
* @return List of methods set.
|
|
57
|
+
* @function defineOneEntry
|
|
58
|
+
* @param {string} url - URl of your project.
|
|
59
|
+
* @param {IConfig} config - Custom configuration settings
|
|
60
|
+
* @param {string} [config.token] - Optional token parameter
|
|
61
|
+
* @param {string} [config.langCode] - Optional langCode parameter
|
|
62
|
+
* @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.
|
|
63
|
+
* @param {string} [config.auth] - An object with authorization settings.
|
|
64
|
+
* @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.
|
|
65
|
+
* @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.
|
|
66
|
+
* @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.
|
|
67
|
+
* @returns {IDefineApi} List of methods set.
|
|
68
|
+
* @description Define API.
|
|
70
69
|
*/
|
|
71
70
|
export declare function defineOneEntry(url: string, config: IConfig): IDefineApi;
|
|
72
71
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -32,19 +32,18 @@ const usersApi_1 = __importDefault(require("./users/usersApi"));
|
|
|
32
32
|
const wsApi_1 = __importDefault(require("./web-socket/wsApi"));
|
|
33
33
|
/**
|
|
34
34
|
* Define API.
|
|
35
|
-
*
|
|
36
|
-
* @
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @
|
|
46
|
-
*
|
|
47
|
-
* @return List of methods set.
|
|
35
|
+
* @function defineOneEntry
|
|
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
|
+
* @description Define API.
|
|
48
47
|
*/
|
|
49
48
|
function defineOneEntry(url, config) {
|
|
50
49
|
const stateModule = new stateModule_1.default(url.endsWith('/') ? url.slice(0, -1) : url, config);
|
|
@@ -4,36 +4,36 @@ import type { IError } from '../base/utils';
|
|
|
4
4
|
import type { ICollectionEntity, ICollectionFormObject, ICollectionIsValid, ICollectionRow, ICollectionRowsResponce, ICollectionsApi } from './integrationCollectionsInterfaces';
|
|
5
5
|
/**
|
|
6
6
|
* Controllers for working with attributes.
|
|
7
|
-
*
|
|
8
7
|
* @handle /api/content/integration-collections
|
|
9
8
|
* @class IntegrationCollectionsApi
|
|
10
|
-
* @
|
|
9
|
+
* @augments AsyncModules
|
|
11
10
|
* @implements {ICollectionsApi}
|
|
12
11
|
* @description This class provides methods to interact with integration collections, including retrieving all collections, getting a single collection by ID, and managing collection rows.
|
|
13
12
|
*/
|
|
14
13
|
export default class IntegrationCollectionsApi extends AsyncModules implements ICollectionsApi {
|
|
15
14
|
protected state: StateModule;
|
|
16
15
|
protected _url: string;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
17
19
|
constructor(state: StateModule);
|
|
18
20
|
private _defaultQuery;
|
|
19
21
|
/**
|
|
20
22
|
* Get all collections.
|
|
21
|
-
*
|
|
22
23
|
* @handleName getICollections
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
* @
|
|
36
|
-
* @return {ICollectionEntity[]} Returns an array of ICollection objects or an error object if there was an issue.
|
|
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
|
*/
|
|
@@ -45,35 +45,31 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
45
45
|
}): Promise<ICollectionEntity[] | IError>;
|
|
46
46
|
/**
|
|
47
47
|
* Get a single collection object by id.
|
|
48
|
-
*
|
|
49
48
|
* @handleName getICollectionById
|
|
50
|
-
*
|
|
51
|
-
* @param
|
|
52
|
-
* @
|
|
53
|
-
* @return {ICollectionEntity} Returns an ICollection object or an error object if there was an issue.
|
|
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.
|
|
54
52
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
55
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.
|
|
56
54
|
*/
|
|
57
55
|
getICollectionById(id: number, langCode?: string): Promise<ICollectionEntity | IError>;
|
|
58
56
|
/**
|
|
59
57
|
* Get all records belonging to the collection by collection id.
|
|
60
|
-
*
|
|
61
58
|
* @handleName getICollectionRowsById
|
|
62
|
-
*
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
75
|
-
* @
|
|
76
|
-
* @return {ICollectionRowsResponce} Returns object ItemsWithTotal, where items is an array of requested objects.
|
|
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.
|
|
77
73
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
78
74
|
* @description Get all records belonging to the collection by collection id.
|
|
79
75
|
*/
|
|
@@ -85,90 +81,82 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
85
81
|
}): Promise<ICollectionRowsResponce | IError>;
|
|
86
82
|
/**
|
|
87
83
|
* Check for the existence of a text identifier (marker).
|
|
88
|
-
*
|
|
89
84
|
* @handleName validateICollectionMarker
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
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
|
+
}
|
|
96
90
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
97
91
|
* @description Check for the existence of a text identifier (marker).
|
|
98
92
|
*/
|
|
99
93
|
validateICollectionMarker(marker: string): Promise<ICollectionIsValid | IError>;
|
|
100
94
|
/**
|
|
101
95
|
* Getting all records from the collection.
|
|
102
|
-
*
|
|
103
96
|
* @handleName getICollectionRowsByMarker
|
|
104
|
-
*
|
|
105
|
-
* @param
|
|
106
|
-
* @
|
|
107
|
-
* @return {ICollectionRowsResponce} Returns CollectionRowEntity object.
|
|
97
|
+
* @param {string} marker - Collection text identifier. Example: "collection1".
|
|
98
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
99
|
+
* @returns {ICollectionRowsResponce} Returns CollectionRowEntity object.
|
|
108
100
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
109
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.
|
|
110
102
|
*/
|
|
111
103
|
getICollectionRowsByMarker(marker: string, langCode?: string): Promise<ICollectionRowsResponce | IError>;
|
|
112
104
|
/**
|
|
113
105
|
* Getting one record from the collection.
|
|
114
|
-
*
|
|
115
106
|
* @handleName getICollectionRowByMarkerAndId
|
|
116
|
-
*
|
|
117
|
-
* @param
|
|
118
|
-
* @param
|
|
119
|
-
* @
|
|
120
|
-
* @return {ICollectionRow} Returns CollectionRowEntity object.
|
|
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.
|
|
121
111
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
122
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.
|
|
123
113
|
*/
|
|
124
114
|
getICollectionRowByMarkerAndId(marker: string, id: number, langCode?: string): Promise<ICollectionRow | IError>;
|
|
125
115
|
/**
|
|
126
116
|
* Create a record in the collection.
|
|
127
|
-
*
|
|
128
117
|
* @handleName createICollectionRow
|
|
129
|
-
*
|
|
130
|
-
* @param
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
* @
|
|
145
|
-
* @return {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
|
+
"en_US": [
|
|
124
|
+
{
|
|
125
|
+
"marker": "collection_marker",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"value": "Collection marker"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
133
|
+
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
146
134
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
147
135
|
* @description Create a record in the collection.
|
|
148
136
|
*/
|
|
149
137
|
createICollectionRow(marker: string, body: ICollectionFormObject, langCode?: string): Promise<ICollectionRow | IError>;
|
|
150
138
|
/**
|
|
151
139
|
* Edit a record in the collection.
|
|
152
|
-
*
|
|
153
140
|
* @handleName updateICollectionRow
|
|
154
|
-
*
|
|
155
|
-
* @param
|
|
156
|
-
* @param
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
* @param
|
|
171
|
-
* @
|
|
141
|
+
* @param {string} marker - Text identifier of the collection. Example: "collection1".
|
|
142
|
+
* @param {number} id - Row identifier in the collection. Example: 12.
|
|
143
|
+
* @param {object} body - Object for updating a record in the collection. Example:
|
|
144
|
+
{
|
|
145
|
+
"formIdentifier": "collection-form",
|
|
146
|
+
"formData": {
|
|
147
|
+
"en_US": [
|
|
148
|
+
{
|
|
149
|
+
"marker": "collection_marker",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"value": "Collection marker"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
* @param {string} body.formIdentifier - Textual identifier of the form. Example: "collection-form".
|
|
157
|
+
* @param {any} body.formData - Object with the form data.
|
|
158
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
159
|
+
* @returns {ICollectionRow} Returns object of type ICollectionRow.
|
|
172
160
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
173
161
|
* @description Edit a record in the collection.
|
|
174
162
|
*/
|
|
@@ -178,12 +166,10 @@ export default class IntegrationCollectionsApi extends AsyncModules implements I
|
|
|
178
166
|
}, langCode?: string): Promise<ICollectionRow | IError>;
|
|
179
167
|
/**
|
|
180
168
|
* Deletion of collection record object
|
|
181
|
-
*
|
|
182
169
|
* @handleName deleteICollectionRowByMarkerAndId
|
|
183
|
-
*
|
|
184
|
-
* @param
|
|
185
|
-
* @
|
|
186
|
-
* @return {boolean} Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
170
|
+
* @param {string} marker - text identifier of the collection Example: "collection1".
|
|
171
|
+
* @param {number} id - record identifier in the collection Example: 12.
|
|
172
|
+
* @returns {boolean} Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
187
173
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
188
174
|
* @description Deletion of collection record object
|
|
189
175
|
*/
|