@digital8/lighting-illusions-ts-sdk 0.0.1084 → 0.0.1086

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.
@@ -11,6 +11,8 @@ docs/AssetLiteResource.md
11
11
  docs/AssetLiteResourceArrayResponse.md
12
12
  docs/AssetResource.md
13
13
  docs/AssetResourceArrayResponse.md
14
+ docs/AssetWithOverlayLinkResource.md
15
+ docs/AssetWithOverlayLinkResourceArrayResponse.md
14
16
  docs/AttachAccessoriesProductChildRequest.md
15
17
  docs/AttachAssetsOverlayTemplateRequest.md
16
18
  docs/AttachAttributeProductTypeRequest.md
@@ -225,6 +227,7 @@ docs/ProductTypeResource.md
225
227
  docs/ProductTypeResourceArrayResponse.md
226
228
  docs/SEOResource.md
227
229
  docs/SEOResourceArrayResponse.md
230
+ docs/ShowAssetsProductChildRequest.md
228
231
  docs/SiteApi.md
229
232
  docs/SiteConfigResource.md
230
233
  docs/SiteConfigResourceArrayResponse.md
@@ -330,6 +333,8 @@ src/models/AssetLiteResource.ts
330
333
  src/models/AssetLiteResourceArrayResponse.ts
331
334
  src/models/AssetResource.ts
332
335
  src/models/AssetResourceArrayResponse.ts
336
+ src/models/AssetWithOverlayLinkResource.ts
337
+ src/models/AssetWithOverlayLinkResourceArrayResponse.ts
333
338
  src/models/AttachAccessoriesProductChildRequest.ts
334
339
  src/models/AttachAssetsOverlayTemplateRequest.ts
335
340
  src/models/AttachAttributeProductTypeRequest.ts
@@ -535,6 +540,7 @@ src/models/ProductTypeResource.ts
535
540
  src/models/ProductTypeResourceArrayResponse.ts
536
541
  src/models/SEOResource.ts
537
542
  src/models/SEOResourceArrayResponse.ts
543
+ src/models/ShowAssetsProductChildRequest.ts
538
544
  src/models/SiteConfigResource.ts
539
545
  src/models/SiteConfigResourceArrayResponse.ts
540
546
  src/models/SiteListResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1084
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1086
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -113,7 +113,7 @@ All URIs are relative to *http://localhost/api*
113
113
  *ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
114
114
  *ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
115
115
  *ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
116
- *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
116
+ *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
117
117
  *ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
118
118
  *ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
119
119
  *ProductApi* | [**storeProduct**](docs/ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct
@@ -178,6 +178,8 @@ All URIs are relative to *http://localhost/api*
178
178
  - [AssetLiteResourceArrayResponse](docs/AssetLiteResourceArrayResponse.md)
179
179
  - [AssetResource](docs/AssetResource.md)
180
180
  - [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
181
+ - [AssetWithOverlayLinkResource](docs/AssetWithOverlayLinkResource.md)
182
+ - [AssetWithOverlayLinkResourceArrayResponse](docs/AssetWithOverlayLinkResourceArrayResponse.md)
181
183
  - [AttachAccessoriesProductChildRequest](docs/AttachAccessoriesProductChildRequest.md)
182
184
  - [AttachAssetsOverlayTemplateRequest](docs/AttachAssetsOverlayTemplateRequest.md)
183
185
  - [AttachAttributeProductTypeRequest](docs/AttachAttributeProductTypeRequest.md)
@@ -383,6 +385,7 @@ All URIs are relative to *http://localhost/api*
383
385
  - [ProductTypeResourceArrayResponse](docs/ProductTypeResourceArrayResponse.md)
384
386
  - [SEOResource](docs/SEOResource.md)
385
387
  - [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
388
+ - [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
386
389
  - [SiteConfigResource](docs/SiteConfigResource.md)
387
390
  - [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
388
391
  - [SiteListResource](docs/SiteListResource.md)
@@ -474,7 +477,7 @@ and is automatically generated by the
474
477
  [OpenAPI Generator](https://openapi-generator.tech) project:
475
478
 
476
479
  - API version: `1.0.0`
477
- - Package version: `0.0.1084`
480
+ - Package version: `0.0.1086`
478
481
  - Generator version: `7.20.0`
479
482
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
480
483
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
13
+ import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAssetsProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
14
14
  export interface AttachAccessoriesProductChildOperationRequest {
15
15
  productChild: number;
16
16
  attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
@@ -61,8 +61,9 @@ export interface IndexProductOperationRequest {
61
61
  export interface IndexProductChildOperationRequest {
62
62
  indexProductChildRequest?: IndexProductChildRequest;
63
63
  }
64
- export interface ShowAssetsProductChildRequest {
64
+ export interface ShowAssetsProductChildOperationRequest {
65
65
  productChild: number;
66
+ showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
66
67
  }
67
68
  export interface ShowProductRequest {
68
69
  product: number;
@@ -259,15 +260,15 @@ export declare class ProductApi extends runtime.BaseAPI {
259
260
  /**
260
261
  * Creates request options for showAssetsProductChild without sending the request
261
262
  */
262
- showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts>;
263
+ showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildOperationRequest): Promise<runtime.RequestOpts>;
263
264
  /**
264
265
  * Auto-generated: showAssetsProductChild
265
266
  */
266
- showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>>;
267
+ showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>>;
267
268
  /**
268
269
  * Auto-generated: showAssetsProductChild
269
270
  */
270
- showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResourceArrayResponse>;
271
+ showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
271
272
  /**
272
273
  * Creates request options for showProduct without sending the request
273
274
  */
@@ -929,13 +929,15 @@ var ProductApi = /** @class */ (function (_super) {
929
929
  }
930
930
  queryParameters = {};
931
931
  headerParameters = {};
932
+ headerParameters['Content-Type'] = 'application/json';
932
933
  urlPath = "/admin-api/product/children/{productChild}/assets";
933
934
  urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
934
935
  return [2 /*return*/, {
935
936
  path: urlPath,
936
- method: 'GET',
937
+ method: 'POST',
937
938
  headers: headerParameters,
938
939
  query: queryParameters,
940
+ body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
939
941
  }];
940
942
  });
941
943
  });
@@ -954,7 +956,7 @@ var ProductApi = /** @class */ (function (_super) {
954
956
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
955
957
  case 2:
956
958
  response = _a.sent();
957
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AssetResourceArrayResponseFromJSON)(jsonValue); })];
959
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AssetWithOverlayLinkResourceArrayResponseFromJSON)(jsonValue); })];
958
960
  }
