oneentry 1.0.28 → 1.0.30

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 (47) hide show
  1. package/README.md +291 -212
  2. package/dist/admins/adminsApi.d.ts +5 -1
  3. package/dist/admins/adminsApi.js +6 -3
  4. package/dist/admins/adminsInterfaces.d.ts +3 -3
  5. package/dist/admins/adminsInterfaces.js +0 -1
  6. package/dist/base/oneEntry.js +0 -1
  7. package/dist/base/utils.d.ts +15 -1
  8. package/dist/base/utils.js +0 -1
  9. package/dist/blocks/blocksApi.d.ts +27 -0
  10. package/dist/blocks/blocksApi.js +38 -0
  11. package/dist/blocks/blocksInterfaces.d.ts +38 -0
  12. package/dist/blocks/blocksInterfaces.js +2 -0
  13. package/dist/file-uploding/fileUploadingApi.d.ts +26 -14
  14. package/dist/file-uploding/fileUploadingApi.js +30 -16
  15. package/dist/file-uploding/fileUploadingInterfaces.d.ts +29 -3
  16. package/dist/file-uploding/fileUploadingInterfaces.js +0 -1
  17. package/dist/forms/formsApi.d.ts +9 -2
  18. package/dist/forms/formsApi.js +11 -5
  19. package/dist/forms/formsInterfaces.d.ts +9 -9
  20. package/dist/forms/formsInterfaces.js +0 -1
  21. package/dist/formsData/formsDataApi.d.ts +9 -2
  22. package/dist/formsData/formsDataApi.js +11 -5
  23. package/dist/formsData/formsDataInterfaces.d.ts +4 -2
  24. package/dist/formsData/formsDataInterfaces.js +0 -1
  25. package/dist/general-types/GeneralTypesApi.js +0 -1
  26. package/dist/general-types/generalTypesInterfaces.js +0 -1
  27. package/dist/index.js +0 -1
  28. package/dist/locales/localesApi.js +0 -1
  29. package/dist/locales/localesInterfaces.js +0 -1
  30. package/dist/menus/menusApi.js +0 -1
  31. package/dist/menus/menusInterfaces.js +0 -1
  32. package/dist/pages/pagesApi.js +0 -1
  33. package/dist/pages/pagesInterfaces.d.ts +16 -26
  34. package/dist/pages/pagesInterfaces.js +0 -1
  35. package/dist/product-statuses/productStatusesApi.js +0 -1
  36. package/dist/product-statuses/productStatusesInterfaces.js +0 -1
  37. package/dist/products/productsApi.js +0 -1
  38. package/dist/products/productsInterfaces.d.ts +0 -6
  39. package/dist/products/productsInterfaces.js +0 -1
  40. package/dist/system/systemApi.js +0 -1
  41. package/dist/system/systemInterfaces.js +0 -1
  42. package/dist/templates/templatesApi.js +0 -1
  43. package/dist/templates/templatesInterfaces.d.ts +5 -2
  44. package/dist/templates/templatesInterfaces.js +0 -1
  45. package/dist/templates-preview/templatesPreviewApi.js +0 -1
  46. package/dist/templates-preview/templatesPreviewInterfaces.js +0 -1
  47. package/package.json +1 -1
package/README.md CHANGED
@@ -59,10 +59,10 @@ const api = defineOneEntry('your-url', 'your-token')
59
59
  const { Admins } = defineOneEntry('your-url')
60
60
  ```
61
61
 
62
- ### Admins.getAdminsInfo()
62
+ ### Admins.getAdminsInfo(langCode, offset, limit)
63
63
 
64
64
  ```
65
- const value = await Admins.getAdminsInfo()
65
+ const value = await Admins.getAdminsInfo('en_US', 0, 30)
66
66
  ```
67
67
 
68
68
 
@@ -71,28 +71,30 @@ const value = await Admins.getAdminsInfo()
71
71
  Example return:
72
72
 
73
73
  ```
