oneentry 1.0.161 → 1.0.162

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 (50) hide show
  1. package/changelog.md +21 -3
  2. package/dist/admins/adminsInterfaces.d.ts +2 -0
  3. package/dist/admins/adminsSchemas.d.ts +2 -0
  4. package/dist/admins/adminsSchemas.js +1 -0
  5. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +2 -0
  6. package/dist/auth-provider/authProviderSchemas.d.ts +1 -0
  7. package/dist/base/validation.d.ts +1 -0
  8. package/dist/base/validation.js +1 -0
  9. package/dist/blocks/blocksApi.d.ts +16 -8
  10. package/dist/blocks/blocksApi.js +24 -15
  11. package/dist/blocks/blocksInterfaces.d.ts +16 -8
  12. package/dist/discounts/discountsInterfaces.d.ts +2 -0
  13. package/dist/forms-data/formsDataInterfaces.d.ts +9 -5
  14. package/dist/menus/menusInterfaces.d.ts +4 -0
  15. package/dist/menus/menusSchemas.js +2 -0
  16. package/dist/orders/ordersInterfaces.d.ts +2 -0
  17. package/dist/orders/ordersSchemas.d.ts +2 -0
  18. package/dist/orders/ordersSchemas.js +1 -0
  19. package/dist/pages/pagesApi.d.ts +1 -11
  20. package/dist/pages/pagesApi.js +0 -17
  21. package/dist/pages/pagesInterfaces.d.ts +3 -20
  22. package/dist/pages/pagesSchemas.d.ts +3 -7
  23. package/dist/pages/pagesSchemas.js +2 -8
  24. package/dist/users/usersInterfaces.d.ts +2 -0
  25. package/dist/users/usersSchemas.d.ts +1 -0
  26. package/esm/admins/adminsInterfaces.d.ts +2 -0
  27. package/esm/admins/adminsSchemas.d.ts +2 -0
  28. package/esm/admins/adminsSchemas.js +1 -0
  29. package/esm/attribute-sets/attributeSetsInterfaces.d.ts +2 -0
  30. package/esm/auth-provider/authProviderSchemas.d.ts +1 -0
  31. package/esm/base/validation.d.ts +1 -0
  32. package/esm/base/validation.js +1 -0
  33. package/esm/blocks/blocksApi.d.ts +16 -8
  34. package/esm/blocks/blocksApi.js +24 -15
  35. package/esm/blocks/blocksInterfaces.d.ts +16 -8
  36. package/esm/discounts/discountsInterfaces.d.ts +2 -0
  37. package/esm/forms-data/formsDataInterfaces.d.ts +9 -5
  38. package/esm/menus/menusInterfaces.d.ts +4 -0
  39. package/esm/menus/menusSchemas.js +2 -0
  40. package/esm/orders/ordersInterfaces.d.ts +2 -0
  41. package/esm/orders/ordersSchemas.d.ts +2 -0
  42. package/esm/orders/ordersSchemas.js +1 -0
  43. package/esm/pages/pagesApi.d.ts +1 -11
  44. package/esm/pages/pagesApi.js +0 -17
  45. package/esm/pages/pagesInterfaces.d.ts +3 -20
  46. package/esm/pages/pagesSchemas.d.ts +3 -7
  47. package/esm/pages/pagesSchemas.js +1 -7
  48. package/esm/users/usersInterfaces.d.ts +2 -0
  49. package/esm/users/usersSchemas.d.ts +1 -0
  50. package/package.json +2 -2
package/changelog.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # SDK Change Log
2
2
 
