oneentry 1.0.71 → 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.
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>
@@ -3551,32 +3469,9 @@ Example return:
3551
3469
  ```json
3552
3470
  {
3553
3471
  "id": 1764,
3554
- "updatedDate": "2024-04-10T16:39:04.297Z",
3472
+ "updatedDate": "2024-06-21T09:53:28.898Z",
3555
3473
  "version": 10,
3556
- "identifier": "catalog",
3557
- "type": "session",
3558
- "lineItems": [
3559
- {
3560
- "quantity": 1,
3561
- "amount": 5,
3562
- "currency": "USD",
3563
- "name": "T-shirt",
3564
- "description": "White T-shirt"
3565
- }
3566
- ],
3567
- "orderId": 1,
3568
- "paymentAccountId": 1,
3569
- "status": "completed",
3570
- "sessionId": "9BE88048TU058770M",
3571
- "paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M",
3572
- "successUrl": "https://example.com/success",
3573
- "cancelUrl": "https://example.com/cancel",
3574
- "intent": {
3575
- "amount": 1,
3576
- "currency": "usd"
3577
- },
3578
- "intentId": 1,
3579
- "clientSecret": "pi_3Oyz2kQWzXG1R23w144qG7o4_secret_OeScuCwTpHmyOM1atbm7pWJw2"
3474
+ "identifier": "my-id"
3580
3475
  }
3581
3476
  ```
3582
3477
  <details>
@@ -3659,8 +3554,7 @@ Example return:
3659
3554
  ```json
3660
3555
  {
3661
3556
  "stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
3662
- "stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3",
3663
- "paypalAccountId": "4Q0BANTF5BE7N"
3557
+ "stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
3664
3558
  }
3665
3559
  ```
3666
3560
  <details>
@@ -3694,13 +3588,11 @@ Example return:
3694
3588
  ```json
3695
3589
  [
3696
3590
  {
3697
- "id": 1764,
3698
- "updatedDate": "2024-04-10T17:02:20.707Z",
3699
- "version": 10,
3700
- "identifier": "catalog",
3591
+ "id": 2,
3701
3592
  "localizeInfos": {
3702
- "title": "Stripe"
3593
+ "title": "Stripe"
3703
3594
  },
3595
+ "identifier": "stripe",
3704
3596
  "type": "stripe",
3705
3597
  "isVisible": true
3706
3598
  }
@@ -3751,15 +3643,11 @@ Example return:
3751
3643
 
3752
3644
  ```json
3753
3645
  {
3754
- "id": 1764,
3755
- "updatedDate": "2024-04-10T17:12:20.233Z",
3756
- "version": 10,
3757
- "identifier": "catalog",
3646
+ "id": 2,
3758
3647
  "localizeInfos": {
3759
- "en_US": {
3760
- "title": "Stripe"
3761
- }
3648
+ "title": "Stripe"
3762
3649
  },
3650
+ "identifier": "stripe",
3763
3651
  "type": "stripe",
3764
3652
  "isVisible": true
3765
3653
  }
@@ -3805,16 +3693,6 @@ const value = await Payments.webhookStripe()
3805
3693
 
3806
3694
  > This method use webhook for Stripe. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
3807
3695
 
3808
-
3809
-
3810
- ### Payments.webhookStripe()
3811
-
3812
- ```js
3813
- const value = await Payments.webhookPaypal()
3814
- ```
3815
-
3816
- > This method use webhook for Paypal. Returns true (in case of successful execution) or false (in case of unsuccessful execution).
3817
-
3818
3696
  ---
3819
3697
 
3820
3698
 
