oneentry 1.0.159 → 1.0.161

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +2 -0
  2. package/changelog.md +56 -1
  3. package/dist/admins/adminsApi.d.ts +15 -1
  4. package/dist/admins/adminsApi.js +29 -0
  5. package/dist/admins/adminsInterfaces.d.ts +37 -1
  6. package/dist/base/lazySchema.d.ts +15 -0
  7. package/dist/base/lazySchema.js +20 -0
  8. package/dist/discounts/discountsApi.d.ts +14 -1
  9. package/dist/discounts/discountsApi.js +21 -0
  10. package/dist/discounts/discountsInterfaces.d.ts +27 -1
  11. package/dist/filters/filtersInterfaces.d.ts +2 -2
  12. package/dist/filters/filtersSchemas.d.ts +1 -1
  13. package/dist/filters/filtersSchemas.js +4 -1
  14. package/dist/forms-data/formsDataApi.d.ts +14 -1
  15. package/dist/forms-data/formsDataApi.js +21 -0
  16. package/dist/forms-data/formsDataInterfaces.d.ts +74 -1
  17. package/dist/index.d.ts +4 -0
  18. package/dist/index.js +3 -0
  19. package/dist/orders/ordersApi.d.ts +15 -1
  20. package/dist/orders/ordersApi.js +22 -0
  21. package/dist/orders/ordersInterfaces.d.ts +27 -1
  22. package/dist/pages/pagesApi.d.ts +14 -1
  23. package/dist/pages/pagesApi.js +21 -0
  24. package/dist/pages/pagesInterfaces.d.ts +38 -1
  25. package/dist/payments/paymentsInterfaces.d.ts +2 -2
  26. package/dist/products/productsInterfaces.d.ts +1 -1
  27. package/dist/search/searchApi.d.ts +35 -0
  28. package/dist/search/searchApi.js +86 -0
  29. package/dist/search/searchInterfaces.d.ts +94 -0
  30. package/dist/search/searchInterfaces.js +2 -0
  31. package/dist/search/searchSchemas.d.ts +73 -0
  32. package/dist/search/searchSchemas.js +44 -0
  33. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +0 -2
  34. package/dist/templates-preview/templatesPreviewSchemas.d.ts +0 -2
  35. package/dist/templates-preview/templatesPreviewSchemas.js +0 -1
  36. package/dist/types.d.ts +35 -0
  37. package/dist/types.js +2 -0
  38. package/dist/users/usersApi.d.ts +15 -1
  39. package/dist/users/usersApi.js +22 -0
  40. package/dist/users/usersInterfaces.d.ts +39 -1
  41. package/dist/web-socket/lazySocket.d.ts +18 -0
  42. package/dist/web-socket/lazySocket.js +70 -0
  43. package/esm/admins/adminsApi.d.ts +66 -0
  44. package/esm/admins/adminsApi.js +90 -0
  45. package/esm/admins/adminsInterfaces.d.ts +137 -0
  46. package/esm/admins/adminsInterfaces.js +1 -0
  47. package/esm/admins/adminsSchemas.d.ts +48 -0
  48. package/esm/admins/adminsSchemas.js +31 -0
  49. package/esm/attribute-sets/attributeSetsApi.d.ts +67 -0
  50. package/esm/attribute-sets/attributeSetsApi.js +97 -0
  51. package/esm/attribute-sets/attributeSetsInterfaces.d.ts +285 -0
  52. package/esm/attribute-sets/attributeSetsInterfaces.js +1 -0
  53. package/esm/attribute-sets/attributeSetsSchemas.d.ts +84 -0
  54. package/esm/attribute-sets/attributeSetsSchemas.js +66 -0
  55. package/esm/auth-provider/authProviderApi.d.ts +262 -0
  56. package/esm/auth-provider/authProviderApi.js +362 -0
  57. package/esm/auth-provider/authProviderSchemas.d.ts +124 -0
  58. package/esm/auth-provider/authProviderSchemas.js +92 -0
  59. package/esm/auth-provider/authProvidersInterfaces.d.ts +430 -0
  60. package/esm/auth-provider/authProvidersInterfaces.js +1 -0
  61. package/esm/base/asyncModules.d.ts +123 -0
  62. package/esm/base/asyncModules.js +382 -0
  63. package/esm/base/lazySchema.d.ts +15 -0
  64. package/esm/base/lazySchema.js +17 -0
  65. package/esm/base/stateModule.d.ts +35 -0
  66. package/esm/base/stateModule.js +51 -0
  67. package/esm/base/syncModules.d.ts +245 -0
  68. package/esm/base/syncModules.js +555 -0
  69. package/esm/base/timeIntervals.d.ts +95 -0
  70. package/esm/base/timeIntervals.js +317 -0
  71. package/esm/base/utils.d.ts +354 -0
  72. package/esm/base/utils.js +1 -0
  73. package/esm/base/validation.d.ts +98 -0
  74. package/esm/base/validation.js +118 -0
  75. package/esm/blocks/blocksApi.d.ts +252 -0
  76. package/esm/blocks/blocksApi.js +394 -0
  77. package/esm/blocks/blocksInterfaces.d.ts +361 -0
  78. package/esm/blocks/blocksInterfaces.js +1 -0
  79. package/esm/blocks/blocksSchemas.d.ts +213 -0
  80. package/esm/blocks/blocksSchemas.js +40 -0
  81. package/esm/discounts/discountsApi.d.ts +94 -0
  82. package/esm/discounts/discountsApi.js +136 -0
  83. package/esm/discounts/discountsInterfaces.d.ts +293 -0
  84. package/esm/discounts/discountsInterfaces.js +1 -0
  85. package/esm/events/eventsApi.d.ts +108 -0
  86. package/esm/events/eventsApi.js +141 -0
  87. package/esm/events/eventsInterfaces.d.ts +176 -0
  88. package/esm/events/eventsInterfaces.js +1 -0
  89. package/esm/file-uploading/fileUploadingApi.d.ts +91 -0
  90. package/esm/file-uploading/fileUploadingApi.js +127 -0
  91. package/esm/file-uploading/fileUploadingInterfaces.d.ts +116 -0
  92. package/esm/file-uploading/fileUploadingInterfaces.js +1 -0
  93. package/esm/file-uploading/fileUploadingSchemas.d.ts +24 -0
  94. package/esm/file-uploading/fileUploadingSchemas.js +19 -0
  95. package/esm/filters/filtersApi.d.ts +32 -0
  96. package/esm/filters/filtersApi.js +36 -0
  97. package/esm/filters/filtersInterfaces.d.ts +56 -0
  98. package/esm/filters/filtersInterfaces.js +1 -0
  99. package/esm/filters/filtersSchemas.d.ts +32 -0
  100. package/esm/filters/filtersSchemas.js +29 -0
  101. package/esm/forms/formsApi.d.ts +44 -0
  102. package/esm/forms/formsApi.js +54 -0
  103. package/esm/forms/formsInterfaces.d.ts +237 -0
  104. package/esm/forms/formsInterfaces.js +1 -0
  105. package/esm/forms/formsSchemas.d.ts +56 -0
  106. package/esm/forms/formsSchemas.js +32 -0
  107. package/esm/forms-data/formsDataApi.d.ts +124 -0
  108. package/esm/forms-data/formsDataApi.js +210 -0
  109. package/esm/forms-data/formsDataInterfaces.d.ts +670 -0
  110. package/esm/forms-data/formsDataInterfaces.js +1 -0
  111. package/esm/forms-data/formsDataSchemas.d.ts +107 -0
  112. package/esm/forms-data/formsDataSchemas.js +83 -0
  113. package/esm/general-types/generalTypesApi.d.ts +29 -0
  114. package/esm/general-types/generalTypesApi.js +34 -0
  115. package/esm/general-types/generalTypesInterfaces.d.ts +29 -0
  116. package/esm/general-types/generalTypesInterfaces.js +1 -0
  117. package/esm/general-types/generalTypesSchemas.d.ts +68 -0
  118. package/esm/general-types/generalTypesSchemas.js +42 -0
  119. package/esm/index.d.ts +143 -0
  120. package/esm/index.js +124 -0
  121. package/esm/integration-collections/integrationCollectionsApi.d.ts +172 -0
  122. package/esm/integration-collections/integrationCollectionsApi.js +224 -0
  123. package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +317 -0
  124. package/esm/integration-collections/integrationCollectionsInterfaces.js +1 -0
  125. package/esm/integration-collections/integrationCollectionsSchemas.d.ts +84 -0
  126. package/esm/integration-collections/integrationCollectionsSchemas.js +60 -0
  127. package/esm/locales/localesApi.d.ts +28 -0
  128. package/esm/locales/localesApi.js +33 -0
  129. package/esm/locales/localesInterfaces.d.ts +40 -0
  130. package/esm/locales/localesInterfaces.js +1 -0
  131. package/esm/locales/localesSchemas.d.ts +32 -0
  132. package/esm/locales/localesSchemas.js +23 -0
  133. package/esm/menus/menusApi.d.ts +30 -0
  134. package/esm/menus/menusApi.js +35 -0
  135. package/esm/menus/menusInterfaces.d.ts +87 -0
  136. package/esm/menus/menusInterfaces.js +2 -0
  137. package/esm/menus/menusSchemas.d.ts +16 -0
  138. package/esm/menus/menusSchemas.js +25 -0
  139. package/esm/orders/ordersApi.d.ts +213 -0
  140. package/esm/orders/ordersApi.js +288 -0
  141. package/esm/orders/ordersInterfaces.d.ts +763 -0
  142. package/esm/orders/ordersInterfaces.js +1 -0
  143. package/esm/orders/ordersSchemas.d.ts +312 -0
  144. package/esm/orders/ordersSchemas.js +171 -0
  145. package/esm/package.json +4 -0
  146. package/esm/pages/pagesApi.d.ts +173 -0
  147. package/esm/pages/pagesApi.js +414 -0
  148. package/esm/pages/pagesInterfaces.d.ts +344 -0
  149. package/esm/pages/pagesInterfaces.js +1 -0
  150. package/esm/pages/pagesSchemas.d.ts +121 -0
  151. package/esm/pages/pagesSchemas.js +60 -0
  152. package/esm/payments/paymentsApi.d.ts +88 -0
  153. package/esm/payments/paymentsApi.js +122 -0
  154. package/esm/payments/paymentsInterfaces.d.ts +189 -0
  155. package/esm/payments/paymentsInterfaces.js +1 -0
  156. package/esm/payments/paymentsSchemas.d.ts +94 -0
  157. package/esm/payments/paymentsSchemas.js +53 -0
  158. package/esm/product-statuses/productStatusesApi.d.ts +50 -0
  159. package/esm/product-statuses/productStatusesApi.js +68 -0
  160. package/esm/product-statuses/productStatusesInterfaces.d.ts +62 -0
  161. package/esm/product-statuses/productStatusesInterfaces.js +1 -0
  162. package/esm/product-statuses/productStatusesSchemas.d.ts +34 -0
  163. package/esm/product-statuses/productStatusesSchemas.js +27 -0
  164. package/esm/products/productsApi.d.ts +366 -0
  165. package/esm/products/productsApi.js +468 -0
  166. package/esm/products/productsInterfaces.d.ts +723 -0
  167. package/esm/products/productsInterfaces.js +1 -0
  168. package/esm/products/productsSchemas.d.ts +234 -0
  169. package/esm/products/productsSchemas.js +121 -0
  170. package/esm/search/searchApi.d.ts +35 -0
  171. package/esm/search/searchApi.js +47 -0
  172. package/esm/search/searchInterfaces.d.ts +94 -0
  173. package/esm/search/searchInterfaces.js +1 -0
  174. package/esm/search/searchSchemas.d.ts +73 -0
  175. package/esm/search/searchSchemas.js +41 -0
  176. package/esm/sitemap/sitemapApi.d.ts +37 -0
  177. package/esm/sitemap/sitemapApi.js +41 -0
  178. package/esm/sitemap/sitemapInterfaces.d.ts +51 -0
  179. package/esm/sitemap/sitemapInterfaces.js +1 -0
  180. package/esm/subscriptions/subscriptionsApi.d.ts +74 -0
  181. package/esm/subscriptions/subscriptionsApi.js +90 -0
  182. package/esm/subscriptions/subscriptionsInterfaces.d.ts +111 -0
  183. package/esm/subscriptions/subscriptionsInterfaces.js +1 -0
  184. package/esm/subscriptions/subscriptionsSchemas.d.ts +46 -0
  185. package/esm/subscriptions/subscriptionsSchemas.js +38 -0
  186. package/esm/system/systemApi.d.ts +46 -0
  187. package/esm/system/systemApi.js +53 -0
  188. package/esm/system/systemInterfaces.d.ts +29 -0
  189. package/esm/system/systemInterfaces.js +1 -0
  190. package/esm/templates/templatesApi.d.ts +53 -0
  191. package/esm/templates/templatesApi.js +78 -0
  192. package/esm/templates/templatesInterfaces.d.ts +68 -0
  193. package/esm/templates/templatesInterfaces.js +1 -0
  194. package/esm/templates/templatesSchemas.d.ts +48 -0
  195. package/esm/templates/templatesSchemas.js +28 -0
  196. package/esm/templates-preview/templatesPreviewApi.d.ts +40 -0
  197. package/esm/templates-preview/templatesPreviewApi.js +50 -0
  198. package/esm/templates-preview/templatesPreviewInterfaces.d.ts +129 -0
  199. package/esm/templates-preview/templatesPreviewInterfaces.js +1 -0
  200. package/esm/templates-preview/templatesPreviewSchemas.d.ts +79 -0
  201. package/esm/templates-preview/templatesPreviewSchemas.js +43 -0
  202. package/esm/types.d.ts +35 -0
  203. package/esm/types.js +1 -0
  204. package/esm/user-activity/userActivityApi.d.ts +31 -0
  205. package/esm/user-activity/userActivityApi.js +37 -0
  206. package/esm/user-activity/userActivityInterfaces.d.ts +42 -0
  207. package/esm/user-activity/userActivityInterfaces.js +1 -0
  208. package/esm/users/usersApi.d.ts +249 -0
  209. package/esm/users/usersApi.js +312 -0
  210. package/esm/users/usersInterfaces.d.ts +419 -0
  211. package/esm/users/usersInterfaces.js +1 -0
  212. package/esm/users/usersSchemas.d.ts +72 -0
  213. package/esm/users/usersSchemas.js +55 -0
  214. package/esm/web-socket/lazySocket.d.ts +18 -0
  215. package/esm/web-socket/lazySocket.js +67 -0
  216. package/esm/web-socket/wsApi.d.ts +27 -0
  217. package/esm/web-socket/wsApi.js +43 -0
  218. package/esm/web-socket/wsInterfaces.d.ts +16 -0
  219. package/esm/web-socket/wsInterfaces.js +1 -0
  220. package/package.json +47 -2
  221. package/types.d.ts +1 -0
  222. package/types.js +1 -0