74
- {
75
- "id": 1764,
76
- "identifier": "admin1",
77
- "attributeSetId": 7,
78
- "isSync": false,
79
- "attributeValues": {
80
- "en_US": {
81
- "marker": {
82
- "value": "",
83
- "type": "string"
74
+ [
75
+ {
76
+ "id": 1764,
77
+ "identifier": "admin1",
78
+ "attributeSetId": 7,
79
+ "isSync": false,
80
+ "attributeValues": {
81
+ "en_US": {
82
+ "marker": {
83
+ "value": "",
84
+ "type": "string"
85
+ }
84
86
  }
85
- }
86
- },
87
- "position": 192
88
- }
87
+ },
88
+ "position": 192
89
+ }
90
+ ]
89
91
  ```
90
92
 
91
93
  ## FileUploading
92
94
 
93
95
  const { FileUploading } = defineOneEntry('your-url');
94
96
 
95
- ### FileUploading.upload()
97
+ ### FileUploading.upload(data, fileQuery)
96
98
 
97
99
  ```
98
100
  const query = {
@@ -113,14 +115,16 @@ const value = await FileUploading.upload(data, query)
113
115
  Example return:
114
116
 
115
117
  ```
116
- {
117
- "filename": "string",
118
- "downloadLink": "string",
119
- "size": 0
120
- }
118
+ [
119
+ {
120
+ "filename": "string",
121
+ "downloadLink": "string",
122
+ "size": 0
123
+ }
124
+ ]
121
125
  ```
122
126
 
123
- ### FileUploading.delete()
127
+ ### FileUploading.delete(filename, fileQuery)
124
128
 
125
129
  ```
126
130
  const query = {
@@ -135,14 +139,29 @@ const value = await FileUploading.delete("file.png", query)
135
139
 
136
140
  > This void method delete a file from the cloud file storage.
137
141
 
142
+ ### FileUploading.getFile(id, type, entity, filename)
143
+ ```
144
+ const value = await FileUploading.getFile(123, 'page', 'editor', 'file.png')
145
+ ```
146
+
147
+ > This method return file object by parameters.
148
+
149
+ Example return:
150
+
151
+ ```
152
+ {
153
+ "file": File,
154
+ }
155
+ ```
156
+
138
157
  ## Forms
139
158
 
140
159
  const { Forms } = defineOneEntry('your-url');
141
160
 
142
- ### Forms.getAllForms()
161
+ ### Forms.getAllForms(langCode, offset, limit)
143
162
 
144
163
  ```
145
- const value = await Forms.getAllForms()
164
+ const value = await Forms.getAllForms('en_US', 0, 30)
146
165
  ```
147
166
 
148
167
  > This method retrieves all form objects from the API. It returns a Promise that resolves to an array of FormEntity objects.
@@ -157,7 +176,7 @@ Example return:
157
176
  "processingType": "email",
158
177
  "localizeInfos": {
159
178
  "en_US": {
160
- "title": "My form",
179
+ "title": "My Form",
161
180
  "titleForSite": "",
162
181
  "successMessage": "",
163
182
  "unsuccessMessage": "",
@@ -167,25 +186,44 @@ Example return:
167
186
  }
168
187
  },
169
188
  "processingData": "Unknown Type: ProcessingData",
170
- "attributeValues": {
171
- "en_US": {
172
- "marker": {
173
- "value": "",
174
- "type": "string"
175
- }
176
- }
177
- },
178
189
  "version": 10,
179
190
  "identifier": "catalog",
180
- "position": 192
191
+ "position": 192,
192
+ "attributes": [
193
+ {
194
+ "type": "list",
195
+ "marker": "l1",
196
+ "position": 2,
197
+ "listTitles": [
198
+ {
199
+ "title": "red",
200
+ "value": 1,
201
+ "position": 1,
202
+ "extendedValue": null,
203
+ "extendedValueType": null
204
+ },
205
+ {
206
+ "title": "yellow",
207
+ "value": 2,
208
+ "position": 2,
209
+ "extendedValue": null,
210
+ "extendedValueType": null
211
+ }
212
+ ],
213
+ "validators": {},
214
+ "localizeInfos": {
215
+ "title": "l1"
216
+ }
217
+ }
218
+ ]
181
219
  }
182
220
  ]
183
221
  ```
184
222
 
185
- ### Forms.getFormByMarker()
223
+ ### Forms.getFormByMarker(marker, langCode)
186
224
 
187
225
  ```
188
- const value = await Forms.getFormByMarker('My form')
226
+ const value = await Forms.getFormByMarker('My form', 'en_US')
189
227
  ```
190
228
 
191
229
  > This method retrieves a single form object based on its textual identifier (marker) from the API. It returns a Promise that resolves to a FormEntity object.
@@ -199,7 +237,7 @@ Example return:
199
237
  "processingType": "email",
200
238
  "localizeInfos": {
201
239
  "en_US": {
202
- "title": "My form",
240
+ "title": "My Form",
203
241
  "titleForSite": "",
204
242
  "successMessage": "",
205
243
  "unsuccessMessage": "",
@@ -209,17 +247,36 @@ Example return:
209
247
  }
210
248
  },
211
249
  "processingData": "Unknown Type: ProcessingData",
212
- "attributeValues": {
213
- "en_US": {
214
- "marker": {
215
- "value": "",
216
- "type": "string"
217
- }
218
- }
219
- },
220
250
  "version": 10,
221
251
  "identifier": "catalog",
222
- "position": 192
252
+ "position": 192,
253
+ "attributes": [
254
+ {
255
+ "type": "list",
256
+ "marker": "l1",
257
+ "position": 2,
258
+ "listTitles": [
259
+ {
260
+ "title": "red",
261
+ "value": 1,
262
+ "position": 1,
263
+ "extendedValue": null,
264
+ "extendedValueType": null
265
+ },
266
+ {
267
+ "title": "yellow",
268
+ "value": 2,
269
+ "position": 2,
270
+ "extendedValue": null,
271
+ "extendedValueType": null
272
+ }
273
+ ],
274
+ "validators": {},
275
+ "localizeInfos": {
276
+ "title": "l1"
277
+ }
278
+ }
279
+ ]
223
280
  }
224
281
  ```
225
282
 
@@ -227,7 +284,7 @@ Example return:
227
284
 
228
285
  const { FormData } = defineOneEntry('your-url');
229
286
 
230
- ### FormData.postFormsData()
287
+ ### FormData.postFormsData(data)
231
288
 
232
289
  ```
233
290
  const value = await FormData.postFormsData(data)
@@ -253,10 +310,10 @@ Example return:
253
310
  }
