@digital8/lighting-illusions-ts-sdk 0.0.708 → 0.0.709
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 +56 -0
- package/README.md +43 -2
- package/dist/apis/ProductRangeApi.d.ts +181 -0
- package/dist/apis/ProductRangeApi.js +739 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAttributesProductRangeRequest.js +51 -0
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +1 -0
- package/dist/models/GetAllDocumentRequest.js +2 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +1 -0
- package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
- package/dist/models/GetAllProductRangeRequest.js +82 -0
- package/dist/models/IndexAttributeRequest.d.ts +2 -0
- package/dist/models/IndexAttributeRequest.js +3 -1
- package/dist/models/IndexDocumentRequest.d.ts +1 -0
- package/dist/models/IndexDocumentRequest.js +2 -1
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/IndexProductRangeRequest.js +86 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
- package/dist/models/ProductChildResource.d.ts +7 -1
- package/dist/models/ProductChildResource.js +4 -2
- package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
- package/dist/models/ProductRangeFrontendListResource.js +71 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
- package/dist/models/ProductRangeFrontendResource.js +109 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeListResource.d.ts +52 -0
- package/dist/models/ProductRangeListResource.js +65 -0
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeLiteResource.d.ts +38 -0
- package/dist/models/ProductRangeLiteResource.js +55 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeResource.d.ts +83 -0
- package/dist/models/ProductRangeResource.js +82 -0
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailResource.d.ts +94 -0
- package/dist/models/ProductRangeSiteDetailResource.js +93 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductRangeRequest.d.ts +52 -0
- package/dist/models/StoreProductRangeRequest.js +59 -0
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
- package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
- package/dist/models/UpdateProductRangeRequest.d.ts +52 -0
- package/dist/models/UpdateProductRangeRequest.js +59 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachDocumentsProductRangeRequest.md +34 -0
- package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
- package/docs/DetachAttributesProductRangeRequest.md +34 -0
- package/docs/DetachDocumentsProductRangeRequest.md +34 -0
- package/docs/GetAllProductRangeRequest.md +50 -0
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeResourceResponse.md +36 -0
- package/docs/ProductChildResource.md +4 -2
- package/docs/ProductRangeApi.md +959 -0
- package/docs/ProductRangeFrontendListResource.md +44 -0
- package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeFrontendResource.md +62 -0
- package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductRangeListResource.md +40 -0
- package/docs/ProductRangeListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeLiteResource.md +36 -0
- package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeResource.md +50 -0
- package/docs/ProductRangeResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailResource.md +54 -0
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
- package/docs/StoreProductRangeRequest.md +40 -0
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/UpdateProductRangeRequest.md +40 -0
- package/package.json +1 -1
- package/src/apis/ProductRangeApi.ts +664 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/AttachAttributesProductRangeRequest.ts +66 -0
- package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
- package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
- package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +2 -1
- package/src/models/GetAllProductChildRequest.ts +1 -0
- package/src/models/GetAllProductRangeRequest.ts +151 -0
- package/src/models/IndexAttributeRequest.ts +3 -1
- package/src/models/IndexDocumentRequest.ts +2 -1
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
- package/src/models/ProductChildResource.ts +11 -3
- package/src/models/ProductRangeFrontendListResource.ts +111 -0
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +207 -0
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeListResource.ts +108 -0
- package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeLiteResource.ts +75 -0
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeResource.ts +158 -0
- package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailResource.ts +171 -0
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateProductRangeRequest.ts +105 -0
- package/src/models/index.ts +27 -0
|
@@ -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 { ProductRangeFrontendListResource } from './ProductRangeFrontendListResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRangeFrontendListResourceFromJSON,
|
|
19
|
+
ProductRangeFrontendListResourceFromJSONTyped,
|
|
20
|
+
ProductRangeFrontendListResourceToJSON,
|
|
21
|
+
ProductRangeFrontendListResourceToJSONTyped,
|
|
22
|
+
} from './ProductRangeFrontendListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRangeFrontendListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRangeFrontendListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRangeFrontendListResource>}
|
|
33
|
+
* @memberof ProductRangeFrontendListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRangeFrontendListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRangeFrontendListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRangeFrontendListResourceArrayResponse(value: object): value is ProductRangeFrontendListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRangeFrontendListResourceArrayResponseFromJSON(json: any): ProductRangeFrontendListResourceArrayResponse {
|
|
46
|
+
return ProductRangeFrontendListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRangeFrontendListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRangeFrontendListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRangeFrontendListResourceArrayResponseToJSON(json: any): ProductRangeFrontendListResourceArrayResponse {
|
|
60
|
+
return ProductRangeFrontendListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRangeFrontendListResourceArrayResponseToJSONTyped(value?: ProductRangeFrontendListResourceArrayResponse | 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(ProductRangeFrontendListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,207 @@
|
|
|
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 { SupplierFrontendResource } from './SupplierFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
SupplierFrontendResourceFromJSON,
|
|
19
|
+
SupplierFrontendResourceFromJSONTyped,
|
|
20
|
+
SupplierFrontendResourceToJSON,
|
|
21
|
+
SupplierFrontendResourceToJSONTyped,
|
|
22
|
+
} from './SupplierFrontendResource';
|
|
23
|
+
import type { AssetFrontendResource } from './AssetFrontendResource';
|
|
24
|
+
import {
|
|
25
|
+
AssetFrontendResourceFromJSON,
|
|
26
|
+
AssetFrontendResourceFromJSONTyped,
|
|
27
|
+
AssetFrontendResourceToJSON,
|
|
28
|
+
AssetFrontendResourceToJSONTyped,
|
|
29
|
+
} from './AssetFrontendResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ProductRangeFrontendResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductRangeFrontendResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ProductRangeFrontendResource
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ProductRangeFrontendResource
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ProductRangeFrontendResource
|
|
53
|
+
*/
|
|
54
|
+
slug: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ProductRangeFrontendResource
|
|
59
|
+
*/
|
|
60
|
+
description: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ProductRangeFrontendResource
|
|
65
|
+
*/
|
|
66
|
+
content: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ProductRangeFrontendResource
|
|
71
|
+
*/
|
|
72
|
+
excerpt: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ProductRangeFrontendResource
|
|
77
|
+
*/
|
|
78
|
+
siteId: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {SupplierFrontendResource}
|
|
82
|
+
* @memberof ProductRangeFrontendResource
|
|
83
|
+
*/
|
|
84
|
+
supplier: SupplierFrontendResource | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @memberof ProductRangeFrontendResource
|
|
89
|
+
*/
|
|
90
|
+
categories: object;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {object}
|
|
94
|
+
* @memberof ProductRangeFrontendResource
|
|
95
|
+
*/
|
|
96
|
+
products: object;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {object}
|
|
100
|
+
* @memberof ProductRangeFrontendResource
|
|
101
|
+
*/
|
|
102
|
+
accessories: object;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {object}
|
|
106
|
+
* @memberof ProductRangeFrontendResource
|
|
107
|
+
*/
|
|
108
|
+
documents: object;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {object}
|
|
112
|
+
* @memberof ProductRangeFrontendResource
|
|
113
|
+
*/
|
|
114
|
+
seo: object;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {Array<AssetFrontendResource>}
|
|
118
|
+
* @memberof ProductRangeFrontendResource
|
|
119
|
+
*/
|
|
120
|
+
assets: Array<AssetFrontendResource> | null;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {AssetFrontendResource}
|
|
124
|
+
* @memberof ProductRangeFrontendResource
|
|
125
|
+
*/
|
|
126
|
+
thumbnail: AssetFrontendResource | null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Check if a given object implements the ProductRangeFrontendResource interface.
|
|
131
|
+
*/
|
|
132
|
+
export function instanceOfProductRangeFrontendResource(value: object): value is ProductRangeFrontendResource {
|
|
133
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
134
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
135
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
136
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
137
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
138
|
+
if (!('excerpt' in value) || value['excerpt'] === undefined) return false;
|
|
139
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
140
|
+
if (!('supplier' in value) || value['supplier'] === undefined) return false;
|
|
141
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
142
|
+
if (!('products' in value) || value['products'] === undefined) return false;
|
|
143
|
+
if (!('accessories' in value) || value['accessories'] === undefined) return false;
|
|
144
|
+
if (!('documents' in value) || value['documents'] === undefined) return false;
|
|
145
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
146
|
+
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
147
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function ProductRangeFrontendResourceFromJSON(json: any): ProductRangeFrontendResource {
|
|
152
|
+
return ProductRangeFrontendResourceFromJSONTyped(json, false);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function ProductRangeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendResource {
|
|
156
|
+
if (json == null) {
|
|
157
|
+
return json;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': json['id'],
|
|
162
|
+
'name': json['name'],
|
|
163
|
+
'slug': json['slug'],
|
|
164
|
+
'description': json['description'],
|
|
165
|
+
'content': json['content'],
|
|
166
|
+
'excerpt': json['excerpt'],
|
|
167
|
+
'siteId': json['siteId'],
|
|
168
|
+
'supplier': SupplierFrontendResourceFromJSON(json['supplier']),
|
|
169
|
+
'categories': json['categories'],
|
|
170
|
+
'products': json['products'],
|
|
171
|
+
'accessories': json['accessories'],
|
|
172
|
+
'documents': json['documents'],
|
|
173
|
+
'seo': json['seo'],
|
|
174
|
+
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetFrontendResourceFromJSON)),
|
|
175
|
+
'thumbnail': AssetFrontendResourceFromJSON(json['thumbnail']),
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function ProductRangeFrontendResourceToJSON(json: any): ProductRangeFrontendResource {
|
|
180
|
+
return ProductRangeFrontendResourceToJSONTyped(json, false);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function ProductRangeFrontendResourceToJSONTyped(value?: ProductRangeFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
184
|
+
if (value == null) {
|
|
185
|
+
return value;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
|
|
190
|
+
'id': value['id'],
|
|
191
|
+
'name': value['name'],
|
|
192
|
+
'slug': value['slug'],
|
|
193
|
+
'description': value['description'],
|
|
194
|
+
'content': value['content'],
|
|
195
|
+
'excerpt': value['excerpt'],
|
|
196
|
+
'siteId': value['siteId'],
|
|
197
|
+
'supplier': SupplierFrontendResourceToJSON(value['supplier']),
|
|
198
|
+
'categories': value['categories'],
|
|
199
|
+
'products': value['products'],
|
|
200
|
+
'accessories': value['accessories'],
|
|
201
|
+
'documents': value['documents'],
|
|
202
|
+
'seo': value['seo'],
|
|
203
|
+
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetFrontendResourceToJSON)),
|
|
204
|
+
'thumbnail': AssetFrontendResourceToJSON(value['thumbnail']),
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
@@ -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 { ProductRangeFrontendResource } from './ProductRangeFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRangeFrontendResourceFromJSON,
|
|
19
|
+
ProductRangeFrontendResourceFromJSONTyped,
|
|
20
|
+
ProductRangeFrontendResourceToJSON,
|
|
21
|
+
ProductRangeFrontendResourceToJSONTyped,
|
|
22
|
+
} from './ProductRangeFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRangeFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRangeFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRangeFrontendResource>}
|
|
33
|
+
* @memberof ProductRangeFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRangeFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRangeFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRangeFrontendResourceArrayResponse(value: object): value is ProductRangeFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRangeFrontendResourceArrayResponseFromJSON(json: any): ProductRangeFrontendResourceArrayResponse {
|
|
46
|
+
return ProductRangeFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRangeFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRangeFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRangeFrontendResourceArrayResponseToJSON(json: any): ProductRangeFrontendResourceArrayResponse {
|
|
60
|
+
return ProductRangeFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRangeFrontendResourceArrayResponseToJSONTyped(value?: ProductRangeFrontendResourceArrayResponse | 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(ProductRangeFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
import type { SupplierLiteResource } from './SupplierLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
SupplierLiteResourceFromJSON,
|
|
26
|
+
SupplierLiteResourceFromJSONTyped,
|
|
27
|
+
SupplierLiteResourceToJSON,
|
|
28
|
+
SupplierLiteResourceToJSONTyped,
|
|
29
|
+
} from './SupplierLiteResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ProductRangeListResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductRangeListResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ProductRangeListResource
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ProductRangeListResource
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {SupplierLiteResource}
|
|
52
|
+
* @memberof ProductRangeListResource
|
|
53
|
+
*/
|
|
54
|
+
supplier: SupplierLiteResource | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<SiteLiteResource>}
|
|
58
|
+
* @memberof ProductRangeListResource
|
|
59
|
+
*/
|
|
60
|
+
sites: Array<SiteLiteResource> | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ProductRangeListResource interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfProductRangeListResource(value: object): value is ProductRangeListResource {
|
|
67
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
68
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
69
|
+
if (!('supplier' in value) || value['supplier'] === undefined) return false;
|
|
70
|
+
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ProductRangeListResourceFromJSON(json: any): ProductRangeListResource {
|
|
75
|
+
return ProductRangeListResourceFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ProductRangeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeListResource {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'id': json['id'],
|
|
85
|
+
'name': json['name'],
|
|
86
|
+
'supplier': SupplierLiteResourceFromJSON(json['supplier']),
|
|
87
|
+
'sites': (json['sites'] == null ? null : (json['sites'] as Array<any>).map(SiteLiteResourceFromJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ProductRangeListResourceToJSON(json: any): ProductRangeListResource {
|
|
92
|
+
return ProductRangeListResourceToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ProductRangeListResourceToJSONTyped(value?: ProductRangeListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'name': value['name'],
|
|
104
|
+
'supplier': SupplierLiteResourceToJSON(value['supplier']),
|
|
105
|
+
'sites': (value['sites'] == null ? null : (value['sites'] as Array<any>).map(SiteLiteResourceToJSON)),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -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 { ProductRangeListResource } from './ProductRangeListResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRangeListResourceFromJSON,
|
|
19
|
+
ProductRangeListResourceFromJSONTyped,
|
|
20
|
+
ProductRangeListResourceToJSON,
|
|
21
|
+
ProductRangeListResourceToJSONTyped,
|
|
22
|
+
} from './ProductRangeListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRangeListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRangeListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRangeListResource>}
|
|
33
|
+
* @memberof ProductRangeListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRangeListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRangeListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRangeListResourceArrayResponse(value: object): value is ProductRangeListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRangeListResourceArrayResponseFromJSON(json: any): ProductRangeListResourceArrayResponse {
|
|
46
|
+
return ProductRangeListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRangeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRangeListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRangeListResourceArrayResponseToJSON(json: any): ProductRangeListResourceArrayResponse {
|
|
60
|
+
return ProductRangeListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRangeListResourceArrayResponseToJSONTyped(value?: ProductRangeListResourceArrayResponse | 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(ProductRangeListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ProductRangeLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductRangeLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductRangeLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductRangeLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ProductRangeLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfProductRangeLiteResource(value: object): value is ProductRangeLiteResource {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRangeLiteResourceFromJSON(json: any): ProductRangeLiteResource {
|
|
46
|
+
return ProductRangeLiteResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRangeLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeLiteResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ProductRangeLiteResourceToJSON(json: any): ProductRangeLiteResource {
|
|
61
|
+
return ProductRangeLiteResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ProductRangeLiteResourceToJSONTyped(value?: ProductRangeLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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 { ProductRangeLiteResource } from './ProductRangeLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRangeLiteResourceFromJSON,
|
|
19
|
+
ProductRangeLiteResourceFromJSONTyped,
|
|
20
|
+
ProductRangeLiteResourceToJSON,
|
|
21
|
+
ProductRangeLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductRangeLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRangeLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRangeLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRangeLiteResource>}
|
|
33
|
+
* @memberof ProductRangeLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRangeLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRangeLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRangeLiteResourceArrayResponse(value: object): value is ProductRangeLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRangeLiteResourceArrayResponseFromJSON(json: any): ProductRangeLiteResourceArrayResponse {
|
|
46
|
+
return ProductRangeLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRangeLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRangeLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRangeLiteResourceArrayResponseToJSON(json: any): ProductRangeLiteResourceArrayResponse {
|
|
60
|
+
return ProductRangeLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRangeLiteResourceArrayResponseToJSONTyped(value?: ProductRangeLiteResourceArrayResponse | 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(ProductRangeLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|