@digital8/lighting-illusions-ts-sdk 0.0.472 → 0.0.473
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 +10 -72
- package/README.md +20 -56
- package/dist/apis/AttributeApi.d.ts +33 -33
- package/dist/apis/AttributeApi.js +92 -92
- package/dist/apis/OverlayTemplateApi.d.ts +39 -39
- package/dist/apis/OverlayTemplateApi.js +110 -110
- package/dist/apis/ProductApi.d.ts +17 -78
- package/dist/apis/ProductApi.js +24 -271
- package/dist/apis/ProductTypeApi.d.ts +33 -33
- package/dist/apis/ProductTypeApi.js +89 -89
- package/dist/apis/SiteApi.d.ts +5 -5
- package/dist/apis/SiteApi.js +2 -2
- package/dist/apis/SupplierApi.d.ts +3 -3
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/TagApi.d.ts +27 -27
- package/dist/apis/TagApi.js +81 -81
- package/dist/models/AssetLiteResource.d.ts +0 -6
- package/dist/models/AssetLiteResource.js +0 -4
- package/dist/models/GetAllAttributeRequest.d.ts +9 -15
- package/dist/models/GetAllAttributeRequest.js +4 -6
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +6 -12
- package/dist/models/GetAllOverlayTemplateRequest.js +2 -4
- package/dist/models/GetAllProductChildRequest.d.ts +0 -6
- package/dist/models/GetAllProductChildRequest.js +0 -2
- package/dist/models/GetAllProductRequest.d.ts +0 -36
- package/dist/models/GetAllProductRequest.js +0 -12
- package/dist/models/GetAllProductTypeRequest.d.ts +0 -6
- package/dist/models/GetAllProductTypeRequest.js +0 -2
- package/dist/models/GetAllSupplierRequest.d.ts +0 -6
- package/dist/models/GetAllSupplierRequest.js +0 -2
- package/dist/models/IndexAttributeRequest.d.ts +0 -25
- package/dist/models/IndexAttributeRequest.js +1 -13
- package/dist/models/IndexExternalApiLogRequest.d.ts +3 -21
- package/dist/models/IndexExternalApiLogRequest.js +4 -10
- package/dist/models/IndexOverlayTemplateRequest.d.ts +0 -25
- package/dist/models/IndexOverlayTemplateRequest.js +1 -13
- package/dist/models/IndexProductChildRequest.d.ts +0 -6
- package/dist/models/IndexProductChildRequest.js +0 -2
- package/dist/models/IndexProductTypeRequest.d.ts +0 -25
- package/dist/models/IndexProductTypeRequest.js +1 -13
- package/dist/models/IndexSiteNotificationRequest.d.ts +0 -18
- package/dist/models/IndexSiteNotificationRequest.js +0 -6
- package/dist/models/IndexSiteRequest.d.ts +0 -18
- package/dist/models/IndexSiteRequest.js +0 -6
- package/dist/models/IndexSupplierRequest.d.ts +0 -25
- package/dist/models/IndexSupplierRequest.js +1 -13
- package/dist/models/IndexTagRequest.d.ts +0 -25
- package/dist/models/IndexTagRequest.js +1 -13
- package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +32 -0
- package/dist/models/LinkAssetsOverlayTemplateRequest.js +51 -0
- package/dist/models/LinkAttributeProductTypeRequest.d.ts +48 -0
- package/dist/models/LinkAttributeProductTypeRequest.js +65 -0
- package/dist/models/LinkProductChildrenTagRequest.d.ts +32 -0
- package/dist/models/LinkProductChildrenTagRequest.js +51 -0
- package/dist/models/LinkProductTypeAttributeRequest.d.ts +48 -0
- package/dist/models/LinkProductTypeAttributeRequest.js +65 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +45 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.js +62 -0
- package/dist/models/index.d.ts +5 -36
- package/dist/models/index.js +5 -36
- package/docs/AssetLiteResource.md +0 -2
- package/docs/AttributeApi.md +117 -117
- package/docs/GetAllAttributeRequest.md +4 -6
- package/docs/GetAllOverlayTemplateRequest.md +2 -4
- package/docs/GetAllProductChildRequest.md +0 -2
- package/docs/GetAllProductRequest.md +0 -12
- package/docs/GetAllProductTypeRequest.md +0 -2
- package/docs/GetAllSupplierRequest.md +0 -2
- package/docs/IndexAttributeRequest.md +0 -6
- package/docs/IndexExternalApiLogRequest.md +4 -10
- package/docs/IndexOverlayTemplateRequest.md +0 -6
- package/docs/IndexProductChildRequest.md +0 -2
- package/docs/IndexProductTypeRequest.md +0 -6
- package/docs/IndexSiteNotificationRequest.md +0 -6
- package/docs/IndexSiteRequest.md +0 -6
- package/docs/IndexSupplierRequest.md +0 -6
- package/docs/IndexTagRequest.md +0 -6
- package/docs/{AttachAssetsOverlayTemplateRequest.md → LinkAssetsOverlayTemplateRequest.md} +4 -4
- package/docs/{AttachAttributeProductTypeRequest.md → LinkAttributeProductTypeRequest.md} +4 -4
- package/docs/{AttachAccessoriesProductChildRequest.md → LinkProductChildrenTagRequest.md} +4 -4
- package/docs/{AttachProductTypeAttributeRequest.md → LinkProductTypeAttributeRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +115 -115
- package/docs/ProductApi.md +29 -377
- package/docs/ProductTypeApi.md +94 -94
- package/docs/SiteApi.md +6 -6
- package/docs/SupplierApi.md +3 -3
- package/docs/TagApi.md +84 -84
- package/docs/{DetachAssetableOverlayTemplateRequest.md → UnlinkAssetableOverlayTemplateRequest.md} +4 -6
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +108 -108
- package/src/apis/OverlayTemplateApi.ts +141 -141
- package/src/apis/ProductApi.ts +32 -282
- package/src/apis/ProductTypeApi.ts +104 -104
- package/src/apis/SiteApi.ts +12 -12
- package/src/apis/SupplierApi.ts +6 -6
- package/src/apis/TagApi.ts +94 -94
- package/src/models/AssetLiteResource.ts +0 -9
- package/src/models/GetAllAttributeRequest.ts +13 -21
- package/src/models/GetAllOverlayTemplateRequest.ts +8 -16
- package/src/models/GetAllProductChildRequest.ts +0 -8
- package/src/models/GetAllProductRequest.ts +0 -48
- package/src/models/GetAllProductTypeRequest.ts +0 -8
- package/src/models/GetAllSupplierRequest.ts +0 -8
- package/src/models/IndexAttributeRequest.ts +0 -32
- package/src/models/IndexExternalApiLogRequest.ts +7 -31
- package/src/models/IndexOverlayTemplateRequest.ts +0 -32
- package/src/models/IndexProductChildRequest.ts +0 -8
- package/src/models/IndexProductTypeRequest.ts +0 -32
- package/src/models/IndexSiteNotificationRequest.ts +0 -24
- package/src/models/IndexSiteRequest.ts +0 -24
- package/src/models/IndexSupplierRequest.ts +0 -32
- package/src/models/IndexTagRequest.ts +0 -32
- package/src/models/LinkAssetsOverlayTemplateRequest.ts +66 -0
- package/src/models/LinkAttributeProductTypeRequest.ts +88 -0
- package/src/models/LinkProductChildrenTagRequest.ts +66 -0
- package/src/models/LinkProductTypeAttributeRequest.ts +88 -0
- package/src/models/UnlinkAssetableOverlayTemplateRequest.ts +85 -0
- package/src/models/index.ts +5 -36
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +0 -32
- package/dist/models/AttachAccessoriesProductChildRequest.js +0 -51
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +0 -32
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +0 -51
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +0 -48
- package/dist/models/AttachAttributeProductTypeRequest.js +0 -65
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +0 -48
- package/dist/models/AttachProductTypeAttributeRequest.js +0 -65
- package/dist/models/AttributeListResource.d.ts +0 -56
- package/dist/models/AttributeListResource.js +0 -67
- package/dist/models/AttributeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/AttributeListResourceArrayResponse.js +0 -50
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +0 -51
- package/dist/models/DetachAssetableOverlayTemplateRequest.js +0 -64
- package/dist/models/ExternalApiLogListResource.d.ts +0 -56
- package/dist/models/ExternalApiLogListResource.js +0 -63
- package/dist/models/ExternalApiLogListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ExternalApiLogListResourceArrayResponse.js +0 -50
- package/dist/models/IndexProductRequest.d.ts +0 -130
- package/dist/models/IndexProductRequest.js +0 -97
- package/dist/models/OverlayTemplateListResource.d.ts +0 -45
- package/dist/models/OverlayTemplateListResource.js +0 -60
- package/dist/models/OverlayTemplateListResourceArrayResponse.d.ts +0 -33
- package/dist/models/OverlayTemplateListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedAttributeListResourceResponse.js +0 -57
- package/dist/models/PaginatedExternalApiLogListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedExternalApiLogListResourceResponse.js +0 -57
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductChildListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductChildListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductTypeListResourceResponse.js +0 -57
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedSiteListResourceResponse.js +0 -57
- package/dist/models/PaginatedSiteNotificationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedSiteNotificationListResourceResponse.js +0 -57
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedSupplierListResourceResponse.js +0 -57
- package/dist/models/PaginatedTagListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTagListResourceResponse.js +0 -57
- package/dist/models/ProductChildListResource.d.ts +0 -63
- package/dist/models/ProductChildListResource.js +0 -72
- package/dist/models/ProductChildListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildListResourceArrayResponse.js +0 -50
- package/dist/models/ProductListResource.d.ts +0 -38
- package/dist/models/ProductListResource.js +0 -55
- package/dist/models/ProductListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductListResourceArrayResponse.js +0 -50
- package/dist/models/ProductTypeListResource.d.ts +0 -44
- package/dist/models/ProductTypeListResource.js +0 -59
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductTypeListResourceArrayResponse.js +0 -50
- package/dist/models/SiteListResource.d.ts +0 -50
- package/dist/models/SiteListResource.js +0 -63
- package/dist/models/SiteListResourceArrayResponse.d.ts +0 -33
- package/dist/models/SiteListResourceArrayResponse.js +0 -50
- package/dist/models/SiteNotificationListResource.d.ts +0 -87
- package/dist/models/SiteNotificationListResource.js +0 -84
- package/dist/models/SiteNotificationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/SiteNotificationListResourceArrayResponse.js +0 -50
- package/dist/models/SupplierListResource.d.ts +0 -57
- package/dist/models/SupplierListResource.js +0 -68
- package/dist/models/SupplierListResourceArrayResponse.d.ts +0 -33
- package/dist/models/SupplierListResourceArrayResponse.js +0 -50
- package/dist/models/TagListResource.d.ts +0 -57
- package/dist/models/TagListResource.js +0 -68
- package/dist/models/TagListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TagListResourceArrayResponse.js +0 -50
- package/docs/AttributeListResource.md +0 -42
- package/docs/AttributeListResourceArrayResponse.md +0 -34
- package/docs/ExternalApiLogListResource.md +0 -42
- package/docs/ExternalApiLogListResourceArrayResponse.md +0 -34
- package/docs/IndexProductRequest.md +0 -58
- package/docs/OverlayTemplateListResource.md +0 -38
- package/docs/OverlayTemplateListResourceArrayResponse.md +0 -34
- package/docs/PaginatedAttributeListResourceResponse.md +0 -36
- package/docs/PaginatedExternalApiLogListResourceResponse.md +0 -36
- package/docs/PaginatedOverlayTemplateListResourceResponse.md +0 -36
- package/docs/PaginatedProductChildListResourceResponse.md +0 -36
- package/docs/PaginatedProductListResourceResponse.md +0 -36
- package/docs/PaginatedProductTypeListResourceResponse.md +0 -36
- package/docs/PaginatedSiteListResourceResponse.md +0 -36
- package/docs/PaginatedSiteNotificationListResourceResponse.md +0 -36
- package/docs/PaginatedSupplierListResourceResponse.md +0 -36
- package/docs/PaginatedTagListResourceResponse.md +0 -36
- package/docs/ProductChildListResource.md +0 -44
- package/docs/ProductChildListResourceArrayResponse.md +0 -34
- package/docs/ProductListResource.md +0 -36
- package/docs/ProductListResourceArrayResponse.md +0 -34
- package/docs/ProductTypeListResource.md +0 -38
- package/docs/ProductTypeListResourceArrayResponse.md +0 -34
- package/docs/SiteListResource.md +0 -40
- package/docs/SiteListResourceArrayResponse.md +0 -34
- package/docs/SiteNotificationListResource.md +0 -52
- package/docs/SiteNotificationListResourceArrayResponse.md +0 -34
- package/docs/SupplierListResource.md +0 -42
- package/docs/SupplierListResourceArrayResponse.md +0 -34
- package/docs/TagListResource.md +0 -42
- package/docs/TagListResourceArrayResponse.md +0 -34
- package/src/models/AttachAccessoriesProductChildRequest.ts +0 -66
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +0 -66
- package/src/models/AttachAttributeProductTypeRequest.ts +0 -88
- package/src/models/AttachProductTypeAttributeRequest.ts +0 -88
- package/src/models/AttributeListResource.ts +0 -102
- package/src/models/AttributeListResourceArrayResponse.ts +0 -73
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +0 -93
- package/src/models/ExternalApiLogListResource.ts +0 -100
- package/src/models/ExternalApiLogListResourceArrayResponse.ts +0 -73
- package/src/models/IndexProductRequest.ts +0 -192
- package/src/models/OverlayTemplateListResource.ts +0 -92
- package/src/models/OverlayTemplateListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedAttributeListResourceResponse.ts +0 -90
- package/src/models/PaginatedExternalApiLogListResourceResponse.ts +0 -90
- package/src/models/PaginatedOverlayTemplateListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductChildListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductTypeListResourceResponse.ts +0 -90
- package/src/models/PaginatedSiteListResourceResponse.ts +0 -90
- package/src/models/PaginatedSiteNotificationListResourceResponse.ts +0 -90
- package/src/models/PaginatedSupplierListResourceResponse.ts +0 -90
- package/src/models/PaginatedTagListResourceResponse.ts +0 -90
- package/src/models/ProductChildListResource.ts +0 -119
- package/src/models/ProductChildListResourceArrayResponse.ts +0 -73
- package/src/models/ProductListResource.ts +0 -75
- package/src/models/ProductListResourceArrayResponse.ts +0 -73
- package/src/models/ProductTypeListResource.ts +0 -84
- package/src/models/ProductTypeListResourceArrayResponse.ts +0 -73
- package/src/models/SiteListResource.ts +0 -93
- package/src/models/SiteListResourceArrayResponse.ts +0 -73
- package/src/models/SiteNotificationListResource.ts +0 -153
- package/src/models/SiteNotificationListResourceArrayResponse.ts +0 -73
- package/src/models/SupplierListResource.ts +0 -110
- package/src/models/SupplierListResourceArrayResponse.ts +0 -73
- package/src/models/TagListResource.ts +0 -110
- package/src/models/TagListResourceArrayResponse.ts +0 -73
|
@@ -10,47 +10,26 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetResourceArrayResponse,
|
|
14
|
-
export interface AttachAccessoriesProductChildOperationRequest {
|
|
15
|
-
productChild: number;
|
|
16
|
-
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
17
|
-
}
|
|
18
|
-
export interface AttachCompatibleProductsProductChildRequest {
|
|
19
|
-
productChild: number;
|
|
20
|
-
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
21
|
-
}
|
|
13
|
+
import type { AssetResourceArrayResponse, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, PaginatedProductChildLiteResourceResponse, PaginatedProductChildResourceResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
|
|
22
14
|
export interface DestroyProductRequest {
|
|
23
15
|
product: number;
|
|
24
16
|
}
|
|
25
17
|
export interface DestroyProductChildRequest {
|
|
26
18
|
productChild: number;
|
|
27
19
|
}
|
|
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
|
-
}
|
|
40
20
|
export interface GetAllProductOperationRequest {
|
|
41
21
|
getAllProductRequest?: GetAllProductRequest;
|
|
42
22
|
}
|
|
43
23
|
export interface GetAllProductChildOperationRequest {
|
|
44
24
|
getAllProductChildRequest?: GetAllProductChildRequest;
|
|
45
25
|
}
|
|
46
|
-
export interface
|
|
47
|
-
productChild: number;
|
|
26
|
+
export interface IndexProductChildOperationRequest {
|
|
48
27
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
49
28
|
}
|
|
50
|
-
export interface
|
|
51
|
-
|
|
29
|
+
export interface SearchProductChildrenExcludingRelationsProductChildRequest {
|
|
30
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
52
31
|
}
|
|
53
|
-
export interface
|
|
32
|
+
export interface SearchProductChildrenForRelationsProductChildRequest {
|
|
54
33
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
55
34
|
}
|
|
56
35
|
export interface ShowAssetsProductChildRequest {
|
|
@@ -80,22 +59,6 @@ export interface UpdateProductChildOperationRequest {
|
|
|
80
59
|
*
|
|
81
60
|
*/
|
|
82
61
|
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>;
|
|
99
62
|
/**
|
|
100
63
|
* Auto-generated: destroyProduct
|
|
101
64
|
*/
|
|
@@ -112,30 +75,6 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
112
75
|
* Auto-generated: destroyProductChild
|
|
113
76
|
*/
|
|
114
77
|
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>;
|
|
139
78
|
/**
|
|
140
79
|
* Auto-generated: getAllProduct
|
|
141
80
|
*/
|
|
@@ -153,29 +92,29 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
153
92
|
*/
|
|
154
93
|
getAllProductChild(requestParameters?: GetAllProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildLiteResourceArrayResponse>;
|
|
155
94
|
/**
|
|
156
|
-
* Auto-generated:
|
|
95
|
+
* Auto-generated: indexProductChild
|
|
157
96
|
*/
|
|
158
|
-
|
|
97
|
+
indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildResourceResponse>>;
|
|
159
98
|
/**
|
|
160
|
-
* Auto-generated:
|
|
99
|
+
* Auto-generated: indexProductChild
|
|
161
100
|
*/
|
|
162
|
-
|
|
101
|
+
indexProductChild(requestParameters?: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildResourceResponse>;
|
|
163
102
|
/**
|
|
164
|
-
* Auto-generated:
|
|
103
|
+
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
165
104
|
*/
|
|
166
|
-
|
|
105
|
+
searchProductChildrenExcludingRelationsProductChildRaw(requestParameters: SearchProductChildrenExcludingRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildLiteResourceResponse>>;
|
|
167
106
|
/**
|
|
168
|
-
* Auto-generated:
|
|
107
|
+
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
169
108
|
*/
|
|
170
|
-
|
|
109
|
+
searchProductChildrenExcludingRelationsProductChild(requestParameters?: SearchProductChildrenExcludingRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildLiteResourceResponse>;
|
|
171
110
|
/**
|
|
172
|
-
* Auto-generated:
|
|
111
|
+
* Auto-generated: searchProductChildrenForRelationsProductChild
|
|
173
112
|
*/
|
|
174
|
-
|
|
113
|
+
searchProductChildrenForRelationsProductChildRaw(requestParameters: SearchProductChildrenForRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildLiteResourceResponse>>;
|
|
175
114
|
/**
|
|
176
|
-
* Auto-generated:
|
|
115
|
+
* Auto-generated: searchProductChildrenForRelationsProductChild
|
|
177
116
|
*/
|
|
178
|
-
|
|
117
|
+
searchProductChildrenForRelationsProductChild(requestParameters?: SearchProductChildrenForRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildLiteResourceResponse>;
|
|
179
118
|
/**
|
|
180
119
|
* Auto-generated: showAssetsProductChild
|
|
181
120
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -75,102 +75,6 @@ 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
|
-
};
|
|
174
78
|
/**
|
|
175
79
|
* Auto-generated: destroyProduct
|
|
176
80
|
*/
|
|
@@ -263,154 +167,6 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
263
167
|
});
|
|
264
168
|
});
|
|
265
169
|
};
|
|
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
|
-
};
|
|
414
170
|
/**
|
|
415
171
|
* Auto-generated: getAllProduct
|
|
416
172
|
*/
|
|
@@ -502,22 +258,18 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
502
258
|
});
|
|
503
259
|
};
|
|
504
260
|
/**
|
|
505
|
-
* Auto-generated:
|
|
261
|
+
* Auto-generated: indexProductChild
|
|
506
262
|
*/
|
|
507
|
-
ProductApi.prototype.
|
|
263
|
+
ProductApi.prototype.indexProductChildRaw = function (requestParameters, initOverrides) {
|
|
508
264
|
return __awaiter(this, void 0, void 0, function () {
|
|
509
265
|
var queryParameters, headerParameters, urlPath, response;
|
|
510
266
|
return __generator(this, function (_a) {
|
|
511
267
|
switch (_a.label) {
|
|
512
268
|
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
269
|
queryParameters = {};
|
|
517
270
|
headerParameters = {};
|
|
518
271
|
headerParameters['Content-Type'] = 'application/json';
|
|
519
|
-
urlPath = "/admin-api/product/children/
|
|
520
|
-
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
272
|
+
urlPath = "/admin-api/product/children/list";
|
|
521
273
|
return [4 /*yield*/, this.request({
|
|
522
274
|
path: urlPath,
|
|
523
275
|
method: 'POST',
|
|
@@ -527,20 +279,21 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
527
279
|
}, initOverrides)];
|
|
528
280
|
case 1:
|
|
529
281
|
response = _a.sent();
|
|
530
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
282
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildResourceResponseFromJSON)(jsonValue); })];
|
|
531
283
|
}
|
|
532
284
|
});
|
|
533
285
|
});
|
|
534
286
|
};
|
|
535
287
|
/**
|
|
536
|
-
* Auto-generated:
|
|
288
|
+
* Auto-generated: indexProductChild
|
|
537
289
|
*/
|
|
538
|
-
ProductApi.prototype.
|
|
539
|
-
return __awaiter(this,
|
|
290
|
+
ProductApi.prototype.indexProductChild = function () {
|
|
291
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
540
292
|
var response;
|
|
293
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
541
294
|
return __generator(this, function (_a) {
|
|
542
295
|
switch (_a.label) {
|
|
543
|
-
case 0: return [4 /*yield*/, this.
|
|
296
|
+
case 0: return [4 /*yield*/, this.indexProductChildRaw(requestParameters, initOverrides)];
|
|
544
297
|
case 1:
|
|
545
298
|
response = _a.sent();
|
|
546
299
|
return [4 /*yield*/, response.value()];
|
|
@@ -550,9 +303,9 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
550
303
|
});
|
|
551
304
|
};
|
|
552
305
|
/**
|
|
553
|
-
* Auto-generated:
|
|
306
|
+
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
554
307
|
*/
|
|
555
|
-
ProductApi.prototype.
|
|
308
|
+
ProductApi.prototype.searchProductChildrenExcludingRelationsProductChildRaw = function (requestParameters, initOverrides) {
|
|
556
309
|
return __awaiter(this, void 0, void 0, function () {
|
|
557
310
|
var queryParameters, headerParameters, urlPath, response;
|
|
558
311
|
return __generator(this, function (_a) {
|
|
@@ -561,31 +314,31 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
561
314
|
queryParameters = {};
|
|
562
315
|
headerParameters = {};
|
|
563
316
|
headerParameters['Content-Type'] = 'application/json';
|
|
564
|
-
urlPath = "/admin-api/product/
|
|
317
|
+
urlPath = "/admin-api/product/children/search-excluding-relations";
|
|
565
318
|
return [4 /*yield*/, this.request({
|
|
566
319
|
path: urlPath,
|
|
567
320
|
method: 'POST',
|
|
568
321
|
headers: headerParameters,
|
|
569
322
|
query: queryParameters,
|
|
570
|
-
body: (0, index_1.
|
|
323
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
571
324
|
}, initOverrides)];
|
|
572
325
|
case 1:
|
|
573
326
|
response = _a.sent();
|
|
574
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
327
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildLiteResourceResponseFromJSON)(jsonValue); })];
|
|
575
328
|
}
|
|
576
329
|
});
|
|
577
330
|
});
|
|
578
331
|
};
|
|
579
332
|
/**
|
|
580
|
-
* Auto-generated:
|
|
333
|
+
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
581
334
|
*/
|
|
582
|
-
ProductApi.prototype.
|
|
335
|
+
ProductApi.prototype.searchProductChildrenExcludingRelationsProductChild = function () {
|
|
583
336
|
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
584
337
|
var response;
|
|
585
338
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
586
339
|
return __generator(this, function (_a) {
|
|
587
340
|
switch (_a.label) {
|
|
588
|
-
case 0: return [4 /*yield*/, this.
|
|
341
|
+
case 0: return [4 /*yield*/, this.searchProductChildrenExcludingRelationsProductChildRaw(requestParameters, initOverrides)];
|
|
589
342
|
case 1:
|
|
590
343
|
response = _a.sent();
|
|
591
344
|
return [4 /*yield*/, response.value()];
|
|
@@ -595,9 +348,9 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
595
348
|
});
|
|
596
349
|
};
|
|
597
350
|
/**
|
|
598
|
-
* Auto-generated:
|
|
351
|
+
* Auto-generated: searchProductChildrenForRelationsProductChild
|
|
599
352
|
*/
|
|
600
|
-
ProductApi.prototype.
|
|
353
|
+
ProductApi.prototype.searchProductChildrenForRelationsProductChildRaw = function (requestParameters, initOverrides) {
|
|
601
354
|
return __awaiter(this, void 0, void 0, function () {
|
|
602
355
|
var queryParameters, headerParameters, urlPath, response;
|
|
603
356
|
return __generator(this, function (_a) {
|
|
@@ -606,7 +359,7 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
606
359
|
queryParameters = {};
|
|
607
360
|
headerParameters = {};
|
|
608
361
|
headerParameters['Content-Type'] = 'application/json';
|
|
609
|
-
urlPath = "/admin-api/product/children/
|
|
362
|
+
urlPath = "/admin-api/product/children/search-for-relations";
|
|
610
363
|
return [4 /*yield*/, this.request({
|
|
611
364
|
path: urlPath,
|
|
612
365
|
method: 'POST',
|
|
@@ -616,21 +369,21 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
616
369
|
}, initOverrides)];
|
|
617
370
|
case 1:
|
|
618
371
|
response = _a.sent();
|
|
619
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
372
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildLiteResourceResponseFromJSON)(jsonValue); })];
|
|
620
373
|
}
|
|
621
374
|
});
|
|
622
375
|
});
|
|
623
376
|
};
|
|
624
377
|
/**
|
|
625
|
-
* Auto-generated:
|
|
378
|
+
* Auto-generated: searchProductChildrenForRelationsProductChild
|
|
626
379
|
*/
|
|
627
|
-
ProductApi.prototype.
|
|
380
|
+
ProductApi.prototype.searchProductChildrenForRelationsProductChild = function () {
|
|
628
381
|
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
629
382
|
var response;
|
|
630
383
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
631
384
|
return __generator(this, function (_a) {
|
|
632
385
|
switch (_a.label) {
|
|
633
|
-
case 0: return [4 /*yield*/, this.
|
|
386
|
+
case 0: return [4 /*yield*/, this.searchProductChildrenForRelationsProductChildRaw(requestParameters, initOverrides)];
|
|
634
387
|
case 1:
|
|
635
388
|
response = _a.sent();
|
|
636
389
|
return [4 /*yield*/, response.value()];
|