@digital8/lighting-illusions-ts-sdk 0.0.1174 → 0.0.1175

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 (38) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +9 -3
  3. package/dist/apis/ProductApi.d.ts +17 -1
  4. package/dist/apis/ProductApi.js +62 -1
  5. package/dist/models/ProductCategoryResource.d.ts +0 -6
  6. package/dist/models/ProductCategoryResource.js +0 -4
  7. package/dist/models/ProductChildAttributeGroupedResource.d.ts +51 -0
  8. package/dist/models/ProductChildAttributeGroupedResource.js +64 -0
  9. package/dist/models/ProductChildAttributeGroupedResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/ProductChildAttributeGroupedResourceArrayResponse.js +50 -0
  11. package/dist/models/ProductChildAttributeResource.d.ts +69 -0
  12. package/dist/models/ProductChildAttributeResource.js +74 -0
  13. package/dist/models/ProductChildAttributeResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/ProductChildAttributeResourceArrayResponse.js +50 -0
  15. package/dist/models/ProductChildResource.d.ts +0 -6
  16. package/dist/models/ProductChildResource.js +0 -4
  17. package/dist/models/ShowAttributesProductChildRequest.d.ts +99 -0
  18. package/dist/models/ShowAttributesProductChildRequest.js +83 -0
  19. package/dist/models/index.d.ts +5 -0
  20. package/dist/models/index.js +5 -0
  21. package/docs/ProductApi.md +70 -1
  22. package/docs/ProductCategoryResource.md +0 -2
  23. package/docs/ProductChildAttributeGroupedResource.md +40 -0
  24. package/docs/ProductChildAttributeGroupedResourceArrayResponse.md +34 -0
  25. package/docs/ProductChildAttributeResource.md +46 -0
  26. package/docs/ProductChildAttributeResourceArrayResponse.md +34 -0
  27. package/docs/ProductChildResource.md +0 -2
  28. package/docs/ShowAttributesProductChildRequest.md +50 -0
  29. package/package.json +1 -1
  30. package/src/apis/ProductApi.ts +60 -1
  31. package/src/models/ProductCategoryResource.ts +0 -9
  32. package/src/models/ProductChildAttributeGroupedResource.ts +101 -0
  33. package/src/models/ProductChildAttributeGroupedResourceArrayResponse.ts +73 -0
  34. package/src/models/ProductChildAttributeResource.ts +127 -0
  35. package/src/models/ProductChildAttributeResourceArrayResponse.ts +73 -0
  36. package/src/models/ProductChildResource.ts +0 -9
  37. package/src/models/ShowAttributesProductChildRequest.ts +152 -0
  38. package/src/models/index.ts +5 -0
@@ -188,6 +188,10 @@ docs/ProductCategoryLiteResource.md
188
188
  docs/ProductCategoryLiteResourceArrayResponse.md
189
189
  docs/ProductCategoryResource.md
190
190
  docs/ProductCategoryResourceArrayResponse.md
191
+ docs/ProductChildAttributeGroupedResource.md
192
+ docs/ProductChildAttributeGroupedResourceArrayResponse.md
193
+ docs/ProductChildAttributeResource.md
194
+ docs/ProductChildAttributeResourceArrayResponse.md
191
195
  docs/ProductChildListResource.md
192
196
  docs/ProductChildListResourceArrayResponse.md
193
197
  docs/ProductChildLiteResource.md
@@ -230,6 +234,7 @@ docs/ProductTypeResourceArrayResponse.md
230
234
  docs/SEOResource.md
231
235
  docs/SEOResourceArrayResponse.md
232
236
  docs/ShowAssetsProductChildRequest.md
237
+ docs/ShowAttributesProductChildRequest.md
233
238
  docs/SiteApi.md
234
239
  docs/SiteConfigResource.md
235
240
  docs/SiteConfigResourceArrayResponse.md
@@ -504,6 +509,10 @@ src/models/ProductCategoryLiteResource.ts
504
509
  src/models/ProductCategoryLiteResourceArrayResponse.ts
505
510
  src/models/ProductCategoryResource.ts
506
511
  src/models/ProductCategoryResourceArrayResponse.ts