@@ -3893,51 +3771,46 @@ Example return:
3893
3771
  ```json
3894
3772
  [
3895
3773
  {
3896
- "id": 1764,
3774
+ "id": 4,
3897
3775
  "localizeInfos": {
3898
- "title": "Product"
3776
+ "title": "Cosmo"
3899
3777
  },
3900
- "isVisible": true,
3901
- "statusId": 1,
3902
- "relatedIds": [
3903
- 1,
3904
- 2,
3905
- 3
3906
- ],
3907
- "attributeSetId": 7,
3908
- "isSync": true,
3909
- "price": 0,
3778
+ "statusIdentifier": null,
3779
+ "statusLocalizeInfos": {},
3780
+ "attributeSetIdentifier": "products",
3781
+ "position": 1,
3782
+ "templateIdentifier": null,
3783
+ "shortDescTemplateIdentifier": null,
3784
+ "price": 150,
3910
3785
  "additional": {
3911
3786
  "prices": {
3912
- "min": 0,
3913
- "max": 100
3914
- }
3915
- },
3916
- "blocks": [
3917
- null
3918
- ],
3919
- "sku": "0-123",
3920
- "productPages": [
3921
- {
3922
- "id": 8997,
3923
- "pageId": 1176,
3924
- "productId": 8872
3787
+ "min": 120,
3788
+ "max": 150
3925
3789
  }
3926
- ],
3927
- "statusLocalizeInfos": {
3928
- "title": "Product"
3929
3790
  },
3930
- "templateIdentifier": "my-template",
3931
- "shortDescTemplateIdentifier": "my-template-short",
3791
+ "sku": null,
3792
+ "isSync": true,
3932
3793
  "attributeValues": {
3933
- "marker": {
3934
- "value": "",
3935
- "type": "string",
3794
+ "price": {
3795
+ "type": "integer",
3796
+ "value": "150",
3936
3797
  "position": 1,
3937
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
3938
3811
  }
3939
3812
  },
3940
- "position": 1
3813
+ "isVisible": true
3941
3814
  }
3942
3815
  ]
3943
3816
  ```
@@ -4028,51 +3901,46 @@ Example return:
4028
3901
  ```json
4029
3902
  [
4030
3903
  {
4031
- "id": 1764,
3904
+ "id": 4,
4032
3905
  "localizeInfos": {
4033
- "title": "Product"
3906
+ "title": "Cosmo"
4034
3907
  },
4035
- "isVisible": true,
4036
- "statusId": 1,
4037
- "relatedIds": [
4038
- 1,
4039
- 2,
4040
- 3
4041
- ],
4042
- "attributeSetId": 7,
4043
- "isSync": true,
4044
- "price": 0,
3908
+ "statusIdentifier": null,
3909
+ "statusLocalizeInfos": {},
3910
+ "attributeSetIdentifier": "products",
3911
+ "position": 1,
3912
+ "templateIdentifier": null,
3913
+ "shortDescTemplateIdentifier": null,
3914
+ "price": 150,
4045
3915
  "additional": {
4046
3916
  "prices": {
4047
- "min": 0,
4048
- "max": 100
4049
- }
4050
- },
4051
- "blocks": [
4052
- null
4053
- ],
4054
- "sku": "0-123",
4055
- "productPages": [
4056
- {
4057
- "id": 8997,
4058
- "pageId": 1176,
4059
- "productId": 8872
3917
+ "min": 120,
3918
+ "max": 150
4060
3919
  }
4061
- ],
4062
- "statusLocalizeInfos": {
4063
- "title": "Product"
4064
3920
  },
4065
- "templateIdentifier": "my-template",
4066
- "shortDescTemplateIdentifier": "my-template-short",
3921
+ "sku": null,
3922
+ "isSync": true,
4067
3923
  "attributeValues": {
4068
- "marker": {
4069
- "value": "",
4070
- "type": "string",
3924
+ "price": {
3925
+ "type": "integer",
3926
+ "value": "150",
4071
3927
  "position": 1,
4072
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
4073
3941
  }
4074
3942
  },
4075
- "position": 1
3943
+ "isVisible": true
4076
3944
  }
4077
3945
  ]
4078
3946
  ```