959
961
  });
960
962
  });
@@ -0,0 +1,93 @@
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 { OverlayTemplateLiteResource } from './OverlayTemplateLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssetWithOverlayLinkResource
17
+ */
18
+ export interface AssetWithOverlayLinkResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof AssetWithOverlayLinkResource
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AssetWithOverlayLinkResource
29
+ */
30
+ filePath: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AssetWithOverlayLinkResource
35
+ */
36
+ fileName: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AssetWithOverlayLinkResource
41
+ */
42
+ mimeType: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AssetWithOverlayLinkResource
47
+ */
48
+ altText: string;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof AssetWithOverlayLinkResource
53
+ */
54
+ index: number;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof AssetWithOverlayLinkResource
59
+ */
60
+ fileId?: string | null;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof AssetWithOverlayLinkResource
65
+ */
66
+ isThumbnail: boolean;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof AssetWithOverlayLinkResource
71
+ */
72
+ isLifestyle: boolean;
73
+ /**
74
+ *
75
+ * @type {Array<OverlayTemplateLiteResource>}
76
+ * @memberof AssetWithOverlayLinkResource
77
+ */
78
+ overlayTemplates: Array<OverlayTemplateLiteResource> | null;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof AssetWithOverlayLinkResource
83
+ */
84
+ isLinkedToOverlayTemplate: boolean;
85
+ }
86
+ /**
87
+ * Check if a given object implements the AssetWithOverlayLinkResource interface.
88
+ */
89
+ export declare function instanceOfAssetWithOverlayLinkResource(value: object): value is AssetWithOverlayLinkResource;
90
+ export declare function AssetWithOverlayLinkResourceFromJSON(json: any): AssetWithOverlayLinkResource;
91
+ export declare function AssetWithOverlayLinkResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetWithOverlayLinkResource;
92
+ export declare function AssetWithOverlayLinkResourceToJSON(json: any): AssetWithOverlayLinkResource;
93
+ export declare function AssetWithOverlayLinkResourceToJSONTyped(value?: AssetWithOverlayLinkResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
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.instanceOfAssetWithOverlayLinkResource = instanceOfAssetWithOverlayLinkResource;
17
+ exports.AssetWithOverlayLinkResourceFromJSON = AssetWithOverlayLinkResourceFromJSON;
18
+ exports.AssetWithOverlayLinkResourceFromJSONTyped = AssetWithOverlayLinkResourceFromJSONTyped;
19
+ exports.AssetWithOverlayLinkResourceToJSON = AssetWithOverlayLinkResourceToJSON;
20
+ exports.AssetWithOverlayLinkResourceToJSONTyped = AssetWithOverlayLinkResourceToJSONTyped;
21
+ var OverlayTemplateLiteResource_1 = require("./OverlayTemplateLiteResource");
22
+ /**
23
+ * Check if a given object implements the AssetWithOverlayLinkResource interface.
24
+ */
25
+ function instanceOfAssetWithOverlayLinkResource(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('filePath' in value) || value['filePath'] === undefined)
29
+ return false;
30
+ if (!('fileName' in value) || value['fileName'] === undefined)
31
+ return false;
32
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
33
+ return false;
34
+ if (!('altText' in value) || value['altText'] === undefined)
35
+ return false;
36
+ if (!('index' in value) || value['index'] === undefined)
37
+ return false;
38
+ if (!('isThumbnail' in value) || value['isThumbnail'] === undefined)
39
+ return false;
40
+ if (!('isLifestyle' in value) || value['isLifestyle'] === undefined)
41
+ return false;
42
+ if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined)
43
+ return false;
44
+ if (!('isLinkedToOverlayTemplate' in value) || value['isLinkedToOverlayTemplate'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function AssetWithOverlayLinkResourceFromJSON(json) {
49
+ return AssetWithOverlayLinkResourceFromJSONTyped(json, false);
50
+ }
51
+ function AssetWithOverlayLinkResourceFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'filePath': json['filePath'],
58
+ 'fileName': json['fileName'],
59
+ 'mimeType': json['mimeType'],
60
+ 'altText': json['altText'],
61
+ 'index': json['index'],
62
+ 'fileId': json['fileId'] == null ? undefined : json['fileId'],
63
+ 'isThumbnail': json['isThumbnail'],
64
+ 'isLifestyle': json['isLifestyle'],
65
+ 'overlayTemplates': (json['overlayTemplates'] == null ? null : json['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceFromJSON)),
66
+ 'isLinkedToOverlayTemplate': json['isLinkedToOverlayTemplate'],
67
+ };
68
+ }
69
+ function AssetWithOverlayLinkResourceToJSON(json) {
70
+ return AssetWithOverlayLinkResourceToJSONTyped(json, false);
71
+ }
72
+ function AssetWithOverlayLinkResourceToJSONTyped(value, ignoreDiscriminator) {
73
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'filePath': value['filePath'],
80
+ 'fileName': value['fileName'],
81
+ 'mimeType': value['mimeType'],
82
+ 'altText': value['altText'],
83
+ 'index': value['index'],
84
+ 'fileId': value['fileId'],
85
+ 'isThumbnail': value['isThumbnail'],
86
+ 'isLifestyle': value['isLifestyle'],
87
+ 'overlayTemplates': (value['overlayTemplates'] == null ? null : value['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceToJSON)),
88
+ 'isLinkedToOverlayTemplate': value['isLinkedToOverlayTemplate'],
89
+ };
90
+ }
@@ -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 { AssetWithOverlayLinkResource } from './AssetWithOverlayLinkResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssetWithOverlayLinkResourceArrayResponse
17
+ */
18
+ export interface AssetWithOverlayLinkResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AssetWithOverlayLinkResource>}
22
+ * @memberof AssetWithOverlayLinkResourceArrayResponse
23
+ */
24
+ data?: Array<AssetWithOverlayLinkResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AssetWithOverlayLinkResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfAssetWithOverlayLinkResourceArrayResponse(value: object): value is AssetWithOverlayLinkResourceArrayResponse;
30
+ export declare function AssetWithOverlayLinkResourceArrayResponseFromJSON(json: any): AssetWithOverlayLinkResourceArrayResponse;
31
+ export declare function AssetWithOverlayLinkResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetWithOverlayLinkResourceArrayResponse;
32
+ export declare function AssetWithOverlayLinkResourceArrayResponseToJSON(json: any): AssetWithOverlayLinkResourceArrayResponse;
33
+ export declare function AssetWithOverlayLinkResourceArrayResponseToJSONTyped(value?: AssetWithOverlayLinkResourceArrayResponse | 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.instanceOfAssetWithOverlayLinkResourceArrayResponse = instanceOfAssetWithOverlayLinkResourceArrayResponse;
17
+ exports.AssetWithOverlayLinkResourceArrayResponseFromJSON = AssetWithOverlayLinkResourceArrayResponseFromJSON;
18
+ exports.AssetWithOverlayLinkResourceArrayResponseFromJSONTyped = AssetWithOverlayLinkResourceArrayResponseFromJSONTyped;
19
+ exports.AssetWithOverlayLinkResourceArrayResponseToJSON = AssetWithOverlayLinkResourceArrayResponseToJSON;
20
+ exports.AssetWithOverlayLinkResourceArrayResponseToJSONTyped = AssetWithOverlayLinkResourceArrayResponseToJSONTyped;
21
+ var AssetWithOverlayLinkResource_1 = require("./AssetWithOverlayLinkResource");
22
+ /**
23
+ * Check if a given object implements the AssetWithOverlayLinkResourceArrayResponse interface.
24
+ */
25
+ function instanceOfAssetWithOverlayLinkResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function AssetWithOverlayLinkResourceArrayResponseFromJSON(json) {
29
+ return AssetWithOverlayLinkResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function AssetWithOverlayLinkResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(AssetWithOverlayLinkResource_1.AssetWithOverlayLinkResourceFromJSON)),
37
+ };
38
+ }
39
+ function AssetWithOverlayLinkResourceArrayResponseToJSON(json) {
40
+ return AssetWithOverlayLinkResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function AssetWithOverlayLinkResourceArrayResponseToJSONTyped(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(AssetWithOverlayLinkResource_1.AssetWithOverlayLinkResourceToJSON)),
49
+ };
50
+ }
@@ -21,6 +21,12 @@ export interface AttachAssetsOverlayTemplateRequest {
21
21
  * @memberof AttachAssetsOverlayTemplateRequest
22
22
  */
23
23
  assetIds: Array<number>;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof AttachAssetsOverlayTemplateRequest
28
+ */
29
+ syncAssets?: boolean;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the AttachAssetsOverlayTemplateRequest interface.
@@ -35,6 +35,7 @@ function AttachAssetsOverlayTemplateRequestFromJSONTyped(json, ignoreDiscriminat
35
35
  }
36
36
  return {
37
37
  'assetIds': json['asset_ids'],
38
+ 'syncAssets': json['sync_assets'] == null ? undefined : json['sync_assets'],
38
39
  };
39
40
  }
