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

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 (83) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +6 -2
  3. package/dist/apis/TagApi.d.ts +14 -3
  4. package/dist/apis/TagApi.js +46 -1
  5. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  6. package/dist/models/ExternalApiLogResource.js +1 -3
  7. package/dist/models/GetAllAttributeRequest.d.ts +10 -1
  8. package/dist/models/GetAllAttributeRequest.js +9 -1
  9. package/dist/models/GetAllOverlayTemplateRequest.d.ts +8 -1
  10. package/dist/models/GetAllOverlayTemplateRequest.js +7 -1
  11. package/dist/models/GetAllProductChildRequest.d.ts +10 -1
  12. package/dist/models/GetAllProductChildRequest.js +9 -1
  13. package/dist/models/GetAllProductRequest.d.ts +9 -1
  14. package/dist/models/GetAllProductRequest.js +8 -1
  15. package/dist/models/GetAllProductTypeRequest.d.ts +9 -1
  16. package/dist/models/GetAllProductTypeRequest.js +8 -1
  17. package/dist/models/GetAllSupplierRequest.d.ts +8 -1
  18. package/dist/models/GetAllSupplierRequest.js +7 -1
  19. package/dist/models/IndexAttributeRequest.d.ts +12 -0
  20. package/dist/models/IndexAttributeRequest.js +4 -0
  21. package/dist/models/IndexExternalApiLogRequest.d.ts +12 -0
  22. package/dist/models/IndexExternalApiLogRequest.js +4 -0
  23. package/dist/models/IndexOverlayTemplateRequest.d.ts +12 -0
  24. package/dist/models/IndexOverlayTemplateRequest.js +4 -0
  25. package/dist/models/IndexProductChildRequest.d.ts +4 -4
  26. package/dist/models/IndexProductChildRequest.js +2 -2
  27. package/dist/models/IndexProductTypeRequest.d.ts +19 -0
  28. package/dist/models/IndexProductTypeRequest.js +11 -1
  29. package/dist/models/IndexSiteNotificationRequest.d.ts +12 -0
  30. package/dist/models/IndexSiteNotificationRequest.js +4 -0
  31. package/dist/models/IndexSiteRequest.d.ts +12 -0
  32. package/dist/models/IndexSiteRequest.js +4 -0
  33. package/dist/models/IndexSupplierRequest.d.ts +12 -0
  34. package/dist/models/IndexSupplierRequest.js +4 -0
  35. package/dist/models/IndexTagRequest.d.ts +19 -0
  36. package/dist/models/IndexTagRequest.js +11 -1
  37. package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
  38. package/dist/models/PaginatedTagListResourceResponse.js +57 -0
  39. package/dist/models/TagListResource.d.ts +57 -0
  40. package/dist/models/TagListResource.js +68 -0
  41. package/dist/models/TagListResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/TagListResourceArrayResponse.js +50 -0
  43. package/dist/models/TagLiteResource.d.ts +0 -7
  44. package/dist/models/TagLiteResource.js +0 -5
  45. package/dist/models/index.d.ts +3 -0
  46. package/dist/models/index.js +3 -0
  47. package/docs/IndexAttributeRequest.md +4 -0
  48. package/docs/IndexExternalApiLogRequest.md +4 -0
  49. package/docs/IndexOverlayTemplateRequest.md +4 -0
  50. package/docs/IndexProductChildRequest.md +2 -2
  51. package/docs/IndexProductTypeRequest.md +4 -0
  52. package/docs/IndexSiteNotificationRequest.md +4 -0
  53. package/docs/IndexSiteRequest.md +4 -0
  54. package/docs/IndexSupplierRequest.md +4 -0
  55. package/docs/IndexTagRequest.md +4 -0
  56. package/docs/PaginatedTagListResourceResponse.md +36 -0
  57. package/docs/TagApi.md +69 -3
  58. package/docs/TagListResource.md +42 -0
  59. package/docs/TagListResourceArrayResponse.md +34 -0
  60. package/docs/TagLiteResource.md +0 -2
  61. package/package.json +1 -1
  62. package/src/apis/TagApi.ts +42 -6
  63. package/src/models/ExternalApiLogResource.ts +2 -3
  64. package/src/models/GetAllAttributeRequest.ts +11 -1
  65. package/src/models/GetAllOverlayTemplateRequest.ts +9 -1
  66. package/src/models/GetAllProductChildRequest.ts +11 -1
  67. package/src/models/GetAllProductRequest.ts +10 -1
  68. package/src/models/GetAllProductTypeRequest.ts +10 -1
  69. package/src/models/GetAllSupplierRequest.ts +9 -1
  70. package/src/models/IndexAttributeRequest.ts +16 -0
  71. package/src/models/IndexExternalApiLogRequest.ts +16 -0
  72. package/src/models/IndexOverlayTemplateRequest.ts +16 -0
  73. package/src/models/IndexProductChildRequest.ts +6 -6
  74. package/src/models/IndexProductTypeRequest.ts +24 -0
  75. package/src/models/IndexSiteNotificationRequest.ts +16 -0
  76. package/src/models/IndexSiteRequest.ts +16 -0
  77. package/src/models/IndexSupplierRequest.ts +16 -0
  78. package/src/models/IndexTagRequest.ts +24 -0
  79. package/src/models/PaginatedTagListResourceResponse.ts +90 -0
  80. package/src/models/TagListResource.ts +110 -0
  81. package/src/models/TagListResourceArrayResponse.ts +73 -0
  82. package/src/models/TagLiteResource.ts +0 -17
  83. package/src/models/index.ts +3 -0