@@ -4183,51 +4051,49 @@ Example return:
4183
4051
  ```json
4184
4052
  [
4185
4053
  {
4186
- "id": 1764,
4054
+ "id": 2,
4187
4055
  "localizeInfos": {
4188
- "title": "Product"
4056
+ "title": "Box"
4189
4057
  },
4190
- "isVisible": true,
4191
- "statusId": 1,
4192
- "relatedIds": [
4193
- 1,
4194
- 2,
4195
- 3
4196
- ],
4197
- "attributeSetId": 7,
4198
- "isSync": true,
4199
- "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,
4200
4067
  "additional": {
4201
4068
  "prices": {
4202
- "min": 0,
4203
- "max": 100
4204
- }
4205
- },
4206
- "blocks": [
4207
- null
4208
- ],
4209
- "sku": "0-123",
4210
- "productPages": [
4211
- {
4212
- "id": 8997,
4213
- "pageId": 1176,
4214
- "productId": 8872
4069
+ "min": 120,
4070
+ "max": 150
4215
4071
  }
4216
- ],
4217
- "statusLocalizeInfos": {
4218
- "title": "Product"
4219
4072
  },
4220
- "templateIdentifier": "my-template",
4221
- "shortDescTemplateIdentifier": "my-template-short",
4073
+ "sku": null,
4074
+ "isSync": true,
4222
4075
  "attributeValues": {
4223
- "marker": {
4224
- "value": "",
4225
- "type": "string",
4076
+ "price": {
4077
+ "type": "integer",
4078
+ "value": "148",
4226
4079
  "position": 1,
4227
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
4228
4093
  }
4229
4094
  },
4230
- "position": 1
4095
+ "isVisible": true,
4096
+ "isPositionLocked": false
4231
4097
  }
4232
4098
  ]
4233
4099
  ```
@@ -4370,51 +4236,49 @@ Example return:
4370
4236
  ```json
4371
4237
  [
4372
4238
  {
4373
- "id": 1764,
4239
+ "id": 2,
4374
4240
  "localizeInfos": {
4375
- "title": "Product"
4241
+ "title": "Box"
4376
4242
  },
4377
- "isVisible": true,
4378
- "statusId": 1,
4379
- "relatedIds": [
4380
- 1,
4381
- 2,
4382
- 3
4383
- ],
4384
- "attributeSetId": 7,
4385
- "isSync": true,
4386
- "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,
4387
4252
  "additional": {
4388
4253
  "prices": {
4389
- "min": 0,
4390
- "max": 100
4254
+ "min": 120,
4255
+ "max": 150
4391
4256
  }
4392
4257
  },
4393
- "blocks": [
4394
- null
4395
- ],
4396
- "sku": "0-123",
4397
- "productPages": [
4398
- {
4399
- "id": 8997,
4400
- "pageId": 1176,
4401
- "productId": 8872
4402
- }
4403
- ],
4404
- "statusLocalizeInfos": {
4405
- "title": "Product"
4406
- },
4407
- "templateIdentifier": "my-template",
4408
- "shortDescTemplateIdentifier": "my-template-short",
4258
+ "sku": null,
4259
+ "isSync": true,
4409
4260
  "attributeValues": {
4410
- "marker": {
4411
- "value": "",
4412
- "type": "string",
4261
+ "price": {
4262
+ "type": "integer",
4263
+ "value": "148",
4413
4264
  "position": 1,
4414
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
4415
4278
  }
4416
4279
  },
4417
- "position": 1
4280
+ "isVisible": true,
4281
+ "isPositionLocked": false
4418
4282
  }
4419
4283
  ]
4420
4284
  ```
@@ -4504,51 +4368,49 @@ Example return:
4504
4368
 
4505
4369
  ```json
4506
4370
  {
4507
- "id": 1764,
4371
+ "id": 2,
4508
4372
  "localizeInfos": {
4509
- "title": "Product"
4373
+ "title": "Box"
4510
4374
  },
4511
- "isVisible": true,
4512
- "statusId": 1,
4513
- "relatedIds": [
4514
- 1,
4515
- 2,
4516
- 3
4517
- ],
4518
- "attributeSetId": 7,
4519
- "isSync": true,
4520
- "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,
4521
4384
  "additional": {
4522
4385
  "prices": {
4523
- "min": 0,
4524
- "max": 100
4386
+ "min": 120,
4387
+ "max": 150
4525
4388
  }
4526
4389
  },
4527
- "blocks": [
4528
- null
4529
- ],
4530
- "sku": "0-123",
4531
- "productPages": [
4532
- {
4533
- "id": 8997,
4534
- "pageId": 1176,
4535
- "productId": 8872
4536
- }
4537
- ],
4538
- "statusLocalizeInfos": {
4539
- "title": "Product"
4540
- },
4541
- "templateIdentifier": "my-template",
4542
- "shortDescTemplateIdentifier": "my-template-short",
4390
+ "sku": null,
4391
+ "isSync": true,
4543
4392
  "attributeValues": {
4544
- "marker": {
4545
- "value": "",
4546
- "type": "string",
4393
+ "price": {
4394
+ "type": "integer",
4395
+ "value": "148",
4547
4396
  "position": 1,
4548
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
4549
4410
  }
4550
4411
  },
4551
- "position": 1
4412
+ "isVisible": true,
4413
+ "isPositionLocked": false
4552
4414
  }
4553
4415
  ```
