@digital8/lighting-illusions-ts-sdk 0.0.442 → 0.0.443

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -4
  3. package/dist/apis/ProductApi.d.ts +11 -0
  4. package/dist/apis/ProductApi.js +46 -1
  5. package/dist/apis/TagApi.d.ts +0 -11
  6. package/dist/apis/TagApi.js +0 -46
  7. package/dist/models/AssetLiteResource.d.ts +44 -0
  8. package/dist/models/AssetLiteResource.js +59 -0
  9. package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
  11. package/dist/models/GetAllProductChildRequest.d.ts +10 -1
  12. package/dist/models/GetAllProductChildRequest.js +9 -1
  13. package/dist/models/IndexProductChildRequest.d.ts +21 -0
  14. package/dist/models/IndexProductChildRequest.js +13 -1
  15. package/dist/models/ProductChildLiteResource.d.ts +3 -3
  16. package/dist/models/ProductChildLiteResource.js +3 -3
  17. package/dist/models/index.d.ts +2 -0
  18. package/dist/models/index.js +2 -0
  19. package/docs/AssetLiteResource.md +38 -0
  20. package/docs/AssetLiteResourceArrayResponse.md +34 -0
  21. package/docs/IndexProductChildRequest.md +4 -0
  22. package/docs/ProductApi.md +67 -1
  23. package/docs/ProductChildLiteResource.md +1 -1
  24. package/docs/TagApi.md +0 -66
  25. package/package.json +1 -1
  26. package/src/apis/ProductApi.ts +37 -1
  27. package/src/apis/TagApi.ts +0 -41
  28. package/src/models/AssetLiteResource.ts +84 -0
  29. package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
  30. package/src/models/GetAllProductChildRequest.ts +11 -1
  31. package/src/models/IndexProductChildRequest.ts +26 -0
  32. package/src/models/ProductChildLiteResource.ts +10 -10
  33. package/src/models/index.ts +2 -0
@@ -5,6 +5,8 @@ README.md
5
5
  docs/AssetApi.md
6
6
  docs/AssetFileForUploadResource.md
7
7
  docs/AssetFileForUploadResourceArrayResponse.md
8
+ docs/AssetLiteResource.md
9
+ docs/AssetLiteResourceArrayResponse.md
8
10
  docs/AssetResource.md
9
11
  docs/AssetResourceArrayResponse.md
10
12
  docs/AttributeApi.md
@@ -174,6 +176,8 @@ src/apis/index.ts
174
176
  src/index.ts
175
177
  src/models/AssetFileForUploadResource.ts
176
178
  src/models/AssetFileForUploadResourceArrayResponse.ts
179
+ src/models/AssetLiteResource.ts
180
+ src/models/AssetLiteResourceArrayResponse.ts
177
181
  src/models/AssetResource.ts
178
182
  src/models/AssetResourceArrayResponse.ts