@@ -77,6 +77,7 @@ docs/PaginatedSiteResourceResponse.md
77
77
  docs/PaginatedSupplierFrontendResourceResponse.md
78
78
  docs/PaginatedSupplierLiteResourceResponse.md
79
79
  docs/PaginatedSupplierResourceResponse.md
80
+ docs/PaginatedTagListResourceResponse.md
80
81
  docs/PaginatedTagLiteResourceResponse.md
81
82
  docs/PaginatedTagResourceResponse.md
82
83
  docs/PagingMetadata.md
@@ -138,6 +139,8 @@ docs/SupplierLiteResourceArrayResponse.md
138
139
  docs/SupplierResource.md
139
140
  docs/SupplierResourceArrayResponse.md
140
141
  docs/TagApi.md
142
+ docs/TagListResource.md
143
+ docs/TagListResourceArrayResponse.md
141
144
  docs/TagLiteResource.md
142
145
  docs/TagLiteResourceArrayResponse.md
143
146
  docs/TagResource.md
@@ -245,6 +248,7 @@ src/models/PaginatedSiteResourceResponse.ts
245
248
  src/models/PaginatedSupplierFrontendResourceResponse.ts
246
249
  src/models/PaginatedSupplierLiteResourceResponse.ts
247
250
  src/models/PaginatedSupplierResourceResponse.ts
251
+ src/models/PaginatedTagListResourceResponse.ts
248
252
  src/models/PaginatedTagLiteResourceResponse.ts
249
253
  src/models/PaginatedTagResourceResponse.ts
250
254
  src/models/PagingMetadata.ts
@@ -301,6 +305,8 @@ src/models/SupplierLiteResource.ts
301
305
  src/models/SupplierLiteResourceArrayResponse.ts
302
306
  src/models/SupplierResource.ts
303
307
  src/models/SupplierResourceArrayResponse.ts
308
+ src/models/TagListResource.ts
309
+ src/models/TagListResourceArrayResponse.ts
304
310
  src/models/TagLiteResource.ts
305
311
  src/models/TagLiteResourceArrayResponse.ts