40
41
  function AttachAssetsOverlayTemplateRequestToJSON(json) {
@@ -47,5 +48,6 @@ function AttachAssetsOverlayTemplateRequestToJSONTyped(value, ignoreDiscriminato
47
48
  }
48
49
  return {
49
50
  'asset_ids': value['assetIds'],
51
+ 'sync_assets': value['syncAssets'],
50
52
  };
51
53
  }
@@ -0,0 +1,32 @@
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 ShowAssetsProductChildRequest
16
+ */
17
+ export interface ShowAssetsProductChildRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ShowAssetsProductChildRequest
22
+ */
23
+ overlayTemplateId?: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ShowAssetsProductChildRequest interface.
27
+ */
28
+ export declare function instanceOfShowAssetsProductChildRequest(value: object): value is ShowAssetsProductChildRequest;
29
+ export declare function ShowAssetsProductChildRequestFromJSON(json: any): ShowAssetsProductChildRequest;
30
+ export declare function ShowAssetsProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShowAssetsProductChildRequest;
31
+ export declare function ShowAssetsProductChildRequestToJSON(json: any): ShowAssetsProductChildRequest;
32
+ export declare function ShowAssetsProductChildRequestToJSONTyped(value?: ShowAssetsProductChildRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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.instanceOfShowAssetsProductChildRequest = instanceOfShowAssetsProductChildRequest;
17
+ exports.ShowAssetsProductChildRequestFromJSON = ShowAssetsProductChildRequestFromJSON;
18
+ exports.ShowAssetsProductChildRequestFromJSONTyped = ShowAssetsProductChildRequestFromJSONTyped;
19
+ exports.ShowAssetsProductChildRequestToJSON = ShowAssetsProductChildRequestToJSON;
20
+ exports.ShowAssetsProductChildRequestToJSONTyped = ShowAssetsProductChildRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ShowAssetsProductChildRequest interface.
23
+ */
24
+ function instanceOfShowAssetsProductChildRequest(value) {
25
+ return true;
26
+ }
27
+ function ShowAssetsProductChildRequestFromJSON(json) {
28
+ return ShowAssetsProductChildRequestFromJSONTyped(json, false);
29
+ }
30
+ function ShowAssetsProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'overlayTemplateId': json['overlay_template_id'] == null ? undefined : json['overlay_template_id'],
36
+ };
37
+ }
38
+ function ShowAssetsProductChildRequestToJSON(json) {
39
+ return ShowAssetsProductChildRequestToJSONTyped(json, false);
40
+ }
41
+ function ShowAssetsProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'overlay_template_id': value['overlayTemplateId'],
48
+ };
49
+ }
@@ -6,6 +6,8 @@ export * from './AssetLiteResource';
6
6
  export * from './AssetLiteResourceArrayResponse';