512
+ src/models/ProductChildAttributeGroupedResource.ts
513
+ src/models/ProductChildAttributeGroupedResourceArrayResponse.ts
514
+ src/models/ProductChildAttributeResource.ts
515
+ src/models/ProductChildAttributeResourceArrayResponse.ts
507
516
  src/models/ProductChildListResource.ts
508
517
  src/models/ProductChildListResourceArrayResponse.ts
509
518
  src/models/ProductChildLiteResource.ts
@@ -545,6 +554,7 @@ src/models/ProductTypeResourceArrayResponse.ts
545
554
  src/models/SEOResource.ts
546
555
  src/models/SEOResourceArrayResponse.ts
547
556
  src/models/ShowAssetsProductChildRequest.ts
557
+ src/models/ShowAttributesProductChildRequest.ts
548
558
  src/models/SiteConfigResource.ts
549
559
  src/models/SiteConfigResourceArrayResponse.ts
550
560
  src/models/SiteListResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1174
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1175
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -118,7 +118,8 @@ All URIs are relative to *http://localhost/api*
118
118
  *ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
119
119
  *ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
120
120
  *ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
121
- *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
121
+ *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
122
+ *ProductApi* | [**showAttributesProductChild**](docs/ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild
122
123
  *ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
123
124
  *ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
124
125
  *ProductApi* | [**storeProduct**](docs/ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct
@@ -351,6 +352,10 @@ All URIs are relative to *http://localhost/api*
351
352
  - [ProductCategoryLiteResourceArrayResponse](docs/ProductCategoryLiteResourceArrayResponse.md)
352
353
  - [ProductCategoryResource](docs/ProductCategoryResource.md)
353
354
  - [ProductCategoryResourceArrayResponse](docs/ProductCategoryResourceArrayResponse.md)
355
+ - [ProductChildAttributeGroupedResource](docs/ProductChildAttributeGroupedResource.md)
356
+ - [ProductChildAttributeGroupedResourceArrayResponse](docs/ProductChildAttributeGroupedResourceArrayResponse.md)
357
+ - [ProductChildAttributeResource](docs/ProductChildAttributeResource.md)
358
+ - [ProductChildAttributeResourceArrayResponse](docs/ProductChildAttributeResourceArrayResponse.md)
354
359
  - [ProductChildListResource](docs/ProductChildListResource.md)
355
360
  - [ProductChildListResourceArrayResponse](docs/ProductChildListResourceArrayResponse.md)
356
361
  - [ProductChildLiteResource](docs/ProductChildLiteResource.md)
@@ -392,6 +397,7 @@ All URIs are relative to *http://localhost/api*
392
397
  - [SEOResource](docs/SEOResource.md)
393
398
  - [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
394
399
  - [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
400
+ - [ShowAttributesProductChildRequest](docs/ShowAttributesProductChildRequest.md)
395
401
  - [SiteConfigResource](docs/SiteConfigResource.md)
396
402
  - [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
397
403
  - [SiteListResource](docs/SiteListResource.md)
@@ -483,7 +489,7 @@ and is automatically generated by the
483
489
  [OpenAPI Generator](https://openapi-generator.tech) project:
484
490
 
485
491
  - API version: `1.0.0`
486
- - Package version: `0.0.1174`
492
+ - Package version: `0.0.1175`
487
493
  - Generator version: `7.20.0`
488
494
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
489
495
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAssetsProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
13
+ import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildAttributeGroupedResource, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAssetsProductChildRequest, ShowAttributesProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
14
14
  export interface AttachAccessoriesProductChildOperationRequest {
15
15
  productChild: number;
16
16
  attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
@@ -65,6 +65,10 @@ export interface ShowAssetsProductChildOperationRequest {
65
65
  productChild: number;
66
66
  showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
67
67
  }
68
+ export interface ShowAttributesProductChildOperationRequest {
69
+ productChild: number;
70
+ showAttributesProductChildRequest?: ShowAttributesProductChildRequest;
71
+ }
68
72
  export interface ShowProductRequest {
69
73
  product: number;
70
74
  }
@@ -269,6 +273,18 @@ export declare class ProductApi extends runtime.BaseAPI {
269
273
  * Auto-generated: showAssetsProductChild
270
274
  */
271
275
  showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
276
+ /**
277
+ * Creates request options for showAttributesProductChild without sending the request
278
+ */
279
+ showAttributesProductChildRequestOpts(requestParameters: ShowAttributesProductChildOperationRequest): Promise<runtime.RequestOpts>;
280
+ /**
281
+ * Auto-generated: showAttributesProductChild
282
+ */
283
+ showAttributesProductChildRaw(requestParameters: ShowAttributesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildAttributeGroupedResource>>;
284
+ /**
285
+ * Auto-generated: showAttributesProductChild
286
+ */
287
+ showAttributesProductChild(requestParameters: ShowAttributesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildAttributeGroupedResource>;
272
288
  /**
273
289
  * Creates request options for showProduct without sending the request
274
290
  */
@@ -934,7 +934,7 @@ var ProductApi = /** @class */ (function (_super) {
934
934
  urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
935
935
  return [2 /*return*/, {
936
936
  path: urlPath,
937
- method: 'POST',
937
+ method: 'GET',
938
938
  headers: headerParameters,
939
939
  query: queryParameters,
940
940
  body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
@@ -978,6 +978,67 @@ var ProductApi = /** @class */ (function (_super) {
978
978
  });
979
979
  });
980
980
  };
981
+ /**
982
+ * Creates request options for showAttributesProductChild without sending the request
983
+ */
984
+ ProductApi.prototype.showAttributesProductChildRequestOpts = function (requestParameters) {
985
+ return __awaiter(this, void 0, void 0, function () {
986
+ var queryParameters, headerParameters, urlPath;
987
+ return __generator(this, function (_a) {
988
+ if (requestParameters['productChild'] == null) {
989
+ throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling showAttributesProductChild().');
990
+ }
991
+ queryParameters = {};
992
+ headerParameters = {};
993
+ headerParameters['Content-Type'] = 'application/json';
994
+ urlPath = "/admin-api/product/children/{productChild}/attributes";
995
+ urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
996
+ return [2 /*return*/, {
997
+ path: urlPath,
998
+ method: 'POST',
999
+ headers: headerParameters,
1000
+ query: queryParameters,
1001
+ body: (0, index_1.ShowAttributesProductChildRequestToJSON)(requestParameters['showAttributesProductChildRequest']),
1002
+ }];
1003
+ });
1004
+ });
1005
+ };
1006
+ /**
1007
+ * Auto-generated: showAttributesProductChild
1008
+ */
1009
+ ProductApi.prototype.showAttributesProductChildRaw = function (requestParameters, initOverrides) {
1010
+ return __awaiter(this, void 0, void 0, function () {
1011
+ var requestOptions, response;
1012
+ return __generator(this, function (_a) {
1013
+ switch (_a.label) {
1014
+ case 0: return [4 /*yield*/, this.showAttributesProductChildRequestOpts(requestParameters)];
1015
+ case 1:
1016
+ requestOptions = _a.sent();
1017
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1018
+ case 2:
1019
+ response = _a.sent();
1020
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildAttributeGroupedResourceFromJSON)(jsonValue); })];
1021
+ }
1022
+ });
1023
+ });
1024
+ };
1025
+ /**
1026
+ * Auto-generated: showAttributesProductChild
1027
+ */
1028
+ ProductApi.prototype.showAttributesProductChild = function (requestParameters, initOverrides) {
1029
+ return __awaiter(this, void 0, void 0, function () {
1030
+ var response;
1031
+ return __generator(this, function (_a) {
1032
+ switch (_a.label) {
1033
+ case 0: return [4 /*yield*/, this.showAttributesProductChildRaw(requestParameters, initOverrides)];
1034
+ case 1:
1035
+ response = _a.sent();
1036
+ return [4 /*yield*/, response.value()];
1037
+ case 2: return [2 /*return*/, _a.sent()];
1038
+ }
1039
+ });
1040
+ });
1041
+ };
981
1042
  /**
982
1043
  * Creates request options for showProduct without sending the request
983
1044
  */
@@ -56,12 +56,6 @@ export interface ProductCategoryResource {
56
56
  * @memberof ProductCategoryResource
57
57
  */
58
58
  isDisabled: boolean;
59
- /**
60
- *
61
- * @type {boolean}
62
- * @memberof ProductCategoryResource
63
- */
64
- hideFromFrontend: boolean;
65
59
  /**
66
60
  *
67
61
  * @type {boolean}
@@ -35,8 +35,6 @@ function instanceOfProductCategoryResource(value) {
35
35
  return false;
36
36
  if (!('isDisabled' in value) || value['isDisabled'] === undefined)
37
37
  return false;
38
- if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined)
39
- return false;
40
38
  if (!('isAutomated' in value) || value['isAutomated'] === undefined)
41
39
  return false;
42
40
  if (!('index' in value) || value['index'] === undefined)
@@ -71,7 +69,6 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
71
69
  'slug': json['slug'],
72
70
  'parentId': json['parentId'] == null ? undefined : json['parentId'],
73
71
  'isDisabled': json['isDisabled'],
74
- 'hideFromFrontend': json['hideFromFrontend'],
75
72
  'isAutomated': json['isAutomated'],
76
73
  'index': json['index'],
77
74
  'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
@@ -99,7 +96,6 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
99
96
  'slug': value['slug'],
100
97
  'parentId': value['parentId'],
101
98
  'isDisabled': value['isDisabled'],
102
- 'hideFromFrontend': value['hideFromFrontend'],
103
99
  'isAutomated': value['isAutomated'],
104
100
  'index': value['index'],
105
101
  'automatedConditionType': value['automatedConditionType'],
@@ -0,0 +1,51 @@
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 { ProductChildAttributeResource } from './ProductChildAttributeResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductChildAttributeGroupedResource
17
+ */
18
+ export interface ProductChildAttributeGroupedResource {
19
+ /**
20
+ *
21
+ * @type {Array<ProductChildAttributeResource>}
22
+ * @memberof ProductChildAttributeGroupedResource
23
+ */
24
+ performance: Array<ProductChildAttributeResource>;
25
+ /**
26
+ *
27
+ * @type {Array<ProductChildAttributeResource>}
28
+ * @memberof ProductChildAttributeGroupedResource
29
+ */
30
+ specification: Array<ProductChildAttributeResource>;
31
+ /**
32
+ *
33
+ * @type {Array<ProductChildAttributeResource>}
34
+ * @memberof ProductChildAttributeGroupedResource
35
+ */
36
+ dimension: Array<ProductChildAttributeResource>;
37
+ /**
38
+ *
39
+ * @type {Array<ProductChildAttributeResource>}
40
+ * @memberof ProductChildAttributeGroupedResource
41
+ */
42
+ other: Array<ProductChildAttributeResource>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ProductChildAttributeGroupedResource interface.
46
+ */
47
+ export declare function instanceOfProductChildAttributeGroupedResource(value: object): value is ProductChildAttributeGroupedResource;
48
+ export declare function ProductChildAttributeGroupedResourceFromJSON(json: any): ProductChildAttributeGroupedResource;
49
+ export declare function ProductChildAttributeGroupedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildAttributeGroupedResource;
50
+ export declare function ProductChildAttributeGroupedResourceToJSON(json: any): ProductChildAttributeGroupedResource;
51
+ export declare function ProductChildAttributeGroupedResourceToJSONTyped(value?: ProductChildAttributeGroupedResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfProductChildAttributeGroupedResource = instanceOfProductChildAttributeGroupedResource;
17
+ exports.ProductChildAttributeGroupedResourceFromJSON = ProductChildAttributeGroupedResourceFromJSON;
18
+ exports.ProductChildAttributeGroupedResourceFromJSONTyped = ProductChildAttributeGroupedResourceFromJSONTyped;
19
+ exports.ProductChildAttributeGroupedResourceToJSON = ProductChildAttributeGroupedResourceToJSON;
20
+ exports.ProductChildAttributeGroupedResourceToJSONTyped = ProductChildAttributeGroupedResourceToJSONTyped;
21
+ var ProductChildAttributeResource_1 = require("./ProductChildAttributeResource");
22
+ /**
23
+ * Check if a given object implements the ProductChildAttributeGroupedResource interface.
24
+ */
25
+ function instanceOfProductChildAttributeGroupedResource(value) {
26
+ if (!('performance' in value) || value['performance'] === undefined)
27
+ return false;
28
+ if (!('specification' in value) || value['specification'] === undefined)
29
+ return false;
30
+ if (!('dimension' in value) || value['dimension'] === undefined)
31
+ return false;
32
+ if (!('other' in value) || value['other'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ProductChildAttributeGroupedResourceFromJSON(json) {
37
+ return ProductChildAttributeGroupedResourceFromJSONTyped(json, false);
38
+ }
39
+ function ProductChildAttributeGroupedResourceFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'performance': (json['performance'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceFromJSON)),
45
+ 'specification': (json['specification'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceFromJSON)),
46
+ 'dimension': (json['dimension'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceFromJSON)),
47
+ 'other': (json['other'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceFromJSON)),
48
+ };
49
+ }
50
+ function ProductChildAttributeGroupedResourceToJSON(json) {
51
+ return ProductChildAttributeGroupedResourceToJSONTyped(json, false);
52
+ }
53
+ function ProductChildAttributeGroupedResourceToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'performance': (value['performance'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceToJSON)),
60
+ 'specification': (value['specification'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceToJSON)),
61
+ 'dimension': (value['dimension'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceToJSON)),
62
+ 'other': (value['other'].map(ProductChildAttributeResource_1.ProductChildAttributeResourceToJSON)),
63
+ };
64
+ }
@@ -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 { ProductChildAttributeGroupedResource } from './ProductChildAttributeGroupedResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductChildAttributeGroupedResourceArrayResponse
17
+ */
18
+ export interface ProductChildAttributeGroupedResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductChildAttributeGroupedResource>}
22
+ * @memberof ProductChildAttributeGroupedResourceArrayResponse
23
+ */
24
+ data?: Array<ProductChildAttributeGroupedResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductChildAttributeGroupedResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductChildAttributeGroupedResourceArrayResponse(value: object): value is ProductChildAttributeGroupedResourceArrayResponse;
30
+ export declare function ProductChildAttributeGroupedResourceArrayResponseFromJSON(json: any): ProductChildAttributeGroupedResourceArrayResponse;
31
+ export declare function ProductChildAttributeGroupedResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildAttributeGroupedResourceArrayResponse;
32
+ export declare function ProductChildAttributeGroupedResourceArrayResponseToJSON(json: any): ProductChildAttributeGroupedResourceArrayResponse;
33
+ export declare function ProductChildAttributeGroupedResourceArrayResponseToJSONTyped(value?: ProductChildAttributeGroupedResourceArrayResponse | 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.instanceOfProductChildAttributeGroupedResourceArrayResponse = instanceOfProductChildAttributeGroupedResourceArrayResponse;
17
+ exports.ProductChildAttributeGroupedResourceArrayResponseFromJSON = ProductChildAttributeGroupedResourceArrayResponseFromJSON;
18
+ exports.ProductChildAttributeGroupedResourceArrayResponseFromJSONTyped = ProductChildAttributeGroupedResourceArrayResponseFromJSONTyped;
19
+ exports.ProductChildAttributeGroupedResourceArrayResponseToJSON = ProductChildAttributeGroupedResourceArrayResponseToJSON;
20
+ exports.ProductChildAttributeGroupedResourceArrayResponseToJSONTyped = ProductChildAttributeGroupedResourceArrayResponseToJSONTyped;
21
+ var ProductChildAttributeGroupedResource_1 = require("./ProductChildAttributeGroupedResource");
22
+ /**
23
+ * Check if a given object implements the ProductChildAttributeGroupedResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductChildAttributeGroupedResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductChildAttributeGroupedResourceArrayResponseFromJSON(json) {
29
+ return ProductChildAttributeGroupedResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductChildAttributeGroupedResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductChildAttributeGroupedResource_1.ProductChildAttributeGroupedResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductChildAttributeGroupedResourceArrayResponseToJSON(json) {
40
+ return ProductChildAttributeGroupedResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductChildAttributeGroupedResourceArrayResponseToJSONTyped(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(ProductChildAttributeGroupedResource_1.ProductChildAttributeGroupedResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,69 @@
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 { AttributeValueResource } from './AttributeValueResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductChildAttributeResource
17
+ */
18
+ export interface ProductChildAttributeResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ProductChildAttributeResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProductChildAttributeResource
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProductChildAttributeResource
35
+ */
36
+ type: string;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ProductChildAttributeResource
41
+ */
42
+ order: number;
43
+ /**
44
+ *
45
+ * @type {Array<AttributeValueResource>}
46
+ * @memberof ProductChildAttributeResource
47
+ */
48
+ values: Array<AttributeValueResource> | null;
49
+ /**
50
+ *
51
+ * @type {Array<number>}
52
+ * @memberof ProductChildAttributeResource
53
+ */
54
+ selectedValues: Array<number>;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ProductChildAttributeResource
59
+ */
60
+ textValue?: string | null;
61
+ }
62
+ /**
63
+ * Check if a given object implements the ProductChildAttributeResource interface.
64
+ */
65
+ export declare function instanceOfProductChildAttributeResource(value: object): value is ProductChildAttributeResource;
66
+ export declare function ProductChildAttributeResourceFromJSON(json: any): ProductChildAttributeResource;
67
+ export declare function ProductChildAttributeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildAttributeResource;
68
+ export declare function ProductChildAttributeResourceToJSON(json: any): ProductChildAttributeResource;
69
+ export declare function ProductChildAttributeResourceToJSONTyped(value?: ProductChildAttributeResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.instanceOfProductChildAttributeResource = instanceOfProductChildAttributeResource;
17
+ exports.ProductChildAttributeResourceFromJSON = ProductChildAttributeResourceFromJSON;
18
+ exports.ProductChildAttributeResourceFromJSONTyped = ProductChildAttributeResourceFromJSONTyped;
19
+ exports.ProductChildAttributeResourceToJSON = ProductChildAttributeResourceToJSON;
20
+ exports.ProductChildAttributeResourceToJSONTyped = ProductChildAttributeResourceToJSONTyped;
21
+ var AttributeValueResource_1 = require("./AttributeValueResource");
22
+ /**
23
+ * Check if a given object implements the ProductChildAttributeResource interface.
24
+ */
25
+ function instanceOfProductChildAttributeResource(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 (!('type' in value) || value['type'] === undefined)
31
+ return false;
32
+ if (!('order' in value) || value['order'] === undefined)
33
+ return false;
34
+ if (!('values' in value) || value['values'] === undefined)
35
+ return false;
36
+ if (!('selectedValues' in value) || value['selectedValues'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ProductChildAttributeResourceFromJSON(json) {
41
+ return ProductChildAttributeResourceFromJSONTyped(json, false);
42
+ }
43
+ function ProductChildAttributeResourceFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'name': json['name'],
50
+ 'type': json['type'],
51
+ 'order': json['order'],
52
+ 'values': (json['values'] == null ? null : json['values'].map(AttributeValueResource_1.AttributeValueResourceFromJSON)),
53
+ 'selectedValues': json['selectedValues'],
54
+ 'textValue': json['textValue'] == null ? undefined : json['textValue'],
55
+ };
56
+ }
57
+ function ProductChildAttributeResourceToJSON(json) {
58
+ return ProductChildAttributeResourceToJSONTyped(json, false);
59
+ }
60
+ function ProductChildAttributeResourceToJSONTyped(value, ignoreDiscriminator) {
61
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'name': value['name'],
68
+ 'type': value['type'],
69
+ 'order': value['order'],
70
+ 'values': (value['values'] == null ? null : value['values'].map(AttributeValueResource_1.AttributeValueResourceToJSON)),
71
+ 'selectedValues': value['selectedValues'],
72
+ 'textValue': value['textValue'],
73
+ };
74
+ }
@@ -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 { ProductChildAttributeResource } from './ProductChildAttributeResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductChildAttributeResourceArrayResponse
17
+ */
18
+ export interface ProductChildAttributeResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductChildAttributeResource>}
22
+ * @memberof ProductChildAttributeResourceArrayResponse
23
+ */
24
+ data?: Array<ProductChildAttributeResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductChildAttributeResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductChildAttributeResourceArrayResponse(value: object): value is ProductChildAttributeResourceArrayResponse;
30
+ export declare function ProductChildAttributeResourceArrayResponseFromJSON(json: any): ProductChildAttributeResourceArrayResponse;
31
+ export declare function ProductChildAttributeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildAttributeResourceArrayResponse;
32
+ export declare function ProductChildAttributeResourceArrayResponseToJSON(json: any): ProductChildAttributeResourceArrayResponse;
33
+ export declare function ProductChildAttributeResourceArrayResponseToJSONTyped(value?: ProductChildAttributeResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;