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 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 | Product permalink used as reference for similarity. |
97
- | `page` | number | No | Pagination: current page (optional). |
98
- | `perPage` | number | No | Pagination: number of items per page (optional). |
99
- | `similarityThreshold` | number | No | Minimum similarity threshold (0 to 1). Default value: 0.5 |
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[]` — Array of products that match the visual similarity criteria. Ordered by relevance/similarity score, with most similar items first.
113
- > * `page`: `number` Current page number in the paginated result set. Used for navigation through large result sets.
114
- > * `perPage`: `number` — Number of items returned per page. Defines the size of each page in the pagination.
115
- > * `total`: `number` — Total number of products matching the similarity criteria. Across all pages, useful for calculating total pages.
116
- > * `invalidPersonaHash`: `boolean` — Indicates if the provided persona hash is invalid or expired. When true, What Fits Me filtering was requested but couldn't be applied.
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
- | `similarityThreshold` | number | Yes | Minimum similarity score (0-1) for results. Default value: 0.2 |
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 in the lookup.
161
- > * `complementary`: `ComplementaryPairDto[]` List of recommended product pairs.
162
- > * `invalidPersonaHash`: `boolean` — Whether the persona hash is invalid.
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` | string | No | Target cloth type. |
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 | Minimum similarity score (0-1) for results. |
240
- | `baseClothType` | string | Yes | Type of the base product in the image. |
241
- | `targetClothType` | string | Yes | Type of complementary products to find. |
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` | string | No | Target cloth type. |
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` — Main product found from image.
264
- > * `complementary`: `ProductDto[]` — Complementary products recommended.
265
- > * `page`: `number` — Pagination - current page.
266
- > * `perPage`: `number` — Pagination - per page.
267
- > * `total`: `number` — Pagination - total results.
268
- > * `invalidPersonaHash`: `boolean` — Whether the persona hash is invalid.
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` — Session identifier (catalog user ID) used for subsequent API calls. This value should be passed as the 'sid' parameter in tracking and recommendation requests.
305
- > * `sessionId`: `number` — Unique numeric identifier for this session instance. Used internally by Sizebay for session management and analytics.
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. Typically used for analytics and user identification within Sizebay's system. |
332
- | `skinType` | number | Yes | Skin tone classification used for color matching and style recommendations. Numerical value representing different skin tone categories. |
333
- | `footShape` | string | Yes | Foot shape classification for footwear recommendations. Used to provide better shoe fit analysis when available. |
334
- | `gender` | string | Yes | User's gender for size system selection and fit calculations. Uses single character format as defined by Sizebay's standards. |
335
- | `age` | string | Yes | User's age for age-appropriate sizing and recommendations. Stored as string to accommodate various age formats. |
336
- | `is3dFeel` | boolean | Yes | Feature flag indicating if advanced 3D fit visualization is enabled. Affects the level of detail in size recommendations and fit analysis. |
337
- | `weight` | string | Yes | User's body weight in the unit system specified by isMetric. Used for comprehensive fit analysis and size calculations. |
338
- | `height` | string | Yes | User's height in the unit system specified by isMetric. Critical measurement for accurate size recommendations. |
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. Can link the profile to a specific product being viewed. |
341
- | `isMetric` | boolean | Yes | Unit system preference for all measurements and recommendations. - true: Metric system (cm, kg) - false: Imperial system (inches, lbs) |
342
- | `bodyShapeChest` | number | Yes | Chest/bust body shape index for clothing fit analysis. Numerical value representing body proportions in the chest area. |
343
- | `bodyShapeHip` | number | Yes | Hip body shape index for lower body clothing fit analysis. Numerical value representing body proportions in the hip area. |
344
- | `bodyShapeWaist` | number | Yes | Waist body shape index for torso fit analysis. Numerical value representing body proportions in the waist area. |
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 identifier from the e-commerce platform (e.g., Shopify product ID). |
381
- | `title` | string | Yes | Product display name or title as shown in the store. |
382
- | `productType` | string | Yes | Hierarchical product category path using standardized format. |
383
- | `link` | string | Yes | Complete URL to the product page in the e-commerce store. |
384
- | `imageLink` | string | Yes | URL of the main product image used for AI analysis and display. |
385
- | `gender` | string | Yes | Target gender for the product using standardized values. |
386
- | `availability` | string | Yes | Current stock availability status of the product. |
387
- | `productHash` | string | Yes | SHA-256 hash used for product identification, caching, and deduplication in Sizebay's systems. |
388
- | `price` | string | Yes | Product price including currency code in the format "value CURRENCY". |
389
- | `salePrice` | string | Yes | Sale or discounted price including currency code. Same format as regular price. |
390
- | `itemGroupId` | string | Yes | Identifier used to group product variations (different sizes/colors of the same item). Often matches the main product ID when no variations exist. |
391
- | `brand` | string | Yes | Product brand name in uppercase format. |
392
- | `color` | string | Yes | Product color specification - can be a color name or internal color code. |
393
- | `style` | string | Yes | Product style identifier or description used for categorization and filtering. |
394
- | `gtin` | string | Yes | Global Trade Item Number - unique product identifier for retail tracking. Often matches the product ID in e-commerce platforms. |
395
- | `additionalImageLinks` | string[] | Yes | Array of additional product image URLs for comprehensive visual analysis. Listed in order of priority/relevance for AI processing. |
396
- | `suitableSizes` | SuitableSizeDto[] | No | Size recommendations with comfort scores generated by Sizebay's What Fits Me technology. Only populated when What Fits Me filtering is enabled and user profile is available. |
397
- | `clothType` | string | No | Standardized clothing type classification used for size table matching and recommendations. |
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 | Session identifier obtained from Sizebay's session service. This is the catalog user ID returned by the session endpoint. |
406
- | `tenantId` | number | Yes | Unique identifier for the client/tenant using Sizebay's services. Each e-commerce partner has their own tenant ID. |
407
- | `properties` | Record<string, JSONValue> | Yes | Flexible key-value map containing event-specific data and context. Can include product information, user actions, custom metrics, etc. |
408
- | `permalink` | string | No | URL of the product page associated with this event. Required for product-related events like "RECOMMENDATION_DONE", "ADD_TO_CART". Optional for general tracking events. |
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"). Uses the same format as the store's size system. |
417
- | `comfortable` | number | Yes | AI-calculated comfort score ranging from 0 to 1, where: - 0.0 = Very uncomfortable fit - 0.5 = Adequate fit - 1.0 = Perfect comfortable fit |
418
- | `value` | boolean | No | Boolean indicator of whether this size is considered suitable for the user. Based on comfort threshold and fit analysis algorithms. |
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 | Primary product in the complementary relationship. This is typically the base item that the user is viewing or interested in. |
427
- | `secondary` | ProductDto | No | Secondary product that complements the first item. May be null if no suitable complementary item is found. |
428
- <!-- /DOCGEN -->
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?: string;
11
+ clothType?: ClothType;
11
12
  page?: number;
12
13
  perPage?: number;
13
14
  similarityThreshold?: number;
@@ -3,6 +3,8 @@ export interface BaseSearchParams {
3
3
  collectionName: string;
4
4
  sid: string;
5
5
  sizeSystem: string;
6
+ locale: string;
7
+ currency: string;
6
8
  filterByWhatFitsMe?: boolean;
7
9
  personaHash?: string;
8
10
  }
@@ -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: string;
5
- targetClothType: string;
5
+ baseClothType: ClothType;
6
+ targetClothType: ClothType;
6
7
  }
@@ -1,13 +1,13 @@
1
1
  export declare const ClothType: {
2
- TOP: string;
3
- BOTTOM: string;
4
- SHOE_ACCESSORY: string;
5
- FULL_BODY: string;
6
- UNDERWEAR_FULL_BODY: string;
7
- UNDERWEAR_BOTTOM: string;
8
- UNDERWEAR_TOP: string;
9
- WETSUIT_FULL_BODY: string;
10
- WETSUIT_BOTTOM: string;
11
- WETSUIT_TOP: string;
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.1",
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",