oneentry 1.0.63 → 1.0.65

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
@@ -27,19 +27,23 @@ import { defineOneEntry } from 'oneentry'
27
27
  const {
28
28
  Admins,
29
29
  AttributesSets,
30
+ AuthProvider,
30
31
  Blocks,
32
+ Events,
31
33
  Forms,
32
34
  FormData,
33
35
  FileUploading,
34
36
  GeneralTypes,
35
37
  Locales,
36
38
  Menus,
39
+ Orders,
37
40
  Pages,
38
41
  Products,
39
42
  ProductStatuses,
40
43
  System,
41
44
  Templates,
42
- TemplatePreviews
45
+ TemplatePreviews,
46
+ Users
43
47
  } = defineOneEntry('your-url');
44
48
  ```
45
49
 
@@ -51,7 +55,7 @@ const api = defineOneEntry('your-url');
51
55
 
52
56
  The second parameter of the function takes a configuration object with the keys "token", "langCode" and "multipleResponse".
53
57
  Set the token key if your project secure "Security API Token"
54
-
58
+ If your project uses user authorization, pass the user access token to the "userToken" variable to use methods that require authorization.
55
59
  Set the "langCode" to set the default language. By specifying this parameter once, you don't have to pass the langCode to the methods ONEENTRY API. If you have not passed the default language, it will be set "en_US"
56
60
  Some methods use more than one request to the CMS so that the data you receive is complete and easy to work with. Pass the value "false" for this parameter to save traffic and decide for yourself what data you need. The default value "true"
57
61
 
@@ -70,12 +74,19 @@ You can also connect a tls certificate to protect your project. In this case, do
70
74
 
71
75
 
72
76
  ```js
73
- const api = defineOneEntry('your-url', {token: 'my-token', langCode:'my-langCode'})
77
+ const api = defineOneEntry('your-url', {
78
+ token: 'my-token',
79
+ userToken: 'user.token',
80
+ langCode:'my-langCode',
81
+ })
74
82
  ```
83
+
75
84
  Now you can use the following links to jump to specific entries:
76
85
  - [Admins](#admins)
77
86
  - [AttributesSets](#attributessets)
87
+ - [AuthProvider](#authprovider)
78
88
  - [Blocks](#blocks)
89
+ - [Events](#events)
79
90
  - [Forms](#forms)
80
91
  - [FormData](#formdata)
81
92
  - [FileUploading](#fileuploading)
@@ -90,6 +101,7 @@ Now you can use the following links to jump to specific entries:
90
101
  - [System](#system)
91
102
  - [Templates](#templates)
92
103
  - [TemplatePreviews](#templatepreviews)
104
+ - [Users](#users)
93
105
 
94
106
 
95
107
  ## <h2 id="admins"> Admins </h2>
@@ -329,7 +341,7 @@ example: List [ OrderedMap { "title": "red", "value": 1, "position": 1, "extende
329
341
  ---
330
342
 
331
343
 
332
- ## <h2 id="blocks"> User Auth Provider </h2>
344
+ ## <h2 id="authprovider"> User Auth Provider </h2>
333
345
 
334
346
  ```js
335
347
  const { AuthProvider } = defineOneEntry('your-url');
@@ -366,7 +378,7 @@ const data = {
366
378
  }
367
379
  }
368
380
 
369
- const value = await AuthProvider.getBlocks('en_US', 0, 30)
381
+ const value = await AuthProvider.signUp('email', data)
370
382
  ```
371
383
 
372
384
  > This method will register a new user. Returns the registered user's object.
@@ -503,10 +515,23 @@ Example return:
503
515
  true
504
516
  ```
505
517
 
506
- ### AuthProvider.auth(marker, login, password)
518
+ ### AuthProvider.auth(marker, data)
507
519
 
508
520
  ```js
509
- const value = await AuthProvider.auth('email', 'test@trer.com', '123456')
521
+ const data = {
522
+ authData: [
523
+ {
524
+ marker: "login",
525
+ value: "user@gmail.com"
526
+ },
527
+ {
528
+ marker: "password",
529
+ value: "12345"
530
+ }
531
+ ]
532
+ }
533
+
534
+ const value = await AuthProvider.auth('email', data)
510
535
  ```
511
536
 
512
537
  > This method performs user authorization. Returns an object with a set of tokens.
@@ -691,9 +716,7 @@ Example return:
691
716
  {
692
717
  "id": 1764,
693
718
  "localizeInfos": {
694
- "en_US": {
695
719
  "title": "My block"
696
- }
697
720
  },
698
721
  "version": 10,
699
722
  "identifier": "catalog",
@@ -1035,7 +1058,30 @@ Example return:
1035
1058
  ]
1036
1059
  ```
1037
1060
 
1038
- ## <h2 id="fileuploading"> Events </h2>
1061
+ ### Blocks.searchBlock(name, langCode)
1062
+
1063
+ ```js
1064
+ const value = await Blocks.searchBlock('my-marker', 'en_US')
1065
+ ```
1066
+
1067
+ > Quick search for block objects with limited output.
1068
+
1069
+ Example return:
1070
+
1071
+ ```json
1072
+ [
1073
+ {
1074
+ "id": 1,
1075
+ "name": "my block",
1076
+ "identifier": "my-block"
1077
+ }
1078
+ ]
1079
+ ```
1080
+
1081
+
1082
+ ---
1083
+
1084
+ ## <h2 id="events"> Events </h2>
1039
1085
 
1040
1086
  ```js
1041
1087
  const { Events } = defineOneEntry('your-url');
@@ -1836,7 +1882,7 @@ const { Orders } = defineOneEntry('your-url');
1836
1882
  ### Orders.getOrderByMarker(marker, langCode)
1837
1883
 
1838
1884
  ```js
1839
- const value = await Pages.getOrderByMarker('my-order', 'en_US')
1885
+ const value = await Orders.getOrderByMarker('my-order', 'en_US')
1840
1886
  ```
1841
1887
 
1842
1888
  > This method retrieves one order storage object by marker.
@@ -1895,8 +1941,7 @@ example: [{ "identifier": "p1" }] <br>
1895
1941
  "formIdentifier": "order_form",
1896
1942
  "paymentAccountIdentifier": "stripe",
1897
1943
  "currency": "USD",
1898
- "formData": {
1899
- "en_US": [
1944
+ "formData": [
1900
1945
  {
1901
1946
  "marker": "name_order",
1902
1947
  "value": "Alex"
@@ -1909,8 +1954,7 @@ example: [{ "identifier": "p1" }] <br>
1909
1954
  "marker": "email_order",
1910
1955
  "value": "example@oneentry.cloud"
1911
1956
  }
1912
- ]
1913
- },
1957
+ ],
1914
1958
  "products": [
1915
1959
  {
1916
1960
  "productId": 444,
@@ -1925,7 +1969,7 @@ example: [{ "identifier": "p1" }] <br>
1925
1969
  ]
1926
1970
  }
