@digital8/lighting-illusions-ts-sdk 0.0.374 → 0.0.376

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +10 -6
  2. package/README.md +7 -5
  3. package/dist/apis/ProductApi.d.ts +3 -3
  4. package/dist/apis/ProductApi.js +1 -1
  5. package/dist/models/AssetResource.d.ts +12 -0
  6. package/dist/models/AssetResource.js +8 -0
  7. package/dist/models/GetAllProductChildRequest.d.ts +19 -11
  8. package/dist/models/GetAllProductChildRequest.js +11 -11
  9. package/dist/models/PaginatedProductChildSiteDetailsListResourceResponse.d.ts +40 -0
  10. package/dist/models/PaginatedProductChildSiteDetailsListResourceResponse.js +57 -0
  11. package/dist/models/ProductChildResource.d.ts +3 -2
  12. package/dist/models/ProductChildResource.js +3 -2
  13. package/dist/models/ProductChildSiteDetailResource.d.ts +88 -0
  14. package/dist/models/ProductChildSiteDetailResource.js +89 -0
  15. package/dist/models/ProductChildSiteDetailResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/ProductChildSiteDetailResourceArrayResponse.js +50 -0
  17. package/dist/models/ProductChildSiteDetailsListResource.d.ts +100 -0
  18. package/dist/models/ProductChildSiteDetailsListResource.js +97 -0
  19. package/dist/models/ProductChildSiteDetailsListResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/ProductChildSiteDetailsListResourceArrayResponse.js +50 -0
  21. package/dist/models/index.d.ts +5 -3
  22. package/dist/models/index.js +5 -3
  23. package/docs/AssetResource.md +4 -0
  24. package/docs/GetAllProductChildRequest.md +4 -0
  25. package/docs/{PaginatedProductChildLiteResourceResponse.md → PaginatedProductChildSiteDetailsListResourceResponse.md} +5 -5
  26. package/docs/ProductApi.md +2 -2
  27. package/docs/ProductChildResource.md +1 -1
  28. package/docs/ProductChildSiteDetailResource.md +52 -0
  29. package/docs/{ProductChildLiteResourceArrayResponse.md → ProductChildSiteDetailResourceArrayResponse.md} +5 -5
  30. package/docs/{ProductChildLiteResource.md → ProductChildSiteDetailsListResource.md} +16 -4
  31. package/docs/ProductChildSiteDetailsListResourceArrayResponse.md +34 -0
  32. package/package.json +1 -1
  33. package/src/apis/ProductApi.ts +6 -6
  34. package/src/models/AssetResource.ts +18 -0
  35. package/src/models/GetAllProductChildRequest.ts +23 -11
  36. package/src/models/PaginatedProductChildSiteDetailsListResourceResponse.ts +90 -0
  37. package/src/models/ProductChildResource.ts +11 -4
  38. package/src/models/ProductChildSiteDetailResource.ts +162 -0
  39. package/src/models/ProductChildSiteDetailResourceArrayResponse.ts +73 -0
  40. package/src/models/ProductChildSiteDetailsListResource.ts +180 -0
  41. package/src/models/ProductChildSiteDetailsListResourceArrayResponse.ts +73 -0
  42. package/src/models/index.ts +5 -3
  43. package/dist/models/PaginatedProductChildLiteResourceResponse.d.ts +0 -40
  44. package/dist/models/PaginatedProductChildLiteResourceResponse.js +0 -57
  45. package/dist/models/ProductChildLiteResource.d.ts +0 -63
  46. package/dist/models/ProductChildLiteResource.js +0 -72
  47. package/dist/models/ProductChildLiteResourceArrayResponse.d.ts +0 -33
  48. package/dist/models/ProductChildLiteResourceArrayResponse.js +0 -50
  49. package/src/models/PaginatedProductChildLiteResourceResponse.ts +0 -90
  50. package/src/models/ProductChildLiteResource.ts +0 -119
  51. package/src/models/ProductChildLiteResourceArrayResponse.ts +0 -73