4554
4416
  <details>
@@ -4636,51 +4498,56 @@ Example return:
4636
4498
 
4637
4499
  ```json
4638
4500
  {
4639
- "id": 1764,
4501
+ "id": 3,
4640
4502
  "localizeInfos": {
4641
4503
  "title": "Product"
4642
4504
  },
4643
- "isVisible": true,
4644
- "statusId": 1,
4645
- "relatedIds": [
4646
- 1,
4647
- 2,
4648
- 3
4649
- ],
4650
- "attributeSetId": 7,
4651
- "isSync": true,
4652
- "price": 0,
4505
+ "statusIdentifier": null,
4506
+ "statusLocalizeInfos": {},
4507
+ "attributeSetIdentifier": "products",
4508
+ "position": 1,
4509
+ "templateIdentifier": null,
4510
+ "shortDescTemplateIdentifier": null,
4511
+ "price": 120,
4653
4512
  "additional": {
4654
4513
  "prices": {
4655
- "min": 0,
4656
- "max": 100
4657
- }
4658
- },
4659
- "blocks": [
4660
- null
4661
- ],
4662
- "sku": "0-123",
4663
- "productPages": [
4664
- {
4665
- "id": 8997,
4666
- "pageId": 1176,
4667
- "productId": 8872
4514
+ "min": 120,
4515
+ "max": 150
4668
4516
  }
4669
- ],
4670
- "statusLocalizeInfos": {
4671
- "title": "Product"
4672
4517
  },
4673
- "templateIdentifier": "my-template",
4674
- "shortDescTemplateIdentifier": "my-template-short",
4518
+ "sku": null,
4519
+ "isSync": true,
4675
4520
  "attributeValues": {
4676
- "marker": {
4677
- "value": "",
4678
- "type": "string",
4521
+ "price": {
4522
+ "type": "integer",
4523
+ "value": "120",
4679
4524
  "position": 1,
4680
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
4681
4538
  }
4682
4539
  },
4683
- "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
+ ]
4684
4551
  }
4685
4552
  ```
4686
4553
  <details>
@@ -4770,57 +4637,33 @@ Example return:
4770
4637
  ```json
4771
4638
  [
4772
4639
  {
4773
- "id": 4,
4640
+ "id": 3,
4641
+ "attributeSetIdentifier": null,
4774
4642
  "localizeInfos": {
4775
- "title": "Name"
4643
+ "title": "Product block"
4776
4644
  },
4777
4645
  "version": 0,
4778
- "position": 3,
4779
- "identifier": "product",
4646
+ "position": 1,
4647
+ "identifier": "product_block",
4780
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
+ },
4781
4663
  "templateIdentifier": null,
4782
4664
  "isVisible": true,
4783
- "attributeValues": {
4784
- "attr": {
4785
- "type": "string",
4786
- "value": "",
4787
- "position": 0,
4788
- "isProductPreview": false
4789
- }
4790
- },
4791
- "countElementsPerRow": 3,
4792
- "products": [
4793
- {
4794
- "id": 446,
4795
- "localizeInfos": {
4796
- "title": "new product 3"
4797
- },
4798
- "relatedIds": [1, 2],
4799
- "statusId": null,
4800
- "attributeSetId": 11,
4801
- "position": 3,
4802
- "templateIdentifier": null,
4803
- "shortDescTemplateIdentifier": null,
4804
- "price": 543,
4805
- "sku": "ggg",
4806
- "isSync": true,
4807
- "attributeValues": {
4808
- "sku": {
4809
- "type": "string",
4810
- "value": "ggg",
4811
- "position": 0,
4812
- "isProductPreview": false
4813
- },
4814
- "images": {
4815
- "type": "groupOfImages",
4816
- "value": {},
4817
- "position": 3,
4818
- "isProductPreview": false
4819
- }
4820
- },
4821
- "isVisible": true
4822
- }
4823
- ]
4665
+ "isSync": false,
4666
+ "attributeValues": {}
4824
4667
  }
4825
4668
  ]
4826
4669
  ```
