oneentry 1.0.10 → 1.0.13

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 (226) hide show
  1. package/README.md +91 -215
  2. package/dist/_cjs/admins/adminsApi.d.ts +14 -0
  3. package/dist/_cjs/admins/adminsApi.js +34 -0
  4. package/dist/_cjs/admins/adminsApi.js.map +1 -0
  5. package/dist/_cjs/admins/adminsInterfaces.d.ts +32 -0
  6. package/dist/_cjs/admins/adminsInterfaces.js +3 -0
  7. package/dist/_cjs/admins/adminsInterfaces.js.map +1 -0
  8. package/dist/_cjs/attribute-set/attributeSetApi.d.ts +24 -0
  9. package/dist/_cjs/attribute-set/attributeSetApi.js +49 -0
  10. package/dist/_cjs/attribute-set/attributeSetApi.js.map +1 -0
  11. package/dist/_cjs/attribute-set/attributeSetInterfaces.d.ts +23 -0
  12. package/dist/_cjs/attribute-set/attributeSetInterfaces.js +3 -0
  13. package/dist/_cjs/attribute-set/attributeSetInterfaces.js.map +1 -0
  14. package/dist/_cjs/base/oneEntry.d.ts +9 -0
  15. package/dist/_cjs/base/oneEntry.js +55 -0
  16. package/dist/_cjs/base/oneEntry.js.map +1 -0
  17. package/dist/_cjs/base/utils.d.ts +32 -0
  18. package/dist/_cjs/base/utils.js +32 -0
  19. package/dist/_cjs/base/utils.js.map +1 -0
  20. package/dist/_cjs/forms/formsApi.d.ts +26 -0
  21. package/dist/_cjs/forms/formsApi.js +56 -0
  22. package/dist/_cjs/forms/formsApi.js.map +1 -0
  23. package/dist/_cjs/forms/formsInterfaces.d.ts +28 -0
  24. package/dist/_cjs/forms/formsInterfaces.js +3 -0
  25. package/dist/_cjs/forms/formsInterfaces.js.map +1 -0
  26. package/dist/_cjs/formsData/formsDataApi.d.ts +41 -0
  27. package/dist/_cjs/formsData/formsDataApi.js +71 -0
  28. package/dist/_cjs/formsData/formsDataApi.js.map +1 -0
  29. package/dist/_cjs/formsData/formsDataInterfaces.d.ts +25 -0
  30. package/dist/_cjs/formsData/formsDataInterfaces.js +3 -0
  31. package/dist/_cjs/formsData/formsDataInterfaces.js.map +1 -0
  32. package/dist/_cjs/general-types/generalTypesApi.d.ts +14 -0
  33. package/dist/_cjs/general-types/generalTypesApi.js +34 -0
  34. package/dist/_cjs/general-types/generalTypesApi.js.map +1 -0
  35. package/dist/_cjs/general-types/generalTypesInterfaces.d.ts +9 -0
  36. package/dist/_cjs/general-types/generalTypesInterfaces.js +3 -0
  37. package/dist/_cjs/general-types/generalTypesInterfaces.js.map +1 -0
  38. package/dist/_cjs/index.d.ts +35 -0
  39. package/dist/_cjs/index.js +55 -0
  40. package/dist/_cjs/index.js.map +1 -0
  41. package/dist/_cjs/locales/localesApi.d.ts +14 -0
  42. package/dist/_cjs/locales/localesApi.js +34 -0
  43. package/dist/_cjs/locales/localesApi.js.map +1 -0
  44. package/dist/_cjs/locales/localesInterfaces.d.ts +15 -0
  45. package/dist/_cjs/locales/localesInterfaces.js +3 -0
  46. package/dist/_cjs/locales/localesInterfaces.js.map +1 -0
  47. package/dist/_cjs/markers/markersApi.d.ts +35 -0
  48. package/dist/_cjs/markers/markersApi.js +65 -0
  49. package/dist/_cjs/markers/markersApi.js.map +1 -0
  50. package/dist/_cjs/markers/markersInterfaces.d.ts +16 -0
  51. package/dist/_cjs/markers/markersInterfaces.js +3 -0
  52. package/dist/_cjs/markers/markersInterfaces.js.map +1 -0
  53. package/dist/_cjs/menus/menusApi.d.ts +16 -0
  54. package/dist/_cjs/menus/menusApi.js +36 -0
  55. package/dist/_cjs/menus/menusApi.js.map +1 -0
  56. package/dist/_cjs/menus/menusInterfaces.d.ts +18 -0
  57. package/dist/_cjs/menus/menusInterfaces.js +3 -0
  58. package/dist/_cjs/menus/menusInterfaces.js.map +1 -0
  59. package/dist/_cjs/modules/modulesApi.d.ts +14 -0
  60. package/dist/_cjs/modules/modulesApi.js +34 -0
  61. package/dist/_cjs/modules/modulesApi.js.map +1 -0
  62. package/dist/_cjs/modules/modulesInterfaces.d.ts +19 -0
  63. package/dist/_cjs/modules/modulesInterfaces.js +3 -0
  64. package/dist/_cjs/modules/modulesInterfaces.js.map +1 -0
  65. package/dist/_cjs/pages/pagesApi.d.ts +74 -0
  66. package/dist/_cjs/pages/pagesApi.js +137 -0
  67. package/dist/_cjs/pages/pagesApi.js.map +1 -0
  68. package/dist/_cjs/pages/pagesInterfaces.d.ts +39 -0
  69. package/dist/_cjs/pages/pagesInterfaces.js +3 -0
  70. package/dist/_cjs/pages/pagesInterfaces.js.map +1 -0
  71. package/dist/_cjs/product-statuses/productStatusesApi.d.ts +38 -0
  72. package/dist/_cjs/product-statuses/productStatusesApi.js +73 -0
  73. package/dist/_cjs/product-statuses/productStatusesApi.js.map +1 -0
  74. package/dist/_cjs/product-statuses/productStatusesInterfaces.d.ts +15 -0
  75. package/dist/_cjs/product-statuses/productStatusesInterfaces.js +3 -0
  76. package/dist/_cjs/product-statuses/productStatusesInterfaces.js.map +1 -0
  77. package/dist/_cjs/products/productsApi.d.ts +195 -0
  78. package/dist/_cjs/products/productsApi.js +295 -0
  79. package/dist/_cjs/products/productsApi.js.map +1 -0
  80. package/dist/_cjs/products/productsInterfaces.d.ts +83 -0
  81. package/dist/_cjs/products/productsInterfaces.js +3 -0
  82. package/dist/_cjs/products/productsInterfaces.js.map +1 -0
  83. package/dist/_cjs/templates/templatesApi.d.ts +32 -0
  84. package/dist/_cjs/templates/templatesApi.js +72 -0
  85. package/dist/_cjs/templates/templatesApi.js.map +1 -0
  86. package/dist/_cjs/templates/templatesInterfaces.d.ts +30 -0
  87. package/dist/_cjs/templates/templatesInterfaces.js +3 -0
  88. package/dist/_cjs/templates/templatesInterfaces.js.map +1 -0
  89. package/dist/_cjs/templates-preview/templatesPreviewApi.d.ts +30 -0
  90. package/dist/_cjs/templates-preview/templatesPreviewApi.js +60 -0
  91. package/dist/_cjs/templates-preview/templatesPreviewApi.js.map +1 -0
  92. package/dist/_cjs/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
  93. package/dist/_cjs/templates-preview/templatesPreviewInterfaces.js +3 -0
  94. package/dist/_cjs/templates-preview/templatesPreviewInterfaces.js.map +1 -0
  95. package/dist/_esm/admins/adminsApi.d.ts +14 -0
  96. package/dist/_esm/admins/adminsApi.js +31 -0
  97. package/dist/_esm/admins/adminsApi.js.map +1 -0
  98. package/dist/_esm/admins/adminsInterfaces.d.ts +32 -0
  99. package/dist/_esm/admins/adminsInterfaces.js +2 -0
  100. package/dist/_esm/admins/adminsInterfaces.js.map +1 -0
  101. package/dist/_esm/attribute-set/attributeSetApi.d.ts +24 -0
  102. package/dist/_esm/attribute-set/attributeSetApi.js +46 -0
  103. package/dist/_esm/attribute-set/attributeSetApi.js.map +1 -0
  104. package/dist/_esm/attribute-set/attributeSetInterfaces.d.ts +23 -0
  105. package/dist/_esm/attribute-set/attributeSetInterfaces.js +2 -0
  106. package/dist/_esm/attribute-set/attributeSetInterfaces.js.map +1 -0
  107. package/dist/_esm/base/oneEntry.d.ts +9 -0
  108. package/dist/_esm/base/oneEntry.js +52 -0
  109. package/dist/_esm/base/oneEntry.js.map +1 -0
  110. package/dist/_esm/base/utils.d.ts +32 -0
  111. package/dist/_esm/base/utils.js +30 -0
  112. package/dist/_esm/base/utils.js.map +1 -0
  113. package/dist/_esm/forms/formsApi.d.ts +26 -0
  114. package/dist/_esm/forms/formsApi.js +53 -0
  115. package/dist/_esm/forms/formsApi.js.map +1 -0
  116. package/dist/_esm/forms/formsInterfaces.d.ts +28 -0
  117. package/dist/_esm/forms/formsInterfaces.js +2 -0
  118. package/dist/_esm/forms/formsInterfaces.js.map +1 -0
  119. package/dist/_esm/formsData/formsDataApi.d.ts +41 -0
  120. package/dist/_esm/formsData/formsDataApi.js +68 -0
  121. package/dist/_esm/formsData/formsDataApi.js.map +1 -0
  122. package/dist/_esm/formsData/formsDataInterfaces.d.ts +25 -0
  123. package/dist/_esm/formsData/formsDataInterfaces.js +2 -0
  124. package/dist/_esm/formsData/formsDataInterfaces.js.map +1 -0
  125. package/dist/_esm/general-types/generalTypesApi.d.ts +14 -0
  126. package/dist/_esm/general-types/generalTypesApi.js +31 -0
  127. package/dist/_esm/general-types/generalTypesApi.js.map +1 -0
  128. package/dist/_esm/general-types/generalTypesInterfaces.d.ts +9 -0
  129. package/dist/_esm/general-types/generalTypesInterfaces.js +2 -0
  130. package/dist/_esm/general-types/generalTypesInterfaces.js.map +1 -0
  131. package/dist/_esm/index.d.ts +35 -0
  132. package/dist/_esm/index.js +51 -0
  133. package/dist/_esm/index.js.map +1 -0
  134. package/dist/_esm/locales/localesApi.d.ts +14 -0
  135. package/dist/_esm/locales/localesApi.js +31 -0
  136. package/dist/_esm/locales/localesApi.js.map +1 -0
  137. package/dist/_esm/locales/localesInterfaces.d.ts +15 -0
  138. package/dist/_esm/locales/localesInterfaces.js +2 -0
  139. package/dist/_esm/locales/localesInterfaces.js.map +1 -0
  140. package/dist/_esm/markers/markersApi.d.ts +35 -0
  141. package/dist/_esm/markers/markersApi.js +62 -0
  142. package/dist/_esm/markers/markersApi.js.map +1 -0
  143. package/dist/_esm/markers/markersInterfaces.d.ts +16 -0
  144. package/dist/_esm/markers/markersInterfaces.js +2 -0
  145. package/dist/_esm/markers/markersInterfaces.js.map +1 -0
  146. package/dist/_esm/menus/menusApi.d.ts +16 -0
  147. package/dist/_esm/menus/menusApi.js +33 -0
  148. package/dist/_esm/menus/menusApi.js.map +1 -0
  149. package/dist/_esm/menus/menusInterfaces.d.ts +18 -0
  150. package/dist/_esm/menus/menusInterfaces.js +2 -0
  151. package/dist/_esm/menus/menusInterfaces.js.map +1 -0
  152. package/dist/_esm/modules/modulesApi.d.ts +14 -0
  153. package/dist/_esm/modules/modulesApi.js +31 -0
  154. package/dist/_esm/modules/modulesApi.js.map +1 -0
  155. package/dist/_esm/modules/modulesInterfaces.d.ts +19 -0
  156. package/dist/_esm/modules/modulesInterfaces.js +2 -0
  157. package/dist/_esm/modules/modulesInterfaces.js.map +1 -0
  158. package/dist/_esm/pages/pagesApi.d.ts +74 -0
  159. package/dist/_esm/pages/pagesApi.js +134 -0
  160. package/dist/_esm/pages/pagesApi.js.map +1 -0
  161. package/dist/_esm/pages/pagesInterfaces.d.ts +39 -0
  162. package/dist/_esm/pages/pagesInterfaces.js +2 -0
  163. package/dist/_esm/pages/pagesInterfaces.js.map +1 -0
  164. package/dist/_esm/product-statuses/productStatusesApi.d.ts +38 -0
  165. package/dist/_esm/product-statuses/productStatusesApi.js +70 -0
  166. package/dist/_esm/product-statuses/productStatusesApi.js.map +1 -0
  167. package/dist/_esm/product-statuses/productStatusesInterfaces.d.ts +15 -0
  168. package/dist/_esm/product-statuses/productStatusesInterfaces.js +2 -0
  169. package/dist/_esm/product-statuses/productStatusesInterfaces.js.map +1 -0
  170. package/dist/_esm/products/productsApi.d.ts +195 -0
  171. package/dist/_esm/products/productsApi.js +292 -0
  172. package/dist/_esm/products/productsApi.js.map +1 -0
  173. package/dist/_esm/products/productsInterfaces.d.ts +83 -0
  174. package/dist/_esm/products/productsInterfaces.js +2 -0
  175. package/dist/_esm/products/productsInterfaces.js.map +1 -0
  176. package/dist/_esm/templates/templatesApi.d.ts +32 -0
  177. package/dist/_esm/templates/templatesApi.js +69 -0
  178. package/dist/_esm/templates/templatesApi.js.map +1 -0
  179. package/dist/_esm/templates/templatesInterfaces.d.ts +30 -0
  180. package/dist/_esm/templates/templatesInterfaces.js +2 -0
  181. package/dist/_esm/templates/templatesInterfaces.js.map +1 -0
  182. package/dist/_esm/templates-preview/templatesPreviewApi.d.ts +30 -0
  183. package/dist/_esm/templates-preview/templatesPreviewApi.js +57 -0
  184. package/dist/_esm/templates-preview/templatesPreviewApi.js.map +1 -0
  185. package/dist/_esm/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
  186. package/dist/_esm/templates-preview/templatesPreviewInterfaces.js +2 -0
  187. package/dist/_esm/templates-preview/templatesPreviewInterfaces.js.map +1 -0
  188. package/dist/_types/admins/adminsApi.d.ts +14 -0
  189. package/dist/_types/admins/adminsInterfaces.d.ts +32 -0
  190. package/dist/_types/attribute-set/attributeSetApi.d.ts +24 -0
  191. package/dist/_types/attribute-set/attributeSetInterfaces.d.ts +23 -0
  192. package/dist/_types/base/oneEntry.d.ts +9 -0
  193. package/dist/_types/base/utils.d.ts +32 -0
  194. package/dist/_types/forms/formsApi.d.ts +26 -0
  195. package/dist/_types/forms/formsInterfaces.d.ts +28 -0
  196. package/dist/_types/formsData/formsDataApi.d.ts +41 -0
  197. package/dist/_types/formsData/formsDataInterfaces.d.ts +25 -0
  198. package/dist/_types/general-types/generalTypesApi.d.ts +14 -0
  199. package/dist/_types/general-types/generalTypesInterfaces.d.ts +9 -0
  200. package/dist/_types/index.d.ts +35 -0
  201. package/dist/_types/locales/localesApi.d.ts +14 -0
  202. package/dist/_types/locales/localesInterfaces.d.ts +15 -0
  203. package/dist/_types/markers/markersApi.d.ts +35 -0
  204. package/dist/_types/markers/markersInterfaces.d.ts +16 -0
  205. package/dist/_types/menus/menusApi.d.ts +16 -0
  206. package/dist/_types/menus/menusInterfaces.d.ts +18 -0
  207. package/dist/_types/modules/modulesApi.d.ts +14 -0
  208. package/dist/_types/modules/modulesInterfaces.d.ts +19 -0
  209. package/dist/_types/pages/pagesApi.d.ts +74 -0
  210. package/dist/_types/pages/pagesInterfaces.d.ts +39 -0
  211. package/dist/_types/product-statuses/productStatusesApi.d.ts +38 -0
  212. package/dist/_types/product-statuses/productStatusesInterfaces.d.ts +15 -0
  213. package/dist/_types/products/productsApi.d.ts +195 -0
  214. package/dist/_types/products/productsInterfaces.d.ts +83 -0
  215. package/dist/_types/templates/templatesApi.d.ts +32 -0
  216. package/dist/_types/templates/templatesInterfaces.d.ts +30 -0
  217. package/dist/_types/templates-preview/templatesPreviewApi.d.ts +30 -0
  218. package/dist/_types/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
  219. package/dist/index.d.ts +0 -4
  220. package/dist/index.js +0 -8
  221. package/dist/index.js.map +1 -1
  222. package/dist/products/productsApi.d.ts +6 -4
  223. package/dist/products/productsApi.js +34 -7
  224. package/dist/products/productsApi.js.map +1 -1
  225. package/dist/products/productsInterfaces.d.ts +14 -3
  226. package/package.json +3 -2
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineOneEntry = void 0;
4
+ const productsApi_1 = require("./products/productsApi");
5
+ const pagesApi_1 = require("./pages/pagesApi");
6
+ const productStatusesApi_1 = require("./product-statuses/productStatusesApi");
7
+ const templatesApi_1 = require("./templates/templatesApi");
8
+ const templatesPreviewApi_1 = require("./templates-preview/templatesPreviewApi");
9
+ const attributeSetApi_1 = require("./attribute-set/attributeSetApi");
10
+ const adminsApi_1 = require("./admins/adminsApi");
11
+ const generalTypesApi_1 = require("./general-types/generalTypesApi");
12
+ const localesApi_1 = require("./locales/localesApi");
13
+ const menusApi_1 = require("./menus/menusApi");
14
+ const modulesApi_1 = require("./modules/modulesApi");
15
+ const formsApi_1 = require("./forms/formsApi");
16
+ const formsDataApi_1 = require("./formsData/formsDataApi");
17
+ /**
18
+ * Define API.
19
+ * @param {string} url - URl of your project.
20
+ * @returns {IDefineApi} - List of methods set.
21
+ */
22
+ function defineOneEntry(url) {
23
+ const Product = new productsApi_1.default(url);
24
+ const Page = new pagesApi_1.default(url);
25
+ const ProductStatus = new productStatusesApi_1.default(url);
26
+ const Templates = new templatesApi_1.default(url);
27
+ const TemplatesPreview = new templatesPreviewApi_1.default(url);
28
+ // const Markers: MarkersApi = new MarkersApi(url)
29
+ const AttributeSet = new attributeSetApi_1.default(url);
30
+ const Admins = new adminsApi_1.default(url);
31
+ const GeneralTypes = new generalTypesApi_1.default(url);
32
+ const Locales = new localesApi_1.default(url);
33
+ const Menus = new menusApi_1.default(url);
34
+ const Modules = new modulesApi_1.default(url);
35
+ const Forms = new formsApi_1.default(url);
36
+ const FormsData = new formsDataApi_1.default(url);
37
+ return {
38
+ Admins,
39
+ AttributeSet,
40
+ Forms,
41
+ FormsData,
42
+ GeneralTypes,
43
+ Locales,
44
+ // Markers,
45
+ Modules,
46
+ Menus,
47
+ Page,
48
+ Product,
49
+ ProductStatus,
50
+ Templates,
51
+ TemplatesPreview
52
+ };
53
+ }
54
+ exports.defineOneEntry = defineOneEntry;
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,wDAA+C;AAC/C,+CAAuC;AACvC,8EAAuE;AACvE,2DAAoD;AACpD,iFAA0E;AAE1E,qEAA8D;AAC9D,kDAA0C;AAC1C,qEAA6D;AAC7D,qDAA6C;AAC7C,+CAAwC;AACxC,qDAA8C;AAC9C,+CAAwC;AACxC,2DAAoD;AAmBpD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,GAAU;IACrC,MAAM,OAAO,GAAc,IAAI,qBAAU,CAAC,GAAG,CAAC,CAAA;IAC9C,MAAM,IAAI,GAAW,IAAI,kBAAO,CAAC,GAAG,CAAC,CAAA;IACrC,MAAM,aAAa,GAAsB,IAAI,4BAAkB,CAAC,GAAG,CAAC,CAAA;IACpE,MAAM,SAAS,GAAiB,IAAI,sBAAY,CAAC,GAAG,CAAC,CAAA;IACrD,MAAM,gBAAgB,GAAwB,IAAI,6BAAmB,CAAC,GAAG,CAAC,CAAA;IAC1E,kDAAkD;IAClD,MAAM,YAAY,GAAoB,IAAI,yBAAe,CAAC,GAAG,CAAC,CAAA;IAC9D,MAAM,MAAM,GAAc,IAAI,mBAAS,CAAC,GAAG,CAAC,CAAA;IAC5C,MAAM,YAAY,GAAqB,IAAI,yBAAe,CAAC,GAAG,CAAC,CAAA;IAC/D,MAAM,OAAO,GAAe,IAAI,oBAAU,CAAC,GAAG,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAa,IAAI,kBAAQ,CAAC,GAAG,CAAC,CAAA;IACzC,MAAM,OAAO,GAAe,IAAI,oBAAU,CAAC,GAAG,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAa,IAAI,kBAAQ,CAAC,GAAG,CAAC,CAAA;IACzC,MAAM,SAAS,GAAiB,IAAI,sBAAY,CAAC,GAAG,CAAC,CAAA;IAErD,OAAO;QACH,MAAM;QACN,YAAY;QACZ,KAAK;QACL,SAAS;QACT,YAAY;QACZ,OAAO;QACP,WAAW;QACX,OAAO;QACP,KAAK;QACL,IAAI;QACJ,OAAO;QACP,aAAa;QACb,SAAS;QACT,gBAAgB;KACnB,CAAA;AACL,CAAC;AAhCD,wCAgCC"}
@@ -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,34 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const oneEntry_1 = require("../base/oneEntry");
13
+ /**
14
+ * Controllers for working with localizations (content language)
15
+ */
16
+ class LocalesApi extends oneEntry_1.default {
17
+ constructor(url) {
18
+ super(url);
19
+ this._url += '/api/content/locales';
20
+ }
21
+ /**
22
+ * Find all active language localization objects.
23
+ *
24
+ * @returns Returns an array of LocaleEntity objects
25
+ */
26
+ getLocales() {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ const result = yield this._fetchGet('/active/all');
29
+ return result;
30
+ });
31
+ }
32
+ }
33
+ exports.default = LocalesApi;
34
+ //# sourceMappingURL=localesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localesApi.js","sourceRoot":"","sources":["../../../src/locales/localesApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,UAAW,SAAQ,kBAAQ;IAC5C,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,sBAAsB,CAAA;IACvC,CAAC;IAED;;;;OAIG;IACU,UAAU;;YACnB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;YAClD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CAEJ;AAhBD,6BAgBC"}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=localesInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localesInterfaces.js","sourceRoot":"","sources":["../../../src/locales/localesInterfaces.ts"],"names":[],"mappings":""}
@@ -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,65 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const oneEntry_1 = require("../base/oneEntry");
13
+ /**
14
+ * Controllers for working with markers objects
15
+ */
16
+ class TemplatesPreviewApi extends oneEntry_1.default {
17
+ constructor(url) {
18
+ super(url);
19
+ this._url += '/api/content/markers';
20
+ }
21
+ /**
22
+ * Get one marker object by marker.
23
+ *
24
+ * @param {string} [marker] - Text identifier (marker) of the marker object
25
+ *
26
+ * @returns
27
+ * Returns one MarkerEntity marker object
28
+ */
29
+ getMarker(marker) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const result = yield this._fetchGet(`/marker/${marker}`);
32
+ return result;
33
+ });
34
+ }
35
+ /**
36
+ * Get all marker objects.
37
+ *
38
+ * @param {number} [limit] - Parameter for limiting the selection of records, by default - 30
39
+ *
40
+ * @param {number} [offset] - Parameter for offset of records selection, default - 0
41
+ *
42
+ * @returns Returns an object ItemsWithTotal, where items is an array of MarkerEntity objects, total - the total number of markers found
43
+ */
44
+ getMarkers(limit = 30, offset = 0) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const result = yield this._fetchGet(`?limit=${limit}&offset=${offset}`);
47
+ return result.items;
48
+ });
49
+ }
50
+ /**
51
+ * Get one marker object.
52
+ *
53
+ * @param {number} [id] - Identifier of marker object
54
+ *
55
+ * @returns Returns one marker object MarkerEntity
56
+ */
57
+ getMarkersById(id) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const result = yield this._fetchGet(`/${id}`);
60
+ return result;
61
+ });
62
+ }
63
+ }
64
+ exports.default = TemplatesPreviewApi;
65
+ //# sourceMappingURL=markersApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markersApi.js","sourceRoot":"","sources":["../../../src/markers/markersApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAuC;AAGvC;;GAEG;AACH,MAAqB,mBAAoB,SAAQ,kBAAQ;IACrD,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,sBAAsB,CAAA;IACvC,CAAC;IAED;;;;;;;OAOG;IACU,SAAS,CAAC,MAAa;;YAChC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,MAAM,EAAE,CAAC,CAAA;YACxD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACU,UAAU,CAAC,QAAe,EAAE,EAAE,SAAgB,CAAC;;YACxD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,KAAK,WAAW,MAAM,EAAE,CAAC,CAAA;YACvE,OAAO,MAAM,CAAC,KAAK,CAAA;QACvB,CAAC;KAAA;IAED;;;;;;OAMG;IACU,cAAc,CAAC,EAAS;;YACjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;YAC7C,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CACJ;AA5CD,sCA4CC"}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=markersInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markersInterfaces.js","sourceRoot":"","sources":["../../../src/markers/markersInterfaces.ts"],"names":[],"mappings":""}
@@ -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,36 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const oneEntry_1 = require("../base/oneEntry");
13
+ /**
14
+ * Controllers for working with menu objects
15
+ */
16
+ class MenusApi extends oneEntry_1.default {
17
+ constructor(url) {
18
+ super(url);
19
+ this._url += '/api/content/menus';
20
+ }
21
+ /**
22
+ * Get pages includes in menu by marker.
23
+ *
24
+ * @param {string} [marker] - Menu marker
25
+ *
26
+ * @returns Returns a single menu object as a ContentMenuDto object with included pages
27
+ */
28
+ getMenusByMarker(marker) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const result = yield this._fetchGet(`/marker/${marker}`);
31
+ return result;
32
+ });
33
+ }
34
+ }
35
+ exports.default = MenusApi;
36
+ //# sourceMappingURL=menusApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menusApi.js","sourceRoot":"","sources":["../../../src/menus/menusApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,QAAS,SAAQ,kBAAQ;IAC1C,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,oBAAoB,CAAA;IACrC,CAAC;IAED;;;;;;OAMG;IACU,gBAAgB,CAAC,MAAa;;YACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,MAAM,EAAE,CAAC,CAAA;YACxD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CAEJ;AAlBD,2BAkBC"}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=menusInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menusInterfaces.js","sourceRoot":"","sources":["../../../src/menus/menusInterfaces.ts"],"names":[],"mappings":""}
@@ -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,34 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const oneEntry_1 = require("../base/oneEntry");
13
+ /**
14
+ * Controllers for working with application modules
15
+ */
16
+ class ModulesApi extends oneEntry_1.default {
17
+ constructor(url) {
18
+ super(url);
19
+ this._url += '/api/content/modules';
20
+ }
21
+ /**
22
+ * Get all modules.
23
+ *
24
+ * @returns Returns BaseModuleDto objects or an empty array [] if there is no data
25
+ */
26
+ getAllModules() {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ const result = yield this._fetchGet('');
29
+ return result;
30
+ });
31
+ }
32
+ }
33
+ exports.default = ModulesApi;
34
+ //# sourceMappingURL=modulesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modulesApi.js","sourceRoot":"","sources":["../../../src/modules/modulesApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,UAAW,SAAQ,kBAAQ;IAC5C,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,sBAAsB,CAAA;IACvC,CAAC;IAED;;;;OAIG;IACU,aAAa;;YACtB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACvC,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CAEJ;AAhBD,6BAgBC"}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=modulesInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modulesInterfaces.js","sourceRoot":"","sources":["../../../src/modules/modulesInterfaces.ts"],"names":[],"mappings":""}
@@ -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,137 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const oneEntry_1 = require("../base/oneEntry");
13
+ /**
14
+ * Controllers for working with page objects, including catalog pages
15
+ */
16
+ class PageApi extends oneEntry_1.default {
17
+ constructor(url) {
18
+ super(url);
19
+ this._url += '/api/content/pages';
20
+ }
21
+ /**
22
+ * Get all top-level page objects.
23
+ *
24
+ * @param {string} [langCode] Required parameter lang code
25
+ *
26
+ * @returns Returns all created pages without parents as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
27
+ */
28
+ getRootPages(langCode) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const result = yield this._fetchGet(`/root?langCode=${langCode}`);
31
+ return result;
32
+ });
33
+ }
34
+ /**
35
+ * Get all page objects with product information as an array.
36
+ *
37
+ * @param {string} [langCode] Required parameter lang code
38
+ *
39
+ * @param {number} [limit] - Optional parameter for pagination, default is 30
40
+ *
41
+ * @param {number} [offset] - Optional parameter for pagination, default is 0
42
+ *
43
+ * @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
44
+ */
45
+ getCatalogPages(langCode, limit = 30, offset = 0) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ const result = yield this._fetchGet(`/catalog?langCode=${langCode}&limit=${limit}&offset=${offset}`);
48
+ return result;
49
+ });
50
+ }
51
+ /**
52
+ * Get all page objects with product information as an array.
53
+ *
54
+ * @param {string} [langCode] Required parameter lang code
55
+ *
56
+ * @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
57
+ */
58
+ getPages(langCode) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const result = yield this._fetchGet(`?langCode=${langCode}`);
61
+ return result;
62
+ });
63
+ }
64
+ /**
65
+ * Get page object with information about forms, blocks, menus, linked to the page.
66
+ *
67
+ * @param {string} [langCode] Required parameter lang code
68
+ *
69
+ * @param {number} [id] - Page object identifier
70
+ *
71
+ * @returns Returns page object (DTO depends on the type of page being returned)
72
+ */
73
+ getPageById(id, langCode) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const result = yield this._fetchGet(`/${id}?langCode=${langCode}`);
76
+ return result;
77
+ });
78
+ }
79
+ /**
80
+ * Get page object with information about forms, blocks, menus, linked to the page by URL.
81
+ *
82
+ * @param {string} [langCode] Required parameter lang code
83
+ *
84
+ * @param {string} [url] - Page URL
85
+ *
86
+ * @returns Returns page object (DTO depends on the type of page being returned)
87
+ */
88
+ getPageByUrl(url, langCode) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const result = yield this._fetchGet(`/url/${url}?langCode=${langCode}`);
91
+ return result;
92
+ });
93
+ }
94
+ // /**
95
+ // * Get child pages object with information as an array.
96
+ // *
97
+ // * @param {string} [langCode] Required parameter lang code
98
+ // *
99
+ // * @param {string} [url] - Page URL
100
+ // *
101
+ // * @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data) for the selected parent
102
+ // */
103
+ // public async getChildPagesByParentUrl(url:string, langCode:string):Promise<IPagesEntity> {
104
+ // const result = await this._fetchGet(`/${url}/children?langCode=${langCode}`)
105
+ // return result
106
+ // }
107
+ /**
108
+ * Get settings for the page.
109
+ *
110
+ * @param {string} [url] - Page URL
111
+ *
112
+ * @returns Returns a ConfigPageDto object with page display settings
113
+ */
114
+ getConfigPageByUrl(url) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ const result = yield this._fetchGet(`/${url}/config`);
117
+ return result;
118
+ });
119
+ }
120
+ /**
121
+ * Quick search for page objects with limited output.
122
+ *
123
+ * @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)
124
+ *
125
+ * @param {string} [langCode] Required parameter lang code
126
+ *
127
+ * @returns Returns all created pages as an array of ContentIndexedPageDto objects or an empty array [] (if there is no data)
128
+ */
129
+ searchPage(name, langCode) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const result = yield this._fetchGet(`/quick/search?lang=${langCode}&name=${name}`);
132
+ return result;
133
+ });
134
+ }
135
+ }
136
+ exports.default = PageApi;
137
+ //# sourceMappingURL=pagesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagesApi.js","sourceRoot":"","sources":["../../../src/pages/pagesApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,OAAQ,SAAQ,kBAAQ;IACzC,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,oBAAoB,CAAA;IACrC,CAAC;IAED;;;;;;OAMG;IACU,YAAY,CAAC,QAAe;;YACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,kBAAkB,QAAQ,EAAE,CAAC,CAAA;YACjE,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;;;;;OAUG;IACU,eAAe,CAAC,QAAe,EAAE,QAAe,EAAE,EAAE,SAAgB,CAAC;;YAC9E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,qBAAqB,QAAQ,UAAU,KAAK,WAAW,MAAM,EAAE,CAAC,CAAA;YACpG,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;OAMG;IACU,QAAQ,CAAC,QAAe;;YACjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,CAAA;YAC5D,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACU,WAAW,CAAC,EAAS,EAAE,QAAe;;YAC/C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,aAAa,QAAQ,EAAE,CAAC,CAAA;YAClE,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACU,YAAY,CAAC,GAAU,EAAE,QAAe;;YACjD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,aAAa,QAAQ,EAAE,CAAC,CAAA;YACvE,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED,MAAM;IACN,0DAA0D;IAC1D,KAAK;IACL,6DAA6D;IAC7D,KAAK;IACL,sCAAsC;IACtC,KAAK;IACL,wJAAwJ;IACxJ,MAAM;IACN,6FAA6F;IAC7F,mFAAmF;IACnF,oBAAoB;IACpB,IAAI;IAEJ;;;;;;OAMG;IACU,kBAAkB,CAAC,GAAU;;YACtC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,CAAA;YACrD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACU,UAAU,CAAC,IAAW,EAAE,QAAe;;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,QAAQ,SAAS,IAAI,EAAE,CAAC,CAAA;YAClF,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CAEJ;AAlHD,0BAkHC"}