179
183
  src/models/AttributeFieldType.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.442
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.443
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -83,7 +83,8 @@ All URIs are relative to *http://localhost/api*
83
83
  *ProductApi* | [**getAllProduct**](docs/ProductApi.md#getallproductoperation) | **POST** /admin-api/product/parent/all | Auto-generated: getAllProduct
84
84
  *ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
85
85
  *ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
86
- *ProductApi* | [**searchProductChildrenForRelationsProductChild**](docs/ProductApi.md#searchproductchildrenforrelationsproductchild) | **POST** /admin-api/product/children/search-site-details | Auto-generated: searchProductChildrenForRelationsProductChild
86
+ *ProductApi* | [**searchProductChildrenExcludingRelationsProductChild**](docs/ProductApi.md#searchproductchildrenexcludingrelationsproductchild) | **POST** /admin-api/product/children/search-excluding-relations | Auto-generated: searchProductChildrenExcludingRelationsProductChild
87
+ *ProductApi* | [**searchProductChildrenForRelationsProductChild**](docs/ProductApi.md#searchproductchildrenforrelationsproductchild) | **POST** /admin-api/product/children/search-for-relations | Auto-generated: searchProductChildrenForRelationsProductChild
87
88
  *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
88
89
  *ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
89
90
  *ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
@@ -118,7 +119,6 @@ All URIs are relative to *http://localhost/api*
118
119
  *SupplierApi* | [**updateSupplier**](docs/SupplierApi.md#updatesupplieroperation) | **PUT** /admin-api/supplier/{supplier}/update | Auto-generated: updateSupplier
119
120
  *TagApi* | [**destroyTag**](docs/TagApi.md#destroytag) | **DELETE** /admin-api/tag/{tag}/delete | Auto-generated: destroyTag
120
121
  *TagApi* | [**getAllTag**](docs/TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag
121
- *TagApi* | [**getProductsTag**](docs/TagApi.md#getproductstag) | **GET** /admin-api/tag/{tag}/products | Auto-generated: getProductsTag
122
122
  *TagApi* | [**indexTag**](docs/TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag
123
123
  *TagApi* | [**linkProductChildrenTag**](docs/TagApi.md#linkproductchildrentagoperation) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag
124
124
  *TagApi* | [**showTag**](docs/TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag
@@ -131,6 +131,8 @@ All URIs are relative to *http://localhost/api*
131
131
 
132
132
  - [AssetFileForUploadResource](docs/AssetFileForUploadResource.md)
133
133
  - [AssetFileForUploadResourceArrayResponse](docs/AssetFileForUploadResourceArrayResponse.md)
134
+ - [AssetLiteResource](docs/AssetLiteResource.md)
135
+ - [AssetLiteResourceArrayResponse](docs/AssetLiteResourceArrayResponse.md)
134
136
  - [AssetResource](docs/AssetResource.md)
135
137
  - [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
136
138
  - [AttributeFieldType](docs/AttributeFieldType.md)
@@ -291,7 +293,7 @@ and is automatically generated by the
291
293
  [OpenAPI Generator](https://openapi-generator.tech) project:
292
294
 
293
295
  - API version: `1.0.0`
294
- - Package version: `0.0.442`
296
+ - Package version: `0.0.443`
295
297
  - Generator version: `7.17.0`
296
298
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
297
299
 
@@ -26,6 +26,9 @@ export interface GetAllProductChildOperationRequest {
26
26
  export interface IndexProductChildOperationRequest {
27
27
  indexProductChildRequest?: IndexProductChildRequest;
28
28
  }
29
+ export interface SearchProductChildrenExcludingRelationsProductChildRequest {
30
+ indexProductChildRequest?: IndexProductChildRequest;
31
+ }
29
32
  export interface SearchProductChildrenForRelationsProductChildRequest {
30
33
  indexProductChildRequest?: IndexProductChildRequest;
31
34
  }
@@ -96,6 +99,14 @@ export declare class ProductApi extends runtime.BaseAPI {
96
99
  * Auto-generated: indexProductChild
97
100
  */
98
101
  indexProductChild(requestParameters?: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildResourceResponse>;
102
+ /**
103
+ * Auto-generated: searchProductChildrenExcludingRelationsProductChild
104
+ */
105
+ searchProductChildrenExcludingRelationsProductChildRaw(requestParameters: SearchProductChildrenExcludingRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildLiteResourceResponse>>;
106
+ /**
107
+ * Auto-generated: searchProductChildrenExcludingRelationsProductChild
108
+ */
109
+ searchProductChildrenExcludingRelationsProductChild(requestParameters?: SearchProductChildrenExcludingRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildLiteResourceResponse>;
99
110
  /**
100
111
  * Auto-generated: searchProductChildrenForRelationsProductChild
101
112
  */
@@ -302,6 +302,51 @@ var ProductApi = /** @class */ (function (_super) {
302
302
  });
303
303
  });
304
304
  };
305
+ /**
306
+ * Auto-generated: searchProductChildrenExcludingRelationsProductChild
307
+ */
308
+ ProductApi.prototype.searchProductChildrenExcludingRelationsProductChildRaw = function (requestParameters, initOverrides) {
309
+ return __awaiter(this, void 0, void 0, function () {
310
+ var queryParameters, headerParameters, urlPath, response;
311
+ return __generator(this, function (_a) {
312
+ switch (_a.label) {
313
+ case 0:
314
+ queryParameters = {};
315
+ headerParameters = {};
316
+ headerParameters['Content-Type'] = 'application/json';
317
+ urlPath = "/admin-api/product/children/search-excluding-relations";
318
+ return [4 /*yield*/, this.request({
319
+ path: urlPath,
320
+ method: 'POST',
321
+ headers: headerParameters,
322
+ query: queryParameters,
323
+ body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
324
+ }, initOverrides)];
325
+ case 1:
326
+ response = _a.sent();
327
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildLiteResourceResponseFromJSON)(jsonValue); })];
328
+ }
329
+ });
330
+ });
331
+ };
332
+ /**
333
+ * Auto-generated: searchProductChildrenExcludingRelationsProductChild
334
+ */
335
+ ProductApi.prototype.searchProductChildrenExcludingRelationsProductChild = function () {
336
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
337
+ var response;
338
+ if (requestParameters === void 0) { requestParameters = {}; }
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0: return [4 /*yield*/, this.searchProductChildrenExcludingRelationsProductChildRaw(requestParameters, initOverrides)];
342
+ case 1:
343
+ response = _a.sent();
344
+ return [4 /*yield*/, response.value()];
345
+ case 2: return [2 /*return*/, _a.sent()];
346
+ }
347
+ });
348
+ });
349
+ };
305
350
  /**
306
351
  * Auto-generated: searchProductChildrenForRelationsProductChild
307
352
  */
@@ -314,7 +359,7 @@ var ProductApi = /** @class */ (function (_super) {
314
359
  queryParameters = {};
315
360
  headerParameters = {};
316
361
  headerParameters['Content-Type'] = 'application/json';
317
- urlPath = "/admin-api/product/children/search-site-details";
362
+ urlPath = "/admin-api/product/children/search-for-relations";
318
363
  return [4 /*yield*/, this.request({
319
364
  path: urlPath,
320
365
  method: 'POST',
@@ -17,9 +17,6 @@ export interface DestroyTagRequest {
17
17
  export interface GetAllTagRequest {
18
18
  indexTagRequest?: IndexTagRequest;
19
19
  }
20
- export interface GetProductsTagRequest {
21
- tag: number;
22
- }
23
20
  export interface IndexTagOperationRequest {
24
21
  indexTagRequest?: IndexTagRequest;
25
22
  }
@@ -61,14 +58,6 @@ export declare class TagApi extends runtime.BaseAPI {
61
58
  * Auto-generated: getAllTag
62
59
  */
63
60
  getAllTag(requestParameters?: GetAllTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagLiteResourceArrayResponse>;
64
- /**
65
- * Auto-generated: getProductsTag
66
- */
67
- getProductsTagRaw(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>>;
68
- /**
69
- * Auto-generated: getProductsTag
70
- */
71
- getProductsTag(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
72
61
  /**
73
62
  * Auto-generated: indexTag
74
63
  */
@@ -166,52 +166,6 @@ var TagApi = /** @class */ (function (_super) {
166
166
  });
167
167
  });
168
168
  };
169
- /**
170
- * Auto-generated: getProductsTag
171
- */
172
- TagApi.prototype.getProductsTagRaw = function (requestParameters, initOverrides) {
173
- return __awaiter(this, void 0, void 0, function () {
174
- var queryParameters, headerParameters, urlPath, response;
175
- return __generator(this, function (_a) {
176
- switch (_a.label) {
177
- case 0:
178
- if (requestParameters['tag'] == null) {
179
- throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling getProductsTag().');
180
- }
181
- queryParameters = {};
182
- headerParameters = {};
183
- urlPath = "/admin-api/tag/{tag}/products";
184
- urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
185
- return [4 /*yield*/, this.request({
186
- path: urlPath,
187
- method: 'GET',
188
- headers: headerParameters,
189
- query: queryParameters,
190
- }, initOverrides)];
191
- case 1:
192
- response = _a.sent();
193
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildRelationResourceArrayResponseFromJSON)(jsonValue); })];
194
- }
195
- });
196
- });
197
- };
198
- /**
199
- * Auto-generated: getProductsTag
200
- */
201
- TagApi.prototype.getProductsTag = function (requestParameters, initOverrides) {
202
- return __awaiter(this, void 0, void 0, function () {
203
- var response;
204
- return __generator(this, function (_a) {
205
- switch (_a.label) {
206
- case 0: return [4 /*yield*/, this.getProductsTagRaw(requestParameters, initOverrides)];
207
- case 1:
208
- response = _a.sent();
209
- return [4 /*yield*/, response.value()];
210
- case 2: return [2 /*return*/, _a.sent()];
211
- }
212
- });
213
- });
214
- };
215
169
  /**
216
170
  * Auto-generated: indexTag
217
171
  */
@@ -0,0 +1,44 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AssetLiteResource
16
+ */
17
+ export interface AssetLiteResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AssetLiteResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AssetLiteResource
28
+ */
29
+ filePath: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AssetLiteResource
34
+ */
35
+ fileName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AssetLiteResource interface.
39
+ */
40
+ export declare function instanceOfAssetLiteResource(value: object): value is AssetLiteResource;
41
+ export declare function AssetLiteResourceFromJSON(json: any): AssetLiteResource;
42
+ export declare function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResource;
43
+ export declare function AssetLiteResourceToJSON(json: any): AssetLiteResource;
44
+ export declare function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfAssetLiteResource = instanceOfAssetLiteResource;
17
+ exports.AssetLiteResourceFromJSON = AssetLiteResourceFromJSON;
18
+ exports.AssetLiteResourceFromJSONTyped = AssetLiteResourceFromJSONTyped;
19
+ exports.AssetLiteResourceToJSON = AssetLiteResourceToJSON;
20
+ exports.AssetLiteResourceToJSONTyped = AssetLiteResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AssetLiteResource interface.
23
+ */
24
+ function instanceOfAssetLiteResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('filePath' in value) || value['filePath'] === undefined)
28
+ return false;
29
+ if (!('fileName' in value) || value['fileName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AssetLiteResourceFromJSON(json) {
34
+ return AssetLiteResourceFromJSONTyped(json, false);
35
+ }
36
+ function AssetLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'filePath': json['filePath'],
43
+ 'fileName': json['fileName'],
44
+ };
45
+ }
46
+ function AssetLiteResourceToJSON(json) {
47
+ return AssetLiteResourceToJSONTyped(json, false);
48
+ }
49
+ function AssetLiteResourceToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'filePath': value['filePath'],
57
+ 'fileName': value['fileName'],
58
+ };
59
+ }
@@ -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 { AssetLiteResource } from './AssetLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssetLiteResourceArrayResponse
17
+ */
18
+ export interface AssetLiteResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AssetLiteResource>}
22
+ * @memberof AssetLiteResourceArrayResponse
23
+ */
24
+ data?: Array<AssetLiteResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AssetLiteResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfAssetLiteResourceArrayResponse(value: object): value is AssetLiteResourceArrayResponse;
30
+ export declare function AssetLiteResourceArrayResponseFromJSON(json: any): AssetLiteResourceArrayResponse;
31
+ export declare function AssetLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResourceArrayResponse;
32
+ export declare function AssetLiteResourceArrayResponseToJSON(json: any): AssetLiteResourceArrayResponse;
33
+ export declare function AssetLiteResourceArrayResponseToJSONTyped(value?: AssetLiteResourceArrayResponse | 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.instanceOfAssetLiteResourceArrayResponse = instanceOfAssetLiteResourceArrayResponse;
17
+ exports.AssetLiteResourceArrayResponseFromJSON = AssetLiteResourceArrayResponseFromJSON;
18
+ exports.AssetLiteResourceArrayResponseFromJSONTyped = AssetLiteResourceArrayResponseFromJSONTyped;
19
+ exports.AssetLiteResourceArrayResponseToJSON = AssetLiteResourceArrayResponseToJSON;
20
+ exports.AssetLiteResourceArrayResponseToJSONTyped = AssetLiteResourceArrayResponseToJSONTyped;
21
+ var AssetLiteResource_1 = require("./AssetLiteResource");
22
+ /**
23
+ * Check if a given object implements the AssetLiteResourceArrayResponse interface.
24
+ */
25
+ function instanceOfAssetLiteResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function AssetLiteResourceArrayResponseFromJSON(json) {
29
+ return AssetLiteResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function AssetLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
37
+ };
38
+ }
39
+ function AssetLiteResourceArrayResponseToJSON(json) {
40
+ return AssetLiteResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function AssetLiteResourceArrayResponseToJSONTyped(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(AssetLiteResource_1.AssetLiteResourceToJSON)),
49
+ };
50
+ }
@@ -44,7 +44,7 @@ export interface GetAllProductChildRequest {
44
44
  * @type {string}
45
45
  * @memberof GetAllProductChildRequest
46
46
  */
47
- relatedType?: string;
47
+ relatedType?: GetAllProductChildRequestRelatedTypeEnum;
48
48
  /**
49
49
  *
50
50
  * @type {Array<string>}
@@ -103,6 +103,15 @@ export declare const GetAllProductChildRequestSortDirectionEnum: {
103
103
  readonly Desc: "desc";
104
104
  };
105
105
  export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChildRequestSortDirectionEnum[keyof typeof GetAllProductChildRequestSortDirectionEnum];
106
+ /**
107
+ * @export
108
+ */
109
+ export declare const GetAllProductChildRequestRelatedTypeEnum: {
110
+ readonly OverlayTemplate: "overlayTemplate";
111
+ readonly Supplier: "supplier";
112
+ readonly Tag: "tag";
113
+ };
114
+ export type GetAllProductChildRequestRelatedTypeEnum = typeof GetAllProductChildRequestRelatedTypeEnum[keyof typeof GetAllProductChildRequestRelatedTypeEnum];
106
115
  /**
107
116
  * Check if a given object implements the GetAllProductChildRequest interface.
108
117
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllProductChildRequestSortDirectionEnum = exports.GetAllProductChildRequestSortByEnum = void 0;
16
+ exports.GetAllProductChildRequestRelatedTypeEnum = exports.GetAllProductChildRequestSortDirectionEnum = exports.GetAllProductChildRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllProductChildRequest = instanceOfGetAllProductChildRequest;
18
18
  exports.GetAllProductChildRequestFromJSON = GetAllProductChildRequestFromJSON;
19
19
  exports.GetAllProductChildRequestFromJSONTyped = GetAllProductChildRequestFromJSONTyped;
@@ -44,6 +44,14 @@ exports.GetAllProductChildRequestSortDirectionEnum = {
44
44
  Asc: 'asc',
45
45
  Desc: 'desc'
46
46
  };
47
+ /**
48
+ * @export
49
+ */
50
+ exports.GetAllProductChildRequestRelatedTypeEnum = {
51
+ OverlayTemplate: 'overlayTemplate',
52
+ Supplier: 'supplier',
53
+ Tag: 'tag'
54
+ };
47
55
  /**
48
56
  * Check if a given object implements the GetAllProductChildRequest interface.
49
57
  */
@@ -75,6 +75,18 @@ export interface IndexProductChildRequest {
75
75
  * @memberof IndexProductChildRequest
76
76
  */
77
77
  hasNetsuiteId?: Array<string>;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof IndexProductChildRequest
82
+ */
83
+ relatedId?: number;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof IndexProductChildRequest
88
+ */
89
+ relatedType?: IndexProductChildRequestRelatedTypeEnum;
78
90
  }
79
91
  /**
80
92
  * @export
@@ -103,6 +115,15 @@ export declare const IndexProductChildRequestSortDirectionEnum: {
103
115
  readonly Desc: "desc";
104
116
  };
105
117
  export type IndexProductChildRequestSortDirectionEnum = typeof IndexProductChildRequestSortDirectionEnum[keyof typeof IndexProductChildRequestSortDirectionEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const IndexProductChildRequestRelatedTypeEnum: {
122
+ readonly OverlayTemplate: "overlayTemplate";
123
+ readonly Supplier: "supplier";
124
+ readonly Tag: "tag";
125
+ };
126
+ export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
106
127
  /**
107
128
  * Check if a given object implements the IndexProductChildRequest interface.
108
129
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IndexProductChildRequestSortDirectionEnum = exports.IndexProductChildRequestSortByEnum = void 0;
16
+ exports.IndexProductChildRequestRelatedTypeEnum = exports.IndexProductChildRequestSortDirectionEnum = exports.IndexProductChildRequestSortByEnum = void 0;
17
17
  exports.instanceOfIndexProductChildRequest = instanceOfIndexProductChildRequest;
18
18
  exports.IndexProductChildRequestFromJSON = IndexProductChildRequestFromJSON;
19
19
  exports.IndexProductChildRequestFromJSONTyped = IndexProductChildRequestFromJSONTyped;
@@ -44,6 +44,14 @@ exports.IndexProductChildRequestSortDirectionEnum = {
44
44
  Asc: 'asc',
45
45
  Desc: 'desc'
46
46
  };
47
+ /**
48
+ * @export
49
+ */
50
+ exports.IndexProductChildRequestRelatedTypeEnum = {
51
+ OverlayTemplate: 'overlayTemplate',
52
+ Supplier: 'supplier',
53
+ Tag: 'tag'
54
+ };
47
55
  /**
48
56
  * Check if a given object implements the IndexProductChildRequest interface.
49
57
  */
@@ -68,6 +76,8 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
68
76
  'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
69
77
  'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
70
78
  'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
79
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
80
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
71
81
  };
72
82
  }
73
83
  function IndexProductChildRequestToJSON(json) {
@@ -89,5 +99,7 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
89
99
  'siteDetails-site_id': value['siteDetailsSiteId'],
90
100
  'is_disabled': value['isDisabled'],
91
101
  'has_netsuite_id': value['hasNetsuiteId'],
102
+ 'related_id': value['relatedId'],
103
+ 'related_type': value['relatedType'],
92
104
  };
93
105
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AssetResource } from './AssetResource';
12
+ import type { AssetLiteResource } from './AssetLiteResource';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -60,10 +60,10 @@ export interface ProductChildLiteResource {
60
60
  netsuiteId: number;
61
61
  /**
62
62
  *
63
- * @type {AssetResource}
63
+ * @type {AssetLiteResource}
64
64
  * @memberof ProductChildLiteResource
65
65
  */
66
- thumbnail: AssetResource | null;
66
+ thumbnail: AssetLiteResource | null;
67
67
  }
68
68
  /**
69
69
  * Check if a given object implements the ProductChildLiteResource interface.
@@ -18,7 +18,7 @@ exports.ProductChildLiteResourceFromJSON = ProductChildLiteResourceFromJSON;
18
18
  exports.ProductChildLiteResourceFromJSONTyped = ProductChildLiteResourceFromJSONTyped;
19
19
  exports.ProductChildLiteResourceToJSON = ProductChildLiteResourceToJSON;
20
20
  exports.ProductChildLiteResourceToJSONTyped = ProductChildLiteResourceToJSONTyped;
21
- var AssetResource_1 = require("./AssetResource");
21
+ var AssetLiteResource_1 = require("./AssetLiteResource");
22
22
  /**
23
23
  * Check if a given object implements the ProductChildLiteResource interface.
24
24
  */
@@ -56,7 +56,7 @@ function ProductChildLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'sku': json['sku'],
57
57
  'stock': json['stock'],
58
58
  'netsuiteId': json['netsuiteId'],
59
- 'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
59
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
60
60
  };
