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 +46 -46
- package/dist/sizebay-core-sdk.es.js +19 -12
- package/package.json +1 -1
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)
|
|
313
|
-
| `limit` | number | No |
|
|
314
|
-
| `offset` | number | No | Number of
|
|
315
|
-
| `order` | SortOrder | No | Sort order
|
|
316
|
-
| `permalink` | string | No | Filter by product permalink.<br>
|
|
317
|
-
| `gender` | Gender | No | Filter by gender.<br>
|
|
318
|
-
| `ageGroup` | AgeGroup | No | Filter by age group.<br>
|
|
319
|
-
| `style` | Style | No | Filter by style.<br>
|
|
320
|
-
| `collection` | Collection | No | Filter by collection.<br>
|
|
321
|
-
| `status` | GroupedLookStatus | No | Filter by status.<br>
|
|
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[]` —
|
|
329
|
-
> * `total`: `number` — Total number of
|
|
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` —
|
|
366
|
-
> * `ageGroup`: `AgeGroup` —
|
|
367
|
-
> * `style`: `Style` — Style
|
|
368
|
-
> * `collection`: `Collection` —
|
|
369
|
-
> * `rate`: `number` —
|
|
370
|
-
> * `status`: `GroupedLookStatus` —
|
|
371
|
-
> * `timestamp`: `string` —
|
|
372
|
-
> * `tryons`: `TryonGroup[]` —
|
|
373
|
-
> * `feedback`: `GroupedLookFeedbackResponseDto` —
|
|
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 |
|
|
560
|
-
| `ageGroup` | AgeGroup | Yes |
|
|
561
|
-
| `style` | Style | Yes | Style |
|
|
562
|
-
| `collection` | Collection | Yes |
|
|
563
|
-
| `rate` | number | Yes |
|
|
564
|
-
| `status` | GroupedLookStatus | Yes |
|
|
565
|
-
| `timestamp` | string | Yes |
|
|
566
|
-
| `tryons` | TryonGroup[] | Yes |
|
|
567
|
-
| `feedback` | GroupedLookFeedbackResponseDto | No |
|
|
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 |
|
|
576
|
-
| `total` | number | Yes | Total number of
|
|
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
|
|
586
|
-
| `offset` | number | Yes | Number of
|
|
587
|
-
| `hasNext` | boolean | Yes | Whether there are more
|
|
588
|
-
| `hasPrevious` | boolean | Yes | Whether there are
|
|
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 |
|
|
597
|
-
| `skinTones` | TryonDetails[] | Yes |
|
|
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
|
|
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
|
-
*
|
|
395
|
+
* List fashion looks with virtual try-ons.
|
|
396
396
|
*
|
|
397
|
-
* Retrieves a list of
|
|
398
|
-
*
|
|
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
|
-
*
|
|
401
|
-
*
|
|
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
|
|
417
|
+
* Get a specific fashion look by ID with all try-on variations.
|
|
413
418
|
*
|
|
414
|
-
* Retrieves
|
|
415
|
-
*
|
|
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 -
|
|
418
|
-
* @param tenantId - Tenant ID
|
|
419
|
-
* @returns Promise resolving to
|
|
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.
|
|
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",
|