306
312
  src/models/TagResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.444
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.446
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -121,6 +121,7 @@ All URIs are relative to *http://localhost/api*
121
121
  *TagApi* | [**getAllTag**](docs/TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag
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
+ *TagApi* | [**searchExcludingRelationsTag**](docs/TagApi.md#searchexcludingrelationstag) | **POST** /admin-api/tag/search-excluding-relations | Auto-generated: searchExcludingRelationsTag
124
125
  *TagApi* | [**showTag**](docs/TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag
125
126
  *TagApi* | [**storeTag**](docs/TagApi.md#storetagoperation) | **POST** /admin-api/tag/create | Auto-generated: storeTag
126
127
  *TagApi* | [**unlinkProductChildTag**](docs/TagApi.md#unlinkproductchildtag) | **POST** /admin-api/tag/{tag}/remove-product-child/{productChild} | Auto-generated: unlinkProductChildTag
@@ -200,6 +201,7 @@ All URIs are relative to *http://localhost/api*
200
201
  - [PaginatedSupplierFrontendResourceResponse](docs/PaginatedSupplierFrontendResourceResponse.md)
201
202
  - [PaginatedSupplierLiteResourceResponse](docs/PaginatedSupplierLiteResourceResponse.md)
202
203
  - [PaginatedSupplierResourceResponse](docs/PaginatedSupplierResourceResponse.md)
204
+ - [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
203
205
  - [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
204
206
  - [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
205
207
  - [PagingMetadata](docs/PagingMetadata.md)
@@ -256,6 +258,8 @@ All URIs are relative to *http://localhost/api*
256
258
  - [SupplierLiteResourceArrayResponse](docs/SupplierLiteResourceArrayResponse.md)
257
259
  - [SupplierResource](docs/SupplierResource.md)
258
260
  - [SupplierResourceArrayResponse](docs/SupplierResourceArrayResponse.md)
261
+ - [TagListResource](docs/TagListResource.md)
262
+ - [TagListResourceArrayResponse](docs/TagListResourceArrayResponse.md)
259
263
  - [TagLiteResource](docs/TagLiteResource.md)
260
264
  - [TagLiteResourceArrayResponse](docs/TagLiteResourceArrayResponse.md)
261
265
  - [TagResource](docs/TagResource.md)
@@ -293,7 +297,7 @@ and is automatically generated by the
293
297
  [OpenAPI Generator](https://openapi-generator.tech) project:
294
298
 
295
299
  - API version: `1.0.0`
296
- - Package version: `0.0.444`
300
+ - Package version: `0.0.446`
297
301
  - Generator version: `7.17.0`
298
302
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
299
303
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GenericResponse, IndexTagRequest, LinkProductChildrenTagRequest, PaginatedTagResourceResponse, ProductChildRelationResourceArrayResponse, StoreTagRequest, TagLiteResourceArrayResponse, TagResource, UpdateTagRequest } from '../models/index';
13
+ import type { GenericResponse, IndexTagRequest, LinkProductChildrenTagRequest, PaginatedTagListResourceResponse, ProductChildRelationResourceArrayResponse, StoreTagRequest, TagLiteResourceArrayResponse, TagResource, UpdateTagRequest } from '../models/index';
14
14
  export interface DestroyTagRequest {
15
15
  tag: number;
16
16
  }
@@ -24,6 +24,9 @@ export interface LinkProductChildrenTagOperationRequest {
24
24
  tag: number;
25
25
  linkProductChildrenTagRequest?: LinkProductChildrenTagRequest;
26
26
  }
27
+ export interface SearchExcludingRelationsTagRequest {
28
+ indexTagRequest?: IndexTagRequest;
29
+ }
27
30
  export interface ShowTagRequest {
28
31
  tag: number;
29
32
  }
@@ -61,11 +64,11 @@ export declare class TagApi extends runtime.BaseAPI {
61
64
  /**
62
65
  * Auto-generated: indexTag
63
66
  */
64
- indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagResourceResponse>>;
67
+ indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>>;
65
68
  /**
66
69
  * Auto-generated: indexTag
67
70
  */
68
- indexTag(requestParameters?: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagResourceResponse>;
71
+ indexTag(requestParameters?: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse>;
69
72
  /**
70
73
  * Auto-generated: linkProductChildrenTag
71
74
  */
@@ -74,6 +77,14 @@ export declare class TagApi extends runtime.BaseAPI {
74
77
  * Auto-generated: linkProductChildrenTag
75
78
  */
76
79
  linkProductChildrenTag(requestParameters: LinkProductChildrenTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
80
+ /**
81
+ * Auto-generated: searchExcludingRelationsTag
82
+ */
83
+ searchExcludingRelationsTagRaw(requestParameters: SearchExcludingRelationsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>>;
84
+ /**
85
+ * Auto-generated: searchExcludingRelationsTag
86
+ */
87
+ searchExcludingRelationsTag(requestParameters?: SearchExcludingRelationsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse>;
77
88
  /**
78
89
  * Auto-generated: showTag
79
90
  */
@@ -188,7 +188,7 @@ var TagApi = /** @class */ (function (_super) {
188
188
  }, initOverrides)];
189
189
  case 1:
190
190
  response = _a.sent();
191
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedTagResourceResponseFromJSON)(jsonValue); })];
191
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedTagListResourceResponseFromJSON)(jsonValue); })];
192
192
  }
193
193
  });
194
194
  });
@@ -259,6 +259,51 @@ var TagApi = /** @class */ (function (_super) {
259
259
  });
260
260
  });
