@digital8/lighting-illusions-ts-sdk 0.0.656 → 0.0.658
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/src/apis/ProductApi.ts
CHANGED
|
@@ -17,8 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
AssetResourceArrayResponse,
|
|
19
19
|
AttachAccessoriesProductChildRequest,
|
|
20
|
-
AttachDocumentsProductChildRequest,
|
|
21
|
-
DetachDocumentsProductChildRequest,
|
|
22
20
|
GenericResponse,
|
|
23
21
|
GetAllProductChildRequest,
|
|
24
22
|
GetAllProductRequest,
|
|
@@ -40,10 +38,6 @@ import {
|
|
|
40
38
|
AssetResourceArrayResponseToJSON,
|
|
41
39
|
AttachAccessoriesProductChildRequestFromJSON,
|
|
42
40
|
AttachAccessoriesProductChildRequestToJSON,
|
|
43
|
-
AttachDocumentsProductChildRequestFromJSON,
|
|
44
|
-
AttachDocumentsProductChildRequestToJSON,
|
|
45
|
-
DetachDocumentsProductChildRequestFromJSON,
|
|
46
|
-
DetachDocumentsProductChildRequestToJSON,
|
|
47
41
|
GenericResponseFromJSON,
|
|
48
42
|
GenericResponseToJSON,
|
|
49
43
|
GetAllProductChildRequestFromJSON,
|
|
@@ -86,11 +80,6 @@ export interface AttachCompatibleProductsProductChildRequest {
|
|
|
86
80
|
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
87
81
|
}
|
|
88
82
|
|
|
89
|
-
export interface AttachDocumentsProductChildOperationRequest {
|
|
90
|
-
productChild: number;
|
|
91
|
-
attachDocumentsProductChildRequest?: AttachDocumentsProductChildRequest;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
83
|
export interface DestroyProductRequest {
|
|
95
84
|
product: number;
|
|
96
85
|
}
|
|
@@ -109,11 +98,6 @@ export interface DetachCompatibleProductProductChildRequest {
|
|
|
109
98
|
compatibleProduct: number;
|
|
110
99
|
}
|
|
111
100
|
|
|
112
|
-
export interface DetachDocumentsProductChildOperationRequest {
|
|
113
|
-
productChild: number;
|
|
114
|
-
detachDocumentsProductChildRequest?: DetachDocumentsProductChildRequest;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
101
|
export interface GetAccessoriesProductChildRequest {
|
|
118
102
|
productChild: number;
|
|
119
103
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
@@ -255,46 +239,6 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
255
239
|
return await response.value();
|
|
256
240
|
}
|
|
257
241
|
|
|
258
|
-
/**
|
|
259
|
-
* Auto-generated: attachDocumentsProductChild
|
|
260
|
-
*/
|
|
261
|
-
async attachDocumentsProductChildRaw(requestParameters: AttachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
|
|
262
|
-
if (requestParameters['productChild'] == null) {
|
|
263
|
-
throw new runtime.RequiredError(
|
|
264
|
-
'productChild',
|
|
265
|
-
'Required parameter "productChild" was null or undefined when calling attachDocumentsProductChild().'
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
const queryParameters: any = {};
|
|
270
|
-
|
|
271
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
272
|
-
|
|
273
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
let urlPath = `/admin-api/product/children/{productChild}/attach-documents`;
|
|
277
|
-
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
278
|
-
|
|
279
|
-
const response = await this.request({
|
|
280
|
-
path: urlPath,
|
|
281
|
-
method: 'POST',
|
|
282
|
-
headers: headerParameters,
|
|
283
|
-
query: queryParameters,
|
|
284
|
-
body: AttachDocumentsProductChildRequestToJSON(requestParameters['attachDocumentsProductChildRequest']),
|
|
285
|
-
}, initOverrides);
|
|
286
|
-
|
|
287
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Auto-generated: attachDocumentsProductChild
|
|
292
|
-
*/
|
|
293
|
-
async attachDocumentsProductChild(requestParameters: AttachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource> {
|
|
294
|
-
const response = await this.attachDocumentsProductChildRaw(requestParameters, initOverrides);
|
|
295
|
-
return await response.value();
|
|
296
|
-
}
|
|
297
|
-
|
|
298
242
|
/**
|
|
299
243
|
* Auto-generated: destroyProduct
|
|
300
244
|
*/
|
|
@@ -459,46 +403,6 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
459
403
|
return await response.value();
|
|
460
404
|
}
|
|
461
405
|
|
|
462
|
-
/**
|
|
463
|
-
* Auto-generated: detachDocumentsProductChild
|
|
464
|
-
*/
|
|
465
|
-
async detachDocumentsProductChildRaw(requestParameters: DetachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
|
|
466
|
-
if (requestParameters['productChild'] == null) {
|
|
467
|
-
throw new runtime.RequiredError(
|
|
468
|
-
'productChild',
|
|
469
|
-
'Required parameter "productChild" was null or undefined when calling detachDocumentsProductChild().'
|
|
470
|
-
);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
const queryParameters: any = {};
|
|
474
|
-
|
|
475
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
476
|
-
|
|
477
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
let urlPath = `/admin-api/product/children/{productChild}/detach-documents`;
|
|
481
|
-
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
482
|
-
|
|
483
|
-
const response = await this.request({
|
|
484
|
-
path: urlPath,
|
|
485
|
-
method: 'POST',
|
|
486
|
-
headers: headerParameters,
|
|
487
|
-
query: queryParameters,
|
|
488
|
-
body: DetachDocumentsProductChildRequestToJSON(requestParameters['detachDocumentsProductChildRequest']),
|
|
489
|
-
}, initOverrides);
|
|
490
|
-
|
|
491
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Auto-generated: detachDocumentsProductChild
|
|
496
|
-
*/
|
|
497
|
-
async detachDocumentsProductChild(requestParameters: DetachDocumentsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource> {
|
|
498
|
-
const response = await this.detachDocumentsProductChildRaw(requestParameters, initOverrides);
|
|
499
|
-
return await response.value();
|
|
500
|
-
}
|
|
501
|
-
|
|
502
406
|
/**
|
|
503
407
|
* Auto-generated: getAccessoriesProductChild
|
|
504
408
|
*/
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
AttachDocumentsProductChildSiteDetailRequest,
|
|
19
|
+
DetachDocumentsProductChildSiteDetailRequest,
|
|
20
|
+
ProductChildSiteDetailResource,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
AttachDocumentsProductChildSiteDetailRequestFromJSON,
|
|
24
|
+
AttachDocumentsProductChildSiteDetailRequestToJSON,
|
|
25
|
+
DetachDocumentsProductChildSiteDetailRequestFromJSON,
|
|
26
|
+
DetachDocumentsProductChildSiteDetailRequestToJSON,
|
|
27
|
+
ProductChildSiteDetailResourceFromJSON,
|
|
28
|
+
ProductChildSiteDetailResourceToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface AttachDocumentsProductChildSiteDetailOperationRequest {
|
|
32
|
+
productChildSiteDetail: number;
|
|
33
|
+
attachDocumentsProductChildSiteDetailRequest?: AttachDocumentsProductChildSiteDetailRequest;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface DetachDocumentsProductChildSiteDetailOperationRequest {
|
|
37
|
+
productChildSiteDetail: number;
|
|
38
|
+
detachDocumentsProductChildSiteDetailRequest?: DetachDocumentsProductChildSiteDetailRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export class ProductChildSiteDetailApi extends runtime.BaseAPI {
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Auto-generated: attachDocumentsProductChildSiteDetail
|
|
48
|
+
*/
|
|
49
|
+
async attachDocumentsProductChildSiteDetailRaw(requestParameters: AttachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildSiteDetailResource>> {
|
|
50
|
+
if (requestParameters['productChildSiteDetail'] == null) {
|
|
51
|
+
throw new runtime.RequiredError(
|
|
52
|
+
'productChildSiteDetail',
|
|
53
|
+
'Required parameter "productChildSiteDetail" was null or undefined when calling attachDocumentsProductChildSiteDetail().'
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
60
|
+
|
|
61
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
let urlPath = `/admin-api/product-child-site-detail/{productChildSiteDetail}/attach-documents`;
|
|
65
|
+
urlPath = urlPath.replace(`{${"productChildSiteDetail"}}`, encodeURIComponent(String(requestParameters['productChildSiteDetail'])));
|
|
66
|
+
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: urlPath,
|
|
69
|
+
method: 'POST',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
body: AttachDocumentsProductChildSiteDetailRequestToJSON(requestParameters['attachDocumentsProductChildSiteDetailRequest']),
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildSiteDetailResourceFromJSON(jsonValue));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Auto-generated: attachDocumentsProductChildSiteDetail
|
|
80
|
+
*/
|
|
81
|
+
async attachDocumentsProductChildSiteDetail(requestParameters: AttachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildSiteDetailResource> {
|
|
82
|
+
const response = await this.attachDocumentsProductChildSiteDetailRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Auto-generated: detachDocumentsProductChildSiteDetail
|
|
88
|
+
*/
|
|
89
|
+
async detachDocumentsProductChildSiteDetailRaw(requestParameters: DetachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildSiteDetailResource>> {
|
|
90
|
+
if (requestParameters['productChildSiteDetail'] == null) {
|
|
91
|
+
throw new runtime.RequiredError(
|
|
92
|
+
'productChildSiteDetail',
|
|
93
|
+
'Required parameter "productChildSiteDetail" was null or undefined when calling detachDocumentsProductChildSiteDetail().'
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
let urlPath = `/admin-api/product-child-site-detail/{productChildSiteDetail}/detach-documents`;
|
|
105
|
+
urlPath = urlPath.replace(`{${"productChildSiteDetail"}}`, encodeURIComponent(String(requestParameters['productChildSiteDetail'])));
|
|
106
|
+
|
|
107
|
+
const response = await this.request({
|
|
108
|
+
path: urlPath,
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
body: DetachDocumentsProductChildSiteDetailRequestToJSON(requestParameters['detachDocumentsProductChildSiteDetailRequest']),
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildSiteDetailResourceFromJSON(jsonValue));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Auto-generated: detachDocumentsProductChildSiteDetail
|
|
120
|
+
*/
|
|
121
|
+
async detachDocumentsProductChildSiteDetail(requestParameters: DetachDocumentsProductChildSiteDetailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildSiteDetailResource> {
|
|
122
|
+
const response = await this.detachDocumentsProductChildSiteDetailRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './GoogleCategoryApi';
|
|
|
9
9
|
export * from './OverlayTemplateApi';
|
|
10
10
|
export * from './ProductApi';
|
|
11
11
|
export * from './ProductCategoryApi';
|
|
12
|
+
export * from './ProductChildSiteDetailApi';
|
|
12
13
|
export * from './ProductTypeApi';
|
|
13
14
|
export * from './SiteApi';
|
|
14
15
|
export * from './SupplierApi';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AttachDocumentsProductChildSiteDetailRequestDocumentsInner } from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
17
|
+
import {
|
|
18
|
+
AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON,
|
|
19
|
+
AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped,
|
|
20
|
+
AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON,
|
|
21
|
+
AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped,
|
|
22
|
+
} from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AttachDocumentsProductChildSiteDetailRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface AttachDocumentsProductChildSiteDetailRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AttachDocumentsProductChildSiteDetailRequestDocumentsInner>}
|
|
33
|
+
* @memberof AttachDocumentsProductChildSiteDetailRequest
|
|
34
|
+
*/
|
|
35
|
+
documents: Array<AttachDocumentsProductChildSiteDetailRequestDocumentsInner>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AttachDocumentsProductChildSiteDetailRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAttachDocumentsProductChildSiteDetailRequest(value: object): value is AttachDocumentsProductChildSiteDetailRequest {
|
|
42
|
+
if (!('documents' in value) || value['documents'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AttachDocumentsProductChildSiteDetailRequestFromJSON(json: any): AttachDocumentsProductChildSiteDetailRequest {
|
|
47
|
+
return AttachDocumentsProductChildSiteDetailRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AttachDocumentsProductChildSiteDetailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductChildSiteDetailRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'documents': ((json['documents'] as Array<any>).map(AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AttachDocumentsProductChildSiteDetailRequestToJSON(json: any): AttachDocumentsProductChildSiteDetailRequest {
|
|
61
|
+
return AttachDocumentsProductChildSiteDetailRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AttachDocumentsProductChildSiteDetailRequestToJSONTyped(value?: AttachDocumentsProductChildSiteDetailRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'documents': ((value['documents'] as Array<any>).map(AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachDocumentsProductChildSiteDetailRequestDocumentsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
26
|
+
*/
|
|
27
|
+
documentId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
32
|
+
*/
|
|
33
|
+
index?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AttachDocumentsProductChildSiteDetailRequestDocumentsInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAttachDocumentsProductChildSiteDetailRequestDocumentsInner(value: object): value is AttachDocumentsProductChildSiteDetailRequestDocumentsInner {
|
|
40
|
+
if (!('documentId' in value) || value['documentId'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON(json: any): AttachDocumentsProductChildSiteDetailRequestDocumentsInner {
|
|
45
|
+
return AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductChildSiteDetailRequestDocumentsInner {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'documentId': json['document_id'],
|
|
55
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON(json: any): AttachDocumentsProductChildSiteDetailRequestDocumentsInner {
|
|
60
|
+
return AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped(value?: AttachDocumentsProductChildSiteDetailRequestDocumentsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'document_id': value['documentId'],
|
|
71
|
+
'index': value['index'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DetachDocumentsProductChildSiteDetailRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DetachDocumentsProductChildSiteDetailRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof DetachDocumentsProductChildSiteDetailRequest
|
|
26
|
+
*/
|
|
27
|
+
documents: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DetachDocumentsProductChildSiteDetailRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDetachDocumentsProductChildSiteDetailRequest(value: object): value is DetachDocumentsProductChildSiteDetailRequest {
|
|
34
|
+
if (!('documents' in value) || value['documents'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DetachDocumentsProductChildSiteDetailRequestFromJSON(json: any): DetachDocumentsProductChildSiteDetailRequest {
|
|
39
|
+
return DetachDocumentsProductChildSiteDetailRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DetachDocumentsProductChildSiteDetailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachDocumentsProductChildSiteDetailRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'documents': json['documents'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DetachDocumentsProductChildSiteDetailRequestToJSON(json: any): DetachDocumentsProductChildSiteDetailRequest {
|
|
53
|
+
return DetachDocumentsProductChildSiteDetailRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DetachDocumentsProductChildSiteDetailRequestToJSONTyped(value?: DetachDocumentsProductChildSiteDetailRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'documents': value['documents'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -13,8 +13,8 @@ export * from './AttachAssetsOverlayTemplateRequest';
|
|
|
13
13
|
export * from './AttachAttributeProductTypeRequest';
|
|
14
14
|
export * from './AttachDocumentablesDocumentRequest';
|
|
15
15
|
export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
16
|
+
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
17
|
+
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
18
18
|
export * from './AttachProductTypeAttributeRequest';
|
|
19
19
|
export * from './AttachProductsProductCategoryRequest';
|
|
20
20
|
export * from './AttributeFieldType';
|
|
@@ -49,7 +49,7 @@ export * from './DestroyAttributeValueRequest';
|
|
|
49
49
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
50
50
|
export * from './DetachDocumentablesDocumentRequest';
|
|
51
51
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
52
|
-
export * from './
|
|
52
|
+
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
53
53
|
export * from './DetachProductsProductCategoryRequest';
|
|
54
54
|
export * from './DocumentFileForUploadResource';
|
|
55
55
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { AttachDocumentsProductChildRequestDocumentsInner } from './AttachDocumentsProductChildRequestDocumentsInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AttachDocumentsProductChildRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface AttachDocumentsProductChildRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<AttachDocumentsProductChildRequestDocumentsInner>}
|
|
22
|
-
* @memberof AttachDocumentsProductChildRequest
|
|
23
|
-
*/
|
|
24
|
-
documents: Array<AttachDocumentsProductChildRequestDocumentsInner>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the AttachDocumentsProductChildRequest interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfAttachDocumentsProductChildRequest(value: object): value is AttachDocumentsProductChildRequest;
|
|
30
|
-
export declare function AttachDocumentsProductChildRequestFromJSON(json: any): AttachDocumentsProductChildRequest;
|
|
31
|
-
export declare function AttachDocumentsProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductChildRequest;
|
|
32
|
-
export declare function AttachDocumentsProductChildRequestToJSON(json: any): AttachDocumentsProductChildRequest;
|
|
33
|
-
export declare function AttachDocumentsProductChildRequestToJSONTyped(value?: AttachDocumentsProductChildRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,52 +0,0 @@
|
|
|
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.instanceOfAttachDocumentsProductChildRequest = instanceOfAttachDocumentsProductChildRequest;
|
|
17
|
-
exports.AttachDocumentsProductChildRequestFromJSON = AttachDocumentsProductChildRequestFromJSON;
|
|
18
|
-
exports.AttachDocumentsProductChildRequestFromJSONTyped = AttachDocumentsProductChildRequestFromJSONTyped;
|
|
19
|
-
exports.AttachDocumentsProductChildRequestToJSON = AttachDocumentsProductChildRequestToJSON;
|
|
20
|
-
exports.AttachDocumentsProductChildRequestToJSONTyped = AttachDocumentsProductChildRequestToJSONTyped;
|
|
21
|
-
var AttachDocumentsProductChildRequestDocumentsInner_1 = require("./AttachDocumentsProductChildRequestDocumentsInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the AttachDocumentsProductChildRequest interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfAttachDocumentsProductChildRequest(value) {
|
|
26
|
-
if (!('documents' in value) || value['documents'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function AttachDocumentsProductChildRequestFromJSON(json) {
|
|
31
|
-
return AttachDocumentsProductChildRequestFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function AttachDocumentsProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'documents': (json['documents'].map(AttachDocumentsProductChildRequestDocumentsInner_1.AttachDocumentsProductChildRequestDocumentsInnerFromJSON)),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function AttachDocumentsProductChildRequestToJSON(json) {
|
|
42
|
-
return AttachDocumentsProductChildRequestToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function AttachDocumentsProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'documents': (value['documents'].map(AttachDocumentsProductChildRequestDocumentsInner_1.AttachDocumentsProductChildRequestDocumentsInnerToJSON)),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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 AttachDocumentsProductChildRequestDocumentsInner
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachDocumentsProductChildRequestDocumentsInner {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof AttachDocumentsProductChildRequestDocumentsInner
|
|
22
|
-
*/
|
|
23
|
-
documentId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof AttachDocumentsProductChildRequestDocumentsInner
|
|
28
|
-
*/
|
|
29
|
-
index?: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the AttachDocumentsProductChildRequestDocumentsInner interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfAttachDocumentsProductChildRequestDocumentsInner(value: object): value is AttachDocumentsProductChildRequestDocumentsInner;
|
|
35
|
-
export declare function AttachDocumentsProductChildRequestDocumentsInnerFromJSON(json: any): AttachDocumentsProductChildRequestDocumentsInner;
|
|
36
|
-
export declare function AttachDocumentsProductChildRequestDocumentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsProductChildRequestDocumentsInner;
|
|
37
|
-
export declare function AttachDocumentsProductChildRequestDocumentsInnerToJSON(json: any): AttachDocumentsProductChildRequestDocumentsInner;
|
|
38
|
-
export declare function AttachDocumentsProductChildRequestDocumentsInnerToJSONTyped(value?: AttachDocumentsProductChildRequestDocumentsInner | null, ignoreDiscriminator?: boolean): any;
|