@digital8/lighting-illusions-ts-sdk 0.0.1135 → 0.0.1137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -2
- package/README.md +4 -5
- package/dist/apis/OverlayTemplateApi.d.ts +1 -17
- package/dist/apis/OverlayTemplateApi.js +0 -61
- package/dist/apis/ProductApi.d.ts +8 -8
- package/dist/apis/ProductApi.js +3 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/IndexProductChildRequest.d.ts +190 -0
- package/dist/models/{GetProductChildrenOverlayTemplateRequest.js → IndexProductChildRequest.js} +19 -17
- package/dist/models/ProductChildOverlayRelationResource.d.ts +12 -25
- package/dist/models/ProductChildOverlayRelationResource.js +17 -24
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/{GetProductChildrenOverlayTemplateRequest.md → IndexProductChildRequest.md} +6 -4
- package/docs/OverlayTemplateApi.md +0 -69
- package/docs/ProductApi.md +15 -15
- package/docs/ProductChildOverlayRelationResource.md +9 -13
- package/package.json +1 -1
- package/src/apis/OverlayTemplateApi.ts +0 -59
- package/src/apis/ProductApi.ts +13 -13
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/{GetProductChildrenOverlayTemplateRequest.ts → IndexProductChildRequest.ts} +49 -41
- package/src/models/ProductChildOverlayRelationResource.ts +31 -55
- package/src/models/index.ts +1 -1
- package/dist/models/GetProductChildrenOverlayTemplateRequest.d.ts +0 -184
package/.openapi-generator/FILES
CHANGED
|
@@ -85,7 +85,6 @@ docs/GetAllProductRequest.md
|
|
|
85
85
|
docs/GetAllProductTypeRequest.md
|
|
86
86
|
docs/GetAllSupplierRequest.md
|
|
87
87
|
docs/GetHierarchyProductCategoryRequest.md
|
|
88
|
-
docs/GetProductChildrenOverlayTemplateRequest.md
|
|
89
88
|
docs/GlobalSearchCategoryResource.md
|
|
90
89
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
91
90
|
docs/GlobalSearchProductResource.md
|
|
@@ -104,6 +103,7 @@ docs/IndexDocumentRequest.md
|
|
|
104
103
|
docs/IndexExternalApiLogRequest.md
|
|
105
104
|
docs/IndexOverlayTemplateRequest.md
|
|
106
105
|
docs/IndexProductCategoryRequest.md
|
|
106
|
+
docs/IndexProductChildRequest.md
|
|
107
107
|
docs/IndexProductRequest.md
|
|
108
108
|
docs/IndexProductTypeRequest.md
|
|
109
109
|
docs/IndexSiteNotificationRequest.md
|
|
@@ -400,7 +400,6 @@ src/models/GetAllProductRequest.ts
|
|
|
400
400
|
src/models/GetAllProductTypeRequest.ts
|
|
401
401
|
src/models/GetAllSupplierRequest.ts
|
|
402
402
|
src/models/GetHierarchyProductCategoryRequest.ts
|
|
403
|
-
src/models/GetProductChildrenOverlayTemplateRequest.ts
|
|
404
403
|
src/models/GlobalSearchCategoryResource.ts
|
|
405
404
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
406
405
|
src/models/GlobalSearchProductResource.ts
|
|
@@ -418,6 +417,7 @@ src/models/IndexDocumentRequest.ts
|
|
|
418
417
|
src/models/IndexExternalApiLogRequest.ts
|
|
419
418
|
src/models/IndexOverlayTemplateRequest.ts
|
|
420
419
|
src/models/IndexProductCategoryRequest.ts
|
|
420
|
+
src/models/IndexProductChildRequest.ts
|
|
421
421
|
src/models/IndexProductRequest.ts
|
|
422
422
|
src/models/IndexProductTypeRequest.ts
|
|
423
423
|
src/models/IndexSiteNotificationRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1137
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -93,7 +93,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
93
93
|
*OverlayTemplateApi* | [**detachAssetOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-asset/{asset} | Auto-generated: detachAssetOverlayTemplate
|
|
94
94
|
*OverlayTemplateApi* | [**detachAssetableOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetableoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-assetable | Auto-generated: detachAssetableOverlayTemplate
|
|
95
95
|
*OverlayTemplateApi* | [**getAllOverlayTemplate**](docs/OverlayTemplateApi.md#getalloverlaytemplateoperation) | **POST** /admin-api/overlay-template/all | Auto-generated: getAllOverlayTemplate
|
|
96
|
-
*OverlayTemplateApi* | [**getProductChildrenOverlayTemplate**](docs/OverlayTemplateApi.md#getproductchildrenoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/product-children | Auto-generated: getProductChildrenOverlayTemplate
|
|
97
96
|
*OverlayTemplateApi* | [**indexOverlayTemplate**](docs/OverlayTemplateApi.md#indexoverlaytemplateoperation) | **POST** /admin-api/overlay-template/list | Auto-generated: indexOverlayTemplate
|
|
98
97
|
*OverlayTemplateApi* | [**showOverlayTemplate**](docs/OverlayTemplateApi.md#showoverlaytemplate) | **GET** /admin-api/overlay-template/{overlayTemplate} | Auto-generated: showOverlayTemplate
|
|
99
98
|
*OverlayTemplateApi* | [**storeOverlayTemplate**](docs/OverlayTemplateApi.md#storeoverlaytemplateoperation) | **POST** /admin-api/overlay-template/create | Auto-generated: storeOverlayTemplate
|
|
@@ -113,7 +112,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
113
112
|
*ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
|
|
114
113
|
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
115
114
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
116
|
-
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#
|
|
115
|
+
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
117
116
|
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
118
117
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
119
118
|
*ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
|
|
@@ -249,7 +248,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
249
248
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
250
249
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
251
250
|
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
252
|
-
- [GetProductChildrenOverlayTemplateRequest](docs/GetProductChildrenOverlayTemplateRequest.md)
|
|
253
251
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
254
252
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
255
253
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -267,6 +265,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
267
265
|
- [IndexExternalApiLogRequest](docs/IndexExternalApiLogRequest.md)
|
|
268
266
|
- [IndexOverlayTemplateRequest](docs/IndexOverlayTemplateRequest.md)
|
|
269
267
|
- [IndexProductCategoryRequest](docs/IndexProductCategoryRequest.md)
|
|
268
|
+
- [IndexProductChildRequest](docs/IndexProductChildRequest.md)
|
|
270
269
|
- [IndexProductRequest](docs/IndexProductRequest.md)
|
|
271
270
|
- [IndexProductTypeRequest](docs/IndexProductTypeRequest.md)
|
|
272
271
|
- [IndexSiteNotificationRequest](docs/IndexSiteNotificationRequest.md)
|
|
@@ -475,7 +474,7 @@ and is automatically generated by the
|
|
|
475
474
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
476
475
|
|
|
477
476
|
- API version: `1.0.0`
|
|
478
|
-
- Package version: `0.0.
|
|
477
|
+
- Package version: `0.0.1137`
|
|
479
478
|
- Generator version: `7.20.0`
|
|
480
479
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
481
480
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest,
|
|
13
|
+
import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest, IndexOverlayTemplateRequest, OverlayTemplateLiteResourceArrayResponse, OverlayTemplateResource, PaginatedOverlayTemplateListResourceResponse, StoreOverlayTemplateAssetRequest, StoreOverlayTemplateRequest, UpdateOverlayTemplateAssetRequest, UpdateOverlayTemplateRequest } from '../models/index';
|
|
14
14
|
export interface AttachAssetsOverlayTemplateOperationRequest {
|
|
15
15
|
overlayTemplate: number;
|
|
16
16
|
attachAssetsOverlayTemplateRequest?: AttachAssetsOverlayTemplateRequest;
|
|
@@ -32,10 +32,6 @@ export interface DetachAssetableOverlayTemplateOperationRequest {
|
|
|
32
32
|
export interface GetAllOverlayTemplateOperationRequest {
|
|
33
33
|
getAllOverlayTemplateRequest?: GetAllOverlayTemplateRequest;
|
|
34
34
|
}
|
|
35
|
-
export interface GetProductChildrenOverlayTemplateOperationRequest {
|
|
36
|
-
overlayTemplate: number;
|
|
37
|
-
getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
|
|
38
|
-
}
|
|
39
35
|
export interface IndexOverlayTemplateOperationRequest {
|
|
40
36
|
indexOverlayTemplateRequest?: IndexOverlayTemplateRequest;
|
|
41
37
|
}
|
|
@@ -132,18 +128,6 @@ export declare class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
132
128
|
* Auto-generated: getAllOverlayTemplate
|
|
133
129
|
*/
|
|
134
130
|
getAllOverlayTemplate(requestParameters?: GetAllOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OverlayTemplateLiteResourceArrayResponse>;
|
|
135
|
-
/**
|
|
136
|
-
* Creates request options for getProductChildrenOverlayTemplate without sending the request
|
|
137
|
-
*/
|
|
138
|
-
getProductChildrenOverlayTemplateRequestOpts(requestParameters: GetProductChildrenOverlayTemplateOperationRequest): Promise<runtime.RequestOpts>;
|
|
139
|
-
/**
|
|
140
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
141
|
-
*/
|
|
142
|
-
getProductChildrenOverlayTemplateRaw(requestParameters: GetProductChildrenOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildOverlayRelationResourceResponse>>;
|
|
143
|
-
/**
|
|
144
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
145
|
-
*/
|
|
146
|
-
getProductChildrenOverlayTemplate(requestParameters: GetProductChildrenOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildOverlayRelationResourceResponse>;
|
|
147
131
|
/**
|
|
148
132
|
* Creates request options for indexOverlayTemplate without sending the request
|
|
149
133
|
*/
|
|
@@ -436,67 +436,6 @@ var OverlayTemplateApi = /** @class */ (function (_super) {
|
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
/**
|
|
440
|
-
* Creates request options for getProductChildrenOverlayTemplate without sending the request
|
|
441
|
-
*/
|
|
442
|
-
OverlayTemplateApi.prototype.getProductChildrenOverlayTemplateRequestOpts = function (requestParameters) {
|
|
443
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
444
|
-
var queryParameters, headerParameters, urlPath;
|
|
445
|
-
return __generator(this, function (_a) {
|
|
446
|
-
if (requestParameters['overlayTemplate'] == null) {
|
|
447
|
-
throw new runtime.RequiredError('overlayTemplate', 'Required parameter "overlayTemplate" was null or undefined when calling getProductChildrenOverlayTemplate().');
|
|
448
|
-
}
|
|
449
|
-
queryParameters = {};
|
|
450
|
-
headerParameters = {};
|
|
451
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
452
|
-
urlPath = "/admin-api/overlay-template/{overlayTemplate}/product-children";
|
|
453
|
-
urlPath = urlPath.replace("{".concat("overlayTemplate", "}"), encodeURIComponent(String(requestParameters['overlayTemplate'])));
|
|
454
|
-
return [2 /*return*/, {
|
|
455
|
-
path: urlPath,
|
|
456
|
-
method: 'POST',
|
|
457
|
-
headers: headerParameters,
|
|
458
|
-
query: queryParameters,
|
|
459
|
-
body: (0, index_1.GetProductChildrenOverlayTemplateRequestToJSON)(requestParameters['getProductChildrenOverlayTemplateRequest']),
|
|
460
|
-
}];
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
};
|
|
464
|
-
/**
|
|
465
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
466
|
-
*/
|
|
467
|
-
OverlayTemplateApi.prototype.getProductChildrenOverlayTemplateRaw = function (requestParameters, initOverrides) {
|
|
468
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
469
|
-
var requestOptions, response;
|
|
470
|
-
return __generator(this, function (_a) {
|
|
471
|
-
switch (_a.label) {
|
|
472
|
-
case 0: return [4 /*yield*/, this.getProductChildrenOverlayTemplateRequestOpts(requestParameters)];
|
|
473
|
-
case 1:
|
|
474
|
-
requestOptions = _a.sent();
|
|
475
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
476
|
-
case 2:
|
|
477
|
-
response = _a.sent();
|
|
478
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildOverlayRelationResourceResponseFromJSON)(jsonValue); })];
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
});
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* Auto-generated: getProductChildrenOverlayTemplate
|
|
485
|
-
*/
|
|
486
|
-
OverlayTemplateApi.prototype.getProductChildrenOverlayTemplate = function (requestParameters, initOverrides) {
|
|
487
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
488
|
-
var response;
|
|
489
|
-
return __generator(this, function (_a) {
|
|
490
|
-
switch (_a.label) {
|
|
491
|
-
case 0: return [4 /*yield*/, this.getProductChildrenOverlayTemplateRaw(requestParameters, initOverrides)];
|
|
492
|
-
case 1:
|
|
493
|
-
response = _a.sent();
|
|
494
|
-
return [4 /*yield*/, response.value()];
|
|
495
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
439
|
/**
|
|
501
440
|
* Creates request options for indexOverlayTemplate without sending the request
|
|
502
441
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest,
|
|
13
|
+
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
14
14
|
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
15
|
productChild: number;
|
|
16
16
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
@@ -43,7 +43,7 @@ export interface DetachDocumentsProductChildOperationRequest {
|
|
|
43
43
|
}
|
|
44
44
|
export interface GetAccessoriesProductChildRequest {
|
|
45
45
|
productChild: number;
|
|
46
|
-
|
|
46
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
47
47
|
}
|
|
48
48
|
export interface GetAllProductOperationRequest {
|
|
49
49
|
getAllProductRequest?: GetAllProductRequest;
|
|
@@ -53,13 +53,13 @@ export interface GetAllProductChildOperationRequest {
|
|
|
53
53
|
}
|
|
54
54
|
export interface GetCompatibleProductsProductChildRequest {
|
|
55
55
|
productChild: number;
|
|
56
|
-
|
|
56
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
57
57
|
}
|
|
58
58
|
export interface IndexProductOperationRequest {
|
|
59
59
|
indexProductRequest?: IndexProductRequest;
|
|
60
60
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
61
|
+
export interface IndexProductChildOperationRequest {
|
|
62
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
63
63
|
}
|
|
64
64
|
export interface ShowAssetsProductChildRequest {
|
|
65
65
|
productChild: number;
|
|
@@ -247,15 +247,15 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
247
247
|
/**
|
|
248
248
|
* Creates request options for indexProductChild without sending the request
|
|
249
249
|
*/
|
|
250
|
-
indexProductChildRequestOpts(requestParameters:
|
|
250
|
+
indexProductChildRequestOpts(requestParameters: IndexProductChildOperationRequest): Promise<runtime.RequestOpts>;
|
|
251
251
|
/**
|
|
252
252
|
* Auto-generated: indexProductChild
|
|
253
253
|
*/
|
|
254
|
-
indexProductChildRaw(requestParameters:
|
|
254
|
+
indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
255
255
|
/**
|
|
256
256
|
* Auto-generated: indexProductChild
|
|
257
257
|
*/
|
|
258
|
-
indexProductChild(requestParameters?:
|
|
258
|
+
indexProductChild(requestParameters?: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
259
259
|
/**
|
|
260
260
|
* Creates request options for showAssetsProductChild without sending the request
|
|
261
261
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -583,7 +583,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
583
583
|
method: 'POST',
|
|
584
584
|
headers: headerParameters,
|
|
585
585
|
query: queryParameters,
|
|
586
|
-
body: (0, index_1.
|
|
586
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
587
587
|
}];
|
|
588
588
|
});
|
|
589
589
|
});
|
|
@@ -760,7 +760,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
760
760
|
method: 'POST',
|
|
761
761
|
headers: headerParameters,
|
|
762
762
|
query: queryParameters,
|
|
763
|
-
body: (0, index_1.
|
|
763
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
764
764
|
}];
|
|
765
765
|
});
|
|
766
766
|
});
|
|
@@ -875,7 +875,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
875
875
|
method: 'POST',
|
|
876
876
|
headers: headerParameters,
|
|
877
877
|
query: queryParameters,
|
|
878
|
-
body: (0, index_1.
|
|
878
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
879
879
|
}];
|
|
880
880
|
});
|
|
881
881
|
});
|
|
@@ -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']),
|
|
@@ -81,6 +81,12 @@ export interface GetAllProductChildRequest {
|
|
|
81
81
|
* @memberof GetAllProductChildRequest
|
|
82
82
|
*/
|
|
83
83
|
supplierId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof GetAllProductChildRequest
|
|
88
|
+
*/
|
|
89
|
+
tagId?: Array<string>;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {Array<string>}
|
|
@@ -77,6 +77,7 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
77
|
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
78
78
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
79
79
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
80
|
+
'tagId': json['tag-id'] == null ? undefined : json['tag-id'],
|
|
80
81
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
81
82
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
82
83
|
'availableSitesId': json['availableSites-id'] == null ? undefined : json['availableSites-id'],
|
|
@@ -105,6 +106,7 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
105
106
|
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
106
107
|
'category-id': value['categoryId'],
|
|
107
108
|
'supplier-id': value['supplierId'],
|
|
109
|
+
'tag-id': value['tagId'],
|
|
108
110
|
'productType-id': value['productTypeId'],
|
|
109
111
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
110
112
|
'availableSites-id': value['availableSitesId'],
|
|
@@ -0,0 +1,190 @@
|
|
|
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 IndexProductChildRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexProductChildRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexProductChildRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexProductChildRequestSortByEnum}
|
|
27
|
+
* @memberof IndexProductChildRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexProductChildRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexProductChildRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexProductChildRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexProductChildRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexProductChildRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexProductChildRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexProductChildRequest
|
|
52
|
+
*/
|
|
53
|
+
siteDetailsSiteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IndexProductChildRequest
|
|
58
|
+
*/
|
|
59
|
+
isDisabled?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof IndexProductChildRequest
|
|
64
|
+
*/
|
|
65
|
+
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IndexProductChildRequest
|
|
70
|
+
*/
|
|
71
|
+
categoryId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof IndexProductChildRequest
|
|
76
|
+
*/
|
|
77
|
+
supplierId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof IndexProductChildRequest
|
|
82
|
+
*/
|
|
83
|
+
tagId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof IndexProductChildRequest
|
|
88
|
+
*/
|
|
89
|
+
productTypeId?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<string>}
|
|
93
|
+
* @memberof IndexProductChildRequest
|
|
94
|
+
*/
|
|
95
|
+
parentIsAccessory?: Array<string>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<string>}
|
|
99
|
+
* @memberof IndexProductChildRequest
|
|
100
|
+
*/
|
|
101
|
+
availableSitesId?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Array<string>}
|
|
105
|
+
* @memberof IndexProductChildRequest
|
|
106
|
+
*/
|
|
107
|
+
enabledSitesId?: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Array<string>}
|
|
111
|
+
* @memberof IndexProductChildRequest
|
|
112
|
+
*/
|
|
113
|
+
siteDetailsSeoHasSeoTitle?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Array<string>}
|
|
117
|
+
* @memberof IndexProductChildRequest
|
|
118
|
+
*/
|
|
119
|
+
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof IndexProductChildRequest
|
|
124
|
+
*/
|
|
125
|
+
relatedId?: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {IndexProductChildRequestRelatedTypeEnum}
|
|
129
|
+
* @memberof IndexProductChildRequest
|
|
130
|
+
*/
|
|
131
|
+
relatedType?: IndexProductChildRequestRelatedTypeEnum;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof IndexProductChildRequest
|
|
136
|
+
*/
|
|
137
|
+
includesRelations?: boolean;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @export
|
|
141
|
+
*/
|
|
142
|
+
export declare const IndexProductChildRequestSortByEnum: {
|
|
143
|
+
readonly Id: "id";
|
|
144
|
+
readonly Name: "name";
|
|
145
|
+
readonly ParentName: "parent-name";
|
|
146
|
+
readonly SiteDetailsName: "siteDetails-name";
|
|
147
|
+
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
148
|
+
readonly Sku: "sku";
|
|
149
|
+
readonly Model: "model";
|
|
150
|
+
readonly NetsuiteSyncNetsuiteId: "netsuiteSync-netsuite_id";
|
|
151
|
+
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
152
|
+
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
153
|
+
readonly CreatedAt: "created_at";
|
|
154
|
+
readonly UpdatedAt: "updated_at";
|
|
155
|
+
};
|
|
156
|
+
export type IndexProductChildRequestSortByEnum = typeof IndexProductChildRequestSortByEnum[keyof typeof IndexProductChildRequestSortByEnum];
|
|
157
|
+
/**
|
|
158
|
+
* @export
|
|
159
|
+
*/
|
|
160
|
+
export declare const IndexProductChildRequestSortDirectionEnum: {
|
|
161
|
+
readonly Asc: "asc";
|
|
162
|
+
readonly Desc: "desc";
|
|
163
|
+
};
|
|
164
|
+
export type IndexProductChildRequestSortDirectionEnum = typeof IndexProductChildRequestSortDirectionEnum[keyof typeof IndexProductChildRequestSortDirectionEnum];
|
|
165
|
+
/**
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
export declare const IndexProductChildRequestRelatedTypeEnum: {
|
|
169
|
+
readonly Accessory: "accessory";
|
|
170
|
+
readonly Attribute: "attribute";
|
|
171
|
+
readonly AttributeValue: "attributeValue";
|
|
172
|
+
readonly CompatibleProduct: "compatibleProduct";
|
|
173
|
+
readonly Category: "category";
|
|
174
|
+
readonly AutomatedCategory: "automatedCategory";
|
|
175
|
+
readonly Document: "document";
|
|
176
|
+
readonly OverlayTemplate: "overlayTemplate";
|
|
177
|
+
readonly ProductType: "productType";
|
|
178
|
+
readonly Supplier: "supplier";
|
|
179
|
+
readonly Tag: "tag";
|
|
180
|
+
readonly Site: "site";
|
|
181
|
+
};
|
|
182
|
+
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
183
|
+
/**
|
|
184
|
+
* Check if a given object implements the IndexProductChildRequest interface.
|
|
185
|
+
*/
|
|
186
|
+
export declare function instanceOfIndexProductChildRequest(value: object): value is IndexProductChildRequest;
|
|
187
|
+
export declare function IndexProductChildRequestFromJSON(json: any): IndexProductChildRequest;
|
|
188
|
+
export declare function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductChildRequest;
|
|
189
|
+
export declare function IndexProductChildRequestToJSON(json: any): IndexProductChildRequest;
|
|
190
|
+
export declare function IndexProductChildRequestToJSONTyped(value?: IndexProductChildRequest | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{GetProductChildrenOverlayTemplateRequest.js → IndexProductChildRequest.js}
RENAMED
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.IndexProductChildRequestRelatedTypeEnum = exports.IndexProductChildRequestSortDirectionEnum = exports.IndexProductChildRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexProductChildRequest = instanceOfIndexProductChildRequest;
|
|
18
|
+
exports.IndexProductChildRequestFromJSON = IndexProductChildRequestFromJSON;
|
|
19
|
+
exports.IndexProductChildRequestFromJSONTyped = IndexProductChildRequestFromJSONTyped;
|
|
20
|
+
exports.IndexProductChildRequestToJSON = IndexProductChildRequestToJSON;
|
|
21
|
+
exports.IndexProductChildRequestToJSONTyped = IndexProductChildRequestToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.IndexProductChildRequestSortByEnum = {
|
|
26
26
|
Id: 'id',
|
|
27
27
|
Name: 'name',
|
|
28
28
|
ParentName: 'parent-name',
|
|
@@ -39,14 +39,14 @@ exports.GetProductChildrenOverlayTemplateRequestSortByEnum = {
|
|
|
39
39
|
/**
|
|
40
40
|
* @export
|
|
41
41
|
*/
|
|
42
|
-
exports.
|
|
42
|
+
exports.IndexProductChildRequestSortDirectionEnum = {
|
|
43
43
|
Asc: 'asc',
|
|
44
44
|
Desc: 'desc'
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* @export
|
|
48
48
|
*/
|
|
49
|
-
exports.
|
|
49
|
+
exports.IndexProductChildRequestRelatedTypeEnum = {
|
|
50
50
|
Accessory: 'accessory',
|
|
51
51
|
Attribute: 'attribute',
|
|
52
52
|
AttributeValue: 'attributeValue',
|
|
@@ -61,15 +61,15 @@ exports.GetProductChildrenOverlayTemplateRequestRelatedTypeEnum = {
|
|
|
61
61
|
Site: 'site'
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
64
|
-
* Check if a given object implements the
|
|
64
|
+
* Check if a given object implements the IndexProductChildRequest interface.
|
|
65
65
|
*/
|
|
66
|
-
function
|
|
66
|
+
function instanceOfIndexProductChildRequest(value) {
|
|
67
67
|
return true;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function IndexProductChildRequestFromJSON(json) {
|
|
70
|
+
return IndexProductChildRequestFromJSONTyped(json, false);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
73
73
|
if (json == null) {
|
|
74
74
|
return json;
|
|
75
75
|
}
|
|
@@ -84,6 +84,7 @@ function GetProductChildrenOverlayTemplateRequestFromJSONTyped(json, ignoreDiscr
|
|
|
84
84
|
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
85
85
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
86
86
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
87
|
+
'tagId': json['tag-id'] == null ? undefined : json['tag-id'],
|
|
87
88
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
88
89
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
89
90
|
'availableSitesId': json['availableSites-id'] == null ? undefined : json['availableSites-id'],
|
|
@@ -95,10 +96,10 @@ function GetProductChildrenOverlayTemplateRequestFromJSONTyped(json, ignoreDiscr
|
|
|
95
96
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
99
|
+
function IndexProductChildRequestToJSON(json) {
|
|
100
|
+
return IndexProductChildRequestToJSONTyped(json, false);
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
102
103
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
103
104
|
if (value == null) {
|
|
104
105
|
return value;
|
|
@@ -114,6 +115,7 @@ function GetProductChildrenOverlayTemplateRequestToJSONTyped(value, ignoreDiscri
|
|
|
114
115
|
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
115
116
|
'category-id': value['categoryId'],
|
|
116
117
|
'supplier-id': value['supplierId'],
|
|
118
|
+
'tag-id': value['tagId'],
|
|
117
119
|
'productType-id': value['productTypeId'],
|
|
118
120
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
119
121
|
'availableSites-id': value['availableSitesId'],
|