61
61
  }
62
62
  function ProductChildLiteResourceToJSON(json) {
@@ -75,6 +75,6 @@ function ProductChildLiteResourceToJSONTyped(value, ignoreDiscriminator) {
75
75
  'sku': value['sku'],
76
76
  'stock': value['stock'],
77
77
  'netsuiteId': value['netsuiteId'],
78
- 'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
78
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
79
79
  };
80
80
  }
@@ -1,5 +1,7 @@
1
1
  export * from './AssetFileForUploadResource';
2
2
  export * from './AssetFileForUploadResourceArrayResponse';
3
+ export * from './AssetLiteResource';
4
+ export * from './AssetLiteResourceArrayResponse';
3
5
  export * from './AssetResource';
4
6
  export * from './AssetResourceArrayResponse';
5
7
  export * from './AttributeFieldType';
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AssetFileForUploadResource"), exports);
20
20
  __exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
21
+ __exportStar(require("./AssetLiteResource"), exports);
22
+ __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
21
23
  __exportStar(require("./AssetResource"), exports);
22
24
  __exportStar(require("./AssetResourceArrayResponse"), exports);
23
25
  __exportStar(require("./AttributeFieldType"), exports);
@@ -0,0 +1,38 @@
1
+
2
+ # AssetLiteResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `filePath` | string
11
+ `fileName` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { AssetLiteResource } from '@digital8/lighting-illusions-ts-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "id": null,
21
+ "filePath": null,
22
+ "fileName": null,
23
+ } satisfies AssetLiteResource
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as AssetLiteResource
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+