@digital8/lighting-illusions-ts-sdk 0.0.464 → 0.0.465
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 +10 -4
- package/dist/apis/ProductApi.d.ts +73 -1
- package/dist/apis/ProductApi.js +292 -0
- package/dist/apis/TagApi.d.ts +5 -5
- package/dist/apis/TagApi.js +1 -1
- package/dist/models/AssetLiteResource.d.ts +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OverlayTemplateListResource.d.ts +7 -0
- package/dist/models/OverlayTemplateListResource.js +5 -0
- package/dist/models/ProductChildListResource.d.ts +12 -0
- package/dist/models/ProductChildListResource.js +8 -0
- package/dist/models/SiteNotificationListResource.d.ts +7 -0
- package/dist/models/SiteNotificationListResource.js +5 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
- package/docs/OverlayTemplateListResource.md +2 -0
- package/docs/ProductApi.md +414 -0
- package/docs/ProductChildListResource.md +4 -0
- package/docs/SiteNotificationListResource.md +2 -0
- package/docs/TagApi.md +7 -7
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +283 -0
- package/src/apis/TagApi.ts +8 -8
- package/src/models/AssetLiteResource.ts +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OverlayTemplateListResource.ts +17 -0
- package/src/models/ProductChildListResource.ts +18 -0
- package/src/models/SiteNotificationListResource.ts +17 -0
- package/src/models/index.ts +1 -1
- package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- package/src/models/LinkProductChildrenTagRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ docs/AssetLiteResource.md
|
|
|
9
9
|
docs/AssetLiteResourceArrayResponse.md
|
|
10
10
|
docs/AssetResource.md
|
|
11
11
|
docs/AssetResourceArrayResponse.md
|
|
12
|
+
docs/AttachAccessoriesProductChildRequest.md
|
|
12
13
|
docs/AttributeApi.md
|
|
13
14
|
docs/AttributeFieldType.md
|
|
14
15
|
docs/AttributeListResource.md
|
|
@@ -50,7 +51,6 @@ docs/IndexSupplierRequest.md
|
|
|
50
51
|
docs/IndexTagRequest.md
|
|
51
52
|
docs/LinkAssetsOverlayTemplateRequest.md
|
|
52
53
|
docs/LinkAttributeProductTypeRequest.md
|
|
53
|
-
docs/LinkProductChildrenTagRequest.md
|
|
54
54
|
docs/LinkProductTypeAttributeRequest.md
|
|
55
55
|
docs/ModelAttributeResource.md
|
|
56
56
|
docs/ModelAttributeResourceArrayResponse.md
|
|
@@ -208,6 +208,7 @@ src/models/AssetLiteResource.ts
|
|
|
208
208
|
src/models/AssetLiteResourceArrayResponse.ts
|
|
209
209
|
src/models/AssetResource.ts
|
|
210
210
|
src/models/AssetResourceArrayResponse.ts
|
|
211
|
+
src/models/AttachAccessoriesProductChildRequest.ts
|
|
211
212
|
src/models/AttributeFieldType.ts
|
|
212
213
|
src/models/AttributeListResource.ts
|
|
213
214
|
src/models/AttributeListResourceArrayResponse.ts
|
|
@@ -247,7 +248,6 @@ src/models/IndexSupplierRequest.ts
|
|
|
247
248
|
src/models/IndexTagRequest.ts
|
|
248
249
|
src/models/LinkAssetsOverlayTemplateRequest.ts
|
|
249
250
|
src/models/LinkAttributeProductTypeRequest.ts
|
|
250
|
-
src/models/LinkProductChildrenTagRequest.ts
|
|
251
251
|
src/models/LinkProductTypeAttributeRequest.ts
|
|
252
252
|
src/models/ModelAttributeResource.ts
|
|
253
253
|
src/models/ModelAttributeResourceArrayResponse.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.465
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -78,10 +78,16 @@ All URIs are relative to *http://localhost/api*
|
|
|
78
78
|
*OverlayTemplateApi* | [**unlinkAssetableOverlayTemplate**](docs/OverlayTemplateApi.md#unlinkassetableoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/remove-assetable | Auto-generated: unlinkAssetableOverlayTemplate
|
|
79
79
|
*OverlayTemplateApi* | [**updateOverlayTemplate**](docs/OverlayTemplateApi.md#updateoverlaytemplateoperation) | **PUT** /admin-api/overlay-template/{overlayTemplate}/update | Auto-generated: updateOverlayTemplate
|
|
80
80
|
*OverlayTemplateApi* | [**updateOverlayTemplateAsset**](docs/OverlayTemplateApi.md#updateoverlaytemplateassetoperation) | **PUT** /admin-api/overlay-template/asset/{overlayTemplateAsset}/update | Auto-generated: updateOverlayTemplateAsset
|
|
81
|
+
*ProductApi* | [**attachAccessoriesProductChild**](docs/ProductApi.md#attachaccessoriesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/accessory/attach | Auto-generated: attachAccessoriesProductChild
|
|
82
|
+
*ProductApi* | [**attachCompatibleProductsProductChild**](docs/ProductApi.md#attachcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/attach | Auto-generated: attachCompatibleProductsProductChild
|
|
81
83
|
*ProductApi* | [**destroyProduct**](docs/ProductApi.md#destroyproduct) | **DELETE** /admin-api/product/parent/{product}/delete | Auto-generated: destroyProduct
|
|
82
84
|
*ProductApi* | [**destroyProductChild**](docs/ProductApi.md#destroyproductchild) | **DELETE** /admin-api/product/children/{productChild}/delete | Auto-generated: destroyProductChild
|
|
85
|
+
*ProductApi* | [**detachAccessoryProductChild**](docs/ProductApi.md#detachaccessoryproductchild) | **DELETE** /admin-api/product/children/{productChild}/accessory/detach/{accessory} | Auto-generated: detachAccessoryProductChild
|
|
86
|
+
*ProductApi* | [**detachCompatibleProductProductChild**](docs/ProductApi.md#detachcompatibleproductproductchild) | **DELETE** /admin-api/product/children/{productChild}/compatible-product/detach/{compatibleProduct} | Auto-generated: detachCompatibleProductProductChild
|
|
87
|
+
*ProductApi* | [**getAccessoriesProductChild**](docs/ProductApi.md#getaccessoriesproductchild) | **POST** /admin-api/product/children/{productChild}/accessory/list | Auto-generated: getAccessoriesProductChild
|
|
83
88
|
*ProductApi* | [**getAllProduct**](docs/ProductApi.md#getallproductoperation) | **POST** /admin-api/product/parent/all | Auto-generated: getAllProduct
|
|
84
89
|
*ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
|
|
90
|
+
*ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
|
|
85
91
|
*ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
|
|
86
92
|
*ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
|
|
87
93
|
*ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
|
|
@@ -119,7 +125,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
119
125
|
*TagApi* | [**destroyTag**](docs/TagApi.md#destroytag) | **DELETE** /admin-api/tag/{tag}/delete | Auto-generated: destroyTag
|
|
120
126
|
*TagApi* | [**getAllTag**](docs/TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag
|
|
121
127
|
*TagApi* | [**indexTag**](docs/TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag
|
|
122
|
-
*TagApi* | [**linkProductChildrenTag**](docs/TagApi.md#
|
|
128
|
+
*TagApi* | [**linkProductChildrenTag**](docs/TagApi.md#linkproductchildrentag) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag
|
|
123
129
|
*TagApi* | [**showTag**](docs/TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag
|
|
124
130
|
*TagApi* | [**storeTag**](docs/TagApi.md#storetagoperation) | **POST** /admin-api/tag/create | Auto-generated: storeTag
|
|
125
131
|
*TagApi* | [**unlinkProductChildTag**](docs/TagApi.md#unlinkproductchildtag) | **POST** /admin-api/tag/{tag}/remove-product-child/{productChild} | Auto-generated: unlinkProductChildTag
|
|
@@ -134,6 +140,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
134
140
|
- [AssetLiteResourceArrayResponse](docs/AssetLiteResourceArrayResponse.md)
|
|
135
141
|
- [AssetResource](docs/AssetResource.md)
|
|
136
142
|
- [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
|
|
143
|
+
- [AttachAccessoriesProductChildRequest](docs/AttachAccessoriesProductChildRequest.md)
|
|
137
144
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
138
145
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
139
146
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -173,7 +180,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
173
180
|
- [IndexTagRequest](docs/IndexTagRequest.md)
|
|
174
181
|
- [LinkAssetsOverlayTemplateRequest](docs/LinkAssetsOverlayTemplateRequest.md)
|
|
175
182
|
- [LinkAttributeProductTypeRequest](docs/LinkAttributeProductTypeRequest.md)
|
|
176
|
-
- [LinkProductChildrenTagRequest](docs/LinkProductChildrenTagRequest.md)
|
|
177
183
|
- [LinkProductTypeAttributeRequest](docs/LinkProductTypeAttributeRequest.md)
|
|
178
184
|
- [ModelAttributeResource](docs/ModelAttributeResource.md)
|
|
179
185
|
- [ModelAttributeResourceArrayResponse](docs/ModelAttributeResourceArrayResponse.md)
|
|
@@ -320,7 +326,7 @@ and is automatically generated by the
|
|
|
320
326
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
321
327
|
|
|
322
328
|
- API version: `1.0.0`
|
|
323
|
-
- Package version: `0.0.
|
|
329
|
+
- Package version: `0.0.465`
|
|
324
330
|
- Generator version: `7.17.0`
|
|
325
331
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
326
332
|
|
|
@@ -10,19 +10,43 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetResourceArrayResponse, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
13
|
+
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
14
|
+
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
|
+
productChild: number;
|
|
16
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface AttachCompatibleProductsProductChildRequest {
|
|
19
|
+
productChild: number;
|
|
20
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
21
|
+
}
|
|
14
22
|
export interface DestroyProductRequest {
|
|
15
23
|
product: number;
|
|
16
24
|
}
|
|
17
25
|
export interface DestroyProductChildRequest {
|
|
18
26
|
productChild: number;
|
|
19
27
|
}
|
|
28
|
+
export interface DetachAccessoryProductChildRequest {
|
|
29
|
+
productChild: number;
|
|
30
|
+
accessory: number;
|
|
31
|
+
}
|
|
32
|
+
export interface DetachCompatibleProductProductChildRequest {
|
|
33
|
+
productChild: number;
|
|
34
|
+
compatibleProduct: number;
|
|
35
|
+
}
|
|
36
|
+
export interface GetAccessoriesProductChildRequest {
|
|
37
|
+
productChild: number;
|
|
38
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
39
|
+
}
|
|
20
40
|
export interface GetAllProductOperationRequest {
|
|
21
41
|
getAllProductRequest?: GetAllProductRequest;
|
|
22
42
|
}
|
|
23
43
|
export interface GetAllProductChildOperationRequest {
|
|
24
44
|
getAllProductChildRequest?: GetAllProductChildRequest;
|
|
25
45
|
}
|
|
46
|
+
export interface GetCompatibleProductsProductChildRequest {
|
|
47
|
+
productChild: number;
|
|
48
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
49
|
+
}
|
|
26
50
|
export interface IndexProductOperationRequest {
|
|
27
51
|
indexProductRequest?: IndexProductRequest;
|
|
28
52
|
}
|
|
@@ -56,6 +80,22 @@ export interface UpdateProductChildOperationRequest {
|
|
|
56
80
|
*
|
|
57
81
|
*/
|
|
58
82
|
export declare class ProductApi extends runtime.BaseAPI {
|
|
83
|
+
/**
|
|
84
|
+
* Auto-generated: attachAccessoriesProductChild
|
|
85
|
+
*/
|
|
86
|
+
attachAccessoriesProductChildRaw(requestParameters: AttachAccessoriesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
87
|
+
/**
|
|
88
|
+
* Auto-generated: attachAccessoriesProductChild
|
|
89
|
+
*/
|
|
90
|
+
attachAccessoriesProductChild(requestParameters: AttachAccessoriesProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Auto-generated: attachCompatibleProductsProductChild
|
|
93
|
+
*/
|
|
94
|
+
attachCompatibleProductsProductChildRaw(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
95
|
+
/**
|
|
96
|
+
* Auto-generated: attachCompatibleProductsProductChild
|
|
97
|
+
*/
|
|
98
|
+
attachCompatibleProductsProductChild(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
59
99
|
/**
|
|
60
100
|
* Auto-generated: destroyProduct
|
|
61
101
|
*/
|
|
@@ -72,6 +112,30 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
72
112
|
* Auto-generated: destroyProductChild
|
|
73
113
|
*/
|
|
74
114
|
destroyProductChild(requestParameters: DestroyProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* Auto-generated: detachAccessoryProductChild
|
|
117
|
+
*/
|
|
118
|
+
detachAccessoryProductChildRaw(requestParameters: DetachAccessoryProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
119
|
+
/**
|
|
120
|
+
* Auto-generated: detachAccessoryProductChild
|
|
121
|
+
*/
|
|
122
|
+
detachAccessoryProductChild(requestParameters: DetachAccessoryProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Auto-generated: detachCompatibleProductProductChild
|
|
125
|
+
*/
|
|
126
|
+
detachCompatibleProductProductChildRaw(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
127
|
+
/**
|
|
128
|
+
* Auto-generated: detachCompatibleProductProductChild
|
|
129
|
+
*/
|
|
130
|
+
detachCompatibleProductProductChild(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Auto-generated: getAccessoriesProductChild
|
|
133
|
+
*/
|
|
134
|
+
getAccessoriesProductChildRaw(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
135
|
+
/**
|
|
136
|
+
* Auto-generated: getAccessoriesProductChild
|
|
137
|
+
*/
|
|
138
|
+
getAccessoriesProductChild(requestParameters: GetAccessoriesProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
75
139
|
/**
|
|
76
140
|
* Auto-generated: getAllProduct
|
|
77
141
|
*/
|
|
@@ -88,6 +152,14 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
88
152
|
* Auto-generated: getAllProductChild
|
|
89
153
|
*/
|
|
90
154
|
getAllProductChild(requestParameters?: GetAllProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildLiteResourceArrayResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* Auto-generated: getCompatibleProductsProductChild
|
|
157
|
+
*/
|
|
158
|
+
getCompatibleProductsProductChildRaw(requestParameters: GetCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
159
|
+
/**
|
|
160
|
+
* Auto-generated: getCompatibleProductsProductChild
|
|
161
|
+
*/
|
|
162
|
+
getCompatibleProductsProductChild(requestParameters: GetCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
91
163
|
/**
|
|
92
164
|
* Auto-generated: indexProduct
|
|
93
165
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -75,6 +75,102 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ProductApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Auto-generated: attachAccessoriesProductChild
|
|
80
|
+
*/
|
|
81
|
+
ProductApi.prototype.attachAccessoriesProductChildRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['productChild'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling attachAccessoriesProductChild().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
urlPath = "/admin-api/product/children/{productChild}/accessory/attach";
|
|
94
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
95
|
+
return [4 /*yield*/, this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.AttachAccessoriesProductChildRequestToJSON)(requestParameters['attachAccessoriesProductChildRequest']),
|
|
101
|
+
}, initOverrides)];
|
|
102
|
+
case 1:
|
|
103
|
+
response = _a.sent();
|
|
104
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Auto-generated: attachAccessoriesProductChild
|
|
111
|
+
*/
|
|
112
|
+
ProductApi.prototype.attachAccessoriesProductChild = function (requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
114
|
+
var response;
|
|
115
|
+
return __generator(this, function (_a) {
|
|
116
|
+
switch (_a.label) {
|
|
117
|
+
case 0: return [4 /*yield*/, this.attachAccessoriesProductChildRaw(requestParameters, initOverrides)];
|
|
118
|
+
case 1:
|
|
119
|
+
response = _a.sent();
|
|
120
|
+
return [4 /*yield*/, response.value()];
|
|
121
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Auto-generated: attachCompatibleProductsProductChild
|
|
128
|
+
*/
|
|
129
|
+
ProductApi.prototype.attachCompatibleProductsProductChildRaw = function (requestParameters, initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
132
|
+
return __generator(this, function (_a) {
|
|
133
|
+
switch (_a.label) {
|
|
134
|
+
case 0:
|
|
135
|
+
if (requestParameters['productChild'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling attachCompatibleProductsProductChild().');
|
|
137
|
+
}
|
|
138
|
+
queryParameters = {};
|
|
139
|
+
headerParameters = {};
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
urlPath = "/admin-api/product/children/{productChild}/compatible-product/attach";
|
|
142
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
143
|
+
return [4 /*yield*/, this.request({
|
|
144
|
+
path: urlPath,
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: (0, index_1.AttachAccessoriesProductChildRequestToJSON)(requestParameters['attachAccessoriesProductChildRequest']),
|
|
149
|
+
}, initOverrides)];
|
|
150
|
+
case 1:
|
|
151
|
+
response = _a.sent();
|
|
152
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Auto-generated: attachCompatibleProductsProductChild
|
|
159
|
+
*/
|
|
160
|
+
ProductApi.prototype.attachCompatibleProductsProductChild = function (requestParameters, initOverrides) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
162
|
+
var response;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
switch (_a.label) {
|
|
165
|
+
case 0: return [4 /*yield*/, this.attachCompatibleProductsProductChildRaw(requestParameters, initOverrides)];
|
|
166
|
+
case 1:
|
|
167
|
+
response = _a.sent();
|
|
168
|
+
return [4 /*yield*/, response.value()];
|
|
169
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
};
|
|
78
174
|
/**
|
|
79
175
|
* Auto-generated: destroyProduct
|
|
80
176
|
*/
|
|
@@ -167,6 +263,154 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
167
263
|
});
|
|
168
264
|
});
|
|
169
265
|
};
|
|
266
|
+
/**
|
|
267
|
+
* Auto-generated: detachAccessoryProductChild
|
|
268
|
+
*/
|
|
269
|
+
ProductApi.prototype.detachAccessoryProductChildRaw = function (requestParameters, initOverrides) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
271
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
switch (_a.label) {
|
|
274
|
+
case 0:
|
|
275
|
+
if (requestParameters['productChild'] == null) {
|
|
276
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling detachAccessoryProductChild().');
|
|
277
|
+
}
|
|
278
|
+
if (requestParameters['accessory'] == null) {
|
|
279
|
+
throw new runtime.RequiredError('accessory', 'Required parameter "accessory" was null or undefined when calling detachAccessoryProductChild().');
|
|
280
|
+
}
|
|
281
|
+
queryParameters = {};
|
|
282
|
+
headerParameters = {};
|
|
283
|
+
urlPath = "/admin-api/product/children/{productChild}/accessory/detach/{accessory}";
|
|
284
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
285
|
+
urlPath = urlPath.replace("{".concat("accessory", "}"), encodeURIComponent(String(requestParameters['accessory'])));
|
|
286
|
+
return [4 /*yield*/, this.request({
|
|
287
|
+
path: urlPath,
|
|
288
|
+
method: 'DELETE',
|
|
289
|
+
headers: headerParameters,
|
|
290
|
+
query: queryParameters,
|
|
291
|
+
}, initOverrides)];
|
|
292
|
+
case 1:
|
|
293
|
+
response = _a.sent();
|
|
294
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Auto-generated: detachAccessoryProductChild
|
|
301
|
+
*/
|
|
302
|
+
ProductApi.prototype.detachAccessoryProductChild = function (requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
304
|
+
var response;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
307
|
+
case 0: return [4 /*yield*/, this.detachAccessoryProductChildRaw(requestParameters, initOverrides)];
|
|
308
|
+
case 1:
|
|
309
|
+
response = _a.sent();
|
|
310
|
+
return [4 /*yield*/, response.value()];
|
|
311
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* Auto-generated: detachCompatibleProductProductChild
|
|
318
|
+
*/
|
|
319
|
+
ProductApi.prototype.detachCompatibleProductProductChildRaw = function (requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
321
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
322
|
+
return __generator(this, function (_a) {
|
|
323
|
+
switch (_a.label) {
|
|
324
|
+
case 0:
|
|
325
|
+
if (requestParameters['productChild'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling detachCompatibleProductProductChild().');
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters['compatibleProduct'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('compatibleProduct', 'Required parameter "compatibleProduct" was null or undefined when calling detachCompatibleProductProductChild().');
|
|
330
|
+
}
|
|
331
|
+
queryParameters = {};
|
|
332
|
+
headerParameters = {};
|
|
333
|
+
urlPath = "/admin-api/product/children/{productChild}/compatible-product/detach/{compatibleProduct}";
|
|
334
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
335
|
+
urlPath = urlPath.replace("{".concat("compatibleProduct", "}"), encodeURIComponent(String(requestParameters['compatibleProduct'])));
|
|
336
|
+
return [4 /*yield*/, this.request({
|
|
337
|
+
path: urlPath,
|
|
338
|
+
method: 'DELETE',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
}, initOverrides)];
|
|
342
|
+
case 1:
|
|
343
|
+
response = _a.sent();
|
|
344
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Auto-generated: detachCompatibleProductProductChild
|
|
351
|
+
*/
|
|
352
|
+
ProductApi.prototype.detachCompatibleProductProductChild = function (requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
354
|
+
var response;
|
|
355
|
+
return __generator(this, function (_a) {
|
|
356
|
+
switch (_a.label) {
|
|
357
|
+
case 0: return [4 /*yield*/, this.detachCompatibleProductProductChildRaw(requestParameters, initOverrides)];
|
|
358
|
+
case 1:
|
|
359
|
+
response = _a.sent();
|
|
360
|
+
return [4 /*yield*/, response.value()];
|
|
361
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Auto-generated: getAccessoriesProductChild
|
|
368
|
+
*/
|
|
369
|
+
ProductApi.prototype.getAccessoriesProductChildRaw = function (requestParameters, initOverrides) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
371
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
372
|
+
return __generator(this, function (_a) {
|
|
373
|
+
switch (_a.label) {
|
|
374
|
+
case 0:
|
|
375
|
+
if (requestParameters['productChild'] == null) {
|
|
376
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling getAccessoriesProductChild().');
|
|
377
|
+
}
|
|
378
|
+
queryParameters = {};
|
|
379
|
+
headerParameters = {};
|
|
380
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
381
|
+
urlPath = "/admin-api/product/children/{productChild}/accessory/list";
|
|
382
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
383
|
+
return [4 /*yield*/, this.request({
|
|
384
|
+
path: urlPath,
|
|
385
|
+
method: 'POST',
|
|
386
|
+
headers: headerParameters,
|
|
387
|
+
query: queryParameters,
|
|
388
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
389
|
+
}, initOverrides)];
|
|
390
|
+
case 1:
|
|
391
|
+
response = _a.sent();
|
|
392
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Auto-generated: getAccessoriesProductChild
|
|
399
|
+
*/
|
|
400
|
+
ProductApi.prototype.getAccessoriesProductChild = function (requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
402
|
+
var response;
|
|
403
|
+
return __generator(this, function (_a) {
|
|
404
|
+
switch (_a.label) {
|
|
405
|
+
case 0: return [4 /*yield*/, this.getAccessoriesProductChildRaw(requestParameters, initOverrides)];
|
|
406
|
+
case 1:
|
|
407
|
+
response = _a.sent();
|
|
408
|
+
return [4 /*yield*/, response.value()];
|
|
409
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
170
414
|
/**
|
|
171
415
|
* Auto-generated: getAllProduct
|
|
172
416
|
*/
|
|
@@ -257,6 +501,54 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
257
501
|
});
|
|
258
502
|
});
|
|
259
503
|
};
|
|
504
|
+
/**
|
|
505
|
+
* Auto-generated: getCompatibleProductsProductChild
|
|
506
|
+
*/
|
|
507
|
+
ProductApi.prototype.getCompatibleProductsProductChildRaw = function (requestParameters, initOverrides) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
509
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
510
|
+
return __generator(this, function (_a) {
|
|
511
|
+
switch (_a.label) {
|
|
512
|
+
case 0:
|
|
513
|
+
if (requestParameters['productChild'] == null) {
|
|
514
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling getCompatibleProductsProductChild().');
|
|
515
|
+
}
|
|
516
|
+
queryParameters = {};
|
|
517
|
+
headerParameters = {};
|
|
518
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
519
|
+
urlPath = "/admin-api/product/children/{productChild}/compatible-product/list";
|
|
520
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
521
|
+
return [4 /*yield*/, this.request({
|
|
522
|
+
path: urlPath,
|
|
523
|
+
method: 'POST',
|
|
524
|
+
headers: headerParameters,
|
|
525
|
+
query: queryParameters,
|
|
526
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
527
|
+
}, initOverrides)];
|
|
528
|
+
case 1:
|
|
529
|
+
response = _a.sent();
|
|
530
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
};
|
|
535
|
+
/**
|
|
536
|
+
* Auto-generated: getCompatibleProductsProductChild
|
|
537
|
+
*/
|
|
538
|
+
ProductApi.prototype.getCompatibleProductsProductChild = function (requestParameters, initOverrides) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
540
|
+
var response;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
switch (_a.label) {
|
|
543
|
+
case 0: return [4 /*yield*/, this.getCompatibleProductsProductChildRaw(requestParameters, initOverrides)];
|
|
544
|
+
case 1:
|
|
545
|
+
response = _a.sent();
|
|
546
|
+
return [4 /*yield*/, response.value()];
|
|
547
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
});
|
|
551
|
+
};
|
|
260
552
|
/**
|
|
261
553
|
* Auto-generated: indexProduct
|
|
262
554
|
*/
|
package/dist/apis/TagApi.d.ts
CHANGED
|
@@ -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,
|
|
13
|
+
import type { AttachAccessoriesProductChildRequest, GenericResponse, IndexTagRequest, PaginatedTagListResourceResponse, ProductChildRelationResourceArrayResponse, StoreTagRequest, TagLiteResourceArrayResponse, TagResource, UpdateTagRequest } from '../models/index';
|
|
14
14
|
export interface DestroyTagRequest {
|
|
15
15
|
tag: number;
|
|
16
16
|
}
|
|
@@ -20,9 +20,9 @@ export interface GetAllTagRequest {
|
|
|
20
20
|
export interface IndexTagOperationRequest {
|
|
21
21
|
indexTagRequest?: IndexTagRequest;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface LinkProductChildrenTagRequest {
|
|
24
24
|
tag: number;
|
|
25
|
-
|
|
25
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
26
26
|
}
|
|
27
27
|
export interface ShowTagRequest {
|
|
28
28
|
tag: number;
|
|
@@ -69,11 +69,11 @@ export declare class TagApi extends runtime.BaseAPI {
|
|
|
69
69
|
/**
|
|
70
70
|
* Auto-generated: linkProductChildrenTag
|
|
71
71
|
*/
|
|
72
|
-
linkProductChildrenTagRaw(requestParameters:
|
|
72
|
+
linkProductChildrenTagRaw(requestParameters: LinkProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>>;
|
|
73
73
|
/**
|
|
74
74
|
* Auto-generated: linkProductChildrenTag
|
|
75
75
|
*/
|
|
76
|
-
linkProductChildrenTag(requestParameters:
|
|
76
|
+
linkProductChildrenTag(requestParameters: LinkProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
|
|
77
77
|
/**
|
|
78
78
|
* Auto-generated: showTag
|
|
79
79
|
*/
|
package/dist/apis/TagApi.js
CHANGED
|
@@ -233,7 +233,7 @@ var TagApi = /** @class */ (function (_super) {
|
|
|
233
233
|
method: 'POST',
|
|
234
234
|
headers: headerParameters,
|
|
235
235
|
query: queryParameters,
|
|
236
|
-
body: (0, index_1.
|
|
236
|
+
body: (0, index_1.AttachAccessoriesProductChildRequestToJSON)(requestParameters['attachAccessoriesProductChildRequest']),
|
|
237
237
|
}, initOverrides)];
|
|
238
238
|
case 1:
|
|
239
239
|
response = _a.sent();
|
|
@@ -33,6 +33,12 @@ export interface AssetLiteResource {
|
|
|
33
33
|
* @memberof AssetLiteResource
|
|
34
34
|
*/
|
|
35
35
|
fileName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssetLiteResource
|
|
40
|
+
*/
|
|
41
|
+
altText: string;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the AssetLiteResource interface.
|
|
@@ -28,6 +28,8 @@ function instanceOfAssetLiteResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
return true;
|
|
32
34
|
}
|
|
33
35
|
function AssetLiteResourceFromJSON(json) {
|
|
@@ -41,6 +43,7 @@ function AssetLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
'id': json['id'],
|
|
42
44
|
'filePath': json['filePath'],
|
|
43
45
|
'fileName': json['fileName'],
|
|
46
|
+
'altText': json['altText'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
function AssetLiteResourceToJSON(json) {
|
|
@@ -55,5 +58,6 @@ function AssetLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
58
|
'id': value['id'],
|
|
56
59
|
'filePath': value['filePath'],
|
|
57
60
|
'fileName': value['fileName'],
|
|
61
|
+
'altText': value['altText'],
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AttachAccessoriesProductChildRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachAccessoriesProductChildRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof AttachAccessoriesProductChildRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachAccessoriesProductChildRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachAccessoriesProductChildRequest(value: object): value is AttachAccessoriesProductChildRequest;
|
|
29
|
+
export declare function AttachAccessoriesProductChildRequestFromJSON(json: any): AttachAccessoriesProductChildRequest;
|
|
30
|
+
export declare function AttachAccessoriesProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAccessoriesProductChildRequest;
|
|
31
|
+
export declare function AttachAccessoriesProductChildRequestToJSON(json: any): AttachAccessoriesProductChildRequest;
|
|
32
|
+
export declare function AttachAccessoriesProductChildRequestToJSONTyped(value?: AttachAccessoriesProductChildRequest | null, ignoreDiscriminator?: boolean): any;
|