@digital8/lighting-illusions-ts-sdk 0.0.1091 → 0.0.1093
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.
- package/.openapi-generator/FILES +6 -2
- package/README.md +6 -4
- package/dist/apis/ProductApi.d.ts +6 -5
- package/dist/apis/ProductApi.js +4 -2
- package/dist/models/AssetWithOverlayLinkResource.d.ts +93 -0
- package/dist/models/AssetWithOverlayLinkResource.js +90 -0
- package/dist/models/AssetWithOverlayLinkResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetWithOverlayLinkResourceArrayResponse.js +50 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +6 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +2 -0
- package/dist/models/ProductChildResource.d.ts +0 -6
- package/dist/models/ProductChildResource.js +0 -4
- package/dist/models/ShowAssetsProductChildRequest.d.ts +32 -0
- package/dist/models/ShowAssetsProductChildRequest.js +49 -0
- package/dist/models/StoreProductChildRequest.d.ts +2 -2
- package/dist/models/StoreProductChildRequest.js +6 -2
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +2 -2
- package/dist/models/StoreProductChildRequestSitesInner.js +6 -2
- package/dist/models/UpdateProductChildRequest.d.ts +5 -5
- package/dist/models/UpdateProductChildRequest.js +9 -5
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/docs/AssetWithOverlayLinkResource.md +54 -0
- package/docs/AssetWithOverlayLinkResourceArrayResponse.md +34 -0
- package/docs/AttachAssetsOverlayTemplateRequest.md +2 -0
- package/docs/ProductApi.md +9 -6
- package/docs/ProductChildResource.md +0 -2
- package/docs/ShowAssetsProductChildRequest.md +34 -0
- package/docs/UpdateProductChildRequest.md +1 -1
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +16 -9
- package/src/models/AssetWithOverlayLinkResource.ts +163 -0
- package/src/models/AssetWithOverlayLinkResourceArrayResponse.ts +73 -0
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +8 -0
- package/src/models/ProductChildResource.ts +0 -9
- package/src/models/ShowAssetsProductChildRequest.ts +65 -0
- package/src/models/StoreProductChildRequest.ts +6 -4
- package/src/models/StoreProductChildRequestSitesInner.ts +6 -4
- package/src/models/UpdateProductChildRequest.ts +16 -14
- package/src/models/index.ts +3 -1
- package/dist/models/UpdateProductChildRequestSitesInner.d.ts +0 -104
- package/dist/models/UpdateProductChildRequestSitesInner.js +0 -93
- package/docs/UpdateProductChildRequestSitesInner.md +0 -58
- package/src/models/UpdateProductChildRequestSitesInner.ts +0 -171
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -295,7 +298,6 @@ docs/UpdateOverlayTemplateRequest.md
|
|
|
295
298
|
docs/UpdateProductCategoryRequest.md
|
|
296
299
|
docs/UpdateProductChildRequest.md
|
|
297
300
|
docs/UpdateProductChildRequestAssetsInner.md
|
|
298
|
-
docs/UpdateProductChildRequestSitesInner.md
|
|
299
301
|
docs/UpdateProductRequest.md
|
|
300
302
|
docs/UpdateProductTypeRequest.md
|
|
301
303
|
docs/UpdateProductTypeRequestPerformanceValuesInner.md
|
|
@@ -331,6 +333,8 @@ src/models/AssetLiteResource.ts
|
|
|
331
333
|
src/models/AssetLiteResourceArrayResponse.ts
|
|
332
334
|
src/models/AssetResource.ts
|
|
333
335
|
src/models/AssetResourceArrayResponse.ts
|
|
336
|
+
src/models/AssetWithOverlayLinkResource.ts
|
|
337
|
+
src/models/AssetWithOverlayLinkResourceArrayResponse.ts
|
|
334
338
|
src/models/AttachAccessoriesProductChildRequest.ts
|
|
335
339
|
src/models/AttachAssetsOverlayTemplateRequest.ts
|
|
336
340
|
src/models/AttachAttributeProductTypeRequest.ts
|
|
@@ -536,6 +540,7 @@ src/models/ProductTypeResource.ts
|
|
|
536
540
|
src/models/ProductTypeResourceArrayResponse.ts
|
|
537
541
|
src/models/SEOResource.ts
|
|
538
542
|
src/models/SEOResourceArrayResponse.ts
|
|
543
|
+
src/models/ShowAssetsProductChildRequest.ts
|
|
539
544
|
src/models/SiteConfigResource.ts
|
|
540
545
|
src/models/SiteConfigResourceArrayResponse.ts
|
|
541
546
|
src/models/SiteListResource.ts
|
|
@@ -603,7 +608,6 @@ src/models/UpdateOverlayTemplateRequest.ts
|
|
|
603
608
|
src/models/UpdateProductCategoryRequest.ts
|
|
604
609
|
src/models/UpdateProductChildRequest.ts
|
|
605
610
|
src/models/UpdateProductChildRequestAssetsInner.ts
|
|
606
|
-
src/models/UpdateProductChildRequestSitesInner.ts
|
|
607
611
|
src/models/UpdateProductRequest.ts
|
|
608
612
|
src/models/UpdateProductTypeRequest.ts
|
|
609
613
|
src/models/UpdateProductTypeRequestPerformanceValuesInner.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1093
|
|
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#
|
|
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)
|
|
@@ -450,7 +453,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
450
453
|
- [UpdateProductCategoryRequest](docs/UpdateProductCategoryRequest.md)
|
|
451
454
|
- [UpdateProductChildRequest](docs/UpdateProductChildRequest.md)
|
|
452
455
|
- [UpdateProductChildRequestAssetsInner](docs/UpdateProductChildRequestAssetsInner.md)
|
|
453
|
-
- [UpdateProductChildRequestSitesInner](docs/UpdateProductChildRequestSitesInner.md)
|
|
454
456
|
- [UpdateProductRequest](docs/UpdateProductRequest.md)
|
|
455
457
|
- [UpdateProductTypeRequest](docs/UpdateProductTypeRequest.md)
|
|
456
458
|
- [UpdateProductTypeRequestPerformanceValuesInner](docs/UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
@@ -475,7 +477,7 @@ and is automatically generated by the
|
|
|
475
477
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
476
478
|
|
|
477
479
|
- API version: `1.0.0`
|
|
478
|
-
- Package version: `0.0.
|
|
480
|
+
- Package version: `0.0.1093`
|
|
479
481
|
- Generator version: `7.20.0`
|
|
480
482
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
481
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 {
|
|
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
|
|
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:
|
|
263
|
+
showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildOperationRequest): Promise<runtime.RequestOpts>;
|
|
263
264
|
/**
|
|
264
265
|
* Auto-generated: showAssetsProductChild
|
|
265
266
|
*/
|
|
266
|
-
showAssetsProductChildRaw(requestParameters:
|
|
267
|
+
showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>>;
|
|
267
268
|
/**
|
|
268
269
|
* Auto-generated: showAssetsProductChild
|
|
269
270
|
*/
|
|
270
|
-
showAssetsProductChild(requestParameters:
|
|
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
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -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: '
|
|
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.
|
|
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
|
}
|
|
@@ -198,12 +198,6 @@ export interface ProductChildResource {
|
|
|
198
198
|
* @memberof ProductChildResource
|
|
199
199
|
*/
|
|
200
200
|
productClassString: string;
|
|
201
|
-
/**
|
|
202
|
-
*
|
|
203
|
-
* @type {boolean}
|
|
204
|
-
* @memberof ProductChildResource
|
|
205
|
-
*/
|
|
206
|
-
isPrivilegedAdmin: boolean;
|
|
207
201
|
}
|
|
208
202
|
/**
|
|
209
203
|
* Check if a given object implements the ProductChildResource interface.
|
|
@@ -79,8 +79,6 @@ function instanceOfProductChildResource(value) {
|
|
|
79
79
|
return false;
|
|
80
80
|
if (!('productClassString' in value) || value['productClassString'] === undefined)
|
|
81
81
|
return false;
|
|
82
|
-
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
|
|
83
|
-
return false;
|
|
84
82
|
return true;
|
|
85
83
|
}
|
|
86
84
|
function ProductChildResourceFromJSON(json) {
|
|
@@ -121,7 +119,6 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
121
119
|
'attributes': json['attributes'],
|
|
122
120
|
'productClasses': (json['productClasses'] == null ? null : json['productClasses'].map(ProductClassResource_1.ProductClassResourceFromJSON)),
|
|
123
121
|
'productClassString': json['productClassString'],
|
|
124
|
-
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
125
122
|
};
|
|
126
123
|
}
|
|
127
124
|
function ProductChildResourceToJSON(json) {
|
|
@@ -163,6 +160,5 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
163
160
|
'attributes': value['attributes'],
|
|
164
161
|
'productClasses': (value['productClasses'] == null ? null : value['productClasses'].map(ProductClassResource_1.ProductClassResourceToJSON)),
|
|
165
162
|
'productClassString': value['productClassString'],
|
|
166
|
-
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
167
163
|
};
|
|
168
164
|
}
|
|
@@ -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
|
+
}
|
|
@@ -35,13 +35,13 @@ export interface StoreProductChildRequest {
|
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof StoreProductChildRequest
|
|
37
37
|
*/
|
|
38
|
-
sku
|
|
38
|
+
sku: string;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof StoreProductChildRequest
|
|
43
43
|
*/
|
|
44
|
-
model
|
|
44
|
+
model: string;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {Date}
|
|
@@ -29,6 +29,10 @@ function instanceOfStoreProductChildRequest(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
35
|
+
return false;
|
|
32
36
|
if (!('isWarrantyOverridden' in value) || value['isWarrantyOverridden'] === undefined)
|
|
33
37
|
return false;
|
|
34
38
|
if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined)
|
|
@@ -57,8 +61,8 @@ function StoreProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
61
|
return {
|
|
58
62
|
'productId': json['product_id'],
|
|
59
63
|
'name': json['name'],
|
|
60
|
-
'sku': json['sku']
|
|
61
|
-
'model': json['model']
|
|
64
|
+
'sku': json['sku'],
|
|
65
|
+
'model': json['model'],
|
|
62
66
|
'newArrivalStartDate': json['new_arrival_start_date'] == null ? undefined : (new Date(json['new_arrival_start_date'])),
|
|
63
67
|
'newArrivalEndDate': json['new_arrival_end_date'] == null ? undefined : (new Date(json['new_arrival_end_date'])),
|
|
64
68
|
'warranty': json['warranty'] == null ? undefined : json['warranty'],
|
|
@@ -56,13 +56,13 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof StoreProductChildRequestSitesInner
|
|
58
58
|
*/
|
|
59
|
-
rrpPrice
|
|
59
|
+
rrpPrice: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
63
|
* @memberof StoreProductChildRequestSitesInner
|
|
64
64
|
*/
|
|
65
|
-
salePrice
|
|
65
|
+
salePrice: number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|