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.
Files changed (40) hide show
  1. package/dist/admins/adminsApi.js +3 -14
  2. package/dist/admins/adminsApi.js.map +1 -1
  3. package/dist/admins/adminsInterfaces.d.ts +7 -26
  4. package/dist/base/oneEntry.js +59 -76
  5. package/dist/base/oneEntry.js.map +1 -1
  6. package/dist/base/utils.d.ts +14 -10
  7. package/dist/base/utils.js +1 -7
  8. package/dist/base/utils.js.map +1 -1
  9. package/dist/file-uploding/fileUploadingApi.js +8 -21
  10. package/dist/file-uploding/fileUploadingApi.js.map +1 -1
  11. package/dist/forms/formsApi.js +6 -19
  12. package/dist/forms/formsApi.js.map +1 -1
  13. package/dist/forms/formsInterfaces.d.ts +3 -4
  14. package/dist/formsData/formsDataApi.js +9 -24
  15. package/dist/formsData/formsDataApi.js.map +1 -1
  16. package/dist/general-types/GeneralTypesApi.js +3 -14
  17. package/dist/general-types/GeneralTypesApi.js.map +1 -1
  18. package/dist/locales/localesApi.js +3 -14
  19. package/dist/locales/localesApi.js.map +1 -1
  20. package/dist/locales/localesInterfaces.d.ts +2 -3
  21. package/dist/menus/menusApi.js +3 -14
  22. package/dist/menus/menusApi.js.map +1 -1
  23. package/dist/pages/pagesApi.js +27 -54
  24. package/dist/pages/pagesApi.js.map +1 -1
  25. package/dist/pages/pagesInterfaces.d.ts +7 -7
  26. package/dist/product-statuses/productStatusesApi.js +12 -29
  27. package/dist/product-statuses/productStatusesApi.js.map +1 -1
  28. package/dist/product-statuses/productStatusesInterfaces.d.ts +1 -1
  29. package/dist/products/productsApi.js +59 -61
  30. package/dist/products/productsApi.js.map +1 -1
  31. package/dist/products/productsInterfaces.d.ts +3 -7
  32. package/dist/system/systemApi.js +6 -19
  33. package/dist/system/systemApi.js.map +1 -1
  34. package/dist/templates/templatesApi.js +6 -19
  35. package/dist/templates/templatesApi.js.map +1 -1
  36. package/dist/templates/templatesInterfaces.d.ts +5 -9
  37. package/dist/templates-preview/templatesPreviewApi.js +9 -24
  38. package/dist/templates-preview/templatesPreviewApi.js.map +1 -1
  39. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +22 -11
  40. 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
- return __awaiter(this, void 0, void 0, function* () {
28
- const result = yield this._fetchGet('/all');
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
- return __awaiter(this, void 0, void 0, function* () {
41
- const result = yield this._fetchGet(`?type=${type}`);
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":";;;;;;;;;;;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;IACU,eAAe;;YACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;YAC3C,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;OAMG;IACU,iBAAiB,CAAC,IAAU;;YACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;YACpD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CAEJ;AA5BD,sCA4BC"}
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 {IPosition} position - The position of the object.
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: IPosition;
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
- return __awaiter(this, void 0, void 0, function* () {
28
- const result = yield this._fetchGet('');
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
- return __awaiter(this, void 0, void 0, function* () {
41
- const result = yield this._fetchGet(`/${id}`);
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
- return __awaiter(this, void 0, void 0, function* () {
54
- const result = yield this._fetchGet(`/marker/${marker}`);
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":";;;;;;;;;;;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;IACU,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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 {IAttributesSets} attributesSets - The attributes with values used by the object.
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 {IPosition} position - The position of the object.
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
- attributesSets: IAttributeSetEntity;
38
- attributeSetId: number;
33
+ proportion: {
34
+ horizontal: IProportion | null;
35
+ vertical: IProportion | null;
36
+ square: ISquare;
37
+ };
39
38
  localizeInfos: ILocalizeInfos;
40
- position: IPosition;
41
- positionId: number | string;
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",