oneentry 1.0.172 → 1.0.174
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/changelog.md +48 -0
- package/dist/admins/adminsApi.d.ts +7 -7
- package/dist/admins/adminsApi.js +7 -7
- package/dist/admins/adminsInterfaces.d.ts +22 -22
- package/dist/attribute-sets/attributeSetsApi.d.ts +8 -8
- package/dist/attribute-sets/attributeSetsApi.js +8 -8
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
- package/dist/auth-provider/authProviderApi.d.ts +31 -31
- package/dist/auth-provider/authProviderApi.js +31 -31
- package/dist/auth-provider/authProvidersInterfaces.d.ts +54 -54
- package/dist/base/asyncModules.d.ts +6 -6
- package/dist/base/asyncModules.js +6 -6
- package/dist/base/syncModules.d.ts +1 -1
- package/dist/base/syncModules.js +1 -1
- package/dist/base/utils.d.ts +4 -4
- package/dist/blocks/blocksApi.d.ts +35 -35
- package/dist/blocks/blocksApi.js +35 -35
- package/dist/blocks/blocksInterfaces.d.ts +55 -55
- package/dist/discounts/discountsApi.d.ts +14 -14
- package/dist/discounts/discountsApi.js +14 -14
- package/dist/discounts/discountsInterfaces.d.ts +52 -52
- package/dist/events/eventsApi.d.ts +13 -13
- package/dist/events/eventsApi.js +13 -13
- package/dist/events/eventsInterfaces.d.ts +18 -18
- package/dist/file-uploading/fileUploadingApi.d.ts +16 -16
- package/dist/file-uploading/fileUploadingApi.js +14 -17
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +30 -30
- package/dist/filters/filtersApi.d.ts +1 -1
- package/dist/filters/filtersApi.js +1 -1
- package/dist/filters/filtersInterfaces.d.ts +7 -7
- package/dist/forms/formsApi.d.ts +3 -3
- package/dist/forms/formsApi.js +3 -3
- package/dist/forms/formsInterfaces.d.ts +42 -42
- package/dist/forms-data/formsDataApi.d.ts +14 -14
- package/dist/forms-data/formsDataApi.js +14 -14
- package/dist/forms-data/formsDataInterfaces.d.ts +67 -68
- package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/integration-collections/integrationCollectionsApi.d.ts +26 -30
- package/dist/integration-collections/integrationCollectionsApi.js +24 -28
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +61 -60
- package/dist/locales/localesInterfaces.d.ts +8 -8
- package/dist/menus/menusApi.d.ts +1 -1
- package/dist/menus/menusApi.js +1 -1
- package/dist/menus/menusInterfaces.d.ts +12 -12
- package/dist/orders/ordersApi.d.ts +26 -26
- package/dist/orders/ordersApi.js +26 -26
- package/dist/orders/ordersInterfaces.d.ts +101 -101
- package/dist/pages/pagesApi.d.ts +6 -6
- package/dist/pages/pagesApi.js +6 -6
- package/dist/pages/pagesInterfaces.d.ts +46 -46
- package/dist/payments/paymentsApi.d.ts +8 -8
- package/dist/payments/paymentsApi.js +8 -8
- package/dist/payments/paymentsInterfaces.d.ts +31 -31
- package/dist/product-statuses/productStatusesApi.d.ts +2 -2
- package/dist/product-statuses/productStatusesApi.js +2 -2
- package/dist/product-statuses/productStatusesInterfaces.d.ts +8 -8
- package/dist/products/productsApi.d.ts +37 -37
- package/dist/products/productsApi.js +36 -36
- package/dist/products/productsInterfaces.d.ts +100 -100
- package/dist/search/searchApi.d.ts +3 -3
- package/dist/search/searchApi.js +3 -3
- package/dist/search/searchInterfaces.d.ts +4 -4
- package/dist/sitemap/sitemapApi.d.ts +1 -1
- package/dist/sitemap/sitemapApi.js +1 -1
- package/dist/sitemap/sitemapInterfaces.d.ts +2 -2
- package/dist/subscriptions/subscriptionsApi.d.ts +3 -3
- package/dist/subscriptions/subscriptionsApi.js +3 -3
- package/dist/subscriptions/subscriptionsInterfaces.d.ts +11 -11
- package/dist/system/systemApi.d.ts +4 -4
- package/dist/system/systemApi.js +2 -2
- package/dist/system/systemInterfaces.d.ts +11 -5
- package/dist/templates/templatesApi.d.ts +5 -5
- package/dist/templates/templatesApi.js +5 -5
- package/dist/templates/templatesInterfaces.d.ts +13 -13
- package/dist/templates-preview/templatesPreviewApi.d.ts +1 -1
- package/dist/templates-preview/templatesPreviewApi.js +1 -1
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
- package/dist/user-activity/userActivityApi.d.ts +1 -1
- package/dist/user-activity/userActivityApi.js +1 -1
- package/dist/user-activity/userActivityInterfaces.d.ts +4 -4
- package/dist/user-groups/userGroupsApi.d.ts +1 -1
- package/dist/user-groups/userGroupsApi.js +1 -1
- package/dist/user-groups/userGroupsInterfaces.d.ts +5 -5
- package/dist/users/usersApi.d.ts +7 -7
- package/dist/users/usersApi.js +7 -7
- package/dist/users/usersInterfaces.d.ts +34 -34
- package/esm/admins/adminsApi.d.ts +7 -7
- package/esm/admins/adminsApi.js +7 -7
- package/esm/admins/adminsInterfaces.d.ts +22 -22
- package/esm/attribute-sets/attributeSetsApi.d.ts +8 -8
- package/esm/attribute-sets/attributeSetsApi.js +8 -8
- package/esm/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
- package/esm/auth-provider/authProviderApi.d.ts +31 -31
- package/esm/auth-provider/authProviderApi.js +31 -31
- package/esm/auth-provider/authProvidersInterfaces.d.ts +54 -54
- package/esm/base/asyncModules.d.ts +6 -6
- package/esm/base/asyncModules.js +6 -6
- package/esm/base/syncModules.d.ts +1 -1
- package/esm/base/syncModules.js +1 -1
- package/esm/base/utils.d.ts +4 -4
- package/esm/blocks/blocksApi.d.ts +35 -35
- package/esm/blocks/blocksApi.js +35 -35
- package/esm/blocks/blocksInterfaces.d.ts +55 -55
- package/esm/discounts/discountsApi.d.ts +14 -14
- package/esm/discounts/discountsApi.js +14 -14
- package/esm/discounts/discountsInterfaces.d.ts +52 -52
- package/esm/events/eventsApi.d.ts +13 -13
- package/esm/events/eventsApi.js +13 -13
- package/esm/events/eventsInterfaces.d.ts +18 -18
- package/esm/file-uploading/fileUploadingApi.d.ts +16 -16
- package/esm/file-uploading/fileUploadingApi.js +14 -17
- package/esm/file-uploading/fileUploadingInterfaces.d.ts +30 -30
- package/esm/filters/filtersApi.d.ts +1 -1
- package/esm/filters/filtersApi.js +1 -1
- package/esm/filters/filtersInterfaces.d.ts +7 -7
- package/esm/forms/formsApi.d.ts +3 -3
- package/esm/forms/formsApi.js +3 -3
- package/esm/forms/formsInterfaces.d.ts +42 -42
- package/esm/forms-data/formsDataApi.d.ts +14 -14
- package/esm/forms-data/formsDataApi.js +14 -14
- package/esm/forms-data/formsDataInterfaces.d.ts +67 -68
- package/esm/general-types/generalTypesInterfaces.d.ts +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/integration-collections/integrationCollectionsApi.d.ts +26 -30
- package/esm/integration-collections/integrationCollectionsApi.js +24 -28
- package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +61 -60
- package/esm/locales/localesInterfaces.d.ts +8 -8
- package/esm/menus/menusApi.d.ts +1 -1
- package/esm/menus/menusApi.js +1 -1
- package/esm/menus/menusInterfaces.d.ts +12 -12
- package/esm/orders/ordersApi.d.ts +26 -26
- package/esm/orders/ordersApi.js +26 -26
- package/esm/orders/ordersInterfaces.d.ts +101 -101
- package/esm/pages/pagesApi.d.ts +6 -6
- package/esm/pages/pagesApi.js +6 -6
- package/esm/pages/pagesInterfaces.d.ts +46 -46
- package/esm/payments/paymentsApi.d.ts +8 -8
- package/esm/payments/paymentsApi.js +8 -8
- package/esm/payments/paymentsInterfaces.d.ts +31 -31
- package/esm/product-statuses/productStatusesApi.d.ts +2 -2
- package/esm/product-statuses/productStatusesApi.js +2 -2
- package/esm/product-statuses/productStatusesInterfaces.d.ts +8 -8
- package/esm/products/productsApi.d.ts +37 -37
- package/esm/products/productsApi.js +36 -36
- package/esm/products/productsInterfaces.d.ts +100 -100
- package/esm/search/searchApi.d.ts +3 -3
- package/esm/search/searchApi.js +3 -3
- package/esm/search/searchInterfaces.d.ts +4 -4
- package/esm/sitemap/sitemapApi.d.ts +1 -1
- package/esm/sitemap/sitemapApi.js +1 -1
- package/esm/sitemap/sitemapInterfaces.d.ts +2 -2
- package/esm/subscriptions/subscriptionsApi.d.ts +3 -3
- package/esm/subscriptions/subscriptionsApi.js +3 -3
- package/esm/subscriptions/subscriptionsInterfaces.d.ts +11 -11
- package/esm/system/systemApi.d.ts +4 -4
- package/esm/system/systemApi.js +2 -2
- package/esm/system/systemInterfaces.d.ts +11 -5
- package/esm/templates/templatesApi.d.ts +5 -5
- package/esm/templates/templatesApi.js +5 -5
- package/esm/templates/templatesInterfaces.d.ts +13 -13
- package/esm/templates-preview/templatesPreviewApi.d.ts +1 -1
- package/esm/templates-preview/templatesPreviewApi.js +1 -1
- package/esm/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
- package/esm/user-activity/userActivityApi.d.ts +1 -1
- package/esm/user-activity/userActivityApi.js +1 -1
- package/esm/user-activity/userActivityInterfaces.d.ts +4 -4
- package/esm/user-groups/userGroupsApi.d.ts +1 -1
- package/esm/user-groups/userGroupsApi.js +1 -1
- package/esm/user-groups/userGroupsInterfaces.d.ts +5 -5
- package/esm/users/usersApi.d.ts +7 -7
- package/esm/users/usersApi.js +7 -7
- package/esm/users/usersInterfaces.d.ts +34 -34
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# SDK Change Log
|
|
2
2
|
|
|
3
|
+
## v.1.0.174
|
|
4
|
+
|
|
5
|
+
### What's Changed
|
|
6
|
+
|
|
7
|
+
- **⚠️ Breaking (types): `IBodyPostFormData.replayTo` is `number | null`.** It was declared `string | null` and described as the email to reply to. The endpoint takes the id of the parent form data record and stores it as `parentId` — `replayTo: 9262` comes back as `parentId: 9262`, while an email answers `500 invalid input syntax for type integer`. Code that passed `null` is unaffected (CMS-1087).
|
|
8
|
+
|
|
9
|
+
- **`Products.getProductsCountByPageId` takes `id: number | string`.** It was `string` only, while `getProductsByPageId` takes a `number` for the same page id, so `getProductsCountByPageId(10)` did not compile. A string id still compiles (CMS-1087).
|
|
10
|
+
|
|
11
|
+
### What's Fixed
|
|
12
|
+
|
|
13
|
+
- **JSDoc that the documentation site is generated from** (CMS-1087).
|
|
14
|
+
- Tracker card numbers, stand names and dates are gone from the public JSDoc and so from `.d.ts`; the history stays in code comments and in this change log.
|
|
15
|
+
- About 600 field and parameter descriptions are rewritten after the documentation site's edits, checked against the sources and the API reference: literal translations ("A sign of page visibility", "Set of attributes id", "User id of the linked template"), descriptions that did not say what a field holds, and pagination parameters described only as "Parameter for pagination". `templateIdentifier` and `attributeSetIdentifier` are described as markers, not ids.
|
|
16
|
+
- `forms-data`: `formIdentifier` is the form marker, not "The identifier of the page"; `time` is the date of the record, not "The identifier of the form"; `entityId` is the id of the record's entity, not "Form module config Id"; `ip` and `isUserAdmin` are described instead of repeated.
|
|
17
|
+
- `AttributesSets.getAttributes`: `sortBy` is the sort key (`id` or `position`); it carried the description of `typeId`.
|
|
18
|
+
- `Forms`: `isSignUp` and `isSignUpRequired` no longer share one description. `IntegrationCollections`: `valid` is described as the boolean it is.
|
|
19
|
+
- `IFilterParams.pageUrl` has a single URL as its example, not an array. `isPositionLocked` is marked optional in the JSDoc, as in the type. `IUserEntity.total` is described as the API returns it — a numeric string the API reference does not describe.
|
|
20
|
+
- Typos: "Deault: []" (six places), `Default: "en_US".=`, `Example: "Product Template"..`.
|
|
21
|
+
|
|
22
|
+
### Tests
|
|
23
|
+
|
|
24
|
+
- **`callercontracts.spec.ts`**: a numeric `replayTo` must compile and an email must not; `getProductsCountByPageId(10)` must compile and request `/page/10/counts`.
|
|
25
|
+
|
|
26
|
+
## v.1.0.173
|
|
27
|
+
|
|
28
|
+
### What's Changed
|
|
29
|
+
|
|
30
|
+
- **⚠️ Breaking (types): `FileUploading.upload` and `FileUploading.delete` require `fileQuery`, and `IUploadingQuery` requires `type`, `entity` and `id`.** The signature and the JSDoc declared all of them optional, and the SDK filled the gaps with `null` — which the endpoint refuses: without any of the three both methods answer `400 type should not be empty; entity should not be empty; id should not be empty`, and a `delete` without `type` leaves the file in place. A call that compiled could never succeed. It is now a compile error instead of a `400` at run time; code that already passed a full `fileQuery` is unaffected. `width`, `height`, `compress` and `template` stay optional. The per-field `fileQuery` of `postFormsData` is unchanged — there the SDK still picks a folder when none is given (CMS-1085).
|
|
31
|
+
|
|
32
|
+
- **`IntegrationCollections` types accept the calls the API accepts.** `ICollectionFormObject.formData` was declared as a map keyed by language only, so the flat array `[{ marker, type, value }]` shown in the JSDoc example of `createICollectionRow` — and stored by the platform — did not compile; it is now `ICollectionFormData[] | Record<string, ICollectionFormData[]>`. All four fields of `ICollectionQuery` were required, so `{ limit, offset }` did not compile either; they are optional now. `getICollections` takes the new `ICollectionsListQuery` (`limit`, `offset`): the collection list has no entity filter. The JSDoc of both list methods gave the pagination defaults swapped (`limit` 0, `offset` 30); the code has always used `limit` 30, `offset` 0, and so does the JSDoc now (CMS-1078, CMS-1086).
|
|
33
|
+
|
|
34
|
+
- **`IFilterParams.attributeMarker` and `conditionValue` are optional.** A filter entry may select by `statusMarker` (or `pageUrls`, `title`) alone — `getProducts([{ statusMarker: 'sale' }])` is answered and filtered by the endpoint (an unknown status gives `total: 0`), but the type refused it without a cast (CMS-1086).
|
|
35
|
+
|
|
36
|
+
- **`System.getApiStat` is typed.** It returned `Promise<unknown>` and its JSDoc promised "object with date and count"; the endpoint answers an array of one-key day objects, `[{ "2026-10-25": 17280 }, { "2026-10-26": 13671 }]`. The return type is now `IApiStatEntry[] | IError`, with `IApiStatEntry = Record<string, number>` exported (CMS-1077).
|
|
37
|
+
|
|
38
|
+
### What's Fixed
|
|
39
|
+
|
|
40
|
+
- **JSDoc that the documentation site is generated from.**
|
|
41
|
+
- `IConfig.traficLimit` and the `config.traficLimit` parameter of `defineOneEntry` said "set it to `false` to save traffic" — the opposite of the code: `true` makes the SDK skip its follow-up requests (one request instead of six for a quick page search) and shortens some results to `{ id, title }` cards (CMS-1084).
|
|
42
|
+
- `Templates.getAllTemplates`, `getTemplateByType` and `getTemplateByMarker` named `GroupedTemplatesObject` and `TemplateEntity`, which do not exist; they name `BlockType` and `ITemplateEntity` now, and `getTemplateByType` is described as the array it returns (CMS-1077).
|
|
43
|
+
- `AuthProvider.getActiveSessionsByMarker` carried the description of `getAuthProviderByMarker`; it describes the user's active sessions now (CMS-1086).
|
|
44
|
+
- `ProductStatuses.getProductsByStatusMarker` and `validateMarker` called their argument a product marker; it is a product status marker (CMS-1086).
|
|
45
|
+
- Examples carried Russian data into English documentation: `"Ivan"` in the order examples and `"ru-RU"` in `IActiveSession` are `"John"` and `"en-US"` (CMS-1086).
|
|
46
|
+
|
|
47
|
+
### Tests
|
|
48
|
+
|
|
49
|
+
- **`callercontracts.spec.ts` checks the types against the API.** ts-jest type-checks the file, so a type that drifts back fails the run: a flat collection `formData`, `{ limit, offset }` as a collection query, a status-only product filter and the `getApiStat` array must compile, and `upload` / `delete` without `fileQuery` must not (`@ts-expect-error`). The test client is typed now — it was `any`, which would have let such checks pass silently. Against 1.0.172 the file does not compile, with six errors naming exactly these types.
|
|
50
|
+
|
|
3
51
|
## v.1.0.172
|
|
4
52
|
|
|
5
53
|
### What's Fixed
|
|
@@ -25,7 +25,7 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
|
|
|
25
25
|
/**
|
|
26
26
|
* Get all admins objects with filters.
|
|
27
27
|
* @handleName getAdminsInfo
|
|
28
|
-
* @param {IFilterParams[]} [body] -
|
|
28
|
+
* @param {IFilterParams[]} [body] - Filter objects with search conditions. Default: `[]`.
|
|
29
29
|
* @example
|
|
30
30
|
[
|
|
31
31
|
{
|
|
@@ -39,12 +39,12 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
|
|
|
39
39
|
"conditionValue": 3
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
|
-
* @param {string} [body.attributeMarker] -
|
|
42
|
+
* @param {string} [body.attributeMarker] - Marker of the attribute in the set. Example: "num".
|
|
43
43
|
* @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
|
|
44
44
|
* @param {number | string | null} [body.conditionValue] - Value of the condition. Example: "new".
|
|
45
45
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
46
|
-
* @param {number} [offset] -
|
|
47
|
-
* @param {number} [limit] -
|
|
46
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
47
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
48
48
|
* @returns {Promise<IAdminEntity[] | IError>} Returns an array of admin objects.
|
|
49
49
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
50
50
|
* @see {@link https://js-sdk.oneentry.cloud/docs/admins/getAdminsInfo getAdminsInfo} documentation.
|
|
@@ -53,10 +53,10 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
|
|
|
53
53
|
/**
|
|
54
54
|
* Semantic (vector) search for admins.
|
|
55
55
|
* @handleName getAdminsByVectorSearch
|
|
56
|
-
* @param {IAdminsVectorSearch} body - Vector search
|
|
56
|
+
* @param {IAdminsVectorSearch} body - Vector search parameters. Example: `{ queryText: "content manager" }`.
|
|
57
57
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
58
|
-
* @param {number} [offset] -
|
|
59
|
-
* @param {number} [limit] -
|
|
58
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
59
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
60
60
|
* @returns {Promise<IVectorSearchResponse<IAdminsResponse> | IError>} Returns an object with an array of found admins and total count.
|
|
61
61
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
62
62
|
* @description This method performs a semantic (vector) search for admins.
|
package/dist/admins/adminsApi.js
CHANGED
|
@@ -62,7 +62,7 @@ class AdminsApi extends asyncModules_1.default {
|
|
|
62
62
|
/**
|
|
63
63
|
* Get all admins objects with filters.
|
|
64
64
|
* @handleName getAdminsInfo
|
|
65
|
-
* @param {IFilterParams[]} [body] -
|
|
65
|
+
* @param {IFilterParams[]} [body] - Filter objects with search conditions. Default: `[]`.
|
|
66
66
|
* @example
|
|
67
67
|
[
|
|
68
68
|
{
|
|
@@ -76,12 +76,12 @@ class AdminsApi extends asyncModules_1.default {
|
|
|
76
76
|
"conditionValue": 3
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
|
-
* @param {string} [body.attributeMarker] -
|
|
79
|
+
* @param {string} [body.attributeMarker] - Marker of the attribute in the set. Example: "num".
|
|
80
80
|
* @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
|
|
81
81
|
* @param {number | string | null} [body.conditionValue] - Value of the condition. Example: "new".
|
|
82
82
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
83
|
-
* @param {number} [offset] -
|
|
84
|
-
* @param {number} [limit] -
|
|
83
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
84
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
85
85
|
* @returns {Promise<IAdminEntity[] | IError>} Returns an array of admin objects.
|
|
86
86
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
87
87
|
* @see {@link https://js-sdk.oneentry.cloud/docs/admins/getAdminsInfo getAdminsInfo} documentation.
|
|
@@ -100,10 +100,10 @@ class AdminsApi extends asyncModules_1.default {
|
|
|
100
100
|
/**
|
|
101
101
|
* Semantic (vector) search for admins.
|
|
102
102
|
* @handleName getAdminsByVectorSearch
|
|
103
|
-
* @param {IAdminsVectorSearch} body - Vector search
|
|
103
|
+
* @param {IAdminsVectorSearch} body - Vector search parameters. Example: `{ queryText: "content manager" }`.
|
|
104
104
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
105
|
-
* @param {number} [offset] -
|
|
106
|
-
* @param {number} [limit] -
|
|
105
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
106
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
107
107
|
* @returns {Promise<IVectorSearchResponse<IAdminsResponse> | IError>} Returns an object with an array of found admins and total count.
|
|
108
108
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
109
109
|
* @description This method performs a semantic (vector) search for admins.
|
|
@@ -9,7 +9,7 @@ interface IAdmins {
|
|
|
9
9
|
/**
|
|
10
10
|
* Get all admins objects with filters.
|
|
11
11
|
* @handleName getAdminsInfo
|
|
12
|
-
* @param {IFilterParams[]} [body] -
|
|
12
|
+
* @param {IFilterParams[]} [body] - Filter objects with search conditions. Default: `[]`.
|
|
13
13
|
* @example
|
|
14
14
|
[
|
|
15
15
|
{
|
|
@@ -23,12 +23,12 @@ interface IAdmins {
|
|
|
23
23
|
"conditionValue": 3
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
|
-
* @param {string} [body.attributeMarker] -
|
|
26
|
+
* @param {string} [body.attributeMarker] - Marker of the attribute in the set. Example: "num".
|
|
27
27
|
* @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
|
|
28
28
|
* @param {number | string | null} [body.conditionValue] - Value of the condition. Example: "new".
|
|
29
29
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
30
|
-
* @param {number} [offset] -
|
|
31
|
-
* @param {number} [limit] -
|
|
30
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
31
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
32
32
|
* @returns {IAdminEntity[]} Returns an array of admin objects.
|
|
33
33
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
34
34
|
*/
|
|
@@ -36,10 +36,10 @@ interface IAdmins {
|
|
|
36
36
|
/**
|
|
37
37
|
* Semantic (vector) search for admins.
|
|
38
38
|
* @handleName getAdminsByVectorSearch
|
|
39
|
-
* @param {IAdminsVectorSearch} body - Vector search
|
|
39
|
+
* @param {IAdminsVectorSearch} body - Vector search parameters. Example: `{ queryText: "content manager" }`.
|
|
40
40
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
41
|
-
* @param {number} [offset] -
|
|
42
|
-
* @param {number} [limit] -
|
|
41
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
42
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
43
43
|
* @returns {IVectorSearchResponse<IAdminsResponse>} Returns an object with an array of found admins, total count and indexReady.
|
|
44
44
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
45
45
|
*/
|
|
@@ -50,8 +50,8 @@ interface IAdmins {
|
|
|
50
50
|
* @interface IAdminsVectorSearch
|
|
51
51
|
* @property {string} queryText - Natural-language search query. Example: "content manager".
|
|
52
52
|
* @property {number} [vectorDistanceThreshold] - Override of the cosine distance threshold (0..2). Example: 0.3.
|
|
53
|
-
* @property {number} [maxHits] -
|
|
54
|
-
* @property {boolean} [debug] - When true
|
|
53
|
+
* @property {number} [maxHits] - Number of top candidates fetched before pagination. Default: 100. Maximum: 500. Example: 10.
|
|
54
|
+
* @property {boolean} [debug] - When `true`, each returned item gets a `distance` field. Example: false.
|
|
55
55
|
* @description Body for the admins vector/search endpoint.
|
|
56
56
|
*/
|
|
57
57
|
interface IAdminsVectorSearch {
|
|
@@ -62,7 +62,7 @@ interface IAdminsVectorSearch {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @interface IAdminsResponse
|
|
65
|
-
* @property {IAdminEntity[]} items -
|
|
65
|
+
* @property {IAdminEntity[]} items - Admins that match the query.
|
|
66
66
|
* @property {number} total - Total number of found records. Example: 100.
|
|
67
67
|
* @description This interface defines the structure of a response containing multiple admin entities, including the total count and an array of admin items.
|
|
68
68
|
*/
|
|
@@ -73,12 +73,12 @@ interface IAdminsResponse {
|
|
|
73
73
|
/**
|
|
74
74
|
* Interface representing a Position entity.
|
|
75
75
|
* @interface IPosition
|
|
76
|
-
* @property {number} id -
|
|
76
|
+
* @property {number} id - ID of the object. Example: 1764.
|
|
77
77
|
* @property {boolean} [isLocked] - Indicates whether the position is locked or not. Example: false.
|
|
78
78
|
* @property {number} objectId - The unique identifier of the object. Example: 120.
|
|
79
79
|
* @property {number} [objectCategoryId] - The unique identifier of the object's category. Example: 5.
|
|
80
80
|
* @property {string} objectType - The type of the object. Example: "admin".
|
|
81
|
-
* @property {number} position -
|
|
81
|
+
* @property {number} position - Position of the object, used for sorting. Example: 192.
|
|
82
82
|
* @description This interface outlines the properties associated with a position within a system.
|
|
83
83
|
*/
|
|
84
84
|
interface IPosition {
|
|
@@ -92,13 +92,13 @@ interface IPosition {
|
|
|
92
92
|
/**
|
|
93
93
|
* Interface representing an Admin Entity.
|
|
94
94
|
* @interface IAdminEntity
|
|
95
|
-
* @property {number} id -
|
|
96
|
-
* @property {number | null} attributeSetId -
|
|
97
|
-
* @property {string} identifier -
|
|
98
|
-
* @property {string | null} attributeSetIdentifier -
|
|
99
|
-
* @property {number | null} position - Position
|
|
100
|
-
* @property {boolean} isSync -
|
|
101
|
-
* @property {IAttributeValues} attributeValues -
|
|
95
|
+
* @property {number} id - Object ID. Example: 1764.
|
|
96
|
+
* @property {number | null} attributeSetId - ID of the attribute set in use. Example: 120.
|
|
97
|
+
* @property {string} identifier - Text identifier (marker) of the object. Example: "admin1".
|
|
98
|
+
* @property {string | null} attributeSetIdentifier - Marker of the attribute set. Example: "admins".
|
|
99
|
+
* @property {number | null} position - Position used for sorting. Example: 1.
|
|
100
|
+
* @property {boolean} isSync - Whether the page is indexed. Example: true.
|
|
101
|
+
* @property {IAttributeValues} attributeValues - Attribute values keyed by attribute marker.
|
|
102
102
|
* @example
|
|
103
103
|
[
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@ interface IPosition {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
|
-
* @property {IFormConfig[]} [moduleFormConfigs] -
|
|
111
|
+
* @property {IFormConfig[]} [moduleFormConfigs] - Form configurations of the module associated with the admin.
|
|
112
112
|
* @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
|
|
113
113
|
* @description This interface captures the essential details and additional attributes of an admin entity.
|
|
114
114
|
*/
|
|
@@ -127,8 +127,8 @@ interface IAdminEntity {
|
|
|
127
127
|
* Interface representing a query for fetching admin data.
|
|
128
128
|
* @interface IAdminQuery
|
|
129
129
|
* @property {string} langCode - Language code. Default: "en_US".
|
|
130
|
-
* @property {number} limit -
|
|
131
|
-
* @property {number} offset -
|
|
130
|
+
* @property {number} limit - Maximum number of records to return. Default: 30.
|
|
131
|
+
* @property {number} offset - Number of records to skip. Default: 0.
|
|
132
132
|
* @description This interface defines the parameters required for querying admin data, including optional defaults.
|
|
133
133
|
*/
|
|
134
134
|
interface IAdminQuery {
|
|
@@ -24,10 +24,10 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
|
|
|
24
24
|
* Getting all attribute sets objects.
|
|
25
25
|
* @handleName getAttributes
|
|
26
26
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
27
|
-
* @param {number} [offset] -
|
|
28
|
-
* @param {number} [limit] -
|
|
29
|
-
* @param {number} [typeId] -
|
|
30
|
-
* @param {string} [sortBy] -
|
|
27
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
28
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
29
|
+
* @param {number} [typeId] - ID of the attribute set type to filter by. Default: null.
|
|
30
|
+
* @param {string} [sortBy] - Field to sort by: `id` or `position`. Default: "id".
|
|
31
31
|
* @returns {Promise<IAttributesSetsResponse | IError>} Returns object with array of IAttributeSetsEntity and total items count.
|
|
32
32
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
33
33
|
* @see {@link https://js-sdk.oneentry.cloud/docs/attribute-sets/getAttributes getAttributes} documentation.
|
|
@@ -36,7 +36,7 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
|
|
|
36
36
|
/**
|
|
37
37
|
* Getting all attributes with data from the attribute set.
|
|
38
38
|
* @handleName getAttributesByMarker
|
|
39
|
-
* @param {string} marker -
|
|
39
|
+
* @param {string} marker - Marker of the attribute. Example: "productAttributes".
|
|
40
40
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
41
41
|
* @returns {Promise<IAttributesSetsEntity[] | IError>} Returns an array of Attributes objects.
|
|
42
42
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -46,8 +46,8 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
|
|
|
46
46
|
/**
|
|
47
47
|
* Get a single attribute with data from the attribute sets.
|
|
48
48
|
* @handleName getSingleAttributeByMarkerSet
|
|
49
|
-
* @param {string} setMarker -
|
|
50
|
-
* @param {string} attributeMarker -
|
|
49
|
+
* @param {string} setMarker - Marker of the attribute set. Example: "productAttributes".
|
|
50
|
+
* @param {string} attributeMarker - Marker of the attribute in the set. Example: "color".
|
|
51
51
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
52
52
|
* @returns {Promise<IAttributesSetsEntity | IError>} Returns a single attribute object from the attribute set.
|
|
53
53
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -57,7 +57,7 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
|
|
|
57
57
|
/**
|
|
58
58
|
* Getting a single object from a set of attributes by marker.
|
|
59
59
|
* @handleName getAttributeSetByMarker
|
|
60
|
-
* @param {string} marker -
|
|
60
|
+
* @param {string} marker - Marker of the attribute set. Example: "productAttributes".
|
|
61
61
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
62
62
|
* @returns {Promise<IAttributeSetsEntity | IError>} Returns one object of the attribute set.
|
|
63
63
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -62,10 +62,10 @@ class AttributesSetsApi extends asyncModules_1.default {
|
|
|
62
62
|
* Getting all attribute sets objects.
|
|
63
63
|
* @handleName getAttributes
|
|
64
64
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
65
|
-
* @param {number} [offset] -
|
|
66
|
-
* @param {number} [limit] -
|
|
67
|
-
* @param {number} [typeId] -
|
|
68
|
-
* @param {string} [sortBy] -
|
|
65
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
66
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
67
|
+
* @param {number} [typeId] - ID of the attribute set type to filter by. Default: null.
|
|
68
|
+
* @param {string} [sortBy] - Field to sort by: `id` or `position`. Default: "id".
|
|
69
69
|
* @returns {Promise<IAttributesSetsResponse | IError>} Returns object with array of IAttributeSetsEntity and total items count.
|
|
70
70
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
71
71
|
* @see {@link https://js-sdk.oneentry.cloud/docs/attribute-sets/getAttributes getAttributes} documentation.
|
|
@@ -89,7 +89,7 @@ class AttributesSetsApi extends asyncModules_1.default {
|
|
|
89
89
|
/**
|
|
90
90
|
* Getting all attributes with data from the attribute set.
|
|
91
91
|
* @handleName getAttributesByMarker
|
|
92
|
-
* @param {string} marker -
|
|
92
|
+
* @param {string} marker - Marker of the attribute. Example: "productAttributes".
|
|
93
93
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
94
94
|
* @returns {Promise<IAttributesSetsEntity[] | IError>} Returns an array of Attributes objects.
|
|
95
95
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -104,8 +104,8 @@ class AttributesSetsApi extends asyncModules_1.default {
|
|
|
104
104
|
/**
|
|
105
105
|
* Get a single attribute with data from the attribute sets.
|
|
106
106
|
* @handleName getSingleAttributeByMarkerSet
|
|
107
|
-
* @param {string} setMarker -
|
|
108
|
-
* @param {string} attributeMarker -
|
|
107
|
+
* @param {string} setMarker - Marker of the attribute set. Example: "productAttributes".
|
|
108
|
+
* @param {string} attributeMarker - Marker of the attribute in the set. Example: "color".
|
|
109
109
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
110
110
|
* @returns {Promise<IAttributesSetsEntity | IError>} Returns a single attribute object from the attribute set.
|
|
111
111
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -120,7 +120,7 @@ class AttributesSetsApi extends asyncModules_1.default {
|
|
|
120
120
|
/**
|
|
121
121
|
* Getting a single object from a set of attributes by marker.
|
|
122
122
|
* @handleName getAttributeSetByMarker
|
|
123
|
-
* @param {string} marker -
|
|
123
|
+
* @param {string} marker - Marker of the attribute set. Example: "productAttributes".
|
|
124
124
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
125
125
|
* @returns {Promise<IAttributeSetsEntity | IError>} Returns one object of the attribute set.
|
|
126
126
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -30,12 +30,12 @@ interface IAttributesSets {
|
|
|
30
30
|
/**
|
|
31
31
|
* Represents the structure of a list item.
|
|
32
32
|
* @interface IListTitle
|
|
33
|
-
* @property {string} title -
|
|
34
|
-
* @property {number | string} value -
|
|
35
|
-
* @property {string | number | null} position -
|
|
36
|
-
* @property {object} extended -
|
|
37
|
-
* @property {string | null} extended.value -
|
|
38
|
-
* @property {string | null} extended.type -
|
|
33
|
+
* @property {string} title - Title of the list item. Example: "Item Name".
|
|
34
|
+
* @property {number | string} value - Value of the list item: a number or a string. Example: 42.
|
|
35
|
+
* @property {string | number | null} position - Position of the list item: a number, a string, or `null`. Example: 1.
|
|
36
|
+
* @property {object} extended - Additional properties of the list item.
|
|
37
|
+
* @property {string | null} extended.value - Extended value, or `null`. Example: "extra_value".
|
|
38
|
+
* @property {string | null} extended.type - Type of the extended value, or `null`. Example: "color".
|
|
39
39
|
* @description This interface defines the structure of a list item, which includes properties for the title, value, position, and extended information.
|
|
40
40
|
*/
|
|
41
41
|
interface IListTitle {
|
|
@@ -84,9 +84,9 @@ type AttributeType = 'string' | 'text' | 'textWithHeader' | 'integer' | 'real' |
|
|
|
84
84
|
* @property {AttributeType} type - Attribute type. Example: "string", "text", "integer", "etc".
|
|
85
85
|
* @property {unknown} [value] - Value of the attribute, normalized the same way as an entity attribute value: `number | null` for numeric types, the file object itself for a single-file `image`/`file`, `null` when the attribute carries no value.
|
|
86
86
|
* @property {unknown} initialValue - Initial value of the attribute.
|
|
87
|
-
* @property {string} marker -
|
|
88
|
-
* @property {number} position - Position
|
|
89
|
-
* @property {IListTitle[]} listTitles -
|
|
87
|
+
* @property {string} marker - Marker of the attribute. Example: "color", "size", "etc".
|
|
88
|
+
* @property {number} position - Position used for sorting. Example: 1.
|
|
89
|
+
* @property {IListTitle[]} listTitles - Options with extended data for `list` and `radioButton` attributes; empty array for other types.
|
|
90
90
|
* @example
|
|
91
91
|
[
|
|
92
92
|
{
|
|
@@ -104,7 +104,7 @@ type AttributeType = 'string' | 'text' | 'textWithHeader' | 'integer' | 'real' |
|
|
|
104
104
|
"extendedValueType": null
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
|
-
* @property {IAttributeValidators} validators -
|
|
107
|
+
* @property {IAttributeValidators} validators - Validators configured for the attribute; empty object when none are set.
|
|
108
108
|
* @example
|
|
109
109
|
{
|
|
110
110
|
"requiredValidator": {
|
|
@@ -114,12 +114,12 @@ type AttributeType = 'string' | 'text' | 'textWithHeader' | 'integer' | 'real' |
|
|
|
114
114
|
"fieldDefaultValue": 11
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
* @property {IAttributeLocalizeInfo} localizeInfos -
|
|
117
|
+
* @property {IAttributeLocalizeInfo} localizeInfos - Localized name of the template.
|
|
118
118
|
* @example
|
|
119
119
|
{
|
|
120
120
|
"title": "My attribute"
|
|
121
121
|
}
|
|
122
|
-
* @property {Record<string, IAttributesSetsEntity>} additionalFields - Nested sub-attributes keyed by marker; empty object when none.
|
|
122
|
+
* @property {Record<string, IAttributesSetsEntity>} additionalFields - Nested sub-attributes keyed by marker; an empty object when there are none.
|
|
123
123
|
* @description This interface defines the structure of an attribute set entity, including its type, marker, position, validators, localization information, list titles, additional fields, and settings.
|
|
124
124
|
*/
|
|
125
125
|
interface IAttributesSetsEntity {
|
|
@@ -193,20 +193,20 @@ interface IAttributeSchemaItem {
|
|
|
193
193
|
* @property {object | boolean} [trimValidator] - Leading and trailing whitespace is stripped from the value. Stored as an empty object when the toggle is on. Example: `{}`.
|
|
194
194
|
* @property {object} [stringInspectionValidator] - Length constraints for string fields. Example: `{ stringLength: 0, stringMin: 2, stringMax: 60 }`.
|
|
195
195
|
* @property {object | boolean} [urlInspectionValidator] - Value must look like a URL. Stored either as `true` or as an object. Example: `true`.
|
|
196
|
-
* @property {object | boolean} [emailInspectionValidator] -
|
|
197
|
-
* @property {object} [checkForNumberValidator] -
|
|
196
|
+
* @property {object | boolean} [emailInspectionValidator] - The value must look like an email address. Stored either as `true` or as an object. Example: `true`.
|
|
197
|
+
* @property {object} [checkForNumberValidator] - The value must be a number, optionally an integer within bounds. `0` disables a bound. Example: `{ integerOnly: true, minValue: 1, maxValue: 10 }`.
|
|
198
198
|
* @property {object} [roundingNumberValidator] - Rounds the number before storing it. Example: `{ integerOnly: false, numberOfDecimals: 2, direction: 'round' }`.
|
|
199
|
-
* @property {object} [booleanValidator] -
|
|
199
|
+
* @property {object} [booleanValidator] - The value must equal one of the two declared values. Example: `{ trueValue: 1, falseValue: 0 }`.
|
|
200
200
|
* @property {object} [comparisonValidator] - Compares the value with another attribute or with a constant. Example: `{ compareAttribute: 'notChoosed', compareValue: '10', type: 'number', operator: 'equality' }`.
|
|
201
201
|
* @property {object} [regExpValidator] - Value must match a regular expression; `invert` refuses matches instead. Example: `{ patternValue: '^[0-9]{5}$', invert: false, flags: ['i'] }`.
|
|
202
202
|
* @property {object} [fieldMaskValidator] - Value must match an input mask (`9` digit, `A` upper letter, `a` lower letter, `*` any, `$` one of `()+-`). Example: `{ maskValue: '+9 (999) 999-99-99' }`.
|
|
203
|
-
* @property {object} [checkForAGivenList] -
|
|
204
|
-
* @property {object} [defaultValueValidator] - Value
|
|
203
|
+
* @property {object} [checkForAGivenList] - The value must be in the list, or outside it when `notValue` is `true`. Example: `{ rangeValue: ['red', 'green'], notValue: false }`.
|
|
204
|
+
* @property {object} [defaultValueValidator] - Value used when the field is left empty. Example: `{ fieldDefaultValue: 'USD' }`.
|
|
205
205
|
* @property {object} [sizeInPixelsValidator] - Image bounds in pixels; executed by the admin panel. Example: `{ maxX: 1920, maxY: 1080 }`.
|
|
206
|
-
* @property {object} [checkingFilesValidator] - File size bounds and allowed extensions;
|
|
207
|
-
* @property {object} [minMaxDateValidator] - Date bounds
|
|
206
|
+
* @property {object} [checkingFilesValidator] - File size bounds and allowed extensions; run by the admin panel. Example: `{ minValue: 0, maxValue: 5, minUnits: 'kb', maxUnits: 'mb', extensions: ['pdf'] }`.
|
|
207
|
+
* @property {object} [minMaxDateValidator] - Date bounds. The admin panel enforces them. Example: `{ minDateTimeValue: '2026-01-01', maxDateTimeValue: '2026-12-31' }`.
|
|
208
208
|
* @property {object} [valueValidator] - The panel's "default value" control; it writes `defaultValueValidator`, and this name is kept because the API accepts and stores it. Example: `{ fieldDefaultValue: 'USD' }`.
|
|
209
|
-
* @property {object} [checkForLettersValidator] - Letters-only check by pattern;
|
|
209
|
+
* @property {object} [checkForLettersValidator] - Letters-only check by pattern; run by the admin panel. Example: `{ patternValue: '^[A-Za-z ]+$' }`.
|
|
210
210
|
* @description Map of validators applied to an attribute or form field, keyed by validator name.
|
|
211
211
|
*
|
|
212
212
|
* These eighteen names are the full set the API accepts in
|
|
@@ -317,12 +317,12 @@ interface IAttributeValidators {
|
|
|
317
317
|
/**
|
|
318
318
|
* Represents an attribute set entity.
|
|
319
319
|
* @interface IAttributeSetsEntity
|
|
320
|
-
* @property {number} id -
|
|
321
|
-
* @property {string} createdDate -
|
|
322
|
-
* @property {string} updatedDate -
|
|
323
|
-
* @property {number} version -
|
|
324
|
-
* @property {string} identifier -
|
|
325
|
-
* @property {string} title -
|
|
320
|
+
* @property {number} id - ID of the attribute set. Example: 123.
|
|
321
|
+
* @property {string} createdDate - Creation date of the attribute set. Example: "2023-10-01T12:00:00Z".
|
|
322
|
+
* @property {string} updatedDate - Date the attribute set was last updated. Example: "2023-10-01T12:00:00Z".
|
|
323
|
+
* @property {number} version - Version number of the attribute set; changes with each update. Example: 1.
|
|
324
|
+
* @property {string} identifier - Marker of the attribute set. Example: "attributeSet1".
|
|
325
|
+
* @property {string} title - Name of the attribute set. Example: "Product Attributes".
|
|
326
326
|
* @property {Record<string, IAttributeSchemaItem>} schema - Schema fields keyed by marker.
|
|
327
327
|
* @example
|
|
328
328
|
{
|
|
@@ -337,9 +337,9 @@ interface IAttributeValidators {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
* @property {boolean} isVisible -
|
|
341
|
-
* @property {string} type -
|
|
342
|
-
* @property {number} position -
|
|
340
|
+
* @property {boolean} isVisible - Whether the attribute set is visible. Example: true.
|
|
341
|
+
* @property {string} type - Type of the attribute set. Example: "product", "user", "etc".
|
|
342
|
+
* @property {number} position - Position of the attribute set, used for sorting. Example: 1.
|
|
343
343
|
* @description This interface defines the structure of an attribute set entity.
|
|
344
344
|
*/
|
|
345
345
|
interface IAttributeSetsEntity {
|
|
@@ -367,8 +367,8 @@ interface IAttributeSetTypeRef {
|
|
|
367
367
|
/**
|
|
368
368
|
* Represents the response structure for attribute sets.
|
|
369
369
|
* @interface IAttributesSetsResponse
|
|
370
|
-
* @property {number} total - Total
|
|
371
|
-
* @property {IAttributeSetsEntity[]} items -
|
|
370
|
+
* @property {number} total - Total number of attribute sets. Example: 100.
|
|
371
|
+
* @property {IAttributeSetsEntity[]} items - Attribute sets in this response.
|
|
372
372
|
* @example
|
|
373
373
|
[
|
|
374
374
|
{
|