oneentry 1.0.70 → 1.0.72

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 (35) hide show
  1. package/README.md +642 -881
  2. package/dist/attribute-sets/attributeSetsApi.d.ts +2 -2
  3. package/dist/attribute-sets/attributeSetsApi.js +2 -2
  4. package/dist/auth-provider/authProviderApi.d.ts +3 -2
  5. package/dist/auth-provider/authProviderApi.js +5 -2
  6. package/dist/auth-provider/authProvidersInterfaces.d.ts +7 -2
  7. package/dist/base/asyncModules.js +6 -2
  8. package/dist/base/stateModule.js +1 -1
  9. package/dist/blocks/blocksApi.d.ts +3 -3
  10. package/dist/blocks/blocksApi.js +6 -6
  11. package/dist/blocks/blocksInterfaces.d.ts +2 -2
  12. package/dist/formsData/formsDataApi.d.ts +1 -0
  13. package/dist/formsData/formsDataApi.js +2 -1
  14. package/dist/formsData/formsDataInterfaces.d.ts +2 -2
  15. package/dist/orders/ordersApi.d.ts +1 -1
  16. package/dist/orders/ordersApi.js +3 -0
  17. package/dist/orders/ordersInterfaces.d.ts +11 -9
  18. package/dist/pages/pagesApi.js +12 -3
  19. package/dist/pages/pagesInterfaces.d.ts +6 -20
  20. package/dist/payments/paymentsApi.d.ts +5 -17
  21. package/dist/payments/paymentsApi.js +9 -18
  22. package/dist/payments/paymentsInterfaces.d.ts +11 -37
  23. package/dist/product-statuses/productStatusesApi.d.ts +3 -3
  24. package/dist/product-statuses/productStatusesApi.js +3 -3
  25. package/dist/products/productsApi.d.ts +4 -4
  26. package/dist/products/productsApi.js +4 -3
  27. package/dist/products/productsInterfaces.d.ts +40 -12
  28. package/dist/templates/templatesApi.d.ts +7 -7
  29. package/dist/templates/templatesApi.js +2 -2
  30. package/dist/templates/templatesInterfaces.d.ts +4 -15
  31. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +1 -5
  32. package/dist/users/usersApi.d.ts +1 -1
  33. package/dist/users/usersApi.js +3 -1
  34. package/dist/users/usersInterfaces.d.ts +6 -3
  35. package/package.json +1 -1
package/README.md CHANGED
@@ -467,7 +467,7 @@ Example return:
467
467
  "phoneSMS": "+9999999999"
468
468
  },
469
469
  "systemCode": {
470
- "value": "90ВDCX",
470
+ "value": "90BDCX",
471
471
  "expiredDate": "2024-05-07T21:02:00.000Z"
472
472
  }
473
473
  }
@@ -506,7 +506,7 @@ example: OrderedMap { "email": "test@test.zone", "phonePush": "", "phoneSMS": "
506
506
 
507
507
  **systemCode:** string <br>
508
508
  *system code for performing official actions (password reset, activation)* <br>
509
- example: OrderedMap { "value": "90ВDCX", "expiredDate": "2024-05-07T21:02:00.000Z" } <br>
509
+ example: OrderedMap { "value": "90BDCX", "expiredDate": "2024-05-07T21:02:00.000Z" } <br>
510
510
 
511
511
  **formIdentifier:** string <br>
512
512
  *the text identifier of the authorization provider's form* <br>
@@ -523,15 +523,24 @@ example: 1 <br>
523
523
  </details>
524
524
 
525
525
 
526
- ### AuthProvider.generateCode(marker, userIdentifier)
526
+ ### AuthProvider.generateCode(marker, userIdentifier, eventIdentifier)
527
527
 
528
528
 
529
529
  ```js
530
- const value = await AuthProvider.generateCode('email', 'test@trer.com')
530
+ const value = await AuthProvider.generateCode('email', 'test@trer.com', 'auth')
531
531
  ```
532
532
 
533
533
  > This method receives a code to activate the user. The code is returned via the appropriate user notification method
534
534
 
535
+ Example return:
536
+
537
+ ```json
538
+ {
539
+ "userIdentifier": "example@oneentry.cloud",
540
+ "eventIdentifier": "auth"
541
+ }
542
+ ```
543
+
535
544
 
536
545
  ### AuthProvider.checkCode(marker, userIdentifier, code)
537
546
 
@@ -697,16 +706,22 @@ Example return:
697
706
  ```json
698
707
  [
699
708
  {
700
- "id": 1764,
709
+ "id": 1,
701
710
  "localizeInfos": {
702
- "title": "My block"
711
+ "title": "email"
703
712
  },
704
- "version": 10,
705
- "identifier": "catalog",
706
- "isActive": false,
707
- "isCheckCode": false,
713
+ "config": {
714
+ "deleteNoneActiveUsersAfterDays": 2,
715
+ "systemCodeTlsSec": 120,
716
+ "systemCodeLength": 8,
717
+ "systemCodeOnlyNumbers": null
718
+ },
719
+ "version": 0,
720
+ "identifier": "email",
708
721
  "type": "email",
709
- "formIdentifier": null
722
+ "formIdentifier": "reg",
723
+ "isActive": true,
724
+ "isCheckCode": false
710
725
  }
711
726
  ]
712
727
  ```
@@ -760,18 +775,26 @@ const value = await AuthProvider.getMarker('email')
760
775
  Example return:
761
776
 
762
777
  ```json
763
- {
764
- "id": 1764,
765
- "localizeInfos": {
766
- "title": "My block"
767
- },
768
- "version": 10,
769
- "identifier": "catalog",
770
- "isActive": false,
771
- "isCheckCode": false,
772
- "type": "email",
773
- "formIdentifier": null
774
- }
778
+ [
779
+ {
780
+ "id": 1,
781
+ "localizeInfos": {
782
+ "title": "email"
783
+ },
784
+ "version": 0,
785
+ "identifier": "email",
786
+ "type": "email",
787
+ "formIdentifier": "reg",
788
+ "isActive": true,
789
+ "isCheckCode": false,
790
+ "config": {
791
+ "deleteNoneActiveUsersAfterDays": 2,
792
+ "systemCodeLength": 8,
793
+ "systemCodeOnlyNumbers": null,
794
+ "systemCodeTlsSec": 120
795
+ }
796
+ }
797
+ ]
775
798
  ```
776
799
  <details>
777
800
  <summary>Schema</summary>
@@ -823,7 +846,7 @@ const { Blocks } = defineOneEntry('your-url');
823
846
  ### Blocks.getBlocks(type, langCode, offset, limit)
824
847
 
825
848
  ```js
826
- const value = await Blocks.getBlocks()
849
+ const value = await Blocks.getBlocks('forTextBlock')
827
850
  ```
828
851
 
829
852
  > This method return array of all blocks object. Available values of type : forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, forOrder, service
@@ -833,57 +856,18 @@ Example return:
833
856
  ```json
834
857
  [
835
858
  {
836
- "id": 4,
859
+ "id": 1,
837
860
  "localizeInfos": {
838
- "title": "Name"
861
+ "title": "Block"
839
862
  },
840
863
  "version": 0,
841
- "position": 3,
842
- "identifier": "product",
843
- "type": "forProductBlock",
864
+ "position": 1,
865
+ "identifier": "block",
866
+ "type": "forTextBlock",
844
867
  "templateIdentifier": null,
845
868
  "isVisible": true,
846
- "attributeValues": {
847
- "attr": {
848
- "type": "string",
849
- "value": "",
850
- "position": 0,
851
- "isProductPreview": false
852
- }
853
- },
854
- "countElementsPerRow": 3,
855
- "products": [
856
- {
857
- "id": 446,
858
- "localizeInfos": {
859
- "title": "new product 3"
860
- },
861
- "relatedIds": [1, 2],
862
- "statusId": null,
863
- "attributeSetId": 11,
864
- "position": 3,
865
- "templateIdentifier": null,
866
- "shortDescTemplateIdentifier": null,
867
- "price": 543,
868
- "sku": "ggg",
869
- "isSync": true,
870
- "attributeValues": {
871
- "sku": {
872
- "type": "string",
873
- "value": "ggg",
874
- "position": 0,
875
- "isProductPreview": false
876
- },
877
- "images": {
878
- "type": "groupOfImages",
879
- "value": {},
880
- "position": 3,
881
- "isProductPreview": false
882
- }
883
- },
884
- "isVisible": true
885
- }
886
- ]
869
+ "attributeValues": {},
870
+ "countElementsPerRow": 0
887
871
  }
888
872
  ]
889
873
  ```
@@ -941,7 +925,7 @@ example: null <br>
941
925
  ### Blocks.getBlockByMarker(marker, langCode)
942
926
 
943
927
  ```js
944
- const value = await Blocks.getBlockByMarker('my-marker', 'en_US')
928
+ const value = await Blocks.getBlockByMarker('my-marker')
945
929
  ```
946
930
 
947
931
  > This method return one blocks object by marker.
@@ -958,6 +942,7 @@ Example return:
958
942
  "position": 1,
959
943
  "identifier": "block",
960
944
  "type": "forTextBlock",
945
+ "countElementsPerRow": 0,
961
946
  "templateIdentifier": null,
962
947
  "isVisible": true,
963
948
  "attributeValues": {}
@@ -1031,19 +1016,27 @@ Example return:
1031
1016
  "localizeInfos": {
1032
1017
  "title": "Box"
1033
1018
  },
1034
- "relatedIds": [],
1035
- "statusId": 2,
1036
- "attributeSetId": 5,
1019
+ "statusIdentifier": "sold",
1020
+ "statusLocalizeInfos": {
1021
+ "title": "Sold"
1022
+ },
1023
+ "attributeSetIdentifier": "products",
1037
1024
  "position": 1,
1038
1025
  "templateIdentifier": null,
1039
1026
  "shortDescTemplateIdentifier": null,
1040
- "price": 150,
1027
+ "price": 148,
1028
+ "additional": {
1029
+ "prices": {
1030
+ "min": 120,
1031
+ "max": 150
1032
+ }
1033
+ },
1041
1034
  "sku": null,
1042
1035
  "isSync": true,
1043
1036
  "attributeValues": {
1044
1037
  "price": {
1045
1038
  "type": "integer",
1046
- "value": "150",
1039
+ "value": "148",
1047
1040
  "position": 1,
1048
1041
  "isProductPreview": false
1049
1042
  },
@@ -1052,6 +1045,12 @@ Example return:
1052
1045
  "value": "Box text",
1053
1046
  "position": 0,
1054
1047
  "isProductPreview": false
1048
+ },
1049
+ "currency_products": {
1050
+ "type": "string",
1051
+ "value": "$",
1052
+ "position": 2,
1053
+ "isProductPreview": false
1055
1054
  }
1056
1055
  },