7
7
  export * from './AssetResource';
8
8
  export * from './AssetResourceArrayResponse';
9
+ export * from './AssetWithOverlayLinkResource';
10
+ export * from './AssetWithOverlayLinkResourceArrayResponse';
9
11
  export * from './AttachAccessoriesProductChildRequest';
10
12
  export * from './AttachAssetsOverlayTemplateRequest';
11
13
  export * from './AttachAttributeProductTypeRequest';
@@ -211,6 +213,7 @@ export * from './ProductTypeResource';
211
213
  export * from './ProductTypeResourceArrayResponse';
212
214
  export * from './SEOResource';
213
215
  export * from './SEOResourceArrayResponse';
216
+ export * from './ShowAssetsProductChildRequest';
214
217
  export * from './SiteConfigResource';
215
218
  export * from './SiteConfigResourceArrayResponse';
216
219
  export * from './SiteListResource';
@@ -24,6 +24,8 @@ __exportStar(require("./AssetLiteResource"), exports);
24
24
  __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
25
25
  __exportStar(require("./AssetResource"), exports);
26
26
  __exportStar(require("./AssetResourceArrayResponse"), exports);
27
+ __exportStar(require("./AssetWithOverlayLinkResource"), exports);
28
+ __exportStar(require("./AssetWithOverlayLinkResourceArrayResponse"), exports);
27
29
  __exportStar(require("./AttachAccessoriesProductChildRequest"), exports);
28
30
  __exportStar(require("./AttachAssetsOverlayTemplateRequest"), exports);