@@ -4888,51 +4731,53 @@ Example return:
4888
4731
  ```json
4889
4732
  [
4890
4733
  {
4891
- "id": 1764,
4734
+ "id": 4,
4892
4735
  "localizeInfos": {
4893
- "title": "Product"
4736
+ "title": "Cosmo"
4894
4737
  },
4895
- "isVisible": true,
4896
- "statusId": 1,
4897
- "relatedIds": [
4898
- 1,
4899
- 2,
4900
- 3
4901
- ],
4902
- "attributeSetId": 7,
4903
- "isSync": true,
4904
- "price": 0,
4738
+ "statusIdentifier": null,
4739
+ "statusLocalizeInfos": {},
4740
+ "attributeSetIdentifier": "products",
4741
+ "position": 1,
4742
+ "templateIdentifier": null,
4743
+ "shortDescTemplateIdentifier": null,
4744
+ "price": 150,
4905
4745
  "additional": {
4906
4746
  "prices": {
4907
- "min": 0,
4908
- "max": 100
4747
+ "min": 120,
4748
+ "max": 150
4909
4749
  }
4910
4750
  },
4911
- "blocks": [
4912
- null
4913
- ],
4914
- "sku": "0-123",
4915
- "productPages": [
4916
- {
4917
- "id": 8997,
4918
- "pageId": 1176,
4919
- "productId": 8872
4920
- }
4921
- ],
4922
- "statusLocalizeInfos": {
4923
- "title": "Product"
4924
- },
4925
- "templateIdentifier": "my-template",
4926
- "shortDescTemplateIdentifier": "my-template-short",
4751
+ "sku": null,
4752
+ "isSync": true,
4927
4753
  "attributeValues": {
4928
- "marker": {
4929
- "value": "",
4930
- "type": "string",
4754
+ "price": {
4755
+ "type": "integer",
4756
+ "value": "150",
4931
4757
  "position": 1,
4932
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
4933
4771
  }
4934
4772
  },
4935
- "position": 1
4773
+ "isVisible": true,
4774
+ "productPages": {
4775
+ "id": 6,
4776
+ "pageId": 2,
4777
+ "productId": 4,
4778
+ "positionId": 229
4779
+ },
4780
+ "blocks": "product_block"
4936
4781
  }
4937
4782
  ]
4938
4783
  ```
@@ -5389,31 +5234,30 @@ Example return:
5389
5234
  ```json
5390
5235
  [
5391
5236
  {
5392
- "id": 1764,
5393
- "updatedDate": "2024-06-13T08:45:59.805Z",
5394
- "version": 10,
5395
- "identifier": "marker",
5237
+ "id": 1,
5238
+ "version": 0,
5239
+ "identifier": "preview-templates",
5396
5240
  "proportion": {
5397
- "horizontal": {
5398
- "height": 200,
5399
- "weight": 10,
5400
- "marker": "horizontal",
5401
- "alignmentType": "left"
5402
- },
5403
5241
  "vertical": {
5404
- "height": 10,
5405
- "weight": 200,
5406
- "marker": "vertical",
5407
- "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"
5408
5252
  },
5409
5253
  "square": {
5410
- "marker": "square",
5411
- "slide": 3,
5412
- "alignmentType": "center"
5254
+ "side": "3",
5255
+ "alignmentType": "middleBottom",
5256
+ "marker": "s"
5413
5257
  }
5414
5258
  },
5415
- "title": "Page template",
5416
- "position": 0
5259
+ "title": "Preview Templates",
5260
+ "position": 1
5417
5261
  }
5418
5262
  ]
5419
5263
  ```
