@digital8/lighting-illusions-ts-sdk 0.0.632 → 0.0.633
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 +10 -34
- package/README.md +7 -24
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +2 -3
- package/dist/models/OverlayTemplateAssetFrontendResource.js +2 -3
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/ProductCompareResource.d.ts +2 -2
- package/dist/models/ProductSearchResultResource.d.ts +6 -12
- package/dist/models/ProductSearchResultResource.js +4 -8
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/SupplierFrontendResource.d.ts +8 -7
- package/dist/models/SupplierFrontendResource.js +9 -8
- package/dist/models/WishlistCheckResource.d.ts +32 -0
- package/dist/models/WishlistCheckResource.js +51 -0
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistCheckResourceArrayResponse.js +50 -0
- package/dist/models/WishlistToggleResource.d.ts +38 -0
- package/dist/models/WishlistToggleResource.js +55 -0
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistToggleResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +5 -16
- package/dist/models/index.js +5 -16
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/ProductCompareResource.md +1 -1
- package/docs/ProductSearchResultResource.md +2 -4
- package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
- package/docs/SupplierFrontendResource.md +4 -4
- package/docs/{StoreDefinitionRequest.md → WishlistCheckResource.md} +6 -8
- package/docs/{DefinitionResourceArrayResponse.md → WishlistCheckResourceArrayResponse.md} +5 -5
- package/docs/{DefinitionListResource.md → WishlistToggleResource.md} +8 -8
- package/docs/{DefinitionListResourceArrayResponse.md → WishlistToggleResourceArrayResponse.md} +5 -5
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/ProductCompareResource.ts +2 -2
- package/src/models/ProductSearchResultResource.ts +9 -18
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/SupplierFrontendResource.ts +27 -20
- package/src/models/WishlistCheckResource.ts +66 -0
- package/src/models/WishlistCheckResourceArrayResponse.ts +73 -0
- package/src/models/WishlistToggleResource.ts +75 -0
- package/src/models/WishlistToggleResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +5 -16
- package/dist/apis/DefinitionApi.d.ts +0 -85
- package/dist/apis/DefinitionApi.js +0 -355
- package/dist/models/CategoryFrontendResource.d.ts +0 -70
- package/dist/models/CategoryFrontendResource.js +0 -73
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
- package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
- package/dist/models/DefinitionListResource.d.ts +0 -38
- package/dist/models/DefinitionListResource.js +0 -55
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/DefinitionListResourceArrayResponse.js +0 -50
- package/dist/models/DefinitionResource.d.ts +0 -44
- package/dist/models/DefinitionResource.js +0 -59
- package/dist/models/DefinitionResourceArrayResponse.d.ts +0 -33
- package/dist/models/DefinitionResourceArrayResponse.js +0 -50
- package/dist/models/GetAllDefinitionRequest.d.ts +0 -80
- package/dist/models/GetAllDefinitionRequest.js +0 -76
- package/dist/models/IndexDefinitionRequest.d.ts +0 -92
- package/dist/models/IndexDefinitionRequest.js +0 -80
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedDefinitionListResourceResponse.js +0 -57
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedDefinitionResourceResponse.js +0 -57
- package/dist/models/ProductAvailability.d.ts +0 -26
- package/dist/models/ProductAvailability.js +0 -52
- package/dist/models/StoreDefinitionRequest.d.ts +0 -38
- package/dist/models/StoreDefinitionRequest.js +0 -55
- package/dist/models/UpdateDefinitionRequest.d.ts +0 -38
- package/dist/models/UpdateDefinitionRequest.js +0 -55
- package/docs/CategoryFrontendResource.md +0 -46
- package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/CategoryWithChildrenFrontendResource.md +0 -36
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
- package/docs/DefinitionApi.md +0 -407
- package/docs/DefinitionResource.md +0 -38
- package/docs/GetAllDefinitionRequest.md +0 -44
- package/docs/IndexDefinitionRequest.md +0 -48
- package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
- package/docs/PaginatedDefinitionListResourceResponse.md +0 -36
- package/docs/PaginatedDefinitionResourceResponse.md +0 -36
- package/docs/UpdateDefinitionRequest.md +0 -36
- package/src/apis/DefinitionApi.ts +0 -286
- package/src/models/CategoryFrontendResource.ts +0 -133
- package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
- package/src/models/DefinitionListResource.ts +0 -75
- package/src/models/DefinitionListResourceArrayResponse.ts +0 -73
- package/src/models/DefinitionResource.ts +0 -84
- package/src/models/DefinitionResourceArrayResponse.ts +0 -73
- package/src/models/GetAllDefinitionRequest.ts +0 -127
- package/src/models/IndexDefinitionRequest.ts +0 -143
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
- package/src/models/PaginatedDefinitionListResourceResponse.ts +0 -90
- package/src/models/PaginatedDefinitionResourceResponse.ts +0 -90
- package/src/models/ProductAvailability.ts +0 -54
- package/src/models/StoreDefinitionRequest.ts +0 -75
- package/src/models/UpdateDefinitionRequest.ts +0 -75
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# WishlistCheckResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<WishlistCheckResource>](WishlistCheckResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { WishlistCheckResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies WishlistCheckResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as WishlistCheckResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# WishlistToggleResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`action` | string
|
|
10
|
+
`product` | Array<number>
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { WishlistToggleResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
} satisfies
|
|
19
|
+
"action": null,
|
|
20
|
+
"product": null,
|
|
21
|
+
} satisfies WishlistToggleResource
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as WishlistToggleResource
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
package/docs/{DefinitionListResourceArrayResponse.md → WishlistToggleResourceArrayResponse.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# WishlistToggleResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<WishlistToggleResource>](WishlistToggleResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { WishlistToggleResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies WishlistToggleResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as WishlistToggleResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
AssetLiteResourceFromJSON,
|
|
19
|
-
AssetLiteResourceFromJSONTyped,
|
|
20
|
-
AssetLiteResourceToJSON,
|
|
21
|
-
AssetLiteResourceToJSONTyped,
|
|
22
|
-
} from './AssetLiteResource';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -59,10 +51,10 @@ export interface OverlayTemplateAssetFrontendResource {
|
|
|
59
51
|
verticalMargin: number;
|
|
60
52
|
/**
|
|
61
53
|
*
|
|
62
|
-
* @type {
|
|
54
|
+
* @type {Array<string>}
|
|
63
55
|
* @memberof OverlayTemplateAssetFrontendResource
|
|
64
56
|
*/
|
|
65
|
-
image:
|
|
57
|
+
image: Array<string>;
|
|
66
58
|
}
|
|
67
59
|
|
|
68
60
|
/**
|
|
@@ -93,7 +85,7 @@ export function OverlayTemplateAssetFrontendResourceFromJSONTyped(json: any, ign
|
|
|
93
85
|
'padding': json['padding'],
|
|
94
86
|
'horizontalMargin': json['horizontalMargin'],
|
|
95
87
|
'verticalMargin': json['verticalMargin'],
|
|
96
|
-
'image':
|
|
88
|
+
'image': json['image'],
|
|
97
89
|
};
|
|
98
90
|
}
|
|
99
91
|
|
|
@@ -113,7 +105,7 @@ export function OverlayTemplateAssetFrontendResourceToJSONTyped(value?: OverlayT
|
|
|
113
105
|
'padding': value['padding'],
|
|
114
106
|
'horizontalMargin': value['horizontalMargin'],
|
|
115
107
|
'verticalMargin': value['verticalMargin'],
|
|
116
|
-
'image':
|
|
108
|
+
'image': value['image'],
|
|
117
109
|
};
|
|
118
110
|
}
|
|
119
111
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AssetResource } from './AssetResource';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AssetResourceFromJSON,
|
|
19
|
+
AssetResourceFromJSONTyped,
|
|
20
|
+
AssetResourceToJSON,
|
|
21
|
+
AssetResourceToJSONTyped,
|
|
22
|
+
} from './AssetResource';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,10 +35,10 @@ export interface OverlayTemplateAssetResource {
|
|
|
35
35
|
id: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {AssetResource}
|
|
39
39
|
* @memberof OverlayTemplateAssetResource
|
|
40
40
|
*/
|
|
41
|
-
asset:
|
|
41
|
+
asset: AssetResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -89,7 +89,7 @@ export function OverlayTemplateAssetResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
89
89
|
return {
|
|
90
90
|
|
|
91
91
|
'id': json['id'],
|
|
92
|
-
'asset':
|
|
92
|
+
'asset': AssetResourceFromJSON(json['asset']),
|
|
93
93
|
'position': json['position'],
|
|
94
94
|
'padding': json['padding'],
|
|
95
95
|
'horizontalMargin': json['horizontalMargin'],
|
|
@@ -109,7 +109,7 @@ export function OverlayTemplateAssetResourceToJSONTyped(value?: OverlayTemplateA
|
|
|
109
109
|
return {
|
|
110
110
|
|
|
111
111
|
'id': value['id'],
|
|
112
|
-
'asset':
|
|
112
|
+
'asset': AssetResourceToJSON(value['asset']),
|
|
113
113
|
'position': value['position'],
|
|
114
114
|
'padding': value['padding'],
|
|
115
115
|
'horizontalMargin': value['horizontalMargin'],
|
|
@@ -79,6 +79,12 @@ export interface ProductSearchResultResource {
|
|
|
79
79
|
* @memberof ProductSearchResultResource
|
|
80
80
|
*/
|
|
81
81
|
labelDetails: Array<number>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<object>}
|
|
85
|
+
* @memberof ProductSearchResultResource
|
|
86
|
+
*/
|
|
87
|
+
categories: Array<object>;
|
|
82
88
|
/**
|
|
83
89
|
*
|
|
84
90
|
* @type {string}
|
|
@@ -109,18 +115,6 @@ export interface ProductSearchResultResource {
|
|
|
109
115
|
* @memberof ProductSearchResultResource
|
|
110
116
|
*/
|
|
111
117
|
wishlisted: boolean;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {number}
|
|
115
|
-
* @memberof ProductSearchResultResource
|
|
116
|
-
*/
|
|
117
|
-
variationCount: number;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {Array<object>}
|
|
121
|
-
* @memberof ProductSearchResultResource
|
|
122
|
-
*/
|
|
123
|
-
overlayAssets: Array<object>;
|
|
124
118
|
}
|
|
125
119
|
|
|
126
120
|
/**
|
|
@@ -136,13 +130,12 @@ export function instanceOfProductSearchResultResource(value: object): value is P
|
|
|
136
130
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
137
131
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
138
132
|
if (!('labelDetails' in value) || value['labelDetails'] === undefined) return false;
|
|
133
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
139
134
|
if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
|
|
140
135
|
if (!('supplierLogo' in value) || value['supplierLogo'] === undefined) return false;
|
|
141
136
|
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
142
137
|
if (!('availability' in value) || value['availability'] === undefined) return false;
|
|
143
138
|
if (!('wishlisted' in value) || value['wishlisted'] === undefined) return false;
|
|
144
|
-
if (!('variationCount' in value) || value['variationCount'] === undefined) return false;
|
|
145
|
-
if (!('overlayAssets' in value) || value['overlayAssets'] === undefined) return false;
|
|
146
139
|
return true;
|
|
147
140
|
}
|
|
148
141
|
|
|
@@ -166,13 +159,12 @@ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
166
159
|
'thumbnail': json['thumbnail'],
|
|
167
160
|
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
168
161
|
'labelDetails': json['labelDetails'],
|
|
162
|
+
'categories': json['categories'],
|
|
169
163
|
'supplierName': json['supplierName'],
|
|
170
164
|
'supplierLogo': json['supplierLogo'],
|
|
171
165
|
'supplierId': json['supplierId'],
|
|
172
166
|
'availability': json['availability'],
|
|
173
167
|
'wishlisted': json['wishlisted'],
|
|
174
|
-
'variationCount': json['variationCount'],
|
|
175
|
-
'overlayAssets': json['overlayAssets'],
|
|
176
168
|
};
|
|
177
169
|
}
|
|
178
170
|
|
|
@@ -197,13 +189,12 @@ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResu
|
|
|
197
189
|
'thumbnail': value['thumbnail'],
|
|
198
190
|
'averageRating': value['averageRating'],
|
|
199
191
|
'labelDetails': value['labelDetails'],
|
|
192
|
+
'categories': value['categories'],
|
|
200
193
|
'supplierName': value['supplierName'],
|
|
201
194
|
'supplierLogo': value['supplierLogo'],
|
|
202
195
|
'supplierId': value['supplierId'],
|
|
203
196
|
'availability': value['availability'],
|
|
204
197
|
'wishlisted': value['wishlisted'],
|
|
205
|
-
'variationCount': value['variationCount'],
|
|
206
|
-
'overlayAssets': value['overlayAssets'],
|
|
207
198
|
};
|
|
208
199
|
}
|
|
209
200
|
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductStatus = {
|
|
21
|
+
InStock: 'in_stock'
|
|
22
|
+
} as const;
|
|
23
|
+
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfProductStatus(value: any): boolean {
|
|
27
|
+
for (const key in ProductStatus) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(ProductStatus, key)) {
|
|
29
|
+
if (ProductStatus[key as keyof typeof ProductStatus] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ProductStatusFromJSON(json: any): ProductStatus {
|
|
38
|
+
return ProductStatusFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
42
|
+
return json as ProductStatus;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductStatusToJSON(value?: ProductStatus | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
50
|
+
return value as ProductStatus;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
AssetLiteResourceFromJSON,
|
|
19
|
-
AssetLiteResourceFromJSONTyped,
|
|
20
|
-
AssetLiteResourceToJSON,
|
|
21
|
-
AssetLiteResourceToJSONTyped,
|
|
22
|
-
} from './AssetLiteResource';
|
|
23
16
|
import type { DescriptionResource } from './DescriptionResource';
|
|
24
17
|
import {
|
|
25
18
|
DescriptionResourceFromJSON,
|
|
@@ -27,6 +20,20 @@ import {
|
|
|
27
20
|
DescriptionResourceToJSON,
|
|
28
21
|
DescriptionResourceToJSONTyped,
|
|
29
22
|
} from './DescriptionResource';
|
|
23
|
+
import type { AssetResource } from './AssetResource';
|
|
24
|
+
import {
|
|
25
|
+
AssetResourceFromJSON,
|
|
26
|
+
AssetResourceFromJSONTyped,
|
|
27
|
+
AssetResourceToJSON,
|
|
28
|
+
AssetResourceToJSONTyped,
|
|
29
|
+
} from './AssetResource';
|
|
30
|
+
import type { SEOResource } from './SEOResource';
|
|
31
|
+
import {
|
|
32
|
+
SEOResourceFromJSON,
|
|
33
|
+
SEOResourceFromJSONTyped,
|
|
34
|
+
SEOResourceToJSON,
|
|
35
|
+
SEOResourceToJSONTyped,
|
|
36
|
+
} from './SEOResource';
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
@@ -54,10 +61,10 @@ export interface SupplierFrontendResource {
|
|
|
54
61
|
slug: string;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
|
-
* @type {
|
|
64
|
+
* @type {AssetResource}
|
|
58
65
|
* @memberof SupplierFrontendResource
|
|
59
66
|
*/
|
|
60
|
-
thumbnail:
|
|
67
|
+
thumbnail: AssetResource | null;
|
|
61
68
|
/**
|
|
62
69
|
*
|
|
63
70
|
* @type {number}
|
|
@@ -66,16 +73,16 @@ export interface SupplierFrontendResource {
|
|
|
66
73
|
supplierEta: number;
|
|
67
74
|
/**
|
|
68
75
|
*
|
|
69
|
-
* @type {
|
|
76
|
+
* @type {SEOResource}
|
|
70
77
|
* @memberof SupplierFrontendResource
|
|
71
78
|
*/
|
|
72
|
-
seo:
|
|
79
|
+
seo: SEOResource | null;
|
|
73
80
|
/**
|
|
74
81
|
*
|
|
75
|
-
* @type {DescriptionResource}
|
|
82
|
+
* @type {Array<DescriptionResource>}
|
|
76
83
|
* @memberof SupplierFrontendResource
|
|
77
84
|
*/
|
|
78
|
-
|
|
85
|
+
descriptions: Array<DescriptionResource> | null;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
/**
|
|
@@ -88,7 +95,7 @@ export function instanceOfSupplierFrontendResource(value: object): value is Supp
|
|
|
88
95
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
89
96
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
90
97
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
91
|
-
if (!('
|
|
98
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
92
99
|
return true;
|
|
93
100
|
}
|
|
94
101
|
|
|
@@ -105,10 +112,10 @@ export function SupplierFrontendResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
105
112
|
'id': json['id'],
|
|
106
113
|
'name': json['name'],
|
|
107
114
|
'slug': json['slug'],
|
|
108
|
-
'thumbnail':
|
|
115
|
+
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
109
116
|
'supplierEta': json['supplierEta'],
|
|
110
|
-
'seo': json['seo'],
|
|
111
|
-
'
|
|
117
|
+
'seo': SEOResourceFromJSON(json['seo']),
|
|
118
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
112
119
|
};
|
|
113
120
|
}
|
|
114
121
|
|
|
@@ -126,10 +133,10 @@ export function SupplierFrontendResourceToJSONTyped(value?: SupplierFrontendReso
|
|
|
126
133
|
'id': value['id'],
|
|
127
134
|
'name': value['name'],
|
|
128
135
|
'slug': value['slug'],
|
|
129
|
-
'thumbnail':
|
|
136
|
+
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
130
137
|
'supplierEta': value['supplierEta'],
|
|
131
|
-
'seo': value['seo'],
|
|
132
|
-
'
|
|
138
|
+
'seo': SEOResourceToJSON(value['seo']),
|
|
139
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
133
140
|
};
|
|
134
141
|
}
|
|
135
142
|
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WishlistCheckResource
|
|
20
|
+
*/
|
|
21
|
+
export interface WishlistCheckResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof WishlistCheckResource
|
|
26
|
+
*/
|
|
27
|
+
inWishlist: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the WishlistCheckResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfWishlistCheckResource(value: object): value is WishlistCheckResource {
|
|
34
|
+
if (!('inWishlist' in value) || value['inWishlist'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function WishlistCheckResourceFromJSON(json: any): WishlistCheckResource {
|
|
39
|
+
return WishlistCheckResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function WishlistCheckResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'inWishlist': json['in_wishlist'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function WishlistCheckResourceToJSON(json: any): WishlistCheckResource {
|
|
53
|
+
return WishlistCheckResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function WishlistCheckResourceToJSONTyped(value?: WishlistCheckResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'in_wishlist': value['inWishlist'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { WishlistCheckResource } from './WishlistCheckResource';
|
|
17
|
+
import {
|
|
18
|
+
WishlistCheckResourceFromJSON,
|
|
19
|
+
WishlistCheckResourceFromJSONTyped,
|
|
20
|
+
WishlistCheckResourceToJSON,
|
|
21
|
+
WishlistCheckResourceToJSONTyped,
|
|
22
|
+
} from './WishlistCheckResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WishlistCheckResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface WishlistCheckResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<WishlistCheckResource>}
|
|
33
|
+
* @memberof WishlistCheckResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<WishlistCheckResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the WishlistCheckResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfWishlistCheckResourceArrayResponse(value: object): value is WishlistCheckResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WishlistCheckResourceArrayResponseFromJSON(json: any): WishlistCheckResourceArrayResponse {
|
|
46
|
+
return WishlistCheckResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function WishlistCheckResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistCheckResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(WishlistCheckResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function WishlistCheckResourceArrayResponseToJSON(json: any): WishlistCheckResourceArrayResponse {
|
|
60
|
+
return WishlistCheckResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function WishlistCheckResourceArrayResponseToJSONTyped(value?: WishlistCheckResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(WishlistCheckResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|