1927
1971
 
1928
- const value = await Pages.createOrder('my-order', body)
1972
+ const value = await Orders.createOrder('my-order', body)
1929
1973
  ```
1930
1974
 
1931
1975
  > This method retrieves one order storage object by marker. The method will add the default language to the request body. If you want to change the language, just pass it with the second argument
@@ -2016,61 +2060,161 @@ example: payment-1 <br>
2016
2060
  example: { "title": "Account 1" } <br>
2017
2061
  </details>
2018
2062
 
2019
- ---
2020
2063
 
2064
+ ### Orders.updateOrderByMarkerAndId(marker, data, langCode)
2021
2065
 
2066
+ ```js
2067
+ const body = {
2068
+ "formIdentifier": "order_form",
2069
+ "paymentAccountIdentifier": "stripe",
2070
+ "currency": "USD",
2071
+ "formData": [
2072
+ {
2073
+ "marker": "name_order",
2074
+ "value": "Alex"
2075
+ },
2076
+ {
2077
+ "marker": "phone_order",
2078
+ "value": "+19999999999"
2079
+ },
2080
+ {
2081
+ "marker": "email_order",
2082
+ "value": "example@oneentry.cloud"
2083
+ }
2084
+ ],
2085
+ "products": [
2086
+ {
2087
+ "productId": 444,
2088
+ "quantity": 1,
2089
+ "price": "0.1"
2090
+ },
2091
+ {
2092
+ "productId": 446,
2093
+ "quantity": 3,
2094
+ "price": "123"
2095
+ }
2096
+ ]
2097
+ }
2022
2098
 
2023
- ## <h2 id="pages"> Pages </h2>
2099
+ const value = await Orders.updateOrderByMarkerAndId('my-order', body)
2100
+ ```
2024
2101
 
2102
+ > This method update one order storage object by marker. The method will add the default language to the request body. If you want to change the language, just pass it with the second argument
2025
2103
 
2026
- ```js
2027
- const { Pages } = defineOneEntry('your-url');
2104
+ Example return:
2105
+ ```json
2106
+ {
2107
+ "id": 17,
2108
+ "statusIdentifier": "inprogress",
2109
+ "formIdentifier": "order-form",
2110
+ "paymentIdentifier": "payment-1",
2111
+ "formData": [
2112
+ {
2113
+ "marker": "name_1",
2114
+ "value": "Name"
2115
+ }
2116
+ ],
2117
+ "products": [
2118
+ {
2119
+ "id": 1,
2120
+ "title": "Floorwood Maxima Laminate, 9811 Oak Mistral",
2121
+ "sku": null,
2122
+ "price": "1.00",
2123
+ "quantity": 10,
2124
+ "previewImage": [
2125
+ {
2126
+ "filename": "files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2127
+ "downloadLink": "http://my-site.com/files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2128
+ "size": 296391,
2129
+ "previewLink": ""
2130
+ }
2131
+ ]
2132
+ }
2133
+ ],
2134
+ "totalSum": "12.00",
2135
+ "currency": "USD",
2136
+ "createdDate": "2023-01-01 12:12",
2137
+ "paymentAccountIdentifier": "payment-1",
2138
+ "paymentAccountLocalizeInfos": {
2139
+ "title": "Account 1"
2140
+ }
2141
+ }
2028
2142
  ```
2143
+ <details>
2144
+ <summary>Schema</summary>
2029
2145
 
2030
- ### Pages.getRootPages(langCode)
2146
+ **statusIdentifier:** string <br>
2147
+ *text identifier of the order status* <br>
2148
+ example: inprogress <br>
2149
+
2150
+ **formIdentifier:** string <br>
2151
+ *text identifier of the form status* <br>
2152
+ example: order-form <br>
2153
+
2154
+ **paymentIdentifier** string <br>
2155
+ *text identifier of the order payment* <br>
2156
+ example: payment-1 <br>
2157
+
2158
+ **formData** FormDataType <br>
2159
+ *data submitted by the form linked to the order store* <br>
2160
+ example: [{ "marker": "name_1", "value": "Name" } ] <br>
2161
+
2162
+ **products** Record<string, string | any>[] <br>
2163
+ *array of products added to order* <br>
2164
+
2165
+ **totalSum** string <br>
2166
+ *total order amount* <br>
2167
+ example: 12.00 <br>
2168
+
2169
+ **currency** string <br>
2170
+ *currency used to pay for the order* <br>
2171
+ example: USD <br>
2172
+
2173
+ **createdDate** string <br>
2174
+ *date when the order was created* <br>
2175
+ example: 2023-01-01 12:12 <br>
2176
+
2177
+ **price** number <br>
2178
+ *price of the product per unit (at the time of ordering)* <br>
2179
+ example: 20.00 <br>
2180
+
2181
+ **paymentAccountIdentifier** string <br>
2182
+ *textual identifier for the order payment* <br>
2183
+ example: payment-1 <br>
2184
+
2185
+ **paymentAccountLocalizeInfos** CommonLocalizeInfos <br>
2186
+ *payment account name considering localization* <br>
2187
+ example: { "title": "Account 1" } <br>
2188
+ </details>
2189
+
2190
+
2191
+ ### Orders.getAllOrders(langCode, limit, offset)
2031
2192
 
2032
2193
  ```js
2033
- const value = await Pages.getRootPages('en_US')
2194
+ const value = await Orders.getAllOrders()
2034
2195
  ```
2035
2196
 
2036
- > This method retrieves all top-level page objects from the API. It returns a Promise that resolves to an array of ContentIndexedPageDto objects or an empty array [] if there is no data. Get required language parameter.
2197
+ > This method getting all the order storage objects. The method will add the default language to the request body. If you want to change the language, just pass it with the second argument
2037
2198
 
2038
2199
  Example return:
2039
-
2040
2200
  ```json
2041
2201
  [
2042
2202
  {
2043
- "id": 1764,
2044
- "parentId": null,
2045
- "config": {
2046
- "rowsPerPage": 1,
2047
- "productsPerRow": 1
2048
- },
2049
- "pageUrl": "string",
2050
- "depth": 3,
2051
- "localizeInfos": {
2052
- "title": "Catalog",
2053
- "content": "Content for catalog",
2054
- "menuTitle": "Catalog"
2055
- },
2056
- "isVisible": true,
2057
- "products": 0,
2058
- "attributeSetId": 7,
2059
- "isSync": false,
2060
- "templateIdentifier": "my-template",
2061
- "attributeValues": {
2062
- "marker": {
2063
- "value": "",
2064
- "type": "string"
2065
- }
2066
- },
2067
- "position": 192,
2068
- "type": "forNewsPage",
2069
- "childrenCount": 0
2203
+ "id": 1764,
2204
+ "localizeInfos": {
2205
+ "title": "Order 1"
2206
+ },
2207
+ "identifier": "catalog",
2208
+ "generalTypeId": 4,
2209
+ "formIdentifier": "catalog-form",
2210
+ "paymentAccountIdentifiers": [
2211
+ {
2212
+ "identifier": "p1"
2213
+ }
2214
+ ]
2070
2215
  }
2071
2216
  ]
2072
2217
  ```
