@digital8/lighting-illusions-ts-sdk 0.0.656 → 0.0.657
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 +8 -6
- package/README.md +7 -7
- package/dist/apis/ProductApi.d.ts +1 -25
- package/dist/apis/ProductApi.js +0 -96
- package/dist/apis/ProductChildSiteDetailApi.d.ts +42 -0
- package/dist/apis/ProductChildSiteDetailApi.js +176 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequest.js +52 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.d.ts +38 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.js +53 -0
- package/dist/models/DetachDocumentsProductChildSiteDetailRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductChildSiteDetailRequest.js +51 -0
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +3 -3
- package/docs/{AttachDocumentsProductChildRequest.md → AttachDocumentsProductChildSiteDetailRequest.md} +5 -5
- package/docs/{AttachDocumentsProductChildRequestDocumentsInner.md → AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md} +4 -4
- package/docs/{DetachDocumentsProductChildRequest.md → DetachDocumentsProductChildSiteDetailRequest.md} +4 -4
- package/docs/ProductApi.md +0 -138
- package/docs/ProductChildSiteDetailApi.md +146 -0
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +0 -96
- package/src/apis/ProductChildSiteDetailApi.ts +126 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AttachDocumentsProductChildSiteDetailRequest.ts +74 -0
- package/src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts +74 -0
- package/src/models/DetachDocumentsProductChildSiteDetailRequest.ts +66 -0
- package/src/models/index.ts +3 -3
- package/dist/models/AttachDocumentsProductChildRequest.d.ts +0 -33
- package/dist/models/AttachDocumentsProductChildRequest.js +0 -52
- package/dist/models/AttachDocumentsProductChildRequestDocumentsInner.d.ts +0 -38
- package/dist/models/AttachDocumentsProductChildRequestDocumentsInner.js +0 -53
- package/dist/models/DetachDocumentsProductChildRequest.d.ts +0 -32
- package/dist/models/DetachDocumentsProductChildRequest.js +0 -51
- package/src/models/AttachDocumentsProductChildRequest.ts +0 -74
- package/src/models/AttachDocumentsProductChildRequestDocumentsInner.ts +0 -74
- package/src/models/DetachDocumentsProductChildRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -16,8 +16,8 @@ docs/AttachAssetsOverlayTemplateRequest.md
|
|
|
16
16
|
docs/AttachAttributeProductTypeRequest.md
|
|
17
17
|
docs/AttachDocumentablesDocumentRequest.md
|
|
18
18
|
docs/AttachDocumentablesDocumentRequestDocumentablesInner.md
|
|
19
|
-
docs/
|
|
20
|
-
docs/
|
|
19
|
+
docs/AttachDocumentsProductChildSiteDetailRequest.md
|
|
20
|
+
docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md
|
|
21
21
|
docs/AttachProductTypeAttributeRequest.md
|
|
22
22
|
docs/AttachProductsProductCategoryRequest.md
|
|
23
23
|
docs/AttributeApi.md
|
|
@@ -54,7 +54,7 @@ docs/DestroyAttributeValueRequest.md
|
|
|
54
54
|
docs/DetachAssetableOverlayTemplateRequest.md
|
|
55
55
|
docs/DetachDocumentablesDocumentRequest.md
|
|
56
56
|
docs/DetachDocumentablesDocumentRequestDocumentablesInner.md
|
|
57
|
-
docs/
|
|
57
|
+
docs/DetachDocumentsProductChildSiteDetailRequest.md
|
|
58
58
|
docs/DetachProductsProductCategoryRequest.md
|
|
59
59
|
docs/DocumentApi.md
|
|
60
60
|
docs/DocumentFileForUploadResource.md
|
|
@@ -188,6 +188,7 @@ docs/ProductChildRelationResource.md
|
|
|
188
188
|
docs/ProductChildRelationResourceArrayResponse.md
|
|
189
189
|
docs/ProductChildResource.md
|
|
190
190
|
docs/ProductChildResourceArrayResponse.md
|
|
191
|
+
docs/ProductChildSiteDetailApi.md
|
|
191
192
|
docs/ProductChildSiteDetailLiteResource.md
|
|
192
193
|
docs/ProductChildSiteDetailLiteResourceArrayResponse.md
|
|
193
194
|
docs/ProductChildSiteDetailResource.md
|
|
@@ -306,6 +307,7 @@ src/apis/GoogleCategoryApi.ts
|
|
|
306
307
|
src/apis/OverlayTemplateApi.ts
|
|
307
308
|
src/apis/ProductApi.ts
|
|
308
309
|
src/apis/ProductCategoryApi.ts
|
|
310
|
+
src/apis/ProductChildSiteDetailApi.ts
|
|
309
311
|
src/apis/ProductTypeApi.ts
|
|
310
312
|
src/apis/SiteApi.ts
|
|
311
313
|
src/apis/SupplierApi.ts
|
|
@@ -325,8 +327,8 @@ src/models/AttachAssetsOverlayTemplateRequest.ts
|
|
|
325
327
|
src/models/AttachAttributeProductTypeRequest.ts
|
|
326
328
|
src/models/AttachDocumentablesDocumentRequest.ts
|
|
327
329
|
src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
328
|
-
src/models/
|
|
329
|
-
src/models/
|
|
330
|
+
src/models/AttachDocumentsProductChildSiteDetailRequest.ts
|
|
331
|
+
src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts
|
|
330
332
|
src/models/AttachProductTypeAttributeRequest.ts
|
|
331
333
|
src/models/AttachProductsProductCategoryRequest.ts
|
|
332
334
|
src/models/AttributeFieldType.ts
|
|
@@ -361,7 +363,7 @@ src/models/DestroyAttributeValueRequest.ts
|
|
|
361
363
|
src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
362
364
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
363
365
|
src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
364
|
-
src/models/
|
|
366
|
+
src/models/DetachDocumentsProductChildSiteDetailRequest.ts
|
|
365
367
|
src/models/DetachProductsProductCategoryRequest.ts
|
|
366
368
|
src/models/DocumentFileForUploadResource.ts
|
|
367
369
|
src/models/DocumentFileForUploadResourceArrayResponse.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.657
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -96,12 +96,10 @@ All URIs are relative to *http://localhost/api*
|
|
|
96
96
|
*OverlayTemplateApi* | [**updateOverlayTemplateAsset**](docs/OverlayTemplateApi.md#updateoverlaytemplateassetoperation) | **PUT** /admin-api/overlay-template/asset/{overlayTemplateAsset}/update | Auto-generated: updateOverlayTemplateAsset
|
|
97
97
|
*ProductApi* | [**attachAccessoriesProductChild**](docs/ProductApi.md#attachaccessoriesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/accessory/attach | Auto-generated: attachAccessoriesProductChild
|
|
98
98
|
*ProductApi* | [**attachCompatibleProductsProductChild**](docs/ProductApi.md#attachcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/attach | Auto-generated: attachCompatibleProductsProductChild
|
|
99
|
-
*ProductApi* | [**attachDocumentsProductChild**](docs/ProductApi.md#attachdocumentsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attach-documents | Auto-generated: attachDocumentsProductChild
|
|
100
99
|
*ProductApi* | [**destroyProduct**](docs/ProductApi.md#destroyproduct) | **DELETE** /admin-api/product/parent/{product}/delete | Auto-generated: destroyProduct
|
|
101
100
|
*ProductApi* | [**destroyProductChild**](docs/ProductApi.md#destroyproductchild) | **DELETE** /admin-api/product/children/{productChild}/delete | Auto-generated: destroyProductChild
|
|
102
101
|
*ProductApi* | [**detachAccessoryProductChild**](docs/ProductApi.md#detachaccessoryproductchild) | **DELETE** /admin-api/product/children/{productChild}/accessory/detach/{accessory} | Auto-generated: detachAccessoryProductChild
|
|
103
102
|
*ProductApi* | [**detachCompatibleProductProductChild**](docs/ProductApi.md#detachcompatibleproductproductchild) | **DELETE** /admin-api/product/children/{productChild}/compatible-product/detach/{compatibleProduct} | Auto-generated: detachCompatibleProductProductChild
|
|
104
|
-
*ProductApi* | [**detachDocumentsProductChild**](docs/ProductApi.md#detachdocumentsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/detach-documents | Auto-generated: detachDocumentsProductChild
|
|
105
103
|
*ProductApi* | [**getAccessoriesProductChild**](docs/ProductApi.md#getaccessoriesproductchild) | **POST** /admin-api/product/children/{productChild}/accessory/list | Auto-generated: getAccessoriesProductChild
|
|
106
104
|
*ProductApi* | [**getAllProduct**](docs/ProductApi.md#getallproductoperation) | **POST** /admin-api/product/parent/all | Auto-generated: getAllProduct
|
|
107
105
|
*ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
|
|
@@ -127,6 +125,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
127
125
|
*ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
|
|
128
126
|
*ProductCategoryApi* | [**storeProductCategory**](docs/ProductCategoryApi.md#storeproductcategoryoperation) | **POST** /admin-api/product-category/create | Auto-generated: storeProductCategory
|
|
129
127
|
*ProductCategoryApi* | [**updateProductCategory**](docs/ProductCategoryApi.md#updateproductcategoryoperation) | **PUT** /admin-api/product-category/{productCategory}/update | Auto-generated: updateProductCategory
|
|
128
|
+
*ProductChildSiteDetailApi* | [**attachDocumentsProductChildSiteDetail**](docs/ProductChildSiteDetailApi.md#attachdocumentsproductchildsitedetailoperation) | **POST** /admin-api/product-child-site-detail/{productChildSiteDetail}/attach-documents | Auto-generated: attachDocumentsProductChildSiteDetail
|
|
129
|
+
*ProductChildSiteDetailApi* | [**detachDocumentsProductChildSiteDetail**](docs/ProductChildSiteDetailApi.md#detachdocumentsproductchildsitedetailoperation) | **POST** /admin-api/product-child-site-detail/{productChildSiteDetail}/detach-documents | Auto-generated: detachDocumentsProductChildSiteDetail
|
|
130
130
|
*ProductTypeApi* | [**attachAttributeProductType**](docs/ProductTypeApi.md#attachattributeproducttypeoperation) | **POST** /admin-api/product-type/{productType}/attach-attribute | Auto-generated: attachAttributeProductType
|
|
131
131
|
*ProductTypeApi* | [**destroyProductType**](docs/ProductTypeApi.md#destroyproducttype) | **DELETE** /admin-api/product-type/{productType}/delete | Auto-generated: destroyProductType
|
|
132
132
|
*ProductTypeApi* | [**detachAttributeProductType**](docs/ProductTypeApi.md#detachattributeproducttype) | **POST** /admin-api/product-type/{productType}/detach-attribute/{attribute} | Auto-generated: detachAttributeProductType
|
|
@@ -177,8 +177,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
177
177
|
- [AttachAttributeProductTypeRequest](docs/AttachAttributeProductTypeRequest.md)
|
|
178
178
|
- [AttachDocumentablesDocumentRequest](docs/AttachDocumentablesDocumentRequest.md)
|
|
179
179
|
- [AttachDocumentablesDocumentRequestDocumentablesInner](docs/AttachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
180
|
-
- [
|
|
181
|
-
- [
|
|
180
|
+
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
181
|
+
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
182
182
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
183
183
|
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
184
184
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
@@ -213,7 +213,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
213
213
|
- [DetachAssetableOverlayTemplateRequest](docs/DetachAssetableOverlayTemplateRequest.md)
|
|
214
214
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
215
215
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
216
|
-
- [
|
|
216
|
+
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
217
217
|
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
218
218
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
219
219
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
@@ -458,7 +458,7 @@ and is automatically generated by the
|
|
|
458
458
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
459
459
|
|
|
460
460
|
- API version: `1.0.0`
|
|
461
|
-
- Package version: `0.0.
|
|
461
|
+
- Package version: `0.0.657`
|
|
462
462
|
- Generator version: `7.19.0`
|
|
463
463
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
464
464
|
|
|
@@ -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,
|
|
13
|
+
import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, 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;
|
|
@@ -19,10 +19,6 @@ export interface AttachCompatibleProductsProductChildRequest {
|
|
|
19
19
|
productChild: number;
|
|
20
20
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
21
21
|
}
|
|
22
|
-
export interface AttachDocumentsProductChildOperationRequest {
|
|
23
|
-
productChild: number;
|
|
24
|
-
attachDocumentsProductChildRequest?: AttachDocumentsProductChildRequest;
|
|
25
|
-
}
|
|
26
22
|
export interface DestroyProductRequest {
|
|
27
23
|
product: number;
|
|
28
24
|
}
|
|
@@ -37,10 +33,6 @@ export interface DetachCompatibleProductProductChildRequest {
|
|
|
37
33
|
productChild: number;
|
|
38
34
|
compatibleProduct: number;
|
|
39
35
|
}
|
|
40
|
-
export interface DetachDocumentsProductChildOperationRequest {
|
|
41
|
-
productChild: number;
|
|
42
|
-
detachDocumentsProductChildRequest?: DetachDocumentsProductChildRequest;
|
|
43
|
-
}
|
|
44
36
|
export interface GetAccessoriesProductChildRequest {
|
|
45
37
|
productChild: number;
|
|
46
38
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
@@ -104,14 +96,6 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
104
96
|
* Auto-generated: attachCompatibleProductsProductChild
|
|
105
97
|
*/
|
|
106
98
|
attachCompatibleProductsProductChild(requestParameters: AttachCompatibleProductsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* Auto-generated: attachDocumentsProductChild
|
|
109
|
-
*/
|
|
110
|
-
attachDocumentsProductChildRaw(requestParameters: AttachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>>;
|
|
111
|
-
/**
|
|
112
|
-
* Auto-generated: attachDocumentsProductChild
|
|
113
|
-
*/
|
|
114
|
-
attachDocumentsProductChild(requestParameters: AttachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource>;
|
|
115
99
|
/**
|
|
116
100
|
* Auto-generated: destroyProduct
|
|
117
101
|
*/
|
|
@@ -144,14 +128,6 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
144
128
|
* Auto-generated: detachCompatibleProductProductChild
|
|
145
129
|
*/
|
|
146
130
|
detachCompatibleProductProductChild(requestParameters: DetachCompatibleProductProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
147
|
-
/**
|
|
148
|
-
* Auto-generated: detachDocumentsProductChild
|
|
149
|
-
*/
|
|
150
|
-
detachDocumentsProductChildRaw(requestParameters: DetachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>>;
|
|
151
|
-
/**
|
|
152
|
-
* Auto-generated: detachDocumentsProductChild
|
|
153
|
-
*/
|
|
154
|
-
detachDocumentsProductChild(requestParameters: DetachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource>;
|
|
155
131
|
/**
|
|
156
132
|
* Auto-generated: getAccessoriesProductChild
|
|
157
133
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -171,54 +171,6 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
171
171
|
});
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
/**
|
|
175
|
-
* Auto-generated: attachDocumentsProductChild
|
|
176
|
-
*/
|
|
177
|
-
ProductApi.prototype.attachDocumentsProductChildRaw = function (requestParameters, initOverrides) {
|
|
178
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
180
|
-
return __generator(this, function (_a) {
|
|
181
|
-
switch (_a.label) {
|
|
182
|
-
case 0:
|
|
183
|
-
if (requestParameters['productChild'] == null) {
|
|
184
|
-
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling attachDocumentsProductChild().');
|
|
185
|
-
}
|
|
186
|
-
queryParameters = {};
|
|
187
|
-
headerParameters = {};
|
|
188
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
189
|
-
urlPath = "/admin-api/product/children/{productChild}/attach-documents";
|
|
190
|
-
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
191
|
-
return [4 /*yield*/, this.request({
|
|
192
|
-
path: urlPath,
|
|
193
|
-
method: 'POST',
|
|
194
|
-
headers: headerParameters,
|
|
195
|
-
query: queryParameters,
|
|
196
|
-
body: (0, index_1.AttachDocumentsProductChildRequestToJSON)(requestParameters['attachDocumentsProductChildRequest']),
|
|
197
|
-
}, initOverrides)];
|
|
198
|
-
case 1:
|
|
199
|
-
response = _a.sent();
|
|
200
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildResourceFromJSON)(jsonValue); })];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Auto-generated: attachDocumentsProductChild
|
|
207
|
-
*/
|
|
208
|
-
ProductApi.prototype.attachDocumentsProductChild = function (requestParameters, initOverrides) {
|
|
209
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
210
|
-
var response;
|
|
211
|
-
return __generator(this, function (_a) {
|
|
212
|
-
switch (_a.label) {
|
|
213
|
-
case 0: return [4 /*yield*/, this.attachDocumentsProductChildRaw(requestParameters, initOverrides)];
|
|
214
|
-
case 1:
|
|
215
|
-
response = _a.sent();
|
|
216
|
-
return [4 /*yield*/, response.value()];
|
|
217
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
174
|
/**
|
|
223
175
|
* Auto-generated: destroyProduct
|
|
224
176
|
*/
|
|
@@ -411,54 +363,6 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
411
363
|
});
|
|
412
364
|
});
|
|
413
365
|
};
|
|
414
|
-
/**
|
|
415
|
-
* Auto-generated: detachDocumentsProductChild
|
|
416
|
-
*/
|
|
417
|
-
ProductApi.prototype.detachDocumentsProductChildRaw = function (requestParameters, initOverrides) {
|
|
418
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
419
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
420
|
-
return __generator(this, function (_a) {
|
|
421
|
-
switch (_a.label) {
|
|
422
|
-
case 0:
|
|
423
|
-
if (requestParameters['productChild'] == null) {
|
|
424
|
-
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling detachDocumentsProductChild().');
|
|
425
|
-
}
|
|
426
|
-
queryParameters = {};
|
|
427
|
-
headerParameters = {};
|
|
428
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
429
|
-
urlPath = "/admin-api/product/children/{productChild}/detach-documents";
|
|
430
|
-
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
431
|
-
return [4 /*yield*/, this.request({
|
|
432
|
-
path: urlPath,
|
|
433
|
-
method: 'POST',
|
|
434
|
-
headers: headerParameters,
|
|
435
|
-
query: queryParameters,
|
|
436
|
-
body: (0, index_1.DetachDocumentsProductChildRequestToJSON)(requestParameters['detachDocumentsProductChildRequest']),
|
|
437
|
-
}, initOverrides)];
|
|
438
|
-
case 1:
|
|
439
|
-
response = _a.sent();
|
|
440
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildResourceFromJSON)(jsonValue); })];
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* Auto-generated: detachDocumentsProductChild
|
|
447
|
-
*/
|
|
448
|
-
ProductApi.prototype.detachDocumentsProductChild = function (requestParameters, initOverrides) {
|
|
449
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
450
|
-
var response;
|
|
451
|
-
return __generator(this, function (_a) {
|
|
452
|
-
switch (_a.label) {
|
|
453
|
-
case 0: return [4 /*yield*/, this.detachDocumentsProductChildRaw(requestParameters, initOverrides)];
|
|
454
|
-
case 1:
|
|
455
|
-
response = _a.sent();
|
|
456
|
-
return [4 /*yield*/, response.value()];
|
|
457
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
});
|
|
461
|
-
};
|
|
462
366
|
/**
|
|
463
367
|
* Auto-generated: getAccessoriesProductChild
|
|
464
368
|
*/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { AttachDocumentsProductChildSiteDetailRequest, DetachDocumentsProductChildSiteDetailRequest, ProductChildSiteDetailResource } from '../models/index';
|
|
14
|
+
export interface AttachDocumentsProductChildSiteDetailOperationRequest {
|
|
15
|
+
productChildSiteDetail: number;
|
|
16
|
+
attachDocumentsProductChildSiteDetailRequest?: AttachDocumentsProductChildSiteDetailRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface DetachDocumentsProductChildSiteDetailOperationRequest {
|
|
19
|
+
productChildSiteDetail: number;
|
|
20
|
+
detachDocumentsProductChildSiteDetailRequest?: DetachDocumentsProductChildSiteDetailRequest;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class ProductChildSiteDetailApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* Auto-generated: attachDocumentsProductChildSiteDetail
|
|
28
|
+
*/
|
|
29
|
+
attachDocumentsProductChildSiteDetailRaw(requestParameters: AttachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildSiteDetailResource>>;
|
|
30
|
+
/**
|
|
31
|
+
* Auto-generated: attachDocumentsProductChildSiteDetail
|
|
32
|
+
*/
|
|
33
|
+
attachDocumentsProductChildSiteDetail(requestParameters: AttachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildSiteDetailResource>;
|
|
34
|
+
/**
|
|
35
|
+
* Auto-generated: detachDocumentsProductChildSiteDetail
|
|
36
|
+
*/
|
|
37
|
+
detachDocumentsProductChildSiteDetailRaw(requestParameters: DetachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildSiteDetailResource>>;
|
|
38
|
+
/**
|
|
39
|
+
* Auto-generated: detachDocumentsProductChildSiteDetail
|
|
40
|
+
*/
|
|
41
|
+
detachDocumentsProductChildSiteDetail(requestParameters: DetachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildSiteDetailResource>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.ProductChildSiteDetailApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ProductChildSiteDetailApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ProductChildSiteDetailApi, _super);
|
|
75
|
+
function ProductChildSiteDetailApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Auto-generated: attachDocumentsProductChildSiteDetail
|
|
80
|
+
*/
|
|
81
|
+
ProductChildSiteDetailApi.prototype.attachDocumentsProductChildSiteDetailRaw = 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['productChildSiteDetail'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('productChildSiteDetail', 'Required parameter "productChildSiteDetail" was null or undefined when calling attachDocumentsProductChildSiteDetail().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
urlPath = "/admin-api/product-child-site-detail/{productChildSiteDetail}/attach-documents";
|
|
94
|
+
urlPath = urlPath.replace("{".concat("productChildSiteDetail", "}"), encodeURIComponent(String(requestParameters['productChildSiteDetail'])));
|
|
95
|
+
return [4 /*yield*/, this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.AttachDocumentsProductChildSiteDetailRequestToJSON)(requestParameters['attachDocumentsProductChildSiteDetailRequest']),
|
|
101
|
+
}, initOverrides)];
|
|
102
|
+
case 1:
|
|
103
|
+
response = _a.sent();
|
|
104
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildSiteDetailResourceFromJSON)(jsonValue); })];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Auto-generated: attachDocumentsProductChildSiteDetail
|
|
111
|
+
*/
|
|
112
|
+
ProductChildSiteDetailApi.prototype.attachDocumentsProductChildSiteDetail = 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.attachDocumentsProductChildSiteDetailRaw(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: detachDocumentsProductChildSiteDetail
|
|
128
|
+
*/
|
|
129
|
+
ProductChildSiteDetailApi.prototype.detachDocumentsProductChildSiteDetailRaw = 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['productChildSiteDetail'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('productChildSiteDetail', 'Required parameter "productChildSiteDetail" was null or undefined when calling detachDocumentsProductChildSiteDetail().');
|
|
137
|
+
}
|
|
138
|
+
queryParameters = {};
|
|
139
|
+
headerParameters = {};
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
urlPath = "/admin-api/product-child-site-detail/{productChildSiteDetail}/detach-documents";
|
|
142
|
+
urlPath = urlPath.replace("{".concat("productChildSiteDetail", "}"), encodeURIComponent(String(requestParameters['productChildSiteDetail'])));
|
|
143
|
+
return [4 /*yield*/, this.request({
|
|
144
|
+
path: urlPath,
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: (0, index_1.DetachDocumentsProductChildSiteDetailRequestToJSON)(requestParameters['detachDocumentsProductChildSiteDetailRequest']),
|
|
149
|
+
}, initOverrides)];
|
|
150
|
+
case 1:
|
|
151
|
+
response = _a.sent();
|
|
152
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildSiteDetailResourceFromJSON)(jsonValue); })];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Auto-generated: detachDocumentsProductChildSiteDetail
|
|
159
|
+
*/
|
|
160
|
+
ProductChildSiteDetailApi.prototype.detachDocumentsProductChildSiteDetail = 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.detachDocumentsProductChildSiteDetailRaw(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
|
+
};
|
|
174
|
+
return ProductChildSiteDetailApi;
|
|
175
|
+
}(runtime.BaseAPI));
|
|
176
|
+
exports.ProductChildSiteDetailApi = ProductChildSiteDetailApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './GoogleCategoryApi';
|
|
|
7
7
|
export * from './OverlayTemplateApi';
|
|
8
8
|
export * from './ProductApi';
|
|
9
9
|
export * from './ProductCategoryApi';
|
|
10
|
+
export * from './ProductChildSiteDetailApi';
|
|
10
11
|
export * from './ProductTypeApi';
|
|
11
12
|
export * from './SiteApi';
|
|
12
13
|
export * from './SupplierApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./GoogleCategoryApi"), exports);
|
|
|
25
25
|
__exportStar(require("./OverlayTemplateApi"), exports);
|
|
26
26
|
__exportStar(require("./ProductApi"), exports);
|
|
27
27
|
__exportStar(require("./ProductCategoryApi"), exports);
|
|
28
|
+
__exportStar(require("./ProductChildSiteDetailApi"), exports);
|
|
28
29
|
__exportStar(require("./ProductTypeApi"), exports);
|
|
29
30
|
__exportStar(require("./SiteApi"), exports);
|
|
30
31
|
__exportStar(require("./SupplierApi"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AttachDocumentsProductChildSiteDetailRequestDocumentsInner } from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AttachDocumentsProductChildSiteDetailRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface AttachDocumentsProductChildSiteDetailRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AttachDocumentsProductChildSiteDetailRequestDocumentsInner>}
|
|
22
|
+
* @memberof AttachDocumentsProductChildSiteDetailRequest
|
|
23
|
+
*/
|
|
24
|
+
documents: Array<AttachDocumentsProductChildSiteDetailRequestDocumentsInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AttachDocumentsProductChildSiteDetailRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAttachDocumentsProductChildSiteDetailRequest(value: object): value is AttachDocumentsProductChildSiteDetailRequest;
|
|
30
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestFromJSON(json: any): AttachDocumentsProductChildSiteDetailRequest;
|
|
31
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductChildSiteDetailRequest;
|
|
32
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestToJSON(json: any): AttachDocumentsProductChildSiteDetailRequest;
|
|
33
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestToJSONTyped(value?: AttachDocumentsProductChildSiteDetailRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAttachDocumentsProductChildSiteDetailRequest = instanceOfAttachDocumentsProductChildSiteDetailRequest;
|
|
17
|
+
exports.AttachDocumentsProductChildSiteDetailRequestFromJSON = AttachDocumentsProductChildSiteDetailRequestFromJSON;
|
|
18
|
+
exports.AttachDocumentsProductChildSiteDetailRequestFromJSONTyped = AttachDocumentsProductChildSiteDetailRequestFromJSONTyped;
|
|
19
|
+
exports.AttachDocumentsProductChildSiteDetailRequestToJSON = AttachDocumentsProductChildSiteDetailRequestToJSON;
|
|
20
|
+
exports.AttachDocumentsProductChildSiteDetailRequestToJSONTyped = AttachDocumentsProductChildSiteDetailRequestToJSONTyped;
|
|
21
|
+
var AttachDocumentsProductChildSiteDetailRequestDocumentsInner_1 = require("./AttachDocumentsProductChildSiteDetailRequestDocumentsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AttachDocumentsProductChildSiteDetailRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAttachDocumentsProductChildSiteDetailRequest(value) {
|
|
26
|
+
if (!('documents' in value) || value['documents'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AttachDocumentsProductChildSiteDetailRequestFromJSON(json) {
|
|
31
|
+
return AttachDocumentsProductChildSiteDetailRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AttachDocumentsProductChildSiteDetailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'documents': (json['documents'].map(AttachDocumentsProductChildSiteDetailRequestDocumentsInner_1.AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AttachDocumentsProductChildSiteDetailRequestToJSON(json) {
|
|
42
|
+
return AttachDocumentsProductChildSiteDetailRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AttachDocumentsProductChildSiteDetailRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'documents': (value['documents'].map(AttachDocumentsProductChildSiteDetailRequestDocumentsInner_1.AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachDocumentsProductChildSiteDetailRequestDocumentsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
22
|
+
*/
|
|
23
|
+
documentId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
28
|
+
*/
|
|
29
|
+
index?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AttachDocumentsProductChildSiteDetailRequestDocumentsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAttachDocumentsProductChildSiteDetailRequestDocumentsInner(value: object): value is AttachDocumentsProductChildSiteDetailRequestDocumentsInner;
|
|
35
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON(json: any): AttachDocumentsProductChildSiteDetailRequestDocumentsInner;
|
|
36
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductChildSiteDetailRequestDocumentsInner;
|
|
37
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON(json: any): AttachDocumentsProductChildSiteDetailRequestDocumentsInner;
|
|
38
|
+
export declare function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped(value?: AttachDocumentsProductChildSiteDetailRequestDocumentsInner | null, ignoreDiscriminator?: boolean): any;
|