sizebay-core-sdk 1.12.0-dev.2 → 1.12.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
@@ -309,25 +309,25 @@ Get grouped looks with optional filters and pagination (Public endpoint).
309
309
  <!-- DOCGEN:params GetGroupedLooksParams -->
310
310
  | Field | Type | Required | Description |
311
311
  | ----- | ---- | :------: | ----------- |
312
- | `tenantId` | number | Yes | Tenant ID (required).<br>Identifies the client/tenant for which to retrieve grouped looks. |
313
- | `limit` | number | No | Number of results to return per page.<br>Must be between 1 and 100. Defaults to 50 if not specified. |
314
- | `offset` | number | No | Number of results to skip for pagination.<br>Used to fetch subsequent pages of results. |
315
- | `order` | SortOrder | No | Sort order for results by timestamp.<br>Use 'asc' for oldest first, 'desc' for newest first. |
316
- | `permalink` | string | No | Filter by product permalink.<br>Returns only grouped looks that contain this specific product.<br>Useful for finding looks that include a particular item. |
317
- | `gender` | Gender | No | Filter by gender.<br>Returns only grouped looks designed for the specified gender. |
318
- | `ageGroup` | AgeGroup | No | Filter by age group.<br>Returns only grouped looks appropriate for the specified age range. |
319
- | `style` | Style | No | Filter by style.<br>Returns only grouped looks matching the specified style category. |
320
- | `collection` | Collection | No | Filter by collection.<br>Returns only grouped looks from the specified seasonal collection. |
321
- | `status` | GroupedLookStatus | No | Filter by status.<br>Returns only grouped looks with the specified status (enabled or disabled). |
312
+ | `tenantId` | number | Yes | Tenant ID (required). |
313
+ | `limit` | number | No | Maximum number of looks to return per page (1-100).<br>Use smaller values for faster responses, larger for comprehensive results. |
314
+ | `offset` | number | No | Number of looks to skip before returning results.<br>Use with limit to implement pagination: page 2 = offset 50 (if limit is 50). |
315
+ | `order` | SortOrder | No | Sort order by creation date.<br>Use 'desc' to show newest looks first, 'asc' for oldest first. |
316
+ | `permalink` | string | No | Filter by product permalink.<br>Find all looks that include this specific product. Useful for showing<br>styling suggestions when a user views a product page. |
317
+ | `gender` | Gender | No | Filter by target gender.<br>Show only looks designed for MALE or FEMALE audiences. |
318
+ | `ageGroup` | AgeGroup | No | Filter by target age group.<br>Show only looks appropriate for the specified age range. |
319
+ | `style` | Style | No | Filter by style category.<br>Show only looks matching the desired style (casual, formal, party, etc.). |
320
+ | `collection` | Collection | No | Filter by seasonal collection.<br>Show only looks from a specific season (spring, summer, fall, winter). |
321
+ | `status` | GroupedLookStatus | No | Filter by active status.<br>Use 'enabled' to show only active looks, 'disabled' for inactive ones. |
322
322
  <!-- /DOCGEN -->
323
323
 
324
324
  #### Returns
325
325
 
326
326
  <!-- DOCGEN:returns GroupedLooksListResponse -->
327
327
  > **`GroupedLooksListResponse`**
328
- > * `data`: `GroupedLookResponseDto[]` — Array of grouped looks
329
- > * `total`: `number` — Total number of grouped looks matching the filters
330
- > * `pagination`: `PaginationInfo` — Pagination information
328
+ > * `data`: `GroupedLookResponseDto[]` — Fashion looks for the current page.<br>Display these looks to users. Each look contains styled outfits with try-on images.
329
+ > * `total`: `number` — Total number of looks matching your filters across all pages.<br>Use this to show "Showing X of Y looks" or calculate total pages.
330
+ > * `pagination`: `PaginationInfo` — Pagination information for navigating between pages.<br>Use this to implement pagination controls in your UI.
331
331
  <!-- /DOCGEN -->
332
332
 
