@digital8/lighting-illusions-ts-sdk 0.0.414 → 0.0.416
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 +6 -0
- package/README.md +5 -2
- package/dist/models/PaginatedProductChildOverlayRelationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildOverlayRelationResourceResponse.js +57 -0
- package/dist/models/ProductChildOverlayRelationResource.d.ts +81 -0
- package/dist/models/ProductChildOverlayRelationResource.js +84 -0
- package/dist/models/ProductChildOverlayRelationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildOverlayRelationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/PaginatedProductChildOverlayRelationResourceResponse.md +36 -0
- package/docs/ProductChildOverlayRelationResource.md +50 -0
- package/docs/ProductChildOverlayRelationResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/PaginatedProductChildOverlayRelationResourceResponse.ts +90 -0
- package/src/models/ProductChildOverlayRelationResource.ts +146 -0
- package/src/models/ProductChildOverlayRelationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -54,6 +54,7 @@ docs/PaginatedAttributeResourceResponse.md
|
|
|
54
54
|
docs/PaginatedOverlayTemplateLiteResourceResponse.md
|
|
55
55
|
docs/PaginatedOverlayTemplateResourceResponse.md
|
|
56
56
|
docs/PaginatedProductChildLiteResourceResponse.md
|
|
57
|
+
docs/PaginatedProductChildOverlayRelationResourceResponse.md
|
|
57
58
|
docs/PaginatedProductChildRelationResourceResponse.md
|
|
58
59
|
docs/PaginatedProductChildResourceResponse.md
|
|
59
60
|
docs/PaginatedProductLiteResourceResponse.md
|
|
@@ -72,6 +73,8 @@ docs/PagingMetadata.md
|
|
|
72
73
|
docs/ProductApi.md
|
|
73
74
|
docs/ProductChildLiteResource.md
|
|
74
75
|
docs/ProductChildLiteResourceArrayResponse.md
|
|
76
|
+
docs/ProductChildOverlayRelationResource.md
|
|
77
|
+
docs/ProductChildOverlayRelationResourceArrayResponse.md
|
|
75
78
|
docs/ProductChildRelationResource.md
|
|
76
79
|
docs/ProductChildRelationResourceArrayResponse.md
|
|
77
80
|
docs/ProductChildResource.md
|
|
@@ -210,6 +213,7 @@ src/models/PaginatedAttributeResourceResponse.ts
|
|
|
210
213
|
src/models/PaginatedOverlayTemplateLiteResourceResponse.ts
|
|
211
214
|
src/models/PaginatedOverlayTemplateResourceResponse.ts
|
|
212
215
|
src/models/PaginatedProductChildLiteResourceResponse.ts
|
|
216
|
+
src/models/PaginatedProductChildOverlayRelationResourceResponse.ts
|
|
213
217
|
src/models/PaginatedProductChildRelationResourceResponse.ts
|
|
214
218
|
src/models/PaginatedProductChildResourceResponse.ts
|
|
215
219
|
src/models/PaginatedProductLiteResourceResponse.ts
|
|
@@ -227,6 +231,8 @@ src/models/PaginatedTagResourceResponse.ts
|
|
|
227
231
|
src/models/PagingMetadata.ts
|
|
228
232
|
src/models/ProductChildLiteResource.ts
|
|
229
233
|
src/models/ProductChildLiteResourceArrayResponse.ts
|
|
234
|
+
src/models/ProductChildOverlayRelationResource.ts
|
|
235
|
+
src/models/ProductChildOverlayRelationResourceArrayResponse.ts
|
|
230
236
|
src/models/ProductChildRelationResource.ts
|
|
231
237
|
src/models/ProductChildRelationResourceArrayResponse.ts
|
|
232
238
|
src/models/ProductChildResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.416
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -174,6 +174,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
174
174
|
- [PaginatedOverlayTemplateLiteResourceResponse](docs/PaginatedOverlayTemplateLiteResourceResponse.md)
|
|
175
175
|
- [PaginatedOverlayTemplateResourceResponse](docs/PaginatedOverlayTemplateResourceResponse.md)
|
|
176
176
|
- [PaginatedProductChildLiteResourceResponse](docs/PaginatedProductChildLiteResourceResponse.md)
|
|
177
|
+
- [PaginatedProductChildOverlayRelationResourceResponse](docs/PaginatedProductChildOverlayRelationResourceResponse.md)
|
|
177
178
|
- [PaginatedProductChildRelationResourceResponse](docs/PaginatedProductChildRelationResourceResponse.md)
|
|
178
179
|
- [PaginatedProductChildResourceResponse](docs/PaginatedProductChildResourceResponse.md)
|
|
179
180
|
- [PaginatedProductLiteResourceResponse](docs/PaginatedProductLiteResourceResponse.md)
|
|
@@ -191,6 +192,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
191
192
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
192
193
|
- [ProductChildLiteResource](docs/ProductChildLiteResource.md)
|
|
193
194
|
- [ProductChildLiteResourceArrayResponse](docs/ProductChildLiteResourceArrayResponse.md)
|
|
195
|
+
- [ProductChildOverlayRelationResource](docs/ProductChildOverlayRelationResource.md)
|
|
196
|
+
- [ProductChildOverlayRelationResourceArrayResponse](docs/ProductChildOverlayRelationResourceArrayResponse.md)
|
|
194
197
|
- [ProductChildRelationResource](docs/ProductChildRelationResource.md)
|
|
195
198
|
- [ProductChildRelationResourceArrayResponse](docs/ProductChildRelationResourceArrayResponse.md)
|
|
196
199
|
- [ProductChildResource](docs/ProductChildResource.md)
|
|
@@ -278,7 +281,7 @@ and is automatically generated by the
|
|
|
278
281
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
279
282
|
|
|
280
283
|
- API version: `1.0.0`
|
|
281
|
-
- Package version: `0.0.
|
|
284
|
+
- Package version: `0.0.416`
|
|
282
285
|
- Generator version: `7.17.0`
|
|
283
286
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
284
287
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ProductChildOverlayRelationResource } from './ProductChildOverlayRelationResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductChildOverlayRelationResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductChildOverlayRelationResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductChildOverlayRelationResource>}
|
|
23
|
+
* @memberof PaginatedProductChildOverlayRelationResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductChildOverlayRelationResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductChildOverlayRelationResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductChildOverlayRelationResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductChildOverlayRelationResourceResponse(value: object): value is PaginatedProductChildOverlayRelationResourceResponse;
|
|
37
|
+
export declare function PaginatedProductChildOverlayRelationResourceResponseFromJSON(json: any): PaginatedProductChildOverlayRelationResourceResponse;
|
|
38
|
+
export declare function PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildOverlayRelationResourceResponse;
|
|
39
|
+
export declare function PaginatedProductChildOverlayRelationResourceResponseToJSON(json: any): PaginatedProductChildOverlayRelationResourceResponse;
|
|
40
|
+
export declare function PaginatedProductChildOverlayRelationResourceResponseToJSONTyped(value?: PaginatedProductChildOverlayRelationResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedProductChildOverlayRelationResourceResponse = instanceOfPaginatedProductChildOverlayRelationResourceResponse;
|
|
17
|
+
exports.PaginatedProductChildOverlayRelationResourceResponseFromJSON = PaginatedProductChildOverlayRelationResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped = PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedProductChildOverlayRelationResourceResponseToJSON = PaginatedProductChildOverlayRelationResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedProductChildOverlayRelationResourceResponseToJSONTyped = PaginatedProductChildOverlayRelationResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var ProductChildOverlayRelationResource_1 = require("./ProductChildOverlayRelationResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedProductChildOverlayRelationResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedProductChildOverlayRelationResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedProductChildOverlayRelationResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ProductChildOverlayRelationResource_1.ProductChildOverlayRelationResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedProductChildOverlayRelationResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedProductChildOverlayRelationResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedProductChildOverlayRelationResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ProductChildOverlayRelationResource_1.ProductChildOverlayRelationResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AssetResource } from './AssetResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildOverlayRelationResource
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildOverlayRelationResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ProductChildOverlayRelationResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ProductChildOverlayRelationResource
|
|
29
|
+
*/
|
|
30
|
+
parentName: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ProductChildOverlayRelationResource
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ProductChildOverlayRelationResource
|
|
41
|
+
*/
|
|
42
|
+
modelNumber: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ProductChildOverlayRelationResource
|
|
47
|
+
*/
|
|
48
|
+
sku: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ProductChildOverlayRelationResource
|
|
53
|
+
*/
|
|
54
|
+
stock: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ProductChildOverlayRelationResource
|
|
59
|
+
*/
|
|
60
|
+
netsuiteId: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AssetResource}
|
|
64
|
+
* @memberof ProductChildOverlayRelationResource
|
|
65
|
+
*/
|
|
66
|
+
thumbnail: AssetResource | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof ProductChildOverlayRelationResource
|
|
71
|
+
*/
|
|
72
|
+
numberAttached: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the ProductChildOverlayRelationResource interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfProductChildOverlayRelationResource(value: object): value is ProductChildOverlayRelationResource;
|
|
78
|
+
export declare function ProductChildOverlayRelationResourceFromJSON(json: any): ProductChildOverlayRelationResource;
|
|
79
|
+
export declare function ProductChildOverlayRelationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildOverlayRelationResource;
|
|
80
|
+
export declare function ProductChildOverlayRelationResourceToJSON(json: any): ProductChildOverlayRelationResource;
|
|
81
|
+
export declare function ProductChildOverlayRelationResourceToJSONTyped(value?: ProductChildOverlayRelationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductChildOverlayRelationResource = instanceOfProductChildOverlayRelationResource;
|
|
17
|
+
exports.ProductChildOverlayRelationResourceFromJSON = ProductChildOverlayRelationResourceFromJSON;
|
|
18
|
+
exports.ProductChildOverlayRelationResourceFromJSONTyped = ProductChildOverlayRelationResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildOverlayRelationResourceToJSON = ProductChildOverlayRelationResourceToJSON;
|
|
20
|
+
exports.ProductChildOverlayRelationResourceToJSONTyped = ProductChildOverlayRelationResourceToJSONTyped;
|
|
21
|
+
var AssetResource_1 = require("./AssetResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildOverlayRelationResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildOverlayRelationResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('parentName' in value) || value['parentName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('modelNumber' in value) || value['modelNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('stock' in value) || value['stock'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('numberAttached' in value) || value['numberAttached'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ProductChildOverlayRelationResourceFromJSON(json) {
|
|
47
|
+
return ProductChildOverlayRelationResourceFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ProductChildOverlayRelationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'parentName': json['parentName'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'modelNumber': json['modelNumber'],
|
|
58
|
+
'sku': json['sku'],
|
|
59
|
+
'stock': json['stock'],
|
|
60
|
+
'netsuiteId': json['netsuiteId'],
|
|
61
|
+
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
62
|
+
'numberAttached': json['numberAttached'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ProductChildOverlayRelationResourceToJSON(json) {
|
|
66
|
+
return ProductChildOverlayRelationResourceToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ProductChildOverlayRelationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
69
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'parentName': value['parentName'],
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'modelNumber': value['modelNumber'],
|
|
78
|
+
'sku': value['sku'],
|
|
79
|
+
'stock': value['stock'],
|
|
80
|
+
'netsuiteId': value['netsuiteId'],
|
|
81
|
+
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
82
|
+
'numberAttached': value['numberAttached'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductChildOverlayRelationResource } from './ProductChildOverlayRelationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildOverlayRelationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildOverlayRelationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildOverlayRelationResource>}
|
|
22
|
+
* @memberof ProductChildOverlayRelationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildOverlayRelationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildOverlayRelationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildOverlayRelationResourceArrayResponse(value: object): value is ProductChildOverlayRelationResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildOverlayRelationResourceArrayResponseFromJSON(json: any): ProductChildOverlayRelationResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildOverlayRelationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildOverlayRelationResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildOverlayRelationResourceArrayResponseToJSON(json: any): ProductChildOverlayRelationResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildOverlayRelationResourceArrayResponseToJSONTyped(value?: ProductChildOverlayRelationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductChildOverlayRelationResourceArrayResponse = instanceOfProductChildOverlayRelationResourceArrayResponse;
|
|
17
|
+
exports.ProductChildOverlayRelationResourceArrayResponseFromJSON = ProductChildOverlayRelationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildOverlayRelationResourceArrayResponseFromJSONTyped = ProductChildOverlayRelationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildOverlayRelationResourceArrayResponseToJSON = ProductChildOverlayRelationResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildOverlayRelationResourceArrayResponseToJSONTyped = ProductChildOverlayRelationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildOverlayRelationResource_1 = require("./ProductChildOverlayRelationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildOverlayRelationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildOverlayRelationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildOverlayRelationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildOverlayRelationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildOverlayRelationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildOverlayRelationResource_1.ProductChildOverlayRelationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildOverlayRelationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildOverlayRelationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildOverlayRelationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ProductChildOverlayRelationResource_1.ProductChildOverlayRelationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from './PaginatedAttributeResourceResponse';
|
|
|
47
47
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
48
48
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
|
49
49
|
export * from './PaginatedProductChildLiteResourceResponse';
|
|
50
|
+
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
50
51
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
51
52
|
export * from './PaginatedProductChildResourceResponse';
|
|
52
53
|
export * from './PaginatedProductLiteResourceResponse';
|
|
@@ -64,6 +65,8 @@ export * from './PaginatedTagResourceResponse';
|
|
|
64
65
|
export * from './PagingMetadata';
|
|
65
66
|
export * from './ProductChildLiteResource';
|
|
66
67
|
export * from './ProductChildLiteResourceArrayResponse';
|
|
68
|
+
export * from './ProductChildOverlayRelationResource';
|
|
69
|
+
export * from './ProductChildOverlayRelationResourceArrayResponse';
|
|
67
70
|
export * from './ProductChildRelationResource';
|
|
68
71
|
export * from './ProductChildRelationResourceArrayResponse';
|
|
69
72
|
export * from './ProductChildResource';
|
package/dist/models/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
|
65
65
|
__exportStar(require("./PaginatedOverlayTemplateLiteResourceResponse"), exports);
|
|
66
66
|
__exportStar(require("./PaginatedOverlayTemplateResourceResponse"), exports);
|
|
67
67
|
__exportStar(require("./PaginatedProductChildLiteResourceResponse"), exports);
|
|
68
|
+
__exportStar(require("./PaginatedProductChildOverlayRelationResourceResponse"), exports);
|
|
68
69
|
__exportStar(require("./PaginatedProductChildRelationResourceResponse"), exports);
|
|
69
70
|
__exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
70
71
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
@@ -82,6 +83,8 @@ __exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
|
82
83
|
__exportStar(require("./PagingMetadata"), exports);
|
|
83
84
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
84
85
|
__exportStar(require("./ProductChildLiteResourceArrayResponse"), exports);
|
|
86
|
+
__exportStar(require("./ProductChildOverlayRelationResource"), exports);
|
|
87
|
+
__exportStar(require("./ProductChildOverlayRelationResourceArrayResponse"), exports);
|
|
85
88
|
__exportStar(require("./ProductChildRelationResource"), exports);
|
|
86
89
|
__exportStar(require("./ProductChildRelationResourceArrayResponse"), exports);
|
|
87
90
|
__exportStar(require("./ProductChildResource"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductChildOverlayRelationResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductChildOverlayRelationResource>](ProductChildOverlayRelationResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductChildOverlayRelationResourceResponse } 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 PaginatedProductChildOverlayRelationResourceResponse
|
|
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 PaginatedProductChildOverlayRelationResourceResponse
|
|
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,50 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductChildOverlayRelationResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`parentName` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`modelNumber` | string
|
|
13
|
+
`sku` | number
|
|
14
|
+
`stock` | number
|
|
15
|
+
`netsuiteId` | number
|
|
16
|
+
`thumbnail` | [AssetResource](AssetResource.md)
|
|
17
|
+
`numberAttached` | number
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { ProductChildOverlayRelationResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"parentName": null,
|
|
28
|
+
"name": null,
|
|
29
|
+
"modelNumber": null,
|
|
30
|
+
"sku": null,
|
|
31
|
+
"stock": null,
|
|
32
|
+
"netsuiteId": null,
|
|
33
|
+
"thumbnail": null,
|
|
34
|
+
"numberAttached": null,
|
|
35
|
+
} satisfies ProductChildOverlayRelationResource
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildOverlayRelationResource
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductChildOverlayRelationResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductChildOverlayRelationResource>](ProductChildOverlayRelationResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductChildOverlayRelationResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductChildOverlayRelationResourceArrayResponse
|
|
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 ProductChildOverlayRelationResourceArrayResponse
|
|
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
|
+
|
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 { ProductChildOverlayRelationResource } from './ProductChildOverlayRelationResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductChildOverlayRelationResourceFromJSON,
|
|
26
|
+
ProductChildOverlayRelationResourceFromJSONTyped,
|
|
27
|
+
ProductChildOverlayRelationResourceToJSON,
|
|
28
|
+
ProductChildOverlayRelationResourceToJSONTyped,
|
|
29
|
+
} from './ProductChildOverlayRelationResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductChildOverlayRelationResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductChildOverlayRelationResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductChildOverlayRelationResource>}
|
|
40
|
+
* @memberof PaginatedProductChildOverlayRelationResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductChildOverlayRelationResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductChildOverlayRelationResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductChildOverlayRelationResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductChildOverlayRelationResourceResponse(value: object): value is PaginatedProductChildOverlayRelationResourceResponse {
|
|
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 PaginatedProductChildOverlayRelationResourceResponseFromJSON(json: any): PaginatedProductChildOverlayRelationResourceResponse {
|
|
61
|
+
return PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductChildOverlayRelationResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildOverlayRelationResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductChildOverlayRelationResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductChildOverlayRelationResourceResponseToJSON(json: any): PaginatedProductChildOverlayRelationResourceResponse {
|
|
76
|
+
return PaginatedProductChildOverlayRelationResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductChildOverlayRelationResourceResponseToJSONTyped(value?: PaginatedProductChildOverlayRelationResourceResponse | 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(ProductChildOverlayRelationResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
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 { AssetResource } from './AssetResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetResourceFromJSON,
|
|
19
|
+
AssetResourceFromJSONTyped,
|
|
20
|
+
AssetResourceToJSON,
|
|
21
|
+
AssetResourceToJSONTyped,
|
|
22
|
+
} from './AssetResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductChildOverlayRelationResource
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductChildOverlayRelationResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductChildOverlayRelationResource
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductChildOverlayRelationResource
|
|
40
|
+
*/
|
|
41
|
+
parentName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProductChildOverlayRelationResource
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProductChildOverlayRelationResource
|
|
52
|
+
*/
|
|
53
|
+
modelNumber: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ProductChildOverlayRelationResource
|
|
58
|
+
*/
|
|
59
|
+
sku: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ProductChildOverlayRelationResource
|
|
64
|
+
*/
|
|
65
|
+
stock: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ProductChildOverlayRelationResource
|
|
70
|
+
*/
|
|
71
|
+
netsuiteId: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {AssetResource}
|
|
75
|
+
* @memberof ProductChildOverlayRelationResource
|
|
76
|
+
*/
|
|
77
|
+
thumbnail: AssetResource | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ProductChildOverlayRelationResource
|
|
82
|
+
*/
|
|
83
|
+
numberAttached: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the ProductChildOverlayRelationResource interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfProductChildOverlayRelationResource(value: object): value is ProductChildOverlayRelationResource {
|
|
90
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
91
|
+
if (!('parentName' in value) || value['parentName'] === undefined) return false;
|
|
92
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
93
|
+
if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
|
|
94
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
95
|
+
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
96
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
97
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
98
|
+
if (!('numberAttached' in value) || value['numberAttached'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ProductChildOverlayRelationResourceFromJSON(json: any): ProductChildOverlayRelationResource {
|
|
103
|
+
return ProductChildOverlayRelationResourceFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function ProductChildOverlayRelationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildOverlayRelationResource {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'id': json['id'],
|
|
113
|
+
'parentName': json['parentName'],
|
|
114
|
+
'name': json['name'],
|
|
115
|
+
'modelNumber': json['modelNumber'],
|
|
116
|
+
'sku': json['sku'],
|
|
117
|
+
'stock': json['stock'],
|
|
118
|
+
'netsuiteId': json['netsuiteId'],
|
|
119
|
+
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
120
|
+
'numberAttached': json['numberAttached'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ProductChildOverlayRelationResourceToJSON(json: any): ProductChildOverlayRelationResource {
|
|
125
|
+
return ProductChildOverlayRelationResourceToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function ProductChildOverlayRelationResourceToJSONTyped(value?: ProductChildOverlayRelationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'id': value['id'],
|
|
136
|
+
'parentName': value['parentName'],
|
|
137
|
+
'name': value['name'],
|
|
138
|
+
'modelNumber': value['modelNumber'],
|
|
139
|
+
'sku': value['sku'],
|
|
140
|
+
'stock': value['stock'],
|
|
141
|
+
'netsuiteId': value['netsuiteId'],
|
|
142
|
+
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
143
|
+
'numberAttached': value['numberAttached'],
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -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 { ProductChildOverlayRelationResource } from './ProductChildOverlayRelationResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildOverlayRelationResourceFromJSON,
|
|
19
|
+
ProductChildOverlayRelationResourceFromJSONTyped,
|
|
20
|
+
ProductChildOverlayRelationResourceToJSON,
|
|
21
|
+
ProductChildOverlayRelationResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildOverlayRelationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductChildOverlayRelationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductChildOverlayRelationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductChildOverlayRelationResource>}
|
|
33
|
+
* @memberof ProductChildOverlayRelationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductChildOverlayRelationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductChildOverlayRelationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductChildOverlayRelationResourceArrayResponse(value: object): value is ProductChildOverlayRelationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductChildOverlayRelationResourceArrayResponseFromJSON(json: any): ProductChildOverlayRelationResourceArrayResponse {
|
|
46
|
+
return ProductChildOverlayRelationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductChildOverlayRelationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildOverlayRelationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildOverlayRelationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductChildOverlayRelationResourceArrayResponseToJSON(json: any): ProductChildOverlayRelationResourceArrayResponse {
|
|
60
|
+
return ProductChildOverlayRelationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductChildOverlayRelationResourceArrayResponseToJSONTyped(value?: ProductChildOverlayRelationResourceArrayResponse | 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(ProductChildOverlayRelationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './PaginatedAttributeResourceResponse';
|
|
|
49
49
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
50
50
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
|
51
51
|
export * from './PaginatedProductChildLiteResourceResponse';
|
|
52
|
+
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
52
53
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
53
54
|
export * from './PaginatedProductChildResourceResponse';
|
|
54
55
|
export * from './PaginatedProductLiteResourceResponse';
|
|
@@ -66,6 +67,8 @@ export * from './PaginatedTagResourceResponse';
|
|
|
66
67
|
export * from './PagingMetadata';
|
|
67
68
|
export * from './ProductChildLiteResource';
|
|
68
69
|
export * from './ProductChildLiteResourceArrayResponse';
|
|
70
|
+
export * from './ProductChildOverlayRelationResource';
|
|
71
|
+
export * from './ProductChildOverlayRelationResourceArrayResponse';
|
|
69
72
|
export * from './ProductChildRelationResource';
|
|
70
73
|
export * from './ProductChildRelationResourceArrayResponse';
|
|
71
74
|
export * from './ProductChildResource';
|