3
+ ## v.1.0.162
4
+
5
+ ### What's New
6
+
7
+ - `distance?: number` is now declared on the entities the vector search endpoints return — `IAdminEntity`, `IDiscountsEntity`, `IOrderByMarkerEntity`, `IPagesEntity`, `IUserEntity`, `IFormDataSearchEntity` — and validated by the matching Zod schemas, mirroring `IProductsEntity.distance`. The field is the cosine distance to the query and is returned **only** when the search body carries `debug: true`.
8
+
9
+ - AttributeSets > `IAttributeSchemaItem.multiselect?: boolean` — for `list` fields, whether several options from `listTitles` may be selected. The panel has always stored the flag; the API only now declares it. Note it is still absent from every attribute the test project returns, so the field is declared but not yet observed in real data.
10
+
11
+ - Menus > `IMenusPages` — `parentType?: 'page' | 'custom' | null` and `itemType?: 'page' | 'custom'` are now declared (and validated by `MenusPagesSchema`). Page ids and custom item ids overlap, so `parentId` alone addresses a parent ambiguously; `itemType` is the value an item's children must pass in `parentType`. Both are already returned by the API.
12
+
13
+ ### What's Changed
14
+
15
+ - Blocks > the eight recommendation methods (`getCartComplement`, `getCartSimilar`, `getPersonalRecommendations`, `getRecentlyViewed`, `getRepeatPurchase`, `getTrending`, `getWishlistSimilar`, `getFrequentlyOrderedProducts`) accept a trailing optional `limit` — the query parameter the endpoints now support. It is not defaulted: when omitted, the block's own quantity setting keeps applying, so existing calls are unchanged.
16
+
17
+ - FormData > `IFormDataSearchEntity` — `formModuleId?: number` is added, and `userIdentifier` / `parentId` are widened to `string | null` / `number | null`. `formModuleId` is absent from the swagger schema but present in every record the endpoint returns; the two nullable fields are declared non-nullable there while the real data returns `null`.
18
+
19
+ ### What's Deleted
20
+
21
+ - **Breaking** — Pages > `getConfigPageByUrl` is removed, along with the `IPageConfig` type and `PageConfigSchema`. The API dropped `GET /api/content/pages/{url}/config` (and its `ConfigPageDto`); the route now answers `404`. Page display settings are available through the `config` field of a page entity.
22
+
3
23
  ## v.1.0.161
4
24
 
5
25
  ### What's New
@@ -10,7 +30,7 @@
10
30
  const { Search } = defineOneEntry('your-url', config)
11
31
 
12
32
  const all = await Search.globalSearch('winter')
13
- // drilldown: offset/limit are applied by the API only when a single type is requested
33
+ // drilldown: offset/limit require exactly one accessible type, else the API answers 400
14
34
  const products = await Search.globalSearch('winter', ['products'], 'visible', 0, 20)
