@digital8/lighting-illusions-ts-sdk 0.0.523 → 0.0.524
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 -0
- package/README.md +13 -2
- 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/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 -0
- package/dist/models/index.js +11 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductRating.md +32 -0
- 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/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- 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 -0
package/dist/models/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export * from './PaginatedProductChildResourceResponse';
|
|
|
96
96
|
export * from './PaginatedProductListResourceResponse';
|
|
97
97
|
export * from './PaginatedProductLiteResourceResponse';
|
|
98
98
|
export * from './PaginatedProductResourceResponse';
|
|
99
|
+
export * from './PaginatedProductSearchResultResourceResponse';
|
|
99
100
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
100
101
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
101
102
|
export * from './PaginatedProductTypeResourceResponse';
|
|
@@ -112,6 +113,8 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
112
113
|
export * from './PaginatedTagLiteResourceResponse';
|
|
113
114
|
export * from './PaginatedTagResourceResponse';
|
|
114
115
|
export * from './PagingMetadata';
|
|
116
|
+
export * from './ProductAggregationResource';
|
|
117
|
+
export * from './ProductAggregationResourceArrayResponse';
|
|
115
118
|
export * from './ProductChildListResource';
|
|
116
119
|
export * from './ProductChildListResourceArrayResponse';
|
|
117
120
|
export * from './ProductChildLiteResource';
|
|
@@ -130,8 +133,16 @@ export * from './ProductListResource';
|
|
|
130
133
|
export * from './ProductListResourceArrayResponse';
|
|
131
134
|
export * from './ProductLiteResource';
|
|
132
135
|
export * from './ProductLiteResourceArrayResponse';
|
|
136
|
+
export * from './ProductRating';
|
|
133
137
|
export * from './ProductResource';
|
|
134
138
|
export * from './ProductResourceArrayResponse';
|
|
139
|
+
export * from './ProductSearchResponseResource';
|
|
140
|
+
export * from './ProductSearchResponseResourceArrayResponse';
|
|
141
|
+
export * from './ProductSearchResponseResourceMeta';
|
|
142
|
+
export * from './ProductSearchResponseResourcePriceInfo';
|
|
143
|
+
export * from './ProductSearchResultResource';
|
|
144
|
+
export * from './ProductSearchResultResourceArrayResponse';
|
|
145
|
+
export * from './ProductSortBy';
|
|
135
146
|
export * from './ProductTypeListResource';
|
|
136
147
|
export * from './ProductTypeListResourceArrayResponse';
|
|
137
148
|
export * from './ProductTypeLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -114,6 +114,7 @@ __exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
|
114
114
|
__exportStar(require("./PaginatedProductListResourceResponse"), exports);
|
|
115
115
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
116
116
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
117
|
+
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
117
118
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
118
119
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
119
120
|
__exportStar(require("./PaginatedProductTypeResourceResponse"), exports);
|
|
@@ -130,6 +131,8 @@ __exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
|
130
131
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
131
132
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
132
133
|
__exportStar(require("./PagingMetadata"), exports);
|
|
134
|
+
__exportStar(require("./ProductAggregationResource"), exports);
|
|
135
|
+
__exportStar(require("./ProductAggregationResourceArrayResponse"), exports);
|
|
133
136
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
134
137
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
135
138
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
@@ -148,8 +151,16 @@ __exportStar(require("./ProductListResource"), exports);
|
|
|
148
151
|
__exportStar(require("./ProductListResourceArrayResponse"), exports);
|
|
149
152
|
__exportStar(require("./ProductLiteResource"), exports);
|
|
150
153
|
__exportStar(require("./ProductLiteResourceArrayResponse"), exports);
|
|
154
|
+
__exportStar(require("./ProductRating"), exports);
|
|
151
155
|
__exportStar(require("./ProductResource"), exports);
|
|
152
156
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
157
|
+
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
158
|
+
__exportStar(require("./ProductSearchResponseResourceArrayResponse"), exports);
|
|
159
|
+
__exportStar(require("./ProductSearchResponseResourceMeta"), exports);
|
|
160
|
+
__exportStar(require("./ProductSearchResponseResourcePriceInfo"), exports);
|
|
161
|
+
__exportStar(require("./ProductSearchResultResource"), exports);
|
|
162
|
+
__exportStar(require("./ProductSearchResultResourceArrayResponse"), exports);
|
|
163
|
+
__exportStar(require("./ProductSortBy"), exports);
|
|
153
164
|
__exportStar(require("./ProductTypeListResource"), exports);
|
|
154
165
|
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
155
166
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductRating
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ProductRating } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ProductRating
|
|
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 ProductRating
|
|
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
|
+
|
|
@@ -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
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductSearchResultResourceFromJSON,
|
|
26
|
+
ProductSearchResultResourceFromJSONTyped,
|
|
27
|
+
ProductSearchResultResourceToJSON,
|
|
28
|
+
ProductSearchResultResourceToJSONTyped,
|
|
29
|
+
} from './ProductSearchResultResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductSearchResultResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductSearchResultResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductSearchResultResource>}
|
|
40
|
+
* @memberof PaginatedProductSearchResultResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductSearchResultResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductSearchResultResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductSearchResultResourceResponse(value: object): value is PaginatedProductSearchResultResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductSearchResultResourceResponseFromJSON(json: any): PaginatedProductSearchResultResourceResponse {
|
|
61
|
+
return PaginatedProductSearchResultResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductSearchResultResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductSearchResultResourceResponseToJSON(json: any): PaginatedProductSearchResultResourceResponse {
|
|
76
|
+
return PaginatedProductSearchResultResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductSearchResultResourceResponseToJSONTyped(value?: PaginatedProductSearchResultResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|