@digital8/lighting-illusions-ts-sdk 0.0.486 → 0.0.488
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/.openapi-generator/FILES +22 -2
- package/README.md +15 -7
- package/dist/apis/DocumentApi.d.ts +1 -24
- package/dist/apis/DocumentApi.js +2 -96
- package/dist/models/GetAllDocumentRequest.d.ts +0 -26
- package/dist/models/GetAllDocumentRequest.js +1 -14
- package/dist/models/GetAllProductChildRequest.d.ts +0 -1
- package/dist/models/GetAllProductChildRequest.js +1 -2
- package/dist/models/IndexDocumentRequest.d.ts +0 -26
- package/dist/models/IndexDocumentRequest.js +1 -14
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +8 -2
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/docs/DocumentApi.md +2 -137
- package/docs/GetAllDocumentRequest.md +0 -6
- package/docs/IndexDocumentRequest.md +0 -6
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailResource.md +4 -2
- package/docs/{UpdateDocumentRequest.md → ProductRating.md} +4 -10
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +2 -91
- package/src/models/GetAllDocumentRequest.ts +0 -33
- package/src/models/GetAllProductChildRequest.ts +1 -2
- package/src/models/IndexDocumentRequest.ts +0 -33
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailResource.ts +12 -5
- package/src/models/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/index.ts +11 -1
- package/dist/models/UpdateDocumentRequest.d.ts +0 -44
- package/dist/models/UpdateDocumentRequest.js +0 -57
- package/src/models/UpdateDocumentRequest.ts +0 -83
package/docs/DocumentApi.md
CHANGED
|
@@ -5,14 +5,12 @@ All URIs are relative to *http://localhost/api*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**attachDocumentablesDocument**](DocumentApi.md#attachdocumentablesdocumentoperation) | **POST** /admin-api/document/{document}/attach-documentables | Auto-generated: attachDocumentablesDocument |
|
|
8
|
-
| [**destroyDocument**](DocumentApi.md#destroydocument) | **DELETE** /admin-api/document/{document}
|
|
8
|
+
| [**destroyDocument**](DocumentApi.md#destroydocument) | **DELETE** /admin-api/document/{document} | Auto-generated: destroyDocument |
|
|
9
9
|
| [**detachDocumentablesDocument**](DocumentApi.md#detachdocumentablesdocumentoperation) | **POST** /admin-api/document/{document}/detach-documentables | Auto-generated: detachDocumentablesDocument |
|
|
10
10
|
| [**getAllDocument**](DocumentApi.md#getalldocumentoperation) | **POST** /admin-api/document/all | Auto-generated: getAllDocument |
|
|
11
11
|
| [**indexDocument**](DocumentApi.md#indexdocumentoperation) | **POST** /admin-api/document/list | Auto-generated: indexDocument |
|
|
12
|
-
| [**
|
|
13
|
-
| [**storeDocument**](DocumentApi.md#storedocumentoperation) | **POST** /admin-api/document/create | Auto-generated: storeDocument |
|
|
12
|
+
| [**storeDocument**](DocumentApi.md#storedocumentoperation) | **POST** /admin-api/document | Auto-generated: storeDocument |
|
|
14
13
|
| [**storeDocumentFile**](DocumentApi.md#storedocumentfileoperation) | **POST** /admin-api/document/files | Auto-generated: storeDocumentFile |
|
|
15
|
-
| [**updateDocument**](DocumentApi.md#updatedocumentoperation) | **PUT** /admin-api/document/{document}/update | Auto-generated: updateDocument |
|
|
16
14
|
|
|
17
15
|
|
|
18
16
|
|
|
@@ -347,71 +345,6 @@ No authorization required
|
|
|
347
345
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
348
346
|
|
|
349
347
|
|
|
350
|
-
## showDocument
|
|
351
|
-
|
|
352
|
-
> DocumentResource showDocument(document)
|
|
353
|
-
|
|
354
|
-
Auto-generated: showDocument
|
|
355
|
-
|
|
356
|
-
### Example
|
|
357
|
-
|
|
358
|
-
```ts
|
|
359
|
-
import {
|
|
360
|
-
Configuration,
|
|
361
|
-
DocumentApi,
|
|
362
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
363
|
-
import type { ShowDocumentRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
364
|
-
|
|
365
|
-
async function example() {
|
|
366
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
367
|
-
const api = new DocumentApi();
|
|
368
|
-
|
|
369
|
-
const body = {
|
|
370
|
-
// number | The id of the document
|
|
371
|
-
document: 56,
|
|
372
|
-
} satisfies ShowDocumentRequest;
|
|
373
|
-
|
|
374
|
-
try {
|
|
375
|
-
const data = await api.showDocument(body);
|
|
376
|
-
console.log(data);
|
|
377
|
-
} catch (error) {
|
|
378
|
-
console.error(error);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
// Run the test
|
|
383
|
-
example().catch(console.error);
|
|
384
|
-
```
|
|
385
|
-
|
|
386
|
-
### Parameters
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
| Name | Type | Description | Notes |
|
|
390
|
-
|------------- | ------------- | ------------- | -------------|
|
|
391
|
-
| **document** | `number` | The id of the document | [Defaults to `undefined`] |
|
|
392
|
-
|
|
393
|
-
### Return type
|
|
394
|
-
|
|
395
|
-
[**DocumentResource**](DocumentResource.md)
|
|
396
|
-
|
|
397
|
-
### Authorization
|
|
398
|
-
|
|
399
|
-
No authorization required
|
|
400
|
-
|
|
401
|
-
### HTTP request headers
|
|
402
|
-
|
|
403
|
-
- **Content-Type**: Not defined
|
|
404
|
-
- **Accept**: `application/json`
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
### HTTP response details
|
|
408
|
-
| Status code | Description | Response headers |
|
|
409
|
-
|-------------|-------------|------------------|
|
|
410
|
-
| **200** | Successful resource response | - |
|
|
411
|
-
|
|
412
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
413
|
-
|
|
414
|
-
|
|
415
348
|
## storeDocument
|
|
416
349
|
|
|
417
350
|
> DocumentResource storeDocument(storeDocumentRequest)
|
|
@@ -541,71 +474,3 @@ No authorization required
|
|
|
541
474
|
|
|
542
475
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
543
476
|
|
|
544
|
-
|
|
545
|
-
## updateDocument
|
|
546
|
-
|
|
547
|
-
> DocumentResource updateDocument(document, updateDocumentRequest)
|
|
548
|
-
|
|
549
|
-
Auto-generated: updateDocument
|
|
550
|
-
|
|
551
|
-
### Example
|
|
552
|
-
|
|
553
|
-
```ts
|
|
554
|
-
import {
|
|
555
|
-
Configuration,
|
|
556
|
-
DocumentApi,
|
|
557
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
558
|
-
import type { UpdateDocumentOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
559
|
-
|
|
560
|
-
async function example() {
|
|
561
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
562
|
-
const api = new DocumentApi();
|
|
563
|
-
|
|
564
|
-
const body = {
|
|
565
|
-
// number | The id of the document
|
|
566
|
-
document: 56,
|
|
567
|
-
// UpdateDocumentRequest (optional)
|
|
568
|
-
updateDocumentRequest: ...,
|
|
569
|
-
} satisfies UpdateDocumentOperationRequest;
|
|
570
|
-
|
|
571
|
-
try {
|
|
572
|
-
const data = await api.updateDocument(body);
|
|
573
|
-
console.log(data);
|
|
574
|
-
} catch (error) {
|
|
575
|
-
console.error(error);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
// Run the test
|
|
580
|
-
example().catch(console.error);
|
|
581
|
-
```
|
|
582
|
-
|
|
583
|
-
### Parameters
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
| Name | Type | Description | Notes |
|
|
587
|
-
|------------- | ------------- | ------------- | -------------|
|
|
588
|
-
| **document** | `number` | The id of the document | [Defaults to `undefined`] |
|
|
589
|
-
| **updateDocumentRequest** | [UpdateDocumentRequest](UpdateDocumentRequest.md) | | [Optional] |
|
|
590
|
-
|
|
591
|
-
### Return type
|
|
592
|
-
|
|
593
|
-
[**DocumentResource**](DocumentResource.md)
|
|
594
|
-
|
|
595
|
-
### Authorization
|
|
596
|
-
|
|
597
|
-
No authorization required
|
|
598
|
-
|
|
599
|
-
### HTTP request headers
|
|
600
|
-
|
|
601
|
-
- **Content-Type**: `application/json`
|
|
602
|
-
- **Accept**: `application/json`
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
### HTTP response details
|
|
606
|
-
| Status code | Description | Response headers |
|
|
607
|
-
|-------------|-------------|------------------|
|
|
608
|
-
| **200** | Successful resource response | - |
|
|
609
|
-
|
|
610
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
611
|
-
|
|
@@ -9,9 +9,6 @@ Name | Type
|
|
|
9
9
|
`search` | string
|
|
10
10
|
`sortBy` | string
|
|
11
11
|
`sortDirection` | string
|
|
12
|
-
`relatedId` | number
|
|
13
|
-
`relatedType` | string
|
|
14
|
-
`includesRelations` | boolean
|
|
15
12
|
|
|
16
13
|
## Example
|
|
17
14
|
|
|
@@ -23,9 +20,6 @@ const example = {
|
|
|
23
20
|
"search": null,
|
|
24
21
|
"sortBy": null,
|
|
25
22
|
"sortDirection": null,
|
|
26
|
-
"relatedId": null,
|
|
27
|
-
"relatedType": null,
|
|
28
|
-
"includesRelations": null,
|
|
29
23
|
} satisfies GetAllDocumentRequest
|
|
30
24
|
|
|
31
25
|
console.log(example)
|
|
@@ -11,9 +11,6 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
-
`relatedId` | number
|
|
15
|
-
`relatedType` | string
|
|
16
|
-
`includesRelations` | boolean
|
|
17
14
|
|
|
18
15
|
## Example
|
|
19
16
|
|
|
@@ -27,9 +24,6 @@ const example = {
|
|
|
27
24
|
"sortDirection": null,
|
|
28
25
|
"perPage": null,
|
|
29
26
|
"page": null,
|
|
30
|
-
"relatedId": null,
|
|
31
|
-
"relatedType": null,
|
|
32
|
-
"includesRelations": null,
|
|
33
27
|
} satisfies IndexDocumentRequest
|
|
34
28
|
|
|
35
29
|
console.log(example)
|
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`externalApiLoggableType` | Array<string>
|
|
18
18
|
`externalApiLoggableId` | Array<string>
|
|
19
19
|
`siteId` | Array<string>
|
|
20
|
+
`productChildId` | Array<string>
|
|
20
21
|
`relatedId` | number
|
|
21
22
|
`relatedType` | string
|
|
22
23
|
`includesRelations` | boolean
|
|
@@ -39,6 +40,7 @@ const example = {
|
|
|
39
40
|
"externalApiLoggableType": null,
|
|
40
41
|
"externalApiLoggableId": null,
|
|
41
42
|
"siteId": null,
|
|
43
|
+
"productChildId": null,
|
|
42
44
|
"relatedId": null,
|
|
43
45
|
"relatedType": null,
|
|
44
46
|
"includesRelations": null,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductSearchResultResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductSearchResultResource>](ProductSearchResultResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductSearchResultResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedProductSearchResultResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductSearchResultResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductAggregationResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`attributes` | Array<object>
|
|
10
|
+
`priceRanges` | Array<object>
|
|
11
|
+
`brands` | Array<object>
|
|
12
|
+
`ratings` | Array<object>
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ProductAggregationResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"attributes": null,
|
|
22
|
+
"priceRanges": null,
|
|
23
|
+
"brands": null,
|
|
24
|
+
"ratings": null,
|
|
25
|
+
} satisfies ProductAggregationResource
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductAggregationResource
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductAggregationResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductAggregationResource>](ProductAggregationResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductAggregationResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductAggregationResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductAggregationResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -16,7 +16,8 @@ Name | Type
|
|
|
16
16
|
`salePrice` | number
|
|
17
17
|
`isDisabled` | boolean
|
|
18
18
|
`seo` | [SEOResource](SEOResource.md)
|
|
19
|
-
`
|
|
19
|
+
`omnisendId` | string
|
|
20
|
+
`omnisendSyncStatus` | string
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -35,7 +36,8 @@ const example = {
|
|
|
35
36
|
"salePrice": null,
|
|
36
37
|
"isDisabled": null,
|
|
37
38
|
"seo": null,
|
|
38
|
-
"
|
|
39
|
+
"omnisendId": null,
|
|
40
|
+
"omnisendSyncStatus": null,
|
|
39
41
|
} satisfies ProductChildSiteDetailResource
|
|
40
42
|
|
|
41
43
|
console.log(example)
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductRating
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`name` | string
|
|
10
|
-
`documentFileId` | string
|
|
11
|
-
`siteIds` | Array<string>
|
|
12
9
|
|
|
13
10
|
## Example
|
|
14
11
|
|
|
15
12
|
```typescript
|
|
16
|
-
import type {
|
|
13
|
+
import type { ProductRating } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
14
|
|
|
18
15
|
// TODO: Update the object below with actual values
|
|
19
16
|
const example = {
|
|
20
|
-
|
|
21
|
-
"documentFileId": null,
|
|
22
|
-
"siteIds": null,
|
|
23
|
-
} satisfies UpdateDocumentRequest
|
|
17
|
+
} satisfies ProductRating
|
|
24
18
|
|
|
25
19
|
console.log(example)
|
|
26
20
|
|
|
@@ -29,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
23
|
console.log(exampleJSON)
|
|
30
24
|
|
|
31
25
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductRating
|
|
33
27
|
console.log(exampleParsed)
|
|
34
28
|
```
|
|
35
29
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSearchResponseResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductSearchResultResource>](ProductSearchResultResource.md)
|
|
10
|
+
`meta` | [ProductSearchResponseResourceMeta](ProductSearchResponseResourceMeta.md)
|
|
11
|
+
`aggregations` | [ProductAggregationResource](ProductAggregationResource.md)
|
|
12
|
+
`priceInfo` | [ProductSearchResponseResourcePriceInfo](ProductSearchResponseResourcePriceInfo.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ProductSearchResponseResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"data": null,
|
|
22
|
+
"meta": null,
|
|
23
|
+
"aggregations": null,
|
|
24
|
+
"priceInfo": null,
|
|
25
|
+
} satisfies ProductSearchResponseResource
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResource
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSearchResponseResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductSearchResponseResource>](ProductSearchResponseResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductSearchResponseResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductSearchResponseResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSearchResponseResourceMeta
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`currentPage` | number
|
|
10
|
+
`perPage` | number
|
|
11
|
+
`total` | number
|
|
12
|
+
`lastPage` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ProductSearchResponseResourceMeta } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"currentPage": 1,
|
|
22
|
+
"perPage": 24,
|
|
23
|
+
"total": 1500,
|
|
24
|
+
"lastPage": 63,
|
|
25
|
+
} satisfies ProductSearchResponseResourceMeta
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResourceMeta
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSearchResponseResourcePriceInfo
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`minPrice` | number
|
|
10
|
+
`maxPrice` | number
|
|
11
|
+
`lowestPrice` | number
|
|
12
|
+
`highestPrice` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ProductSearchResponseResourcePriceInfo } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"minPrice": 49.99,
|
|
22
|
+
"maxPrice": 899.99,
|
|
23
|
+
"lowestPrice": 29.99,
|
|
24
|
+
"highestPrice": 1299.99,
|
|
25
|
+
} satisfies ProductSearchResponseResourcePriceInfo
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResourcePriceInfo
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSearchResultResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`sku` | string
|
|
11
|
+
`model` | string
|
|
12
|
+
`name` | string
|
|
13
|
+
`slug` | string
|
|
14
|
+
`price` | number
|
|
15
|
+
`salePrice` | number
|
|
16
|
+
`thumbnail` | string
|
|
17
|
+
`averageRating` | string
|
|
18
|
+
`labelDetails` | Array<number>
|
|
19
|
+
`categories` | Array<object>
|
|
20
|
+
`supplierName` | string
|
|
21
|
+
`supplierId` | number
|
|
22
|
+
`availability` | string
|
|
23
|
+
`wishlisted` | boolean
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import type { ProductSearchResultResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
29
|
+
|
|
30
|
+
// TODO: Update the object below with actual values
|
|
31
|
+
const example = {
|
|
32
|
+
"id": null,
|
|
33
|
+
"sku": null,
|
|
34
|
+
"model": null,
|
|
35
|
+
"name": null,
|
|
36
|
+
"slug": null,
|
|
37
|
+
"price": null,
|
|
38
|
+
"salePrice": null,
|
|
39
|
+
"thumbnail": null,
|
|
40
|
+
"averageRating": null,
|
|
41
|
+
"labelDetails": null,
|
|
42
|
+
"categories": null,
|
|
43
|
+
"supplierName": null,
|
|
44
|
+
"supplierId": null,
|
|
45
|
+
"availability": null,
|
|
46
|
+
"wishlisted": null,
|
|
47
|
+
} satisfies ProductSearchResultResource
|
|
48
|
+
|
|
49
|
+
console.log(example)
|
|
50
|
+
|
|
51
|
+
// Convert the instance to a JSON string
|
|
52
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
53
|
+
console.log(exampleJSON)
|
|
54
|
+
|
|
55
|
+
// Parse the JSON string back to an object
|
|
56
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResultResource
|
|
57
|
+
console.log(exampleParsed)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
61
|
+
|
|
62
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSearchResultResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductSearchResultResource>](ProductSearchResultResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductSearchResultResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductSearchResultResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResultResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductSortBy
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ProductSortBy } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ProductSortBy
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductSortBy
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|