254
311
  ```
255
312
 
256
- ### FormData.getFormsData()
313
+ ### FormData.getFormsData(langCode, offset, limit)
257
314
 
258
315
  ```
259
- const value = await FormData.getFormsData()
316
+ const value = await FormData.getFormsData('en_US', 0, 30)
260
317
  ```
261
318
 
262
319
  > This method creates form data objects by sending a request to the API. It accepts an array of objects of type IFormsPost as the request body to provide the necessary form data. It returns a Promise that resolves to the created CreateFormDataDto objects.
@@ -264,27 +321,26 @@ const value = await FormData.getFormsData()
264
321
  Example return:
265
322
 
266
323
  ```
267
- [
268
- {
269
- "id": 1764,
270
- "formIdentifier": "my-form",
271
- "time": "2023-02-12 10:56",
272
- "formData": {
273
- "en_US": [
274
- {
275
- "marker": "naimenovanie_1",
276
- "value": "Name"
277
- }
278
- ]
324
+ {
325
+ "id": 1764,
326
+ "formIdentifier": "my-form",
327
+ "time": "2023-02-12 10:56",
328
+ "formData": {
329
+ "en_US": [
330
+ {
331
+ "marker": "name_1",
332
+ "value": "Name"
279
333
  }
280
- }
281
- ]
334
+ ]
335
+ },
336
+ "attributeSetIdentifier": "test-form"
337
+ }
282
338
  ```
283
339
 
284
- ### FormData.getFormsDataByMarker()
340
+ ### FormData.getFormsDataByMarker(marker, langCode, offset, limit)
285
341
 
286
342
  ```
287
- const value = await FormData.getFormsDataByMarker('my-marker')
343
+ const value = await FormData.getFormsDataByMarker('my-marker', 'en_US', 0, 30)
288
344
  ```
289
345
 
290
346
  > This method retrieves a specific form data object by its marker from the API. It accepts a marker parameter as the marker of the form data. It returns a Promise that resolves to an array of objects of type FormDataEntity.
@@ -303,7 +359,8 @@ Example return:
303
359
  "value": "Name"
304
360
  }
305
361
  ]
306
- }
362
+ },
363
+ "attributeSetIdentifier": "test-form"
307
364
  }
308
365
  ```
309
366
 
@@ -367,10 +424,10 @@ Example return:
367
424
  const { Menus } = defineOneEntry('your-url')
368
425
  ```
369
426
 
370
- ### Menus.getMenusByMarker()
427
+ ### Menus.getMenusByMarker(marker)
371
428
 
372
429
  ```
373
- const value = await Menus.getMenusByMarker('marker')
430
+ const value = await Menus.getMenusByMarker('my-marker')
374
431
  ```
375
432
 
376
433
  > This method retrieves a single menu object based on its marker (marker) from the API. It returns a Promise that resolves to a single menu object as a ContentMenuDto object with included pages.
@@ -467,7 +524,7 @@ const value = await Pages.getRootPages([ 'en_US', 'it_IT' ])
467
524
  }
468
525
  ```
469
526
 
470
- ### Pages.getRootPages()
527
+ ### Pages.getRootPages(langCode)
471
528
 
472
529
  ```
473
530
  const value = await Pages.getRootPages('en_US')
@@ -515,10 +572,10 @@ Example return:
515
572
  ]
516
573
  ```
517
574
 
518
- ### Pages.getCatalogPages()
575
+ ### Pages.getCatalogPages(langCode, limit, offset)
519
576
 
520
577
  ```
521
- const value = await Pages.getCatalogPages(langCode = 'en_US', limit = 20, offset = 5)
578
+ const value = await Pages.getCatalogPages('en_US', 0, 30)
522
579
  ```
523
580
 
524
581
  > This method retrieves all page objects with product information as an array from the API. It accepts two optional parameters limit and offset for pagination and language code parameter. It returns a Promise that resolves to an array of ContentIndexedPageDto objects or an empty array [] if there is no data.
@@ -563,7 +620,7 @@ Example return:
563
620
  ]