2073
-
2074
2218
  <details>
2075
2219
  <summary>Schema</summary>
2076
2220
 
@@ -2078,71 +2222,257 @@ Example return:
2078
2222
  *object identifier* <br>
2079
2223
  example: 1764 <br>
2080
2224
 
2081
- **parentId** number <br>
2082
- *parent page identifier, if null, it is a top-level page* <br>
2083
- example: null <br>
2084
-
2085
- **config** Record<string, number> <br>
2086
- *output settings for catalog pages* <br>
2087
- example: OrderedMap { "rowsPerPage": 1, "productsPerRow": 1 } <br>
2088
-
2089
- **pageUrl** string <br>
2090
- *unique page URL* <br>
2091
-
2092
- **depth** number <br>
2093
- *page nesting depth relative to parentId* <br>
2094
- example: 3 <br>
2095
-
2096
2225
  **localizeInfos:** Record<string, any> <br>
2097
2226
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
2098
2227
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
2099
2228
 
2100
- **isVisible:** boolean <br>
2101
- *Page visibility flag* <br>
2102
- example: true <br>
2103
-
2104
- **products** number <br>
2105
- *Number of products linked to the page* <br>
2106
- example: 0 <br>
2107
-
2108
- **attributeSetId:** number <br>
2109
- *attribute set identifier* <br>
2110
- example: 7 <br>
2111
-
2112
- **forms** <br>
2113
- *Array of FormEntity object identifier values linked to the page (optional)* <br>
2114
-
2229
+ **identifier** string <br>
2230
+ *textual identifier for the record field* <br>
2231
+ example: catalog <br>
2115
2232
 
2116
- **blocks** <br>
2117
- *Array of BlockEntity object identifier values linked to the page (optional)* <br>
2233
+ **generalTypeId** number <br>
2234
+ *type identifier* <br>
2235
+ example: 4 <br>
2118
2236
 
2237
+ **formIdentifier** string <br>
2238
+ *textual identifier for the form used by the order storage* <br>
2239
+ example: catalog-form <br>
2119
2240
 
2120
- **isSync:** boolean <br>
2121
- *indicator of page indexing (true or false)* <br>
2122
- example: false <br>
2241
+ **paymentAccountIdentifiers** Array<{identifier:string} <br>
2242
+ *array of textual identifiers of payment accounts used by the order storage* <br>
2243
+ example: [{ "identifier": "p1" }] <br>
2123
2244
 
2124
- **templateIdentifier:** string <br>
2125
- *Custom identifier of the linked template* <br>
2126
- example: my-template <br>
2245
+ </details>
2127
2246
 
2128
- **attributeValues:** Record<string, string> <br>
2129
- *Array of attribute values from the index (presented as a pair of custom attribute identifier: attribute value)* <br>
2130
- example: OrderedMap { "en_US": OrderedMap { "marker": OrderedMap { "value": "", "type": "string" } } } <br>
2131
2247
 
2132
- **position:** number <br>
2133
- *position number for sorting (optional)* <br>
2134
- example: 192 <br>
2248
+ ### Orders.getAllOrdersByMarker(marker, langCode)
2135
2249
 
2136
- **type:** string <br>
2137
- *Page type* <br>
2138
- example: forNewsPage <br>
2139
- Enum:
2140
- [ forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, service ] <br>
2250
+ ```js
2251
+ const value = await Orders.getAllOrdersByMarker('my-order')
2252
+ ```
2141
2253
 
2254
+ > This method getting all order storage object by marker. The method will add the default language to the request body. If you want to change the language, just pass it with the second argument
2142
2255
 
