@digital8/lighting-illusions-ts-sdk 0.0.1065 → 0.0.1067

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.
@@ -198,6 +198,8 @@ docs/ProductChildSiteDetailLiteResource.md
198
198
  docs/ProductChildSiteDetailLiteResourceArrayResponse.md
199
199
  docs/ProductChildSiteDetailResource.md
200
200
  docs/ProductChildSiteDetailResourceArrayResponse.md
201
+ docs/ProductClassResource.md
202
+ docs/ProductClassResourceArrayResponse.md
201
203
  docs/ProductCompareResource.md
202
204
  docs/ProductCompareResourceArrayResponse.md
203
205
  docs/ProductListResource.md
@@ -507,6 +509,8 @@ src/models/ProductChildSiteDetailLiteResource.ts
507
509
  src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
508
510
  src/models/ProductChildSiteDetailResource.ts
509
511
  src/models/ProductChildSiteDetailResourceArrayResponse.ts
512
+ src/models/ProductClassResource.ts
513
+ src/models/ProductClassResourceArrayResponse.ts
510
514
  src/models/ProductCompareResource.ts
511
515
  src/models/ProductCompareResourceArrayResponse.ts
512
516
  src/models/ProductListResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1065
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1067
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -357,6 +357,8 @@ All URIs are relative to *http://localhost/api*
357
357
  - [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
358
358
  - [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
359
359
  - [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
360
+ - [ProductClassResource](docs/ProductClassResource.md)
361
+ - [ProductClassResourceArrayResponse](docs/ProductClassResourceArrayResponse.md)
360
362
  - [ProductCompareResource](docs/ProductCompareResource.md)
361
363
  - [ProductCompareResourceArrayResponse](docs/ProductCompareResourceArrayResponse.md)
362
364
  - [ProductListResource](docs/ProductListResource.md)
@@ -472,7 +474,7 @@ and is automatically generated by the
472
474
  [OpenAPI Generator](https://openapi-generator.tech) project:
473
475
 
474
476
  - API version: `1.0.0`
475
- - Package version: `0.0.1065`
477
+ - Package version: `0.0.1067`
476
478
  - Generator version: `7.20.0`
477
479
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
478
480
 
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ProductChildSiteDetailResource } from './ProductChildSiteDetailResource';
13
13
  import type { AssetResource } from './AssetResource';
14
+ import type { ProductClassResource } from './ProductClassResource';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -185,6 +186,18 @@ export interface ProductChildResource {
185
186
  * @memberof ProductChildResource
186
187
  */
187
188
  attributes: object;
189
+ /**
190
+ *
191
+ * @type {Array<ProductClassResource>}
192
+ * @memberof ProductChildResource
193
+ */
194
+ productClasses: Array<ProductClassResource> | null;
195
+ /**
196
+ *
197
+ * @type {string}
198
+ * @memberof ProductChildResource
199
+ */
200
+ productClassString: string;
188
201
  }
189
202
  /**
190
203
  * Check if a given object implements the ProductChildResource interface.
@@ -20,6 +20,7 @@ exports.ProductChildResourceToJSON = ProductChildResourceToJSON;
20
20
  exports.ProductChildResourceToJSONTyped = ProductChildResourceToJSONTyped;
21
21
  var ProductChildSiteDetailResource_1 = require("./ProductChildSiteDetailResource");
22
22
  var AssetResource_1 = require("./AssetResource");
23
+ var ProductClassResource_1 = require("./ProductClassResource");
23
24
  /**
24
25
  * Check if a given object implements the ProductChildResource interface.
25
26
  */
@@ -74,6 +75,10 @@ function instanceOfProductChildResource(value) {
74
75
  return false;
75
76
  if (!('attributes' in value) || value['attributes'] === undefined)
76
77
  return false;
78
+ if (!('productClasses' in value) || value['productClasses'] === undefined)
79
+ return false;
80
+ if (!('productClassString' in value) || value['productClassString'] === undefined)
81
+ return false;
77
82
  return true;
78
83
  }
79
84
  function ProductChildResourceFromJSON(json) {
@@ -112,6 +117,8 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
112
117
  'assets': (json['assets'] == null ? null : json['assets'].map(AssetResource_1.AssetResourceFromJSON)),
113
118
  'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
114
119
  'attributes': json['attributes'],
120
+ 'productClasses': (json['productClasses'] == null ? null : json['productClasses'].map(ProductClassResource_1.ProductClassResourceFromJSON)),
121
+ 'productClassString': json['productClassString'],
115
122
  };
116
123
  }
117
124
  function ProductChildResourceToJSON(json) {
@@ -151,5 +158,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
151
158
  'assets': (value['assets'] == null ? null : value['assets'].map(AssetResource_1.AssetResourceToJSON)),
152
159
  'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
153
160
  'attributes': value['attributes'],
161
+ 'productClasses': (value['productClasses'] == null ? null : value['productClasses'].map(ProductClassResource_1.ProductClassResourceToJSON)),
162
+ 'productClassString': value['productClassString'],
154
163
  };
155
164
  }
@@ -0,0 +1,44 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProductClassResource
16
+ */
17
+ export interface ProductClassResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductClassResource
22
+ */
23
+ id?: number | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ProductClassResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ProductClassResource
34
+ */
35
+ order: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ProductClassResource interface.
39
+ */
40
+ export declare function instanceOfProductClassResource(value: object): value is ProductClassResource;
41
+ export declare function ProductClassResourceFromJSON(json: any): ProductClassResource;
42
+ export declare function ProductClassResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassResource;
43
+ export declare function ProductClassResourceToJSON(json: any): ProductClassResource;
44
+ export declare function ProductClassResourceToJSONTyped(value?: ProductClassResource | 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.instanceOfProductClassResource = instanceOfProductClassResource;
17
+ exports.ProductClassResourceFromJSON = ProductClassResourceFromJSON;
18
+ exports.ProductClassResourceFromJSONTyped = ProductClassResourceFromJSONTyped;
19
+ exports.ProductClassResourceToJSON = ProductClassResourceToJSON;
20
+ exports.ProductClassResourceToJSONTyped = ProductClassResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductClassResource interface.
23
+ */
24
+ function instanceOfProductClassResource(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('order' in value) || value['order'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ProductClassResourceFromJSON(json) {
32
+ return ProductClassResourceFromJSONTyped(json, false);
33
+ }
34
+ function ProductClassResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'] == null ? undefined : json['id'],
40
+ 'name': json['name'],
41
+ 'order': json['order'],
42
+ };
43
+ }
44
+ function ProductClassResourceToJSON(json) {
45
+ return ProductClassResourceToJSONTyped(json, false);
46
+ }
47
+ function ProductClassResourceToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'name': value['name'],
55
+ 'order': value['order'],
56
+ };
57
+ }
@@ -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 { ProductClassResource } from './ProductClassResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductClassResourceArrayResponse
17
+ */
18
+ export interface ProductClassResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductClassResource>}
22
+ * @memberof ProductClassResourceArrayResponse
23
+ */
24
+ data?: Array<ProductClassResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductClassResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductClassResourceArrayResponse(value: object): value is ProductClassResourceArrayResponse;
30
+ export declare function ProductClassResourceArrayResponseFromJSON(json: any): ProductClassResourceArrayResponse;
31
+ export declare function ProductClassResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassResourceArrayResponse;
32
+ export declare function ProductClassResourceArrayResponseToJSON(json: any): ProductClassResourceArrayResponse;
33
+ export declare function ProductClassResourceArrayResponseToJSONTyped(value?: ProductClassResourceArrayResponse | 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.instanceOfProductClassResourceArrayResponse = instanceOfProductClassResourceArrayResponse;
17
+ exports.ProductClassResourceArrayResponseFromJSON = ProductClassResourceArrayResponseFromJSON;
18
+ exports.ProductClassResourceArrayResponseFromJSONTyped = ProductClassResourceArrayResponseFromJSONTyped;
19
+ exports.ProductClassResourceArrayResponseToJSON = ProductClassResourceArrayResponseToJSON;
20
+ exports.ProductClassResourceArrayResponseToJSONTyped = ProductClassResourceArrayResponseToJSONTyped;
21
+ var ProductClassResource_1 = require("./ProductClassResource");
22
+ /**
23
+ * Check if a given object implements the ProductClassResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductClassResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductClassResourceArrayResponseFromJSON(json) {
29
+ return ProductClassResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductClassResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductClassResource_1.ProductClassResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductClassResourceArrayResponseToJSON(json) {
40
+ return ProductClassResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductClassResourceArrayResponseToJSONTyped(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(ProductClassResource_1.ProductClassResourceToJSON)),
49
+ };
50
+ }
@@ -185,6 +185,8 @@ export * from './ProductChildSiteDetailLiteResource';
185
185
  export * from './ProductChildSiteDetailLiteResourceArrayResponse';
186
186
  export * from './ProductChildSiteDetailResource';
187
187
  export * from './ProductChildSiteDetailResourceArrayResponse';
188
+ export * from './ProductClassResource';
189
+ export * from './ProductClassResourceArrayResponse';
188
190
  export * from './ProductCompareResource';
189
191
  export * from './ProductCompareResourceArrayResponse';
190
192
  export * from './ProductListResource';
@@ -203,6 +203,8 @@ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
203
203
  __exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
204
204
  __exportStar(require("./ProductChildSiteDetailResource"), exports);
205
205
  __exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
206
+ __exportStar(require("./ProductClassResource"), exports);
207
+ __exportStar(require("./ProductClassResourceArrayResponse"), exports);
206
208
  __exportStar(require("./ProductCompareResource"), exports);
207
209
  __exportStar(require("./ProductCompareResourceArrayResponse"), exports);
208
210
  __exportStar(require("./ProductListResource"), exports);
@@ -34,6 +34,8 @@ Name | Type
34
34
  `assets` | [Array&lt;AssetResource&gt;](AssetResource.md)
35
35
  `thumbnail` | [AssetResource](AssetResource.md)
36
36
  `attributes` | object
37
+ `productClasses` | [Array&lt;ProductClassResource&gt;](ProductClassResource.md)
38
+ `productClassString` | string
37
39
 
38
40
  ## Example
39
41
 
@@ -70,6 +72,8 @@ const example = {
70
72
  "assets": null,
71
73
  "thumbnail": null,
72
74
  "attributes": null,
75
+ "productClasses": null,
76
+ "productClassString": null,
73
77
  } satisfies ProductChildResource
74
78
 
75
79
  console.log(example)
@@ -0,0 +1,38 @@
1
+
2
+ # ProductClassResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `order` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ProductClassResource } from '@digital8/lighting-illusions-ts-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "id": null,
21
+ "name": null,
22
+ "order": null,
23
+ } satisfies ProductClassResource
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as ProductClassResource
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,34 @@
1
+
2
+ # ProductClassResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;ProductClassResource&gt;](ProductClassResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductClassResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductClassResourceArrayResponse
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 ProductClassResourceArrayResponse
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1065",
3
+ "version": "0.0.1067",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -27,6 +27,13 @@ import {
27
27
  AssetResourceToJSON,
28
28
  AssetResourceToJSONTyped,
29
29
  } from './AssetResource';
30
+ import type { ProductClassResource } from './ProductClassResource';
31
+ import {
32
+ ProductClassResourceFromJSON,
33
+ ProductClassResourceFromJSONTyped,
34
+ ProductClassResourceToJSON,
35
+ ProductClassResourceToJSONTyped,
36
+ } from './ProductClassResource';
30
37
 
31
38
  /**
32
39
  *
@@ -202,6 +209,18 @@ export interface ProductChildResource {
202
209
  * @memberof ProductChildResource
203
210
  */
204
211
  attributes: object;
212
+ /**
213
+ *
214
+ * @type {Array<ProductClassResource>}
215
+ * @memberof ProductChildResource
216
+ */
217
+ productClasses: Array<ProductClassResource> | null;
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof ProductChildResource
222
+ */
223
+ productClassString: string;
205
224
  }
