@digital8/lighting-illusions-ts-sdk 0.0.622 → 0.0.623
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 -30
- package/README.md +18 -17
- package/dist/apis/DefinitionApi.d.ts +85 -0
- package/dist/apis/DefinitionApi.js +355 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/DefinitionListResource.d.ts +38 -0
- package/dist/models/DefinitionListResource.js +55 -0
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionResource.d.ts +44 -0
- package/dist/models/DefinitionResource.js +59 -0
- package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
- package/dist/models/GetAllDefinitionRequest.js +76 -0
- package/dist/models/IndexDefinitionRequest.d.ts +92 -0
- package/dist/models/IndexDefinitionRequest.js +80 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
- package/dist/models/StoreDefinitionRequest.d.ts +38 -0
- package/dist/models/StoreDefinitionRequest.js +55 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
- package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
- package/dist/models/UpdateDefinitionRequest.js +55 -0
- package/dist/models/index.d.ts +10 -15
- package/dist/models/index.js +10 -15
- package/docs/DefinitionApi.md +407 -0
- package/docs/{DocumentFrontendResource.md → DefinitionListResource.md} +4 -6
- package/docs/{ProductCompareResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
- package/docs/DefinitionResource.md +38 -0
- package/docs/{AssetFrontendResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
- package/docs/{DocumentFrontendResourceArrayResponse.md → GetAllDefinitionRequest.md} +16 -6
- package/docs/IndexDefinitionRequest.md +48 -0
- package/docs/{PaginatedWishlistProductResourceResponse.md → PaginatedDefinitionListResourceResponse.md} +5 -5
- package/docs/{WishlistToggleResourceArrayResponse.md → PaginatedDefinitionResourceResponse.md} +7 -5
- package/docs/{WishlistToggleResource.md → StoreDefinitionRequest.md} +8 -8
- package/docs/StoreProductCategoryRequest.md +1 -1
- package/docs/{WishlistCheckResource.md → UpdateDefinitionRequest.md} +8 -6
- package/package.json +1 -1
- package/src/apis/DefinitionApi.ts +286 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DefinitionListResource.ts +75 -0
- package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionResource.ts +84 -0
- package/src/models/DefinitionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllDefinitionRequest.ts +127 -0
- package/src/models/IndexDefinitionRequest.ts +143 -0
- package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
- package/src/models/StoreDefinitionRequest.ts +75 -0
- package/src/models/StoreProductCategoryRequest.ts +2 -2
- package/src/models/UpdateDefinitionRequest.ts +75 -0
- package/src/models/index.ts +10 -15
- package/dist/models/AssetFrontendResource.d.ts +0 -74
- package/dist/models/AssetFrontendResource.js +0 -79
- package/dist/models/AssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/DocumentFrontendResource.d.ts +0 -44
- package/dist/models/DocumentFrontendResource.js +0 -57
- package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/DocumentFrontendResourceArrayResponse.js +0 -50
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +0 -62
- package/dist/models/OverlayTemplateAssetFrontendResource.js +0 -71
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedWishlistProductResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedWishlistProductResourceResponse.js +0 -57
- package/dist/models/ProductCompareResource.d.ts +0 -141
- package/dist/models/ProductCompareResource.js +0 -124
- package/dist/models/ProductCompareResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductCompareResourceArrayResponse.js +0 -50
- package/dist/models/WishlistCheckResource.d.ts +0 -32
- package/dist/models/WishlistCheckResource.js +0 -51
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistCheckResourceArrayResponse.js +0 -50
- package/dist/models/WishlistProductResource.d.ts +0 -122
- package/dist/models/WishlistProductResource.js +0 -105
- package/dist/models/WishlistProductResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistProductResourceArrayResponse.js +0 -50
- package/dist/models/WishlistToggleResource.d.ts +0 -38
- package/dist/models/WishlistToggleResource.js +0 -55
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistToggleResourceArrayResponse.js +0 -50
- package/docs/AssetFrontendResource.md +0 -48
- package/docs/OverlayTemplateAssetFrontendResource.md +0 -44
- package/docs/OverlayTemplateAssetFrontendResourceArrayResponse.md +0 -34
- package/docs/ProductCompareResource.md +0 -70
- package/docs/WishlistCheckResourceArrayResponse.md +0 -34
- package/docs/WishlistProductResource.md +0 -64
- package/docs/WishlistProductResourceArrayResponse.md +0 -34
- package/src/models/AssetFrontendResource.ts +0 -129
- package/src/models/AssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/DocumentFrontendResource.ts +0 -83
- package/src/models/DocumentFrontendResourceArrayResponse.ts +0 -73
- package/src/models/OverlayTemplateAssetFrontendResource.ts +0 -111
- package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedWishlistProductResourceResponse.ts +0 -90
- package/src/models/ProductCompareResource.ts +0 -236
- package/src/models/ProductCompareResourceArrayResponse.ts +0 -73
- package/src/models/WishlistCheckResource.ts +0 -66
- package/src/models/WishlistCheckResourceArrayResponse.ts +0 -73
- package/src/models/WishlistProductResource.ts +0 -198
- package/src/models/WishlistProductResourceArrayResponse.ts +0 -73
- package/src/models/WishlistToggleResource.ts +0 -75
- package/src/models/WishlistToggleResourceArrayResponse.ts +0 -73
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,198 +0,0 @@
|
|
|
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 WishlistProductResource
|
|
20
|
-
*/
|
|
21
|
-
export interface WishlistProductResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof WishlistProductResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof WishlistProductResource
|
|
32
|
-
*/
|
|
33
|
-
sku: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof WishlistProductResource
|
|
38
|
-
*/
|
|
39
|
-
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof WishlistProductResource
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof WishlistProductResource
|
|
50
|
-
*/
|
|
51
|
-
slug: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof WishlistProductResource
|
|
56
|
-
*/
|
|
57
|
-
price: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof WishlistProductResource
|
|
62
|
-
*/
|
|
63
|
-
salePrice: number;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof WishlistProductResource
|
|
68
|
-
*/
|
|
69
|
-
thumbnail?: string | null;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {number}
|
|
73
|
-
* @memberof WishlistProductResource
|
|
74
|
-
*/
|
|
75
|
-
averageRating: number;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof WishlistProductResource
|
|
80
|
-
*/
|
|
81
|
-
labelDetails?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Array<boolean>}
|
|
85
|
-
* @memberof WishlistProductResource
|
|
86
|
-
*/
|
|
87
|
-
categories: Array<boolean>;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof WishlistProductResource
|
|
92
|
-
*/
|
|
93
|
-
supplierName: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof WishlistProductResource
|
|
98
|
-
*/
|
|
99
|
-
supplierLogo?: string | null;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {number}
|
|
103
|
-
* @memberof WishlistProductResource
|
|
104
|
-
*/
|
|
105
|
-
supplierId: number;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof WishlistProductResource
|
|
110
|
-
*/
|
|
111
|
-
availability: string;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {boolean}
|
|
115
|
-
* @memberof WishlistProductResource
|
|
116
|
-
*/
|
|
117
|
-
wishlisted: boolean;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Check if a given object implements the WishlistProductResource interface.
|
|
122
|
-
*/
|
|
123
|
-
export function instanceOfWishlistProductResource(value: object): value is WishlistProductResource {
|
|
124
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
125
|
-
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
126
|
-
if (!('model' in value) || value['model'] === undefined) return false;
|
|
127
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
128
|
-
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
129
|
-
if (!('price' in value) || value['price'] === undefined) return false;
|
|
130
|
-
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
131
|
-
if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
|
|
132
|
-
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
133
|
-
if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
|
|
134
|
-
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
135
|
-
if (!('availability' in value) || value['availability'] === undefined) return false;
|
|
136
|
-
if (!('wishlisted' in value) || value['wishlisted'] === undefined) return false;
|
|
137
|
-
return true;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export function WishlistProductResourceFromJSON(json: any): WishlistProductResource {
|
|
141
|
-
return WishlistProductResourceFromJSONTyped(json, false);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export function WishlistProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResource {
|
|
145
|
-
if (json == null) {
|
|
146
|
-
return json;
|
|
147
|
-
}
|
|
148
|
-
return {
|
|
149
|
-
|
|
150
|
-
'id': json['id'],
|
|
151
|
-
'sku': json['sku'],
|
|
152
|
-
'model': json['model'],
|
|
153
|
-
'name': json['name'],
|
|
154
|
-
'slug': json['slug'],
|
|
155
|
-
'price': json['price'],
|
|
156
|
-
'salePrice': json['salePrice'],
|
|
157
|
-
'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
|
|
158
|
-
'averageRating': json['averageRating'],
|
|
159
|
-
'labelDetails': json['labelDetails'] == null ? undefined : json['labelDetails'],
|
|
160
|
-
'categories': json['categories'],
|
|
161
|
-
'supplierName': json['supplierName'],
|
|
162
|
-
'supplierLogo': json['supplierLogo'] == null ? undefined : json['supplierLogo'],
|
|
163
|
-
'supplierId': json['supplierId'],
|
|
164
|
-
'availability': json['availability'],
|
|
165
|
-
'wishlisted': json['wishlisted'],
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export function WishlistProductResourceToJSON(json: any): WishlistProductResource {
|
|
170
|
-
return WishlistProductResourceToJSONTyped(json, false);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export function WishlistProductResourceToJSONTyped(value?: WishlistProductResource | null, ignoreDiscriminator: boolean = false): any {
|
|
174
|
-
if (value == null) {
|
|
175
|
-
return value;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
return {
|
|
179
|
-
|
|
180
|
-
'id': value['id'],
|
|
181
|
-
'sku': value['sku'],
|
|
182
|
-
'model': value['model'],
|
|
183
|
-
'name': value['name'],
|
|
184
|
-
'slug': value['slug'],
|
|
185
|
-
'price': value['price'],
|
|
186
|
-
'salePrice': value['salePrice'],
|
|
187
|
-
'thumbnail': value['thumbnail'],
|
|
188
|
-
'averageRating': value['averageRating'],
|
|
189
|
-
'labelDetails': value['labelDetails'],
|
|
190
|
-
'categories': value['categories'],
|
|
191
|
-
'supplierName': value['supplierName'],
|
|
192
|
-
'supplierLogo': value['supplierLogo'],
|
|
193
|
-
'supplierId': value['supplierId'],
|
|
194
|
-
'availability': value['availability'],
|
|
195
|
-
'wishlisted': value['wishlisted'],
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { WishlistProductResource } from './WishlistProductResource';
|
|
17
|
-
import {
|
|
18
|
-
WishlistProductResourceFromJSON,
|
|
19
|
-
WishlistProductResourceFromJSONTyped,
|
|
20
|
-
WishlistProductResourceToJSON,
|
|
21
|
-
WishlistProductResourceToJSONTyped,
|
|
22
|
-
} from './WishlistProductResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WishlistProductResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface WishlistProductResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<WishlistProductResource>}
|
|
33
|
-
* @memberof WishlistProductResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<WishlistProductResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the WishlistProductResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfWishlistProductResourceArrayResponse(value: object): value is WishlistProductResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function WishlistProductResourceArrayResponseFromJSON(json: any): WishlistProductResourceArrayResponse {
|
|
46
|
-
return WishlistProductResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function WishlistProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistProductResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(WishlistProductResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function WishlistProductResourceArrayResponseToJSON(json: any): WishlistProductResourceArrayResponse {
|
|
60
|
-
return WishlistProductResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function WishlistProductResourceArrayResponseToJSONTyped(value?: WishlistProductResourceArrayResponse | 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(WishlistProductResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
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 WishlistToggleResource
|
|
20
|
-
*/
|
|
21
|
-
export interface WishlistToggleResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof WishlistToggleResource
|
|
26
|
-
*/
|
|
27
|
-
action: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Array<number>}
|
|
31
|
-
* @memberof WishlistToggleResource
|
|
32
|
-
*/
|
|
33
|
-
product: Array<number>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the WishlistToggleResource interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfWishlistToggleResource(value: object): value is WishlistToggleResource {
|
|
40
|
-
if (!('action' in value) || value['action'] === undefined) return false;
|
|
41
|
-
if (!('product' in value) || value['product'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function WishlistToggleResourceFromJSON(json: any): WishlistToggleResource {
|
|
46
|
-
return WishlistToggleResourceFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function WishlistToggleResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResource {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'action': json['action'],
|
|
56
|
-
'product': json['product'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function WishlistToggleResourceToJSON(json: any): WishlistToggleResource {
|
|
61
|
-
return WishlistToggleResourceToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function WishlistToggleResourceToJSONTyped(value?: WishlistToggleResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'action': value['action'],
|
|
72
|
-
'product': value['product'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { WishlistToggleResource } from './WishlistToggleResource';
|
|
17
|
-
import {
|
|
18
|
-
WishlistToggleResourceFromJSON,
|
|
19
|
-
WishlistToggleResourceFromJSONTyped,
|
|
20
|
-
WishlistToggleResourceToJSON,
|
|
21
|
-
WishlistToggleResourceToJSONTyped,
|
|
22
|
-
} from './WishlistToggleResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WishlistToggleResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface WishlistToggleResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<WishlistToggleResource>}
|
|
33
|
-
* @memberof WishlistToggleResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<WishlistToggleResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the WishlistToggleResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfWishlistToggleResourceArrayResponse(value: object): value is WishlistToggleResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function WishlistToggleResourceArrayResponseFromJSON(json: any): WishlistToggleResourceArrayResponse {
|
|
46
|
-
return WishlistToggleResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function WishlistToggleResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WishlistToggleResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(WishlistToggleResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function WishlistToggleResourceArrayResponseToJSON(json: any): WishlistToggleResourceArrayResponse {
|
|
60
|
-
return WishlistToggleResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function WishlistToggleResourceArrayResponseToJSONTyped(value?: WishlistToggleResourceArrayResponse | 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(WishlistToggleResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|