2143
- **childrenCount:** number <br>
2144
- *number of nested pages* <br>
2145
- example: 0 <br>
2256
+ Example return:
2257
+ ```json
2258
+ {
2259
+ "id": 17,
2260
+ "statusIdentifier": "inprogress",
2261
+ "formIdentifier": "order-form",
2262
+ "paymentIdentifier": "payment-1",
2263
+ "formData": [
2264
+ {
2265
+ "marker": "name_1",
2266
+ "value": "Name"
2267
+ }
2268
+ ],
2269
+ "products": [
2270
+ {
2271
+ "id": 1,
2272
+ "title": "Floorwood Maxima Laminate, 9811 Oak Mistral",
2273
+ "sku": null,
2274
+ "price": "1.00",
2275
+ "quantity": 10,
2276
+ "previewImage": [
2277
+ {
2278
+ "filename": "files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2279
+ "downloadLink": "http://my-site.com/files/project/page/36/image/20240322_77c83b02-4c82-4bea-80eb-3763c469b00e.jpg",
2280
+ "size": 296391,
2281
+ "previewLink": ""
2282
+ }
2283
+ ]
2284
+ }
2285
+ ],
2286
+ "totalSum": "12.00",
2287
+ "currency": "USD",
2288
+ "createdDate": "2023-01-01 12:12",
2289
+ "price": 20,
2290
+ "paymentAccountIdentifier": "payment-1",
2291
+ "paymentAccountLocalizeInfos": {
2292
+ "title": "Account 1"
2293
+ },
2294
+ "isHistory": true
2295
+ }
2296
+ ```
2297
+ <details>
2298
+ <summary>Schema</summary>
2299
+
2300
+ **statusIdentifier:** string <br>
2301
+ *text identifier of the order status* <br>
2302
+ example: inprogress <br>
2303
+
2304
+ **formIdentifier:** string <br>
2305
+ *text identifier of the form status* <br>
2306
+ example: order-form <br>
2307
+
2308
+ **paymentIdentifier** string <br>
2309
+ *text identifier of the order payment* <br>
2310
+ example: payment-1 <br>
2311
+
2312
+ **formData** FormDataType <br>
2313
+ *data submitted by the form linked to the order store* <br>
2314
+ example: [{ "marker": "name_1", "value": "Name" } ] <br>
2315
+
2316
+ **products** Record<string, string | any>[] <br>
2317
+ *array of products added to order* <br>
2318
+
2319
+ **totalSum** string <br>
2320
+ *total order amount* <br>
2321
+ example: 12.00 <br>
2322
+
2323
+ **currency** string <br>
2324
+ *currency used to pay for the order* <br>
2325
+ example: USD <br>
2326
+
2327
+ **createdDate** string <br>
2328
+ *date when the order was created* <br>
2329
+ example: 2023-01-01 12:12 <br>
2330
+
2331
+ **price** number <br>
2332
+ *price of the product per unit (at the time of ordering)* <br>
2333
+ example: 20.00 <br>
2334
+
2335
+ **paymentAccountIdentifier** string <br>
2336
+ *textual identifier for the order payment* <br>
2337
+ example: payment-1 <br>
2338
+
2339
+ **paymentAccountLocalizeInfos** CommonLocalizeInfos <br>
2340
+ *payment account name considering localization* <br>
2341
+ example: { "title": "Account 1" } <br>
2342
+
2343
+ **isHistory** boolean <br>
2344
+ *indicates that the order has been saved in the order history* <br>
2345
+ example: true <br>
2346
+ </details>
2347
+
2348
+
2349
+ ---
2350
+
2351
+
2352
+
2353
+ ## <h2 id="pages"> Pages </h2>
2354
+
2355
+
2356
+ ```js
2357
+ const { Pages } = defineOneEntry('your-url');
2358
+ ```
2359
+
2360
+ ### Pages.getRootPages(langCode)
2361
+
2362
+ ```js
2363
+ const value = await Pages.getRootPages('en_US')
2364
+ ```
2365
+
2366
+ > This method retrieves all top-level page objects from the API. It returns a Promise that resolves to an array of ContentIndexedPageDto objects or an empty array [] if there is no data. Get required language parameter.
2367
+
2368
+ Example return:
2369
+
2370
+ ```json
2371
+ [
2372
+ {
2373
+ "id": 1764,
2374
+ "parentId": null,
2375
+ "config": {
2376
+ "rowsPerPage": 1,
2377
+ "productsPerRow": 1
2378
+ },
2379
+ "pageUrl": "string",
2380
+ "depth": 3,
2381
+ "localizeInfos": {
2382
+ "title": "Catalog",
2383
+ "content": "Content for catalog",
2384
+ "menuTitle": "Catalog"
2385
+ },
2386
+ "isVisible": true,
2387
+ "products": 0,
2388
+ "attributeSetId": 7,
2389
+ "isSync": false,
2390
+ "templateIdentifier": "my-template",
2391
+ "attributeValues": {
2392
+ "marker": {
2393
+ "value": "",
2394
+ "type": "string"
2395
+ }
2396
+ },
2397
+ "position": 192,
2398
+ "type": "forNewsPage",
2399
+ "childrenCount": 0
2400
+ }
2401
+ ]
2402
+ ```
2403
+
2404
+ <details>
2405
+ <summary>Schema</summary>
2406
+
2407
+ **id:** number <br>
2408
+ *object identifier* <br>
2409
+ example: 1764 <br>
2410
+
2411
+ **parentId** number <br>
2412
+ *parent page identifier, if null, it is a top-level page* <br>
2413
+ example: null <br>
2414
+
2415
+ **config** Record<string, number> <br>
2416
+ *output settings for catalog pages* <br>
2417
+ example: OrderedMap { "rowsPerPage": 1, "productsPerRow": 1 } <br>
2418
+
2419
+ **pageUrl** string <br>
2420
+ *unique page URL* <br>
2421
+
2422
+ **depth** number <br>
2423
+ *page nesting depth relative to parentId* <br>
2424
+ example: 3 <br>
2425
+
2426
+ **localizeInfos:** Record<string, any> <br>
2427
+ *json description of the main page data object taking into account the language "en_US" (for example)* <br>
2428
+ example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
2429
+
2430
+ **isVisible:** boolean <br>
2431
+ *Page visibility flag* <br>
2432
+ example: true <br>
2433
+
2434
+ **products** number <br>
2435
+ *Number of products linked to the page* <br>
2436
+ example: 0 <br>
2437
+
2438
+ **attributeSetId:** number <br>
2439
+ *attribute set identifier* <br>
2440
+ example: 7 <br>
2441
+
2442
+ **forms** <br>
2443
+ *Array of FormEntity object identifier values linked to the page (optional)* <br>
2444
+
2445
+
2446
+ **blocks** <br>
2447
+ *Array of BlockEntity object identifier values linked to the page (optional)* <br>
2448
+
2449
+
2450
+ **isSync:** boolean <br>
2451
+ *indicator of page indexing (true or false)* <br>
2452
+ example: false <br>
2453
+
2454
+ **templateIdentifier:** string <br>
2455
+ *Custom identifier of the linked template* <br>
2456
+ example: my-template <br>
2457
+
2458
+ **attributeValues:** Record<string, string> <br>
2459
+ *Array of attribute values from the index (presented as a pair of custom attribute identifier: attribute value)* <br>
2460
+ example: OrderedMap { "en_US": OrderedMap { "marker": OrderedMap { "value": "", "type": "string" } } } <br>
2461
+
2462
+ **position:** number <br>
2463
+ *position number for sorting (optional)* <br>
2464
+ example: 192 <br>
2465
+
2466
+ **type:** string <br>
2467
+ *Page type* <br>
2468
+ example: forNewsPage <br>
2469
+ Enum:
2470
+ [ forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, service ] <br>
2471
+
2472
+
2473
+ **childrenCount:** number <br>
2474
+ *number of nested pages* <br>
2475
+ example: 0 <br>
2146
2476
 
2147
2477
  </details>
2148
2478
 
@@ -3554,32 +3884,53 @@ Example return:
3554
3884
 
3555
3885
  ```json
3556
3886
  [
3557
- {
3558
- "id": 1764,
3559
- "localizeInfos": {
3560
- "title": "Product"
3561
- },
3562
- "isVisible": true,
3563
- "statusId": 1,
3564
- "relatedIds": [
3565
- 1,
3566
- 2,
3567
- 3
3568
- ],
3569
- "attributeSetId": 7,
3570
- "isSync": true,
3571
- "price": 0,
3572
- "templateIdentifier": "my-template",
3573
- "sku": "0-123",
3574
- "shortDescTemplateIdentifier": "my-template-short",
3575
- "attributeValues": {
3887
+ {
3888
+ "id": 1764,
3889
+ "localizeInfos": {
3890
+ "title": "Product"
3891
+ },
3892
+ "isVisible": true,
3893
+ "statusId": 1,
3894
+ "relatedIds": [
3895
+ 1,
3896
+ 2,
3897
+ 3
3898
+ ],
3899
+ "attributeSetId": 7,
3900
+ "isSync": true,
3901
+ "price": 0,
3902
+ "additional": {
3903
+ "prices": {
3904
+ "min": 0,
3905
+ "max": 100
3906
+ }
3907
+ },
3908
+ "blocks": [
3909
+ null
3910
+ ],
3911
+ "sku": "0-123",
3912
+ "productPages": [
3913
+ {
3914
+ "id": 8997,
3915
+ "pageId": 1176,
3916
+ "productId": 8872
3917
+ }
3918
+ ],
3919
+ "statusLocalizeInfos": {
3920
+ "title": "Product"
3921
+ },
3922
+ "templateIdentifier": "my-template",
3923
+ "shortDescTemplateIdentifier": "my-template-short",
3924
+ "attributeValues": {
3576
3925
  "marker": {
3577
3926
  "value": "",
3578
- "type": "string"
3579
- }
3580
- },
3581
- "position": 1
3582
- }
3927
+ "type": "string",
3928
+ "position": 1,
3929
+ "isProductPreview": false
3930
+ }
3931
+ },
3932
+ "position": 1
3933
+ }
3583
3934
  ]
3584
3935
  ```
