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

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 (59) 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/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +3 -1
  13. package/dist/models/GetAllAttributeRequest.d.ts +9 -18
  14. package/dist/models/GetAllAttributeRequest.js +5 -13
  15. package/dist/models/GetAllOverlayTemplateRequest.d.ts +6 -13
  16. package/dist/models/GetAllOverlayTemplateRequest.js +3 -9
  17. package/dist/models/GetAllProductRequest.d.ts +31 -9
  18. package/dist/models/GetAllProductRequest.js +11 -8
  19. package/dist/models/GetAllProductTypeRequest.d.ts +1 -9
  20. package/dist/models/GetAllProductTypeRequest.js +1 -8
  21. package/dist/models/GetAllSupplierRequest.d.ts +1 -8
  22. package/dist/models/GetAllSupplierRequest.js +1 -7
  23. package/dist/models/IndexExternalApiLogRequest.d.ts +12 -12
  24. package/dist/models/IndexExternalApiLogRequest.js +4 -4
  25. package/dist/models/IndexProductChildRequest.d.ts +21 -0
  26. package/dist/models/IndexProductChildRequest.js +13 -1
  27. package/dist/models/ProductChildLiteResource.d.ts +3 -3
  28. package/dist/models/ProductChildLiteResource.js +3 -3
  29. package/dist/models/TagLiteResource.d.ts +7 -0
  30. package/dist/models/TagLiteResource.js +5 -0
  31. package/dist/models/index.d.ts +2 -0
  32. package/dist/models/index.js +2 -0
  33. package/docs/AssetLiteResource.md +38 -0
  34. package/docs/AssetLiteResourceArrayResponse.md +34 -0
  35. package/docs/GetAllAttributeRequest.md +4 -4
  36. package/docs/GetAllOverlayTemplateRequest.md +2 -2
  37. package/docs/GetAllProductRequest.md +10 -0
  38. package/docs/IndexExternalApiLogRequest.md +4 -4
  39. package/docs/IndexProductChildRequest.md +4 -0
  40. package/docs/ProductApi.md +67 -1
  41. package/docs/ProductChildLiteResource.md +1 -1
  42. package/docs/TagApi.md +0 -66
  43. package/docs/TagLiteResource.md +2 -0
  44. package/package.json +1 -1
  45. package/src/apis/ProductApi.ts +37 -1
  46. package/src/apis/TagApi.ts +0 -41
  47. package/src/models/AssetLiteResource.ts +84 -0
  48. package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
  49. package/src/models/ExternalApiLogResource.ts +3 -2
  50. package/src/models/GetAllAttributeRequest.ts +13 -23
  51. package/src/models/GetAllOverlayTemplateRequest.ts +8 -16
  52. package/src/models/GetAllProductRequest.ts +41 -10
  53. package/src/models/GetAllProductTypeRequest.ts +1 -10
  54. package/src/models/GetAllSupplierRequest.ts +1 -9
  55. package/src/models/IndexExternalApiLogRequest.ts +16 -16
  56. package/src/models/IndexProductChildRequest.ts +26 -0
  57. package/src/models/ProductChildLiteResource.ts +10 -10
  58. package/src/models/TagLiteResource.ts +17 -0
  59. 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.444
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.444`
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
+ }
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -35,34 +35,34 @@ export interface GetAllAttributeRequest {
35
35
  sortDirection?: GetAllAttributeRequestSortDirectionEnum;
36
36
  /**
37
37
  *
38
- * @type {Array<string>}
38
+ * @type {number}
39
39
  * @memberof GetAllAttributeRequest
40
40
  */
41
- type?: Array<string>;
41
+ relatedId?: number;
42
42
  /**
43
43
  *
44
- * @type {Array<string>}
44
+ * @type {string}
45
45
  * @memberof GetAllAttributeRequest
46
46
  */
47
- isFilterable?: Array<string>;
47
+ relatedType?: string;
48
48
  /**
49
49
  *
50
50
  * @type {Array<string>}
51
51
  * @memberof GetAllAttributeRequest
52
52
  */
53
- isExpandedByDefault?: Array<string>;
53
+ type?: Array<string>;
54
54
  /**
55
55
  *
56
- * @type {number}
56
+ * @type {Array<string>}
57
57
  * @memberof GetAllAttributeRequest
58
58
  */
59
- relatedId?: number;
59
+ isFilterable?: Array<string>;
60
60
  /**
61
61
  *
62
- * @type {string}
62
+ * @type {Array<string>}
63
63
  * @memberof GetAllAttributeRequest
64
64
  */
65
- relatedType?: GetAllAttributeRequestRelatedTypeEnum;
65
+ isExpandedByDefault?: Array<string>;
66
66
  }
67
67
  /**
68
68
  * @export
@@ -82,15 +82,6 @@ export declare const GetAllAttributeRequestSortDirectionEnum: {
82
82
  readonly Desc: "desc";
83
83
  };
84
84
  export type GetAllAttributeRequestSortDirectionEnum = typeof GetAllAttributeRequestSortDirectionEnum[keyof typeof GetAllAttributeRequestSortDirectionEnum];
85
- /**
86
- * @export
87
- */
88
- export declare const GetAllAttributeRequestRelatedTypeEnum: {
89
- readonly ProductType: "productType";
90
- readonly Category: "category";
91
- readonly ProductRange: "productRange";
92
- };
93
- export type GetAllAttributeRequestRelatedTypeEnum = typeof GetAllAttributeRequestRelatedTypeEnum[keyof typeof GetAllAttributeRequestRelatedTypeEnum];
94
85
  /**
95
86
  * Check if a given object implements the GetAllAttributeRequest interface.
96
87
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllAttributeRequestRelatedTypeEnum = exports.GetAllAttributeRequestSortDirectionEnum = exports.GetAllAttributeRequestSortByEnum = void 0;
16
+ exports.GetAllAttributeRequestSortDirectionEnum = exports.GetAllAttributeRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllAttributeRequest = instanceOfGetAllAttributeRequest;
18
18
  exports.GetAllAttributeRequestFromJSON = GetAllAttributeRequestFromJSON;
19
19
  exports.GetAllAttributeRequestFromJSONTyped = GetAllAttributeRequestFromJSONTyped;
@@ -35,14 +35,6 @@ exports.GetAllAttributeRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
- /**
39
- * @export
40
- */
41
- exports.GetAllAttributeRequestRelatedTypeEnum = {
42
- ProductType: 'productType',
43
- Category: 'category',
44
- ProductRange: 'productRange'
45
- };
46
38
  /**
47
39
  * Check if a given object implements the GetAllAttributeRequest interface.
48
40
  */
@@ -60,11 +52,11 @@ function GetAllAttributeRequestFromJSONTyped(json, ignoreDiscriminator) {
60
52
  'search': json['search'] == null ? undefined : json['search'],
61
53
  'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
62
54
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
55
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
56
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
63
57
  'type': json['type'] == null ? undefined : json['type'],
64
58
  'isFilterable': json['is_filterable'] == null ? undefined : json['is_filterable'],
65
59
  'isExpandedByDefault': json['is_expanded_by_default'] == null ? undefined : json['is_expanded_by_default'],
66
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
68
60
  };
69
61
  }
70
62
  function GetAllAttributeRequestToJSON(json) {
@@ -79,10 +71,10 @@ function GetAllAttributeRequestToJSONTyped(value, ignoreDiscriminator) {
79
71
  'search': value['search'],
80
72
  'sortBy': value['sortBy'],
81
73
  'sortDirection': value['sortDirection'],
74
+ 'related_id': value['relatedId'],
75
+ 'related_type': value['relatedType'],
82
76
  'type': value['type'],
83
77
  'is_filterable': value['isFilterable'],
84
78
  'is_expanded_by_default': value['isExpandedByDefault'],
85
- 'related_id': value['relatedId'],
86
- 'related_type': value['relatedType'],
87
79
  };
88
80
  }
@@ -35,22 +35,22 @@ export interface GetAllOverlayTemplateRequest {
35
35
  sortDirection?: GetAllOverlayTemplateRequestSortDirectionEnum;
36
36
  /**
37
37
  *
38
- * @type {Array<string>}
38
+ * @type {number}
39
39
  * @memberof GetAllOverlayTemplateRequest
40
40
  */
41
- sitesId?: Array<string>;
41
+ relatedId?: number;
42
42
  /**
43
43
  *
44
- * @type {number}
44
+ * @type {string}
45
45
  * @memberof GetAllOverlayTemplateRequest
46
46
  */
47
- relatedId?: number;
47
+ relatedType?: string;
48
48
  /**
49
49
  *
50
- * @type {string}
50
+ * @type {Array<string>}
51
51
  * @memberof GetAllOverlayTemplateRequest
52
52
  */
53
- relatedType?: GetAllOverlayTemplateRequestRelatedTypeEnum;
53
+ sitesId?: Array<string>;
54
54
  }
55
55
  /**
56
56
  * @export
@@ -70,13 +70,6 @@ export declare const GetAllOverlayTemplateRequestSortDirectionEnum: {
70
70
  readonly Desc: "desc";
71
71
  };
72
72
  export type GetAllOverlayTemplateRequestSortDirectionEnum = typeof GetAllOverlayTemplateRequestSortDirectionEnum[keyof typeof GetAllOverlayTemplateRequestSortDirectionEnum];
73
- /**
74
- * @export
75
- */
76
- export declare const GetAllOverlayTemplateRequestRelatedTypeEnum: {
77
- readonly Asset: "asset";
78
- };
79
- export type GetAllOverlayTemplateRequestRelatedTypeEnum = typeof GetAllOverlayTemplateRequestRelatedTypeEnum[keyof typeof GetAllOverlayTemplateRequestRelatedTypeEnum];
80
73
  /**
81
74
  * Check if a given object implements the GetAllOverlayTemplateRequest interface.
82
75
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllOverlayTemplateRequestRelatedTypeEnum = exports.GetAllOverlayTemplateRequestSortDirectionEnum = exports.GetAllOverlayTemplateRequestSortByEnum = void 0;
16
+ exports.GetAllOverlayTemplateRequestSortDirectionEnum = exports.GetAllOverlayTemplateRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllOverlayTemplateRequest = instanceOfGetAllOverlayTemplateRequest;
18
18
  exports.GetAllOverlayTemplateRequestFromJSON = GetAllOverlayTemplateRequestFromJSON;
19
19
  exports.GetAllOverlayTemplateRequestFromJSONTyped = GetAllOverlayTemplateRequestFromJSONTyped;
@@ -35,12 +35,6 @@ exports.GetAllOverlayTemplateRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
- /**
39
- * @export
40
- */
41
- exports.GetAllOverlayTemplateRequestRelatedTypeEnum = {
42
- Asset: 'asset'
43
- };
44
38
  /**
45
39
  * Check if a given object implements the GetAllOverlayTemplateRequest interface.
46
40
  */
@@ -58,9 +52,9 @@ function GetAllOverlayTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
58
52
  'search': json['search'] == null ? undefined : json['search'],
59
53
  'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
60
54
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
61
- 'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
62
55
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
63
56
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
57
+ 'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
64
58
  };
65
59
  }
66
60
  function GetAllOverlayTemplateRequestToJSON(json) {
@@ -75,8 +69,8 @@ function GetAllOverlayTemplateRequestToJSONTyped(value, ignoreDiscriminator) {
75
69
  'search': value['search'],
76
70
  'sortBy': value['sortBy'],
77
71
  'sortDirection': value['sortDirection'],
78
- 'sites-id': value['sitesId'],
79
72
  'related_id': value['relatedId'],
80
73
  'related_type': value['relatedType'],
74
+ 'sites-id': value['sitesId'],
81
75
  };
82
76
  }