1057
1056
  "isVisible": true
@@ -1074,29 +1073,42 @@ Example return:
1074
1073
  ```json
1075
1074
  [
1076
1075
  {
1077
- "id": 446,
1076
+ "id": 3,
1078
1077
  "localizeInfos": {
1079
- "title": "new product 3"
1078
+ "title": "Product"
1080
1079
  },
1081
- "relatedIds": [1, 2],
1082
- "statusId": null,
1083
- "position": 3,
1080
+ "statusIdentifier": null,
1081
+ "statusLocalizeInfos": {},
1082
+ "attributeSetIdentifier": "products",
1083
+ "position": 1,
1084
1084
  "templateIdentifier": null,
1085
1085
  "shortDescTemplateIdentifier": null,
1086
- "price": 543,
1087
- "sku": "ggg",
1086
+ "price": 120,
1087
+ "additional": {
1088
+ "prices": {
1089
+ "min": 120,
1090
+ "max": 150
1091
+ }
1092
+ },
1093
+ "sku": null,
1088
1094
  "isSync": true,
1089
1095
  "attributeValues": {
1090
- "sku": {
1096
+ "price": {
1097
+ "type": "integer",
1098
+ "value": "120",
1099
+ "position": 1,
1100
+ "isProductPreview": false
1101
+ },
1102
+ "product-name": {
1091
1103
  "type": "string",
1092
- "value": "ggg",
1104
+ "value": "Prod",
1093
1105
  "position": 0,
1094
1106
  "isProductPreview": false
1095
1107
  },
1096
- "images": {
1097
- "type": "groupOfImages",
1098
- "value": {},
1099
- "position": 3,
1108
+ "currency_products": {
1109
+ "type": "string",
1110
+ "value": "$",
1111
+ "position": 2,
1100
1112
  "isProductPreview": false
1101
1113
  }
1102
1114
  },
@@ -1583,6 +1595,7 @@ Example with a simple type attribute "radioButton" or "list"
1583
1595
  "value": "1",
1584
1596
  "extended": {
1585
1597
  "value": "red",
1598
+ "type": "string",
1586
1599
  "type": "string"
1587
1600
  }
1588
1601
  }
@@ -1600,6 +1613,7 @@ const body = {
1600
1613
  formData: {
1601
1614
  marker: 'test',
1602
1615
  value: 'Test',
1616
+ "type": "string"
1603
1617
  },
1604
1618
  }
1605
1619
 
@@ -1619,7 +1633,8 @@ Example return:
1619
1633
  "time": "2023-02-12 10:56",
1620
1634
  "formData": {
1621
1635
  "marker": "name_1",
1622
- "value": "Name"
1636
+ "value": "Name",
1637
+ "type": "string"
1623
1638
  }
1624
1639
  }
1625
1640
  ```
@@ -1661,7 +1676,8 @@ Example return:
1661
1676
  "time": "2023-02-12 10:56",
1662
1677
  "formData": {
1663
1678
  "marker": "name_1",
1664
- "value": "Name"
1679
+ "value": "Name",
1680
+ "type": "string"
1665
1681
  },
1666
1682
  "attributeSetIdentifier": "test-form"
1667
1683
  }
@@ -1711,7 +1727,8 @@ Example return:
1711
1727
  "time": "2023-02-12 10:56",
1712
1728
  "formData": {
1713
1729
  "marker": "name_1",
1714
- "value": "Name"
1730
+ "value": "Name",
1731
+ "type": "string"
1715
1732
  },
1716
1733
  "attributeSetIdentifier": "test-form"
1717
1734
  }
@@ -1937,16 +1954,17 @@ const value = await Orders.getOrderByMarker('my-order')
1937
1954
  Example return:
1938
1955
  ```json
1939
1956
  {
1940
- "id": 1764,
1957
+ "id": 2,
1941
1958
  "localizeInfos": {
1942
- "title": "Order 1"
1959
+ "title": "My order"
1943
1960
  },
1944
- "identifier": "catalog",
1945
- "generalTypeId": 4,
1946
- "formIdentifier": "catalog-form",
1961
+ "position": 1,
1962
+ "identifier": "my_order",
1963
+ "formIdentifier": "orderForm",
1964
+ "generalTypeId": 21,
1947
1965
  "paymentAccountIdentifiers": [
1948
1966
  {
1949
- "identifier": "p1"
1967
+ "identifier": "cash"
1950
1968
  }
1951
1969
  ]
1952
1970
  }
@@ -1985,33 +2003,17 @@ example: [{ "identifier": "p1" }] <br>
1985
2003
 
1986
2004
  ```js
1987
2005
  const body = {
1988
- "formIdentifier": "order_form",
1989
- "paymentAccountIdentifier": "stripe",
1990
- "formData": [
1991
- {
1992
- "marker": "name_order",
1993
- "value": "Alex",
1994
- "type": "string"
1995
- },
1996
- {
1997
- "marker": "phone_order",
1998
- "value": "+19999999999",
1999
- "type": "string"
2000
- },
2001
- {
2002
- "marker": "email_order",
2003
- "value": "example@oneentry.cloud",
2004
- "type": "string"
2005
- }
2006
- ],
2006
+ "formIdentifier": "orderForm",
2007
+ "paymentAccountIdentifier": "cash",
2008
+ "formData": {
2009
+ "marker": "order_name",
2010
+ "value": "Ivan",
2011
+ "type": "string"
2012
+ },
2007
2013
  "products": [
2008
2014
  {
2009
- "productId": 444,
2010
- "quantity": 1,
2011
- },
2012
- {
2013
- "productId": 446,
2014
- "quantity": 3,
2015
+ "productId": 2,
2016
+ "quantity": 2
2015
2017
  }
2016
2018
  ]
2017
2019
  }
@@ -2027,12 +2029,15 @@ Example return:
2027
2029
  "formIdentifier": "bars",
2028
2030
  "paymentAccountIdentifier": "payment1",
2029
2031
  "statusIdentifier": "inprogress",
2030
- "formData": [
2032
+ "formData": {
2033
+ "en_US": [
2031
2034
  {
2032
- "marker": "Name",
2035
+ "marker": "naimenovanie_1",
2036
+ "type": "string",
2033
2037
  "value": "Name"
2034
2038
  }
2035
- ],
2039
+ ]
2040
+ },
2036
2041
  "products": [
2037
2042
  {
2038
2043
  "productId": 1,
@@ -2043,7 +2048,7 @@ Example return:
2043
2048
  "quantity": 3
2044
2049
  }
2045
2050
  ],
2046
- "createdDate": "2024-06-04T09:57:38.328Z",
2051
+ "createdDate": "2024-06-21T09:42:54.848Z",
2047
2052
  "currency": "USD",
2048
2053
  "totalSum": 345
2049
2054
  }
@@ -2089,33 +2094,17 @@ example: 2023-01-01 12:12 <br>
2089
2094
 
2090
2095
  ```js
2091
2096
  const body = {
2092
- "formIdentifier": "order_form",
2093
- "paymentAccountIdentifier": "stripe",
2094
- "formData": [
2095
- {
2096
- "marker": "name_order",
2097
- "value": "Alex",
2098
- "type": "string"
2099
- },
2100
- {
2101
- "marker": "phone_order",
2102
- "value": "+19999999999",
2103
- "type": "string"
2104
- },
2105
- {
2106
- "marker": "email_order",
2107
- "value": "example@oneentry.cloud",
2108
- "type": "string"
2109
- }
2110
- ],
2097
+ "formIdentifier": "orderForm",
2098
+ "paymentAccountIdentifier": "cash",
2099
+ "formData": {
2100
+ "marker": "order_name",
2101
+ "value": "Ivan",
2102
+ "type": "string"
2103
+ },
2111
2104
  "products": [
2112
2105
  {
2113
- "productId": 444,
2114
- "quantity": 1,
2115
- },
2116
- {
2117
- "productId": 446,
2118
- "quantity": 3,
2106
+ "productId": 2,
2107
+ "quantity": 2
2119
2108
  }
2120
2109
  ]
2121
2110
  }
@@ -2133,10 +2122,11 @@ Example return:
2133
2122
  "statusIdentifier": "inprogress",
2134
2123
  "formData": [
2135
2124
  {
2136
- "marker": "Name",
2125
+ "marker": "naimenovanie_1",
2126
+ "type": "string",
2137
2127
  "value": "Name"
2138
2128
  }
2139
- ],
2129
+ ],
2140
2130
  "products": [
2141
2131
  {
2142
2132
  "productId": 1,
@@ -2147,7 +2137,7 @@ Example return:
2147
2137
  "quantity": 3
2148
2138
  }
2149
2139
  ],
2150
- "createdDate": "2024-06-04T09:57:38.328Z",
2140
+ "createdDate": "2024-06-21T09:42:54.848Z",
2151
2141
  "currency": "USD",
2152
2142
  "totalSum": 345
2153
2143
  }
@@ -2259,27 +2249,27 @@ Example return:
2259
2249
  ```json