3585
3936
 
@@ -3590,6 +3941,14 @@ Example return:
3590
3941
  *object identifier* <br>
3591
3942
  example: 1764 <br>
3592
3943
 
3944
+ **additional:** Record<string, any> <br>
3945
+ *additional value from the index* <br>
3946
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
3947
+
3948
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
3949
+ *json description of the item status object, taking into account the language* <br>
3950
+ example: { "title": "Product" <br>
3951
+
3593
3952
  **localizeInfos:** Record<string, any> <br>
3594
3953
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
3595
3954
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -3657,33 +4016,53 @@ Example return:
3657
4016
 
3658
4017
  ```json
3659
4018
  [
3660
- {
3661
- "id": 1764,
3662
- "localizeInfos": {
3663
- "title": "Product"
3664
- },
3665
- "isVisible": true,
3666
- "statusId": 1,
3667
- "relatedIds": [
3668
- 1,
3669
- 2,
3670
- 3
3671
- ],
3672
- "attributeSetId": 7,
3673
- "blocks": ["product_block"],
3674
- "isSync": true,
3675
- "price": 0,
3676
- "templateIdentifier": "my-template",
3677
- "shortDescTemplateIdentifier": "my-template-short",
3678
- "sku": "0-123",
3679
- "attributeValues": {
3680
- "marker": {
3681
- "value": "",
3682
- "type": "string"
3683
- }
3684
- },
3685
- "position": 1
3686
- }
4019
+ {
4020
+ "id": 1764,
4021
+ "localizeInfos": {
4022
+ "title": "Product"
4023
+ },
4024
+ "isVisible": true,
4025
+ "statusId": 1,
4026
+ "relatedIds": [
4027
+ 1,
4028
+ 2,
4029
+ 3
4030
+ ],
4031
+ "attributeSetId": 7,
4032
+ "isSync": true,
4033
+ "price": 0,
4034
+ "additional": {
4035
+ "prices": {
4036
+ "min": 0,
4037
+ "max": 100
4038
+ }
4039
+ },
4040
+ "blocks": [
4041
+ null
4042
+ ],
4043
+ "sku": "0-123",
4044
+ "productPages": [
4045
+ {
4046
+ "id": 8997,
4047
+ "pageId": 1176,
4048
+ "productId": 8872
4049
+ }
4050
+ ],
4051
+ "statusLocalizeInfos": {
4052
+ "title": "Product"
4053
+ },
4054
+ "templateIdentifier": "my-template",
4055
+ "shortDescTemplateIdentifier": "my-template-short",
4056
+ "attributeValues": {
4057
+ "marker": {
4058
+ "value": "",
4059
+ "type": "string",
4060
+ "position": 1,
4061
+ "isProductPreview": false
4062
+ }
4063
+ },
4064
+ "position": 1
4065
+ }
3687
4066
  ]
3688
4067
  ```
3689
4068
  <details>
@@ -3693,6 +4072,14 @@ Example return:
3693
4072
  *object identifier* <br>
3694
4073
  example: 1764 <br>
3695
4074
 
4075
+ **additional:** Record<string, any> <br>
4076
+ *additional value from the index* <br>
4077
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4078
+
4079
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4080
+ *json description of the item status object, taking into account the language* <br>
4081
+ example: { "title": "Product" <br>
4082
+
3696
4083
  **localizeInfos:** Record<string, any> <br>
3697
4084
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
3698
4085
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -3775,6 +4162,19 @@ Example return:
3775
4162
  2,
3776
4163
  3
3777
4164
  ],
4165
+ "attributeSetId": 7,
4166
+ "isSync": true,
4167
+ "price": 0,
4168
+ "additional": {
4169
+ "prices": {
4170
+ "min": 0,
4171
+ "max": 100
4172
+ }
4173
+ },
4174
+ "blocks": [
4175
+ null
4176
+ ],
4177
+ "sku": "0-123",
3778
4178
  "productPages": [
3779
4179
  {
3780
4180
  "id": 8997,
@@ -3782,18 +4182,17 @@ Example return:
3782
4182
  "productId": 8872
3783
4183
  }
3784
4184
  ],
3785
- "attributeSetId": 7,
3786
- "blocks": ["product_block"],
3787
- "version": 10,
3788
- "isSync": 0,
3789
- "price": 0,
4185
+ "statusLocalizeInfos": {
4186
+ "title": "Product"
4187
+ },
3790
4188
  "templateIdentifier": "my-template",
3791
4189
  "shortDescTemplateIdentifier": "my-template-short",
3792
- "sku": "0-123",
3793
4190
  "attributeValues": {
3794
4191
  "marker": {
3795
4192
  "value": "",
3796
- "type": "string"
4193
+ "type": "string",
4194
+ "position": 1,
4195
+ "isProductPreview": false
3797
4196
  }
3798
4197
  },
3799
4198
  "position": 1
@@ -3806,6 +4205,14 @@ Example return:
3806
4205
  *object identifier* <br>
3807
4206
  example: 1764 <br>
3808
4207
 
4208
+ **additional:** Record<string, any> <br>
4209
+ *additional value from the index* <br>
4210
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4211
+
4212
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4213
+ *json description of the item status object, taking into account the language* <br>
4214
+ example: { "title": "Product" <br>
4215
+
3809
4216
  **localizeInfos:** Record<string, any> <br>
3810
4217
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
3811
4218
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -3887,6 +4294,19 @@ Example return:
3887
4294
  2,
3888
4295
  3
3889
4296
  ],
4297
+ "attributeSetId": 7,
4298
+ "isSync": true,
4299
+ "price": 0,
4300
+ "additional": {
4301
+ "prices": {
4302
+ "min": 0,
4303
+ "max": 100
4304
+ }
4305
+ },
4306
+ "blocks": [
4307
+ null
4308
+ ],
4309
+ "sku": "0-123",
3890
4310
  "productPages": [
3891
4311
  {
3892
4312
  "id": 8997,
@@ -3894,18 +4314,17 @@ Example return:
3894
4314
  "productId": 8872
3895
4315
  }
3896
4316
  ],
3897
- "attributeSetId": 7,
3898
- "blocks": ["product_block"],
3899
- "version": 10,
3900
- "isSync": 0,
3901
- "price": 0,
4317
+ "statusLocalizeInfos": {
4318
+ "title": "Product"
4319
+ },
3902
4320
  "templateIdentifier": "my-template",
3903
4321
  "shortDescTemplateIdentifier": "my-template-short",
3904
- "sku": "0-123",
3905
4322
  "attributeValues": {
3906
4323
  "marker": {
3907
4324
  "value": "",
3908
- "type": "string"
4325
+ "type": "string",
4326
+ "position": 1,
4327
+ "isProductPreview": false
3909
4328
  }
3910
4329
  },
3911
4330
  "position": 1
@@ -3918,6 +4337,15 @@ Example return:
3918
4337
  *object identifier* <br>
3919
4338
  example: 1764 <br>
3920
4339
 
4340
+ **additional:** Record<string, any> <br>
4341
+ *additional value from the index* <br>
4342
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4343
+
4344
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4345
+ *json description of the item status object, taking into account the language* <br>
4346
+ example: { "title": "Product" <br>
4347
+
4348
+
3921
4349
  **localizeInfos:** Record<string, any> <br>
3922
4350
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
3923
4351
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -4000,16 +4428,36 @@ Example return:
4000
4428
  3
4001
4429
  ],
4002
4430
  "attributeSetId": 7,
4003
- "blocks": ["product_block"],
4004
4431
  "isSync": true,
4005
4432
  "price": 0,
4433
+ "additional": {
4434
+ "prices": {
4435
+ "min": 0,
4436
+ "max": 100
4437
+ }
4438
+ },
4439
+ "blocks": [
4440
+ null
4441
+ ],
4442
+ "sku": "0-123",
4443
+ "productPages": [
4444
+ {
4445
+ "id": 8997,
4446
+ "pageId": 1176,
4447
+ "productId": 8872
4448
+ }
4449
+ ],
4450
+ "statusLocalizeInfos": {
4451
+ "title": "Product"
4452
+ },
4006
4453
  "templateIdentifier": "my-template",
4007
4454
  "shortDescTemplateIdentifier": "my-template-short",
4008
- "sku": "0-123",
4009
4455
  "attributeValues": {
4010
4456
  "marker": {
4011
4457
  "value": "",
4012
- "type": "string"
4458
+ "type": "string",
4459
+ "position": 1,
4460
+ "isProductPreview": false
4013
4461
  }
4014
4462
  },
4015
4463
  "position": 1
@@ -4022,6 +4470,14 @@ Example return:
4022
4470
  *object identifier* <br>
4023
4471
  example: 1764 <br>
4024
4472
 
4473
+ **additional:** Record<string, any> <br>
4474
+ *additional value from the index* <br>
4475
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4476
+
4477
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4478
+ *json description of the item status object, taking into account the language* <br>
4479
+ example: { "title": "Product" <br>
4480
+
4025
4481
  **localizeInfos:** Record<string, any> <br>
4026
4482
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4027
4483
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -4104,16 +4560,36 @@ Example return:
4104
4560
  3
4105
4561
  ],
4106
4562
  "attributeSetId": 7,
4107
- "blocks": ["product_block"],
4108
4563
  "isSync": true,
4109
4564
  "price": 0,
4565
+ "additional": {
4566
+ "prices": {
4567
+ "min": 0,
4568
+ "max": 100
4569
+ }
4570
+ },
4571
+ "blocks": [
4572
+ null
4573
+ ],
4574
+ "sku": "0-123",
4575
+ "productPages": [
4576
+ {
4577
+ "id": 8997,
4578
+ "pageId": 1176,
4579
+ "productId": 8872
4580
+ }
4581
+ ],
4582
+ "statusLocalizeInfos": {
4583
+ "title": "Product"
4584
+ },
4110
4585
  "templateIdentifier": "my-template",
4111
4586
  "shortDescTemplateIdentifier": "my-template-short",
4112
- "sku": "0-123",
4113
4587
  "attributeValues": {
4114
4588
  "marker": {
4115
4589
  "value": "",
4116
- "type": "string"
4590
+ "type": "string",
4591
+ "position": 1,
4592
+ "isProductPreview": false
4117
4593
  }
4118
4594
  },
4119
4595
  "position": 1
@@ -4126,6 +4602,14 @@ Example return:
4126
4602
  *object identifier* <br>
4127
4603
  example: 1764 <br>
4128
4604
 
4605
+ **additional:** Record<string, any> <br>
4606
+ *additional value from the index* <br>
4607
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4608
+
4609
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4610
+ *json description of the item status object, taking into account the language* <br>
4611
+ example: { "title": "Product" <br>
4612
+
4129
4613
  **localizeInfos:** Record<string, any> <br>
4130
4614
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4131
4615
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -4233,6 +4717,19 @@ Example return:
4233
4717
  2,
4234
4718
  3
4235
4719
  ],
4720
+ "attributeSetId": 7,
4721
+ "isSync": true,
4722
+ "price": 0,
4723
+ "additional": {
4724
+ "prices": {
4725
+ "min": 0,
4726
+ "max": 100
4727
+ }
4728
+ },
4729
+ "blocks": [
4730
+ null
4731
+ ],
4732
+ "sku": "0-123",
4236
4733
  "productPages": [
4237
4734
  {
4238
4735
  "id": 8997,
@@ -4240,18 +4737,17 @@ Example return:
4240
4737
  "productId": 8872
4241
4738
  }
4242
4739
  ],
4243
- "attributeSetId": 7,
4244
- "blocks": ["product_block"],
4245
- "version": 10,
4246
- "isSync": 0,
4247
- "price": 0,
4740
+ "statusLocalizeInfos": {
4741
+ "title": "Product"
4742
+ },
4248
4743
  "templateIdentifier": "my-template",
4249
4744
  "shortDescTemplateIdentifier": "my-template-short",
4250
- "sku": "0-123",
4251
4745
  "attributeValues": {
4252
4746
  "marker": {
4253
4747
  "value": "",
4254
- "type": "string"
4748
+ "type": "string",
4749
+ "position": 1,
4750
+ "isProductPreview": false
4255
4751
  }
4256
4752
  },
4257
4753
  "position": 1
@@ -4264,6 +4760,14 @@ Example return:
4264
4760
  *object identifier* <br>
4265
4761
  example: 1764 <br>
4266
4762
 
4763
+ **additional:** Record<string, any> <br>
4764
+ *additional value from the index* <br>
4765
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4766
+
4767
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4768
+ *json description of the item status object, taking into account the language* <br>
4769
+ example: { "title": "Product" <br>
4770
+
4267
4771
  **localizeInfos:** Record<string, any> <br>
4268
4772
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4269
4773
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -4335,40 +4839,52 @@ Example return:
4335
4839
  ```json
4336
4840
  [
4337
4841
  {
4338
- "id": 1764,
4339
- "localizeInfos": {
4340
- "title": "Product"
4341
- },
4342
- "isVisible": true,
4343
- "statusId": 1,
4344
- "relatedIds": [
4345
- 1,
4346
- 2,
4347
- 3
4348
- ],
4349
- "productPages": [
4350
- {
4351
- "id": 8997,
4352
- "pageId": 1176,
4353
- "productId": 8872
4354
- }
4355
- ],
4356
- "attributeSetId": 7,
4357
- "blocks": ["product_block"],
4358
- "version": 10,
4359
- "isSync": 0,
4360
- "price": 0,
4361
- "templateIdentifier": "my-template",
4362
- "shortDescTemplateIdentifier": "my-template-short",
4842
+ "id": 1764,
4843
+ "localizeInfos": {
4844
+ "title": "Product"
4845
+ },
4846
+ "isVisible": true,
4847
+ "statusId": 1,
4848
+ "relatedIds": [
4849
+ 1,
4850
+ 2,
4851
+ 3
4852
+ ],
4853
+ "attributeSetId": 7,
4854
+ "isSync": true,
4855
+ "price": 0,
4856
+ "additional": {
4857
+ "prices": {
4858
+ "min": 0,
4859
+ "max": 100
4860
+ }
4861
+ },
4862
+ "blocks": [
4863
+ null
4864
+ ],
4363
4865
  "sku": "0-123",
4866
+ "productPages": [
4867
+ {
4868
+ "id": 8997,
4869
+ "pageId": 1176,
4870
+ "productId": 8872
4871
+ }
4872
+ ],
4873
+ "statusLocalizeInfos": {
4874
+ "title": "Product"
4875
+ },
4876
+ "templateIdentifier": "my-template",
4877
+ "shortDescTemplateIdentifier": "my-template-short",
4364
4878
  "attributeValues": {
4365
- "marker": {
4366
- "value": "",
4367
- "type": "string"
4368
- }
4369
- },
4370
- "position": 1
4371
- }
4879
+ "marker": {
4880
+ "value": "",
4881
+ "type": "string",
4882
+ "position": 1,
4883
+ "isProductPreview": false
4884
+ }
4885
+ },
4886
+ "position": 1
4887
+ }
4372
4888
  ]
4373
4889
  ```
4374
4890
  <details>
@@ -4378,6 +4894,14 @@ Example return:
4378
4894
  *object identifier* <br>
4379
4895
  example: 1764 <br>
4380
4896
 
4897
+ **additional:** Record<string, any> <br>
4898
+ *additional value from the index* <br>
4899
+ example: OrderedMap { "prices": OrderedMap { "min": 0, "max": 100 } } <br>
4900
+
4901
+ **statusLocalizeInfos:** CommonLocalizeInfos <br>
4902
+ *json description of the item status object, taking into account the language* <br>
4903
+ example: { "title": "Product" <br>
4904
+
4381
4905
  **localizeInfos:** Record<string, any> <br>
4382
4906
  *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4383
4907
  example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
@@ -4634,22 +5158,20 @@ Example return:
4634
5158
 
4635
5159
  ```json
4636
5160
  [
4637
- {
4638
- "id": 1764,
4639
- "updatedDate": "2023-12-05T12:47:02.859Z",
4640
- "version": 10,
4641
- "identifier": "marker",
4642
- "generalType": {
4643
- "id": 4,
4644
- "type": "forCatalogPages"
4645
- },
4646
- "generalTypeId": 4,
4647
- "localizeInfos": {
4648
- "title": "Page template"
4649
- },
4650
- "position": 0,
4651
- "positionId": 12,
4652
- "generalTypeName": "forProductPreview"
5161
+ {
5162
+ "id": 1764,
5163
+ "updatedDate": "2024-05-25T23:50:35.154Z",
5164
+ "version": 10,
5165
+ "identifier": "marker",
5166
+ "generalType": {
5167
+ "id": 4,
5168
+ "type": "forCatalogPages"
5169
+ },
5170
+ "generalTypeId": 4,
5171
+ "title": "Page template",
5172
+ "position": 0,
5173
+ "positionId": 12,
5174
+ "generalTypeName": "forProductPreview"
4653
5175
  }
4654
5176
  ]
4655
5177
  ```
@@ -4679,9 +5201,9 @@ example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
4679
5201
  *type identifier* <br>
4680
5202
  example: 4 <br>
4681
5203
 
4682
- **localizeInfos:** Record<string, any> <br>
4683
- *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4684
- example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
5204
+ **title:** string<br>
5205
+ *template name* <br>
5206
+ example: page template <br>
4685
5207
 
4686
5208
  **position** object <br>
4687
5209
  *position number* <br>
@@ -4712,7 +5234,7 @@ Example return:
4712
5234
  [
4713
5235
  {
4714
5236
  "id": 1764,
4715
- "updatedDate": "2023-12-05T12:45:13.566Z",
5237
+ "updatedDate": "2024-05-25T23:50:35.154Z",
4716
5238
  "version": 10,
4717
5239
  "identifier": "marker",
4718
5240
  "generalType": {
@@ -4720,9 +5242,7 @@ Example return:
4720
5242
  "type": "forCatalogPages"
4721
5243
  },
4722
5244
  "generalTypeId": 4,
4723
- "localizeInfos": {
4724
- "title": "Page template"
4725
- },
5245
+ "title": "Page template",
4726
5246
  "position": 0,
4727
5247
  "positionId": 12,
4728
5248
  "generalTypeName": "forProductPreview"
@@ -4755,14 +5275,87 @@ example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
4755
5275
  *type identifier* <br>
4756
5276
  example: 4 <br>
4757
5277
 
4758
- **localizeInfos:** Record<string, any> <br>
4759
- *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4760
- example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
5278
+ **title:** string<br>
5279
+ *template name* <br>
5280
+ example: page template <br>
4761
5281
 
4762
5282
  **position** object <br>
4763
5283
  *position number* <br>
4764
5284
  example: 0 <br>
4765
5285
 
5286
+ **positionId:** number <br>
5287
+ *position object identifier* <br>
5288
+ example: 12 <br>
5289
+
5290
+ **generalTypeName** string <br>
5291
+ *example: forProductPreview* <br>
5292
+ general type name <br>
5293
+
5294
+ </details>
5295
+
5296
+
5297
+ ### Templates.getTemplateById(id)
5298
+
5299
+ ```js
5300
+ const value = await Templates.getTemplateById(1)
5301
+ ```
5302
+
5303
+ > This method retrieves a single template object based on its identifier (id) from the API. It returns a Promise that resolves to a template object.
5304
+
5305
+ Example return:
5306
+
5307
+ ```json
5308
+ [
5309
+ {
5310
+ "id": 1764,
5311
+ "updatedDate": "2024-05-25T23:50:35.154Z",
5312
+ "version": 10,
5313
+ "identifier": "marker",
5314
+ "generalType": {
5315
+ "id": 4,
5316
+ "type": "forCatalogPages"
5317
+ },
5318
+ "generalTypeId": 4,
5319
+ "title": "Page template",
5320
+ "position": 0,
5321
+ "positionId": 12,
5322
+ "generalTypeName": "forProductPreview"
5323
+ }
5324
+ ]
5325
+ ```
5326
+ <details>
5327
+ <summary>Schema</summary>
5328
+
5329
+ **id:** number <br>
5330
+ *object identifier* <br>
5331
+ example: 1764 <br>
5332
+
5333
+ **updatedDate:** string($date-time) <br>
5334
+ *object's date of modification* <br>
5335
+
5336
+ **version** number <br>
5337
+ *object's version number of modification* <br>
5338
+ example: 10 <br>
5339
+
5340
+ **identifier:** string <br>
5341
+ *textual identifier for a field in the record* <br>
5342
+ example: catalog <br>
5343
+
5344
+ **generalType:**: object <br>
5345
+ *object type* <br>
5346
+ example: OrderedMap { "id": 4, "type": "forCatalogPages" } <br>
5347
+
5348
+ **generalTypeId:** number <br>
5349
+ *type identifier* <br>
5350
+ example: 4 <br>
5351
+
5352
+ **title:** string<br>
5353
+ *template name* <br>
5354
+ example: page template <br>
5355
+
5356
+ **position** object <br>
5357
+ *position number* <br>
5358
+ example: 0 <br>
4766
5359
 
4767
5360
  **positionId:** number <br>
4768
5361
  *position object identifier* <br>
@@ -4823,9 +5416,7 @@ Example return:
4823
5416
  "alignmentType": "center"
4824
5417
  }
4825
5418
  },
4826
- "localizeInfos": {
4827
- "title": "Page Template"
4828
- },
5419
+ "title": "Page Template",
4829
5420
  "position": 0
4830
5421
  }
4831
5422
  ]
@@ -4852,9 +5443,9 @@ example: catalog <br>
4852
5443
  *template proportion parameters* <br>
4853
5444
  example: OrderedMap { "horizontal": OrderedMap { "height": 200, "weight": 10, "marker": "horizontal", "title": "Horizontal", "alignmentType": "left" }, "vertical": OrderedMap { "height": 10, "weight": 200, "marker": "vertical", "title": "Vertical", "alignmentType": "left" }, "square": OrderedMap { "marker": "square", "title": "Square", "slide": 3, "alignmentType": "center" } } <br>
4854
5445
 
4855
- **localizeInfos:** Record<string, any> <br>
4856
- *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4857
- example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
5446
+ **title:** string<br>
5447
+ *template name* <br>
5448
+ example: page template <br>
4858
5449
 
4859
5450
  **position** object <br>
4860
5451
  *position number* <br>
@@ -4906,9 +5497,7 @@ Example return:
4906
5497
  "alignmentType": "center"
4907
5498
  }