206
225
 
207
226
  /**
@@ -233,6 +252,8 @@ export function instanceOfProductChildResource(value: object): value is ProductC
233
252
  if (!('assets' in value) || value['assets'] === undefined) return false;
234
253
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
235
254
  if (!('attributes' in value) || value['attributes'] === undefined) return false;
255
+ if (!('productClasses' in value) || value['productClasses'] === undefined) return false;
256
+ if (!('productClassString' in value) || value['productClassString'] === undefined) return false;
236
257
  return true;
237
258
  }
238
259
 
@@ -274,6 +295,8 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
274
295
  'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetResourceFromJSON)),
275
296
  'thumbnail': AssetResourceFromJSON(json['thumbnail']),
276
297
  'attributes': json['attributes'],
298
+ 'productClasses': (json['productClasses'] == null ? null : (json['productClasses'] as Array<any>).map(ProductClassResourceFromJSON)),
299
+ 'productClassString': json['productClassString'],
277
300
  };
278
301
  }
279
302
 
@@ -316,6 +339,8 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
316
339
  'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetResourceToJSON)),
317
340
  'thumbnail': AssetResourceToJSON(value['thumbnail']),
318
341
  'attributes': value['attributes'],
342
+ 'productClasses': (value['productClasses'] == null ? null : (value['productClasses'] as Array<any>).map(ProductClassResourceToJSON)),
343
+ 'productClassString': value['productClassString'],
319
344
  };
320
345
  }
321
346
 
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductClassResource
20
+ */
21
+ export interface ProductClassResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductClassResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProductClassResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ProductClassResource
38
+ */
39
+ order: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ProductClassResource interface.
44
+ */
45
+ export function instanceOfProductClassResource(value: object): value is ProductClassResource {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('order' in value) || value['order'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function ProductClassResourceFromJSON(json: any): ProductClassResource {
52
+ return ProductClassResourceFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ProductClassResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassResource {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'id': json['id'] == null ? undefined : json['id'],
62
+ 'name': json['name'],
63
+ 'order': json['order'],
64
+ };
65
+ }
66
+
67
+ export function ProductClassResourceToJSON(json: any): ProductClassResource {
68
+ return ProductClassResourceToJSONTyped(json, false);
69
+ }
70
+
71
+ export function ProductClassResourceToJSONTyped(value?: ProductClassResource | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'id': value['id'],
79
+ 'name': value['name'],
80
+ 'order': value['order'],
81
+ };
82
+ }
83
+
@@ -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 { ProductClassResource } from './ProductClassResource';
17
+ import {
18
+ ProductClassResourceFromJSON,
19
+ ProductClassResourceFromJSONTyped,
20
+ ProductClassResourceToJSON,
21
+ ProductClassResourceToJSONTyped,
22
+ } from './ProductClassResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductClassResourceArrayResponse
28
+ */
29
+ export interface ProductClassResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductClassResource>}
33
+ * @memberof ProductClassResourceArrayResponse
34
+ */
35
+ data?: Array<ProductClassResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductClassResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductClassResourceArrayResponse(value: object): value is ProductClassResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductClassResourceArrayResponseFromJSON(json: any): ProductClassResourceArrayResponse {
46
+ return ProductClassResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductClassResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductClassResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductClassResourceArrayResponseToJSON(json: any): ProductClassResourceArrayResponse {
60
+ return ProductClassResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductClassResourceArrayResponseToJSONTyped(value?: ProductClassResourceArrayResponse | 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(ProductClassResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -187,6 +187,8 @@ export * from './ProductChildSiteDetailLiteResource';
187
187
  export * from './ProductChildSiteDetailLiteResourceArrayResponse';
188
188
  export * from './ProductChildSiteDetailResource';
189
189
  export * from './ProductChildSiteDetailResourceArrayResponse';
190
+ export * from './ProductClassResource';
191
+ export * from './ProductClassResourceArrayResponse';
190
192
  export * from './ProductCompareResource';
191
193
  export * from './ProductCompareResourceArrayResponse';
192
194
  export * from './ProductListResource';