@@ -0,0 +1,180 @@
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 { AssetResource } from './AssetResource';
24
+ import {
25
+ AssetResourceFromJSON,
26
+ AssetResourceFromJSONTyped,
27
+ AssetResourceToJSON,
28
+ AssetResourceToJSONTyped,
29
+ } from './AssetResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ProductChildSiteDetailsListResource
35
+ */
36
+ export interface ProductChildSiteDetailsListResource {
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ProductChildSiteDetailsListResource
41
+ */
42
+ id: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ProductChildSiteDetailsListResource
47
+ */
48
+ parentName: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ProductChildSiteDetailsListResource
53
+ */
54
+ name: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ProductChildSiteDetailsListResource
59
+ */
60
+ modelNumber: string;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof ProductChildSiteDetailsListResource
65
+ */
66
+ sku: number;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof ProductChildSiteDetailsListResource
71
+ */
72
+ stock: number;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof ProductChildSiteDetailsListResource
77
+ */
78
+ netsuiteId: number;
79
+ /**
80
+ *
81
+ * @type {AssetResource}
82
+ * @memberof ProductChildSiteDetailsListResource
83
+ */
84
+ thumbnail: AssetResource | null;
85
+ /**
86
+ *
87
+ * @type {SiteLiteResource}
88
+ * @memberof ProductChildSiteDetailsListResource
89
+ */
90
+ site: SiteLiteResource | null;
91
+ /**
92
+ *
93
+ * @type {number}
94
+ * @memberof ProductChildSiteDetailsListResource
95
+ */
96
+ rrpPrice: number;
97
+ /**
98
+ *
99
+ * @type {number}
100
+ * @memberof ProductChildSiteDetailsListResource
101
+ */
102
+ salePrice: number;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof ProductChildSiteDetailsListResource
107
+ */
108
+ slug: string;
109
+ }
110
+
111
+ /**
112
+ * Check if a given object implements the ProductChildSiteDetailsListResource interface.
113
+ */
114
+ export function instanceOfProductChildSiteDetailsListResource(value: object): value is ProductChildSiteDetailsListResource {
115
+ if (!('id' in value) || value['id'] === undefined) return false;
116
+ if (!('parentName' in value) || value['parentName'] === undefined) return false;
117
+ if (!('name' in value) || value['name'] === undefined) return false;
118
+ if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
119
+ if (!('sku' in value) || value['sku'] === undefined) return false;
120
+ if (!('stock' in value) || value['stock'] === undefined) return false;
121
+ if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
122
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
123
+ if (!('site' in value) || value['site'] === undefined) return false;
124
+ if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
125
+ if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
126
+ if (!('slug' in value) || value['slug'] === undefined) return false;
127
+ return true;
128
+ }
129
+
130
+ export function ProductChildSiteDetailsListResourceFromJSON(json: any): ProductChildSiteDetailsListResource {
131
+ return ProductChildSiteDetailsListResourceFromJSONTyped(json, false);
132
+ }
133
+
134
+ export function ProductChildSiteDetailsListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailsListResource {
135
+ if (json == null) {
136
+ return json;
137
+ }
138
+ return {
139
+
140
+ 'id': json['id'],
141
+ 'parentName': json['parentName'],
142
+ 'name': json['name'],
143
+ 'modelNumber': json['modelNumber'],
144
+ 'sku': json['sku'],
145
+ 'stock': json['stock'],
146
+ 'netsuiteId': json['netsuiteId'],
147
+ 'thumbnail': AssetResourceFromJSON(json['thumbnail']),
148
+ 'site': SiteLiteResourceFromJSON(json['site']),
149
+ 'rrpPrice': json['rrpPrice'],
150
+ 'salePrice': json['salePrice'],
151
+ 'slug': json['slug'],
152
+ };
153
+ }
154
+
155
+ export function ProductChildSiteDetailsListResourceToJSON(json: any): ProductChildSiteDetailsListResource {
156
+ return ProductChildSiteDetailsListResourceToJSONTyped(json, false);
157
+ }
158
+
159
+ export function ProductChildSiteDetailsListResourceToJSONTyped(value?: ProductChildSiteDetailsListResource | null, ignoreDiscriminator: boolean = false): any {
160
+ if (value == null) {
161
+ return value;
162
+ }
163
+
164
+ return {
165
+
166
+ 'id': value['id'],
167
+ 'parentName': value['parentName'],
168
+ 'name': value['name'],
169
+ 'modelNumber': value['modelNumber'],
170
+ 'sku': value['sku'],
171
+ 'stock': value['stock'],
172
+ 'netsuiteId': value['netsuiteId'],
173
+ 'thumbnail': AssetResourceToJSON(value['thumbnail']),
174
+ 'site': SiteLiteResourceToJSON(value['site']),
175
+ 'rrpPrice': value['rrpPrice'],
176
+ 'salePrice': value['salePrice'],
177
+ 'slug': value['slug'],
178
+ };
179
+ }
180
+
@@ -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 { ProductChildSiteDetailsListResource } from './ProductChildSiteDetailsListResource';
17
+ import {
18
+ ProductChildSiteDetailsListResourceFromJSON,
19
+ ProductChildSiteDetailsListResourceFromJSONTyped,
20
+ ProductChildSiteDetailsListResourceToJSON,
21
+ ProductChildSiteDetailsListResourceToJSONTyped,
22
+ } from './ProductChildSiteDetailsListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductChildSiteDetailsListResourceArrayResponse
28
+ */
29
+ export interface ProductChildSiteDetailsListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductChildSiteDetailsListResource>}
33
+ * @memberof ProductChildSiteDetailsListResourceArrayResponse
34
+ */
35
+ data?: Array<ProductChildSiteDetailsListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductChildSiteDetailsListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductChildSiteDetailsListResourceArrayResponse(value: object): value is ProductChildSiteDetailsListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductChildSiteDetailsListResourceArrayResponseFromJSON(json: any): ProductChildSiteDetailsListResourceArrayResponse {
46
+ return ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductChildSiteDetailsListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildSiteDetailsListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildSiteDetailsListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductChildSiteDetailsListResourceArrayResponseToJSON(json: any): ProductChildSiteDetailsListResourceArrayResponse {
60
+ return ProductChildSiteDetailsListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductChildSiteDetailsListResourceArrayResponseToJSONTyped(value?: ProductChildSiteDetailsListResourceArrayResponse | 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(ProductChildSiteDetailsListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -48,9 +48,9 @@ export * from './PaginatedAttributeProductTypeRelationResourceResponse';
48
48
  export * from './PaginatedAttributeResourceResponse';
49
49
  export * from './PaginatedOverlayTemplateLiteResourceResponse';
50
50
  export * from './PaginatedOverlayTemplateResourceResponse';
51
- export * from './PaginatedProductChildLiteResourceResponse';
52
51
  export * from './PaginatedProductChildRelationResourceResponse';
53
52
  export * from './PaginatedProductChildResourceResponse';
53
+ export * from './PaginatedProductChildSiteDetailsListResourceResponse';
54
54
  export * from './PaginatedProductLiteResourceResponse';
55
55
  export * from './PaginatedProductResourceResponse';
56
56
  export * from './PaginatedProductTypeLiteResourceResponse';
@@ -64,12 +64,14 @@ export * from './PaginatedSupplierResourceResponse';
64
64
  export * from './PaginatedTagLiteResourceResponse';
65
65
  export * from './PaginatedTagResourceResponse';
66
66
  export * from './PagingMetadata';
67
- export * from './ProductChildLiteResource';
68
- export * from './ProductChildLiteResourceArrayResponse';
69
67
  export * from './ProductChildRelationResource';
70
68
  export * from './ProductChildRelationResourceArrayResponse';
71
69
  export * from './ProductChildResource';
72
70
  export * from './ProductChildResourceArrayResponse';
71
+ export * from './ProductChildSiteDetailResource';
72
+ export * from './ProductChildSiteDetailResourceArrayResponse';
73
+ export * from './ProductChildSiteDetailsListResource';
74
+ export * from './ProductChildSiteDetailsListResourceArrayResponse';
73
75
  export * from './ProductLiteResource';
74
76
  export * from './ProductLiteResourceArrayResponse';
75
77
  export * from './ProductResource';
@@ -1,40 +0,0 @@
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 { ProductChildLiteResource } from './ProductChildLiteResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedProductChildLiteResourceResponse
18
- */
19
- export interface PaginatedProductChildLiteResourceResponse {
20
- /**
21
- *
22
- * @type {Array<ProductChildLiteResource>}
23
- * @memberof PaginatedProductChildLiteResourceResponse
24
- */
25
- data: Array<ProductChildLiteResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedProductChildLiteResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedProductChildLiteResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedProductChildLiteResourceResponse(value: object): value is PaginatedProductChildLiteResourceResponse;
37
- export declare function PaginatedProductChildLiteResourceResponseFromJSON(json: any): PaginatedProductChildLiteResourceResponse;
38
- export declare function PaginatedProductChildLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildLiteResourceResponse;
39
- export declare function PaginatedProductChildLiteResourceResponseToJSON(json: any): PaginatedProductChildLiteResourceResponse;
40
- export declare function PaginatedProductChildLiteResourceResponseToJSONTyped(value?: PaginatedProductChildLiteResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
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.instanceOfPaginatedProductChildLiteResourceResponse = instanceOfPaginatedProductChildLiteResourceResponse;
17
- exports.PaginatedProductChildLiteResourceResponseFromJSON = PaginatedProductChildLiteResourceResponseFromJSON;
18
- exports.PaginatedProductChildLiteResourceResponseFromJSONTyped = PaginatedProductChildLiteResourceResponseFromJSONTyped;
19
- exports.PaginatedProductChildLiteResourceResponseToJSON = PaginatedProductChildLiteResourceResponseToJSON;
20
- exports.PaginatedProductChildLiteResourceResponseToJSONTyped = PaginatedProductChildLiteResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var ProductChildLiteResource_1 = require("./ProductChildLiteResource");
23
- /**
24
- * Check if a given object implements the PaginatedProductChildLiteResourceResponse interface.
25
- */
26
- function instanceOfPaginatedProductChildLiteResourceResponse(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 PaginatedProductChildLiteResourceResponseFromJSON(json) {
34
- return PaginatedProductChildLiteResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedProductChildLiteResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(ProductChildLiteResource_1.ProductChildLiteResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedProductChildLiteResourceResponseToJSON(json) {
46
- return PaginatedProductChildLiteResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedProductChildLiteResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(ProductChildLiteResource_1.ProductChildLiteResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,63 +0,0 @@
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 ProductChildLiteResource
17
- */
18
- export interface ProductChildLiteResource {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof ProductChildLiteResource
23
- */
24
- id: number;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof ProductChildLiteResource
29
- */
30
- name: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof ProductChildLiteResource
35
- */
36
- modelNumber: string;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof ProductChildLiteResource
41
- */
42
- sku: number;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof ProductChildLiteResource
47
- */
48
- netsuiteId: number;
49
- /**
50
- *
51
- * @type {AssetResource}
52
- * @memberof ProductChildLiteResource
53
- */
54
- thumbnail: AssetResource | null;
55
- }
56
- /**
57
- * Check if a given object implements the ProductChildLiteResource interface.
58
- */
59
- export declare function instanceOfProductChildLiteResource(value: object): value is ProductChildLiteResource;
60
- export declare function ProductChildLiteResourceFromJSON(json: any): ProductChildLiteResource;
61
- export declare function ProductChildLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLiteResource;
62
- export declare function ProductChildLiteResourceToJSON(json: any): ProductChildLiteResource;
63
- export declare function ProductChildLiteResourceToJSONTyped(value?: ProductChildLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,72 +0,0 @@
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.instanceOfProductChildLiteResource = instanceOfProductChildLiteResource;
17
- exports.ProductChildLiteResourceFromJSON = ProductChildLiteResourceFromJSON;
18
- exports.ProductChildLiteResourceFromJSONTyped = ProductChildLiteResourceFromJSONTyped;
19
- exports.ProductChildLiteResourceToJSON = ProductChildLiteResourceToJSON;
20
- exports.ProductChildLiteResourceToJSONTyped = ProductChildLiteResourceToJSONTyped;
21
- var AssetResource_1 = require("./AssetResource");
22
- /**
23
- * Check if a given object implements the ProductChildLiteResource interface.
24
- */
25
- function instanceOfProductChildLiteResource(value) {
26
- if (!('id' in value) || value['id'] === undefined)
27
- return false;
28
- if (!('name' in value) || value['name'] === undefined)
29
- return false;
30
- if (!('modelNumber' in value) || value['modelNumber'] === undefined)
31
- return false;
32
- if (!('sku' in value) || value['sku'] === undefined)
33
- return false;
34
- if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
35
- return false;
36
- if (!('thumbnail' in value) || value['thumbnail'] === undefined)
37
- return false;
38
- return true;
39
- }
40
- function ProductChildLiteResourceFromJSON(json) {
41
- return ProductChildLiteResourceFromJSONTyped(json, false);
42
- }
43
- function ProductChildLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
44
- if (json == null) {
45
- return json;
46
- }
47
- return {
48
- 'id': json['id'],
49
- 'name': json['name'],
50
- 'modelNumber': json['modelNumber'],
51
- 'sku': json['sku'],
52
- 'netsuiteId': json['netsuiteId'],
53
- 'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
54
- };
55
- }
56
- function ProductChildLiteResourceToJSON(json) {
57
- return ProductChildLiteResourceToJSONTyped(json, false);
58
- }
59
- function ProductChildLiteResourceToJSONTyped(value, ignoreDiscriminator) {
60
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
- 'id': value['id'],
66
- 'name': value['name'],
67
- 'modelNumber': value['modelNumber'],
68
- 'sku': value['sku'],
69
- 'netsuiteId': value['netsuiteId'],
70
- 'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
71
- };
72
- }
@@ -1,33 +0,0 @@
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 { ProductChildLiteResource } from './ProductChildLiteResource';
13
- /**
14
- *
15
- * @export
16
- * @interface ProductChildLiteResourceArrayResponse
17
- */
18
- export interface ProductChildLiteResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<ProductChildLiteResource>}
22
- * @memberof ProductChildLiteResourceArrayResponse
23
- */
24
- data?: Array<ProductChildLiteResource>;
25
- }
26
- /**
27
- * Check if a given object implements the ProductChildLiteResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfProductChildLiteResourceArrayResponse(value: object): value is ProductChildLiteResourceArrayResponse;
30
- export declare function ProductChildLiteResourceArrayResponseFromJSON(json: any): ProductChildLiteResourceArrayResponse;
31
- export declare function ProductChildLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLiteResourceArrayResponse;
32
- export declare function ProductChildLiteResourceArrayResponseToJSON(json: any): ProductChildLiteResourceArrayResponse;
33
- export declare function ProductChildLiteResourceArrayResponseToJSONTyped(value?: ProductChildLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfProductChildLiteResourceArrayResponse = instanceOfProductChildLiteResourceArrayResponse;
17
- exports.ProductChildLiteResourceArrayResponseFromJSON = ProductChildLiteResourceArrayResponseFromJSON;
18
- exports.ProductChildLiteResourceArrayResponseFromJSONTyped = ProductChildLiteResourceArrayResponseFromJSONTyped;
19
- exports.ProductChildLiteResourceArrayResponseToJSON = ProductChildLiteResourceArrayResponseToJSON;
20
- exports.ProductChildLiteResourceArrayResponseToJSONTyped = ProductChildLiteResourceArrayResponseToJSONTyped;
21
- var ProductChildLiteResource_1 = require("./ProductChildLiteResource");
22
- /**
23
- * Check if a given object implements the ProductChildLiteResourceArrayResponse interface.
24
- */
25
- function instanceOfProductChildLiteResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function ProductChildLiteResourceArrayResponseFromJSON(json) {
29
- return ProductChildLiteResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function ProductChildLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(ProductChildLiteResource_1.ProductChildLiteResourceFromJSON)),
37
- };
38
- }
39
- function ProductChildLiteResourceArrayResponseToJSON(json) {
40
- return ProductChildLiteResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function ProductChildLiteResourceArrayResponseToJSONTyped(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(ProductChildLiteResource_1.ProductChildLiteResourceToJSON)),
49
- };
50
- }