4908
5499
  },
4909
- "localizeInfos": {
4910
- "title": "Page Template"
4911
- },
5500
+ "title": "Page Template",
4912
5501
  "position": 0
4913
5502
  }
4914
5503
  ```
@@ -4934,9 +5523,9 @@ example: catalog <br>
4934
5523
  *template proportion parameters* <br>
4935
5524
  example: OrderedMap { "horizontal": OrderedMap { "height": 200, "weight": 10, "marker": "horizontal", "title": "Horizontal", "alignmentType": "left" }, "vertical": OrderedMap { "height": 10, "weight": 200, "marker": "vertical", "title": "Vertical", "alignmentType": "left" }, "square": OrderedMap { "marker": "square", "title": "Square", "slide": 3, "alignmentType": "center" } } <br>
4936
5525
 
4937
- **localizeInfos:** Record<string, any> <br>
4938
- *json description of the main page data object taking into account the language "en_US" (for example)* <br>
4939
- example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
5526
+ **title:** string<br>
5527
+ *template name* <br>
5528
+ example: page template <br>
4940
5529
 
4941
5530
  **position** object <br>
4942
5531
  *position number* <br>
@@ -4987,9 +5576,7 @@ Example return:
4987
5576
  "alignmentType": "center"
4988
5577
  }
4989
5578
  },
4990
- "localizeInfos": {
4991
- "title": "Page Template"
4992
- },
5579
+ "title": "Page Template",
4993
5580
  "position": 0
4994
5581
  }
4995
5582
  ```