@@ -0,0 +1,361 @@
1
+ import type { IAttributeValues, IError, ILocalizeInfo } from '../base/utils.js';
2
+ import type { IProductsEntity, IProductsResponse } from '../products/productsInterfaces.js';
3
+ /**
4
+ * Interface for managing and retrieving blocks in the system.
5
+ * @interface IBlocks
6
+ * @description This interface defines methods for retrieving and managing blocks in the system.
7
+ */
8
+ interface IBlocks {
9
+ /**
10
+ * Retrieves all block objects of a specific type.
11
+ * @handleName getBlocks
12
+ * @param {BlockType} [type] - Optional type of blocks to retrieve. When omitted, blocks of all types are returned. Example: "product".
13
+ * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
14
+ * @param {number} [offset] - Optional offset for pagination. Default: 0.
15
+ * @param {number} [limit] - Optional limit for pagination. Default: 30.
16
+ * @returns {IBlocksResponse} A promise that resolves to a blocks response or an error.
17
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
18
+ * @description This method retrieves all block objects of a specific type.
19
+ */
20
+ getBlocks(type?: BlockType, langCode?: string, offset?: number, limit?: number): Promise<IBlocksResponse | IError>;
21
+ /**
22
+ * Retrieves a block object by its marker.
23
+ * @handleName getBlockByMarker
24
+ * @param {string} marker - The marker identifying the block. Example: "product_block".
25
+ * @param {string} langCode - Language code for localization. Default: "en_US".
26
+ * @param {number} [offset] - Optional offset for pagination. Default: 0.
27
+ * @param {number} [limit] - Optional limit for pagination. Default: 30.
28
+ * @returns {IBlockEntity} A promise that resolves to a block entity or an error.
29
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
30
+ * @description This method retrieves a block object by its marker.
31
+ */
32
+ getBlockByMarker(marker: string, langCode: string, offset?: number, limit?: number): Promise<IBlockEntity | IError>;
33
+ /**
34
+ * Performs a quick search for block objects with limited output.
35
+ * @handleName searchBlock
36
+ * @param {string} name - The name to search for. Example: "product_block".
37
+ * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
38
+ * @returns {ISearchBlock[]} A promise that resolves to an array of search blocks or an error.
39
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
40
+ * @description This method performs a quick search for block objects with limited output.
41
+ */
42
+ searchBlock(name: string, langCode?: string): Promise<ISearchBlock[] | IError>;
43
+ /**
44
+ * Get frequently ordered products by block marker and product id.
45
+ * @handleName getFrequentlyOrderedProducts
46
+ * @param {number} productId - Product id. Example: 1.
47
+ * @param {string} marker - Block marker. Example: "frequently_ordered_block".
48
+ * @param {string} [langCode] - Language code. Default: "en_US".
49
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
50
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
51
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total) or an error.
52
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
53
+ */
54
+ getFrequentlyOrderedProducts(productId: number, marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
55
+ /**
56
+ * Get "complete your cart" products by the cart from context (auth user or guest).
57
+ * @handleName getCartComplement
58
+ * @param {string} marker - Block marker. Example: "cart_complement_block".
59
+ * @param {string} [langCode] - Language code. Default: "en_US".
60
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
61
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
62
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
63
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
64
+ */
65
+ getCartComplement(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
66
+ /**
67
+ * Get "complete your cart" products by an explicit list of productIds (POST body).
68
+ * @handleName getCartComplementByProductIds
69
+ * @param {string} marker - Block marker. Example: "cart_complement_block".
70
+ * @param {IBlockProductsLookup} body - Lookup body.
71
+ * @example
72
+ {
73
+ "productIds": [1, 2],
74
+ "langCode": "en_US"
75
+ }
76
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
77
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
78
+ */
79
+ getCartComplementByProductIds(marker: string, body: IBlockProductsLookup): Promise<IProductsResponse | IError>;
80
+ /**
81
+ * Get "similar to cart" products by the cart from context (auth user or guest).
82
+ * @handleName getCartSimilar
83
+ * @param {string} marker - Block marker. Example: "cart_similar_block".
84
+ * @param {string} [langCode] - Language code. Default: "en_US".
85
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
86
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
87
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
88
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
89
+ */
90
+ getCartSimilar(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
91
+ /**
92
+ * Get "similar to cart" products by an explicit list of productIds (POST body).
93
+ * @handleName getCartSimilarByProductIds
94
+ * @param {string} marker - Block marker. Example: "cart_similar_block".
95
+ * @param {IBlockProductsLookup} body - Lookup body.
96
+ * @example
97
+ {
98
+ "productIds": [1, 2],
99
+ "langCode": "en_US"
100
+ }
101
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
102
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
103
+ */
104
+ getCartSimilarByProductIds(marker: string, body: IBlockProductsLookup): Promise<IProductsResponse | IError>;
105
+ /**
106
+ * Get personal recommendations for the user.
107
+ * @handleName getPersonalRecommendations
108
+ * @param {string} marker - Block marker. Example: "personal_recommendations_block".
109
+ * @param {string} [langCode] - Language code. Default: "en_US".
110
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
111
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
112
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
113
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
114
+ */
115
+ getPersonalRecommendations(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
116
+ /**
117
+ * Get recently viewed products.
118
+ * @handleName getRecentlyViewed
119
+ * @param {string} marker - Block marker. Example: "recently_viewed_block".
120
+ * @param {string} [langCode] - Language code. Default: "en_US".
121
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
122
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
123
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
124
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
125
+ */
126
+ getRecentlyViewed(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
127
+ /**
128
+ * Get products for repeat purchase.
129
+ * @handleName getRepeatPurchase
130
+ * @param {string} marker - Block marker. Example: "repeat_purchase_block".
131
+ * @param {string} [langCode] - Language code. Default: "en_US".
132
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
133
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
134
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
135
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
136
+ */
137
+ getRepeatPurchase(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
138
+ /**
139
+ * Get the block's slides tree as a flat pre-order array (slider_block only).
140
+ * @handleName getSlides
141
+ * @param {string} marker - Block marker. Example: "slider_block".
142
+ * @returns {IBlockSlidesResponse} A promise that resolves to the slides response or an error.
143
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
144
+ */
145
+ getSlides(marker: string): Promise<IBlockSlidesResponse | IError>;
146
+ /**
147
+ * Get trending products of the block.
148
+ * @handleName getTrending
149
+ * @param {string} marker - Block marker. Example: "trending_block".
150
+ * @param {string} [langCode] - Language code. Default: "en_US".
151
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
152
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
153
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
154
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
155
+ */
156
+ getTrending(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
157
+ /**
158
+ * Get "similar to wishlist" products by the wishlist from context (auth user or guest).
159
+ * @handleName getWishlistSimilar
160
+ * @param {string} marker - Block marker. Example: "wishlist_similar_block".
161
+ * @param {string} [langCode] - Language code. Default: "en_US".
162
+ * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
163
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
164
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
165
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
166
+ */
167
+ getWishlistSimilar(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
168
+ /**
169
+ * Get "similar to wishlist" products by an explicit list of productIds (POST body).
170
+ * @handleName getWishlistSimilarByProductIds
171
+ * @param {string} marker - Block marker. Example: "wishlist_similar_block".
172
+ * @param {IBlockProductsLookup} body - Lookup body.
173
+ * @example
174
+ {
175
+ "productIds": [1, 2],
176
+ "langCode": "en_US"
177
+ }
178
+ * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
179
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
180
+ */
181
+ getWishlistSimilarByProductIds(marker: string, body: IBlockProductsLookup): Promise<IProductsResponse | IError>;
182
+ }
183
+ /**
184
+ * Represents a response from the blocks API.
185
+ * @interface IBlocksResponse
186
+ * @property {number} total - Total number of found records. Example: 100.
187
+ * @property {IBlockEntity[]} items - Array of block entities.
188
+ * @example
189
+ [
190
+ {
191
+ "attributeValues": {},
192
+ "id": 1,
193
+ "identifier": "block1",
194
+ "isVisible": true,
195
+ "localizeInfos": { "key": "value" },
196
+ "position": 1,
197
+ "templateIdentifier": null,
198
+ "type": "product",
199
+ "version": 1,
200
+ "countElementsPerRow": 3,
201
+ "quantity": 9,
202
+ "similarProducts": {
203
+ "total": 0,
204
+ "items": []
205
+ },
206
+ "products": [
207
+ {
208
+ "id": 1,
209
+ "name": "Product 1"
210
+ },
211
+ {
212
+ "id": 2,
213
+ "name": "Product 2"
214
+ }
215
+ ]
216
+ }
217
+ ]
218
+ * @description Represents a response from the blocks API containing a total count and an array of block entities.
219
+ */
220
+ interface IBlocksResponse {
221
+ items: IBlockEntity[];
222
+ total: number;
223
+ }
224
+ /**
225
+ * Represents a block entity with various attributes and properties.
226
+ * @interface IBlockEntity
227
+ * @property {IAttributeValues} attributeValues - Map of attribute values keyed by marker; empty object when none.
228
+ * @example
229
+ {
230
+ "block-text": {
231
+ "type": "string",
232
+ "value": "some text",
233
+ "isIcon": false,
234
+ "position": 0,
235
+ "additionalFields": [],
236
+ "isProductPreview": false
237
+ }
238
+ }
239
+ * @property {number} id - Unique identifier of the block. Example: 1234.
240
+ * @property {ILocalizeInfo} localizeInfos - Localization information for the block.
241
+ * @example
242
+ {
243
+ "key": "value"
244
+ }
245
+ * @property {number} version - Version of the block entity. Example: 1.
246
+ * @property {string} identifier - Unique string identifier for the block. Example: "block1".
247
+ * @property {BlockType} type - Type of the block. Example: "product".
248
+ * @property {number} position - Position of the block for sorting. Example: 1.
249
+ * @property {string | null} templateIdentifier - Identifier for the template used by the block, or null if not applicable. Example: "template1".
250
+ * @property {boolean} isVisible - Indicates whether the block is visible. Example: true.
251
+ * @property {number} [countElementsPerRow] - Number of elements displayed per row in the block, if applicable. Example: 3.
252
+ * @property {number} [quantity] - Quantity of items in the block, if applicable. Example: 5.
253
+ * @property {IProductsResponse} [similarProducts] - Response containing similar products associated with the block.
254
+ * @example
255
+ {
256
+ "total": 10,
257
+ "items": []
258
+ }
259
+ * @property {IProductsEntity[]} [products] - Array of product entities associated with the block.
260
+ * @example
261
+ [
262
+ {
263
+ "id": 1,
264
+ "name": "Product 1"
265
+ },
266
+ {
267
+ "id": 2,
268
+ "name": "Product 2"
269
+ }
270
+ ]
271
+ * @description Represents a block entity with various attributes and properties.
272
+ */
273
+ interface IBlockEntity {
274
+ id: number;
275
+ localizeInfos: ILocalizeInfo;
276
+ version: number;
277
+ position: number;
278
+ identifier: string;
279
+ type: BlockType;
280
+ templateIdentifier: string | null;
281
+ isVisible: boolean;
282
+ attributeValues: IAttributeValues;
283
+ similarProducts?: IProductsResponse;
284
+ countElementsPerRow?: number;
285
+ quantity?: number;
286
+ products?: IProductsEntity[];
287
+ }
288
+ /**
289
+ * Represents a search block entity with an identifier, name, and ID.
290
+ * @interface ISearchBlock
291
+ * @property {number} id - Unique identifier of the search block. Example: 1.
292
+ * @property {string} identifier - Unique string identifier for the search block. Example: "search_block_1".
293
+ * @property {string} name - Name of the search block. Example: "Search Block 1".
294
+ * @description Represents a search block entity with an identifier, name, and ID.
295
+ */
296
+ interface ISearchBlock {
297
+ id: number;
298
+ identifier: string;
299
+ name: string;
300
+ }
301
+ /**
302
+ * BlockType
303
+ * @type {BlockType}
304
+ * @description This type defines the possible values for block types used in the system.
305
+ */
306
+ type BlockType = 'product' | 'error_page' | 'catalog_page' | 'product_preview' | 'similar_products_block' | 'product_block' | 'frequently_ordered_block' | 'trending_block' | 'recently_viewed_block' | 'repeat_purchase_block' | 'slider_block' | 'personal_recommendations_block' | 'cart_complement_block' | 'cart_similar_block' | 'wishlist_similar_block' | 'form' | 'common_page' | 'common_block' | 'order' | 'service' | 'external_page' | 'discount' | 'none';
307
+ /**
308
+ * Lookup body for block product endpoints by explicit productIds.
309
+ * @interface IBlockProductsLookup
310
+ * @property {number[]} productIds - Product identifiers to look up. Example: [1, 2, 3].
311
+ * @property {string} [langCode] - Language code. Default: "en_US".
312
+ * @property {number} [limit] - Max number of products to return. Example: 10.
313
+ * @property {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
314
+ * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
315
+ * @description Body for the POST block product endpoints (cart-complement / cart-similar / wishlist-similar) that accept an explicit list of productIds.
316
+ */
317
+ interface IBlockProductsLookup {
318
+ productIds: number[];
319
+ langCode?: string;
320
+ limit?: number;
321
+ signPrice?: string;
322
+ }
323
+ /**
324
+ * A single slide item of a slider block (flat pre-order tree node).
325
+ * @interface IBlockSlideItem
326
+ * @property {number} id - Slide identifier. Example: 1.
327
+ * @property {number | null} [parentId] - Parent slide identifier, or null for root slides. Example: null.
328
+ * @property {number} depth - Depth of the slide in the tree. Example: 0.
329
+ * @property {number} position - Position of the slide among its siblings. Example: 1.
330
+ * @property {boolean} visible - Whether the slide is visible. Example: true.
331
+ * @property {number} [time] - Display time for the slide. Example: 5.
332
+ * @property {'sec' | 'ms'} [timeInterval] - Unit of the time field. Example: "sec".
333
+ * @property {IAttributeValues} attributeValues - Map of attribute values keyed by marker.
334
+ * @description A single slide item returned in the slides flat pre-order array.
335
+ */
336
+ interface IBlockSlideItem {
337
+ id: number;
338
+ parentId?: number | null;
339
+ depth: number;
340
+ position: number;
341
+ visible: boolean;
342
+ time?: number;
343
+ timeInterval?: 'sec' | 'ms';
344
+ attributeValues: IAttributeValues;
345
+ }
346
+ /**
347
+ * Slides response for a slider block.
348
+ * @interface IBlockSlidesResponse
349
+ * @property {number} total - Total number of slides. Example: 3.
350
+ * @property {number} [time] - Default display time for slides. Example: 5.
351
+ * @property {'sec' | 'ms'} [timeInterval] - Unit of the time field. Example: "sec".
352
+ * @property {IBlockSlideItem[]} items - Flat pre-order array of slide items.
353
+ * @description Response of the block slides endpoint (slider_block only).
354
+ */
355
+ interface IBlockSlidesResponse {
356
+ total: number;
357
+ time?: number;
358
+ timeInterval?: 'sec' | 'ms';
359
+ items: IBlockSlideItem[];
360
+ }
361
+ export type { BlockType, IBlockEntity, IBlockProductsLookup, IBlocks, IBlockSlideItem, IBlockSlidesResponse, IBlocksResponse, ISearchBlock, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,213 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Block entity schema
4
+ * Includes all fields returned by the API
5
+ */
6
+ export declare const BlockEntitySchema: z.ZodObject<{
7
+ id: z.ZodNumber;
8
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
9
+ version: z.ZodNumber;
10
+ position: z.ZodNumber;
11
+ identifier: z.ZodString;
12
+ type: z.ZodString;
13
+ templateIdentifier: z.ZodNullable<z.ZodString>;
14
+ isVisible: z.ZodBoolean;
15
+ attributeValues: z.ZodRecord<z.ZodString, z.ZodAny>;
16
+ similarProducts: z.ZodOptional<z.ZodObject<{
17
+ items: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodNumber;
19
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
20
+ statusIdentifier: z.ZodNullable<z.ZodString>;
21
+ statusLocalizeInfos: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
+ attributeSetIdentifier: z.ZodNullable<z.ZodString>;
23
+ position: z.ZodNumber;
24
+ price: z.ZodNullable<z.ZodNumber>;
25
+ additional: z.ZodObject<{
26
+ prices: z.ZodObject<{
27
+ min: z.ZodNumber;
28
+ max: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>;
31
+ sku: z.ZodNullable<z.ZodString>;
32
+ isSync: z.ZodBoolean;
33
+ attributeValues: z.ZodRecord<z.ZodString, z.ZodAny>;
34
+ categories: z.ZodArray<z.ZodString>;
35
+ isVisible: z.ZodBoolean;
36
+ moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
37
+ rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
38
+ templateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
+ shortDescTemplateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ signedPrice: z.ZodOptional<z.ZodString>;
41
+ productPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ id: z.ZodNumber;
43
+ pageId: z.ZodNumber;
44
+ productId: z.ZodNumber;
45
+ positionId: z.ZodNumber;
46
+ categoryPath: z.ZodString;
47
+ }, z.core.$strip>>>;
48
+ blocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ isPositionLocked: z.ZodOptional<z.ZodBoolean>;
50
+ relatedIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
51
+ paymentStages: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
52
+ distance: z.ZodOptional<z.ZodNumber>;
53
+ discountConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
54
+ }, z.core.$strip>>;
55
+ total: z.ZodNumber;
56
+ totalFound: z.ZodOptional<z.ZodNumber>;
57
+ }, z.core.$strip>>;
58
+ countElementsPerRow: z.ZodOptional<z.ZodNumber>;
59
+ quantity: z.ZodOptional<z.ZodNumber>;
60
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ id: z.ZodNumber;
62
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
63
+ statusIdentifier: z.ZodNullable<z.ZodString>;
64
+ statusLocalizeInfos: z.ZodRecord<z.ZodString, z.ZodUnknown>;
65
+ attributeSetIdentifier: z.ZodNullable<z.ZodString>;
66
+ position: z.ZodNumber;
67
+ price: z.ZodNullable<z.ZodNumber>;
68
+ additional: z.ZodObject<{
69
+ prices: z.ZodObject<{
70
+ min: z.ZodNumber;
71
+ max: z.ZodNumber;
72
+ }, z.core.$strip>;
73
+ }, z.core.$strip>;
74
+ sku: z.ZodNullable<z.ZodString>;
75
+ isSync: z.ZodBoolean;
76
+ attributeValues: z.ZodRecord<z.ZodString, z.ZodAny>;
77
+ categories: z.ZodArray<z.ZodString>;
78
+ isVisible: z.ZodBoolean;
79
+ moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
80
+ rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
81
+ templateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82
+ shortDescTemplateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
83
+ signedPrice: z.ZodOptional<z.ZodString>;
84
+ productPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ id: z.ZodNumber;
86
+ pageId: z.ZodNumber;
87
+ productId: z.ZodNumber;
88
+ positionId: z.ZodNumber;
89
+ categoryPath: z.ZodString;
90
+ }, z.core.$strip>>>;
91
+ blocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
+ isPositionLocked: z.ZodOptional<z.ZodBoolean>;
93
+ relatedIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
94
+ paymentStages: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
95
+ distance: z.ZodOptional<z.ZodNumber>;
96
+ discountConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>;
99
+ /**
100
+ * Blocks response schema
101
+ */
102
+ export declare const BlocksResponseSchema: z.ZodObject<{
103
+ items: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodNumber;
105
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
106
+ version: z.ZodNumber;
107
+ position: z.ZodNumber;
108
+ identifier: z.ZodString;
109
+ type: z.ZodString;
110
+ templateIdentifier: z.ZodNullable<z.ZodString>;
111
+ isVisible: z.ZodBoolean;
112
+ attributeValues: z.ZodRecord<z.ZodString, z.ZodAny>;
113
+ similarProducts: z.ZodOptional<z.ZodObject<{
114
+ items: z.ZodArray<z.ZodObject<{
115
+ id: z.ZodNumber;
116
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
117
+ statusIdentifier: z.ZodNullable<z.ZodString>;
118
+ statusLocalizeInfos: z.ZodRecord<z.ZodString, z.ZodUnknown>;
119
+ attributeSetIdentifier: z.ZodNullable<z.ZodString>;
120
+ position: z.ZodNumber;
121
+ price: z.ZodNullable<z.ZodNumber>;
122
+ additional: z.ZodObject<{
123
+ prices: z.ZodObject<{
124
+ min: z.ZodNumber;
125
+ max: z.ZodNumber;
126
+ }, z.core.$strip>;
127
+ }, z.core.$strip>;
128
+ sku: z.ZodNullable<z.ZodString>;
129
+ isSync: z.ZodBoolean;
130
+ attributeValues: z.ZodRecord<z.ZodString, z.ZodAny>;
131
+ categories: z.ZodArray<z.ZodString>;
132
+ isVisible: z.ZodBoolean;
133
+ moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
134
+ rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
135
+ templateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
136
+ shortDescTemplateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
137
+ signedPrice: z.ZodOptional<z.ZodString>;
138
+ productPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
+ id: z.ZodNumber;
140
+ pageId: z.ZodNumber;
141
+ productId: z.ZodNumber;
142
+ positionId: z.ZodNumber;
143
+ categoryPath: z.ZodString;
144
+ }, z.core.$strip>>>;
145
+ blocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ isPositionLocked: z.ZodOptional<z.ZodBoolean>;
147
+ relatedIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
148
+ paymentStages: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
149
+ distance: z.ZodOptional<z.ZodNumber>;
150
+ discountConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
151
+ }, z.core.$strip>>;
152
+ total: z.ZodNumber;
153
+ totalFound: z.ZodOptional<z.ZodNumber>;
154
+ }, z.core.$strip>>;
155
+ countElementsPerRow: z.ZodOptional<z.ZodNumber>;
156
+ quantity: z.ZodOptional<z.ZodNumber>;
157
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
158
+ id: z.ZodNumber;
159
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
160
+ statusIdentifier: z.ZodNullable<z.ZodString>;
161
+ statusLocalizeInfos: z.ZodRecord<z.ZodString, z.ZodUnknown>;
162
+ attributeSetIdentifier: z.ZodNullable<z.ZodString>;
163
+ position: z.ZodNumber;
164
+ price: z.ZodNullable<z.ZodNumber>;
165
+ additional: z.ZodObject<{
166
+ prices: z.ZodObject<{
167
+ min: z.ZodNumber;
168
+ max: z.ZodNumber;
169
+ }, z.core.$strip>;
170
+ }, z.core.$strip>;
171
+ sku: z.ZodNullable<z.ZodString>;
172
+ isSync: z.ZodBoolean;
173
+ attributeValues: z.ZodRecord<z.ZodString, z.ZodAny>;
174
+ categories: z.ZodArray<z.ZodString>;
175
+ isVisible: z.ZodBoolean;
176
+ moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
177
+ rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
178
+ templateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
179
+ shortDescTemplateIdentifier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
180
+ signedPrice: z.ZodOptional<z.ZodString>;
181
+ productPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
+ id: z.ZodNumber;
183
+ pageId: z.ZodNumber;
184
+ productId: z.ZodNumber;
185
+ positionId: z.ZodNumber;
186
+ categoryPath: z.ZodString;
187
+ }, z.core.$strip>>>;
188
+ blocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
+ isPositionLocked: z.ZodOptional<z.ZodBoolean>;
190
+ relatedIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
191
+ paymentStages: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
192
+ distance: z.ZodOptional<z.ZodNumber>;
193
+ discountConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
194
+ }, z.core.$strip>>>;
195
+ }, z.core.$strip>>;
196
+ total: z.ZodNumber;
197
+ }, z.core.$strip>;
198
+ /**
199
+ * Search block schema
200
+ */
201
+ export declare const SearchBlockSchema: z.ZodObject<{
202
+ id: z.ZodNumber;
203
+ identifier: z.ZodString;
204
+ name: z.ZodString;
205
+ }, z.core.$strip>;
206
+ /**
207
+ * Search blocks response schema
208
+ */
209
+ export declare const SearchBlocksResponseSchema: z.ZodArray<z.ZodObject<{
210
+ id: z.ZodNumber;
211
+ identifier: z.ZodString;
212
+ name: z.ZodString;
213
+ }, z.core.$strip>>;
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ import { ProductEntitySchema, ProductsResponseSchema, } from '../products/productsSchemas.js';
3
+ /**
4
+ * Block entity schema
5
+ * Includes all fields returned by the API
6
+ */
7
+ export const BlockEntitySchema = z.object({
8
+ id: z.number(),
9
+ localizeInfos: z.record(z.string(), z.any()),
10
+ version: z.number(),
11
+ position: z.number(),
12
+ identifier: z.string(),
13
+ type: z.string(),
14
+ templateIdentifier: z.string().nullable(),
15
+ isVisible: z.boolean(),
16
+ attributeValues: z.record(z.string(), z.any()),
17
+ similarProducts: ProductsResponseSchema.optional(),
18
+ countElementsPerRow: z.number().optional(),
19
+ quantity: z.number().optional(),
20
+ products: z.array(ProductEntitySchema).optional(),
21
+ });
22
+ /**
23
+ * Blocks response schema
24
+ */
25
+ export const BlocksResponseSchema = z.object({
26
+ items: z.array(BlockEntitySchema),
27
+ total: z.number(),
28
+ });
29
+ /**
30
+ * Search block schema
31
+ */
32
+ export const SearchBlockSchema = z.object({
33
+ id: z.number(),
34
+ identifier: z.string(),
35
+ name: z.string(),
36
+ });
37
+ /**
38
+ * Search blocks response schema
39
+ */
40
+ export const SearchBlocksResponseSchema = z.array(SearchBlockSchema);