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

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 (50) 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 +7 -11
  8. package/dist/models/GetAllProductChildRequest.js +7 -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/{PaginatedProductChildLiteResourceResponse.md → PaginatedProductChildSiteDetailsListResourceResponse.md} +5 -5
  25. package/docs/ProductApi.md +2 -2
  26. package/docs/ProductChildResource.md +1 -1
  27. package/docs/ProductChildSiteDetailResource.md +52 -0
  28. package/docs/{ProductChildLiteResourceArrayResponse.md → ProductChildSiteDetailResourceArrayResponse.md} +5 -5
  29. package/docs/{ProductChildLiteResource.md → ProductChildSiteDetailsListResource.md} +16 -4
  30. package/docs/ProductChildSiteDetailsListResourceArrayResponse.md +34 -0
  31. package/package.json +1 -1
  32. package/src/apis/ProductApi.ts +6 -6
  33. package/src/models/AssetResource.ts +18 -0
  34. package/src/models/GetAllProductChildRequest.ts +7 -11
  35. package/src/models/PaginatedProductChildSiteDetailsListResourceResponse.ts +90 -0
  36. package/src/models/ProductChildResource.ts +11 -4
  37. package/src/models/ProductChildSiteDetailResource.ts +162 -0
  38. package/src/models/ProductChildSiteDetailResourceArrayResponse.ts +73 -0
  39. package/src/models/ProductChildSiteDetailsListResource.ts +180 -0
  40. package/src/models/ProductChildSiteDetailsListResourceArrayResponse.ts +73 -0
  41. package/src/models/index.ts +5 -3
  42. package/dist/models/PaginatedProductChildLiteResourceResponse.d.ts +0 -40
  43. package/dist/models/PaginatedProductChildLiteResourceResponse.js +0 -57
  44. package/dist/models/ProductChildLiteResource.d.ts +0 -63
  45. package/dist/models/ProductChildLiteResource.js +0 -72
  46. package/dist/models/ProductChildLiteResourceArrayResponse.d.ts +0 -33
  47. package/dist/models/ProductChildLiteResourceArrayResponse.js +0 -50
  48. package/src/models/PaginatedProductChildLiteResourceResponse.ts +0 -90
  49. package/src/models/ProductChildLiteResource.ts +0 -119
  50. package/src/models/ProductChildLiteResourceArrayResponse.ts +0 -73
@@ -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
- }
@@ -1,90 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { ProductChildLiteResource } from './ProductChildLiteResource';
24
- import {
25
- ProductChildLiteResourceFromJSON,
26
- ProductChildLiteResourceFromJSONTyped,
27
- ProductChildLiteResourceToJSON,
28
- ProductChildLiteResourceToJSONTyped,
29
- } from './ProductChildLiteResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedProductChildLiteResourceResponse
35
- */
36
- export interface PaginatedProductChildLiteResourceResponse {
37
- /**
38
- *
39
- * @type {Array<ProductChildLiteResource>}
40
- * @memberof PaginatedProductChildLiteResourceResponse
41
- */
42
- data: Array<ProductChildLiteResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedProductChildLiteResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedProductChildLiteResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedProductChildLiteResourceResponse(value: object): value is PaginatedProductChildLiteResourceResponse {
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 PaginatedProductChildLiteResourceResponseFromJSON(json: any): PaginatedProductChildLiteResourceResponse {
61
- return PaginatedProductChildLiteResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedProductChildLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildLiteResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(ProductChildLiteResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedProductChildLiteResourceResponseToJSON(json: any): PaginatedProductChildLiteResourceResponse {
76
- return PaginatedProductChildLiteResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedProductChildLiteResourceResponseToJSONTyped(value?: PaginatedProductChildLiteResourceResponse | 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(ProductChildLiteResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,119 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { AssetResource } from './AssetResource';
17
- import {
18
- AssetResourceFromJSON,
19
- AssetResourceFromJSONTyped,
20
- AssetResourceToJSON,
21
- AssetResourceToJSONTyped,
22
- } from './AssetResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface ProductChildLiteResource
28
- */
29
- export interface ProductChildLiteResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof ProductChildLiteResource
34
- */
35
- id: number;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof ProductChildLiteResource
40
- */
41
- name: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof ProductChildLiteResource
46
- */
47
- modelNumber: string;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof ProductChildLiteResource
52
- */
53
- sku: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof ProductChildLiteResource
58
- */
59
- netsuiteId: number;
60
- /**
61
- *
62
- * @type {AssetResource}
63
- * @memberof ProductChildLiteResource
64
- */
65
- thumbnail: AssetResource | null;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the ProductChildLiteResource interface.
70
- */
71
- export function instanceOfProductChildLiteResource(value: object): value is ProductChildLiteResource {
72
- if (!('id' in value) || value['id'] === undefined) return false;
73
- if (!('name' in value) || value['name'] === undefined) return false;
74
- if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
75
- if (!('sku' in value) || value['sku'] === undefined) return false;
76
- if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
77
- if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
78
- return true;
79
- }
80
-
81
- export function ProductChildLiteResourceFromJSON(json: any): ProductChildLiteResource {
82
- return ProductChildLiteResourceFromJSONTyped(json, false);
83
- }
84
-
85
- export function ProductChildLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLiteResource {
86
- if (json == null) {
87
- return json;
88
- }
89
- return {
90
-
91
- 'id': json['id'],
92
- 'name': json['name'],
93
- 'modelNumber': json['modelNumber'],
94
- 'sku': json['sku'],
95
- 'netsuiteId': json['netsuiteId'],
96
- 'thumbnail': AssetResourceFromJSON(json['thumbnail']),
97
- };
98
- }
99
-
100
- export function ProductChildLiteResourceToJSON(json: any): ProductChildLiteResource {
101
- return ProductChildLiteResourceToJSONTyped(json, false);
102
- }
103
-
104
- export function ProductChildLiteResourceToJSONTyped(value?: ProductChildLiteResource | null, ignoreDiscriminator: boolean = false): any {
105
- if (value == null) {
106
- return value;
107
- }
108
-
109
- return {
110
-
111
- 'id': value['id'],
112
- 'name': value['name'],
113
- 'modelNumber': value['modelNumber'],
114
- 'sku': value['sku'],
115
- 'netsuiteId': value['netsuiteId'],
116
- 'thumbnail': AssetResourceToJSON(value['thumbnail']),
117
- };
118
- }
119
-