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,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,30 @@
1
+ var LanguageCode;
2
+ (function (LanguageCode) {
3
+ LanguageCode["ru_RU"] = "ru_RU";
4
+ LanguageCode["en_US"] = "en_US";
5
+ LanguageCode["fr_FR"] = "fr_FR";
6
+ })(LanguageCode || (LanguageCode = {}));
7
+ var Types;
8
+ (function (Types) {
9
+ Types["forCatalogProducts"] = "forCatalogProducts";
10
+ Types["forBasketPage"] = "forBasketPage";
11
+ Types["forErrorPage"] = "forErrorPage";
12
+ Types["forCatalogPages"] = "forCatalogPages";
13
+ Types["forProductPreview"] = "forProductPreview";
14
+ Types["forProductPage"] = "forProductPage";
15
+ Types["forSimilarProductBlock"] = "forSimilarProductBlock";
16
+ Types["forStatisticProductBlock"] = "forStatisticProductBlock";
17
+ Types["forProductBlock"] = "forProductBlock";
18
+ Types["forForm"] = "forForm";
19
+ Types["forFormField"] = "forFormField";
20
+ Types["forNewsPage"] = "forNewsPage";
21
+ Types["forNewsBlock"] = "forNewsBlock";
22
+ Types["forNewsPreview"] = "forNewsPreview";
23
+ Types["forOneNewsPage"] = "forOneNewsPage";
24
+ Types["forUsualPage"] = "forUsualPage";
25
+ Types["forTextBlock"] = "forTextBlock";
26
+ Types["forSlider"] = "forSlider";
27
+ Types["service"] = "service";
28
+ })(Types || (Types = {}));
29
+ export { LanguageCode, Types, };
30
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/base/utils.ts"],"names":[],"mappings":"AAAA,IAAK,YAIJ;AAJD,WAAK,YAAY;IACb,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+BAAa,CAAA;AACjB,CAAC,EAJI,YAAY,KAAZ,YAAY,QAIhB;AAED,IAAK,KAoBJ;AApBD,WAAK,KAAK;IACN,kDAAyC,CAAA;IACzC,wCAA+B,CAAA;IAC/B,sCAA6B,CAAA;IAC7B,4CAAmC,CAAA;IACnC,gDAAuC,CAAA;IACvC,0CAAiC,CAAA;IACjC,0DAAiD,CAAA;IACjD,8DAAqD,CAAA;IACrD,4CAAmC,CAAA;IACnC,4BAAmB,CAAA;IACnB,sCAA6B,CAAA;IAC7B,oCAA2B,CAAA;IAC3B,sCAA6B,CAAA;IAC7B,0CAAiC,CAAA;IACjC,0CAAiC,CAAA;IACjC,sCAA6B,CAAA;IAC7B,sCAA6B,CAAA;IAC7B,gCAAuB,CAAA;IACvB,4BAAmB,CAAA;AACvB,CAAC,EApBI,KAAK,KAAL,KAAK,QAoBT;AAQD,OAAO,EACH,YAAY,EAEZ,KAAK,GACR,CAAA"}
@@ -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,53 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import OneEntry from "../base/oneEntry";
11
+ /**
12
+ * Controllers for forms objects
13
+ */
14
+ export default class FormsApi extends OneEntry {
15
+ constructor(url) {
16
+ super(url);
17
+ this._url += '/api/content/forms';
18
+ }
19
+ /**
20
+ * Get all forms.
21
+ *
22
+ * @returns Returns array for all objects of type FormEntity
23
+ */
24
+ getAllForms() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const result = yield this._fetchGet('');
27
+ return result;
28
+ });
29
+ }
30
+ /**
31
+ * Get one form by form id.
32
+ *
33
+ * @returns Returns object of type FormEntity
34
+ */
35
+ getFormById(id) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const result = yield this._fetchGet(`/${id}`);
38
+ return result;
39
+ });
40
+ }
41
+ /**
42
+ * Get one form by form marker.
43
+ *
44
+ * @returns Returns object of type FormEntity
45
+ */
46
+ getFormByMarker(marker) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const result = yield this._fetchGet(`/marker/${marker}`);
49
+ return result;
50
+ });
51
+ }
52
+ }
53
+ //# sourceMappingURL=formsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formsApi.js","sourceRoot":"","sources":["../../../src/forms/formsApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAGxC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;IAC1C,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,oBAAoB,CAAA;IACrC,CAAC;IAED;;;;OAIG;IACU,WAAW;;YACpB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACvC,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;OAIG;IACU,WAAW,CAAC,EAAS;;YAC9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;YAC7C,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;OAIG;IACU,eAAe,CAAC,MAAa;;YACtC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,MAAM,EAAE,CAAC,CAAA;YACxD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CACJ"}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=formsInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formsInterfaces.js","sourceRoot":"","sources":["../../../src/forms/formsInterfaces.ts"],"names":[],"mappings":""}
@@ -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,68 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import OneEntry from '../base/oneEntry';
11
+ /**
12
+ * Controllers for working with form data
13
+ */
14
+ export default class FormsDataApi extends OneEntry {
15
+ constructor(url) {
16
+ super(url);
17
+ this._url += '/api/content/form-data';
18
+ }
19
+ /**
20
+ * Get all forms data.
21
+ *
22
+ * @returns Returns array for all objects of type CreateFormDataDto
23
+ */
24
+ getFormsData() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const result = yield this._fetchGet('');
27
+ return result;
28
+ });
29
+ }
30
+ /**
31
+ * Find all product page objects with pagination and multiple filtering.
32
+ *
33
+ * @param {object} [data] - Request body.
34
+ * Example Value:
35
+ * {
36
+ * "formIdentifier": "my-form",
37
+ * "formData": [
38
+ * {
39
+ * "marker": "naimenovanie_1",
40
+ * "value": "Наименование",
41
+ * "langCode": "ru_RU"
42
+ * }
43
+ * ]
44
+ * }
45
+ *
46
+ * @returns - Returns created CreateFormDataDto objects.
47
+ */
48
+ postFormsData(data) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const result = yield this._fetchPost('', data);
51
+ return result;
52
+ });
53
+ }
54
+ /**
55
+ * Get one object of form data by marker.
56
+ *
57
+ * @param {string} [marker] - Marker of the form data
58
+ *
59
+ * @returns Returns array of object FormDataEntity
60
+ */
61
+ getFormsDataByMarker(marker) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const result = yield this._fetchGet(`/${marker}`);
64
+ return result;
65
+ });
66
+ }
67
+ }
68
+ //# sourceMappingURL=formsDataApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formsDataApi.js","sourceRoot":"","sources":["../../../src/formsData/formsDataApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ;IAC9C,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,wBAAwB,CAAA;IACzC,CAAC;IAED;;;;OAIG;IACU,YAAY;;YACrB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACvC,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;OAiBG;IACU,aAAa,CAAC,IAAsB;;YAC7C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,EAAC,IAAI,CAAC,CAAA;YAC7C,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;OAMG;IACU,oBAAoB,CAAC,MAAa;;YAC3C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,CAAC,CAAA;YACjD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CACJ"}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=formsDataInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formsDataInterfaces.js","sourceRoot":"","sources":["../../../src/formsData/formsDataInterfaces.ts"],"names":[],"mappings":""}
@@ -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,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import OneEntry from "../base/oneEntry";
11
+ /**
12
+ * Controllers for working with types
13
+ */
14
+ export default class GeneralTypesApi extends OneEntry {
15
+ constructor(url) {
16
+ super(url);
17
+ this._url += '/api/content/general-types';
18
+ }
19
+ /**
20
+ * Get all types.
21
+ *
22
+ * @returns Returns all objects of type GeneralTypeEntity
23
+ */
24
+ getAllTypes() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const result = yield this._fetchGet('');
27
+ return result;
28
+ });
29
+ }
30
+ }
31
+ //# sourceMappingURL=generalTypesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalTypesApi.js","sourceRoot":"","sources":["../../../src/general-types/generalTypesApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAGxC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ;IACjD,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,4BAA4B,CAAA;IAC7C,CAAC;IAED;;;;OAIG;IACU,WAAW;;YACpB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACvC,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CAEJ"}
@@ -0,0 +1,9 @@
1
+ import { Types } from "../base/utils";
2
+ interface IGeneralTypes {
3
+ getAllTypes(): Promise<Array<IGeneralTypesEntity>>;
4
+ }
5
+ interface IGeneralTypesEntity {
6
+ id: number;
7
+ type: Types;
8
+ }
9
+ export { IGeneralTypes, IGeneralTypesEntity };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generalTypesInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalTypesInterfaces.js","sourceRoot":"","sources":["../../../src/general-types/generalTypesInterfaces.ts"],"names":[],"mappings":""}
@@ -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,51 @@
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
+ /**
15
+ * Define API.
16
+ * @param {string} url - URl of your project.
17
+ * @returns {IDefineApi} - List of methods set.
18
+ */
19
+ export function defineOneEntry(url) {
20
+ const Product = new ProductApi(url);
21
+ const Page = new PageApi(url);
22
+ const ProductStatus = new ProductStatusesApi(url);
23
+ const Templates = new TemplatesApi(url);
24
+ const TemplatesPreview = new TemplatesPreviewApi(url);
25
+ // const Markers: MarkersApi = new MarkersApi(url)
26
+ const AttributeSet = new AttributeSetApi(url);
27
+ const Admins = new AdminsApi(url);
28
+ const GeneralTypes = new GeneralTypesApi(url);
29
+ const Locales = new LocalesApi(url);
30
+ const Menus = new MenusApi(url);
31
+ const Modules = new ModulesApi(url);
32
+ const Forms = new FormsApi(url);
33
+ const FormsData = new FormsDataApi(url);
34
+ return {
35
+ Admins,
36
+ AttributeSet,
37
+ Forms,
38
+ FormsData,
39
+ GeneralTypes,
40
+ Locales,
41
+ // Markers,
42
+ Modules,
43
+ Menus,
44
+ Page,
45
+ Product,
46
+ ProductStatus,
47
+ Templates,
48
+ TemplatesPreview
49
+ };
50
+ }
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAA;AAC/C,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAE1E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAC1C,OAAO,eAAe,MAAM,iCAAiC,CAAA;AAC7D,OAAO,UAAU,MAAM,sBAAsB,CAAA;AAC7C,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAmBpD;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,GAAU;IACrC,MAAM,OAAO,GAAc,IAAI,UAAU,CAAC,GAAG,CAAC,CAAA;IAC9C,MAAM,IAAI,GAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAA;IACrC,MAAM,aAAa,GAAsB,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAA;IACpE,MAAM,SAAS,GAAiB,IAAI,YAAY,CAAC,GAAG,CAAC,CAAA;IACrD,MAAM,gBAAgB,GAAwB,IAAI,mBAAmB,CAAC,GAAG,CAAC,CAAA;IAC1E,kDAAkD;IAClD,MAAM,YAAY,GAAoB,IAAI,eAAe,CAAC,GAAG,CAAC,CAAA;IAC9D,MAAM,MAAM,GAAc,IAAI,SAAS,CAAC,GAAG,CAAC,CAAA;IAC5C,MAAM,YAAY,GAAqB,IAAI,eAAe,CAAC,GAAG,CAAC,CAAA;IAC/D,MAAM,OAAO,GAAe,IAAI,UAAU,CAAC,GAAG,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAa,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAA;IACzC,MAAM,OAAO,GAAe,IAAI,UAAU,CAAC,GAAG,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAa,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAA;IACzC,MAAM,SAAS,GAAiB,IAAI,YAAY,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"}
@@ -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,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import OneEntry from "../base/oneEntry";
11
+ /**
12
+ * Controllers for working with localizations (content language)
13
+ */
14
+ export default class LocalesApi extends OneEntry {
15
+ constructor(url) {
16
+ super(url);
17
+ this._url += '/api/content/locales';
18
+ }
19
+ /**
20
+ * Find all active language localization objects.
21
+ *
22
+ * @returns Returns an array of LocaleEntity objects
23
+ */
24
+ getLocales() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const result = yield this._fetchGet('/active/all');
27
+ return result;
28
+ });
29
+ }
30
+ }
31
+ //# sourceMappingURL=localesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localesApi.js","sourceRoot":"","sources":["../../../src/locales/localesApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAGxC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ;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"}
@@ -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,2 @@
1
+ export {};
2
+ //# 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
+ }