@@ -5015,9 +5602,9 @@ example: catalog <br>
5015
5602
  *template proportion parameters* <br>
5016
5603
  example: OrderedMap { "horizontal": OrderedMap { "height": 200, "weight": 10, "marker": "horizontal", "title": "Horizontal", "alignmentType": "left" }, "vertical": OrderedMap { "height": 10, "weight": 200, "marker": "vertical", "title": "Vertical", "alignmentType": "left" }, "square": OrderedMap { "marker": "square", "title": "Square", "slide": 3, "alignmentType": "center" } } <br>
5017
5604
 
5018
- **localizeInfos:** Record<string, any> <br>
5019
- *json description of the main page data object taking into account the language "en_US" (for example)* <br>
5020
- example: OrderedMap { "en_US": OrderedMap { "title": "Catalog", "plainContent": "Content for catalog", "htmlContent": "<b>Content for catalog</b>", "menuTitle": "Catalog" } } <br>
5605
+ **title:** string<br>
5606
+ *template name* <br>
5607
+ example: page template <br>
5021
5608
 
5022
5609
  **position** object <br>
5023
5610
  *position number* <br>
@@ -5032,7 +5619,7 @@ example: 12 <br>
5032
5619
  ---
5033
5620
 
5034
5621
 
5035
- ## <h2 id="templatepreviews"> Users </h2>
5622
+ ## <h2 id="users"> Users </h2>
5036
5623
 
5037
5624
 
5038
5625
  ```js