2260
2250
  [
2261
2251
  {
2262
- "id": 17,
2252
+ "id": 1764,
2263
2253
  "statusIdentifier": "inprogress",
2264
- "paymentIdentifier": "payment-1",
2254
+ "formIdentifier": "order-form",
2265
2255
  "formData": [
2266
2256
  {
2267
- "marker": "name_1",
2268
- "value": "Name",
2269
- "type": "string"
2257
+ "marker": "naimenovanie_1",
2258
+ "type": "string",
2259
+ "value": "Name"
2270
2260
  }
2271
2261
  ],
2272
2262
  "products": [
2273
2263
  {
2274
2264
  "id": 1,
2275
- "title": "Floorwood Maxima Laminate, 9811 Oak Mistral",
2265
+ "title": "Laminate Floorwood Maxima, 9811 Oak Mistral",
2276
2266
  "sku": null,
2277
2267
  "price": "1.00",
2278
2268
  "quantity": 10,
2279
2269
  "previewImage": [
2280
2270
  {
2281
2271
  "filename": "files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2282
- "downloadLink": "http://my-site.com/files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2272
+ "downloadLink": "http://my-site.zone/files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2283
2273
  "size": 296391,
2284
2274
  "previewLink": ""
2285
2275
  }
@@ -2289,10 +2279,8 @@ Example return:
2289
2279
  "totalSum": "12.00",
2290
2280
  "currency": "USD",
2291
2281
  "createdDate": "2023-01-01 12:12",
2292
- "price": 20,
2293
2282
  "paymentAccountIdentifier": "payment-1",
2294
- "paymentAccountLocalizeInfos": {
2295
- "title": "Account 1"
2283
+ "paymentAccountLocalizeInfos": {"title": "Account 1"
2296
2284
  },
2297
2285
  "isHistory": true
2298
2286
  }
@@ -2371,33 +2359,32 @@ Example return:
2371
2359
  ```json
2372
2360
  [
2373
2361
  {
2374
- "id": 1764,
2375
- "parentId": null,
2376
- "config": {
2377
- "rowsPerPage": 1,
2378
- "productsPerRow": 1
2379
- },
2380
- "pageUrl": "string",
2381
- "depth": 3,
2382
- "localizeInfos": {
2383
- "title": "Catalog",
2384
- "content": "Content for catalog",
2385
- "menuTitle": "Catalog"
2386
- },
2387
- "isVisible": true,
2388
- "products": 0,
2389
- "attributeSetId": 7,
2390
- "isSync": false,
2391
- "templateIdentifier": "my-template",
2392
- "attributeValues": {
2393
- "marker": {
2394
- "value": "",
2395
- "type": "string"
2396
- }
2397
- },
2398
- "position": 192,
2399
- "type": "forNewsPage",
2400
- "childrenCount": 0
2362
+ "id": 1,
2363
+ "config": {},
2364
+ "depth": 0,
2365
+ "parentId": null,
2366
+ "pageUrl": "blog",
2367
+ "attributeSetIdentifier": "page",
2368
+ "localizeInfos": {
2369
+ "title": "Blog",
2370
+ "menuTitle": "Blog",
2371
+ "htmlContent": "",
2372
+ "plainContent": ""
2373
+ },
2374
+ "position": 1,
2375
+ "isVisible": true,
2376
+ "products": 0,
2377
+ "childrenCount": 1,
2378
+ "type": "forUsualPage",
2379
+ "templateIdentifier": "template",
2380
+ "isSync": true,
2381
+ "attributeValues": {
2382
+ "text": {
2383
+ "type": "string",
2384
+ "value": "some text",
2385
+ "position": 0
2386
+ }
2387
+ }
2401
2388
  }
2402
2389
  ]
2403
2390
  ```
@@ -2490,33 +2477,32 @@ Example return:
2490
2477
  ```json
2491
2478
  [
2492
2479
  {
2493
- "id": 1764,
2494
- "parentId": null,
2495
- "config": {
2496
- "rowsPerPage": 1,
2497
- "productsPerRow": 1
2498
- },
2499
- "pageUrl": "string",
2500
- "depth": 3,
2501
- "localizeInfos": {
2502
- "title": "Catalog",
2503
- "content": "Content for catalog",
2504
- "menuTitle": "Catalog"
2505
- },
2506
- "isVisible": true,
2507
- "products": 0,
2508
- "attributeSetId": 7,
2509
- "isSync": false,
2510
- "templateIdentifier": "my-template",
2511
- "attributeValues": {
2512
- "marker": {
2513
- "value": "",
2514
- "type": "string"
2515
- }
2516
- },
2517
- "position": 192,
2518
- "type": "forNewsPage",
2519
- "childrenCount": 0
2480
+ "id": 1,
2481
+ "config": {},
2482
+ "depth": 0,
2483
+ "parentId": null,
2484
+ "pageUrl": "blog",
2485
+ "attributeSetIdentifier": "page",
2486
+ "localizeInfos": {
2487
+ "title": "Blog",
2488
+ "menuTitle": "Blog",
2489
+ "htmlContent": "",
2490
+ "plainContent": ""
2491
+ },
2492
+ "position": 1,
2493
+ "isVisible": true,
2494
+ "products": 0,
2495
+ "childrenCount": 1,
2496
+ "type": "forUsualPage",
2497
+ "templateIdentifier": "template",
2498
+ "isSync": true,
2499
+ "attributeValues": {
2500
+ "text": {
2501
+ "type": "string",
2502
+ "value": "some text",
2503
+ "position": 0
2504
+ }
2505
+ }
2520
2506
  }
2521
2507
  ]
2522
2508
  ```
@@ -2609,33 +2595,32 @@ Example return:
2609
2595
  ```json
2610
2596
  [
2611
2597
  {
2612
- "id": 1764,
2613
- "parentId": null,
2614
- "config": {
2615
- "rowsPerPage": 1,
2616
- "productsPerRow": 1
2617
- },
2618
- "pageUrl": "string",
2619
- "depth": 3,
2620
- "localizeInfos": {
2621
- "title": "Catalog",
2622
- "content": "Content for catalog",
2623
- "menuTitle": "Catalog"
2624
- },
2625
- "isVisible": true,
2626
- "products": 0,
2627
- "attributeSetId": 7,
2628
- "isSync": false,
2629
- "templateIdentifier": "my-template",
2630
- "attributeValues": {
2631
- "marker": {
2632
- "value": "",
2633
- "type": "string"
2634
- }
2635
- },
2636
- "position": 192,
2637
- "type": "forNewsPage",
2638
- "childrenCount": 0
2598
+ "id": 2,
2599
+ "config": {},
2600
+ "depth": 0,
2601
+ "parentId": null,
2602
+ "pageUrl": "catalog",
2603
+ "attributeSetIdentifier": "page",
2604
+ "localizeInfos": {
2605
+ "title": "Catalog",
2606
+ "menuTitle": "Catalog",
2607
+ "htmlContent": "",
2608
+ "plainContent": ""
2609
+ },
2610
+ "position": 3,
2611
+ "isVisible": true,
2612
+ "products": 3,
2613
+ "childrenCount": 0,
2614
+ "type": "forCatalogPages",
2615
+ "templateIdentifier": "template",
2616
+ "isSync": true,
2617
+ "attributeValues": {
2618
+ "text": {
2619
+ "type": "string",
2620
+ "value": "catalog text",
2621
+ "position": 0
2622
+ }
2623
+ }
2639
2624
  }
2640
2625
  ]
2641
2626
  ```
@@ -2726,27 +2711,29 @@ Example return:
2726
2711
 
2727
2712
  ```json
2728
2713
  {
2729
- "id": 1764,
2714
+ "id": 1,
2730
2715
  "parentId": null,
2731
- "pageUrl": "string",
2732
- "depth": 3,
2716
+ "pageUrl": "blog",
2717
+ "depth": 0,
2733
2718
  "localizeInfos": {
2734
- "title": "Catalog",
2735
- "content": "Content for catalog",
2736
- "menuTitle": "Catalog"
2719
+ "title": "Blog",
2720
+ "menuTitle": "Blog",
2721
+ "htmlContent": "",
2722
+ "plainContent": ""
2737
2723
  },
2738
2724
  "isVisible": true,
2739
- "position": 192,
2740
- "type": "forNewsPage",
2741
- "templateIdentifier": "my-template",
2742
- "attributeSetId": 7,
2725
+ "forms": [],
2726
+ "blocks": [],
2727
+ "type": "forUsualPage",
2728
+ "templateIdentifier": "template",
2743
2729
  "attributeValues": {
2744
- "marker": "description",
2745
- "type": "string",
2746
- "value": ""
2730
+ "text": {
2731
+ "type": "string",
2732
+ "value": "some text",
2733
+ "position": 0
2734
+ }
2747
2735
  },
2748
- "isSync": false,
2749
- "products": 0
2736
+ "isSync": true
2750
2737
  }
2751
2738
  ```
2752
2739
  <details>
@@ -2824,27 +2811,23 @@ Example return:
2824
2811
 
2825
2812
  ```json
2826
2813
  {
2827
- "id": 1764,
2828
- "parentId": null,
2829
- "pageUrl": "string",
2830
- "depth": 3,
2814
+ "id": 3,
2815
+ "parentId": 1,
2816
+ "pageUrl": "blog1",
2817
+ "depth": 1,
2831
2818
  "localizeInfos": {
2832
- "title": "Catalog",
2833
- "content": "Content for catalog",
2834
- "menuTitle": "Catalog"
2819
+ "title": "Blog 1",
2820
+ "menuTitle": "Blog 1",
2821
+ "htmlContent": "",
2822
+ "plainContent": ""
2835
2823
  },
2836
2824
  "isVisible": true,
2837
- "position": 192,
2838
- "type": "forNewsPage",
2839
- "templateIdentifier": "my-template",
2840
- "attributeSetId": 7,
2841
- "attributeValues": {
2842
- "marker": "description",
2843
- "type": "string",
2844
- "value": ""
2845
- },
2846
- "isSync": false,
2847
- "products": 0
2825
+ "forms": [],
2826
+ "blocks": [],
2827
+ "type": "forUsualPage",
2828
+ "templateIdentifier": null,
2829
+ "attributeValues": {},
2830
+ "isSync": false
2848
2831
  }
2849
2832
  ```
2850
2833
  <details>
@@ -2924,40 +2907,26 @@ Example return:
2924
2907
  ```json
2925
2908
  [
2926
2909
  {
2927
- "id": 1764,
2928
- "parentId": null,
2929
- "config": {
2930
- "rowsPerPage": 1,
2931
- "productsPerRow": 1
2932
- },
2933
- "pageUrl": "string",
2934
- "depth": 3,
2910
+ "id": 3,
2911
+ "config": {},
2912
+ "depth": 1,
2913
+ "parentId": 1,
2914
+ "pageUrl": "blog1",
2915
+ "attributeSetIdentifier": null,
2935
2916
  "localizeInfos": {
2936
- "title": "Catalog",
2937
- "plainContent": "Content for catalog",
2938
- "htmlContent": "<b>Content for catalog</b>",
2939
- "menuTitle": "Catalog"
2917
+ "title": "Blog 1",
2918
+ "menuTitle": "Blog 1",
2919
+ "htmlContent": "",
2920
+ "plainContent": ""
2940
2921
  },
2922
+ "position": 1,
2941
2923
  "isVisible": true,
2942
2924
  "products": 0,
2943
- "attributeSetId": 7,
2944
- "forms": [
2945
- null
2946
- ],
2947
- "blocks": [
2948
- null
2949
- ],
2925
+ "childrenCount": 0,
2926
+ "type": "forUsualPage",
2927
+ "templateIdentifier": null,
2950
2928
  "isSync": false,
2951
- "templateIdentifier": "my-template",
2952
- "attributeValues": {
2953
- "marker": {
2954
- "value": "",
2955
- "type": "string"
2956
- }
2957
- },
2958
- "position": 192,
2959
- "type": "forNewsPage",
2960
- "childrenCount": 0
2929
+ "attributeValues": {}
2961
2930
  }
2962
2931
  ]
2963
2932
  ```
@@ -3051,39 +3020,20 @@ Example return:
3051
3020
  ```json
3052
3021
  [
3053
3022
  {
3054
- "id": 1764,
3055
- "version": 10,
3056
- "identifier": "catalog",
3057
- "attributeSetId": 0,
3023
+ "id": 2,
3058
3024
  "localizeInfos": {
3059
- "title": "My block"
3060
- },
3061
- "customSettings": {
3062
- "sliderDelay": 0,
3063
- "sliderDelayType": "",
3064
- "productQuantity": 4,
3065
- "productSortType": "By_ID",
3066
- "productSortOrder": "Descending",
3067
- "productCountElementsPerRow": 10,
3068
- "similarProductRules": [
3069
- {
3070
- "property": "Descending",
3071
- "includes": "",
3072
- "keywords": "",
3073
- "strict": ""
3074
- }
3075
- ]
3025
+ "title": "test"
3076
3026
  },
3077
- "position": 0,
3027
+ "attributeSetIdentifier": "block",
3028
+ "version": 0,
3029
+ "position": 2,
3030
+ "identifier": "test",
3031
+ "type": "forTextBlock",
3032
+ "templateIdentifier": null,
3033
+ "isVisible": true,
3078
3034
  "isSync": false,
3079
- "attributeValues": {
3080
- "marker": {
3081
- "value": "",
3082
- "type": "string"
3083
- }
3084
- },
3085
- "type": "forNewsPage",
3086
- "templateIdentifier": null
3035
+ "attributeValues": {},
3036
+ "countElementsPerRow": 0
3087
3037
  }
3088
3038
  ]
3089
3039
  ```
@@ -3286,28 +3236,34 @@ Example return:
3286
3236
  ```json
3287
3237
  [
3288
3238
  {
3289
- "id": 1764,
3290
- "parentId": null,
3291
- "pageUrl": "string",
3292
- "depth": 3,
3293
- "localizeInfos": {
3294
- "title": "Catalog",
3295
- "content": "Content for catalog",
3296
- "menuTitle": "Catalog"
3297
- },
3298
- "isVisible": true,
3299
- "position": 192,
3300
- "type": "forNewsPage",
3301
- "templateIdentifier": "my-template",
3302
- "attributeSetId": 7,
3303
- "attributeValues": {
3304
- "marker": "description",
3239
+ "id": 2,
3240
+ "parentId": null,
3241
+ "pageUrl": "catalog",
3242
+ "depth": 0,
3243
+ "localizeInfos": {
3244
+ "title": "Catalog",
3245
+ "menuTitle": "Catalog",
3246
+ "htmlContent": "",
3247
+ "plainContent": ""
3248
+ },
3249
+ "isVisible": true,
3250
+ "forms": [],
3251
+ "blocks": [
3252
+ "test",
3253
+ "product_block"
3254
+ ],
3255
+ "type": "forCatalogPages",
3256
+ "templateIdentifier": "template",
3257
+ "attributeValues": {
3258
+ "text": {
3305
3259
  "type": "string",
3306
- "value": ""
3307
- },
3308
- "isSync": false,
3309
- "products": 0
3310
- }
3260
+ "value": "catalog text",
3261
+ "position": 0
3262
+ }
3263
+ },
3264
+ "products": 3,
3265
+ "isSync": true
3266
+ }
3311
3267
  ]
3312
3268
  ```
3313
3269
 
@@ -3323,7 +3279,7 @@ const { Payments } = defineOneEntry('your-url');
3323
3279
  ### Payments.getSessions(limit, offset)
3324
3280
 
3325
3281
  ```js
3326
- const value = await Payments.getSessions(30, 0)
3282
+ const value = await Payments.getSessions()
3327
3283
  ```
3328
3284
 
3329
3285
  > This method get list of a payment session. It returns a Promise that resolves to a payment session object.
@@ -3334,32 +3290,13 @@ Example return:
3334
3290
  [
3335
3291
  {
3336
3292
  "id": 1764,
3337
- "updatedDate": "2024-04-10T16:39:04.297Z",
3338
- "version": 10,
3339
- "identifier": "catalog",
3293
+ "updatedDate": "2024-06-21T09:51:57.785Z",
3340
3294
  "type": "session",
3341
- "lineItems": [
3342
- {
3343
- "quantity": 1,
3344
- "amount": 5,
3345
- "currency": "USD",
3346
- "name": "T-shirt",
3347
- "description": "White T-shirt"
3348
- }
3349
- ],
3295
+ "status": "completed",
3350
3296
  "orderId": 1,
3351
3297
  "paymentAccountId": 1,
3352
- "status": "completed",
3353
- "sessionId": "9BE88048TU058770M",
3354
- "paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
3355
- "successUrl": "https://example.com/success",
3356
- "cancelUrl": "https://example.com/cancel",
3357
- "intent": {
3358
- "amount": 1,
3359
- "currency": "usd"
3360
- },
3361
- "intentId": 1,
3362
- "clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
3298
+ "paymentUrl": "https://checkout.stripe.com/c/pay/cs_test_a1iOHnSWAmeN3SN5IgYtPv8Fzv48vGUmKxFuhxD0FOjkOaTAlgiwNY9OYW#fid2BXKsdWBEZmZqcGtxJz8nZGZmcVo0VTZjazFUb2Z8YEBRYkxHJyknZHVsTmB8Jz8ndW5acWB2cVowNEpKcW43TVVBa1NSMU5ST3JfY3VcRGlRSUR8cVx0XFxOXG9Cbn1oM1V0QUExR0RRRnJwV0FCYlNcXUtGdGtzcndgcmJxQVNkQnxvcDBTY0ZpUjZCd319UTU1ME5rXDJIVjYnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl",
3299
+ "clientSecret": "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH"
3363
3300
  }
3364
3301
  ]
3365
3302
  ```
@@ -3443,32 +3380,13 @@ Example return:
3443
3380
  ```json
3444
3381
  {
3445
3382
  "id": 1764,
3446
- "updatedDate": "2024-04-10T16:39:04.297Z",
3447
- "version": 10,
3448
- "identifier": "catalog",
3383
+ "updatedDate": "2024-06-21T09:51:57.785Z",
3449
3384
  "type": "session",
3450
- "lineItems": [
3451
- {
3452
- "quantity": 1,
3453
- "amount": 5,
3454
- "currency": "USD",
3455
- "name": "T-shirt",
3456
- "description": "White T-shirt"
3457
- }
3458
- ],
3385
+ "status": "completed",
3459
3386
  "orderId": 1,
3460
3387
  "paymentAccountId": 1,
3461
- "status": "completed",
3462
- "sessionId": "9BE88048TU058770M",
3463
- "paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
3464
- "successUrl": "https://example.com/success",
3465
- "cancelUrl": "https://example.com/cancel",
3466
- "intent": {
3467
- "amount": 1,
3468
- "currency": "usd"
3469
- },
3470
- "intentId": 1,
3471
- "clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
3388
+ "paymentUrl": "https://checkout.stripe.com/c/pay/cs_test_a1iOHnSWAmeN3SN5IgYtPv8Fzv48vGUmKxFuhxD0FOjkOaTAlgiwNY9OYW#fid2BXKsdWBEZmZqcGtxJz8nZGZmcVo0VTZjazFUb2Z8YEBRYkxHJyknZHVsTmB8Jz8ndW5acWB2cVowNEpKcW43TVVBa1NSMU5ST3JfY3VcRGlRSUR8cVx0XFxOXG9Cbn1oM1V0QUExR0RRRnJwV0FCYlNcXUtGdGtzcndgcmJxQVNkQnxvcDBTY0ZpUjZCd319UTU1ME5rXDJIVjYnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl",
3389
+ "clientSecret": "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH"
3472
3390
  }
3473
3391
  ```
3474
3392
  <details>
@@ -3538,23 +3456,10 @@ example: pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2 <br>
3538
3456
  </details>
3539
3457
 
3540
3458
 
3541
- ### Payments.createSession(body)
3459
+ ### Payments.createSession(orderId, type, automaticTaxEnabled)
3542
3460
 
3543
3461
  ```js
3544
- const body = {
3545
- "lineItems": [
3546
- {
3547
- "quantity": 1,
3548
- "amount": 5,
3549
- "currency": "USD",
3550
- "name": "T-Shirt",
3551
- "description": "White T-Shirt"
3552
- }
3553
- ],
3554
- "orderId": 22
3555
- }
3556
-
3557
- const value = await Payments.createSession(body)
3462
+ const value = await Payments.createSession(1, 'session')
3558
3463
  ```
3559
3464
 
3560
3465
  > This method creation of a payment session. It returns a Promise that resolves to a payment session object.
@@ -3564,32 +3469,9 @@ Example return:
3564
3469
  ```json
3565
3470
  {
3566
3471
  "id": 1764,
3567
- "updatedDate": "2024-04-10T16:39:04.297Z",
3472
+ "updatedDate": "2024-06-21T09:53:28.898Z",
3568
3473
  "version": 10,
3569
- "identifier": "catalog",
3570
- "type": "session",
3571
- "lineItems": [
3572
- {
3573
- "quantity": 1,
3574
- "amount": 5,
3575
- "currency": "USD",
3576
- "name": "T-shirt",
3577
- "description": "White T-shirt"
3578
- }
3579
- ],
3580
- "orderId": 1,
3581
- "paymentAccountId": 1,
3582
- "status": "completed",
3583
- "sessionId": "9BE88048TU058770M",
3584
- "paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
3585
- "successUrl": "https://example.com/success",
3586
- "cancelUrl": "https://example.com/cancel",
3587
- "intent": {
3588
- "amount": 1,
3589
- "currency": "usd"
3590
- },
3591
- "intentId": 1,
3592
- "clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
3474
+ "identifier": "my-id"
3593
3475
  }
3594
3476
  ```
3595
3477
  <details>
@@ -3672,8 +3554,7 @@ Example return:
3672
3554
  ```json
3673
3555
  {
3674
3556
  "stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
3675
- "stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3",
3676
- "paypalAccountId": "4Q0BANTF5BE7N"
3557
+ "stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
3677
3558
  }
3678
3559
  ```
3679
3560
  <details>
@@ -3707,13 +3588,11 @@ Example return:
3707
3588
  ```json
3708
3589
  [
3709
3590
  {
3710
- "id": 1764,
3711
- "updatedDate": "2024-04-10T17:02:20.707Z",
3712
- "version": 10,
3713
- "identifier": "catalog",
3591
+ "id": 2,
3714
3592
  "localizeInfos": {
3715
- "title": "Stripe"
3593
+ "title": "Stripe"
3716
3594
  },
3595
+ "identifier": "stripe",
3717
3596
  "type": "stripe",
3718
3597
  "isVisible": true
3719
3598
  }
@@ -3764,15 +3643,11 @@ Example return:
3764
3643
 
3765
3644
  ```json
3766
3645
  {
3767
- "id": 1764,
3768
- "updatedDate": "2024-04-10T17:12:20.233Z",
3769
- "version": 10,
3770
- "identifier": "catalog",
3646
+ "id": 2,
3771
3647
  "localizeInfos": {
3772
- "en_US": {
3773
- "title": "Stripe"
3774
- }
3648
+ "title": "Stripe"
3775
3649
  },
3650
+ "identifier": "stripe",
3776
3651
  "type": "stripe",
3777
3652
  "isVisible": true
3778
3653
  }
@@ -3818,16 +3693,6 @@ const value = await Payments.webhookStripe()
3818
3693
 
3819
3694
  > This method use webhook for Stripe. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
3820
3695
 
3821
-
3822
-
3823
- ### Payments.webhookStripe()
3824
-
3825
- ```js
3826
- const value = await Payments.webhookPaypal()
3827
- ```
3828
-
3829
- > This method use webhook for Paypal. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
3830
-
3831
3696
  ---
3832
3697
 
3833
3698
 
@@ -3906,51 +3771,46 @@ Example return:
3906
3771
  ```json
3907
3772
  [
3908
3773
  {
3909
- "id": 1764,
3774
+ "id": 4,
3910
3775
  "localizeInfos": {
3911
- "title": "Product"
3776
+ "title": "Cosmo"
3912
3777
  },
3913
- "isVisible": true,
3914
- "statusId": 1,
3915
- "relatedIds": [
3916
- 1,
3917
- 2,
3918
- 3
3919
- ],
3920
- "attributeSetId": 7,
3921
- "isSync": true,
3922
- "price": 0,
3778
+ "statusIdentifier": null,
3779
+ "statusLocalizeInfos": {},
3780
+ "attributeSetIdentifier": "products",
3781
+ "position": 1,
3782
+ "templateIdentifier": null,
3783
+ "shortDescTemplateIdentifier": null,
3784
+ "price": 150,
3923
3785
  "additional": {
3924
3786
  "prices": {
3925
- "min": 0,
3926
- "max": 100
3787
+ "min": 120,
3788
+ "max": 150
3927
3789
  }
3928
3790
  },
3929
- "blocks": [
3930
- null
3931
- ],
3932
- "sku": "0-123",
3933
- "productPages": [
3934
- {
3935
- "id": 8997,
3936
- "pageId": 1176,
3937
- "productId": 8872
3938
- }
3939
- ],
3940
- "statusLocalizeInfos": {
3941
- "title": "Product"
3942
- },
3943
- "templateIdentifier": "my-template",
3944
- "shortDescTemplateIdentifier": "my-template-short",
3791
+ "sku": null,
3792
+ "isSync": true,
3945
3793
  "attributeValues": {
3946
- "marker": {
3947
- "value": "",
3948
- "type": "string",
3794
+ "price": {
3795
+ "type": "integer",
3796
+ "value": "150",
3949
3797
  "position": 1,
3950
3798
  "isProductPreview": false
3799
+ },
3800
+ "product-name": {
3801
+ "type": "string",
3802
+ "value": "Cosmo",
3803
+ "position": 0,
3804
+ "isProductPreview": false
3805
+ },
3806
+ "currency_products": {
3807
+ "type": "string",
3808
+ "value": "",
3809
+ "position": 2,
3810
+ "isProductPreview": false
3951
3811
  }
3952
3812
  },
3953
- "position": 1
3813
+ "isVisible": true
3954
3814
  }
3955
3815
  ]
3956
3816
  ```
@@ -4041,51 +3901,46 @@ Example return:
4041
3901
  ```json
4042
3902
  [
4043
3903
  {
4044
- "id": 1764,
3904
+ "id": 4,
4045
3905
  "localizeInfos": {
4046
- "title": "Product"
3906
+ "title": "Cosmo"
4047
3907
  },
4048
- "isVisible": true,
4049
- "statusId": 1,
4050
- "relatedIds": [
4051
- 1,
4052
- 2,
4053
- 3
4054
- ],
4055
- "attributeSetId": 7,
4056
- "isSync": true,
4057
- "price": 0,
3908
+ "statusIdentifier": null,
3909
+ "statusLocalizeInfos": {},
3910
+ "attributeSetIdentifier": "products",
3911
+ "position": 1,
3912
+ "templateIdentifier": null,
3913
+ "shortDescTemplateIdentifier": null,
3914
+ "price": 150,
4058
3915
  "additional": {
4059
3916
  "prices": {
4060
- "min": 0,
4061
- "max": 100
3917
+ "min": 120,
3918
+ "max": 150
4062
3919
  }
4063
3920
  },
4064
- "blocks": [
4065
- null
4066
- ],
4067
- "sku": "0-123",
4068
- "productPages": [
4069
- {
4070
- "id": 8997,
4071
- "pageId": 1176,
4072
- "productId": 8872
4073
- }
4074
- ],
4075
- "statusLocalizeInfos": {
4076
- "title": "Product"
4077
- },
4078
- "templateIdentifier": "my-template",
4079
- "shortDescTemplateIdentifier": "my-template-short",
3921
+ "sku": null,
3922
+ "isSync": true,
4080
3923
  "attributeValues": {
4081
- "marker": {
4082
- "value": "",
4083
- "type": "string",
3924
+ "price": {
3925
+ "type": "integer",
3926
+ "value": "150",
4084
3927
  "position": 1,
4085
3928
  "isProductPreview": false
3929
+ },
3930
+ "product-name": {
3931
+ "type": "string",
3932
+ "value": "Cosmo",
3933
+ "position": 0,
3934
+ "isProductPreview": false
3935
+ },
3936
+ "currency_products": {
3937
+ "type": "string",
3938
+ "value": "",
3939
+ "position": 2,
3940
+ "isProductPreview": false
4086
3941
  }
4087
3942
  },
4088
- "position": 1
3943
+ "isVisible": true
4089
3944
  }
4090
3945
  ]
4091
3946
  ```
@@ -4196,51 +4051,49 @@ Example return:
4196
4051
  ```json
4197
4052
  [
4198
4053
  {
4199
- "id": 1764,
4054
+ "id": 2,
4200
4055
  "localizeInfos": {
4201
- "title": "Product"
4056
+ "title": "Box"
4202
4057
  },
4203
- "isVisible": true,
4204
- "statusId": 1,
4205
- "relatedIds": [
4206
- 1,
4207
- 2,
4208
- 3
4209
- ],
4210
- "attributeSetId": 7,
4211
- "isSync": true,
4212
- "price": 0,
4058
+ "statusIdentifier": "sold",
4059
+ "statusLocalizeInfos": {
4060
+ "title": "Sold"
4061
+ },
4062
+ "attributeSetIdentifier": "products",
4063
+ "position": 3,
4064
+ "templateIdentifier": null,
4065
+ "shortDescTemplateIdentifier": null,
4066
+ "price": 148,
4213
4067
  "additional": {
4214
4068
  "prices": {
4215
- "min": 0,
4216
- "max": 100
4069
+ "min": 120,
4070
+ "max": 150
4217
4071
  }
4218
4072
  },
4219
- "blocks": [
4220
- null
4221
- ],
4222
- "sku": "0-123",
4223
- "productPages": [
4224
- {
4225
- "id": 8997,
4226
- "pageId": 1176,
4227
- "productId": 8872
4228
- }
4229
- ],
4230
- "statusLocalizeInfos": {
4231
- "title": "Product"
4232
- },
4233
- "templateIdentifier": "my-template",
4234
- "shortDescTemplateIdentifier": "my-template-short",
4073
+ "sku": null,
4074
+ "isSync": true,
4235
4075
  "attributeValues": {
4236
- "marker": {
4237
- "value": "",
4238
- "type": "string",
4076
+ "price": {
4077
+ "type": "integer",
4078
+ "value": "148",
4239
4079
  "position": 1,
4240
4080
  "isProductPreview": false
4081
+ },
4082
+ "product-name": {
4083
+ "type": "string",
4084
+ "value": "Box text",
4085
+ "position": 0,
4086
+ "isProductPreview": false
4087
+ },
4088
+ "currency_products": {
4089
+ "type": "string",
4090
+ "value": "$",
4091
+ "position": 2,
4092
+ "isProductPreview": false
4241
4093
  }
4242
4094
  },
4243
- "position": 1
4095
+ "isVisible": true,
4096
+ "isPositionLocked": false
4244
4097
  }
4245
4098
  ]
4246
4099
  ```
@@ -4383,51 +4236,49 @@ Example return:
4383
4236
  ```json
4384
4237
  [
4385
4238
  {
4386
- "id": 1764,
4239
+ "id": 2,
4387
4240
  "localizeInfos": {
4388
- "title": "Product"
4241
+ "title": "Box"
4389
4242
  },
4390
- "isVisible": true,
4391
- "statusId": 1,
4392
- "relatedIds": [
4393
- 1,
4394
- 2,
4395
- 3
4396
- ],
4397
- "attributeSetId": 7,
4398
- "isSync": true,
4399
- "price": 0,
4243
+ "statusIdentifier": "sold",
4244
+ "statusLocalizeInfos": {
4245
+ "title": "Sold"
4246
+ },
4247
+ "attributeSetIdentifier": "products",
4248
+ "position": 3,
4249
+ "templateIdentifier": null,
4250
+ "shortDescTemplateIdentifier": null,
4251
+ "price": 148,
4400
4252
  "additional": {
4401
4253
  "prices": {
4402
- "min": 0,
4403
- "max": 100
4404
- }
4405
- },
4406
- "blocks": [
4407
- null
4408
- ],
4409
- "sku": "0-123",
4410
- "productPages": [
4411
- {
4412
- "id": 8997,
4413
- "pageId": 1176,
4414
- "productId": 8872
4254
+ "min": 120,
4255
+ "max": 150
4415
4256
  }
4416
- ],
4417
- "statusLocalizeInfos": {
4418
- "title": "Product"
4419
4257
  },
4420
- "templateIdentifier": "my-template",
4421
- "shortDescTemplateIdentifier": "my-template-short",
4258
+ "sku": null,
4259
+ "isSync": true,
4422
4260
  "attributeValues": {
4423
- "marker": {
4424
- "value": "",
4425
- "type": "string",
4261
+ "price": {
4262
+ "type": "integer",
4263
+ "value": "148",
4426
4264
  "position": 1,
4427
4265
  "isProductPreview": false
4266
+ },
4267
+ "product-name": {
4268
+ "type": "string",
4269
+ "value": "Box text",
4270
+ "position": 0,
4271
+ "isProductPreview": false
4272
+ },
4273
+ "currency_products": {
4274
+ "type": "string",
4275
+ "value": "$",
4276
+ "position": 2,
4277
+ "isProductPreview": false
4428
4278
  }
4429
4279
  },
4430
- "position": 1
4280
+ "isVisible": true,
4281
+ "isPositionLocked": false
4431
4282
  }
4432
4283
  ]
4433
4284
  ```
@@ -4517,51 +4368,49 @@ Example return:
4517
4368
 
4518
4369
  ```json
4519
4370
  {
4520
- "id": 1764,
4371
+ "id": 2,
4521
4372
  "localizeInfos": {
4522
- "title": "Product"
4373
+ "title": "Box"
4523
4374
  },
4524
- "isVisible": true,
4525
- "statusId": 1,
4526
- "relatedIds": [
4527
- 1,
4528
- 2,
4529
- 3
4530
- ],
4531
- "attributeSetId": 7,
4532
- "isSync": true,
4533
- "price": 0,
4375
+ "statusIdentifier": "sold",
4376
+ "statusLocalizeInfos": {
4377
+ "title": "Sold"
4378
+ },
4379
+ "attributeSetIdentifier": "products",
4380
+ "position": 3,
4381
+ "templateIdentifier": null,
4382
+ "shortDescTemplateIdentifier": null,
4383
+ "price": 148,
4534
4384
  "additional": {
4535
4385
  "prices": {
4536
- "min": 0,
4537
- "max": 100
4538
- }
4539
- },
4540
- "blocks": [
4541
- null
4542
- ],
4543
- "sku": "0-123",
4544
- "productPages": [
4545
- {
4546
- "id": 8997,
4547
- "pageId": 1176,
4548
- "productId": 8872
4386
+ "min": 120,
4387
+ "max": 150
4549
4388
  }
4550
- ],
4551
- "statusLocalizeInfos": {
4552
- "title": "Product"
4553
4389
  },
4554
- "templateIdentifier": "my-template",
4555
- "shortDescTemplateIdentifier": "my-template-short",
4390
+ "sku": null,
4391
+ "isSync": true,
4556
4392
  "attributeValues": {
4557
- "marker": {
4558
- "value": "",
4559
- "type": "string",
4393
+ "price": {
4394
+ "type": "integer",
4395
+ "value": "148",
4560
4396
  "position": 1,
4561
4397
  "isProductPreview": false
4398
+ },
4399
+ "product-name": {
4400
+ "type": "string",
4401
+ "value": "Box text",
4402
+ "position": 0,
4403
+ "isProductPreview": false
4404
+ },
4405
+ "currency_products": {
4406
+ "type": "string",
4407
+ "value": "$",
4408
+ "position": 2,
4409
+ "isProductPreview": false
4562
4410
  }
4563
4411
  },
4564
- "position": 1
4412
+ "isVisible": true,
4413
+ "isPositionLocked": false
4565
4414
  }
4566
4415
  ```
4567
4416
  <details>
@@ -4649,51 +4498,56 @@ Example return:
4649
4498
 
4650
4499
  ```json
4651
4500
  {
4652
- "id": 1764,
4501
+ "id": 3,
4653
4502
  "localizeInfos": {
4654
4503
  "title": "Product"
4655
4504
  },
4656
- "isVisible": true,
4657
- "statusId": 1,
4658
- "relatedIds": [
4659
- 1,
4660
- 2,
4661
- 3
4662
- ],
4663
- "attributeSetId": 7,
4664
- "isSync": true,
4665
- "price": 0,
4505
+ "statusIdentifier": null,
4506
+ "statusLocalizeInfos": {},
4507
+ "attributeSetIdentifier": "products",
4508
+ "position": 1,
4509
+ "templateIdentifier": null,
4510
+ "shortDescTemplateIdentifier": null,
4511
+ "price": 120,
4666
4512
  "additional": {
4667
4513
  "prices": {
4668
- "min": 0,
4669
- "max": 100
4514
+ "min": 120,
4515
+ "max": 150
4670
4516
  }
4671
4517
  },
4672
- "blocks": [
4673
- null
4674
- ],
4675
- "sku": "0-123",
4676
- "productPages": [
4677
- {
4678
- "id": 8997,
4679
- "pageId": 1176,
4680
- "productId": 8872
4681
- }
4682
- ],
4683
- "statusLocalizeInfos": {
4684
- "title": "Product"
4685
- },
4686
- "templateIdentifier": "my-template",
4687
- "shortDescTemplateIdentifier": "my-template-short",
4518
+ "sku": null,
4519
+ "isSync": true,
4688
4520
  "attributeValues": {
4689
- "marker": {
4690
- "value": "",
4691
- "type": "string",
4521
+ "price": {
4522
+ "type": "integer",
4523
+ "value": "120",
4692
4524
  "position": 1,
4693
4525
  "isProductPreview": false
4526
+ },
4527
+ "product-name": {
4528
+ "type": "string",
4529
+ "value": "Prod",
4530
+ "position": 0,
4531
+ "isProductPreview": false
4532
+ },
4533
+ "currency_products": {
4534
+ "type": "string",
4535
+ "value": "$",
4536
+ "position": 2,
4537
+ "isProductPreview": false
4694
4538
  }
4695
4539
  },
4696
- "position": 1
4540
+ "isVisible": true,
4541
+ "productPages": {
4542
+ "id": 3,
4543
+ "pageId": 2,
4544
+ "productId": 3,
4545
+ "positionId": 215
4546
+ },
4547
+ "blocks": [
4548
+ "product_block",
4549
+ "another"
4550
+ ]
4697
4551
  }
4698
4552
  ```
4699
4553
  <details>
@@ -4783,57 +4637,33 @@ Example return:
4783
4637
  ```json
4784
4638
  [
4785
4639
  {
4786
- "id": 4,
4640
+ "id": 3,
4641
+ "attributeSetIdentifier": null,
4787
4642
  "localizeInfos": {
4788
- "title": "Name"
4643
+ "title": "Product block"
4789
4644
  },
4790
4645
  "version": 0,
4791
- "position": 3,
4792
- "identifier": "product",
4646
+ "position": 1,
4647
+ "identifier": "product_block",
4793
4648
  "type": "forProductBlock",
4649
+ "customSettings": {
4650
+ "productConfig": {
4651
+ "quantity": "1",
4652
+ "countElementsPerRow": "1"
4653
+ },
4654
+ "similarProductRules": [],
4655
+ "condition": {
4656
+ "name": "cost",
4657
+ "costTo": 130,
4658
+ "costFrom": 0
4659
+ },
4660
+ "sliderDelay": null,
4661
+ "sliderDelayType": null
4662
+ },
4794
4663
  "templateIdentifier": null,
4795
4664
  "isVisible": true,
4796
- "attributeValues": {
4797
- "attr": {
4798
- "type": "string",
4799
- "value": "",
4800
- "position": 0,
4801
- "isProductPreview": false
4802
- }
4803
- },
4804
- "countElementsPerRow": 3,
4805
- "products": [
4806
- {
4807
- "id": 446,
4808
- "localizeInfos": {
4809
- "title": "new product 3"
4810
- },
4811
- "relatedIds": [1, 2],
4812
- "statusId": null,
4813
- "attributeSetId": 11,
4814
- "position": 3,
4815
- "templateIdentifier": null,
4816
- "shortDescTemplateIdentifier": null,
4817
- "price": 543,
4818
- "sku": "ggg",
4819
- "isSync": true,
4820
- "attributeValues": {
4821
- "sku": {
4822
- "type": "string",
4823
- "value": "ggg",
4824
- "position": 0,
4825
- "isProductPreview": false
4826
- },
4827
- "images": {
4828
- "type": "groupOfImages",
4829
- "value": {},
4830
- "position": 3,
4831
- "isProductPreview": false
4832
- }
4833
- },
4834
- "isVisible": true
4835
- }
4836
- ]
4665
+ "isSync": false,
4666
+ "attributeValues": {}
4837
4667
  }
4838
4668
  ]
4839
4669
  ```
@@ -4901,51 +4731,53 @@ Example return:
4901
4731
  ```json
4902
4732
  [
4903
4733
  {
4904
- "id": 1764,
4734
+ "id": 4,
4905
4735
  "localizeInfos": {
4906
- "title": "Product"
4736
+ "title": "Cosmo"
4907
4737
  },
4908
- "isVisible": true,
4909
- "statusId": 1,
4910
- "relatedIds": [
4911
- 1,
4912
- 2,
4913
- 3
4914
- ],
4915
- "attributeSetId": 7,
4916
- "isSync": true,
4917
- "price": 0,
4738
+ "statusIdentifier": null,
4739
+ "statusLocalizeInfos": {},
4740
+ "attributeSetIdentifier": "products",
4741
+ "position": 1,
4742
+ "templateIdentifier": null,
4743
+ "shortDescTemplateIdentifier": null,
4744
+ "price": 150,
4918
4745
  "additional": {
4919
4746
  "prices": {
4920
- "min": 0,
4921
- "max": 100
4747
+ "min": 120,
4748
+ "max": 150
4922
4749
  }
4923
4750
  },
4924
- "blocks": [
4925
- null
4926
- ],
4927
- "sku": "0-123",
4928
- "productPages": [
4929
- {
4930
- "id": 8997,
4931
- "pageId": 1176,
4932
- "productId": 8872
4933
- }
4934
- ],
4935
- "statusLocalizeInfos": {
4936
- "title": "Product"
4937
- },
4938
- "templateIdentifier": "my-template",
4939
- "shortDescTemplateIdentifier": "my-template-short",
4751
+ "sku": null,
4752
+ "isSync": true,
4940
4753
  "attributeValues": {
4941
- "marker": {
4942
- "value": "",
4943
- "type": "string",
4754
+ "price": {
4755
+ "type": "integer",
4756
+ "value": "150",
4944
4757
  "position": 1,
4945
4758
  "isProductPreview": false
4759
+ },
4760
+ "product-name": {
4761
+ "type": "string",
4762
+ "value": "Cosmo",
4763
+ "position": 0,
4764
+ "isProductPreview": false
4765
+ },
4766
+ "currency_products": {
4767
+ "type": "string",
4768
+ "value": "",
4769
+ "position": 2,
4770
+ "isProductPreview": false
4946
4771
  }
4947
4772
  },
4948
- "position": 1
4773
+ "isVisible": true,
4774
+ "productPages": {
4775
+ "id": 6,
4776
+ "pageId": 2,
4777
+ "productId": 4,
4778
+ "positionId": 229
4779
+ },
4780
+ "blocks": "product_block"
4949
4781
  }
4950
4782
  ]
4951
4783
  ```
@@ -5222,17 +5054,11 @@ Example return:
5222
5054
  [
5223
5055
  {
5224
5056
  "id": 1764,
5225
- "updatedDate": "2024-05-25T23:50:35.154Z",
5226
5057
  "version": 10,
5227
5058
  "identifier": "marker",
5228
- "generalType": {
5229
- "id": 4,
5230
- "type": "forCatalogPages"
5231
- },
5232
5059
  "generalTypeId": 4,
5233
5060
  "title": "Page template",
5234
5061
  "position": 0,
5235
- "positionId": 12,
5236
5062
  "generalTypeName": "forProductPreview"
5237
5063
  }
5238
5064
  ]
@@ -5244,8 +5070,6 @@ Example return:
5244
5070
  *object identifier* <br>
5245
5071
  example: 1764 <br>
5246
5072
 
5247
- **updatedDate:** string($date-time) <br>
5248
- *object's date of modification* <br>
5249
5073
 
5250
5074
  **version** number <br>
5251
5075
  *object's version number of modification* <br>
@@ -5255,10 +5079,6 @@ example: 10 <br>
5255
5079
  *textual identifier for a field in the record* <br>
5256
5080
  example: catalog <br>
5257
5081
 
5258
- **generalType:**: object <br>
5259
- *object type* <br>
5260
- example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
5261
-
5262
5082
  **generalTypeId:** number <br>
5263
5083
  *type identifier* <br>
5264
5084
  example: 4 <br>
@@ -5271,11 +5091,6 @@ example: page template <br>
5271
5091
  *position number* <br>
5272
5092
  example: 0 <br>
5273
5093
 
5274
-
5275
- **positionId:** number <br>
5276
- *position object identifier* <br>
5277
- example: 12 <br>
5278
-
5279
5094
  **generalTypeName** string <br>
5280
5095
  *example: forProductPreview* <br>
5281
5096
  general type name <br>
@@ -5296,17 +5111,11 @@ Example return:
5296
5111
  [
5297
5112
  {
5298
5113
  "id": 1764,
5299
- "updatedDate": "2024-05-25T23:50:35.154Z",
5300
5114
  "version": 10,
5301
5115
  "identifier": "marker",
5302
- "generalType": {
5303
- "id": 4,
5304
- "type": "forCatalogPages"
5305
- },
5306
5116
  "generalTypeId": 4,
5307
5117
  "title": "Page template",
5308
5118
  "position": 0,
5309
- "positionId": 12,
5310
5119
  "generalTypeName": "forProductPreview"
5311
5120
  }
5312
5121
  ]
@@ -5318,8 +5127,6 @@ Example return:
5318
5127
  *object identifier* <br>
5319
5128
  example: 1764 <br>
5320
5129
 
5321
- **updatedDate:** string($date-time) <br>
5322
- *object's date of modification* <br>
5323
5130
 
5324
5131
  **version** number <br>
5325
5132
  *object's version number of modification* <br>
@@ -5329,10 +5136,6 @@ example: 10 <br>
5329
5136
  *textual identifier for a field in the record* <br>
5330
5137
  example: catalog <br>
5331
5138
 
5332
- **generalType:**: object <br>
5333
- *object type* <br>
5334
- example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
5335
-
5336
5139
  **generalTypeId:** number <br>
5337
5140
  *type identifier* <br>
5338
5141
  example: 4 <br>
@@ -5345,10 +5148,6 @@ example: page template <br>
5345
5148
  *position number* <br>
5346
5149
  example: 0 <br>
5347
5150
 
5348
- **positionId:** number <br>
5349
- *position object identifier* <br>
5350
- example: 12 <br>
5351
-
5352
5151
  **generalTypeName** string <br>
5353
5152
  *example: forProductPreview* <br>
5354
5153
  general type name <br>
@@ -5370,17 +5169,10 @@ Example return:
5370
5169
  [
5371
5170
  {
5372
5171
  "id": 1764,
5373
- "updatedDate": "2024-05-25T23:50:35.154Z",
5374
5172
  "version": 10,
5375
5173
  "identifier": "marker",
5376
- "generalType": {
5377
- "id": 4,
5378
- "type": "forCatalogPages"
5379
- },
5380
5174
  "generalTypeId": 4,
5381
5175
  "title": "Page template",
5382
- "position": 0,
5383
- "positionId": 12,
5384
5176
  "generalTypeName": "forProductPreview"
5385
5177
  }
5386
5178
  ]
@@ -5392,9 +5184,6 @@ Example return:
5392
5184
  *object identifier* <br>
5393
5185
  example: 1764 <br>
5394
5186
 
5395
- **updatedDate:** string($date-time) <br>
5396
- *object's date of modification* <br>
5397
-
5398
5187
  **version** number <br>
5399
5188
  *object's version number of modification* <br>
5400
5189
  example: 10 <br>
@@ -5403,10 +5192,6 @@ example: 10 <br>
5403
5192
  *textual identifier for a field in the record* <br>
5404
5193
  example: catalog <br>
5405
5194
 
5406
- **generalType:**: object <br>
5407
- *object type* <br>
5408
- example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
5409
-
5410
5195
  **generalTypeId:** number <br>
5411
5196
  *type identifier* <br>
5412
5197
  example: 4 <br>
@@ -5419,9 +5204,6 @@ example: page template <br>
5419
5204
  *position number* <br>
5420
5205
  example: 0 <br>
5421
5206
 
5422
- **positionId:** number <br>
5423
- *position object identifier* <br>
5424
- example: 12 <br>
5425
5207
 
5426
5208
  **generalTypeName** string <br>
5427
5209
  *example: forProductPreview* <br>
@@ -5452,34 +5234,30 @@ Example return:
5452
5234
  ```json
5453
5235
  [
5454
5236
  {
5455
- "id": 1764,
5456
- "updatedDate": "2023-12-05T12:44:55.663Z",
5457
- "version": 10,
5458
- "identifier": "marker",
5237
+ "id": 1,
5238
+ "version": 0,
5239
+ "identifier": "preview-templates",
5459
5240
  "proportion": {
5460
- "horizontal": {
5461
- "height": 200,
5462
- "weight": 10,
5463
- "marker": "horizontal",
5464
- "title": "Horizontal",
5465
- "alignmentType": "left"
5466
- },
5467
5241
  "vertical": {
5468
- "height": 10,
5469
- "weight": 200,
5470
- "marker": "vertical",
5471
- "title": "Vertical",
5472
- "alignmentType": "left"
5242
+ "width": "2",
5243
+ "height": "3",
5244
+ "alignmentType": "leftTop",
5245
+ "marker": "v"
5246
+ },
5247
+ "horizontal": {
5248
+ "width": "234",
5249
+ "height": "324",
5250
+ "alignmentType": "middleBottom",
5251
+ "marker": "h"
5473
5252
  },
5474
5253
  "square": {
5475
- "marker": "square",
5476
- "title": "Square",
5477
- "slide": 3,
5478
- "alignmentType": "center"
5254
+ "side": "3",
5255
+ "alignmentType": "middleBottom",
5256
+ "marker": "s"
5479
5257
  }
5480
5258
  },
5481
- "title": "Page Template",
5482
- "position": 0
5259
+ "title": "Preview Templates",
5260
+ "position": 1
5483
5261
  }
5484
5262
  ]
5485
5263
  ```
@@ -5490,9 +5268,6 @@ Example return:
5490
5268
  *object identifier* <br>
5491
5269
  example: 1764 <br>
5492
5270
 
5493
- **updatedDate:** string($date-time) <br>
5494
- *object's date of modification* <br>
5495
-
5496
5271
  **version** number <br>
5497
5272
  *object's version number of modification* <br>
5498
5273
  example: 10 <br>
@@ -5524,7 +5299,7 @@ example: 12 <br>
5524
5299
  ### TemplatePreviews.getTemplatesPreviewById(id)
5525
5300
 
5526
5301
  ```js
5527
- const value = await TemplatePreviews.getTemplatePreviewById(1)
5302
+ const value = await TemplatePreviews.getTemplatePreviewById(1764)
5528
5303
  ```
5529
5304
 
5530
5305
  > This method retrieves a single template object based on its identifier (id) from the API. It returns a Promise that resolves to a TemplatePreviewsEntity object.
@@ -5532,35 +5307,31 @@ const value = await TemplatePreviews.getTemplatePreviewById(1)
5532
5307
  Example return:
5533
5308
 
5534
5309
  ```json
5535
- {
5536
- "id": 1764,
5537
- "updatedDate": "2023-12-05T12:44:37.348Z",
5538
- "version": 10,
5539
- "identifier": "marker",
5310
+ {
5311
+ "id": 1,
5312
+ "version": 0,
5313
+ "identifier": "preview-templates",
5540
5314
  "proportion": {
5541
- "horizontal": {
5542
- "height": 200,
5543
- "weight": 10,
5544
- "marker": "horizontal",
5545
- "title": "Horizontal",
5546
- "alignmentType": "left"
5547
- },
5548
5315
  "vertical": {
5549
- "height": 10,
5550
- "weight": 200,
5551
- "marker": "vertical",
5552
- "title": "Vertical",
5553
- "alignmentType": "left"
5316
+ "width": "2",
5317
+ "height": "3",
5318
+ "alignmentType": "leftTop",
5319
+ "marker": "v"
5320
+ },
5321
+ "horizontal": {
5322
+ "width": "234",
5323
+ "height": "324",
5324
+ "alignmentType": "middleBottom",
5325
+ "marker": "h"
5554
5326
  },
5555
5327
  "square": {
5556
- "marker": "square",
5557
- "title": "Square",
5558
- "slide": 3,
5559
- "alignmentType": "center"
5328
+ "side": "3",
5329
+ "alignmentType": "middleBottom",
5330
+ "marker": "s"
5560
5331
  }
5561
5332
  },
5562
- "title": "Page Template",
5563
- "position": 0
5333
+ "title": "Preview Templates",
5334
+ "position": 1
5564
5335
  }
5565
5336
  ```
5566
5337
  <details>
@@ -5570,9 +5341,6 @@ Example return:
5570
5341
  *object identifier* <br>
5571
5342
  example: 1764 <br>
5572
5343
 
5573
- **updatedDate:** string($date-time) <br>
5574
- *object's date of modification* <br>
5575
-
5576
5344
  **version** number <br>
5577
5345
  *object's version number of modification* <br>
5578
5346
  example: 10 <br>
@@ -5612,34 +5380,30 @@ Example return:
5612
5380
 
5613
5381
  ```json
5614
5382
  {
5615
- "id": 1764,
5616
- "updatedDate": "2023-12-05T12:44:20.008Z",
5617
- "version": 10,
5618
- "identifier": "marker",
5383
+ "id": 1,
5384
+ "version": 0,
5385
+ "identifier": "preview-templates",
5619
5386
  "proportion": {
5620
- "horizontal": {
5621
- "height": 200,
5622
- "weight": 10,
5623
- "marker": "horizontal",
5624
- "title": "Horizontal",
5625
- "alignmentType": "left"
5626
- },
5627
5387
  "vertical": {
5628
- "height": 10,
5629
- "weight": 200,
5630
- "marker": "vertical",
5631
- "title": "Vertical",
5632
- "alignmentType": "left"
5388
+ "width": "2",
5389
+ "height": "3",
5390
+ "alignmentType": "leftTop",
5391
+ "marker": "v"
5392
+ },
5393
+ "horizontal": {
5394
+ "width": "234",
5395
+ "height": "324",
5396
+ "alignmentType": "middleBottom",
5397
+ "marker": "h"
5633
5398
  },
5634
5399
  "square": {
5635
- "marker": "square",
5636
- "title": "Square",
5637
- "slide": 3,
5638
- "alignmentType": "center"
5400
+ "side": "3",
5401
+ "alignmentType": "middleBottom",
5402
+ "marker": "s"
5639
5403
  }
5640
5404
  },
5641
- "title": "Page Template",
5642
- "position": 0
5405
+ "title": "Preview Templates",
5406
+ "position": 1
5643
5407
  }
5644
5408
  ```
5645
5409
  <details>
@@ -5649,9 +5413,6 @@ Example return:
5649
5413
  *object identifier* <br>
5650
5414
  example: 1764 <br>
5651
5415
 
5652
- **updatedDate:** string($date-time) <br>
5653
- *object's date of modification* <br>
5654
-
5655
5416
  **version** number <br>
5656
5417
  *object's version number of modification* <br>
5657
5418
  example: 10 <br>
@@ -5668,7 +5429,7 @@ example: OrderedMap { "horizontal": OrderedMap { "height": 200, "weight": 10, "m
5668
5429
  *template name* <br>
5669
5430
  example: page template <br>
5670
5431
 
5671
- **position** object <br>
5432
+ **positionId** object <br>
5672
5433
  *position number* <br>
5673
5434
  example: 0 <br>
5674
5435
 
@@ -5735,7 +5496,7 @@ example: List [ "group_1" ] <br>
5735
5496
  </details>
5736
5497
 
5737
5498
 
5738
- ### Users.getUser(langCode)
5499
+ ### Users.updateUser(langCode)
5739
5500
 
5740
5501
  ```js
5741
5502
  const data = {