oneentry 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins/adminsApi.js +3 -14
- package/dist/admins/adminsApi.js.map +1 -1
- package/dist/admins/adminsInterfaces.d.ts +7 -26
- package/dist/base/oneEntry.js +59 -76
- package/dist/base/oneEntry.js.map +1 -1
- package/dist/base/utils.d.ts +14 -10
- package/dist/base/utils.js +1 -7
- package/dist/base/utils.js.map +1 -1
- package/dist/file-uploding/fileUploadingApi.js +8 -21
- package/dist/file-uploding/fileUploadingApi.js.map +1 -1
- package/dist/forms/formsApi.js +6 -19
- package/dist/forms/formsApi.js.map +1 -1
- package/dist/forms/formsInterfaces.d.ts +3 -4
- package/dist/formsData/formsDataApi.js +9 -24
- package/dist/formsData/formsDataApi.js.map +1 -1
- package/dist/general-types/GeneralTypesApi.js +3 -14
- package/dist/general-types/GeneralTypesApi.js.map +1 -1
- package/dist/locales/localesApi.js +3 -14
- package/dist/locales/localesApi.js.map +1 -1
- package/dist/locales/localesInterfaces.d.ts +2 -3
- package/dist/menus/menusApi.js +3 -14
- package/dist/menus/menusApi.js.map +1 -1
- package/dist/pages/pagesApi.js +27 -54
- package/dist/pages/pagesApi.js.map +1 -1
- package/dist/pages/pagesInterfaces.d.ts +7 -7
- package/dist/product-statuses/productStatusesApi.js +12 -29
- package/dist/product-statuses/productStatusesApi.js.map +1 -1
- package/dist/product-statuses/productStatusesInterfaces.d.ts +1 -1
- package/dist/products/productsApi.js +59 -61
- package/dist/products/productsApi.js.map +1 -1
- package/dist/products/productsInterfaces.d.ts +3 -7
- package/dist/system/systemApi.js +6 -19
- package/dist/system/systemApi.js.map +1 -1
- package/dist/templates/templatesApi.js +6 -19
- package/dist/templates/templatesApi.js.map +1 -1
- package/dist/templates/templatesInterfaces.d.ts +5 -9
- package/dist/templates-preview/templatesPreviewApi.js +9 -24
- package/dist/templates-preview/templatesPreviewApi.js.map +1 -1
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +22 -11
- package/package.json +1 -1
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
const oneEntry_1 = require("../base/oneEntry");
|
|
13
4
|
/**
|
|
@@ -23,11 +14,9 @@ class TemplatesPreviewApi extends oneEntry_1.default {
|
|
|
23
14
|
*
|
|
24
15
|
* @returns Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
|
|
25
16
|
*/
|
|
26
|
-
getAllTemplates() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return result;
|
|
30
|
-
});
|
|
17
|
+
async getAllTemplates() {
|
|
18
|
+
const result = await this._fetchGet('/all');
|
|
19
|
+
return result;
|
|
31
20
|
}
|
|
32
21
|
/**
|
|
33
22
|
* Get template objects by type.
|
|
@@ -36,11 +25,9 @@ class TemplatesPreviewApi extends oneEntry_1.default {
|
|
|
36
25
|
*
|
|
37
26
|
* @returns Returns a TemplateEntity object
|
|
38
27
|
*/
|
|
39
|
-
getTemplateByType(type) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return result;
|
|
43
|
-
});
|
|
28
|
+
async getTemplateByType(type) {
|
|
29
|
+
const result = await this._fetchGet(`?type=${type}`);
|
|
30
|
+
return result;
|
|
44
31
|
}
|
|
45
32
|
}
|
|
46
33
|
exports.default = TemplatesPreviewApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templatesApi.js","sourceRoot":"","sources":["../../src/templates/templatesApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"templatesApi.js","sourceRoot":"","sources":["../../src/templates/templatesApi.ts"],"names":[],"mappings":";;AAAA,+CAAuC;AAIvC;;GAEG;AACH,MAAqB,mBAAoB,SAAQ,kBAAQ;IACrD,YAAY,GAAW,EAAE,KAAY;QACjC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QACjB,IAAI,CAAC,IAAI,IAAI,wBAAwB,CAAA;IACzC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,eAAe;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAC3C,OAAO,MAAM,CAAA;IACjB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,iBAAiB,CAAC,IAAU;QACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;QACpD,OAAO,MAAM,CAAA;IACjB,CAAC;CAEJ;AA5BD,sCA4BC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ILocalizeInfos, Types } from "../base/utils";
|
|
2
|
-
import { IPosition } from "../admins/adminsInterfaces";
|
|
3
|
-
import { IAttributeSetEntity } from "../base/utils";
|
|
4
2
|
/**
|
|
5
3
|
* Represents an interface object of Templates Api.
|
|
6
4
|
*
|
|
@@ -20,24 +18,22 @@ interface ITemplatesApi {
|
|
|
20
18
|
* @property {Date | string} updatedDate - The date of last updated.
|
|
21
19
|
* @property {number} version - The version number of the object.
|
|
22
20
|
* @property {string} identifier - The textual identifier for the record field.
|
|
23
|
-
* @property {IAttributesSets} attributesSets - The attributes with values used by the object.
|
|
24
|
-
* @property {number} attributeSetId - The identifier of the attribute set being used.
|
|
25
21
|
* @property {IGeneralTypesEntity} generalType - General type Entity object.
|
|
26
22
|
* @property {number} generalTypeId - General type Entity id.
|
|
27
23
|
* @property {ILocalizeInfos} localizeInfos - The name of the template, taking into account localization.
|
|
28
|
-
* @property {
|
|
24
|
+
* @property {number} position - The position of the object.
|
|
29
25
|
* @property {number | string} positionId - Id of the item object.
|
|
30
26
|
*
|
|
31
27
|
*/
|
|
32
28
|
interface ITemplateEntity {
|
|
33
29
|
id: number;
|
|
30
|
+
updateDate: string | Date;
|
|
31
|
+
version: number;
|
|
34
32
|
identifier: string;
|
|
35
|
-
attributesValues: IAttributeSetEntity;
|
|
36
|
-
attributeSetId: number;
|
|
37
33
|
isSync: boolean;
|
|
38
|
-
generalTypeName: string;
|
|
39
34
|
generalTypeId: number;
|
|
40
35
|
localizeInfos: ILocalizeInfos;
|
|
41
|
-
position:
|
|
36
|
+
position: number;
|
|
37
|
+
generalTypeName: Types;
|
|
42
38
|
}
|
|
43
39
|
export { ITemplatesApi, ITemplateEntity };
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
const oneEntry_1 = require("../base/oneEntry");
|
|
13
4
|
/**
|
|
@@ -23,11 +14,9 @@ class PageApi extends oneEntry_1.default {
|
|
|
23
14
|
*
|
|
24
15
|
* @returns Returns all TemplatePreviewsEntity template objects
|
|
25
16
|
*/
|
|
26
|
-
getTemplatesPreview() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return result;
|
|
30
|
-
});
|
|
17
|
+
async getTemplatesPreview() {
|
|
18
|
+
const result = await this._fetchGet('');
|
|
19
|
+
return result;
|
|
31
20
|
}
|
|
32
21
|
/**
|
|
33
22
|
* Get one template object by id.
|
|
@@ -36,11 +25,9 @@ class PageApi extends oneEntry_1.default {
|
|
|
36
25
|
*
|
|
37
26
|
* @returns Returns a TemplatePreviewsEntity object
|
|
38
27
|
*/
|
|
39
|
-
getTemplatesPreviewById(id) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return result;
|
|
43
|
-
});
|
|
28
|
+
async getTemplatesPreviewById(id) {
|
|
29
|
+
const result = await this._fetchGet(`/${id}`);
|
|
30
|
+
return result;
|
|
44
31
|
}
|
|
45
32
|
/**
|
|
46
33
|
* Get one template object by marker.
|
|
@@ -49,11 +36,9 @@ class PageApi extends oneEntry_1.default {
|
|
|
49
36
|
*
|
|
50
37
|
* @returns Returns a TemplatePreviewsEntity object
|
|
51
38
|
*/
|
|
52
|
-
getTemplatesPreviewByMarker(marker) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return result;
|
|
56
|
-
});
|
|
39
|
+
async getTemplatesPreviewByMarker(marker) {
|
|
40
|
+
const result = await this._fetchGet(`/marker/${marker}`);
|
|
41
|
+
return result;
|
|
57
42
|
}
|
|
58
43
|
}
|
|
59
44
|
exports.default = PageApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templatesPreviewApi.js","sourceRoot":"","sources":["../../src/templates-preview/templatesPreviewApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"templatesPreviewApi.js","sourceRoot":"","sources":["../../src/templates-preview/templatesPreviewApi.ts"],"names":[],"mappings":";;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,OAAQ,SAAQ,kBAAQ;IACzC,YAAY,GAAW,EAAE,KAAY;QACjC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QACjB,IAAI,CAAC,IAAI,IAAI,gCAAgC,CAAA;IACjD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,mBAAmB;QAC5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACvC,OAAO,MAAM,CAAA;IACjB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,uBAAuB,CAAC,EAAS;QAC1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QAC7C,OAAO,MAAM,CAAA;IACjB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,2BAA2B,CAAC,MAAa;QAClD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,MAAM,EAAE,CAAC,CAAA;QACxD,OAAO,MAAM,CAAA;IACjB,CAAC;CACJ;AAvCD,0BAuCC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
-
import { IPosition } from "../admins/adminsInterfaces";
|
|
3
|
-
import { IAttributeSetEntity } from "../base/utils";
|
|
4
2
|
/**
|
|
5
3
|
* Represents an interface object of Templates Preview Api.
|
|
6
4
|
*
|
|
@@ -22,22 +20,35 @@ interface ITemplatesPreview {
|
|
|
22
20
|
* @property {number} id - The unique identifier of the position.
|
|
23
21
|
* @property {Date | string} updatedDate - The date of last updated.
|
|
24
22
|
* @property {string} identifier - The textual identifier for the record field.
|
|
25
|
-
* @property {
|
|
26
|
-
* @property {number} attributeSetId - The identifier of the attribute set being used.
|
|
23
|
+
* @property {object} proportion - Object contains info by proportion template preview.
|
|
27
24
|
* @property {ILocalizeInfos} localizeInfos - The name of the template, taking into account localization.
|
|
28
|
-
* @property {
|
|
29
|
-
* @property {number | string} positionId - Id of the item object.
|
|
25
|
+
* @property {number} position - The position of the object.
|
|
30
26
|
*
|
|
31
27
|
*/
|
|
32
28
|
interface ITemplatesPreviewEntity {
|
|
33
29
|
id: number;
|
|
34
|
-
updatedDate: string;
|
|
30
|
+
updatedDate: string | Date;
|
|
35
31
|
version: number;
|
|
36
32
|
identifier: string;
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
proportion: {
|
|
34
|
+
horizontal: IProportion | null;
|
|
35
|
+
vertical: IProportion | null;
|
|
36
|
+
square: ISquare;
|
|
37
|
+
};
|
|
39
38
|
localizeInfos: ILocalizeInfos;
|
|
40
|
-
position:
|
|
41
|
-
|
|
39
|
+
position: number;
|
|
40
|
+
}
|
|
41
|
+
interface IProportion {
|
|
42
|
+
height: number | null;
|
|
43
|
+
weight: number | null;
|
|
44
|
+
marker: string;
|
|
45
|
+
title: string;
|
|
46
|
+
alignmentType: string;
|
|
47
|
+
}
|
|
48
|
+
interface ISquare {
|
|
49
|
+
marker: string;
|
|
50
|
+
title: string;
|
|
51
|
+
slide: number;
|
|
52
|
+
alignmentType: string;
|
|
42
53
|
}
|
|
43
54
|
export { ITemplatesPreview, ITemplatesPreviewEntity };
|