29
31
  __exportStar(require("./AttachAttributeProductTypeRequest"), exports);
@@ -229,6 +231,7 @@ __exportStar(require("./ProductTypeResource"), exports);
229
231
  __exportStar(require("./ProductTypeResourceArrayResponse"), exports);
230
232
  __exportStar(require("./SEOResource"), exports);
231
233
  __exportStar(require("./SEOResourceArrayResponse"), exports);
234
+ __exportStar(require("./ShowAssetsProductChildRequest"), exports);
232
235
  __exportStar(require("./SiteConfigResource"), exports);
233
236
  __exportStar(require("./SiteConfigResourceArrayResponse"), exports);
234
237
  __exportStar(require("./SiteListResource"), exports);
@@ -0,0 +1,54 @@
1
+
2
+ # AssetWithOverlayLinkResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `filePath` | string
11
+ `fileName` | string
12
+ `mimeType` | string
13
+ `altText` | string
14
+ `index` | number
15
+ `fileId` | string
16
+ `isThumbnail` | boolean
17
+ `isLifestyle` | boolean
18
+ `overlayTemplates` | [Array&lt;OverlayTemplateLiteResource&gt;](OverlayTemplateLiteResource.md)
19
+ `isLinkedToOverlayTemplate` | boolean
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { AssetWithOverlayLinkResource } from '@digital8/lighting-illusions-ts-sdk'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "id": null,
29
+ "filePath": null,
30
+ "fileName": null,
31
+ "mimeType": null,
32
+ "altText": null,
33
+ "index": null,
34
+ "fileId": null,
35
+ "isThumbnail": null,
36
+ "isLifestyle": null,
37
+ "overlayTemplates": null,
38
+ "isLinkedToOverlayTemplate": null,
39
+ } satisfies AssetWithOverlayLinkResource
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as AssetWithOverlayLinkResource
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,34 @@
1
+
2
+ # AssetWithOverlayLinkResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;AssetWithOverlayLinkResource&gt;](AssetWithOverlayLinkResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { AssetWithOverlayLinkResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies AssetWithOverlayLinkResourceArrayResponse
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 AssetWithOverlayLinkResourceArrayResponse
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
+
@@ -7,6 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `assetIds` | Array&lt;number&gt;
10
+ `syncAssets` | boolean
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import type { AttachAssetsOverlayTemplateRequest } from '@digital8/lighting-illu
16
17
  // TODO: Update the object below with actual values
17
18
  const example = {
18
19
  "assetIds": null,
20
+ "syncAssets": null,
19
21
  } satisfies AttachAssetsOverlayTemplateRequest
20
22
 
21
23
  console.log(example)