564
621
  ```
565
622
 
566
- ### Pages.getPages()
623
+ ### Pages.getPages(langCode)
567
624
 
568
625
  ```
569
626
  const value = await Pages.getPages('en_US')
@@ -611,7 +668,7 @@ Example return:
611
668
  ]
612
669
  ```
613
670
 
614
- ### Pages.getPageById()
671
+ ### Pages.getPageById(id, langCode)
615
672
 
616
673
  ```
617
674
  const value = await Pages.getPageById(1, 'en_US')
@@ -651,7 +708,7 @@ Example return:
651
708
  }
652
709
  ```
653
710
 
654
- ### Pages.getPageByUrl()
711
+ ### Pages.getPageByUrl(url, langCode)
655
712
 
656
713
  ```
657
714
  const value = await Pages.getPageByUrl('shop', 'en_US')
@@ -691,7 +748,7 @@ Example return:
691
748
  }
692
749
  ```
693
750
 
694
- ### Pages.getChildPagesByParentUrl()
751
+ ### Pages.getChildPagesByParentUrl(url, langCode)
695
752
 
696
753
  ```
697
754
  const value = await Pages.getChildPagesByParentUrl('shop', 'en_US')
@@ -733,7 +790,7 @@ Example return:
733
790
  ]
734
791
  ```
735
792
 
736
- ### Pages.getFormsByPageUrl()
793
+ ### Pages.getFormsByPageUrl(url, langCode)
737
794
 
738
795
  ```
739
796
  const value = await Pages.getFormsByPageUrl('shop', 'en_US')
@@ -744,38 +801,58 @@ const value = await Pages.getFormsByPageUrl('shop', 'en_US')
744
801
  Example return:
745
802
 