333
333
  #### Example
@@ -360,17 +360,17 @@ Get a specific grouped look by ID (Public endpoint).
360
360
 
361
361
  <!-- DOCGEN:returns GroupedLookResponseDto -->
362
362
  > **`GroupedLookResponseDto`**
363
- > * `id`: `string` — Unique identifier
364
- > * `tenantId`: `number` — Tenant ID
365
- > * `gender`: `Gender` — Gender
366
- > * `ageGroup`: `AgeGroup` — Age group
367
- > * `style`: `Style` — Style
368
- > * `collection`: `Collection` — Collection
369
- > * `rate`: `number` — Rating from 0 to 5
370
- > * `status`: `GroupedLookStatus` — Status of the grouped look
371
- > * `timestamp`: `string` — Creation timestamp
372
- > * `tryons`: `TryonGroup[]` — Array of tryons grouped by BMI and skin tone
373
- > * `feedback`: `GroupedLookFeedbackResponseDto` — Feedback information if exists
363
+ > * `id`: `string` — Unique identifier for this fashion look (UUID).<br>Use this to fetch the look again or reference it in other operations.
364
+ > * `tenantId`: `number` — Tenant ID that owns this look.
365
+ > * `gender`: `Gender` — Target gender for this look (MALE or FEMALE).<br>Use to filter or categorize looks by target audience.
366
+ > * `ageGroup`: `AgeGroup` — Target age group for this look.<br>Use to show age-appropriate looks to users.
367
+ > * `style`: `Style` — Style category of this look.<br>Use to filter looks by style preference or display style tags.
368
+ > * `collection`: `Collection` — Seasonal collection this look belongs to.<br>Use to show seasonal looks or filter by collection.
369
+ > * `rate`: `number` — Quality rating of this look (0-5).<br>Higher ratings indicate better quality. Use to sort or filter by quality.
370
+ > * `status`: `GroupedLookStatus` — Current status of this look.<br>Only show 'enabled' looks to users, hide 'disabled' ones.
371
+ > * `timestamp`: `string` — When this look was created (ISO 8601 format).<br>Use to sort by date or show "new" looks.
372
+ > * `tryons`: `TryonGroup[]` — All virtual try-on images organized by body type and skin tone.<br>Iterate through this to display all try-on variations. Each group represents<br>a body type, and each group contains try-ons for different skin tones.
373
+ > * `feedback`: `GroupedLookFeedbackResponseDto` — User feedback for this look, if any has been submitted.<br>Use to display feedback or quality metrics to users.
374
374
  <!-- /DOCGEN -->
375
375
 
376
376
  #### Example
@@ -554,17 +554,17 @@ ClothType.SHOE_ACCESSORY // For shoes, accessories
554
554
  <!-- DOCGEN:params GroupedLookResponseDto -->
555
555
  | Field | Type | Required | Description |
556
556
  | ----- | ---- | :------: | ----------- |
