@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
@@ -16,6 +16,8 @@ Name | Type
16
16
  `siteDetailsSiteId` | Array<string>
17
17
  `isDisabled` | Array<string>
18
18
  `hasNetsuiteId` | Array<string>
19
+ `relatedType` | string
20
+ `relatedId` | number
19
21
 
20
22
  ## Example
21
23
 
@@ -34,6 +36,8 @@ const example = {
34
36
  "siteDetailsSiteId": null,
35
37
  "isDisabled": null,
36
38
  "hasNetsuiteId": null,
39
+ "relatedType": null,
40
+ "relatedId": null,
37
41
  } satisfies IndexProductChildRequest
38
42
 
39
43
  console.log(example)
@@ -9,7 +9,8 @@ All URIs are relative to *http://localhost/api*
9
9
  | [**getAllProduct**](ProductApi.md#getallproductoperation) | **POST** /admin-api/product/parent/all | Auto-generated: getAllProduct |
10
10
  | [**getAllProductChild**](ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild |
11
11
  | [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
12
- | [**searchProductChildrenForRelationsProductChild**](ProductApi.md#searchproductchildrenforrelationsproductchild) | **POST** /admin-api/product/children/search-site-details | Auto-generated: searchProductChildrenForRelationsProductChild |
12
+ | [**searchProductChildrenExcludingRelationsProductChild**](ProductApi.md#searchproductchildrenexcludingrelationsproductchild) | **POST** /admin-api/product/children/search-excluding-relations | Auto-generated: searchProductChildrenExcludingRelationsProductChild |
13
+ | [**searchProductChildrenForRelationsProductChild**](ProductApi.md#searchproductchildrenforrelationsproductchild) | **POST** /admin-api/product/children/search-for-relations | Auto-generated: searchProductChildrenForRelationsProductChild |
13
14
  | [**showAssetsProductChild**](ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
14
15
  | [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
15
16
  | [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
@@ -345,6 +346,71 @@ No authorization required
345
346
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
346
347
 
347
348
 
349
+ ## searchProductChildrenExcludingRelationsProductChild
350
+
351
+ > PaginatedProductChildLiteResourceResponse searchProductChildrenExcludingRelationsProductChild(indexProductChildRequest)
352
+
353
+ Auto-generated: searchProductChildrenExcludingRelationsProductChild
354
+
355
+ ### Example
356
+
357
+ ```ts
358
+ import {
359
+ Configuration,
360
+ ProductApi,
361
+ } from '@digital8/lighting-illusions-ts-sdk';
362
+ import type { SearchProductChildrenExcludingRelationsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk';
363
+
364
+ async function example() {
365
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
366
+ const api = new ProductApi();
367
+
368
+ const body = {
369
+ // IndexProductChildRequest (optional)
370
+ indexProductChildRequest: ...,
371
+ } satisfies SearchProductChildrenExcludingRelationsProductChildRequest;
372
+
373
+ try {
374
+ const data = await api.searchProductChildrenExcludingRelationsProductChild(body);
375
+ console.log(data);
376
+ } catch (error) {
377
+ console.error(error);
378
+ }
379
+ }
380
+
381
+ // Run the test
382
+ example().catch(console.error);
383
+ ```
384
+
385
+ ### Parameters
386
+
387
+
388
+ | Name | Type | Description | Notes |
389
+ |------------- | ------------- | ------------- | -------------|
390
+ | **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
391
+
392
+ ### Return type
393
+
394
+ [**PaginatedProductChildLiteResourceResponse**](PaginatedProductChildLiteResourceResponse.md)
395
+
396
+ ### Authorization
397
+
398
+ No authorization required
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: `application/json`
403
+ - **Accept**: `application/json`
404
+
405
+
406
+ ### HTTP response details
407
+ | Status code | Description | Response headers |
408
+ |-------------|-------------|------------------|
409
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductChildLiteResource[]>> | - |
410
+
411
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
412
+
413
+
348
414
  ## searchProductChildrenForRelationsProductChild
349
415
 
350
416
  > PaginatedProductChildLiteResourceResponse searchProductChildrenForRelationsProductChild(indexProductChildRequest)
@@ -13,7 +13,7 @@ Name | Type
13
13
  `sku` | number
14
14
  `stock` | number
15
15
  `netsuiteId` | number
16
- `thumbnail` | [AssetResource](AssetResource.md)
16
+ `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
17
17
 
18
18
  ## Example
19
19
 
package/docs/TagApi.md CHANGED
@@ -6,7 +6,6 @@ All URIs are relative to *http://localhost/api*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**destroyTag**](TagApi.md#destroytag) | **DELETE** /admin-api/tag/{tag}/delete | Auto-generated: destroyTag |
8
8
  | [**getAllTag**](TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag |
9
- | [**getProductsTag**](TagApi.md#getproductstag) | **GET** /admin-api/tag/{tag}/products | Auto-generated: getProductsTag |
10
9
  | [**indexTag**](TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag |
11
10
  | [**linkProductChildrenTag**](TagApi.md#linkproductchildrentagoperation) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag |
12
11
  | [**showTag**](TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag |
@@ -146,71 +145,6 @@ No authorization required
146
145
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
147
146
 
148
147
 
149
- ## getProductsTag
150
-
151
- > ProductChildRelationResourceArrayResponse getProductsTag(tag)
152
-
153
- Auto-generated: getProductsTag
154
-
155
- ### Example
156
-
157
- ```ts
158
- import {
159
- Configuration,
160
- TagApi,
161
- } from '@digital8/lighting-illusions-ts-sdk';
162
- import type { GetProductsTagRequest } from '@digital8/lighting-illusions-ts-sdk';
163
-
164
- async function example() {
165
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
166
- const api = new TagApi();
167
-
168
- const body = {
169
- // number | The id of the tag
170
- tag: 56,
171
- } satisfies GetProductsTagRequest;
172
-
173
- try {
174
- const data = await api.getProductsTag(body);
175
- console.log(data);
176
- } catch (error) {
177
- console.error(error);
178
- }
179
- }
180
-
181
- // Run the test
182
- example().catch(console.error);
183
- ```
184
-
185
- ### Parameters
186
-
187
-
188
- | Name | Type | Description | Notes |
189
- |------------- | ------------- | ------------- | -------------|
190
- | **tag** | `number` | The id of the tag | [Defaults to `undefined`] |
191
-
192
- ### Return type
193
-
194
- [**ProductChildRelationResourceArrayResponse**](ProductChildRelationResourceArrayResponse.md)
195
-
196
- ### Authorization
197
-
198
- No authorization required
199
-
200
- ### HTTP request headers
201
-
202
- - **Content-Type**: Not defined
203
- - **Accept**: `application/json`
204
-
205
-
206
- ### HTTP response details
207
- | Status code | Description | Response headers |
208
- |-------------|-------------|------------------|
209
- | **200** | Successful resource response | - |
210
-
211
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
212
-
213
-
214
148
  ## indexTag
215
149
 
216
150
  > PaginatedTagResourceResponse indexTag(indexTagRequest)
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
+ `site` | [SiteLiteResource](SiteLiteResource.md)
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { TagLiteResource } from '@digital8/lighting-illusions-ts-sdk'
18
19
  const example = {
19
20
  "id": null,
20
21
  "name": null,
22
+ "site": null,
21
23
  } satisfies TagLiteResource
22
24
 
23
25
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.442",
3
+ "version": "0.0.444",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -84,6 +84,10 @@ export interface IndexProductChildOperationRequest {
84
84
  indexProductChildRequest?: IndexProductChildRequest;
85
85
  }
86
86
 
87
+ export interface SearchProductChildrenExcludingRelationsProductChildRequest {
88
+ indexProductChildRequest?: IndexProductChildRequest;
89
+ }
90
+
87
91
  export interface SearchProductChildrenForRelationsProductChildRequest {
88
92
  indexProductChildRequest?: IndexProductChildRequest;
89
93
  }
@@ -293,6 +297,38 @@ export class ProductApi extends runtime.BaseAPI {
293
297
  return await response.value();
294
298
  }
295
299
 
300
+ /**
301
+ * Auto-generated: searchProductChildrenExcludingRelationsProductChild
302
+ */
303
+ async searchProductChildrenExcludingRelationsProductChildRaw(requestParameters: SearchProductChildrenExcludingRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildLiteResourceResponse>> {
304
+ const queryParameters: any = {};
305
+
306
+ const headerParameters: runtime.HTTPHeaders = {};
307
+
308
+ headerParameters['Content-Type'] = 'application/json';
309
+
310
+
311
+ let urlPath = `/admin-api/product/children/search-excluding-relations`;
312
+
313
+ const response = await this.request({
314
+ path: urlPath,
315
+ method: 'POST',
316
+ headers: headerParameters,
317
+ query: queryParameters,
318
+ body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
319
+ }, initOverrides);
320
+
321
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildLiteResourceResponseFromJSON(jsonValue));
322
+ }
323
+
324
+ /**
325
+ * Auto-generated: searchProductChildrenExcludingRelationsProductChild
326
+ */
327
+ async searchProductChildrenExcludingRelationsProductChild(requestParameters: SearchProductChildrenExcludingRelationsProductChildRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildLiteResourceResponse> {
328
+ const response = await this.searchProductChildrenExcludingRelationsProductChildRaw(requestParameters, initOverrides);
329
+ return await response.value();
330
+ }
331
+
296
332
  /**
297
333
  * Auto-generated: searchProductChildrenForRelationsProductChild
298
334
  */
@@ -304,7 +340,7 @@ export class ProductApi extends runtime.BaseAPI {
304
340
  headerParameters['Content-Type'] = 'application/json';
305
341
 
306
342
 
307
- let urlPath = `/admin-api/product/children/search-site-details`;
343
+ let urlPath = `/admin-api/product/children/search-for-relations`;
308
344
 
309
345
  const response = await this.request({
310
346
  path: urlPath,
@@ -54,10 +54,6 @@ export interface GetAllTagRequest {
54
54
  indexTagRequest?: IndexTagRequest;
55
55
  }
56
56
 
57
- export interface GetProductsTagRequest {
58
- tag: number;
59
- }
60
-
61
57
  export interface IndexTagOperationRequest {
62
58
  indexTagRequest?: IndexTagRequest;
63
59
  }
@@ -159,43 +155,6 @@ export class TagApi extends runtime.BaseAPI {
159
155
  return await response.value();
160
156
  }
161
157
 
162
- /**
163
- * Auto-generated: getProductsTag
164
- */
165
- async getProductsTagRaw(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
166
- if (requestParameters['tag'] == null) {
167
- throw new runtime.RequiredError(
168
- 'tag',
169
- 'Required parameter "tag" was null or undefined when calling getProductsTag().'
170
- );
171
- }
172
-
173
- const queryParameters: any = {};
174
-
175
- const headerParameters: runtime.HTTPHeaders = {};
176
-
177
-
178
- let urlPath = `/admin-api/tag/{tag}/products`;
179
- urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
180
-
181
- const response = await this.request({
182
- path: urlPath,
183
- method: 'GET',
184
- headers: headerParameters,
185
- query: queryParameters,
186
- }, initOverrides);
187
-
188
- return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
189
- }
190
-
191
- /**
192
- * Auto-generated: getProductsTag
193
- */
194
- async getProductsTag(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
195
- const response = await this.getProductsTagRaw(requestParameters, initOverrides);
196
- return await response.value();
197
- }
198
-
199
158
  /**
200
159
  * Auto-generated: indexTag
201
160
  */
@@ -0,0 +1,84 @@
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 AssetLiteResource
20
+ */
21
+ export interface AssetLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AssetLiteResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AssetLiteResource
32
+ */
33
+ filePath: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AssetLiteResource
38
+ */
39
+ fileName: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AssetLiteResource interface.
44
+ */
45
+ export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('filePath' in value) || value['filePath'] === undefined) return false;
48
+ if (!('fileName' in value) || value['fileName'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AssetLiteResourceFromJSON(json: any): AssetLiteResource {
53
+ return AssetLiteResourceFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResource {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'filePath': json['filePath'],
64
+ 'fileName': json['fileName'],
65
+ };
66
+ }
67
+
68
+ export function AssetLiteResourceToJSON(json: any): AssetLiteResource {
69
+ return AssetLiteResourceToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'filePath': value['filePath'],
81
+ 'fileName': value['fileName'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AssetLiteResource } from './AssetLiteResource';
17
+ import {
18
+ AssetLiteResourceFromJSON,
19
+ AssetLiteResourceFromJSONTyped,
20
+ AssetLiteResourceToJSON,
21
+ AssetLiteResourceToJSONTyped,
22
+ } from './AssetLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssetLiteResourceArrayResponse
28
+ */
29
+ export interface AssetLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<AssetLiteResource>}
33
+ * @memberof AssetLiteResourceArrayResponse
34
+ */
35
+ data?: Array<AssetLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AssetLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfAssetLiteResourceArrayResponse(value: object): value is AssetLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function AssetLiteResourceArrayResponseFromJSON(json: any): AssetLiteResourceArrayResponse {
46
+ return AssetLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AssetLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AssetLiteResourceArrayResponseToJSON(json: any): AssetLiteResourceArrayResponse {
60
+ return AssetLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AssetLiteResourceArrayResponseToJSONTyped(value?: AssetLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(AssetLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -39,34 +39,34 @@ export interface GetAllAttributeRequest {
39
39
  sortDirection?: GetAllAttributeRequestSortDirectionEnum;
40
40
  /**
41
41
  *
42
- * @type {Array<string>}
42
+ * @type {number}
43
43
  * @memberof GetAllAttributeRequest
44
44
  */
45
- type?: Array<string>;
45
+ relatedId?: number;
46
46
  /**
47
47
  *
48
- * @type {Array<string>}
48
+ * @type {string}
49
49
  * @memberof GetAllAttributeRequest
50
50
  */
51
- isFilterable?: Array<string>;
51
+ relatedType?: string;
52
52
  /**
53
53
  *
54
54
  * @type {Array<string>}
55
55
  * @memberof GetAllAttributeRequest
56
56
  */
57
- isExpandedByDefault?: Array<string>;
57
+ type?: Array<string>;
58
58
  /**
59
59
  *
60
- * @type {number}
60
+ * @type {Array<string>}
61
61
  * @memberof GetAllAttributeRequest
62
62
  */
63
- relatedId?: number;
63
+ isFilterable?: Array<string>;
64
64
  /**
65
65
  *
66
- * @type {string}
66
+ * @type {Array<string>}
67
67
  * @memberof GetAllAttributeRequest
68
68
  */
69
- relatedType?: GetAllAttributeRequestRelatedTypeEnum;
69
+ isExpandedByDefault?: Array<string>;
70
70
  }
71
71
 
72
72
 
@@ -90,16 +90,6 @@ export const GetAllAttributeRequestSortDirectionEnum = {
90
90
  } as const;
91
91
  export type GetAllAttributeRequestSortDirectionEnum = typeof GetAllAttributeRequestSortDirectionEnum[keyof typeof GetAllAttributeRequestSortDirectionEnum];
92
92
 
93
- /**
94
- * @export
95
- */
96
- export const GetAllAttributeRequestRelatedTypeEnum = {
97
- ProductType: 'productType',
98
- Category: 'category',
99
- ProductRange: 'productRange'
100
- } as const;
101
- export type GetAllAttributeRequestRelatedTypeEnum = typeof GetAllAttributeRequestRelatedTypeEnum[keyof typeof GetAllAttributeRequestRelatedTypeEnum];
102
-
103
93
 
104
94
  /**
105
95
  * Check if a given object implements the GetAllAttributeRequest interface.
@@ -121,11 +111,11 @@ export function GetAllAttributeRequestFromJSONTyped(json: any, ignoreDiscriminat
121
111
  'search': json['search'] == null ? undefined : json['search'],
122
112
  'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
123
113
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
114
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
115
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
124
116
  'type': json['type'] == null ? undefined : json['type'],
125
117
  'isFilterable': json['is_filterable'] == null ? undefined : json['is_filterable'],
126
118
  'isExpandedByDefault': json['is_expanded_by_default'] == null ? undefined : json['is_expanded_by_default'],
127
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
128
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
129
119
  };
130
120
  }
131
121
 
@@ -143,11 +133,11 @@ export function GetAllAttributeRequestToJSONTyped(value?: GetAllAttributeRequest
143
133
  'search': value['search'],
144
134
  'sortBy': value['sortBy'],
145
135
  'sortDirection': value['sortDirection'],
136
+ 'related_id': value['relatedId'],
137
+ 'related_type': value['relatedType'],
146
138
  'type': value['type'],
147
139
  'is_filterable': value['isFilterable'],
148
140
  'is_expanded_by_default': value['isExpandedByDefault'],
149
- 'related_id': value['relatedId'],
150
- 'related_type': value['relatedType'],
151
141
  };
152
142
  }
153
143
 
@@ -39,22 +39,22 @@ export interface GetAllOverlayTemplateRequest {
39
39
  sortDirection?: GetAllOverlayTemplateRequestSortDirectionEnum;
40
40
  /**
41
41
  *
42
- * @type {Array<string>}
42
+ * @type {number}
43
43
  * @memberof GetAllOverlayTemplateRequest
44
44
  */
45
- sitesId?: Array<string>;
45
+ relatedId?: number;
46
46
  /**
47
47
  *
48
- * @type {number}
48
+ * @type {string}
49
49
  * @memberof GetAllOverlayTemplateRequest
50
50
  */
51
- relatedId?: number;
51
+ relatedType?: string;
52
52
  /**
53
53
  *
54
- * @type {string}
54
+ * @type {Array<string>}
55
55
  * @memberof GetAllOverlayTemplateRequest
56
56
  */
57
- relatedType?: GetAllOverlayTemplateRequestRelatedTypeEnum;
57
+ sitesId?: Array<string>;
58
58
  }
59
59
 
60
60
 
@@ -78,14 +78,6 @@ export const GetAllOverlayTemplateRequestSortDirectionEnum = {
78
78
  } as const;
79
79
  export type GetAllOverlayTemplateRequestSortDirectionEnum = typeof GetAllOverlayTemplateRequestSortDirectionEnum[keyof typeof GetAllOverlayTemplateRequestSortDirectionEnum];
80
80
 
81
- /**
82
- * @export
83
- */
84
- export const GetAllOverlayTemplateRequestRelatedTypeEnum = {
85
- Asset: 'asset'
86
- } as const;
87
- export type GetAllOverlayTemplateRequestRelatedTypeEnum = typeof GetAllOverlayTemplateRequestRelatedTypeEnum[keyof typeof GetAllOverlayTemplateRequestRelatedTypeEnum];
88
-
89
81
 
90
82
  /**
91
83
  * Check if a given object implements the GetAllOverlayTemplateRequest interface.
@@ -107,9 +99,9 @@ export function GetAllOverlayTemplateRequestFromJSONTyped(json: any, ignoreDiscr
107
99
  'search': json['search'] == null ? undefined : json['search'],
108
100
  'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
109
101
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
110
- 'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
111
102
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
112
103
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
104
+ 'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
113
105
  };
114
106
  }
115
107
 
@@ -127,9 +119,9 @@ export function GetAllOverlayTemplateRequestToJSONTyped(value?: GetAllOverlayTem
127
119
  'search': value['search'],
128
120
  'sortBy': value['sortBy'],
129
121
  'sortDirection': value['sortDirection'],
130
- 'sites-id': value['sitesId'],
131
122
  'related_id': value['relatedId'],
132
123
  'related_type': value['relatedType'],
124
+ 'sites-id': value['sitesId'],
133
125
  };
134
126
  }
135
127