sizebay-core-sdk 1.10.0-dev.1 → 1.10.0-dev.3
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 +129 -68
- package/dist/types/ai-image/base/base-image-search.dto.d.ts +2 -1
- package/dist/types/ai-image/base/base-search.dto.d.ts +2 -0
- package/dist/types/ai-image/params/get-complementary-by-image.dto.d.ts +3 -2
- package/dist/types/common/cloth-type.type.d.ts +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,14 +93,16 @@ Fetch products similar to a reference.
|
|
|
93
93
|
<!-- DOCGEN:params GetSimilarProductsParams -->
|
|
94
94
|
| Field | Type | Required | Description |
|
|
95
95
|
| ----- | ---- | :------: | ----------- |
|
|
96
|
-
| `permalink` | string | Yes |
|
|
97
|
-
| `page` | number | No |
|
|
98
|
-
| `perPage` | number | No |
|
|
99
|
-
| `similarityThreshold` | number | No |
|
|
96
|
+
| `permalink` | string | Yes | The URL permalink of the reference product for the similarity search. |
|
|
97
|
+
| `page` | number | No | The page number for pagination. |
|
|
98
|
+
| `perPage` | number | No | The number of items to return per page. |
|
|
99
|
+
| `similarityThreshold` | number | No | The minimum similarity score (0-1) for the results. |
|
|
100
100
|
| `tenantId` | number | Yes | Tenant (client) ID. |
|
|
101
101
|
| `collectionName` | string | Yes | Embeddings collection name (namespace). |
|
|
102
102
|
| `sid` | string | Yes | Session identifier (`sid`) for the user. |
|
|
103
103
|
| `sizeSystem` | string | Yes | Size system code (e.g., 'BR', 'EU', 'US'). |
|
|
104
|
+
| `locale` | string | Yes | Locale for internationalized responses (language and region). |
|
|
105
|
+
| `currency` | string | Yes | Currency code for pricing information in responses. |
|
|
104
106
|
| `filterByWhatFitsMe` | boolean | No | Whether to apply What Fits Me logic. |
|
|
105
107
|
| `personaHash` | string | No | Hash representing the user persona (required if WFM is enabled). |
|
|
106
108
|
<!-- /DOCGEN -->
|
|
@@ -109,11 +111,13 @@ Fetch products similar to a reference.
|
|
|
109
111
|
|
|
110
112
|
<!-- DOCGEN:returns GetSimilarProductsResponse -->
|
|
111
113
|
> **`GetSimilarProductsResponse`**
|
|
112
|
-
> * `data`: `ProductDto[]` —
|
|
113
|
-
|
|
114
|
-
> * `
|
|
115
|
-
> * `
|
|
116
|
-
> * `
|
|
114
|
+
> * `data`: `ProductDto[]` — An array of products that are visually similar to the reference item.
|
|
115
|
+
The results are ordered by their similarity score.
|
|
116
|
+
> * `page`: `number` — The current page number of the results.
|
|
117
|
+
> * `perPage`: `number` — The number of items per page.
|
|
118
|
+
> * `total`: `number` — The total number of similar products found.
|
|
119
|
+
> * `invalidPersonaHash`: `boolean` — Indicates if the provided persona hash is invalid or expired,
|
|
120
|
+
which may affect personalized results.
|
|
117
121
|
<!-- /DOCGEN -->
|
|
118
122
|
|
|
119
123
|
#### Example
|
|
@@ -143,12 +147,16 @@ Retrieve pairs of complementary products.
|
|
|
143
147
|
<!-- DOCGEN:params GetComplementaryProductsParams -->
|
|
144
148
|
| Field | Type | Required | Description |
|
|
145
149
|
| ----- | ---- | :------: | ----------- |
|
|
146
|
-
| `permalink` | string | Yes | URL of the reference product.
|
|
147
|
-
|
|
150
|
+
| `permalink` | string | Yes | The URL permalink of the reference product.
|
|
151
|
+
Its style, color, and category are used to find matching items. |
|
|
152
|
+
| `similarityThreshold` | number | Yes | The minimum similarity score (0-1) for recommended products.
|
|
153
|
+
A higher value yields more similar items, while a lower value provides more variety. |
|
|
148
154
|
| `tenantId` | number | Yes | Tenant (client) ID. |
|
|
149
155
|
| `collectionName` | string | Yes | Embeddings collection name (namespace). |
|
|
150
156
|
| `sid` | string | Yes | Session identifier (`sid`) for the user. |
|
|
151
157
|
| `sizeSystem` | string | Yes | Size system code (e.g., 'BR', 'EU', 'US'). |
|
|
158
|
+
| `locale` | string | Yes | Locale for internationalized responses (language and region). |
|
|
159
|
+
| `currency` | string | Yes | Currency code for pricing information in responses. |
|
|
152
160
|
| `filterByWhatFitsMe` | boolean | No | Whether to apply What Fits Me logic. |
|
|
153
161
|
| `personaHash` | string | No | Hash representing the user persona (required if WFM is enabled). |
|
|
154
162
|
<!-- /DOCGEN -->
|
|
@@ -157,9 +165,11 @@ Retrieve pairs of complementary products.
|
|
|
157
165
|
|
|
158
166
|
<!-- DOCGEN:returns GetComplementaryProductsResponse -->
|
|
159
167
|
> **`GetComplementaryProductsResponse`**
|
|
160
|
-
> * `baseProduct`: `ProductDto` — The reference product used
|
|
161
|
-
|
|
162
|
-
> * `
|
|
168
|
+
> * `baseProduct`: `ProductDto` — The reference product used to generate recommendations.
|
|
169
|
+
This is the item that corresponds to the permalink from the request.
|
|
170
|
+
> * `complementary`: `ComplementaryPairDto[]` — A list of recommended pairs of products that are complementary to the base product.
|
|
171
|
+
> * `invalidPersonaHash`: `boolean` — Indicates if the provided persona hash is invalid or has expired.
|
|
172
|
+
If true, personalization may be affected.
|
|
163
173
|
<!-- /DOCGEN -->
|
|
164
174
|
|
|
165
175
|
#### Example
|
|
@@ -195,7 +205,7 @@ Find visually similar items from an uploaded image.
|
|
|
195
205
|
| `style` | string | No | Preferred style hint. |
|
|
196
206
|
| `color` | string | No | Main color of interest. |
|
|
197
207
|
| `productClass` | ProductClass | No | Target product class. |
|
|
198
|
-
| `clothType` |
|
|
208
|
+
| `clothType` | ClothType | No | Target cloth type for filtering results. |
|
|
199
209
|
| `page` | number | No | Current page number. |
|
|
200
210
|
| `perPage` | number | No | Number of results per page. |
|
|
201
211
|
| `similarityThreshold` | number | No | Similarity threshold for matching (0-1). |
|
|
@@ -203,6 +213,8 @@ Find visually similar items from an uploaded image.
|
|
|
203
213
|
| `collectionName` | string | Yes | Embeddings collection name (namespace). |
|
|
204
214
|
| `sid` | string | Yes | Session identifier (`sid`) for the user. |
|
|
205
215
|
| `sizeSystem` | string | Yes | Size system code (e.g., 'BR', 'EU', 'US'). |
|
|
216
|
+
| `locale` | string | Yes | Locale for internationalized responses (language and region). |
|
|
217
|
+
| `currency` | string | Yes | Currency code for pricing information in responses. |
|
|
206
218
|
| `filterByWhatFitsMe` | boolean | No | Whether to apply What Fits Me logic. |
|
|
207
219
|
| `personaHash` | string | No | Hash representing the user persona (required if WFM is enabled). |
|
|
208
220
|
<!-- /DOCGEN -->
|
|
@@ -236,22 +248,24 @@ Get products that complete a look from an image.
|
|
|
236
248
|
<!-- DOCGEN:params GetComplementaryByImageBodyDto -->
|
|
237
249
|
| Field | Type | Required | Description |
|
|
238
250
|
| ----- | ---- | :------: | ----------- |
|
|
239
|
-
| `similarityThreshold` | number | Yes |
|
|
240
|
-
| `baseClothType` |
|
|
241
|
-
| `targetClothType` |
|
|
251
|
+
| `similarityThreshold` | number | Yes | The minimum similarity score (0-1) for recommended products. |
|
|
252
|
+
| `baseClothType` | ClothType | Yes | The type of product identified in the reference image. |
|
|
253
|
+
| `targetClothType` | ClothType | Yes | The desired type of complementary products to be recommended. |
|
|
242
254
|
| `image` | string | Yes | Base64-encoded image data. |
|
|
243
255
|
| `ageRange` | string | No | Target age range. |
|
|
244
256
|
| `gender` | string | No | User gender (optional). |
|
|
245
257
|
| `style` | string | No | Preferred style hint. |
|
|
246
258
|
| `color` | string | No | Main color of interest. |
|
|
247
259
|
| `productClass` | ProductClass | No | Target product class. |
|
|
248
|
-
| `clothType` |
|
|
260
|
+
| `clothType` | ClothType | No | Target cloth type for filtering results. |
|
|
249
261
|
| `page` | number | No | Current page number. |
|
|
250
262
|
| `perPage` | number | No | Number of results per page. |
|
|
251
263
|
| `tenantId` | number | Yes | Tenant (client) ID. |
|
|
252
264
|
| `collectionName` | string | Yes | Embeddings collection name (namespace). |
|
|
253
265
|
| `sid` | string | Yes | Session identifier (`sid`) for the user. |
|
|
254
266
|
| `sizeSystem` | string | Yes | Size system code (e.g., 'BR', 'EU', 'US'). |
|
|
267
|
+
| `locale` | string | Yes | Locale for internationalized responses (language and region). |
|
|
268
|
+
| `currency` | string | Yes | Currency code for pricing information in responses. |
|
|
255
269
|
| `filterByWhatFitsMe` | boolean | No | Whether to apply What Fits Me logic. |
|
|
256
270
|
| `personaHash` | string | No | Hash representing the user persona (required if WFM is enabled). |
|
|
257
271
|
<!-- /DOCGEN -->
|
|
@@ -260,12 +274,12 @@ Get products that complete a look from an image.
|
|
|
260
274
|
|
|
261
275
|
<!-- DOCGEN:returns GetComplementaryProductsByImageResponse -->
|
|
262
276
|
> **`GetComplementaryProductsByImageResponse`**
|
|
263
|
-
> * `baseProduct`: `ProductDto` —
|
|
264
|
-
> * `complementary`: `ProductDto[]` —
|
|
265
|
-
> * `page`: `number` —
|
|
266
|
-
> * `perPage`: `number` —
|
|
267
|
-
> * `total`: `number` —
|
|
268
|
-
> * `invalidPersonaHash`: `boolean` —
|
|
277
|
+
> * `baseProduct`: `ProductDto` — The product identified in the reference image.
|
|
278
|
+
> * `complementary`: `ProductDto[]` — A list of recommended products that are complementary to the base product.
|
|
279
|
+
> * `page`: `number` — The current page number of the results.
|
|
280
|
+
> * `perPage`: `number` — The number of items per page.
|
|
281
|
+
> * `total`: `number` — The total number of complementary products found.
|
|
282
|
+
> * `invalidPersonaHash`: `boolean` — Indicates if the provided persona hash is invalid or has expired.
|
|
269
283
|
<!-- /DOCGEN -->
|
|
270
284
|
|
|
271
285
|
#### Example
|
|
@@ -301,8 +315,8 @@ Fetches or reuses session context.
|
|
|
301
315
|
|
|
302
316
|
<!-- DOCGEN:returns SessionContext -->
|
|
303
317
|
> **`SessionContext`**
|
|
304
|
-
> * `sid`: `string` —
|
|
305
|
-
> * `sessionId`: `number` —
|
|
318
|
+
> * `sid`: `string` — The session identifier (sid) used in subsequent API calls for tracking and recommendations.
|
|
319
|
+
> * `sessionId`: `number` — A unique numeric identifier for the session instance, used for internal analytics.
|
|
306
320
|
<!-- /DOCGEN -->
|
|
307
321
|
|
|
308
322
|
#### Example
|
|
@@ -328,20 +342,34 @@ Sends user profile data. Uses cached `sid` if not provided.
|
|
|
328
342
|
<!-- DOCGEN:params SessionProfilePayload -->
|
|
329
343
|
| Field | Type | Required | Description |
|
|
330
344
|
| ----- | ---- | :------: | ----------- |
|
|
331
|
-
| `name` | string | Yes | Internal profile identifier or display name for the user.
|
|
332
|
-
|
|
333
|
-
| `
|
|
334
|
-
|
|
335
|
-
| `
|
|
336
|
-
|
|
337
|
-
| `
|
|
338
|
-
|
|
345
|
+
| `name` | string | Yes | Internal profile identifier or display name for the user.
|
|
346
|
+
Typically used for analytics and user identification within Sizebay's system. |
|
|
347
|
+
| `skinType` | number | Yes | Skin tone classification used for color matching and style recommendations.
|
|
348
|
+
Numerical value representing different skin tone categories. |
|
|
349
|
+
| `footShape` | string | Yes | Foot shape classification for footwear recommendations.
|
|
350
|
+
Used to provide better shoe fit analysis when available. |
|
|
351
|
+
| `gender` | string | Yes | User's gender for size system selection and fit calculations.
|
|
352
|
+
Uses single character format as defined by Sizebay's standards. |
|
|
353
|
+
| `age` | string | Yes | User's age for age-appropriate sizing and recommendations.
|
|
354
|
+
Stored as string to accommodate various age formats. |
|
|
355
|
+
| `is3dFeel` | boolean | Yes | Feature flag indicating if advanced 3D fit visualization is enabled.
|
|
356
|
+
Affects the level of detail in size recommendations and fit analysis. |
|
|
357
|
+
| `weight` | string | Yes | User's body weight in the unit system specified by isMetric.
|
|
358
|
+
Used for comprehensive fit analysis and size calculations. |
|
|
359
|
+
| `height` | string | Yes | User's height in the unit system specified by isMetric.
|
|
360
|
+
Critical measurement for accurate size recommendations. |
|
|
339
361
|
| `measures` | { insoleLength: number; poundWeight: number | null; } | Yes | Additional precise body measurements for enhanced fit accuracy. |
|
|
340
|
-
| `product` | string | Yes | Product context or identifier related to the current profiling session.
|
|
341
|
-
|
|
342
|
-
| `
|
|
343
|
-
|
|
344
|
-
|
|
362
|
+
| `product` | string | Yes | Product context or identifier related to the current profiling session.
|
|
363
|
+
Can link the profile to a specific product being viewed. |
|
|
364
|
+
| `isMetric` | boolean | Yes | Unit system preference for all measurements and recommendations.
|
|
365
|
+
- true: Metric system (cm, kg)
|
|
366
|
+
- false: Imperial system (inches, lbs) |
|
|
367
|
+
| `bodyShapeChest` | number | Yes | Chest/bust body shape index for clothing fit analysis.
|
|
368
|
+
Numerical value representing body proportions in the chest area. |
|
|
369
|
+
| `bodyShapeHip` | number | Yes | Hip body shape index for lower body clothing fit analysis.
|
|
370
|
+
Numerical value representing body proportions in the hip area. |
|
|
371
|
+
| `bodyShapeWaist` | number | Yes | Waist body shape index for torso fit analysis.
|
|
372
|
+
Numerical value representing body proportions in the waist area. |
|
|
345
373
|
<!-- /DOCGEN -->
|
|
346
374
|
|
|
347
375
|
#### Example
|
|
@@ -377,24 +405,25 @@ await client.sendProfile(profilePayload);
|
|
|
377
405
|
<!-- DOCGEN:params ProductDto -->
|
|
378
406
|
| Field | Type | Required | Description |
|
|
379
407
|
| ----- | ---- | :------: | ----------- |
|
|
380
|
-
| `id` | string | Yes | Unique product
|
|
381
|
-
| `title` | string | Yes |
|
|
382
|
-
| `productType` | string | Yes |
|
|
383
|
-
| `link` | string | Yes |
|
|
384
|
-
| `imageLink` | string | Yes | URL
|
|
385
|
-
| `gender` | string | Yes |
|
|
386
|
-
| `availability` | string | Yes |
|
|
387
|
-
| `productHash` | string | Yes | SHA-256 hash
|
|
388
|
-
| `price` | string | Yes |
|
|
389
|
-
| `salePrice` | string | Yes |
|
|
390
|
-
| `itemGroupId` | string | Yes |
|
|
391
|
-
| `brand` | string | Yes |
|
|
392
|
-
| `color` | string | Yes |
|
|
393
|
-
| `style` | string | Yes |
|
|
394
|
-
| `gtin` | string | Yes | Global Trade Item Number
|
|
395
|
-
| `additionalImageLinks` | string[] | Yes |
|
|
396
|
-
| `suitableSizes` | SuitableSizeDto[] | No | Size recommendations
|
|
397
|
-
|
|
408
|
+
| `id` | string | Yes | Unique identifier for the product from the e-commerce platform. |
|
|
409
|
+
| `title` | string | Yes | The display name or title of the product. |
|
|
410
|
+
| `productType` | string | Yes | The product's category, often in a hierarchical format. |
|
|
411
|
+
| `link` | string | Yes | The direct URL to the product's page. |
|
|
412
|
+
| `imageLink` | string | Yes | The URL for the main product image. |
|
|
413
|
+
| `gender` | string | Yes | The target gender for the product. |
|
|
414
|
+
| `availability` | string | Yes | The current stock availability of the product. |
|
|
415
|
+
| `productHash` | string | Yes | A SHA-256 hash for internal identification and caching. |
|
|
416
|
+
| `price` | string | Yes | The product's price, including the currency. |
|
|
417
|
+
| `salePrice` | string | Yes | The product's sale price, if applicable. |
|
|
418
|
+
| `itemGroupId` | string | Yes | An identifier for grouping product variants (e.g., by color or size). |
|
|
419
|
+
| `brand` | string | Yes | The brand of the product. |
|
|
420
|
+
| `color` | string | Yes | The color of the product. |
|
|
421
|
+
| `style` | string | Yes | The style classification of the product. |
|
|
422
|
+
| `gtin` | string | Yes | The Global Trade Item Number (GTIN) for the product. |
|
|
423
|
+
| `additionalImageLinks` | string[] | Yes | A list of additional image URLs for the product. |
|
|
424
|
+
| `suitableSizes` | SuitableSizeDto[] | No | Size recommendations from Sizebay's What Fits Me feature, including comfort scores.
|
|
425
|
+
This is populated when personalized sizing is available. |
|
|
426
|
+
| `clothType` | ClothType | No | The standardized clothing type, used for recommendations and size chart matching. |
|
|
398
427
|
<!-- /DOCGEN -->
|
|
399
428
|
|
|
400
429
|
#### `TrackData`
|
|
@@ -402,10 +431,10 @@ await client.sendProfile(profilePayload);
|
|
|
402
431
|
<!-- DOCGEN:params TrackData -->
|
|
403
432
|
| Field | Type | Required | Description |
|
|
404
433
|
| ----- | ---- | :------: | ----------- |
|
|
405
|
-
| `sid` | string | Yes |
|
|
406
|
-
| `tenantId` | number | Yes |
|
|
407
|
-
| `properties` | Record<string, JSONValue> | Yes |
|
|
408
|
-
| `permalink` | string | No | URL of the product page associated with
|
|
434
|
+
| `sid` | string | Yes | The session identifier from Sizebay's session service, representing the user. |
|
|
435
|
+
| `tenantId` | number | Yes | The unique identifier for the tenant (client). |
|
|
436
|
+
| `properties` | Record<string, JSONValue> | Yes | A key-value map for event-specific data. |
|
|
437
|
+
| `permalink` | string | No | The URL of the product page associated with the event, if applicable. |
|
|
409
438
|
<!-- /DOCGEN -->
|
|
410
439
|
|
|
411
440
|
### `SuitableSizeDto`
|
|
@@ -413,9 +442,14 @@ await client.sendProfile(profilePayload);
|
|
|
413
442
|
<!-- DOCGEN:params SuitableSizeDto -->
|
|
414
443
|
| Field | Type | Required | Description |
|
|
415
444
|
| ----- | ---- | :------: | ----------- |
|
|
416
|
-
| `size` | string | Yes | Size label as defined in the product catalog (e.g., "M", "42", "8-10").
|
|
417
|
-
|
|
418
|
-
| `
|
|
445
|
+
| `size` | string | Yes | Size label as defined in the product catalog (e.g., "M", "42", "8-10").
|
|
446
|
+
Uses the same format as the store's size system. |
|
|
447
|
+
| `comfortable` | number | Yes | AI-calculated comfort score ranging from 0 to 1, where:
|
|
448
|
+
- 0.0 = Very uncomfortable fit
|
|
449
|
+
- 0.5 = Adequate fit
|
|
450
|
+
- 1.0 = Perfect comfortable fit |
|
|
451
|
+
| `value` | boolean | No | Boolean indicator of whether this size is considered suitable for the user.
|
|
452
|
+
Based on comfort threshold and fit analysis algorithms. |
|
|
419
453
|
<!-- /DOCGEN -->
|
|
420
454
|
|
|
421
455
|
### `ComplementaryPairDto`
|
|
@@ -423,6 +457,33 @@ await client.sendProfile(profilePayload);
|
|
|
423
457
|
<!-- DOCGEN:params ComplementaryPairDto -->
|
|
424
458
|
| Field | Type | Required | Description |
|
|
425
459
|
| ----- | ---- | :------: | ----------- |
|
|
426
|
-
| `first` | ProductDto | Yes |
|
|
427
|
-
|
|
428
|
-
|
|
460
|
+
| `first` | ProductDto | Yes | First recommended product that complements the base product sent in the request.
|
|
461
|
+
This product is selected based on style compatibility and fashion rules. |
|
|
462
|
+
| `secondary` | ProductDto | No | Second recommended product that complements the base product sent in the request.
|
|
463
|
+
May be null if no suitable second complementary item is found. |
|
|
464
|
+
<!-- /DOCGEN -->
|
|
465
|
+
|
|
466
|
+
### `ClothType`
|
|
467
|
+
|
|
468
|
+
Standardized clothing type enum for categorization and filtering:
|
|
469
|
+
|
|
470
|
+
```typescript
|
|
471
|
+
export const ClothType = {
|
|
472
|
+
TOP: 'TOP',
|
|
473
|
+
BOTTOM: 'BOTTOM',
|
|
474
|
+
SHOE_ACCESSORY: 'SHOE_ACCESSORY',
|
|
475
|
+
FULL_BODY: 'FULL_BODY',
|
|
476
|
+
UNDERWEAR_FULL_BODY: 'UNDERWEAR_FULL_BODY',
|
|
477
|
+
UNDERWEAR_BOTTOM: 'UNDERWEAR_BOTTOM',
|
|
478
|
+
UNDERWEAR_TOP: 'UNDERWEAR_TOP',
|
|
479
|
+
WETSUIT_FULL_BODY: 'WETSUIT_FULL_BODY',
|
|
480
|
+
WETSUIT_BOTTOM: 'WETSUIT_BOTTOM',
|
|
481
|
+
WETSUIT_TOP: 'WETSUIT_TOP',
|
|
482
|
+
} as const;
|
|
483
|
+
|
|
484
|
+
// Usage examples:
|
|
485
|
+
ClothType.TOP // For shirts, blouses, jackets
|
|
486
|
+
ClothType.BOTTOM // For pants, skirts, shorts
|
|
487
|
+
ClothType.FULL_BODY // For dresses, jumpsuits
|
|
488
|
+
ClothType.SHOE_ACCESSORY // For shoes, accessories
|
|
489
|
+
```
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseSearchParams } from './base-search.dto';
|
|
2
2
|
import { ProductClass } from '../../common/product-class.type';
|
|
3
|
+
import { ClothType } from '../../common/cloth-type.type';
|
|
3
4
|
export interface BaseImageSearchParams extends BaseSearchParams {
|
|
4
5
|
image: string;
|
|
5
6
|
ageRange?: string;
|
|
@@ -7,7 +8,7 @@ export interface BaseImageSearchParams extends BaseSearchParams {
|
|
|
7
8
|
style?: string;
|
|
8
9
|
color?: string;
|
|
9
10
|
productClass?: ProductClass;
|
|
10
|
-
clothType?:
|
|
11
|
+
clothType?: ClothType;
|
|
11
12
|
page?: number;
|
|
12
13
|
perPage?: number;
|
|
13
14
|
similarityThreshold?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseImageSearchParams } from '../base/base-image-search.dto';
|
|
2
|
+
import { ClothType } from '../../common/cloth-type.type';
|
|
2
3
|
export interface GetComplementaryByImageBodyDto extends BaseImageSearchParams {
|
|
3
4
|
similarityThreshold: number;
|
|
4
|
-
baseClothType:
|
|
5
|
-
targetClothType:
|
|
5
|
+
baseClothType: ClothType;
|
|
6
|
+
targetClothType: ClothType;
|
|
6
7
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const ClothType: {
|
|
2
|
-
TOP:
|
|
3
|
-
BOTTOM:
|
|
4
|
-
SHOE_ACCESSORY:
|
|
5
|
-
FULL_BODY:
|
|
6
|
-
UNDERWEAR_FULL_BODY:
|
|
7
|
-
UNDERWEAR_BOTTOM:
|
|
8
|
-
UNDERWEAR_TOP:
|
|
9
|
-
WETSUIT_FULL_BODY:
|
|
10
|
-
WETSUIT_BOTTOM:
|
|
11
|
-
WETSUIT_TOP:
|
|
2
|
+
readonly TOP: "TOP";
|
|
3
|
+
readonly BOTTOM: "BOTTOM";
|
|
4
|
+
readonly SHOE_ACCESSORY: "SHOE_ACCESSORY";
|
|
5
|
+
readonly FULL_BODY: "FULL_BODY";
|
|
6
|
+
readonly UNDERWEAR_FULL_BODY: "UNDERWEAR_FULL_BODY";
|
|
7
|
+
readonly UNDERWEAR_BOTTOM: "UNDERWEAR_BOTTOM";
|
|
8
|
+
readonly UNDERWEAR_TOP: "UNDERWEAR_TOP";
|
|
9
|
+
readonly WETSUIT_FULL_BODY: "WETSUIT_FULL_BODY";
|
|
10
|
+
readonly WETSUIT_BOTTOM: "WETSUIT_BOTTOM";
|
|
11
|
+
readonly WETSUIT_TOP: "WETSUIT_TOP";
|
|
12
12
|
};
|
|
13
13
|
export type ClothType = (typeof ClothType)[keyof typeof ClothType];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sizebay-core-sdk",
|
|
3
|
-
"version": "1.10.0-dev.
|
|
3
|
+
"version": "1.10.0-dev.3",
|
|
4
4
|
"description": "A SDK designed for integrating multiple services (such as event tracking, AI services, etc.) into your application.",
|
|
5
5
|
"main": "dist/sizebay-core-sdk.umd.js",
|
|
6
6
|
"module": "dist/sizebay-core-sdk.es.js",
|