15
35
  ```
16
36
 
@@ -27,8 +47,6 @@
27
47
  - Pages > `getPagesByVectorSearch` → `IPagesResponse`;
28
48
  - Users > `getUsersByVectorSearch` → `IUsersResponse` (requires user authorization).
29
49
 
30
- All six answer `500` on the test project at the time of release — the SDK side follows the documented contract, which is the same `ItemsWithTotal` container the working products endpoint returns.
31
-
32
50
  - FormData > `IFormDataSearchEntity` — new exported type for the records returned by the form data vector search. It carries the moderation and sender fields of the raw record (`status`, `ip`, `fingerprint`, `isUserAdmin`, `userIdentifier`, `entityIdentifier`, `parentId`), which `IFormDataEntity` does not declare.
33
51
 
34
52
  ### What's Changed
@@ -109,6 +109,7 @@ interface IPosition {
109
109
  }
110
110
  ]
111
111
  * @property {IFormConfig[]} [moduleFormConfigs] - Array of module form configurations associated with the admin.
112
+ * @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
112
113
  * @description This interface captures the essential details and additional attributes of an admin entity.
113
114
  */
114
115
  interface IAdminEntity {
@@ -120,6 +121,7 @@ interface IAdminEntity {
120
121
  isSync: boolean;
121
122
  attributeValues: IAttributeValues;
122
123
  moduleFormConfigs?: IFormConfig[];
124
+ distance?: number;
123
125
  }
124
126
  /**
125
127
  * Interface representing a query for fetching admin data.
@@ -22,6 +22,7 @@ export declare const AdminEntitySchema: z.ZodObject<{
22
22
  additionalFields?: Record<string, unknown> | unknown[];
23
23
  }, unknown>>>>;
24
24
  moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
25
+ distance: z.ZodOptional<z.ZodNumber>;
25
26
  }, z.core.$strip>;
26
27
  /**
27
28
  * Admins response schema (array of admin entities)
@@ -45,4 +46,5 @@ export declare const AdminsResponseSchema: z.ZodArray<z.ZodObject<{
45
46
  additionalFields?: Record<string, unknown> | unknown[];
46
47
  }, unknown>>>>;
47
48
  moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
49
+ distance: z.ZodOptional<z.ZodNumber>;
48
50
  }, z.core.$strip>>;
@@ -27,6 +27,7 @@ exports.AdminEntitySchema = zod_1.z.object({
27
27
  isSync: zod_1.z.boolean(),
28
28
  attributeValues: zod_1.z.record(zod_1.z.string(), zod_1.z.record(zod_1.z.string(), AttributeValueSchema)),
29
29
  moduleFormConfigs: zod_1.z.array(zod_1.z.any()).optional(),
30
+ distance: zod_1.z.number().optional(),
30
31
  });
31
32
  /**
32
33
  * Admins response schema (array of admin entities)
@@ -146,6 +146,7 @@ interface IAttributesSetsEntity {
146
146
  * @property {number} [position] - Sort position of the field inside the set. Optional. Example: 1.
147
147
  * @property {IListTitle[]} [listTitles] - Options for `list`/`radioButton`/`entity` fields (with extended data or linked-entity values). Optional.
148
148
  * @property {string} [listType] - For `entity` fields — how the option list is organized. Optional. Example: "nested".
149
+ * @property {boolean} [multiselect] - For `list` fields — whether several options from `listTitles` may be selected. Optional. Example: false.
149
150
  * @property {string} [moduleIdentifier] - For `entity` fields — identifier of the module the linked entities are taken from. Optional. Example: "catalog".
150
151
  * @property {number | null} [parentId] - Identifier of the parent field, `null` for top-level. Optional, seen on `groupOfImages` fields.
151
152
  * @property {Record<string, IAttributeSchemaItem>} [additionalFields] - Nested sub-fields keyed by marker. Optional.
@@ -171,6 +172,7 @@ interface IAttributeSchemaItem {
171
172
  type: AttributeType;
172
173
  position?: number;
173
174
  listTitles?: IListTitle[];
175
+ multiselect?: boolean;
174
176
  listType?: string;
175
177
  moduleIdentifier?: string;
176
178
  parentId?: number | null;
@@ -54,6 +54,7 @@ export declare const UserResponseSchema: z.ZodObject<{
54
54
  state: z.ZodRecord<z.ZodString, z.ZodAny>;
55
55
  moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
56
56
  rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
57
+ distance: z.ZodOptional<z.ZodNumber>;
57
58
  }, z.core.$strip>;
58
59
  /**
59
60
  * Auth provider entity schema
@@ -50,6 +50,7 @@ export declare const UserEntitySchema: z.ZodObject<{
50
50
  state: z.ZodRecord<z.ZodString, z.ZodAny>;
51
51
  moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
52
52
  rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
53
+ distance: z.ZodOptional<z.ZodNumber>;
53
54
  }, z.core.$strip>;
54
55
  /**
55
56
  * Auth entity schema
@@ -53,6 +53,7 @@ exports.UserEntitySchema = zod_1.z.object({
53
53
  state: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
54
54
  moduleFormConfigs: zod_1.z.array(zod_1.z.any()).optional(),
55
55
  rating: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
56
+ distance: zod_1.z.number().optional(),
56
57
  });
57
58
  /**
58
59
  * Auth entity schema
@@ -96,11 +96,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
96
96
  * @param {string} [langCode] - Language code. Default: "en_US".
97
97
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
98
98
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
99
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
99
100
  * @returns {Promise<IProductsResponse | IError>} Returns a products response with items and total.
100
101
  * @throws {IError} When isShell=false and an error occurs during the fetch
101
102
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getFrequentlyOrderedProducts getFrequentlyOrderedProducts} documentation.
102
103
  */
103
- getFrequentlyOrderedProducts(productId: number, marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
104
+ getFrequentlyOrderedProducts(productId: number, marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
104
105
  /**
105
106
  * Quick search for block objects with limited output.
106
107
  * @handleName searchBlock
@@ -118,11 +119,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
118
119
  * @param {string} [langCode] - Language code. Default: "en_US".
119
120
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
120
121
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
122
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
121
123
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
122
124
  * @throws {IError} When isShell=false and an error occurs during the fetch
123
125
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getCartComplement getCartComplement} documentation.
124
126
  */
125
- getCartComplement(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
127
+ getCartComplement(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
126
128
  /**
127
129
  * Get "complete your cart" products by an explicit list of productIds (POST body).
128
130
  * @handleName getCartComplementByProductIds
@@ -145,11 +147,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
145
147
  * @param {string} [langCode] - Language code. Default: "en_US".
146
148
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
147
149
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
150
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
148
151
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
149
152
  * @throws {IError} When isShell=false and an error occurs during the fetch
150
153
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getCartSimilar getCartSimilar} documentation.
151
154
  */
152
- getCartSimilar(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
155
+ getCartSimilar(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
153
156
  /**
154
157
  * Get "similar to cart" products by an explicit list of productIds (POST body).
155
158
  * @handleName getCartSimilarByProductIds
@@ -172,11 +175,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
172
175
  * @param {string} [langCode] - Language code. Default: "en_US".
173
176
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
174
177
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
178
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
175
179
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
176
180
  * @throws {IError} When isShell=false and an error occurs during the fetch
177
181
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getPersonalRecommendations getPersonalRecommendations} documentation.
178
182
  */
179
- getPersonalRecommendations(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
183
+ getPersonalRecommendations(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
180
184
  /**
181
185
  * Get recently viewed products.
182
186
  * @handleName getRecentlyViewed
@@ -184,11 +188,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
184
188
  * @param {string} [langCode] - Language code. Default: "en_US".
185
189
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
186
190
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
191
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
187
192
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
188
193
  * @throws {IError} When isShell=false and an error occurs during the fetch
189
194
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getRecentlyViewed getRecentlyViewed} documentation.
190
195
  */
191
- getRecentlyViewed(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
196
+ getRecentlyViewed(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
192
197
  /**
193
198
  * Get products for repeat purchase.
194
199
  * @handleName getRepeatPurchase
@@ -196,11 +201,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
196
201
  * @param {string} [langCode] - Language code. Default: "en_US".
197
202
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
198
203
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
204
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
199
205
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
200
206
  * @throws {IError} When isShell=false and an error occurs during the fetch
201
207
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getRepeatPurchase getRepeatPurchase} documentation.
202
208
  */
203
- getRepeatPurchase(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
209
+ getRepeatPurchase(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
204
210
  /**
205
211
  * Get the block's slides tree as a flat pre-order array (slider_block only).
206
212
  * @handleName getSlides
@@ -217,11 +223,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
217
223
  * @param {string} [langCode] - Language code. Default: "en_US".
218
224
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
219
225
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
226
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
220
227
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
221
228
  * @throws {IError} When isShell=false and an error occurs during the fetch
222
229
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getTrending getTrending} documentation.
223
230
  */
224
- getTrending(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
231
+ getTrending(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
225
232
  /**
226
233
  * Get "similar to wishlist" products by the wishlist from context (auth user or guest).
227
234
  * @handleName getWishlistSimilar
@@ -229,11 +236,12 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
229
236
  * @param {string} [langCode] - Language code. Default: "en_US".
230
237
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
231
238
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
239
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
232
240
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
233
241
  * @throws {IError} When isShell=false and an error occurs during the fetch
234
242
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getWishlistSimilar getWishlistSimilar} documentation.
235
243
  */
236
- getWishlistSimilar(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
244
+ getWishlistSimilar(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
237
245
  /**
238
246
  * Get "similar to wishlist" products by an explicit list of productIds (POST body).
239
247
  * @handleName getWishlistSimilarByProductIds
@@ -223,14 +223,16 @@ class BlocksApi extends asyncModules_1.default {
223
223
  * @param {string} [langCode] - Language code. Default: "en_US".
224
224
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
225
225
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
226
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
226
227
  * @returns {Promise<IProductsResponse | IError>} Returns a products response with items and total.
227
228
  * @throws {IError} When isShell=false and an error occurs during the fetch
228
229
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getFrequentlyOrderedProducts getFrequentlyOrderedProducts} documentation.
229
230
  */
230
- async getFrequentlyOrderedProducts(productId, marker, langCode = this.state.lang, signPrice) {
231
+ async getFrequentlyOrderedProducts(productId, marker, langCode = this.state.lang, signPrice, limit) {
231
232
  const query = {
232
233
  langCode,
233
234
  signPrice,
235
+ limit,
234
236
  };
235
237
  const data = await this._fetchGet(`/${marker}/products/${productId}/frequently-ordered?` +
236
238
  this._queryParamsToString(query));
@@ -258,12 +260,13 @@ class BlocksApi extends asyncModules_1.default {
258
260
  * @param {string} [langCode] - Language code. Default: "en_US".
259
261
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
260
262
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
263
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
261
264
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
262
265
  * @throws {IError} When isShell=false and an error occurs during the fetch
263
266
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getCartComplement getCartComplement} documentation.
264
267
  */
265
- async getCartComplement(marker, langCode = this.state.lang, signPrice) {
266
- const query = { langCode, signPrice };
268
+ async getCartComplement(marker, langCode = this.state.lang, signPrice, limit) {
269
+ const query = { langCode, signPrice, limit };
267
270
  const data = await this._fetchGet(`/${marker}/cart-complement?` + this._queryParamsToString(query));
268
271
  return this._normalizeData(data);
269
272
  }
@@ -292,12 +295,13 @@ class BlocksApi extends asyncModules_1.default {
292
295
  * @param {string} [langCode] - Language code. Default: "en_US".
293
296
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
294
297
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
298
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
295
299
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
296
300
  * @throws {IError} When isShell=false and an error occurs during the fetch
297
301
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getCartSimilar getCartSimilar} documentation.
298
302
  */
299
- async getCartSimilar(marker, langCode = this.state.lang, signPrice) {
300
- const query = { langCode, signPrice };
303
+ async getCartSimilar(marker, langCode = this.state.lang, signPrice, limit) {
304
+ const query = { langCode, signPrice, limit };
301
305
  const data = await this._fetchGet(`/${marker}/cart-similar?` + this._queryParamsToString(query));
302
306
  return this._normalizeData(data);
303
307
  }
@@ -326,12 +330,13 @@ class BlocksApi extends asyncModules_1.default {
326
330
  * @param {string} [langCode] - Language code. Default: "en_US".
327
331
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
328
332
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
333
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
329
334
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
330
335
  * @throws {IError} When isShell=false and an error occurs during the fetch
331
336
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getPersonalRecommendations getPersonalRecommendations} documentation.
332
337
  */
333
- async getPersonalRecommendations(marker, langCode = this.state.lang, signPrice) {
334
- const query = { langCode, signPrice };
338
+ async getPersonalRecommendations(marker, langCode = this.state.lang, signPrice, limit) {
339
+ const query = { langCode, signPrice, limit };
335
340
  const data = await this._fetchGet(`/${marker}/personal-recommendations?` + this._queryParamsToString(query));
336
341
  return this._normalizeData(data);
337
342
  }
@@ -342,12 +347,13 @@ class BlocksApi extends asyncModules_1.default {
342
347
  * @param {string} [langCode] - Language code. Default: "en_US".
343
348
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
344
349
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
350
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
345
351
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
346
352
  * @throws {IError} When isShell=false and an error occurs during the fetch
347
353
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getRecentlyViewed getRecentlyViewed} documentation.
348
354
  */
349
- async getRecentlyViewed(marker, langCode = this.state.lang, signPrice) {
350
- const query = { langCode, signPrice };
355
+ async getRecentlyViewed(marker, langCode = this.state.lang, signPrice, limit) {
356
+ const query = { langCode, signPrice, limit };
351
357
  const data = await this._fetchGet(`/${marker}/recently-viewed?` + this._queryParamsToString(query));
352
358
  return this._normalizeData(data);
353
359
  }
@@ -358,12 +364,13 @@ class BlocksApi extends asyncModules_1.default {
358
364
  * @param {string} [langCode] - Language code. Default: "en_US".
359
365
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
360
366
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
367
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
361
368
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
362
369
  * @throws {IError} When isShell=false and an error occurs during the fetch
363
370
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getRepeatPurchase getRepeatPurchase} documentation.
364
371
  */
365
- async getRepeatPurchase(marker, langCode = this.state.lang, signPrice) {
366
- const query = { langCode, signPrice };
372
+ async getRepeatPurchase(marker, langCode = this.state.lang, signPrice, limit) {
373
+ const query = { langCode, signPrice, limit };
367
374
  const data = await this._fetchGet(`/${marker}/repeat-purchase?` + this._queryParamsToString(query));
368
375
  return this._normalizeData(data);
369
376
  }
@@ -386,12 +393,13 @@ class BlocksApi extends asyncModules_1.default {
386
393
  * @param {string} [langCode] - Language code. Default: "en_US".
387
394
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
388
395
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
396
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
389
397
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
390
398
  * @throws {IError} When isShell=false and an error occurs during the fetch
391
399
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getTrending getTrending} documentation.
392
400
  */
393
- async getTrending(marker, langCode = this.state.lang, signPrice) {
394
- const query = { langCode, signPrice };
401
+ async getTrending(marker, langCode = this.state.lang, signPrice, limit) {
402
+ const query = { langCode, signPrice, limit };
395
403
  const data = await this._fetchGet(`/${marker}/trending?` + this._queryParamsToString(query));
396
404
  return this._normalizeData(data);
397
405
  }
@@ -402,12 +410,13 @@ class BlocksApi extends asyncModules_1.default {
402
410
  * @param {string} [langCode] - Language code. Default: "en_US".
403
411
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
404
412
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
413
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
405
414
  * @returns {Promise<IProductsResponse | IError>} Returns an object with an array of products, total count and totalFound.
406
415
  * @throws {IError} When isShell=false and an error occurs during the fetch
407
416
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/getWishlistSimilar getWishlistSimilar} documentation.
408
417
  */
409
- async getWishlistSimilar(marker, langCode = this.state.lang, signPrice) {
410
- const query = { langCode, signPrice };
418
+ async getWishlistSimilar(marker, langCode = this.state.lang, signPrice, limit) {
419
+ const query = { langCode, signPrice, limit };
411
420
  const data = await this._fetchGet(`/${marker}/wishlist-similar?` + this._queryParamsToString(query));
412
421
  return this._normalizeData(data);
413
422
  }
@@ -48,10 +48,11 @@ interface IBlocks {
48
48
  * @param {string} [langCode] - Language code. Default: "en_US".
49
49
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
50
50
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
51
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
51
52
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total) or an error.
52
53
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
53
54
  */
54
- getFrequentlyOrderedProducts(productId: number, marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
55
+ getFrequentlyOrderedProducts(productId: number, marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
55
56
  /**
56
57
  * Get "complete your cart" products by the cart from context (auth user or guest).
57
58
  * @handleName getCartComplement
@@ -59,10 +60,11 @@ interface IBlocks {
59
60
  * @param {string} [langCode] - Language code. Default: "en_US".
60
61
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
61
62
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
63
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
62
64
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
63
65
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
64
66
  */
65
- getCartComplement(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
67
+ getCartComplement(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
66
68
  /**
67
69
  * Get "complete your cart" products by an explicit list of productIds (POST body).
68
70
  * @handleName getCartComplementByProductIds
@@ -84,10 +86,11 @@ interface IBlocks {
84
86
  * @param {string} [langCode] - Language code. Default: "en_US".
85
87
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
86
88
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
89
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
87
90
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
88
91
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
89
92
  */
90
- getCartSimilar(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
93
+ getCartSimilar(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
91
94
  /**
92
95
  * Get "similar to cart" products by an explicit list of productIds (POST body).
93
96
  * @handleName getCartSimilarByProductIds
@@ -109,10 +112,11 @@ interface IBlocks {
109
112
  * @param {string} [langCode] - Language code. Default: "en_US".
110
113
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
111
114
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
115
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
112
116
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
113
117
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
114
118
  */
115
- getPersonalRecommendations(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
119
+ getPersonalRecommendations(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
116
120
  /**
117
121
  * Get recently viewed products.
118
122
  * @handleName getRecentlyViewed
@@ -120,10 +124,11 @@ interface IBlocks {
120
124
  * @param {string} [langCode] - Language code. Default: "en_US".
121
125
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
122
126
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
127
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
123
128
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
124
129
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
125
130
  */
126
- getRecentlyViewed(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
131
+ getRecentlyViewed(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
127
132
  /**
128
133
  * Get products for repeat purchase.
129
134
  * @handleName getRepeatPurchase
@@ -131,10 +136,11 @@ interface IBlocks {
131
136
  * @param {string} [langCode] - Language code. Default: "en_US".
132
137
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
133
138
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
139
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
134
140
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
135
141
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
136
142
  */
137
- getRepeatPurchase(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
143
+ getRepeatPurchase(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
138
144
  /**
139
145
  * Get the block's slides tree as a flat pre-order array (slider_block only).
140
146
  * @handleName getSlides
@@ -150,10 +156,11 @@ interface IBlocks {
150
156
  * @param {string} [langCode] - Language code. Default: "en_US".
151
157
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
152
158
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
159
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
153
160
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
154
161
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
155
162
  */
156
- getTrending(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
163
+ getTrending(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
157
164
  /**
158
165
  * Get "similar to wishlist" products by the wishlist from context (auth user or guest).
159
166
  * @handleName getWishlistSimilar
@@ -161,10 +168,11 @@ interface IBlocks {
161
168
  * @param {string} [langCode] - Language code. Default: "en_US".
162
169
  * @param {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
163
170
  * @see {@link https://js-sdk.oneentry.cloud/docs/blocks/#Fixing-the-price-signPrice Fixing the price} documentation.
171
+ * @param {number} [limit] - Maximum number of products to return. When omitted, the block's own quantity setting applies. Example: 10.
164
172
  * @returns {IProductsResponse} A promise that resolves to a products response (items + total + totalFound) or an error.
165
173
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
166
174
  */
167
- getWishlistSimilar(marker: string, langCode?: string, signPrice?: string): Promise<IProductsResponse | IError>;
175
+ getWishlistSimilar(marker: string, langCode?: string, signPrice?: string, limit?: number): Promise<IProductsResponse | IError>;
168
176
  /**
169
177
  * Get "similar to wishlist" products by an explicit list of productIds (POST body).
170
178
  * @handleName getWishlistSimilarByProductIds
@@ -134,6 +134,7 @@ interface IDiscountCondition {
134
134
  * @property {Record<string, unknown>} [bonusEvent] - Bonus event configuration.
135
135
  * @property {number} [position] - Position number for sorting. Example: 1.
136
136
  * @property {number | string} [total] - Total count of related entries. Example: "1".
137
+ * @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
137
138
  */
138
139
  interface IDiscountsEntity {
139
140
  id: number;
@@ -157,6 +158,7 @@ interface IDiscountsEntity {
157
158
  bonusEvent?: Record<string, unknown> | null;
158
159
  position?: number;
159
160
  total?: number | string;
161
+ distance?: number;
160
162
  }
161
163
  /**
162
164
  * @interface IDiscountValue
@@ -112,13 +112,15 @@ interface IFormsDataVectorSearch {
112
112
  "value": "Test"
113
113
  }
114
114
  ]
115
- * @property {string} [userIdentifier] - Text identifier of the user who submitted the form. Example: "user_12345".
116
- * @property {string} [entityIdentifier] - Text identifier of the entity the record belongs to. Example: "product_1".
117
- * @property {number} [parentId] - Identifier of the parent form data record. Example: 1.
115
+ * @property {string | null} [userIdentifier] - Text identifier of the user who submitted the form, or `null` for an anonymous submission. Example: null.
116
+ * @property {string} [entityIdentifier] - Text identifier of the entity the record belongs to. Example: "blog".
117
+ * @property {number | null} [parentId] - Identifier of the parent form data record, or `null` for a top-level record. Example: null.
118
118
  * @property {string} [ip] - IP address the form was submitted from. Example: "127.0.0.1".
119
119
  * @property {string} [fingerprint] - Device fingerprint of the sender. Example: "UQ_123456_abcdef".
120
120
  * @property {boolean} [isUserAdmin] - Whether the record was submitted by an admin. Example: false.
121
121
  * @property {'sent' | 'banned' | 'deleted' | 'moderation' | 'approved'} [status] - Moderation status of the record. Example: "sent".
122
+ * @property {number} [formModuleId] - Identifier of the form module the record belongs to. Example: 2.
123
+ * @property {number} [distance] - Cosine distance to the query. Returned only when `debug: true` is passed in the search body. Example: 0.12.
122
124
  * @description This interface defines a form data record as returned by the semantic (vector) search endpoint. Unlike IFormDataEntity it carries the moderation and sender fields of the raw record.
123
125
  */
124
126
  interface IFormDataSearchEntity {
@@ -126,13 +128,15 @@ interface IFormDataSearchEntity {
126
128
  formIdentifier?: string;
127
129
  time?: Date | string;
128
130
  formData?: FormDataType[];
129
- userIdentifier?: string;
131
+ userIdentifier?: string | null;
130
132
  entityIdentifier?: string;
131
- parentId?: number;
133
+ parentId?: number | null;
132
134
  ip?: string;
133
135
  fingerprint?: string;
134
136
  isUserAdmin?: boolean;
135
137
  status?: 'sent' | 'banned' | 'deleted' | 'moderation' | 'approved';
138
+ formModuleId?: number;
139
+ distance?: number;
136
140
  }
137
141
  /**
138
142
  * @interface IFormsDataSearchResponse
@@ -44,6 +44,8 @@ interface IMenus {
44
44
  }
45
45
  * @property {number} position - The menu position. Example: 1.
46
46
  * @property {number | null} parentId - The menu parent id. Example: null.
47
+ * @property {'page' | 'custom' | null} [parentType] - Kind of the parent item: `page` for a menu page, `custom` for a custom item; `null` together with `parentId` means top level. Page ids and custom item ids overlap, so the parent is ambiguous without it. Example: null.
48
+ * @property {'page' | 'custom'} [itemType] - Kind of this item itself: `page` or `custom`. This is the value the item's children must pass in `parentType`. Example: "page".
47
49
  * @description This interface defines the structure of a menu page entity, including its identifiers, localization information, attributes, and hierarchical relationships.
48
50
  */
49
51
  interface IMenusPages {
@@ -54,6 +56,8 @@ interface IMenusPages {
54
56
  attributeValues: IAttributeValues;
55
57
  position: number;
56
58
  parentId: number | null;
59
+ parentType?: 'page' | 'custom' | null;
60
+ itemType?: 'page' | 'custom';
57
61
  }
58
62
  /**
59
63
  * @interface IMenusEntity
@@ -15,6 +15,8 @@ exports.MenusPagesSchema = zod_1.z.lazy(() => zod_1.z.object({
15
15
  attributeValues: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
16
16
  position: zod_1.z.number(),
17
17
  parentId: zod_1.z.number().nullable(),
18
+ parentType: zod_1.z.enum(['page', 'custom']).nullable().optional(),
19
+ itemType: zod_1.z.enum(['page', 'custom']).optional(),
18
20
  }));
19
21
  /**
20
22
  * Menu entity schema
@@ -601,6 +601,7 @@ interface IOrderSplit {
601
601
  * @property {ILocalizeInfo | null} [paymentStatusLocalizeInfos] - Localized payment status name; null while no payment status is assigned.
602
602
  * @property {IOrderDiscountConfig | null} [discountConfig] - Resolved discount configuration applied to the order (orderDiscounts, productDiscounts, coupon, settings, bonus, totals); null on older orders without a resolved discount config.
603
603
  * @property {IOrderSplit} [split] - Split (staged) payment configuration; present on the by-id order endpoint.
604
+ * @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
604
605
  * @description Represents an order storage object created by the user.
605
606
  */
606
607
  interface IOrderByMarkerEntity {
@@ -628,6 +629,7 @@ interface IOrderByMarkerEntity {
628
629
  paymentStatusLocalizeInfos?: ILocalizeInfo | null;
629
630
  discountConfig?: IOrderDiscountConfig | null;
630
631
  split?: IOrderSplit;
632
+ distance?: number;
631
633
  }
632
634
  /**
633
635
  * Interface representing an order status object.
@@ -112,6 +112,7 @@ export declare const OrderEntitySchema: z.ZodObject<{
112
112
  status: z.ZodString;
113
113
  }, z.core.$strip>>;
114
114
  }, z.core.$strip>>;
115
+ distance: z.ZodOptional<z.ZodNumber>;
115
116
  }, z.core.$strip>;
116
117
  /**
117
118
  * Orders list response schema
@@ -180,6 +181,7 @@ export declare const OrdersResponseSchema: z.ZodObject<{
180
181
  status: z.ZodString;
181
182
  }, z.core.$strip>>;
182
183
  }, z.core.$strip>>;
184
+ distance: z.ZodOptional<z.ZodNumber>;
183
185
  }, z.core.$strip>>;
184
186
  total: z.ZodNumber;
185
187
  }, z.core.$strip>;
@@ -100,6 +100,7 @@ exports.OrderEntitySchema = zod_1.z.object({
100
100
  })),
101
101
  })
102
102
  .optional(),
103
+ distance: zod_1.z.number().optional(),
103
104
  });
104
105
  /**
105
106
  * Orders list response schema