557
- | `id` | string | Yes | Unique identifier |
558
- | `tenantId` | number | Yes | Tenant ID |
559
- | `gender` | Gender | Yes | Gender |
560
- | `ageGroup` | AgeGroup | Yes | Age group |
561
- | `style` | Style | Yes | Style |
562
- | `collection` | Collection | Yes | Collection |
563
- | `rate` | number | Yes | Rating from 0 to 5 |
564
- | `status` | GroupedLookStatus | Yes | Status of the grouped look |
565
- | `timestamp` | string | Yes | Creation timestamp |
566
- | `tryons` | TryonGroup[] | Yes | Array of tryons grouped by BMI and skin tone |
567
- | `feedback` | GroupedLookFeedbackResponseDto | No | Feedback information if exists |
557
+ | `id` | string | Yes | Unique identifier for this fashion look (UUID).<br>Use this to fetch the look again or reference it in other operations. |
558
+ | `tenantId` | number | Yes | Tenant ID that owns this look. |
559
+ | `gender` | Gender | Yes | Target gender for this look (MALE or FEMALE).<br>Use to filter or categorize looks by target audience. |
560
+ | `ageGroup` | AgeGroup | Yes | Target age group for this look.<br>Use to show age-appropriate looks to users. |
561
+ | `style` | Style | Yes | Style category of this look.<br>Use to filter looks by style preference or display style tags. |
562
+ | `collection` | Collection | Yes | Seasonal collection this look belongs to.<br>Use to show seasonal looks or filter by collection. |
563
+ | `rate` | number | Yes | Quality rating of this look (0-5).<br>Higher ratings indicate better quality. Use to sort or filter by quality. |
564
+ | `status` | GroupedLookStatus | Yes | Current status of this look.<br>Only show 'enabled' looks to users, hide 'disabled' ones. |
565
+ | `timestamp` | string | Yes | When this look was created (ISO 8601 format).<br>Use to sort by date or show "new" looks. |
566
+ | `tryons` | TryonGroup[] | Yes | All virtual try-on images organized by body type and skin tone.<br>Iterate through this to display all try-on variations. Each group represents<br>a body type, and each group contains try-ons for different skin tones. |
567
+ | `feedback` | GroupedLookFeedbackResponseDto | No | User feedback for this look, if any has been submitted.<br>Use to display feedback or quality metrics to users. |
568
568
  <!-- /DOCGEN -->
569
569
 
570
570
  ### `GroupedLooksListResponse`
@@ -572,9 +572,9 @@ ClothType.SHOE_ACCESSORY // For shoes, accessories
572
572
  <!-- DOCGEN:params GroupedLooksListResponse -->
573
573
  | Field | Type | Required | Description |
574
574
  | ----- | ---- | :------: | ----------- |
575
- | `data` | GroupedLookResponseDto[] | Yes | Array of grouped looks |
576
- | `total` | number | Yes | Total number of grouped looks matching the filters |
577
- | `pagination` | PaginationInfo | Yes | Pagination information |
575
+ | `data` | GroupedLookResponseDto[] | Yes | Fashion looks for the current page.<br>Display these looks to users. Each look contains styled outfits with try-on images. |
576
+ | `total` | number | Yes | Total number of looks matching your filters across all pages.<br>Use this to show "Showing X of Y looks" or calculate total pages. |
577
+ | `pagination` | PaginationInfo | Yes | Pagination information for navigating between pages.<br>Use this to implement pagination controls in your UI. |
578
578
  <!-- /DOCGEN -->
579
579
 
580
580
  ### `PaginationInfo`
@@ -582,10 +582,10 @@ ClothType.SHOE_ACCESSORY // For shoes, accessories
582
582
  <!-- DOCGEN:params PaginationInfo -->
583
583
  | Field | Type | Required | Description |
584
584
  | ----- | ---- | :------: | ----------- |
585
- | `limit` | number | Yes | Number of results per page |
586
- | `offset` | number | Yes | Number of results skipped |
587
- | `hasNext` | boolean | Yes | Whether there are more results after this page |
588
- | `hasPrevious` | boolean | Yes | Whether there are results before this page |
585
+ | `limit` | number | Yes | Number of looks returned in this page.<br>Matches the limit parameter you sent in the request. |
586
+ | `offset` | number | Yes | Number of looks skipped to reach this page.<br>Matches the offset parameter you sent in the request. |
587
+ | `hasNext` | boolean | Yes | Whether there are more looks available after this page.<br>Use this to show/hide "Next" button or load more functionality. |
588
+ | `hasPrevious` | boolean | Yes | Whether there are looks before this page.<br>Use this to show/hide "Previous" button. |
589
589
  <!-- /DOCGEN -->
590
590
 
591
591
  ### `TryonGroup`
@@ -593,8 +593,8 @@ ClothType.SHOE_ACCESSORY // For shoes, accessories
593
593
  <!-- DOCGEN:params TryonGroup -->
594
594
  | Field | Type | Required | Description |
595
595
  | ----- | ---- | :------: | ----------- |