746
803
  ```
747
- {
748
- "id": 1764,
749
- "version": 10,
750
- "identifier": "catalog",
751
- "attributeSetId": 0,
752
- "processingType": "email",
753
- "localizeInfos": {
754
- "en_US": {
755
- "title": "My form",
756
- "titleForSite": "",
757
- "successMessage": "",
758
- "unsuccessMessage": "",
759
- "urlAddress": "",
760
- "database": "0",
761
- "script": "0"
762
- }
763
- },
764
- "processingData": {},
765
- "position": 0,
766
- "isSync": false,
767
- "attributeValues": {
768
- "en_US": {
769
- "marker": {
770
- "value": "",
771
- "type": "string"
804
+ [
805
+ {
806
+ "id": 1764,
807
+ "version": 10,
808
+ "identifier": "catalog",
809
+ "attributeSetId": 0,
810
+ "processingType": "email",
811
+ "localizeInfos": {
812
+ "en_US": {
813
+ "title": "My form",
814
+ "titleForSite": "",
815
+ "successMessage": "",
816
+ "unsuccessMessage": "",
817
+ "urlAddress": "",
818
+ "database": "0",
819
+ "script": "0"
772
820
  }
773
- }
821
+ },
822
+ "processingData": {},
823
+ "position": 0,
824
+ "attributes": [
825
+ {
826
+ "type": "list",
827
+ "marker": "l1",
828
+ "position": 2,
829
+ "listTitles": [
830
+ {
831
+ "title": "red",
832
+ "value": 1,
833
+ "position": 1,
834
+ "extendedValue": null,
835
+ "extendedValueType": null
836
+ },
837
+ {
838
+ "title": "yellow",
839
+ "value": 2,
840
+ "position": 2,
841
+ "extendedValue": null,
842
+ "extendedValueType": null
843
+ }
844
+ ],
845
+ "validators": {},
846
+ "localizeInfos": {
847
+ "title": "l1"
848
+ }
849
+ }
850
+ ]
774
851
  }
775
- }
852
+ ]
776
853
  ```
777
854
 
778
- ### Pages.getConfigPageByUrl()
855
+ ### Pages.getConfigPageByUrl(url)
779
856
 
780
857
  ```
781
858
  const value = await Pages.getConfigPageByUrl('shop')
@@ -792,7 +869,7 @@ Example return:
792
869
  }
793
870
  ```
794
871
 
795
- ### Pages.searchPage()
872
+ ### Pages.searchPage(name, langCode)
796
873
 
797
874
  ```
798
875
  const value = await Pages.searchPage('cup', 'en_US')
@@ -845,7 +922,7 @@ const { Products } = defineOneEntry('your-url')
845
922
  Parameters:
846
923
 
847
924
  ```
848
- {
925
+ const userQuery = {
849
926
  offset: 0,
850
927
  limit: 30,
851
928
  statusMarker: null,
@@ -931,10 +1008,10 @@ const value = await Products.getProducts([ 'en_US', 'it_IT' ])
931
1008
  }
932
1009
  ```
933
1010
 
934
- ### Products.getProducts()
1011
+ ### Products.getProducts(langCode, userQuery)
935
1012
 
936
1013
  ```
937
- const value = await Products.getProducts('en_US')
1014
+ const value = await Products.getProducts('en_US', userQuery)
938
1015
  ```
939
1016
 
940
1017
  > This method searches for product page objects with pagination and filtering based on the provided query parameters (userQuery). It returns a Promise that resolves to a list of products (IProduct[]).
@@ -975,10 +1052,10 @@ Example return:
975
1052
  ]
976
1053
  ```
977
1054
 
978
- ### Products.getProductsEmptyPage()
1055
+ ### Products.getProductsEmptyPage(langCode, userQuery)
979
1056
 
980
1057
  ```
981
- const value = await Products.getProductsEmptyPage('en_US')
1058
+ const value = await Products.getProductsEmptyPage('en_US', userQuery)
982
1059
  ```
983
1060
 
984
1061
  > This method searches for product page objects with pagination that do not have a category, based on the provided query parameters (userQuery). It returns a Promise that resolves to an array of items, where each item is a ContentIndexedProductDto object.
@@ -1019,10 +1096,10 @@ Example return:
1019
1096
  ]
1020
1097
  ```
1021
1098
 
1022
- ### Products.getProductsPageById()
1099
+ ### Products.getProductsPageById(id, langCode, userQuery)
1023
1100
 
1024
1101
  ```
