oneentry 1.0.9 → 1.0.12
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 +103 -256
- package/dist/_cjs/admins/adminsApi.d.ts +14 -0
- package/dist/_cjs/admins/adminsApi.js +34 -0
- package/dist/_cjs/admins/adminsApi.js.map +1 -0
- package/dist/_cjs/admins/adminsInterfaces.d.ts +32 -0
- package/dist/_cjs/admins/adminsInterfaces.js +3 -0
- package/dist/_cjs/admins/adminsInterfaces.js.map +1 -0
- package/dist/_cjs/attribute-set/attributeSetApi.d.ts +24 -0
- package/dist/_cjs/attribute-set/attributeSetApi.js +49 -0
- package/dist/_cjs/attribute-set/attributeSetApi.js.map +1 -0
- package/dist/_cjs/attribute-set/attributeSetInterfaces.d.ts +23 -0
- package/dist/_cjs/attribute-set/attributeSetInterfaces.js +3 -0
- package/dist/_cjs/attribute-set/attributeSetInterfaces.js.map +1 -0
- package/dist/_cjs/base/oneEntry.d.ts +9 -0
- package/dist/_cjs/base/oneEntry.js +55 -0
- package/dist/_cjs/base/oneEntry.js.map +1 -0
- package/dist/_cjs/base/utils.d.ts +32 -0
- package/dist/_cjs/base/utils.js +32 -0
- package/dist/_cjs/base/utils.js.map +1 -0
- package/dist/_cjs/forms/formsApi.d.ts +26 -0
- package/dist/_cjs/forms/formsApi.js +56 -0
- package/dist/_cjs/forms/formsApi.js.map +1 -0
- package/dist/_cjs/forms/formsInterfaces.d.ts +28 -0
- package/dist/_cjs/forms/formsInterfaces.js +3 -0
- package/dist/_cjs/forms/formsInterfaces.js.map +1 -0
- package/dist/_cjs/formsData/formsDataApi.d.ts +41 -0
- package/dist/_cjs/formsData/formsDataApi.js +71 -0
- package/dist/_cjs/formsData/formsDataApi.js.map +1 -0
- package/dist/_cjs/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/_cjs/formsData/formsDataInterfaces.js +3 -0
- package/dist/_cjs/formsData/formsDataInterfaces.js.map +1 -0
- package/dist/_cjs/general-types/generalTypesApi.d.ts +14 -0
- package/dist/_cjs/general-types/generalTypesApi.js +34 -0
- package/dist/_cjs/general-types/generalTypesApi.js.map +1 -0
- package/dist/_cjs/general-types/generalTypesInterfaces.d.ts +9 -0
- package/dist/_cjs/general-types/generalTypesInterfaces.js +3 -0
- package/dist/_cjs/general-types/generalTypesInterfaces.js.map +1 -0
- package/dist/_cjs/index.d.ts +35 -0
- package/dist/_cjs/index.js +55 -0
- package/dist/_cjs/index.js.map +1 -0
- package/dist/_cjs/locales/localesApi.d.ts +14 -0
- package/dist/_cjs/locales/localesApi.js +34 -0
- package/dist/_cjs/locales/localesApi.js.map +1 -0
- package/dist/_cjs/locales/localesInterfaces.d.ts +15 -0
- package/dist/_cjs/locales/localesInterfaces.js +3 -0
- package/dist/_cjs/locales/localesInterfaces.js.map +1 -0
- package/dist/_cjs/markers/markersApi.d.ts +35 -0
- package/dist/_cjs/markers/markersApi.js +65 -0
- package/dist/_cjs/markers/markersApi.js.map +1 -0
- package/dist/_cjs/markers/markersInterfaces.d.ts +16 -0
- package/dist/_cjs/markers/markersInterfaces.js +3 -0
- package/dist/_cjs/markers/markersInterfaces.js.map +1 -0
- package/dist/_cjs/menus/menusApi.d.ts +16 -0
- package/dist/_cjs/menus/menusApi.js +36 -0
- package/dist/_cjs/menus/menusApi.js.map +1 -0
- package/dist/_cjs/menus/menusInterfaces.d.ts +18 -0
- package/dist/_cjs/menus/menusInterfaces.js +3 -0
- package/dist/_cjs/menus/menusInterfaces.js.map +1 -0
- package/dist/_cjs/modules/modulesApi.d.ts +14 -0
- package/dist/_cjs/modules/modulesApi.js +34 -0
- package/dist/_cjs/modules/modulesApi.js.map +1 -0
- package/dist/_cjs/modules/modulesInterfaces.d.ts +19 -0
- package/dist/_cjs/modules/modulesInterfaces.js +3 -0
- package/dist/_cjs/modules/modulesInterfaces.js.map +1 -0
- package/dist/_cjs/pages/pagesApi.d.ts +74 -0
- package/dist/_cjs/pages/pagesApi.js +137 -0
- package/dist/_cjs/pages/pagesApi.js.map +1 -0
- package/dist/_cjs/pages/pagesInterfaces.d.ts +39 -0
- package/dist/_cjs/pages/pagesInterfaces.js +3 -0
- package/dist/_cjs/pages/pagesInterfaces.js.map +1 -0
- package/dist/_cjs/product-statuses/productStatusesApi.d.ts +38 -0
- package/dist/_cjs/product-statuses/productStatusesApi.js +73 -0
- package/dist/_cjs/product-statuses/productStatusesApi.js.map +1 -0
- package/dist/_cjs/product-statuses/productStatusesInterfaces.d.ts +15 -0
- package/dist/_cjs/product-statuses/productStatusesInterfaces.js +3 -0
- package/dist/_cjs/product-statuses/productStatusesInterfaces.js.map +1 -0
- package/dist/_cjs/products/productsApi.d.ts +195 -0
- package/dist/_cjs/products/productsApi.js +295 -0
- package/dist/_cjs/products/productsApi.js.map +1 -0
- package/dist/_cjs/products/productsInterfaces.d.ts +83 -0
- package/dist/_cjs/products/productsInterfaces.js +3 -0
- package/dist/_cjs/products/productsInterfaces.js.map +1 -0
- package/dist/_cjs/templates/templatesApi.d.ts +32 -0
- package/dist/_cjs/templates/templatesApi.js +72 -0
- package/dist/_cjs/templates/templatesApi.js.map +1 -0
- package/dist/_cjs/templates/templatesInterfaces.d.ts +30 -0
- package/dist/_cjs/templates/templatesInterfaces.js +3 -0
- package/dist/_cjs/templates/templatesInterfaces.js.map +1 -0
- package/dist/_cjs/templates-preview/templatesPreviewApi.d.ts +30 -0
- package/dist/_cjs/templates-preview/templatesPreviewApi.js +60 -0
- package/dist/_cjs/templates-preview/templatesPreviewApi.js.map +1 -0
- package/dist/_cjs/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
- package/dist/_cjs/templates-preview/templatesPreviewInterfaces.js +3 -0
- package/dist/_cjs/templates-preview/templatesPreviewInterfaces.js.map +1 -0
- package/dist/_esm/admins/adminsApi.d.ts +14 -0
- package/dist/_esm/admins/adminsApi.js +31 -0
- package/dist/_esm/admins/adminsApi.js.map +1 -0
- package/dist/_esm/admins/adminsInterfaces.d.ts +32 -0
- package/dist/_esm/admins/adminsInterfaces.js +2 -0
- package/dist/_esm/admins/adminsInterfaces.js.map +1 -0
- package/dist/_esm/attribute-set/attributeSetApi.d.ts +24 -0
- package/dist/_esm/attribute-set/attributeSetApi.js +46 -0
- package/dist/_esm/attribute-set/attributeSetApi.js.map +1 -0
- package/dist/_esm/attribute-set/attributeSetInterfaces.d.ts +23 -0
- package/dist/_esm/attribute-set/attributeSetInterfaces.js +2 -0
- package/dist/_esm/attribute-set/attributeSetInterfaces.js.map +1 -0
- package/dist/_esm/base/oneEntry.d.ts +9 -0
- package/dist/_esm/base/oneEntry.js +52 -0
- package/dist/_esm/base/oneEntry.js.map +1 -0
- package/dist/_esm/base/utils.d.ts +32 -0
- package/dist/_esm/base/utils.js +30 -0
- package/dist/_esm/base/utils.js.map +1 -0
- package/dist/_esm/forms/formsApi.d.ts +26 -0
- package/dist/_esm/forms/formsApi.js +53 -0
- package/dist/_esm/forms/formsApi.js.map +1 -0
- package/dist/_esm/forms/formsInterfaces.d.ts +28 -0
- package/dist/_esm/forms/formsInterfaces.js +2 -0
- package/dist/_esm/forms/formsInterfaces.js.map +1 -0
- package/dist/_esm/formsData/formsDataApi.d.ts +41 -0
- package/dist/_esm/formsData/formsDataApi.js +68 -0
- package/dist/_esm/formsData/formsDataApi.js.map +1 -0
- package/dist/_esm/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/_esm/formsData/formsDataInterfaces.js +2 -0
- package/dist/_esm/formsData/formsDataInterfaces.js.map +1 -0
- package/dist/_esm/general-types/generalTypesApi.d.ts +14 -0
- package/dist/_esm/general-types/generalTypesApi.js +31 -0
- package/dist/_esm/general-types/generalTypesApi.js.map +1 -0
- package/dist/_esm/general-types/generalTypesInterfaces.d.ts +9 -0
- package/dist/_esm/general-types/generalTypesInterfaces.js +2 -0
- package/dist/_esm/general-types/generalTypesInterfaces.js.map +1 -0
- package/dist/_esm/index.d.ts +35 -0
- package/dist/_esm/index.js +51 -0
- package/dist/_esm/index.js.map +1 -0
- package/dist/_esm/locales/localesApi.d.ts +14 -0
- package/dist/_esm/locales/localesApi.js +31 -0
- package/dist/_esm/locales/localesApi.js.map +1 -0
- package/dist/_esm/locales/localesInterfaces.d.ts +15 -0
- package/dist/_esm/locales/localesInterfaces.js +2 -0
- package/dist/_esm/locales/localesInterfaces.js.map +1 -0
- package/dist/_esm/markers/markersApi.d.ts +35 -0
- package/dist/_esm/markers/markersApi.js +62 -0
- package/dist/_esm/markers/markersApi.js.map +1 -0
- package/dist/_esm/markers/markersInterfaces.d.ts +16 -0
- package/dist/_esm/markers/markersInterfaces.js +2 -0
- package/dist/_esm/markers/markersInterfaces.js.map +1 -0
- package/dist/_esm/menus/menusApi.d.ts +16 -0
- package/dist/_esm/menus/menusApi.js +33 -0
- package/dist/_esm/menus/menusApi.js.map +1 -0
- package/dist/_esm/menus/menusInterfaces.d.ts +18 -0
- package/dist/_esm/menus/menusInterfaces.js +2 -0
- package/dist/_esm/menus/menusInterfaces.js.map +1 -0
- package/dist/_esm/modules/modulesApi.d.ts +14 -0
- package/dist/_esm/modules/modulesApi.js +31 -0
- package/dist/_esm/modules/modulesApi.js.map +1 -0
- package/dist/_esm/modules/modulesInterfaces.d.ts +19 -0
- package/dist/_esm/modules/modulesInterfaces.js +2 -0
- package/dist/_esm/modules/modulesInterfaces.js.map +1 -0
- package/dist/_esm/pages/pagesApi.d.ts +74 -0
- package/dist/_esm/pages/pagesApi.js +134 -0
- package/dist/_esm/pages/pagesApi.js.map +1 -0
- package/dist/_esm/pages/pagesInterfaces.d.ts +39 -0
- package/dist/_esm/pages/pagesInterfaces.js +2 -0
- package/dist/_esm/pages/pagesInterfaces.js.map +1 -0
- package/dist/_esm/product-statuses/productStatusesApi.d.ts +38 -0
- package/dist/_esm/product-statuses/productStatusesApi.js +70 -0
- package/dist/_esm/product-statuses/productStatusesApi.js.map +1 -0
- package/dist/_esm/product-statuses/productStatusesInterfaces.d.ts +15 -0
- package/dist/_esm/product-statuses/productStatusesInterfaces.js +2 -0
- package/dist/_esm/product-statuses/productStatusesInterfaces.js.map +1 -0
- package/dist/_esm/products/productsApi.d.ts +195 -0
- package/dist/_esm/products/productsApi.js +292 -0
- package/dist/_esm/products/productsApi.js.map +1 -0
- package/dist/_esm/products/productsInterfaces.d.ts +83 -0
- package/dist/_esm/products/productsInterfaces.js +2 -0
- package/dist/_esm/products/productsInterfaces.js.map +1 -0
- package/dist/_esm/templates/templatesApi.d.ts +32 -0
- package/dist/_esm/templates/templatesApi.js +69 -0
- package/dist/_esm/templates/templatesApi.js.map +1 -0
- package/dist/_esm/templates/templatesInterfaces.d.ts +30 -0
- package/dist/_esm/templates/templatesInterfaces.js +2 -0
- package/dist/_esm/templates/templatesInterfaces.js.map +1 -0
- package/dist/_esm/templates-preview/templatesPreviewApi.d.ts +30 -0
- package/dist/_esm/templates-preview/templatesPreviewApi.js +57 -0
- package/dist/_esm/templates-preview/templatesPreviewApi.js.map +1 -0
- package/dist/_esm/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
- package/dist/_esm/templates-preview/templatesPreviewInterfaces.js +2 -0
- package/dist/_esm/templates-preview/templatesPreviewInterfaces.js.map +1 -0
- package/dist/_types/admins/adminsApi.d.ts +14 -0
- package/dist/_types/admins/adminsInterfaces.d.ts +32 -0
- package/dist/_types/attribute-set/attributeSetApi.d.ts +24 -0
- package/dist/_types/attribute-set/attributeSetInterfaces.d.ts +23 -0
- package/dist/_types/base/oneEntry.d.ts +9 -0
- package/dist/_types/base/utils.d.ts +32 -0
- package/dist/_types/forms/formsApi.d.ts +26 -0
- package/dist/_types/forms/formsInterfaces.d.ts +28 -0
- package/dist/_types/formsData/formsDataApi.d.ts +41 -0
- package/dist/_types/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/_types/general-types/generalTypesApi.d.ts +14 -0
- package/dist/_types/general-types/generalTypesInterfaces.d.ts +9 -0
- package/dist/_types/index.d.ts +35 -0
- package/dist/_types/locales/localesApi.d.ts +14 -0
- package/dist/_types/locales/localesInterfaces.d.ts +15 -0
- package/dist/_types/markers/markersApi.d.ts +35 -0
- package/dist/_types/markers/markersInterfaces.d.ts +16 -0
- package/dist/_types/menus/menusApi.d.ts +16 -0
- package/dist/_types/menus/menusInterfaces.d.ts +18 -0
- package/dist/_types/modules/modulesApi.d.ts +14 -0
- package/dist/_types/modules/modulesInterfaces.d.ts +19 -0
- package/dist/_types/pages/pagesApi.d.ts +74 -0
- package/dist/_types/pages/pagesInterfaces.d.ts +39 -0
- package/dist/_types/product-statuses/productStatusesApi.d.ts +38 -0
- package/dist/_types/product-statuses/productStatusesInterfaces.d.ts +15 -0
- package/dist/_types/products/productsApi.d.ts +195 -0
- package/dist/_types/products/productsInterfaces.d.ts +83 -0
- package/dist/_types/templates/templatesApi.d.ts +32 -0
- package/dist/_types/templates/templatesInterfaces.d.ts +30 -0
- package/dist/_types/templates-preview/templatesPreviewApi.d.ts +30 -0
- package/dist/_types/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
- package/dist/products/productsApi.d.ts +6 -4
- package/dist/products/productsApi.js +28 -8
- package/dist/products/productsApi.js.map +1 -1
- package/dist/products/productsInterfaces.d.ts +14 -3
- package/package.json +3 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IAdminEntity, IAdmins } from "./adminsInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with users - admins
|
|
5
|
+
*/
|
|
6
|
+
export default class AdminsApi extends OneEntry implements IAdmins {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all user objects - admins.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns all AdminEntity user objects
|
|
12
|
+
*/
|
|
13
|
+
getAdminsInfo(): Promise<IAdminEntity>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface IAdmins {
|
|
2
|
+
getAdminsInfo(): Promise<IAdminEntity>;
|
|
3
|
+
}
|
|
4
|
+
interface IPosition {
|
|
5
|
+
id: number;
|
|
6
|
+
position: string;
|
|
7
|
+
objectId: number;
|
|
8
|
+
objectType: string;
|
|
9
|
+
isLocked: boolean;
|
|
10
|
+
objectCategoryId: number;
|
|
11
|
+
}
|
|
12
|
+
interface IAttributesSets {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
}
|
|
15
|
+
interface IAdminEntity {
|
|
16
|
+
id: number;
|
|
17
|
+
updatedDate: string;
|
|
18
|
+
version: number;
|
|
19
|
+
identifier: string;
|
|
20
|
+
attributesSets: IAttributesSets;
|
|
21
|
+
attributeSetId: number;
|
|
22
|
+
login: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
restorePasswordCode: number;
|
|
25
|
+
position: IPosition;
|
|
26
|
+
positionId: number;
|
|
27
|
+
permissions: Record<string, boolean>;
|
|
28
|
+
selectedLanguage: string;
|
|
29
|
+
selectedContentLanguage: string;
|
|
30
|
+
selectedUITheme: string;
|
|
31
|
+
}
|
|
32
|
+
export { IAdmins, IAdminEntity };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IAttributeSet, IAttributeSetEntity } from "./attributeSetInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with attribute sets
|
|
5
|
+
*/
|
|
6
|
+
export default class AttributeSetApi extends OneEntry implements IAttributeSet {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get one attributes set object.
|
|
10
|
+
*
|
|
11
|
+
* @param {number} [id] - Identifier of the attributes set object
|
|
12
|
+
*
|
|
13
|
+
* @returns Returns one attributes set object
|
|
14
|
+
*/
|
|
15
|
+
getAttributeSetById(id: number): Promise<IAttributeSetEntity>;
|
|
16
|
+
/**
|
|
17
|
+
* Get one attributes set object by marker.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} [marker] - Marker of the attributes set object
|
|
20
|
+
*
|
|
21
|
+
* @returns Returns one attributes set object
|
|
22
|
+
*/
|
|
23
|
+
getAttributeSetByMarker(marker: string): Promise<IAttributeSetEntity>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IAttributeSet {
|
|
3
|
+
getAttributeSetById(id: number): Promise<IAttributeSetEntity>;
|
|
4
|
+
getAttributeSetByMarker(url: string): Promise<IAttributeSetEntity>;
|
|
5
|
+
}
|
|
6
|
+
interface IAttributeSetEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
updatedDate: string;
|
|
9
|
+
version: number;
|
|
10
|
+
identifier: string;
|
|
11
|
+
typeId: number;
|
|
12
|
+
localizeInfos: ILocalizeInfos;
|
|
13
|
+
schema: object;
|
|
14
|
+
position: {
|
|
15
|
+
id: number;
|
|
16
|
+
objectId: number;
|
|
17
|
+
objectType: string;
|
|
18
|
+
position: number | string;
|
|
19
|
+
};
|
|
20
|
+
positionId: number | string;
|
|
21
|
+
isVisible: boolean;
|
|
22
|
+
}
|
|
23
|
+
export { IAttributeSet, IAttributeSetEntity };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IProductsQuery } from '../products/productsInterfaces';
|
|
2
|
+
export default abstract class OneEntry {
|
|
3
|
+
protected _url: string;
|
|
4
|
+
constructor(url: string);
|
|
5
|
+
protected _getFullPath(path: string): string;
|
|
6
|
+
protected _fetchGet(path: string): Promise<any>;
|
|
7
|
+
protected _fetchPost(path: string, data: object): Promise<any>;
|
|
8
|
+
protected _queryParamsToString(query: IProductsQuery): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare enum LanguageCode {
|
|
2
|
+
ru_RU = "ru_RU",
|
|
3
|
+
en_US = "en_US",
|
|
4
|
+
fr_FR = "fr_FR"
|
|
5
|
+
}
|
|
6
|
+
declare enum Types {
|
|
7
|
+
forCatalogProducts = "forCatalogProducts",
|
|
8
|
+
forBasketPage = "forBasketPage",
|
|
9
|
+
forErrorPage = "forErrorPage",
|
|
10
|
+
forCatalogPages = "forCatalogPages",
|
|
11
|
+
forProductPreview = "forProductPreview",
|
|
12
|
+
forProductPage = "forProductPage",
|
|
13
|
+
forSimilarProductBlock = "forSimilarProductBlock",
|
|
14
|
+
forStatisticProductBlock = "forStatisticProductBlock",
|
|
15
|
+
forProductBlock = "forProductBlock",
|
|
16
|
+
forForm = "forForm",
|
|
17
|
+
forFormField = "forFormField",
|
|
18
|
+
forNewsPage = "forNewsPage",
|
|
19
|
+
forNewsBlock = "forNewsBlock",
|
|
20
|
+
forNewsPreview = "forNewsPreview",
|
|
21
|
+
forOneNewsPage = "forOneNewsPage",
|
|
22
|
+
forUsualPage = "forUsualPage",
|
|
23
|
+
forTextBlock = "forTextBlock",
|
|
24
|
+
forSlider = "forSlider",
|
|
25
|
+
service = "service"
|
|
26
|
+
}
|
|
27
|
+
interface ILocalizeInfos {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export { LanguageCode, ILocalizeInfos, Types, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IForms, IFormsEntity } from "./formsInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for forms objects
|
|
5
|
+
*/
|
|
6
|
+
export default class FormsApi extends OneEntry implements IForms {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all forms.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns array for all objects of type FormEntity
|
|
12
|
+
*/
|
|
13
|
+
getAllForms(): Promise<IFormsEntity[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Get one form by form id.
|
|
16
|
+
*
|
|
17
|
+
* @returns Returns object of type FormEntity
|
|
18
|
+
*/
|
|
19
|
+
getFormById(id: number): Promise<IFormsEntity>;
|
|
20
|
+
/**
|
|
21
|
+
* Get one form by form marker.
|
|
22
|
+
*
|
|
23
|
+
* @returns Returns object of type FormEntity
|
|
24
|
+
*/
|
|
25
|
+
getFormByMarker(marker: string): Promise<IFormsEntity>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IForms {
|
|
3
|
+
getAllForms(): Promise<IFormsEntity[]>;
|
|
4
|
+
getFormById(id: number): Promise<IFormsEntity>;
|
|
5
|
+
getFormByMarker(marker: string): Promise<IFormsEntity>;
|
|
6
|
+
}
|
|
7
|
+
interface IFromPages {
|
|
8
|
+
id: number;
|
|
9
|
+
pageId: number;
|
|
10
|
+
formId: number;
|
|
11
|
+
positionId: number;
|
|
12
|
+
position: object;
|
|
13
|
+
}
|
|
14
|
+
interface IFormsEntity {
|
|
15
|
+
id: number;
|
|
16
|
+
updatedDate: string;
|
|
17
|
+
version: number;
|
|
18
|
+
identifier: string;
|
|
19
|
+
attributesSets: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
attributeSetId: number;
|
|
23
|
+
processingType: string;
|
|
24
|
+
localizeInfos: ILocalizeInfos;
|
|
25
|
+
processingData: object;
|
|
26
|
+
formPages: Array<IFromPages>;
|
|
27
|
+
}
|
|
28
|
+
export { IForms, IFormsEntity };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import OneEntry from '../base/oneEntry';
|
|
2
|
+
import { IFormsPost, IFormsData, IFormsDataPost, IFormsDataEntity } from './formsDataInterfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with form data
|
|
5
|
+
*/
|
|
6
|
+
export default class FormsDataApi extends OneEntry implements IFormsData {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all forms data.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns array for all objects of type CreateFormDataDto
|
|
12
|
+
*/
|
|
13
|
+
getFormsData(): Promise<Array<IFormsDataEntity>>;
|
|
14
|
+
/**
|
|
15
|
+
* Find all product page objects with pagination and multiple filtering.
|
|
16
|
+
*
|
|
17
|
+
* @param {object} [data] - Request body.
|
|
18
|
+
* Example Value:
|
|
19
|
+
* {
|
|
20
|
+
* "formIdentifier": "my-form",
|
|
21
|
+
* "formData": [
|
|
22
|
+
* {
|
|
23
|
+
* "marker": "naimenovanie_1",
|
|
24
|
+
* "value": "Наименование",
|
|
25
|
+
* "langCode": "ru_RU"
|
|
26
|
+
* }
|
|
27
|
+
* ]
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* @returns - Returns created CreateFormDataDto objects.
|
|
31
|
+
*/
|
|
32
|
+
postFormsData(data: Array<IFormsPost>): Promise<IFormsDataPost>;
|
|
33
|
+
/**
|
|
34
|
+
* Get one object of form data by marker.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} [marker] - Marker of the form data
|
|
37
|
+
*
|
|
38
|
+
* @returns Returns array of object FormDataEntity
|
|
39
|
+
*/
|
|
40
|
+
getFormsDataByMarker(marker: string): Promise<Array<IFormsDataEntity>>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface IFormsData {
|
|
2
|
+
getFormsData(): Promise<Array<IFormsDataEntity>>;
|
|
3
|
+
postFormsData(data: Array<IFormsPost>): Promise<IFormsDataPost>;
|
|
4
|
+
getFormsDataByMarker(marker: string): Promise<Array<IFormsDataEntity>>;
|
|
5
|
+
}
|
|
6
|
+
interface IFormsDataEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
formIdentifier: string;
|
|
9
|
+
time: Date | string;
|
|
10
|
+
formData: Array<IFormData>;
|
|
11
|
+
}
|
|
12
|
+
interface IFormsDataPost {
|
|
13
|
+
formIdentifier: string;
|
|
14
|
+
formData: Array<IFormData>;
|
|
15
|
+
}
|
|
16
|
+
interface IFormData {
|
|
17
|
+
marker?: string;
|
|
18
|
+
value?: string;
|
|
19
|
+
langCode?: string;
|
|
20
|
+
}
|
|
21
|
+
interface IFormsPost {
|
|
22
|
+
formIdentifier: string;
|
|
23
|
+
formData: IFormData;
|
|
24
|
+
}
|
|
25
|
+
export { IFormsPost, IFormsData, IFormsDataPost, IFormsDataEntity };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IGeneralTypes, IGeneralTypesEntity } from "./generalTypesInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with types
|
|
5
|
+
*/
|
|
6
|
+
export default class GeneralTypesApi extends OneEntry implements IGeneralTypes {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all types.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns all objects of type GeneralTypeEntity
|
|
12
|
+
*/
|
|
13
|
+
getAllTypes(): Promise<Array<IGeneralTypesEntity>>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import ProductApi from './products/productsApi';
|
|
2
|
+
import PageApi from "./pages/pagesApi";
|
|
3
|
+
import ProductStatusesApi from "./product-statuses/productStatusesApi";
|
|
4
|
+
import TemplatesApi from "./templates/templatesApi";
|
|
5
|
+
import TemplatesPreviewApi from "./templates-preview/templatesPreviewApi";
|
|
6
|
+
import AttributeSetApi from "./attribute-set/attributeSetApi";
|
|
7
|
+
import AdminsApi from "./admins/adminsApi";
|
|
8
|
+
import GeneralTypesApi from "./general-types/generalTypesApi";
|
|
9
|
+
import LocalesApi from "./locales/localesApi";
|
|
10
|
+
import MenusApi from "./menus/menusApi";
|
|
11
|
+
import ModulesApi from "./modules/modulesApi";
|
|
12
|
+
import FormsApi from "./forms/formsApi";
|
|
13
|
+
import FormsDataApi from "./formsData/formsDataApi";
|
|
14
|
+
interface IDefineApi {
|
|
15
|
+
Admins: AdminsApi;
|
|
16
|
+
AttributeSet: AttributeSetApi;
|
|
17
|
+
Forms: FormsApi;
|
|
18
|
+
FormsData: FormsDataApi;
|
|
19
|
+
GeneralTypes: GeneralTypesApi;
|
|
20
|
+
Locales: LocalesApi;
|
|
21
|
+
Menus: MenusApi;
|
|
22
|
+
Modules: ModulesApi;
|
|
23
|
+
Page: PageApi;
|
|
24
|
+
Product: ProductApi;
|
|
25
|
+
ProductStatus: ProductStatusesApi;
|
|
26
|
+
Templates: TemplatesApi;
|
|
27
|
+
TemplatesPreview: TemplatesPreviewApi;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Define API.
|
|
31
|
+
* @param {string} url - URl of your project.
|
|
32
|
+
* @returns {IDefineApi} - List of methods set.
|
|
33
|
+
*/
|
|
34
|
+
export declare function defineOneEntry(url: string): IDefineApi;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { ILocales, ILocalEntity } from "./localesInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with localizations (content language)
|
|
5
|
+
*/
|
|
6
|
+
export default class LocalesApi extends OneEntry implements ILocales {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Find all active language localization objects.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns an array of LocaleEntity objects
|
|
12
|
+
*/
|
|
13
|
+
getLocales(): Promise<Array<ILocalEntity>>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LanguageCode } from "../base/utils";
|
|
2
|
+
interface ILocales {
|
|
3
|
+
getLocales(): Promise<Array<ILocalEntity>>;
|
|
4
|
+
}
|
|
5
|
+
interface ILocalEntity {
|
|
6
|
+
id: number;
|
|
7
|
+
shortCode: string;
|
|
8
|
+
code: LanguageCode;
|
|
9
|
+
name: string;
|
|
10
|
+
nativeName: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
image: string;
|
|
13
|
+
position: number | string;
|
|
14
|
+
}
|
|
15
|
+
export { ILocales, ILocalEntity };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import OneEntry from '../base/oneEntry';
|
|
2
|
+
import { IMarkersApi, IMarkerEntity } from "./markersInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with markers objects
|
|
5
|
+
*/
|
|
6
|
+
export default class TemplatesPreviewApi extends OneEntry implements IMarkersApi {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get one marker object by marker.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} [marker] - Text identifier (marker) of the marker object
|
|
12
|
+
*
|
|
13
|
+
* @returns
|
|
14
|
+
* Returns one MarkerEntity marker object
|
|
15
|
+
*/
|
|
16
|
+
getMarker(marker: string): Promise<IMarkerEntity>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all marker objects.
|
|
19
|
+
*
|
|
20
|
+
* @param {number} [limit] - Parameter for limiting the selection of records, by default - 30
|
|
21
|
+
*
|
|
22
|
+
* @param {number} [offset] - Parameter for offset of records selection, default - 0
|
|
23
|
+
*
|
|
24
|
+
* @returns Returns an object ItemsWithTotal, where items is an array of MarkerEntity objects, total - the total number of markers found
|
|
25
|
+
*/
|
|
26
|
+
getMarkers(limit?: number, offset?: number): Promise<Array<IMarkerEntity>>;
|
|
27
|
+
/**
|
|
28
|
+
* Get one marker object.
|
|
29
|
+
*
|
|
30
|
+
* @param {number} [id] - Identifier of marker object
|
|
31
|
+
*
|
|
32
|
+
* @returns Returns one marker object MarkerEntity
|
|
33
|
+
*/
|
|
34
|
+
getMarkersById(id: number): Promise<IMarkerEntity>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IMarkersApi {
|
|
3
|
+
getMarker(marker: string): Promise<IMarkerEntity>;
|
|
4
|
+
getMarkers(limit: number, offset: number): Promise<Array<IMarkerEntity>>;
|
|
5
|
+
getMarkersById(id: number): Promise<IMarkerEntity>;
|
|
6
|
+
}
|
|
7
|
+
interface IMarkerEntity {
|
|
8
|
+
id: number;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
version: number;
|
|
11
|
+
identifier: string;
|
|
12
|
+
name: string;
|
|
13
|
+
marker: string;
|
|
14
|
+
localizeInfos: ILocalizeInfos;
|
|
15
|
+
}
|
|
16
|
+
export { IMarkersApi, IMarkerEntity };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IMenus, IMenusEntity } from "./menusInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with menu objects
|
|
5
|
+
*/
|
|
6
|
+
export default class MenusApi extends OneEntry implements IMenus {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get pages includes in menu by marker.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} [marker] - Menu marker
|
|
12
|
+
*
|
|
13
|
+
* @returns Returns a single menu object as a ContentMenuDto object with included pages
|
|
14
|
+
*/
|
|
15
|
+
getMenusByMarker(marker: string): Promise<IMenusEntity>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IMenus {
|
|
3
|
+
getMenusByMarker(marker: string): Promise<IMenusEntity>;
|
|
4
|
+
}
|
|
5
|
+
interface IMenusPages {
|
|
6
|
+
id: number;
|
|
7
|
+
pageUrl: string;
|
|
8
|
+
localizeInfos: ILocalizeInfos;
|
|
9
|
+
position: number;
|
|
10
|
+
parentId: number | null;
|
|
11
|
+
}
|
|
12
|
+
interface IMenusEntity {
|
|
13
|
+
id: number;
|
|
14
|
+
identifier: string;
|
|
15
|
+
localizeInfos: ILocalizeInfos;
|
|
16
|
+
pages: Array<IMenusPages>;
|
|
17
|
+
}
|
|
18
|
+
export { IMenus, IMenusEntity };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IModules, IModulesEntity } from "./modulesInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with application modules
|
|
5
|
+
*/
|
|
6
|
+
export default class ModulesApi extends OneEntry implements IModules {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all modules.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns BaseModuleDto objects or an empty array [] if there is no data
|
|
12
|
+
*/
|
|
13
|
+
getAllModules(): Promise<Array<IModulesEntity>>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IModules {
|
|
3
|
+
getAllModules(): Promise<Array<IModulesEntity>>;
|
|
4
|
+
}
|
|
5
|
+
interface IModulesEntity {
|
|
6
|
+
identifier: string;
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
type: string | null;
|
|
9
|
+
localizeInfos: ILocalizeInfos;
|
|
10
|
+
icon: string;
|
|
11
|
+
generalTypes: {
|
|
12
|
+
id: number;
|
|
13
|
+
type: string;
|
|
14
|
+
}[];
|
|
15
|
+
attributeSetTypes: [];
|
|
16
|
+
position: number | string;
|
|
17
|
+
positionId: number;
|
|
18
|
+
}
|
|
19
|
+
export { IModules, IModulesEntity };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IPageApi, IPageConfig, IPagesEntity } from "./pagesInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with page objects, including catalog pages
|
|
5
|
+
*/
|
|
6
|
+
export default class PageApi extends OneEntry implements IPageApi {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all top-level page objects.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} [langCode] Required parameter lang code
|
|
12
|
+
*
|
|
13
|
+
* @returns Returns all created pages without parents as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
|
|
14
|
+
*/
|
|
15
|
+
getRootPages(langCode: string): Promise<Array<IPagesEntity>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get all page objects with product information as an array.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} [langCode] Required parameter lang code
|
|
20
|
+
*
|
|
21
|
+
* @param {number} [limit] - Optional parameter for pagination, default is 30
|
|
22
|
+
*
|
|
23
|
+
* @param {number} [offset] - Optional parameter for pagination, default is 0
|
|
24
|
+
*
|
|
25
|
+
* @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
|
|
26
|
+
*/
|
|
27
|
+
getCatalogPages(langCode: string, limit?: number, offset?: number): Promise<Array<IPagesEntity>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get all page objects with product information as an array.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} [langCode] Required parameter lang code
|
|
32
|
+
*
|
|
33
|
+
* @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
|
|
34
|
+
*/
|
|
35
|
+
getPages(langCode: string): Promise<Array<IPagesEntity>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get page object with information about forms, blocks, menus, linked to the page.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} [langCode] Required parameter lang code
|
|
40
|
+
*
|
|
41
|
+
* @param {number} [id] - Page object identifier
|
|
42
|
+
*
|
|
43
|
+
* @returns Returns page object (DTO depends on the type of page being returned)
|
|
44
|
+
*/
|
|
45
|
+
getPageById(id: number, langCode: string): Promise<IPagesEntity>;
|
|
46
|
+
/**
|
|
47
|
+
* Get page object with information about forms, blocks, menus, linked to the page by URL.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} [langCode] Required parameter lang code
|
|
50
|
+
*
|
|
51
|
+
* @param {string} [url] - Page URL
|
|
52
|
+
*
|
|
53
|
+
* @returns Returns page object (DTO depends on the type of page being returned)
|
|
54
|
+
*/
|
|
55
|
+
getPageByUrl(url: string, langCode: string): Promise<IPagesEntity>;
|
|
56
|
+
/**
|
|
57
|
+
* Get settings for the page.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} [url] - Page URL
|
|
60
|
+
*
|
|
61
|
+
* @returns Returns a ConfigPageDto object with page display settings
|
|
62
|
+
*/
|
|
63
|
+
getConfigPageByUrl(url: string): Promise<IPageConfig>;
|
|
64
|
+
/**
|
|
65
|
+
* Quick search for page objects with limited output.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} [name] - Text for searching page objects (search is performed on the title field of the localizeInfos object with the language taken into account)
|
|
68
|
+
*
|
|
69
|
+
* @param {string} [langCode] Required parameter lang code
|
|
70
|
+
*
|
|
71
|
+
* @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
|
|
72
|
+
*/
|
|
73
|
+
searchPage(name: string, langCode: string): Promise<IPagesEntity>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ILocalizeInfos, Types } from "../base/utils";
|
|
2
|
+
interface IPageApi {
|
|
3
|
+
getRootPages(langCode: string): Promise<Array<IPagesEntity>>;
|
|
4
|
+
getCatalogPages(langCode: string, limit: number, offset: number): Promise<Array<IPagesEntity>>;
|
|
5
|
+
getPages(langCode: string): Promise<Array<IPagesEntity>>;
|
|
6
|
+
getPageById(id: number, langCode: string): Promise<IPagesEntity>;
|
|
7
|
+
getPageByUrl(url: string, langCode: string): Promise<IPagesEntity>;
|
|
8
|
+
getConfigPageByUrl(url: string): Promise<IPageConfig>;
|
|
9
|
+
searchPage(name: string, langCode: string): Promise<IPagesEntity>;
|
|
10
|
+
}
|
|
11
|
+
interface IPageConfig {
|
|
12
|
+
rowsPerPage: number;
|
|
13
|
+
productsPerRow: number;
|
|
14
|
+
}
|
|
15
|
+
interface IPagesEntity {
|
|
16
|
+
id: number;
|
|
17
|
+
parentId: number;
|
|
18
|
+
config: Record<string, number>;
|
|
19
|
+
pageUrl: string;
|
|
20
|
+
depth: number;
|
|
21
|
+
localizeInfos: ILocalizeInfos;
|
|
22
|
+
isVisible: boolean;
|
|
23
|
+
isEditorDisabled: boolean;
|
|
24
|
+
products: number;
|
|
25
|
+
attributeSetId: number;
|
|
26
|
+
templateIdentifier: string;
|
|
27
|
+
/**
|
|
28
|
+
* Language-specific attribute values.
|
|
29
|
+
* @example attributeValues['en_US']
|
|
30
|
+
*
|
|
31
|
+
* @property {langCode.<object>}
|
|
32
|
+
*/
|
|
33
|
+
attributeValues: {
|
|
34
|
+
[langCode: string]: object;
|
|
35
|
+
};
|
|
36
|
+
position: string;
|
|
37
|
+
type: Types;
|
|
38
|
+
}
|
|
39
|
+
export { IPageApi, IPageConfig, IPagesEntity };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import OneEntry from '../base/oneEntry';
|
|
2
|
+
import { IProductStatusEntity, IProductStatuses } from "./productStatusesInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with product statuses
|
|
5
|
+
*/
|
|
6
|
+
export default class ProductStatusesApi extends OneEntry implements IProductStatuses {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Search for all product status objects.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns an array of product status objects
|
|
12
|
+
*/
|
|
13
|
+
getProductStatuses(): Promise<Array<IProductStatusEntity>>;
|
|
14
|
+
/**
|
|
15
|
+
* Search for a product status object by identifier.
|
|
16
|
+
*
|
|
17
|
+
* @param {number} [id] - Status id
|
|
18
|
+
*
|
|
19
|
+
* @returns Returns a product status object
|
|
20
|
+
*/
|
|
21
|
+
getProductStatusesById(id: number): Promise<IProductStatusEntity>;
|
|
22
|
+
/**
|
|
23
|
+
* Search for a product status object by its textual identifier (marker).
|
|
24
|
+
*
|
|
25
|
+
* @param {string} [marker] - Product marker
|
|
26
|
+
*
|
|
27
|
+
* @returns Returns a product status object
|
|
28
|
+
*/
|
|
29
|
+
getProductsByStatusMarker(marker: string): Promise<IProductStatusEntity>;
|
|
30
|
+
/**
|
|
31
|
+
* Check the existence of a textual identifier.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} [marker] - Product marker
|
|
34
|
+
*
|
|
35
|
+
* @returns Returns true if the textual identifier (marker) exists or false if it doesn't
|
|
36
|
+
*/
|
|
37
|
+
validateMarker(marker: string): Promise<boolean>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IProductStatuses {
|
|
3
|
+
getProductStatuses(): Promise<Array<IProductStatusEntity>>;
|
|
4
|
+
getProductStatusesById(id: number): Promise<IProductStatusEntity>;
|
|
5
|
+
getProductsByStatusMarker(marker: string): Promise<IProductStatusEntity>;
|
|
6
|
+
validateMarker(marker: string): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
interface IProductStatusEntity {
|
|
9
|
+
id: number;
|
|
10
|
+
updatedDate: string;
|
|
11
|
+
version: number;
|
|
12
|
+
identifier: string;
|
|
13
|
+
localizeInfos: ILocalizeInfos;
|
|
14
|
+
}
|
|
15
|
+
export { IProductStatuses, IProductStatusEntity };
|