@@ -5424,9 +5268,6 @@ Example return:
5424
5268
  *object identifier* <br>
5425
5269
  example: 1764 <br>
5426
5270
 
5427
- **updatedDate:** string($date-time) <br>
5428
- *object's date of modification* <br>
5429
-
5430
5271
  **version** number <br>
5431
5272
  *object's version number of modification* <br>
5432
5273
  example: 10 <br>
@@ -5466,32 +5307,31 @@ const value = await TemplatePreviews.getTemplatePreviewById(1764)
5466
5307
  Example return:
5467
5308
 
5468
5309
  ```json
5469
- {
5470
- "id": 1764,
5471
- "updatedDate": "2023-12-05T12:44:37.348Z",
5472
- "version": 10,
5473
- "identifier": "marker",
5310
+ {
5311
+ "id": 1,
5312
+ "version": 0,
5313
+ "identifier": "preview-templates",
5474
5314
  "proportion": {
5475
- "horizontal": {
5476
- "height": 200,
5477
- "weight": 10,
5478
- "marker": "horizontal",
5479
- "alignmentType": "left"
5480
- },
5481
5315
  "vertical": {
5482
- "height": 10,
5483
- "weight": 200,
5484
- "marker": "vertical",
5485
- "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"
5486
5326
  },
5487
5327
  "square": {
5488
- "marker": "square",
5489
- "slide": 3,
5490
- "alignmentType": "center"
5328
+ "side": "3",
5329
+ "alignmentType": "middleBottom",
5330
+ "marker": "s"
5491
5331
  }
5492
5332
  },
5493
- "title": "Page Template",
5494
- "positionId": 0
5333
+ "title": "Preview Templates",
5334
+ "position": 1
5495
5335
  }
5496
5336
  ```
5497
5337
  <details>
@@ -5501,9 +5341,6 @@ Example return:
5501
5341
  *object identifier* <br>
5502
5342
  example: 1764 <br>
5503
5343
 
5504
- **updatedDate:** string($date-time) <br>
5505
- *object's date of modification* <br>
5506
-
5507
5344
  **version** number <br>
5508
5345
  *object's version number of modification* <br>
5509
5346
  example: 10 <br>
@@ -5543,31 +5380,30 @@ Example return:
5543
5380
 
5544
5381
  ```json
5545
5382
  {
5546
- "id": 1764,
5547
- "updatedDate": "2023-12-05T12:44:20.008Z",
5548
- "version": 10,
5549
- "identifier": "my-marker",
5383
+ "id": 1,
5384
+ "version": 0,
5385
+ "identifier": "preview-templates",
5550
5386
  "proportion": {
5551
- "horizontal": {
5552
- "height": 200,
5553
- "weight": 10,
5554
- "marker": "horizontal",
5555
- "alignmentType": "left"
5556
- },
5557
5387
  "vertical": {
5558
- "height": 10,
5559
- "weight": 200,
5560
- "marker": "vertical",
5561
- "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"
5562
5398
  },
5563
5399
  "square": {
5564
- "marker": "square",
5565
- "slide": 3,
5566
- "alignmentType": "center"
5400
+ "side": "3",
5401
+ "alignmentType": "middleBottom",
5402
+ "marker": "s"
5567
5403
  }
5568
5404
  },
5569
- "title": "Page Template",
5570
- "positionId": 0
5405
+ "title": "Preview Templates",
5406
+ "position": 1
5571
5407
  }
5572
5408
  ```
5573
5409
  <details>
@@ -5577,9 +5413,6 @@ Example return:
5577
5413
  *object identifier* <br>
5578
5414
  example: 1764 <br>
5579
5415
 
5580
- **updatedDate:** string($date-time) <br>
5581
- *object's date of modification* <br>
5582
-
5583
5416
  **version** number <br>
5584
5417
  *object's version number of modification* <br>
5585
5418
  example: 10 <br>
@@ -5663,7 +5496,7 @@ example: List [ "group_1" ] <br>
5663
5496
  </details>
5664
5497
 
5665
5498
 
5666
- ### Users.getUser(langCode)
5499
+ ### Users.updateUser(langCode)
5667
5500
 
5668
5501
  ```js
5669
5502
  const data = {