596
- | `bmi` | string | Yes | BMI identifier |
597
- | `skinTones` | TryonDetails[] | Yes | Array of try-ons organized by skin tone |
596
+ | `bmi` | string | Yes | Body type identifier (e.g., 'slim', 'regular', 'plus'). |
597
+ | `skinTones` | TryonDetails[] | Yes | Try-on images for different skin tones within this body type.<br>Iterate through these to show all skin tone variations for the same body type. |
598
598
  <!-- /DOCGEN -->
599
599
 
600
600
  ### `TryonDetails`
@@ -602,6 +602,6 @@ ClothType.SHOE_ACCESSORY // For shoes, accessories
602
602
  <!-- DOCGEN:params TryonDetails -->
603
603
  | Field | Type | Required | Description |
604
604
  | ----- | ---- | :------: | ----------- |
605
- | `skinTone` | string | Yes | Skin tone identifier |
606
- | `tryonDetails` | Record<string, any> | Yes | Try-on details object (structure may vary) |
605
+ | `skinTone` | string | Yes | Skin tone identifier (e.g., 'light', 'brown', 'dark'). |
606
+ | `tryonDetails` | Record<string, any> | Yes | Try-on image data including URL and rendering metadata.<br>Contains the actual image URL and other properties needed to display the try-on. |
607
607
  <!-- /DOCGEN -->
@@ -392,13 +392,18 @@ class m {
392
392
  });
393
393
  }
394
394
  /**
395
- * Get grouped looks with optional filters and pagination (Public endpoint)
395
+ * List fashion looks with virtual try-ons.
396
396
  *
397
- * Retrieves a list of grouped looks with associated tryons.
398
- * Supports filtering by various criteria and pagination.
397
+ * Retrieves a paginated list of styled outfit combinations that have been
398
+ * pre-generated with AI-powered virtual try-ons. Each look shows how products
399
+ * look together when worn by avatares with different body types and skin tones.
399
400
  *
400
- * @param params - Parameters for the request (tenantId is required)
401
- * @returns Promise resolving to the paginated list of grouped looks
401
+ * Use filters to find looks by gender, age group, style, collection, or specific products.
402
+ * Use pagination (limit/offset) to navigate through large result sets efficiently.
403
+ *
404
+ * @param params - Search parameters. tenantId is required. Use filters to narrow results
405
+ * and limit/offset for pagination.
406
+ * @returns Promise resolving to paginated list of fashion looks with try-on images
402
407
  * @throws {ApiError} if the HTTP status is not 2xx or on network failure
403
408
  */
404
409
  getGroupedLooks(t) {
@@ -409,15 +414,17 @@ class m {
409
414
  });
410
415
  }
411
416
  /**
412
- * Get a specific grouped look by ID (Public endpoint)
417
+ * Get a specific fashion look by ID with all try-on variations.
413
418
  *
414
- * Retrieves detailed information about a specific grouped look including
415
- * associated tryons and feedback if available.
419
+ * Retrieves complete details of a fashion look including all AI-generated
420
+ * virtual try-on images. Each look shows the same outfit combination rendered
421
+ * on different avatares (various body types and skin tones), allowing users
422
+ * to see how the look appears on different people.
416
423
  *
417
- * @param id - Grouped look UUID
418
- * @param tenantId - Tenant ID (required)
419
- * @returns Promise resolving to the grouped look details
420
- * @throws {ApiError} if the HTTP status is not 2xx or on network failure
424
+ * @param id - Fashion look UUID identifier
425
+ * @param tenantId - Tenant ID
426
+ * @returns Promise resolving to complete fashion look with all try-on variations
427
+ * @throws {ApiError} if the HTTP status is not 2xx (e.g., 404 if not found) or on network failure
421
428
  */
422
429
  getGroupedLookById(t, e) {
423
430
  const s = new URL(`${this.endpoint}/api/public/grouped-looks/${t}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sizebay-core-sdk",
3
- "version": "1.12.0-dev.2",
3
+ "version": "1.12.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",