oneentry 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -87
- package/dist/_cjs/admins/adminsApi.d.ts +14 -0
- package/dist/_cjs/admins/adminsApi.js +34 -0
- package/dist/_cjs/admins/adminsApi.js.map +1 -0
- package/dist/_cjs/admins/adminsInterfaces.d.ts +32 -0
- package/dist/_cjs/admins/adminsInterfaces.js +3 -0
- package/dist/_cjs/admins/adminsInterfaces.js.map +1 -0
- package/dist/_cjs/attribute-set/attributeSetApi.d.ts +24 -0
- package/dist/_cjs/attribute-set/attributeSetApi.js +49 -0
- package/dist/_cjs/attribute-set/attributeSetApi.js.map +1 -0
- package/dist/_cjs/attribute-set/attributeSetInterfaces.d.ts +23 -0
- package/dist/_cjs/attribute-set/attributeSetInterfaces.js +3 -0
- package/dist/_cjs/attribute-set/attributeSetInterfaces.js.map +1 -0
- package/dist/_cjs/base/oneEntry.d.ts +9 -0
- package/dist/_cjs/base/oneEntry.js +55 -0
- package/dist/_cjs/base/oneEntry.js.map +1 -0
- package/dist/_cjs/base/utils.d.ts +32 -0
- package/dist/_cjs/base/utils.js +32 -0
- package/dist/_cjs/base/utils.js.map +1 -0
- package/dist/_cjs/forms/formsApi.d.ts +26 -0
- package/dist/_cjs/forms/formsApi.js +56 -0
- package/dist/_cjs/forms/formsApi.js.map +1 -0
- package/dist/_cjs/forms/formsInterfaces.d.ts +28 -0
- package/dist/_cjs/forms/formsInterfaces.js +3 -0
- package/dist/_cjs/forms/formsInterfaces.js.map +1 -0
- package/dist/_cjs/formsData/formsDataApi.d.ts +41 -0
- package/dist/_cjs/formsData/formsDataApi.js +71 -0
- package/dist/_cjs/formsData/formsDataApi.js.map +1 -0
- package/dist/_cjs/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/_cjs/formsData/formsDataInterfaces.js +3 -0
- package/dist/_cjs/formsData/formsDataInterfaces.js.map +1 -0
- package/dist/_cjs/general-types/generalTypesApi.d.ts +14 -0
- package/dist/_cjs/general-types/generalTypesApi.js +34 -0
- package/dist/_cjs/general-types/generalTypesApi.js.map +1 -0
- package/dist/_cjs/general-types/generalTypesInterfaces.d.ts +9 -0
- package/dist/_cjs/general-types/generalTypesInterfaces.js +3 -0
- package/dist/_cjs/general-types/generalTypesInterfaces.js.map +1 -0
- package/dist/_cjs/index.d.ts +35 -0
- package/dist/_cjs/index.js +55 -0
- package/dist/_cjs/index.js.map +1 -0
- package/dist/_cjs/locales/localesApi.d.ts +14 -0
- package/dist/_cjs/locales/localesApi.js +34 -0
- package/dist/_cjs/locales/localesApi.js.map +1 -0
- package/dist/_cjs/locales/localesInterfaces.d.ts +15 -0
- package/dist/_cjs/locales/localesInterfaces.js +3 -0
- package/dist/_cjs/locales/localesInterfaces.js.map +1 -0
- package/dist/_cjs/markers/markersApi.d.ts +35 -0
- package/dist/_cjs/markers/markersApi.js +65 -0
- package/dist/_cjs/markers/markersApi.js.map +1 -0
- package/dist/_cjs/markers/markersInterfaces.d.ts +16 -0
- package/dist/_cjs/markers/markersInterfaces.js +3 -0
- package/dist/_cjs/markers/markersInterfaces.js.map +1 -0
- package/dist/_cjs/menus/menusApi.d.ts +16 -0
- package/dist/_cjs/menus/menusApi.js +36 -0
- package/dist/_cjs/menus/menusApi.js.map +1 -0
- package/dist/_cjs/menus/menusInterfaces.d.ts +18 -0
- package/dist/_cjs/menus/menusInterfaces.js +3 -0
- package/dist/_cjs/menus/menusInterfaces.js.map +1 -0
- package/dist/_cjs/modules/modulesApi.d.ts +14 -0
- package/dist/_cjs/modules/modulesApi.js +34 -0
- package/dist/_cjs/modules/modulesApi.js.map +1 -0
- package/dist/_cjs/modules/modulesInterfaces.d.ts +19 -0
- package/dist/_cjs/modules/modulesInterfaces.js +3 -0
- package/dist/_cjs/modules/modulesInterfaces.js.map +1 -0
- package/dist/_cjs/pages/pagesApi.d.ts +74 -0
- package/dist/_cjs/pages/pagesApi.js +137 -0
- package/dist/_cjs/pages/pagesApi.js.map +1 -0
- package/dist/_cjs/pages/pagesInterfaces.d.ts +39 -0
- package/dist/_cjs/pages/pagesInterfaces.js +3 -0
- package/dist/_cjs/pages/pagesInterfaces.js.map +1 -0
- package/dist/_cjs/product-statuses/productStatusesApi.d.ts +38 -0
- package/dist/_cjs/product-statuses/productStatusesApi.js +73 -0
- package/dist/_cjs/product-statuses/productStatusesApi.js.map +1 -0
- package/dist/_cjs/product-statuses/productStatusesInterfaces.d.ts +15 -0
- package/dist/_cjs/product-statuses/productStatusesInterfaces.js +3 -0
- package/dist/_cjs/product-statuses/productStatusesInterfaces.js.map +1 -0
- package/dist/_cjs/products/productsApi.d.ts +195 -0
- package/dist/_cjs/products/productsApi.js +295 -0
- package/dist/_cjs/products/productsApi.js.map +1 -0
- package/dist/_cjs/products/productsInterfaces.d.ts +83 -0
- package/dist/_cjs/products/productsInterfaces.js +3 -0
- package/dist/_cjs/products/productsInterfaces.js.map +1 -0
- package/dist/_cjs/templates/templatesApi.d.ts +32 -0
- package/dist/_cjs/templates/templatesApi.js +72 -0
- package/dist/_cjs/templates/templatesApi.js.map +1 -0
- package/dist/_cjs/templates/templatesInterfaces.d.ts +30 -0
- package/dist/_cjs/templates/templatesInterfaces.js +3 -0
- package/dist/_cjs/templates/templatesInterfaces.js.map +1 -0
- package/dist/_cjs/templates-preview/templatesPreviewApi.d.ts +30 -0
- package/dist/_cjs/templates-preview/templatesPreviewApi.js +60 -0
- package/dist/_cjs/templates-preview/templatesPreviewApi.js.map +1 -0
- package/dist/_cjs/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
- package/dist/_cjs/templates-preview/templatesPreviewInterfaces.js +3 -0
- package/dist/_cjs/templates-preview/templatesPreviewInterfaces.js.map +1 -0
- package/dist/_esm/admins/adminsApi.d.ts +14 -0
- package/dist/_esm/admins/adminsApi.js +31 -0
- package/dist/_esm/admins/adminsApi.js.map +1 -0
- package/dist/_esm/admins/adminsInterfaces.d.ts +32 -0
- package/dist/_esm/admins/adminsInterfaces.js +2 -0
- package/dist/_esm/admins/adminsInterfaces.js.map +1 -0
- package/dist/_esm/attribute-set/attributeSetApi.d.ts +24 -0
- package/dist/_esm/attribute-set/attributeSetApi.js +46 -0
- package/dist/_esm/attribute-set/attributeSetApi.js.map +1 -0
- package/dist/_esm/attribute-set/attributeSetInterfaces.d.ts +23 -0
- package/dist/_esm/attribute-set/attributeSetInterfaces.js +2 -0
- package/dist/_esm/attribute-set/attributeSetInterfaces.js.map +1 -0
- package/dist/_esm/base/oneEntry.d.ts +9 -0
- package/dist/_esm/base/oneEntry.js +52 -0
- package/dist/_esm/base/oneEntry.js.map +1 -0
- package/dist/_esm/base/utils.d.ts +32 -0
- package/dist/_esm/base/utils.js +30 -0
- package/dist/_esm/base/utils.js.map +1 -0
- package/dist/_esm/forms/formsApi.d.ts +26 -0
- package/dist/_esm/forms/formsApi.js +53 -0
- package/dist/_esm/forms/formsApi.js.map +1 -0
- package/dist/_esm/forms/formsInterfaces.d.ts +28 -0
- package/dist/_esm/forms/formsInterfaces.js +2 -0
- package/dist/_esm/forms/formsInterfaces.js.map +1 -0
- package/dist/_esm/formsData/formsDataApi.d.ts +41 -0
- package/dist/_esm/formsData/formsDataApi.js +68 -0
- package/dist/_esm/formsData/formsDataApi.js.map +1 -0
- package/dist/_esm/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/_esm/formsData/formsDataInterfaces.js +2 -0
- package/dist/_esm/formsData/formsDataInterfaces.js.map +1 -0
- package/dist/_esm/general-types/generalTypesApi.d.ts +14 -0
- package/dist/_esm/general-types/generalTypesApi.js +31 -0
- package/dist/_esm/general-types/generalTypesApi.js.map +1 -0
- package/dist/_esm/general-types/generalTypesInterfaces.d.ts +9 -0
- package/dist/_esm/general-types/generalTypesInterfaces.js +2 -0
- package/dist/_esm/general-types/generalTypesInterfaces.js.map +1 -0
- package/dist/_esm/index.d.ts +35 -0
- package/dist/_esm/index.js +51 -0
- package/dist/_esm/index.js.map +1 -0
- package/dist/_esm/locales/localesApi.d.ts +14 -0
- package/dist/_esm/locales/localesApi.js +31 -0
- package/dist/_esm/locales/localesApi.js.map +1 -0
- package/dist/_esm/locales/localesInterfaces.d.ts +15 -0
- package/dist/_esm/locales/localesInterfaces.js +2 -0
- package/dist/_esm/locales/localesInterfaces.js.map +1 -0
- package/dist/_esm/markers/markersApi.d.ts +35 -0
- package/dist/_esm/markers/markersApi.js +62 -0
- package/dist/_esm/markers/markersApi.js.map +1 -0
- package/dist/_esm/markers/markersInterfaces.d.ts +16 -0
- package/dist/_esm/markers/markersInterfaces.js +2 -0
- package/dist/_esm/markers/markersInterfaces.js.map +1 -0
- package/dist/_esm/menus/menusApi.d.ts +16 -0
- package/dist/_esm/menus/menusApi.js +33 -0
- package/dist/_esm/menus/menusApi.js.map +1 -0
- package/dist/_esm/menus/menusInterfaces.d.ts +18 -0
- package/dist/_esm/menus/menusInterfaces.js +2 -0
- package/dist/_esm/menus/menusInterfaces.js.map +1 -0
- package/dist/_esm/modules/modulesApi.d.ts +14 -0
- package/dist/_esm/modules/modulesApi.js +31 -0
- package/dist/_esm/modules/modulesApi.js.map +1 -0
- package/dist/_esm/modules/modulesInterfaces.d.ts +19 -0
- package/dist/_esm/modules/modulesInterfaces.js +2 -0
- package/dist/_esm/modules/modulesInterfaces.js.map +1 -0
- package/dist/_esm/pages/pagesApi.d.ts +74 -0
- package/dist/_esm/pages/pagesApi.js +134 -0
- package/dist/_esm/pages/pagesApi.js.map +1 -0
- package/dist/_esm/pages/pagesInterfaces.d.ts +39 -0
- package/dist/_esm/pages/pagesInterfaces.js +2 -0
- package/dist/_esm/pages/pagesInterfaces.js.map +1 -0
- package/dist/_esm/product-statuses/productStatusesApi.d.ts +38 -0
- package/dist/_esm/product-statuses/productStatusesApi.js +70 -0
- package/dist/_esm/product-statuses/productStatusesApi.js.map +1 -0
- package/dist/_esm/product-statuses/productStatusesInterfaces.d.ts +15 -0
- package/dist/_esm/product-statuses/productStatusesInterfaces.js +2 -0
- package/dist/_esm/product-statuses/productStatusesInterfaces.js.map +1 -0
- package/dist/_esm/products/productsApi.d.ts +195 -0
- package/dist/_esm/products/productsApi.js +292 -0
- package/dist/_esm/products/productsApi.js.map +1 -0
- package/dist/_esm/products/productsInterfaces.d.ts +83 -0
- package/dist/_esm/products/productsInterfaces.js +2 -0
- package/dist/_esm/products/productsInterfaces.js.map +1 -0
- package/dist/_esm/templates/templatesApi.d.ts +32 -0
- package/dist/_esm/templates/templatesApi.js +69 -0
- package/dist/_esm/templates/templatesApi.js.map +1 -0
- package/dist/_esm/templates/templatesInterfaces.d.ts +30 -0
- package/dist/_esm/templates/templatesInterfaces.js +2 -0
- package/dist/_esm/templates/templatesInterfaces.js.map +1 -0
- package/dist/_esm/templates-preview/templatesPreviewApi.d.ts +30 -0
- package/dist/_esm/templates-preview/templatesPreviewApi.js +57 -0
- package/dist/_esm/templates-preview/templatesPreviewApi.js.map +1 -0
- package/dist/_esm/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
- package/dist/_esm/templates-preview/templatesPreviewInterfaces.js +2 -0
- package/dist/_esm/templates-preview/templatesPreviewInterfaces.js.map +1 -0
- package/dist/_types/admins/adminsApi.d.ts +14 -0
- package/dist/_types/admins/adminsInterfaces.d.ts +32 -0
- package/dist/_types/attribute-set/attributeSetApi.d.ts +24 -0
- package/dist/_types/attribute-set/attributeSetInterfaces.d.ts +23 -0
- package/dist/_types/base/oneEntry.d.ts +9 -0
- package/dist/_types/base/utils.d.ts +32 -0
- package/dist/_types/forms/formsApi.d.ts +26 -0
- package/dist/_types/forms/formsInterfaces.d.ts +28 -0
- package/dist/_types/formsData/formsDataApi.d.ts +41 -0
- package/dist/_types/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/_types/general-types/generalTypesApi.d.ts +14 -0
- package/dist/_types/general-types/generalTypesInterfaces.d.ts +9 -0
- package/dist/_types/index.d.ts +35 -0
- package/dist/_types/locales/localesApi.d.ts +14 -0
- package/dist/_types/locales/localesInterfaces.d.ts +15 -0
- package/dist/_types/markers/markersApi.d.ts +35 -0
- package/dist/_types/markers/markersInterfaces.d.ts +16 -0
- package/dist/_types/menus/menusApi.d.ts +16 -0
- package/dist/_types/menus/menusInterfaces.d.ts +18 -0
- package/dist/_types/modules/modulesApi.d.ts +14 -0
- package/dist/_types/modules/modulesInterfaces.d.ts +19 -0
- package/dist/_types/pages/pagesApi.d.ts +74 -0
- package/dist/_types/pages/pagesInterfaces.d.ts +39 -0
- package/dist/_types/product-statuses/productStatusesApi.d.ts +38 -0
- package/dist/_types/product-statuses/productStatusesInterfaces.d.ts +15 -0
- package/dist/_types/products/productsApi.d.ts +195 -0
- package/dist/_types/products/productsInterfaces.d.ts +83 -0
- package/dist/_types/templates/templatesApi.d.ts +32 -0
- package/dist/_types/templates/templatesInterfaces.d.ts +30 -0
- package/dist/_types/templates-preview/templatesPreviewApi.d.ts +30 -0
- package/dist/_types/templates-preview/templatesPreviewInterfaces.d.ts +27 -0
- package/dist/products/productsApi.d.ts +6 -4
- package/dist/products/productsApi.js +27 -7
- package/dist/products/productsApi.js.map +1 -1
- package/dist/products/productsInterfaces.d.ts +14 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -83,8 +83,8 @@ Example return:
|
|
|
83
83
|
"permissions": {
|
|
84
84
|
"menu.create": true
|
|
85
85
|
},
|
|
86
|
-
"selectedLanguage": "
|
|
87
|
-
"selectedContentLanguage": "
|
|
86
|
+
"selectedLanguage": "en_US",
|
|
87
|
+
"selectedContentLanguage": "en_US",
|
|
88
88
|
"selectedUITheme": "DARK"
|
|
89
89
|
}
|
|
90
90
|
]
|
|
@@ -113,8 +113,8 @@ Example return:
|
|
|
113
113
|
"identifier": "catalog",
|
|
114
114
|
"typeId": 1,
|
|
115
115
|
"localizeInfos": {
|
|
116
|
-
"
|
|
117
|
-
"title": "
|
|
116
|
+
"en_US": {
|
|
117
|
+
"title": "Set for pages"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
"schema": {
|
|
@@ -123,10 +123,10 @@ Example return:
|
|
|
123
123
|
"type": "string",
|
|
124
124
|
"isPrice": false,
|
|
125
125
|
"original": true,
|
|
126
|
-
"identifier": "
|
|
126
|
+
"identifier": "string",
|
|
127
127
|
"localizeInfos": {
|
|
128
|
-
"
|
|
129
|
-
"title": "
|
|
128
|
+
"en_US": {
|
|
129
|
+
"title": "String"
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -159,8 +159,8 @@ Example return:
|
|
|
159
159
|
"identifier": "catalog",
|
|
160
160
|
"typeId": 1,
|
|
161
161
|
"localizeInfos": {
|
|
162
|
-
"
|
|
163
|
-
"title": "
|
|
162
|
+
"en_US": {
|
|
163
|
+
"title": "Set for pages"
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
"schema": {
|
|
@@ -169,10 +169,10 @@ Example return:
|
|
|
169
169
|
"type": "string",
|
|
170
170
|
"isPrice": false,
|
|
171
171
|
"original": true,
|
|
172
|
-
"identifier": "
|
|
172
|
+
"identifier": "string",
|
|
173
173
|
"localizeInfos": {
|
|
174
|
-
"
|
|
175
|
-
"title": "
|
|
174
|
+
"en_US": {
|
|
175
|
+
"title": "String"
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -214,8 +214,8 @@ Example return:
|
|
|
214
214
|
"attributeSetId": 0,
|
|
215
215
|
"processingType": "email",
|
|
216
216
|
"localizeInfos": {
|
|
217
|
-
"
|
|
218
|
-
"title": "
|
|
217
|
+
"en_US": {
|
|
218
|
+
"title": "My form",
|
|
219
219
|
"titleForSite": "",
|
|
220
220
|
"successMessage": "",
|
|
221
221
|
"unsuccessMessage": "",
|
|
@@ -264,8 +264,8 @@ Example return:
|
|
|
264
264
|
"attributeSetId": 0,
|
|
265
265
|
"processingType": "email",
|
|
266
266
|
"localizeInfos": {
|
|
267
|
-
"
|
|
268
|
-
"title": "
|
|
267
|
+
"en_US": {
|
|
268
|
+
"title": "My form",
|
|
269
269
|
"titleForSite": "",
|
|
270
270
|
"successMessage": "",
|
|
271
271
|
"unsuccessMessage": "",
|
|
@@ -315,8 +315,8 @@ Example return:
|
|
|
315
315
|
"attributeSetId": 0,
|
|
316
316
|
"processingType": "email",
|
|
317
317
|
"localizeInfos": {
|
|
318
|
-
"
|
|
319
|
-
"title": "
|
|
318
|
+
"en_US": {
|
|
319
|
+
"title": "My form",
|
|
320
320
|
"titleForSite": "",
|
|
321
321
|
"successMessage": "",
|
|
322
322
|
"unsuccessMessage": "",
|
|
@@ -364,9 +364,9 @@ Example return:
|
|
|
364
364
|
"time": "2023-02-12 10:56",
|
|
365
365
|
"formData": [
|
|
366
366
|
{
|
|
367
|
-
"marker": "
|
|
368
|
-
"value": "
|
|
369
|
-
"langCode": "
|
|
367
|
+
"marker": "name_1",
|
|
368
|
+
"value": "Name",
|
|
369
|
+
"langCode": "en_US"
|
|
370
370
|
}
|
|
371
371
|
]
|
|
372
372
|
}
|
|
@@ -390,9 +390,9 @@ Example return:
|
|
|
390
390
|
"time": "2023-02-12 10:56",
|
|
391
391
|
"formData": [
|
|
392
392
|
{
|
|
393
|
-
"marker": "
|
|
394
|
-
"value": "
|
|
395
|
-
"langCode": "
|
|
393
|
+
"marker": "name_1",
|
|
394
|
+
"value": "Name",
|
|
395
|
+
"langCode": "en_US"
|
|
396
396
|
}
|
|
397
397
|
]
|
|
398
398
|
}
|
|
@@ -417,9 +417,9 @@ Example return:
|
|
|
417
417
|
"time": "2023-02-12 10:56",
|
|
418
418
|
"formData": [
|
|
419
419
|
{
|
|
420
|
-
"marker": "
|
|
421
|
-
"value": "
|
|
422
|
-
"langCode": "
|
|
420
|
+
"marker": "name_1",
|
|
421
|
+
"value": "Name",
|
|
422
|
+
"langCode": "en_US"
|
|
423
423
|
}
|
|
424
424
|
]
|
|
425
425
|
}
|
|
@@ -466,8 +466,8 @@ Example return:
|
|
|
466
466
|
[
|
|
467
467
|
{
|
|
468
468
|
"id": 1764,
|
|
469
|
-
"shortCode": "
|
|
470
|
-
"code": "
|
|
469
|
+
"shortCode": "en",
|
|
470
|
+
"code": "en_US",
|
|
471
471
|
"name": "Bengali",
|
|
472
472
|
"nativeName": "বাংলা",
|
|
473
473
|
"isActive": false,
|
|
@@ -498,8 +498,8 @@ Example return:
|
|
|
498
498
|
"id": 1764,
|
|
499
499
|
"identifier": "catalog",
|
|
500
500
|
"localizeInfos": {
|
|
501
|
-
"
|
|
502
|
-
"title": "
|
|
501
|
+
"en_US": {
|
|
502
|
+
"title": "Main menu"
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
505
|
"pages": [
|
|
@@ -541,8 +541,8 @@ Example return:
|
|
|
541
541
|
"isVisible": true,
|
|
542
542
|
"type": null,
|
|
543
543
|
"localizeInfos": {
|
|
544
|
-
"
|
|
545
|
-
"title": "
|
|
544
|
+
"en_US": {
|
|
545
|
+
"title": "Catalog"
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
548
|
"icon": "mdi mdi-account-key",
|
|
@@ -589,10 +589,10 @@ Example return:
|
|
|
589
589
|
"pageUrl": "string",
|
|
590
590
|
"depth": 3,
|
|
591
591
|
"localizeInfos": {
|
|
592
|
-
"
|
|
593
|
-
"title": "
|
|
594
|
-
"content": "
|
|
595
|
-
"menuTitle": "
|
|
592
|
+
"en_US": {
|
|
593
|
+
"title": "Catalog",
|
|
594
|
+
"content": "Content from catalog",
|
|
595
|
+
"menuTitle": "Catalog"
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
"isVisible": true,
|
|
@@ -641,10 +641,10 @@ Example return:
|
|
|
641
641
|
"pageUrl": "string",
|
|
642
642
|
"depth": 3,
|
|
643
643
|
"localizeInfos": {
|
|
644
|
-
"
|
|
645
|
-
"title": "
|
|
646
|
-
"content": "
|
|
647
|
-
"menuTitle": "
|
|
644
|
+
"en_US": {
|
|
645
|
+
"title": "Catalog",
|
|
646
|
+
"content": "Content from catalog",
|
|
647
|
+
"menuTitle": "Catalog"
|
|
648
648
|
}
|
|
649
649
|
},
|
|
650
650
|
"isVisible": true,
|
|
@@ -692,10 +692,10 @@ Example return:
|
|
|
692
692
|
"pageUrl": "string",
|
|
693
693
|
"depth": 3,
|
|
694
694
|
"localizeInfos": {
|
|
695
|
-
"
|
|
696
|
-
"title": "
|
|
697
|
-
"content": "
|
|
698
|
-
"menuTitle": "
|
|
695
|
+
"en_US": {
|
|
696
|
+
"title": "Catalog",
|
|
697
|
+
"content": "Content for catalog",
|
|
698
|
+
"menuTitle": "Catalog"
|
|
699
699
|
}
|
|
700
700
|
},
|
|
701
701
|
"isVisible": true,
|
|
@@ -737,10 +737,10 @@ const value = await Pages.getPageById(1, 'en_US')
|
|
|
737
737
|
"pageUrl": "string",
|
|
738
738
|
"depth": 3,
|
|
739
739
|
"localizeInfos": {
|
|
740
|
-
"
|
|
741
|
-
"title": "
|
|
742
|
-
"content": "
|
|
743
|
-
"menuTitle": "
|
|
740
|
+
"en_US": {
|
|
741
|
+
"title": "Catalog",
|
|
742
|
+
"content": "Content from catalog",
|
|
743
|
+
"menuTitle": "Catalog"
|
|
744
744
|
}
|
|
745
745
|
},
|
|
746
746
|
"isVisible": true,
|
|
@@ -780,10 +780,10 @@ Example return:
|
|
|
780
780
|
"pageUrl": "string",
|
|
781
781
|
"depth": 3,
|
|
782
782
|
"localizeInfos": {
|
|
783
|
-
"
|
|
784
|
-
"title": "
|
|
785
|
-
"content": "
|
|
786
|
-
"menuTitle": "
|
|
783
|
+
"en_US": {
|
|
784
|
+
"title": "Catalog",
|
|
785
|
+
"content": "Content from catalog",
|
|
786
|
+
"menuTitle": "Catalog"
|
|
787
787
|
}
|
|
788
788
|
},
|
|
789
789
|
"isVisible": true,
|
|
@@ -837,8 +837,8 @@ Example return:
|
|
|
837
837
|
{
|
|
838
838
|
"id": 1764,
|
|
839
839
|
"localizeInfos": {
|
|
840
|
-
"
|
|
841
|
-
"title": "
|
|
840
|
+
"en_US": {
|
|
841
|
+
"title": "Product"
|
|
842
842
|
}
|
|
843
843
|
},
|
|
844
844
|
"isVisible": true,
|
|
@@ -895,6 +895,22 @@ sortOrder: 'DESC',
|
|
|
895
895
|
sortKey: 'id'
|
|
896
896
|
}
|
|
897
897
|
```
|
|
898
|
+
"conditionMarker" by which values are filtered (not set by default), possible values:
|
|
899
|
+
> 'in' - Contains,
|
|
900
|
+
>
|
|
901
|
+
> 'nin' - Does not contain,
|
|
902
|
+
>
|
|
903
|
+
> 'eq' - Equal,
|
|
904
|
+
>
|
|
905
|
+
> 'neq' - Not equal,
|
|
906
|
+
>
|
|
907
|
+
> 'mth' - Greater than,
|
|
908
|
+
>
|
|
909
|
+
> 'lth' - Less than,
|
|
910
|
+
>
|
|
911
|
+
> 'exs' - Exists,
|
|
912
|
+
>
|
|
913
|
+
> 'nexs' - Does not exist
|
|
898
914
|
|
|
899
915
|
### getProducts
|
|
900
916
|
|
|
@@ -909,8 +925,8 @@ Example return:
|
|
|
909
925
|
{
|
|
910
926
|
"id": 1764,
|
|
911
927
|
"localizeInfos": {
|
|
912
|
-
"
|
|
913
|
-
"title": "
|
|
928
|
+
"en_US": {
|
|
929
|
+
"title": "Product"
|
|
914
930
|
}
|
|
915
931
|
},
|
|
916
932
|
"isVisible": true,
|
|
@@ -958,8 +974,8 @@ Example return:
|
|
|
958
974
|
{
|
|
959
975
|
"id": 1764,
|
|
960
976
|
"localizeInfos": {
|
|
961
|
-
"
|
|
962
|
-
"title": "
|
|
977
|
+
"en_US": {
|
|
978
|
+
"title": "Product"
|
|
963
979
|
}
|
|
964
980
|
},
|
|
965
981
|
"isVisible": true,
|
|
@@ -1007,8 +1023,8 @@ Example return:
|
|
|
1007
1023
|
{
|
|
1008
1024
|
"id": 1764,
|
|
1009
1025
|
"localizeInfos": {
|
|
1010
|
-
"
|
|
1011
|
-
"title": "
|
|
1026
|
+
"en_US": {
|
|
1027
|
+
"title": "Product"
|
|
1012
1028
|
}
|
|
1013
1029
|
},
|
|
1014
1030
|
"isVisible": true,
|
|
@@ -1056,8 +1072,8 @@ Example return:
|
|
|
1056
1072
|
{
|
|
1057
1073
|
"id": 1764,
|
|
1058
1074
|
"localizeInfos": {
|
|
1059
|
-
"
|
|
1060
|
-
"title": "
|
|
1075
|
+
"en_US": {
|
|
1076
|
+
"title": "Product"
|
|
1061
1077
|
}
|
|
1062
1078
|
},
|
|
1063
1079
|
"isVisible": true,
|
|
@@ -1105,8 +1121,8 @@ Example return:
|
|
|
1105
1121
|
{
|
|
1106
1122
|
"id": 1764,
|
|
1107
1123
|
"localizeInfos": {
|
|
1108
|
-
"
|
|
1109
|
-
"title": "
|
|
1124
|
+
"en_US": {
|
|
1125
|
+
"title": "Product"
|
|
1110
1126
|
}
|
|
1111
1127
|
},
|
|
1112
1128
|
"isVisible": true,
|
|
@@ -1153,8 +1169,8 @@ Example return:
|
|
|
1153
1169
|
{
|
|
1154
1170
|
"id": 1764,
|
|
1155
1171
|
"localizeInfos": {
|
|
1156
|
-
"
|
|
1157
|
-
"title": "
|
|
1172
|
+
"en_US": {
|
|
1173
|
+
"title": "Product"
|
|
1158
1174
|
}
|
|
1159
1175
|
},
|
|
1160
1176
|
"isVisible": true,
|
|
@@ -1219,8 +1235,8 @@ Example return:
|
|
|
1219
1235
|
{
|
|
1220
1236
|
"id": 1764,
|
|
1221
1237
|
"localizeInfos": {
|
|
1222
|
-
"
|
|
1223
|
-
"title": "
|
|
1238
|
+
"en_US": {
|
|
1239
|
+
"title": "Product"
|
|
1224
1240
|
}
|
|
1225
1241
|
},
|
|
1226
1242
|
"isVisible": true,
|
|
@@ -1268,8 +1284,8 @@ Example return:
|
|
|
1268
1284
|
{
|
|
1269
1285
|
"id": 1764,
|
|
1270
1286
|
"localizeInfos": {
|
|
1271
|
-
"
|
|
1272
|
-
"title": "
|
|
1287
|
+
"en_US": {
|
|
1288
|
+
"title": "Product"
|
|
1273
1289
|
}
|
|
1274
1290
|
},
|
|
1275
1291
|
"isVisible": true,
|
|
@@ -1346,8 +1362,8 @@ Example return:
|
|
|
1346
1362
|
"version": 10,
|
|
1347
1363
|
"identifier": "catalog",
|
|
1348
1364
|
"localizeInfos": {
|
|
1349
|
-
"
|
|
1350
|
-
"title": "
|
|
1365
|
+
"en_US": {
|
|
1366
|
+
"title": "Status 1"
|
|
1351
1367
|
}
|
|
1352
1368
|
}
|
|
1353
1369
|
}
|
|
@@ -1369,8 +1385,8 @@ Example return:
|
|
|
1369
1385
|
"version": 10,
|
|
1370
1386
|
"identifier": "catalog",
|
|
1371
1387
|
"localizeInfos": {
|
|
1372
|
-
"
|
|
1373
|
-
"title": "
|
|
1388
|
+
"en_US": {
|
|
1389
|
+
"title": "Status 1"
|
|
1374
1390
|
}
|
|
1375
1391
|
}
|
|
1376
1392
|
}
|
|
@@ -1391,8 +1407,8 @@ Example return:
|
|
|
1391
1407
|
"version": 10,
|
|
1392
1408
|
"identifier": "catalog",
|
|
1393
1409
|
"localizeInfos": {
|
|
1394
|
-
"
|
|
1395
|
-
"title": "
|
|
1410
|
+
"en_US": {
|
|
1411
|
+
"title": "Status 1"
|
|
1396
1412
|
}
|
|
1397
1413
|
}
|
|
1398
1414
|
}
|
|
@@ -1453,8 +1469,8 @@ Example return:
|
|
|
1453
1469
|
},
|
|
1454
1470
|
"generalTypeId": 4,
|
|
1455
1471
|
"localizeInfos": {
|
|
1456
|
-
"
|
|
1457
|
-
"title": "
|
|
1472
|
+
"en_US": {
|
|
1473
|
+
"title": "Page template"
|
|
1458
1474
|
}
|
|
1459
1475
|
},
|
|
1460
1476
|
"position": {
|
|
@@ -1493,8 +1509,8 @@ Example return:
|
|
|
1493
1509
|
},
|
|
1494
1510
|
"generalTypeId": 4,
|
|
1495
1511
|
"localizeInfos": {
|
|
1496
|
-
"
|
|
1497
|
-
"title": "
|
|
1512
|
+
"en_US": {
|
|
1513
|
+
"title": "Page template"
|
|
1498
1514
|
}
|
|
1499
1515
|
},
|
|
1500
1516
|
"position": {
|
|
@@ -1534,8 +1550,8 @@ Example return:
|
|
|
1534
1550
|
},
|
|
1535
1551
|
"attributeSetId": 0,
|
|
1536
1552
|
"localizeInfos": {
|
|
1537
|
-
"
|
|
1538
|
-
"title": "
|
|
1553
|
+
"en_US": {
|
|
1554
|
+
"title": "Page tamplate"
|
|
1539
1555
|
}
|
|
1540
1556
|
},
|
|
1541
1557
|
"position": {
|
|
@@ -1570,8 +1586,8 @@ Example return:
|
|
|
1570
1586
|
},
|
|
1571
1587
|
"attributeSetId": 0,
|
|
1572
1588
|
"localizeInfos": {
|
|
1573
|
-
"
|
|
1574
|
-
"title": "
|
|
1589
|
+
"en_US": {
|
|
1590
|
+
"title": "Page template"
|
|
1575
1591
|
}
|
|
1576
1592
|
},
|
|
1577
1593
|
"position": {
|
|
@@ -1605,8 +1621,8 @@ Example return:
|
|
|
1605
1621
|
},
|
|
1606
1622
|
"attributeSetId": 0,
|
|
1607
1623
|
"localizeInfos": {
|
|
1608
|
-
"
|
|
1609
|
-
"title": "
|
|
1624
|
+
"en_US": {
|
|
1625
|
+
"title": "Page template"
|
|
1610
1626
|
}
|
|
1611
1627
|
},
|
|
1612
1628
|
"position": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IAdminEntity, IAdmins } from "./adminsInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with users - admins
|
|
5
|
+
*/
|
|
6
|
+
export default class AdminsApi extends OneEntry implements IAdmins {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get all user objects - admins.
|
|
10
|
+
*
|
|
11
|
+
* @returns Returns all AdminEntity user objects
|
|
12
|
+
*/
|
|
13
|
+
getAdminsInfo(): Promise<IAdminEntity>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,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 users - admins
|
|
15
|
+
*/
|
|
16
|
+
class AdminsApi extends oneEntry_1.default {
|
|
17
|
+
constructor(url) {
|
|
18
|
+
super(url);
|
|
19
|
+
this._url += '/api/content/admins';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get all user objects - admins.
|
|
23
|
+
*
|
|
24
|
+
* @returns Returns all AdminEntity user objects
|
|
25
|
+
*/
|
|
26
|
+
getAdminsInfo() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const result = yield this._fetchGet('');
|
|
29
|
+
return result;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.default = AdminsApi;
|
|
34
|
+
//# sourceMappingURL=adminsApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adminsApi.js","sourceRoot":"","sources":["../../../src/admins/adminsApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,SAAU,SAAQ,kBAAQ;IAC3C,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,qBAAqB,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACU,aAAa;;YACtB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACvC,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CACJ;AAfD,4BAeC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface IAdmins {
|
|
2
|
+
getAdminsInfo(): Promise<IAdminEntity>;
|
|
3
|
+
}
|
|
4
|
+
interface IPosition {
|
|
5
|
+
id: number;
|
|
6
|
+
position: string;
|
|
7
|
+
objectId: number;
|
|
8
|
+
objectType: string;
|
|
9
|
+
isLocked: boolean;
|
|
10
|
+
objectCategoryId: number;
|
|
11
|
+
}
|
|
12
|
+
interface IAttributesSets {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
}
|
|
15
|
+
interface IAdminEntity {
|
|
16
|
+
id: number;
|
|
17
|
+
updatedDate: string;
|
|
18
|
+
version: number;
|
|
19
|
+
identifier: string;
|
|
20
|
+
attributesSets: IAttributesSets;
|
|
21
|
+
attributeSetId: number;
|
|
22
|
+
login: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
restorePasswordCode: number;
|
|
25
|
+
position: IPosition;
|
|
26
|
+
positionId: number;
|
|
27
|
+
permissions: Record<string, boolean>;
|
|
28
|
+
selectedLanguage: string;
|
|
29
|
+
selectedContentLanguage: string;
|
|
30
|
+
selectedUITheme: string;
|
|
31
|
+
}
|
|
32
|
+
export { IAdmins, IAdminEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adminsInterfaces.js","sourceRoot":"","sources":["../../../src/admins/adminsInterfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import OneEntry from "../base/oneEntry";
|
|
2
|
+
import { IAttributeSet, IAttributeSetEntity } from "./attributeSetInterfaces";
|
|
3
|
+
/**
|
|
4
|
+
* Controllers for working with attribute sets
|
|
5
|
+
*/
|
|
6
|
+
export default class AttributeSetApi extends OneEntry implements IAttributeSet {
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
/**
|
|
9
|
+
* Get one attributes set object.
|
|
10
|
+
*
|
|
11
|
+
* @param {number} [id] - Identifier of the attributes set object
|
|
12
|
+
*
|
|
13
|
+
* @returns Returns one attributes set object
|
|
14
|
+
*/
|
|
15
|
+
getAttributeSetById(id: number): Promise<IAttributeSetEntity>;
|
|
16
|
+
/**
|
|
17
|
+
* Get one attributes set object by marker.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} [marker] - Marker of the attributes set object
|
|
20
|
+
*
|
|
21
|
+
* @returns Returns one attributes set object
|
|
22
|
+
*/
|
|
23
|
+
getAttributeSetByMarker(marker: string): Promise<IAttributeSetEntity>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 attribute sets
|
|
15
|
+
*/
|
|
16
|
+
class AttributeSetApi extends oneEntry_1.default {
|
|
17
|
+
constructor(url) {
|
|
18
|
+
super(url);
|
|
19
|
+
this._url += '/api/content/attributes-sets';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get one attributes set object.
|
|
23
|
+
*
|
|
24
|
+
* @param {number} [id] - Identifier of the attributes set object
|
|
25
|
+
*
|
|
26
|
+
* @returns Returns one attributes set object
|
|
27
|
+
*/
|
|
28
|
+
getAttributeSetById(id) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const result = yield this._fetchGet(`/${id}`);
|
|
31
|
+
return result;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get one attributes set object by marker.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} [marker] - Marker of the attributes set object
|
|
38
|
+
*
|
|
39
|
+
* @returns Returns one attributes set object
|
|
40
|
+
*/
|
|
41
|
+
getAttributeSetByMarker(marker) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
const result = yield this._fetchGet(`/marker/${marker}`);
|
|
44
|
+
return result;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.default = AttributeSetApi;
|
|
49
|
+
//# sourceMappingURL=attributeSetApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributeSetApi.js","sourceRoot":"","sources":["../../../src/attribute-set/attributeSetApi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAAwC;AAGxC;;GAEG;AACH,MAAqB,eAAgB,SAAQ,kBAAQ;IACjD,YAAY,GAAW;QACnB,KAAK,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,IAAI,IAAI,8BAA8B,CAAA;IAC/C,CAAC;IAED;;;;;;OAMG;IACU,mBAAmB,CAAC,EAAS;;YACtC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;YAC7C,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;IAED;;;;;;OAMG;IACU,uBAAuB,CAAC,MAAa;;YAC9C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,MAAM,EAAE,CAAC,CAAA;YACxD,OAAO,MAAM,CAAA;QACjB,CAAC;KAAA;CACJ;AA7BD,kCA6BC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
2
|
+
interface IAttributeSet {
|
|
3
|
+
getAttributeSetById(id: number): Promise<IAttributeSetEntity>;
|
|
4
|
+
getAttributeSetByMarker(url: string): Promise<IAttributeSetEntity>;
|
|
5
|
+
}
|
|
6
|
+
interface IAttributeSetEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
updatedDate: string;
|
|
9
|
+
version: number;
|
|
10
|
+
identifier: string;
|
|
11
|
+
typeId: number;
|
|
12
|
+
localizeInfos: ILocalizeInfos;
|
|
13
|
+
schema: object;
|
|
14
|
+
position: {
|
|
15
|
+
id: number;
|
|
16
|
+
objectId: number;
|
|
17
|
+
objectType: string;
|
|
18
|
+
position: number | string;
|
|
19
|
+
};
|
|
20
|
+
positionId: number | string;
|
|
21
|
+
isVisible: boolean;
|
|
22
|
+
}
|
|
23
|
+
export { IAttributeSet, IAttributeSetEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributeSetInterfaces.js","sourceRoot":"","sources":["../../../src/attribute-set/attributeSetInterfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IProductsQuery } from '../products/productsInterfaces';
|
|
2
|
+
export default abstract class OneEntry {
|
|
3
|
+
protected _url: string;
|
|
4
|
+
constructor(url: string);
|
|
5
|
+
protected _getFullPath(path: string): string;
|
|
6
|
+
protected _fetchGet(path: string): Promise<any>;
|
|
7
|
+
protected _fetchPost(path: string, data: object): Promise<any>;
|
|
8
|
+
protected _queryParamsToString(query: IProductsQuery): string;
|
|
9
|
+
}
|