1025
- const value = await Products.getProductsPageById(1, 'en_US')
1102
+ const value = await Products.getProductsPageById(1, 'en_US', userQuery)
1026
1103
  ```
1027
1104
 
1028
1105
  > This method searches for all product page objects with pagination for the selected category based on the page identifier (id). It accepts an optional userQuery parameter to set query parameters for the search. The query parameters include limit, offset, statusMarker, conditionValue, conditionMarker, attributeMarker, sortOrder, and sortKey. It returns a Promise that resolves to an array of ContentIndexedProductDto objects.
@@ -1069,10 +1146,10 @@ Example return:
1069
1146
  }
1070
1147
  ```
1071
1148
 
1072
- ### Products.getProductsPageByUrl()
1149
+ ### Products.getProductsPageByUrl(url, langCode, userQuery)
1073
1150
 
1074
1151
  ```
1075
- const value = await Products.getProductsPageByUrl('cup', 'en_US')
1152
+ const value = await Products.getProductsPageByUrl('cup', 'en_US', userQuery)
1076
1153
  ```
1077
1154
 
1078
1155
  > This method searches for all product page objects with pagination for the selected category based on the page URL (url). It accepts an optional userQuery parameter to set query parameters for the search. The query parameters include limit, offset, statusMarker, conditionValue, conditionMarker, attributeMarker, sortOrder, and sortKey. It returns a Promise that resolves to an array of ContentIndexedProductDto objects.
@@ -1119,10 +1196,10 @@ Example return:
1119
1196
  }
1120
1197
  ```
1121
1198
 
1122
- ### Products.getRelatedProductsById()
1199
+ ### Products.getRelatedProductsById(id, langCode, userQuery)
1123
1200
 
1124
1201
  ```
1125
- const value = await Products.getRelatedProductsById(1, ''en_US'', {limit:20, offset:1})
1202
+ const value = await Products.getRelatedProductsById(1, 'en_US', {limit:20, offset:1})
1126
1203
  ```
1127
1204
 
1128
1205
  > This method retrieves all related product page objects for a specific product based on its identifier (id) from the API. It accepts an optional userQuery parameter for additional query parameters such as limit, offset, sortOrder, and sortKey. It returns a Promise that resolves to an array of ContentIndexedProductDto objects.
@@ -1161,7 +1238,7 @@ Example return:
1161
1238
  }
1162
1239
  ```
1163
1240
 
1164
- ### Products.getProductById()
1241
+ ### Products.getProductById(id, langCode)
1165
1242
 
1166
1243
  ```
1167
1244
  const value = await Products.getProductById(1, 'en_US')
@@ -1204,10 +1281,16 @@ Example return:
1204
1281
 
1205
1282
  ```
1206
1283
 
1207
- ### Products.filterProduct()
1284
+ ### Products.filterProduct(data, langCode, userQuery)
1208
1285
 
1209
1286
  ```
1210
- const value = await Products.filterProduct({conditionValue:1})
1287
+ const data = {
1288
+ attributeMarker: "price",
1289
+ conditionMarker: "lth",
1290
+ conditionValue: "200",
1291
+ }
1292
+
1293
+ const value = await Products.filterProduct(data, 'en_US', userQuery)
1211
1294
  ```
1212
1295
 
1213
1296
  Example body:
@@ -1273,7 +1356,7 @@ Example return:
1273
1356
  }
1274
1357
  ```
1275
1358
 
1276
- ### Products.searchProduct()
1359
+ ### Products.searchProduct(name, langCode)
1277
1360
 
1278
1361
  ```
1279
1362
  const value = await Products.searchProduct('cup', 'en_US')
@@ -1357,7 +1440,7 @@ Example return:
1357
1440
  ]
1358
1441
  ```
1359
1442
 
1360
- ### ProductStatuses.getProductStatusesById()
1443
+ ### ProductStatuses.getProductStatusesById(id)
1361
1444
 
1362
1445
  ```
1363
1446
  const value = await ProductStatuses.getProductStatusesById(1)
@@ -1381,10 +1464,10 @@ Example return:
1381
1464
  }
1382
1465
  ```
1383
1466
 
1384
- ### ProductStatuses.getProductsByStatusMarker()
1467
+ ### ProductStatuses.getProductsByStatusMarker(marker)
1385
1468
 
1386
1469
  ```