261
261
  };
262
+ /**
263
+ * Auto-generated: searchExcludingRelationsTag
264
+ */
265
+ TagApi.prototype.searchExcludingRelationsTagRaw = function (requestParameters, initOverrides) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var queryParameters, headerParameters, urlPath, response;
268
+ return __generator(this, function (_a) {
269
+ switch (_a.label) {
270
+ case 0:
271
+ queryParameters = {};
272
+ headerParameters = {};
273
+ headerParameters['Content-Type'] = 'application/json';
274
+ urlPath = "/admin-api/tag/search-excluding-relations";
275
+ return [4 /*yield*/, this.request({
276
+ path: urlPath,
277
+ method: 'POST',
278
+ headers: headerParameters,
279
+ query: queryParameters,
280
+ body: (0, index_1.IndexTagRequestToJSON)(requestParameters['indexTagRequest']),
281
+ }, initOverrides)];
282
+ case 1:
283
+ response = _a.sent();
284
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedTagListResourceResponseFromJSON)(jsonValue); })];
285
+ }
286
+ });
287
+ });
288
+ };
289
+ /**
290
+ * Auto-generated: searchExcludingRelationsTag
291
+ */
292
+ TagApi.prototype.searchExcludingRelationsTag = function () {
293
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
294
+ var response;
295
+ if (requestParameters === void 0) { requestParameters = {}; }
296
+ return __generator(this, function (_a) {
297
+ switch (_a.label) {
298
+ case 0: return [4 /*yield*/, this.searchExcludingRelationsTagRaw(requestParameters, initOverrides)];
299
+ case 1:
300
+ response = _a.sent();
301
+ return [4 /*yield*/, response.value()];
302
+ case 2: return [2 /*return*/, _a.sent()];
303
+ }
304
+ });
305
+ });
306
+ };
262
307
  /**
263
308
  * Auto-generated: showTag
264
309
  */
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ 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;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -44,7 +44,7 @@ export interface GetAllAttributeRequest {
44
44
  * @type {string}
45
45
  * @memberof GetAllAttributeRequest
46
46
  */
47
- relatedType?: string;
47
+ relatedType?: GetAllAttributeRequestRelatedTypeEnum;
48
48
  /**
49
49
  *
50
50
  * @type {Array<string>}
@@ -82,6 +82,15 @@ 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];
85
94
  /**
86
95
  * Check if a given object implements the GetAllAttributeRequest interface.
87
96
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllAttributeRequestSortDirectionEnum = exports.GetAllAttributeRequestSortByEnum = void 0;
16
+ exports.GetAllAttributeRequestRelatedTypeEnum = exports.GetAllAttributeRequestSortDirectionEnum = exports.GetAllAttributeRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllAttributeRequest = instanceOfGetAllAttributeRequest;
18
18
  exports.GetAllAttributeRequestFromJSON = GetAllAttributeRequestFromJSON;
19
19
  exports.GetAllAttributeRequestFromJSONTyped = GetAllAttributeRequestFromJSONTyped;
@@ -35,6 +35,14 @@ 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
+ };
38
46
  /**
39
47
  * Check if a given object implements the GetAllAttributeRequest interface.
40
48
  */
@@ -44,7 +44,7 @@ export interface GetAllOverlayTemplateRequest {
44
44
  * @type {string}
45
45
  * @memberof GetAllOverlayTemplateRequest
46
46
  */
47
- relatedType?: string;
47
+ relatedType?: GetAllOverlayTemplateRequestRelatedTypeEnum;
48
48
  /**
49
49
  *
50
50
  * @type {Array<string>}
@@ -70,6 +70,13 @@ 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];
73
80
  /**
74
81
  * Check if a given object implements the GetAllOverlayTemplateRequest interface.
75
82
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllOverlayTemplateRequestSortDirectionEnum = exports.GetAllOverlayTemplateRequestSortByEnum = void 0;
16
+ exports.GetAllOverlayTemplateRequestRelatedTypeEnum = exports.GetAllOverlayTemplateRequestSortDirectionEnum = exports.GetAllOverlayTemplateRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllOverlayTemplateRequest = instanceOfGetAllOverlayTemplateRequest;
18
18
  exports.GetAllOverlayTemplateRequestFromJSON = GetAllOverlayTemplateRequestFromJSON;
19
19
  exports.GetAllOverlayTemplateRequestFromJSONTyped = GetAllOverlayTemplateRequestFromJSONTyped;
@@ -35,6 +35,12 @@ exports.GetAllOverlayTemplateRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.GetAllOverlayTemplateRequestRelatedTypeEnum = {
42
+ Asset: 'asset'
43
+ };
38
44
  /**
39
45
  * Check if a given object implements the GetAllOverlayTemplateRequest interface.
40
46
  */
@@ -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
  */
@@ -44,7 +44,7 @@ export interface GetAllProductRequest {
44
44
  * @type {string}
45
45
  * @memberof GetAllProductRequest
46
46
  */
47
- relatedType?: string;
47
+ relatedType?: GetAllProductRequestRelatedTypeEnum;
48
48
  /**
49
49
  *
50
50
  * @type {Array<string>}
@@ -95,6 +95,14 @@ export declare const GetAllProductRequestSortDirectionEnum: {
95
95
  readonly Desc: "desc";
96
96
  };
97
97
  export type GetAllProductRequestSortDirectionEnum = typeof GetAllProductRequestSortDirectionEnum[keyof typeof GetAllProductRequestSortDirectionEnum];
98
+ /**
99
+ * @export
100
+ */
101
+ export declare const GetAllProductRequestRelatedTypeEnum: {
102
+ readonly Supplier: "supplier";
103
+ readonly ProductType: "productType";
104
+ };
105
+ export type GetAllProductRequestRelatedTypeEnum = typeof GetAllProductRequestRelatedTypeEnum[keyof typeof GetAllProductRequestRelatedTypeEnum];
98
106
  /**
99
107
  * Check if a given object implements the GetAllProductRequest interface.
100
108
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllProductRequestSortDirectionEnum = exports.GetAllProductRequestSortByEnum = void 0;
16
+ exports.GetAllProductRequestRelatedTypeEnum = exports.GetAllProductRequestSortDirectionEnum = exports.GetAllProductRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllProductRequest = instanceOfGetAllProductRequest;
18
18
  exports.GetAllProductRequestFromJSON = GetAllProductRequestFromJSON;
19
19
  exports.GetAllProductRequestFromJSONTyped = GetAllProductRequestFromJSONTyped;
@@ -36,6 +36,13 @@ exports.GetAllProductRequestSortDirectionEnum = {
36
36
  Asc: 'asc',
37
37
  Desc: 'desc'
38
38
  };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.GetAllProductRequestRelatedTypeEnum = {
43
+ Supplier: 'supplier',
44
+ ProductType: 'productType'
45
+ };
39
46
  /**
40
47
  * Check if a given object implements the GetAllProductRequest interface.
41
48
  */
@@ -44,7 +44,7 @@ export interface GetAllProductTypeRequest {
44
44
  * @type {string}
45
45
  * @memberof GetAllProductTypeRequest
46
46
  */
47
- relatedType?: string;
47
+ relatedType?: GetAllProductTypeRequestRelatedTypeEnum;
48
48
  }
49
49
  /**
50
50
  * @export
@@ -64,6 +64,14 @@ export declare const GetAllProductTypeRequestSortDirectionEnum: {
64
64
  readonly Desc: "desc";
65
65
  };
66
66
  export type GetAllProductTypeRequestSortDirectionEnum = typeof GetAllProductTypeRequestSortDirectionEnum[keyof typeof GetAllProductTypeRequestSortDirectionEnum];
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const GetAllProductTypeRequestRelatedTypeEnum: {
71
+ readonly Attribute: "attribute";
72
+ readonly Product: "product";
73
+ };
74
+ export type GetAllProductTypeRequestRelatedTypeEnum = typeof GetAllProductTypeRequestRelatedTypeEnum[keyof typeof GetAllProductTypeRequestRelatedTypeEnum];
67
75
  /**
68
76
  * Check if a given object implements the GetAllProductTypeRequest interface.
69
77
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllProductTypeRequestSortDirectionEnum = exports.GetAllProductTypeRequestSortByEnum = void 0;
16
+ exports.GetAllProductTypeRequestRelatedTypeEnum = exports.GetAllProductTypeRequestSortDirectionEnum = exports.GetAllProductTypeRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllProductTypeRequest = instanceOfGetAllProductTypeRequest;
18
18
  exports.GetAllProductTypeRequestFromJSON = GetAllProductTypeRequestFromJSON;
19
19
  exports.GetAllProductTypeRequestFromJSONTyped = GetAllProductTypeRequestFromJSONTyped;
@@ -35,6 +35,13 @@ exports.GetAllProductTypeRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.GetAllProductTypeRequestRelatedTypeEnum = {
42
+ Attribute: 'attribute',
43
+ Product: 'product'
44
+ };
38
45
  /**
39
46
  * Check if a given object implements the GetAllProductTypeRequest interface.
40
47
  */
@@ -44,7 +44,7 @@ export interface GetAllSupplierRequest {
44
44
  * @type {string}
45
45
  * @memberof GetAllSupplierRequest
46
46
  */
47
- relatedType?: string;
47
+ relatedType?: GetAllSupplierRequestRelatedTypeEnum;
48
48
  }
49
49
  /**
50
50
  * @export
@@ -66,6 +66,13 @@ export declare const GetAllSupplierRequestSortDirectionEnum: {
66
66
  readonly Desc: "desc";
67
67
  };
68
68
  export type GetAllSupplierRequestSortDirectionEnum = typeof GetAllSupplierRequestSortDirectionEnum[keyof typeof GetAllSupplierRequestSortDirectionEnum];
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const GetAllSupplierRequestRelatedTypeEnum: {
73
+ readonly Product: "product";
74
+ };
75
+ export type GetAllSupplierRequestRelatedTypeEnum = typeof GetAllSupplierRequestRelatedTypeEnum[keyof typeof GetAllSupplierRequestRelatedTypeEnum];
69
76
  /**
70
77
  * Check if a given object implements the GetAllSupplierRequest interface.
71
78
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllSupplierRequestSortDirectionEnum = exports.GetAllSupplierRequestSortByEnum = void 0;
16
+ exports.GetAllSupplierRequestRelatedTypeEnum = exports.GetAllSupplierRequestSortDirectionEnum = exports.GetAllSupplierRequestSortByEnum = void 0;
17
17
  exports.instanceOfGetAllSupplierRequest = instanceOfGetAllSupplierRequest;
18
18
  exports.GetAllSupplierRequestFromJSON = GetAllSupplierRequestFromJSON;
19
19
  exports.GetAllSupplierRequestFromJSONTyped = GetAllSupplierRequestFromJSONTyped;
@@ -37,6 +37,12 @@ exports.GetAllSupplierRequestSortDirectionEnum = {
37
37
  Asc: 'asc',
38
38
  Desc: 'desc'
39
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.GetAllSupplierRequestRelatedTypeEnum = {
44
+ Product: 'product'
45
+ };
40
46
  /**
41
47
  * Check if a given object implements the GetAllSupplierRequest interface.
42
48
  */
@@ -63,6 +63,18 @@ export interface IndexAttributeRequest {
63
63
  * @memberof IndexAttributeRequest
64
64
  */
65
65
  isExpandedByDefault?: Array<string>;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof IndexAttributeRequest
70
+ */
71
+ relatedId?: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof IndexAttributeRequest
76
+ */
77
+ relatedType?: string;
66
78
  }
67
79
  /**
68
80
  * @export
@@ -57,6 +57,8 @@ function IndexAttributeRequestFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'type': json['type'] == null ? undefined : json['type'],
58
58
  'isFilterable': json['is_filterable'] == null ? undefined : json['is_filterable'],
59
59
  'isExpandedByDefault': json['is_expanded_by_default'] == null ? undefined : json['is_expanded_by_default'],
60
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
61
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
60
62
  };
61
63
  }
62
64
  function IndexAttributeRequestToJSON(json) {
@@ -76,5 +78,7 @@ function IndexAttributeRequestToJSONTyped(value, ignoreDiscriminator) {
76
78
  'type': value['type'],
77
79
  'is_filterable': value['isFilterable'],
78
80
  'is_expanded_by_default': value['isExpandedByDefault'],
81
+ 'related_id': value['relatedId'],
82
+ 'related_type': value['relatedType'],
79
83
  };
80
84
  }
@@ -81,6 +81,18 @@ export interface IndexExternalApiLogRequest {
81
81
  * @memberof IndexExternalApiLogRequest
82
82
  */
83
83
  siteId?: Array<string>;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof IndexExternalApiLogRequest
88
+ */
89
+ relatedId?: number;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof IndexExternalApiLogRequest
94
+ */
95
+ relatedType?: string;
84
96
  }
85
97
  /**
86
98
  * @export
@@ -63,6 +63,8 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
64
64
  'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
65
65
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
66
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
66
68
  };
67
69
  }
68
70
  function IndexExternalApiLogRequestToJSON(json) {
@@ -85,5 +87,7 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
85
87
  'external_api_loggable_type': value['externalApiLoggableType'],
86
88
  'external_api_loggable_id': value['externalApiLoggableId'],
87
89
  'site_id': value['siteId'],
90
+ 'related_id': value['relatedId'],
91
+ 'related_type': value['relatedType'],
88
92
  };
89
93
  }
@@ -51,6 +51,18 @@ export interface IndexOverlayTemplateRequest {
51
51
  * @memberof IndexOverlayTemplateRequest
52
52
  */
53
53
  sitesId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof IndexOverlayTemplateRequest
58
+ */
59
+ relatedId?: number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof IndexOverlayTemplateRequest
64
+ */
65
+ relatedType?: string;
54
66
  }
55
67
  /**
56
68
  * @export
@@ -55,6 +55,8 @@ function IndexOverlayTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'perPage': json['per_page'] == null ? undefined : json['per_page'],
56
56
  'page': json['page'] == null ? undefined : json['page'],
57
57
  'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
58
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
59
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
58
60
  };
59
61
  }
60
62
  function IndexOverlayTemplateRequestToJSON(json) {
@@ -72,5 +74,7 @@ function IndexOverlayTemplateRequestToJSONTyped(value, ignoreDiscriminator) {
72
74
  'per_page': value['perPage'],
73
75
  'page': value['page'],
74
76
  'sites-id': value['sitesId'],
77
+ 'related_id': value['relatedId'],
78
+ 'related_type': value['relatedType'],
75
79
  };
76
80
  }
@@ -77,16 +77,16 @@ export interface IndexProductChildRequest {
77
77
  hasNetsuiteId?: Array<string>;
78
78
  /**
79
79
  *
80
- * @type {string}
80
+ * @type {number}
81
81
  * @memberof IndexProductChildRequest
82
82
  */
83
- relatedType?: IndexProductChildRequestRelatedTypeEnum;
83
+ relatedId?: number;
84
84
  /**
85
85
  *
86
- * @type {number}
86
+ * @type {string}
87
87
  * @memberof IndexProductChildRequest
88
88
  */
89
- relatedId?: number;
89
+ relatedType?: IndexProductChildRequestRelatedTypeEnum;
90
90
  }
91
91
  /**
92
92
  * @export
@@ -76,8 +76,8 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
76
76
  'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
77
77
  'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
78
78
  'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
79
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
80
79
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
80
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
81
81
  };
82
82
  }
83
83
  function IndexProductChildRequestToJSON(json) {
@@ -99,7 +99,7 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
99
99
  'siteDetails-site_id': value['siteDetailsSiteId'],
100
100
  'is_disabled': value['isDisabled'],
101
101
  'has_netsuite_id': value['hasNetsuiteId'],
102
- 'related_type': value['relatedType'],
103
102
  'related_id': value['relatedId'],
103
+ 'related_type': value['relatedType'],
104
104
  };
105
105
  }