@@ -18,7 +18,7 @@ All URIs are relative to *http://localhost/api*
18
18
  | [**getCompatibleProductsProductChild**](ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild |
19
19
  | [**indexProduct**](ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct |
20
20
  | [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
21
- | [**showAssetsProductChild**](ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
21
+ | [**showAssetsProductChild**](ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
22
22
  | [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
23
23
  | [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
24
24
  | [**storeProduct**](ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct |
@@ -964,7 +964,7 @@ No authorization required
964
964
 
965
965
  ## showAssetsProductChild
966
966
 
967
- > AssetResourceArrayResponse showAssetsProductChild(productChild)
967
+ > AssetWithOverlayLinkResourceArrayResponse showAssetsProductChild(productChild, showAssetsProductChildRequest)
968
968
 
969
969
  Auto-generated: showAssetsProductChild
970
970
 
@@ -975,7 +975,7 @@ import {
975
975
  Configuration,
976
976
  ProductApi,
977
977
  } from '@digital8/lighting-illusions-ts-sdk';
978
- import type { ShowAssetsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk';
978
+ import type { ShowAssetsProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
979
979
 
980
980
  async function example() {
981
981
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
@@ -984,7 +984,9 @@ async function example() {
984
984
  const body = {
985
985
  // number | The id of the productChild
986
986
  productChild: 56,
987
- } satisfies ShowAssetsProductChildRequest;
987
+ // ShowAssetsProductChildRequest (optional)
988
+ showAssetsProductChildRequest: ...,
989
+ } satisfies ShowAssetsProductChildOperationRequest;
988
990
 
989
991
  try {
990
992
  const data = await api.showAssetsProductChild(body);
@@ -1004,10 +1006,11 @@ example().catch(console.error);
1004
1006
  | Name | Type | Description | Notes |
1005
1007
  |------------- | ------------- | ------------- | -------------|
1006
1008
  | **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
1009
+ | **showAssetsProductChildRequest** | [ShowAssetsProductChildRequest](ShowAssetsProductChildRequest.md) | | [Optional] |
1007
1010
 
1008
1011
  ### Return type
1009
1012
 
1010
- [**AssetResourceArrayResponse**](AssetResourceArrayResponse.md)
1013
+ [**AssetWithOverlayLinkResourceArrayResponse**](AssetWithOverlayLinkResourceArrayResponse.md)
1011
1014
 
1012
1015
  ### Authorization
1013
1016
 
@@ -1015,7 +1018,7 @@ No authorization required
1015
1018
 
1016
1019
  ### HTTP request headers
1017
1020
 
1018
- - **Content-Type**: Not defined
1021
+ - **Content-Type**: `application/json`
1019
1022
  - **Accept**: `application/json`
1020
1023
 
1021
1024
 
@@ -0,0 +1,34 @@
1
+
2
+ # ShowAssetsProductChildRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `overlayTemplateId` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ShowAssetsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "overlayTemplateId": null,
19
+ } satisfies ShowAssetsProductChildRequest
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 ShowAssetsProductChildRequest
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.1084",
3
+ "version": "0.0.1086",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- AssetResourceArrayResponse,
18
+ AssetWithOverlayLinkResourceArrayResponse,
19
19
  AttachAccessoriesProductChildRequest,
20
20
  AttachDocumentsProductChildRequest,
21
21
  DetachDocumentsProductChildRequest,
@@ -30,14 +30,15 @@ import type {
30
30
  ProductChildResource,
31
31
  ProductLiteResourceArrayResponse,
32
32
  ProductResource,
33
+ ShowAssetsProductChildRequest,
33
34
  StoreProductChildRequest,
34
35
  StoreProductRequest,
35
36
  UpdateProductChildRequest,
36
37
  UpdateProductRequest,
37
38
  } from '../models/index';
38
39
  import {
39
- AssetResourceArrayResponseFromJSON,
40
- AssetResourceArrayResponseToJSON,
40
+ AssetWithOverlayLinkResourceArrayResponseFromJSON,
41
+ AssetWithOverlayLinkResourceArrayResponseToJSON,
41
42
  AttachAccessoriesProductChildRequestFromJSON,
42
43
  AttachAccessoriesProductChildRequestToJSON,
43
44
  AttachDocumentsProductChildRequestFromJSON,
@@ -66,6 +67,8 @@ import {
66
67
  ProductLiteResourceArrayResponseToJSON,
67
68
  ProductResourceFromJSON,
68
69
  ProductResourceToJSON,
70
+ ShowAssetsProductChildRequestFromJSON,
71
+ ShowAssetsProductChildRequestToJSON,
69
72
  StoreProductChildRequestFromJSON,
70
73
  StoreProductChildRequestToJSON,
71
74
  StoreProductRequestFromJSON,
@@ -140,8 +143,9 @@ export interface IndexProductChildOperationRequest {
140
143
  indexProductChildRequest?: IndexProductChildRequest;
141
144
  }
142
145
 
143
- export interface ShowAssetsProductChildRequest {
146
+ export interface ShowAssetsProductChildOperationRequest {
144
147
  productChild: number;
148
+ showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
145
149
  }
146
150
 
147
151
  export interface ShowProductRequest {
@@ -822,7 +826,7 @@ export class ProductApi extends runtime.BaseAPI {
822
826
  /**
823
827
  * Creates request options for showAssetsProductChild without sending the request
824
828
  */
825
- async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts> {
829
+ async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildOperationRequest): Promise<runtime.RequestOpts> {
826
830
  if (requestParameters['productChild'] == null) {
827
831
  throw new runtime.RequiredError(
828
832
  'productChild',
@@ -834,32 +838,35 @@ export class ProductApi extends runtime.BaseAPI {
834
838
 
835
839
  const headerParameters: runtime.HTTPHeaders = {};
836
840
 
841
+ headerParameters['Content-Type'] = 'application/json';
842
+
837
843
 
838
844
  let urlPath = `/admin-api/product/children/{productChild}/assets`;
839
845
  urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
840
846
 
841
847
  return {
842
848
  path: urlPath,
843
- method: 'GET',
849
+ method: 'POST',
844
850
  headers: headerParameters,
845
851
  query: queryParameters,
852
+ body: ShowAssetsProductChildRequestToJSON(requestParameters['showAssetsProductChildRequest']),
846
853
  };
847
854
  }
848
855
 
849
856
  /**
850
857
  * Auto-generated: showAssetsProductChild
851
858
  */
852
- async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>> {
859
+ async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>> {
853
860
  const requestOptions = await this.showAssetsProductChildRequestOpts(requestParameters);
854
861
  const response = await this.request(requestOptions, initOverrides);
855
862
 
856
- return new runtime.JSONApiResponse(response, (jsonValue) => AssetResourceArrayResponseFromJSON(jsonValue));
863
+ return new runtime.JSONApiResponse(response, (jsonValue) => AssetWithOverlayLinkResourceArrayResponseFromJSON(jsonValue));
857
864
  }
858
865
 
859
866
  /**
860
867
  * Auto-generated: showAssetsProductChild
861
868
  */
862
- async showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResourceArrayResponse> {
869
+ async showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse> {
863
870
  const response = await this.showAssetsProductChildRaw(requestParameters, initOverrides);
864
871
  return await response.value();
865
872
  }
@@ -0,0 +1,163 @@
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 { OverlayTemplateLiteResource } from './OverlayTemplateLiteResource';
17
+ import {
18
+ OverlayTemplateLiteResourceFromJSON,
19
+ OverlayTemplateLiteResourceFromJSONTyped,
20
+ OverlayTemplateLiteResourceToJSON,
21
+ OverlayTemplateLiteResourceToJSONTyped,
22
+ } from './OverlayTemplateLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssetWithOverlayLinkResource
28
+ */
29
+ export interface AssetWithOverlayLinkResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AssetWithOverlayLinkResource
34
+ */
35
+ id: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AssetWithOverlayLinkResource
40
+ */
41
+ filePath: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AssetWithOverlayLinkResource
46
+ */
47
+ fileName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AssetWithOverlayLinkResource
52
+ */
53
+ mimeType: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AssetWithOverlayLinkResource
58
+ */
59
+ altText: string;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof AssetWithOverlayLinkResource
64
+ */
65
+ index: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof AssetWithOverlayLinkResource
70
+ */
71
+ fileId?: string | null;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof AssetWithOverlayLinkResource
76
+ */
77
+ isThumbnail: boolean;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof AssetWithOverlayLinkResource
82
+ */
83
+ isLifestyle: boolean;
84
+ /**
85
+ *
86
+ * @type {Array<OverlayTemplateLiteResource>}
87
+ * @memberof AssetWithOverlayLinkResource
88
+ */
89
+ overlayTemplates: Array<OverlayTemplateLiteResource> | null;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof AssetWithOverlayLinkResource
94
+ */
95
+ isLinkedToOverlayTemplate: boolean;
96
+ }
97
+
98
+ /**
99
+ * Check if a given object implements the AssetWithOverlayLinkResource interface.
100
+ */
101
+ export function instanceOfAssetWithOverlayLinkResource(value: object): value is AssetWithOverlayLinkResource {
102
+ if (!('id' in value) || value['id'] === undefined) return false;
103
+ if (!('filePath' in value) || value['filePath'] === undefined) return false;
104
+ if (!('fileName' in value) || value['fileName'] === undefined) return false;
105
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
106
+ if (!('altText' in value) || value['altText'] === undefined) return false;
107
+ if (!('index' in value) || value['index'] === undefined) return false;
108
+ if (!('isThumbnail' in value) || value['isThumbnail'] === undefined) return false;
109
+ if (!('isLifestyle' in value) || value['isLifestyle'] === undefined) return false;
110
+ if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined) return false;
111
+ if (!('isLinkedToOverlayTemplate' in value) || value['isLinkedToOverlayTemplate'] === undefined) return false;
112
+ return true;
113
+ }
114
+
115
+ export function AssetWithOverlayLinkResourceFromJSON(json: any): AssetWithOverlayLinkResource {
116
+ return AssetWithOverlayLinkResourceFromJSONTyped(json, false);
117
+ }
118
+
119
+ export function AssetWithOverlayLinkResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetWithOverlayLinkResource {
120
+ if (json == null) {
121
+ return json;
122
+ }
123
+ return {
124
+
125
+ 'id': json['id'],
126
+ 'filePath': json['filePath'],
127
+ 'fileName': json['fileName'],
128
+ 'mimeType': json['mimeType'],
129
+ 'altText': json['altText'],
130
+ 'index': json['index'],
131
+ 'fileId': json['fileId'] == null ? undefined : json['fileId'],
132
+ 'isThumbnail': json['isThumbnail'],
133
+ 'isLifestyle': json['isLifestyle'],
134
+ 'overlayTemplates': (json['overlayTemplates'] == null ? null : (json['overlayTemplates'] as Array<any>).map(OverlayTemplateLiteResourceFromJSON)),
135
+ 'isLinkedToOverlayTemplate': json['isLinkedToOverlayTemplate'],
136
+ };
137
+ }
138
+
139
+ export function AssetWithOverlayLinkResourceToJSON(json: any): AssetWithOverlayLinkResource {
140
+ return AssetWithOverlayLinkResourceToJSONTyped(json, false);
141
+ }
142
+
143
+ export function AssetWithOverlayLinkResourceToJSONTyped(value?: AssetWithOverlayLinkResource | null, ignoreDiscriminator: boolean = false): any {
144
+ if (value == null) {
145
+ return value;
146
+ }
147
+
148
+ return {
149
+
150
+ 'id': value['id'],
151
+ 'filePath': value['filePath'],
152
+ 'fileName': value['fileName'],
153
+ 'mimeType': value['mimeType'],
154
+ 'altText': value['altText'],
155
+ 'index': value['index'],
156
+ 'fileId': value['fileId'],
157
+ 'isThumbnail': value['isThumbnail'],
158
+ 'isLifestyle': value['isLifestyle'],
159
+ 'overlayTemplates': (value['overlayTemplates'] == null ? null : (value['overlayTemplates'] as Array<any>).map(OverlayTemplateLiteResourceToJSON)),
160
+ 'isLinkedToOverlayTemplate': value['isLinkedToOverlayTemplate'],
161
+ };
162
+ }
163
+
@@ -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 { AssetWithOverlayLinkResource } from './AssetWithOverlayLinkResource';
17
+ import {
18
+ AssetWithOverlayLinkResourceFromJSON,
19
+ AssetWithOverlayLinkResourceFromJSONTyped,
20
+ AssetWithOverlayLinkResourceToJSON,
21
+ AssetWithOverlayLinkResourceToJSONTyped,
22
+ } from './AssetWithOverlayLinkResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssetWithOverlayLinkResourceArrayResponse
28
+ */
29
+ export interface AssetWithOverlayLinkResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<AssetWithOverlayLinkResource>}
33
+ * @memberof AssetWithOverlayLinkResourceArrayResponse
34
+ */
35
+ data?: Array<AssetWithOverlayLinkResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AssetWithOverlayLinkResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfAssetWithOverlayLinkResourceArrayResponse(value: object): value is AssetWithOverlayLinkResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function AssetWithOverlayLinkResourceArrayResponseFromJSON(json: any): AssetWithOverlayLinkResourceArrayResponse {
46
+ return AssetWithOverlayLinkResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AssetWithOverlayLinkResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetWithOverlayLinkResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetWithOverlayLinkResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AssetWithOverlayLinkResourceArrayResponseToJSON(json: any): AssetWithOverlayLinkResourceArrayResponse {
60
+ return AssetWithOverlayLinkResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AssetWithOverlayLinkResourceArrayResponseToJSONTyped(value?: AssetWithOverlayLinkResourceArrayResponse | 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(AssetWithOverlayLinkResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -25,6 +25,12 @@ export interface AttachAssetsOverlayTemplateRequest {
25
25
  * @memberof AttachAssetsOverlayTemplateRequest
26
26
  */
27
27
  assetIds: Array<number>;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof AttachAssetsOverlayTemplateRequest
32
+ */
33
+ syncAssets?: boolean;
28
34
  }
29
35
 
30
36
  /**
@@ -46,6 +52,7 @@ export function AttachAssetsOverlayTemplateRequestFromJSONTyped(json: any, ignor
46
52
  return {
47
53
 
48
54
  'assetIds': json['asset_ids'],
55
+ 'syncAssets': json['sync_assets'] == null ? undefined : json['sync_assets'],
49
56
  };
50
57
  }
51
58
 
@@ -61,6 +68,7 @@ export function AttachAssetsOverlayTemplateRequestToJSONTyped(value?: AttachAsse
61
68
  return {
62
69
 
63
70
  'asset_ids': value['assetIds'],
71
+ 'sync_assets': value['syncAssets'],
64
72
  };
65
73
  }
66
74
 
@@ -0,0 +1,65 @@
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 ShowAssetsProductChildRequest
20
+ */
21
+ export interface ShowAssetsProductChildRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ShowAssetsProductChildRequest
26
+ */
27
+ overlayTemplateId?: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ShowAssetsProductChildRequest interface.
32
+ */
33
+ export function instanceOfShowAssetsProductChildRequest(value: object): value is ShowAssetsProductChildRequest {
34
+ return true;
35
+ }
36
+
37
+ export function ShowAssetsProductChildRequestFromJSON(json: any): ShowAssetsProductChildRequest {
38
+ return ShowAssetsProductChildRequestFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ShowAssetsProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShowAssetsProductChildRequest {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'overlayTemplateId': json['overlay_template_id'] == null ? undefined : json['overlay_template_id'],
48
+ };
49
+ }
50
+
51
+ export function ShowAssetsProductChildRequestToJSON(json: any): ShowAssetsProductChildRequest {
52
+ return ShowAssetsProductChildRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ShowAssetsProductChildRequestToJSONTyped(value?: ShowAssetsProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'overlay_template_id': value['overlayTemplateId'],
63
+ };
64
+ }
65
+
@@ -8,6 +8,8 @@ export * from './AssetLiteResource';
8
8
  export * from './AssetLiteResourceArrayResponse';
9
9
  export * from './AssetResource';
10
10
  export * from './AssetResourceArrayResponse';
11
+ export * from './AssetWithOverlayLinkResource';
12
+ export * from './AssetWithOverlayLinkResourceArrayResponse';
11
13
  export * from './AttachAccessoriesProductChildRequest';
12
14
  export * from './AttachAssetsOverlayTemplateRequest';
13
15
  export * from './AttachAttributeProductTypeRequest';
@@ -213,6 +215,7 @@ export * from './ProductTypeResource';
213
215
  export * from './ProductTypeResourceArrayResponse';
214
216
  export * from './SEOResource';
215
217
  export * from './SEOResourceArrayResponse';
218
+ export * from './ShowAssetsProductChildRequest';
216
219
  export * from './SiteConfigResource';
217
220
  export * from './SiteConfigResourceArrayResponse';
218
221
  export * from './SiteListResource';