1387
- const value = await ProductStatuses.getProductsByStatusMarker('marker')
1470
+ const value = await ProductStatuses.getProductsByStatusMarker('my-marker')
1388
1471
  ```
1389
1472
 
1390
1473
  > This method searches for a product status object based on its textual identifier (marker) from the API. It returns a Promise that resolves to a product status object.
@@ -1405,7 +1488,7 @@ Example return:
1405
1488
  }
1406
1489
  ```
1407
1490
 
1408
- ### ProductStatuses.validateMarker()
1491
+ ### ProductStatuses.validateMarker(marker)
1409
1492
 
1410
1493
  ```
1411
1494
  const value = await ProductStatuses.validateMarker('marker')
@@ -1460,9 +1543,9 @@ Example return:
1460
1543
 
1461
1544
  ```
1462
1545
  [
1463
- {
1546
+ {
1464
1547
  "id": 1764,
1465
- "updatedDate": "2023-11-20T22:16:17.531Z",
1548
+ "updatedDate": "2023-12-05T12:47:02.859Z",
1466
1549
  "version": 10,
1467
1550
  "identifier": "marker",
1468
1551
  "generalType": {
@@ -1482,7 +1565,7 @@ Example return:
1482
1565
  ]
1483
1566
  ```
1484
1567
 
1485
- ### Templates.getTemplateByType()
1568
+ ### Templates.getTemplateByType(type)
1486
1569
 
1487
1570
  ```
1488
1571
  const value = await Templates.getTemplateByType('forCatalogProducts')
@@ -1496,25 +1579,22 @@ Example return:
1496
1579
  [
1497
1580
  {
1498
1581
  "id": 1764,
1499
- "identifier": "admin1",
1500
- "attributeSetId": 7,
1501
- "generalTypeId": 2,
1502
- "generalTypeName": "forCatalogProducts",
1503
- "localizeInfos": {
1504
- "en_US": {
1505
- "title": "Product"
1506
- }
1582
+ "updatedDate": "2023-12-05T12:45:13.566Z",
1583
+ "version": 10,
1584
+ "identifier": "marker",
1585
+ "generalType": {
1586
+ "id": 4,
1587
+ "type": "forCatalogPages"
1507
1588
  },
1508
- "isSync": false,
1509
- "attributeValues": {
1589
+ "generalTypeId": 4,
1590
+ "localizeInfos": {
1510
1591
  "en_US": {
1511
- "marker": {
1512
- "value": "",
1513
- "type": "string"
1514
- }
1592
+ "title": "Page template"
1515
1593
  }
1516
1594
  },
1517
- "position": 192
1595
+ "position": 0,
1596
+ "positionId": 12,
1597
+ "generalTypeName": "forProductPreview"
1518
1598
  }
1519
1599
  ]
1520
1600
  ```
@@ -1538,43 +1618,43 @@ Example return:
1538
1618
  ```
1539
1619
  [
1540
1620
  {
1541
- "id": 1764,
1542
- "updatedDate": "2023-11-20T22:18:25.344Z",
1543
- "version": 10,
1544
- "identifier": "marker",
1545
- "proportion": {
1546
- "horizontal": {
1547
- "height": 200,
1548
- "weight": 10,
1549
- "marker": "horizontal",
1550
- "title": "Horizontal",
1551
- "alignmentType": "left"
1552
- },
1553
- "vertical": {
1554
- "height": 10,
1555
- "weight": 200,
1556
- "marker": "vertical",
1557
- "title": "Vertical",
1558
- "alignmentType": "left"
1559
- },
1560
- "square": {
1561
- "marker": "square",
1562
- "title": "Square",
1563
- "slide": 3,
1564
- "alignmentType": "center"
1565
- }
1621
+ "id": 1764,
1622
+ "updatedDate": "2023-12-05T12:44:55.663Z",
1623
+ "version": 10,
1624
+ "identifier": "marker",
1625
+ "proportion": {
1626
+ "horizontal": {
1627
+ "height": 200,
1628
+ "weight": 10,
1629
+ "marker": "horizontal",
1630
+ "title": "Horizontal",
1631
+ "alignmentType": "left"
1566
1632
  },
1567
- "localizeInfos": {
1568
- "en_US": {
1569
- "title": "Page Template"
1570
- }
1633
+ "vertical": {
1634
+ "height": 10,
1635
+ "weight": 200,
1636
+ "marker": "vertical",
1637
+ "title": "Vertical",
1638
+ "alignmentType": "left"
1571
1639
  },
1572
- "position": 0
1640
+ "square": {
1641
+ "marker": "square",
1642
+ "title": "Square",
1643
+ "slide": 3,
1644
+ "alignmentType": "center"
1645
+ }
1646
+ },
1647
+ "localizeInfos": {
1648
+ "en_US": {
1649
+ "title": "Page Template"
1650
+ }
1651
+ },
1652
+ "position": 0
1573
1653
  }
1574
1654
  ]
1575
1655
  ```
1576
1656
 
1577
- ### TemplatePreviews.getTemplatesPreviewById()
1657
+ ### TemplatePreviews.getTemplatesPreviewById(id)
1578
1658
 
1579
1659
  ```
1580
1660
  const value = await TemplatePreviews.getTemplatesPreviewById(1)
@@ -1585,47 +1665,46 @@ const value = await TemplatePreviews.getTemplatesPreviewById(1)
1585
1665
  Example return:
1586
1666
 
1587
1667
  ```
1588
- {
1589
- "id": 1764,
1590
- "updatedDate": "2023-11-20T22:18:25.344Z",
1591
- "version": 10,
1592
- "identifier": "marker",
1593
- "proportion": {
1594
- "horizontal": {
1595
- "height": 200,
1596
- "weight": 10,
1597
- "marker": "horizontal",
1598
- "title": "Horizontal",
1599
- "alignmentType": "left"
1600
- },
1601
- "vertical": {
1602
- "height": 10,
1603
- "weight": 200,
1604
- "marker": "vertical",
1605
- "title": "Vertical",
1606
- "alignmentType": "left"
1607
- },
1608
- "square": {
1609
- "marker": "square",
1610
- "title": "Square",
1611
- "slide": 3,
1612
- "alignmentType": "center"
1613
- }
1614
- },
1615
- "localizeInfos": {
1616
- "en_US": {
1617
- "title": "Page Template"
1618
- }
1619
- },
1620
- "position": 0
1621
- }
1622
-
1668
+ {
1669
+ "id": 1764,
1670
+ "updatedDate": "2023-12-05T12:44:37.348Z",
1671
+ "version": 10,
1672
+ "identifier": "marker",
1673
+ "proportion": {
1674
+ "horizontal": {
1675
+ "height": 200,
1676
+ "weight": 10,
1677
+ "marker": "horizontal",
1678
+ "title": "Horizontal",
1679
+ "alignmentType": "left"
1680
+ },
1681
+ "vertical": {
1682
+ "height": 10,
1683
+ "weight": 200,
1684
+ "marker": "vertical",
1685
+ "title": "Vertical",
1686
+ "alignmentType": "left"
1687
+ },
1688
+ "square": {
1689
+ "marker": "square",
1690
+ "title": "Square",
1691
+ "slide": 3,
1692
+ "alignmentType": "center"
1693
+ }
1694
+ },
1695
+ "localizeInfos": {
1696
+ "en_US": {
1697
+ "title": "Page Template"
1698
+ }
1699
+ },
1700
+ "position": 0
1701
+ }
1623
1702
  ```
1624
1703
 
1625
- ### TemplatePreviews.getTemplatesPreviewByMarker()
1704
+ ### TemplatePreviews.getTemplatesPreviewByMarker(marker)
1626
1705
 
1627
1706
  ```
1628
- const value = await TemplatePreviews.getTemplatesPreviewByMarker('marker')
1707
+ const value = await TemplatePreviews.getTemplatesPreviewByMarker('my-marker')
1629
1708
  ```
1630
1709
 
1631
1710
  > This method retrieves a single template object based on its textual identifier (marker) from the API. It returns a Promise that resolves to a TemplatePreviewsEntity object.
@@ -1635,7 +1714,7 @@ Example return:
1635
1714
  ```
1636
1715
  {
1637
1716
  "id": 1764,
1638
- "updatedDate": "2023-11-20T22:18:25.344Z",
1717
+ "updatedDate": "2023-12-05T12:44:20.008Z",
1639
1718
  "version": 10,
1640
1719
  "identifier": "marker",
1641
1720
  "proportion": {