@digital8/lighting-illusions-ts-sdk 0.0.1082 → 0.0.1084
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 +0 -2
- package/README.md +3 -4
- package/dist/apis/ProductApi.d.ts +5 -6
- package/dist/apis/ProductApi.js +1 -3
- package/dist/models/AssetResource.d.ts +0 -6
- package/dist/models/AssetResource.js +0 -4
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +0 -6
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +0 -2
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/AssetResource.md +0 -2
- package/docs/AttachAssetsOverlayTemplateRequest.md +0 -2
- package/docs/ProductApi.md +5 -8
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +5 -12
- package/src/models/AssetResource.ts +0 -9
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +0 -8
- package/src/models/index.ts +0 -1
- package/dist/models/ShowAssetsProductChildRequest.d.ts +0 -32
- package/dist/models/ShowAssetsProductChildRequest.js +0 -49
- package/docs/ShowAssetsProductChildRequest.md +0 -34
- package/src/models/ShowAssetsProductChildRequest.ts +0 -65
package/.openapi-generator/FILES
CHANGED
|
@@ -225,7 +225,6 @@ docs/ProductTypeResource.md
|
|
|
225
225
|
docs/ProductTypeResourceArrayResponse.md
|
|
226
226
|
docs/SEOResource.md
|
|
227
227
|
docs/SEOResourceArrayResponse.md
|
|
228
|
-
docs/ShowAssetsProductChildRequest.md
|
|
229
228
|
docs/SiteApi.md
|
|
230
229
|
docs/SiteConfigResource.md
|
|
231
230
|
docs/SiteConfigResourceArrayResponse.md
|
|
@@ -536,7 +535,6 @@ src/models/ProductTypeResource.ts
|
|
|
536
535
|
src/models/ProductTypeResourceArrayResponse.ts
|
|
537
536
|
src/models/SEOResource.ts
|
|
538
537
|
src/models/SEOResourceArrayResponse.ts
|
|
539
|
-
src/models/ShowAssetsProductChildRequest.ts
|
|
540
538
|
src/models/SiteConfigResource.ts
|
|
541
539
|
src/models/SiteConfigResourceArrayResponse.ts
|
|
542
540
|
src/models/SiteListResource.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.1084
|
|
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#showassetsproductchild) | **GET** /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
|
|
@@ -383,7 +383,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
383
383
|
- [ProductTypeResourceArrayResponse](docs/ProductTypeResourceArrayResponse.md)
|
|
384
384
|
- [SEOResource](docs/SEOResource.md)
|
|
385
385
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
386
|
-
- [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
|
|
387
386
|
- [SiteConfigResource](docs/SiteConfigResource.md)
|
|
388
387
|
- [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
|
|
389
388
|
- [SiteListResource](docs/SiteListResource.md)
|
|
@@ -475,7 +474,7 @@ and is automatically generated by the
|
|
|
475
474
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
476
475
|
|
|
477
476
|
- API version: `1.0.0`
|
|
478
|
-
- Package version: `0.0.
|
|
477
|
+
- Package version: `0.0.1084`
|
|
479
478
|
- Generator version: `7.20.0`
|
|
480
479
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
481
480
|
|
|
@@ -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,
|
|
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';
|
|
14
14
|
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
15
|
productChild: number;
|
|
16
16
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
@@ -61,9 +61,8 @@ export interface IndexProductOperationRequest {
|
|
|
61
61
|
export interface IndexProductChildOperationRequest {
|
|
62
62
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
63
63
|
}
|
|
64
|
-
export interface
|
|
64
|
+
export interface ShowAssetsProductChildRequest {
|
|
65
65
|
productChild: number;
|
|
66
|
-
showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
|
|
67
66
|
}
|
|
68
67
|
export interface ShowProductRequest {
|
|
69
68
|
product: number;
|
|
@@ -260,15 +259,15 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
260
259
|
/**
|
|
261
260
|
* Creates request options for showAssetsProductChild without sending the request
|
|
262
261
|
*/
|
|
263
|
-
showAssetsProductChildRequestOpts(requestParameters:
|
|
262
|
+
showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts>;
|
|
264
263
|
/**
|
|
265
264
|
* Auto-generated: showAssetsProductChild
|
|
266
265
|
*/
|
|
267
|
-
showAssetsProductChildRaw(requestParameters:
|
|
266
|
+
showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>>;
|
|
268
267
|
/**
|
|
269
268
|
* Auto-generated: showAssetsProductChild
|
|
270
269
|
*/
|
|
271
|
-
showAssetsProductChild(requestParameters:
|
|
270
|
+
showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResourceArrayResponse>;
|
|
272
271
|
/**
|
|
273
272
|
* Creates request options for showProduct without sending the request
|
|
274
273
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -929,15 +929,13 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
929
929
|
}
|
|
930
930
|
queryParameters = {};
|
|
931
931
|
headerParameters = {};
|
|
932
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
933
932
|
urlPath = "/admin-api/product/children/{productChild}/assets";
|
|
934
933
|
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
935
934
|
return [2 /*return*/, {
|
|
936
935
|
path: urlPath,
|
|
937
|
-
method: '
|
|
936
|
+
method: 'GET',
|
|
938
937
|
headers: headerParameters,
|
|
939
938
|
query: queryParameters,
|
|
940
|
-
body: (0, index_1.ShowAssetsProductChildRequestToJSON)(requestParameters['showAssetsProductChildRequest']),
|
|
941
939
|
}];
|
|
942
940
|
});
|
|
943
941
|
});
|
|
@@ -76,12 +76,6 @@ export interface AssetResource {
|
|
|
76
76
|
* @memberof AssetResource
|
|
77
77
|
*/
|
|
78
78
|
overlayTemplates: Array<OverlayTemplateLiteResource> | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {object}
|
|
82
|
-
* @memberof AssetResource
|
|
83
|
-
*/
|
|
84
|
-
isLinkedToOverlayTemplate: object;
|
|
85
79
|
}
|
|
86
80
|
/**
|
|
87
81
|
* Check if a given object implements the AssetResource interface.
|
|
@@ -41,8 +41,6 @@ function instanceOfAssetResource(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined)
|
|
43
43
|
return false;
|
|
44
|
-
if (!('isLinkedToOverlayTemplate' in value) || value['isLinkedToOverlayTemplate'] === undefined)
|
|
45
|
-
return false;
|
|
46
44
|
return true;
|
|
47
45
|
}
|
|
48
46
|
function AssetResourceFromJSON(json) {
|
|
@@ -63,7 +61,6 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
61
|
'isThumbnail': json['isThumbnail'],
|
|
64
62
|
'isLifestyle': json['isLifestyle'],
|
|
65
63
|
'overlayTemplates': (json['overlayTemplates'] == null ? null : json['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceFromJSON)),
|
|
66
|
-
'isLinkedToOverlayTemplate': json['isLinkedToOverlayTemplate'],
|
|
67
64
|
};
|
|
68
65
|
}
|
|
69
66
|
function AssetResourceToJSON(json) {
|
|
@@ -85,6 +82,5 @@ function AssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
82
|
'isThumbnail': value['isThumbnail'],
|
|
86
83
|
'isLifestyle': value['isLifestyle'],
|
|
87
84
|
'overlayTemplates': (value['overlayTemplates'] == null ? null : value['overlayTemplates'].map(OverlayTemplateLiteResource_1.OverlayTemplateLiteResourceToJSON)),
|
|
88
|
-
'isLinkedToOverlayTemplate': value['isLinkedToOverlayTemplate'],
|
|
89
85
|
};
|
|
90
86
|
}
|
|
@@ -21,12 +21,6 @@ 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;
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
26
|
* Check if a given object implements the AttachAssetsOverlayTemplateRequest interface.
|
|
@@ -35,7 +35,6 @@ 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'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
function AttachAssetsOverlayTemplateRequestToJSON(json) {
|
|
@@ -48,6 +47,5 @@ function AttachAssetsOverlayTemplateRequestToJSONTyped(value, ignoreDiscriminato
|
|
|
48
47
|
}
|
|
49
48
|
return {
|
|
50
49
|
'asset_ids': value['assetIds'],
|
|
51
|
-
'sync_assets': value['syncAssets'],
|
|
52
50
|
};
|
|
53
51
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -211,7 +211,6 @@ export * from './ProductTypeResource';
|
|
|
211
211
|
export * from './ProductTypeResourceArrayResponse';
|
|
212
212
|
export * from './SEOResource';
|
|
213
213
|
export * from './SEOResourceArrayResponse';
|
|
214
|
-
export * from './ShowAssetsProductChildRequest';
|
|
215
214
|
export * from './SiteConfigResource';
|
|
216
215
|
export * from './SiteConfigResourceArrayResponse';
|
|
217
216
|
export * from './SiteListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -229,7 +229,6 @@ __exportStar(require("./ProductTypeResource"), exports);
|
|
|
229
229
|
__exportStar(require("./ProductTypeResourceArrayResponse"), exports);
|
|
230
230
|
__exportStar(require("./SEOResource"), exports);
|
|
231
231
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
232
|
-
__exportStar(require("./ShowAssetsProductChildRequest"), exports);
|
|
233
232
|
__exportStar(require("./SiteConfigResource"), exports);
|
|
234
233
|
__exportStar(require("./SiteConfigResourceArrayResponse"), exports);
|
|
235
234
|
__exportStar(require("./SiteListResource"), exports);
|
package/docs/AssetResource.md
CHANGED
|
@@ -16,7 +16,6 @@ Name | Type
|
|
|
16
16
|
`isThumbnail` | boolean
|
|
17
17
|
`isLifestyle` | boolean
|
|
18
18
|
`overlayTemplates` | [Array<OverlayTemplateLiteResource>](OverlayTemplateLiteResource.md)
|
|
19
|
-
`isLinkedToOverlayTemplate` | object
|
|
20
19
|
|
|
21
20
|
## Example
|
|
22
21
|
|
|
@@ -35,7 +34,6 @@ const example = {
|
|
|
35
34
|
"isThumbnail": null,
|
|
36
35
|
"isLifestyle": null,
|
|
37
36
|
"overlayTemplates": null,
|
|
38
|
-
"isLinkedToOverlayTemplate": null,
|
|
39
37
|
} satisfies AssetResource
|
|
40
38
|
|
|
41
39
|
console.log(example)
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`assetIds` | Array<number>
|
|
10
|
-
`syncAssets` | boolean
|
|
11
10
|
|
|
12
11
|
## Example
|
|
13
12
|
|
|
@@ -17,7 +16,6 @@ import type { AttachAssetsOverlayTemplateRequest } from '@digital8/lighting-illu
|
|
|
17
16
|
// TODO: Update the object below with actual values
|
|
18
17
|
const example = {
|
|
19
18
|
"assetIds": null,
|
|
20
|
-
"syncAssets": null,
|
|
21
19
|
} satisfies AttachAssetsOverlayTemplateRequest
|
|
22
20
|
|
|
23
21
|
console.log(example)
|
package/docs/ProductApi.md
CHANGED
|
@@ -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#
|
|
21
|
+
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchild) | **GET** /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
|
+
> AssetResourceArrayResponse showAssetsProductChild(productChild)
|
|
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 {
|
|
978
|
+
import type { ShowAssetsProductChildRequest } 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,9 +984,7 @@ async function example() {
|
|
|
984
984
|
const body = {
|
|
985
985
|
// number | The id of the productChild
|
|
986
986
|
productChild: 56,
|
|
987
|
-
|
|
988
|
-
showAssetsProductChildRequest: ...,
|
|
989
|
-
} satisfies ShowAssetsProductChildOperationRequest;
|
|
987
|
+
} satisfies ShowAssetsProductChildRequest;
|
|
990
988
|
|
|
991
989
|
try {
|
|
992
990
|
const data = await api.showAssetsProductChild(body);
|
|
@@ -1006,7 +1004,6 @@ example().catch(console.error);
|
|
|
1006
1004
|
| Name | Type | Description | Notes |
|
|
1007
1005
|
|------------- | ------------- | ------------- | -------------|
|
|
1008
1006
|
| **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
|
|
1009
|
-
| **showAssetsProductChildRequest** | [ShowAssetsProductChildRequest](ShowAssetsProductChildRequest.md) | | [Optional] |
|
|
1010
1007
|
|
|
1011
1008
|
### Return type
|
|
1012
1009
|
|
|
@@ -1018,7 +1015,7 @@ No authorization required
|
|
|
1018
1015
|
|
|
1019
1016
|
### HTTP request headers
|
|
1020
1017
|
|
|
1021
|
-
- **Content-Type**:
|
|
1018
|
+
- **Content-Type**: Not defined
|
|
1022
1019
|
- **Accept**: `application/json`
|
|
1023
1020
|
|
|
1024
1021
|
|
package/package.json
CHANGED
package/src/apis/ProductApi.ts
CHANGED
|
@@ -30,7 +30,6 @@ import type {
|
|
|
30
30
|
ProductChildResource,
|
|
31
31
|
ProductLiteResourceArrayResponse,
|
|
32
32
|
ProductResource,
|
|
33
|
-
ShowAssetsProductChildRequest,
|
|
34
33
|
StoreProductChildRequest,
|
|
35
34
|
StoreProductRequest,
|
|
36
35
|
UpdateProductChildRequest,
|
|
@@ -67,8 +66,6 @@ import {
|
|
|
67
66
|
ProductLiteResourceArrayResponseToJSON,
|
|
68
67
|
ProductResourceFromJSON,
|
|
69
68
|
ProductResourceToJSON,
|
|
70
|
-
ShowAssetsProductChildRequestFromJSON,
|
|
71
|
-
ShowAssetsProductChildRequestToJSON,
|
|
72
69
|
StoreProductChildRequestFromJSON,
|
|
73
70
|
StoreProductChildRequestToJSON,
|
|
74
71
|
StoreProductRequestFromJSON,
|
|
@@ -143,9 +140,8 @@ export interface IndexProductChildOperationRequest {
|
|
|
143
140
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
144
141
|
}
|
|
145
142
|
|
|
146
|
-
export interface
|
|
143
|
+
export interface ShowAssetsProductChildRequest {
|
|
147
144
|
productChild: number;
|
|
148
|
-
showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
|
|
149
145
|
}
|
|
150
146
|
|
|
151
147
|
export interface ShowProductRequest {
|
|
@@ -826,7 +822,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
826
822
|
/**
|
|
827
823
|
* Creates request options for showAssetsProductChild without sending the request
|
|
828
824
|
*/
|
|
829
|
-
async showAssetsProductChildRequestOpts(requestParameters:
|
|
825
|
+
async showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts> {
|
|
830
826
|
if (requestParameters['productChild'] == null) {
|
|
831
827
|
throw new runtime.RequiredError(
|
|
832
828
|
'productChild',
|
|
@@ -838,25 +834,22 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
838
834
|
|
|
839
835
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
840
836
|
|
|
841
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
842
|
-
|
|
843
837
|
|
|
844
838
|
let urlPath = `/admin-api/product/children/{productChild}/assets`;
|
|
845
839
|
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
846
840
|
|
|
847
841
|
return {
|
|
848
842
|
path: urlPath,
|
|
849
|
-
method: '
|
|
843
|
+
method: 'GET',
|
|
850
844
|
headers: headerParameters,
|
|
851
845
|
query: queryParameters,
|
|
852
|
-
body: ShowAssetsProductChildRequestToJSON(requestParameters['showAssetsProductChildRequest']),
|
|
853
846
|
};
|
|
854
847
|
}
|
|
855
848
|
|
|
856
849
|
/**
|
|
857
850
|
* Auto-generated: showAssetsProductChild
|
|
858
851
|
*/
|
|
859
|
-
async showAssetsProductChildRaw(requestParameters:
|
|
852
|
+
async showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>> {
|
|
860
853
|
const requestOptions = await this.showAssetsProductChildRequestOpts(requestParameters);
|
|
861
854
|
const response = await this.request(requestOptions, initOverrides);
|
|
862
855
|
|
|
@@ -866,7 +859,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
866
859
|
/**
|
|
867
860
|
* Auto-generated: showAssetsProductChild
|
|
868
861
|
*/
|
|
869
|
-
async showAssetsProductChild(requestParameters:
|
|
862
|
+
async showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResourceArrayResponse> {
|
|
870
863
|
const response = await this.showAssetsProductChildRaw(requestParameters, initOverrides);
|
|
871
864
|
return await response.value();
|
|
872
865
|
}
|
|
@@ -87,12 +87,6 @@ export interface AssetResource {
|
|
|
87
87
|
* @memberof AssetResource
|
|
88
88
|
*/
|
|
89
89
|
overlayTemplates: Array<OverlayTemplateLiteResource> | null;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {object}
|
|
93
|
-
* @memberof AssetResource
|
|
94
|
-
*/
|
|
95
|
-
isLinkedToOverlayTemplate: object;
|
|
96
90
|
}
|
|
97
91
|
|
|
98
92
|
/**
|
|
@@ -108,7 +102,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
108
102
|
if (!('isThumbnail' in value) || value['isThumbnail'] === undefined) return false;
|
|
109
103
|
if (!('isLifestyle' in value) || value['isLifestyle'] === undefined) return false;
|
|
110
104
|
if (!('overlayTemplates' in value) || value['overlayTemplates'] === undefined) return false;
|
|
111
|
-
if (!('isLinkedToOverlayTemplate' in value) || value['isLinkedToOverlayTemplate'] === undefined) return false;
|
|
112
105
|
return true;
|
|
113
106
|
}
|
|
114
107
|
|
|
@@ -132,7 +125,6 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
132
125
|
'isThumbnail': json['isThumbnail'],
|
|
133
126
|
'isLifestyle': json['isLifestyle'],
|
|
134
127
|
'overlayTemplates': (json['overlayTemplates'] == null ? null : (json['overlayTemplates'] as Array<any>).map(OverlayTemplateLiteResourceFromJSON)),
|
|
135
|
-
'isLinkedToOverlayTemplate': json['isLinkedToOverlayTemplate'],
|
|
136
128
|
};
|
|
137
129
|
}
|
|
138
130
|
|
|
@@ -157,7 +149,6 @@ export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDis
|
|
|
157
149
|
'isThumbnail': value['isThumbnail'],
|
|
158
150
|
'isLifestyle': value['isLifestyle'],
|
|
159
151
|
'overlayTemplates': (value['overlayTemplates'] == null ? null : (value['overlayTemplates'] as Array<any>).map(OverlayTemplateLiteResourceToJSON)),
|
|
160
|
-
'isLinkedToOverlayTemplate': value['isLinkedToOverlayTemplate'],
|
|
161
152
|
};
|
|
162
153
|
}
|
|
163
154
|
|
|
@@ -25,12 +25,6 @@ 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;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
/**
|
|
@@ -52,7 +46,6 @@ export function AttachAssetsOverlayTemplateRequestFromJSONTyped(json: any, ignor
|
|
|
52
46
|
return {
|
|
53
47
|
|
|
54
48
|
'assetIds': json['asset_ids'],
|
|
55
|
-
'syncAssets': json['sync_assets'] == null ? undefined : json['sync_assets'],
|
|
56
49
|
};
|
|
57
50
|
}
|
|
58
51
|
|
|
@@ -68,7 +61,6 @@ export function AttachAssetsOverlayTemplateRequestToJSONTyped(value?: AttachAsse
|
|
|
68
61
|
return {
|
|
69
62
|
|
|
70
63
|
'asset_ids': value['assetIds'],
|
|
71
|
-
'sync_assets': value['syncAssets'],
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
66
|
|
package/src/models/index.ts
CHANGED
|
@@ -213,7 +213,6 @@ export * from './ProductTypeResource';
|
|
|
213
213
|
export * from './ProductTypeResourceArrayResponse';
|
|
214
214
|
export * from './SEOResource';
|
|
215
215
|
export * from './SEOResourceArrayResponse';
|
|
216
|
-
export * from './ShowAssetsProductChildRequest';
|
|
217
216
|
export * from './SiteConfigResource';
|
|
218
217
|
export * from './SiteConfigResourceArrayResponse';
|
|
219
218
|
export * from './SiteListResource';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
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;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
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
|
-
|