@digital8/lighting-illusions-ts-sdk 0.0.708 → 0.0.710
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 +56 -0
- package/README.md +43 -2
- package/dist/apis/ProductRangeApi.d.ts +181 -0
- package/dist/apis/ProductRangeApi.js +739 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAttributesProductRangeRequest.js +51 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +1 -0
- package/dist/models/GetAllDocumentRequest.js +1 -0
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +1 -0
- package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
- package/dist/models/GetAllProductRangeRequest.js +82 -0
- package/dist/models/IndexAttributeRequest.d.ts +2 -0
- package/dist/models/IndexAttributeRequest.js +3 -1
- package/dist/models/IndexDocumentRequest.d.ts +1 -0
- package/dist/models/IndexDocumentRequest.js +1 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/IndexProductRangeRequest.js +86 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
- package/dist/models/ProductChildResource.d.ts +7 -1
- package/dist/models/ProductChildResource.js +4 -2
- package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
- package/dist/models/ProductRangeFrontendListResource.js +71 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
- package/dist/models/ProductRangeFrontendResource.js +109 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeListResource.d.ts +52 -0
- package/dist/models/ProductRangeListResource.js +65 -0
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeLiteResource.d.ts +38 -0
- package/dist/models/ProductRangeLiteResource.js +55 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeResource.d.ts +83 -0
- package/dist/models/ProductRangeResource.js +82 -0
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailResource.d.ts +94 -0
- package/dist/models/ProductRangeSiteDetailResource.js +93 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductRangeRequest.d.ts +52 -0
- package/dist/models/StoreProductRangeRequest.js +59 -0
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
- package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
- package/dist/models/UpdateProductRangeRequest.d.ts +52 -0
- package/dist/models/UpdateProductRangeRequest.js +59 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachDocumentsProductRangeRequest.md +34 -0
- package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
- package/docs/DetachAttributesProductRangeRequest.md +34 -0
- package/docs/DetachDocumentsProductRangeRequest.md +34 -0
- package/docs/GetAllProductRangeRequest.md +50 -0
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeResourceResponse.md +36 -0
- package/docs/ProductChildResource.md +4 -2
- package/docs/ProductRangeApi.md +959 -0
- package/docs/ProductRangeFrontendListResource.md +44 -0
- package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeFrontendResource.md +62 -0
- package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductRangeListResource.md +40 -0
- package/docs/ProductRangeListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeLiteResource.md +36 -0
- package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeResource.md +50 -0
- package/docs/ProductRangeResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailResource.md +54 -0
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
- package/docs/StoreProductRangeRequest.md +40 -0
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/UpdateProductRangeRequest.md +40 -0
- package/package.json +1 -1
- package/src/apis/ProductRangeApi.ts +664 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/AttachAttributesProductRangeRequest.ts +66 -0
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
- package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
- package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
- package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +1 -0
- package/src/models/GetAllProductChildRequest.ts +1 -0
- package/src/models/GetAllProductRangeRequest.ts +151 -0
- package/src/models/IndexAttributeRequest.ts +3 -1
- package/src/models/IndexDocumentRequest.ts +1 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
- package/src/models/ProductChildResource.ts +11 -3
- package/src/models/ProductRangeFrontendListResource.ts +111 -0
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +207 -0
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeListResource.ts +108 -0
- package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeLiteResource.ts +75 -0
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeResource.ts +158 -0
- package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailResource.ts +171 -0
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateProductRangeRequest.ts +105 -0
- package/src/models/index.ts +27 -0
|
@@ -0,0 +1,664 @@
|
|
|
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
|
+
AttachAccessoriesProductRangeRequest,
|
|
19
|
+
AttachAttributesProductRangeRequest,
|
|
20
|
+
AttachDocumentsProductRangeRequest,
|
|
21
|
+
DetachAccessoriesProductRangeRequest,
|
|
22
|
+
DetachAttributesProductRangeRequest,
|
|
23
|
+
DetachDocumentsProductRangeRequest,
|
|
24
|
+
GenericResponse,
|
|
25
|
+
GetAllProductRangeRequest,
|
|
26
|
+
IndexProductRangeRequest,
|
|
27
|
+
PaginatedProductRangeListResourceResponse,
|
|
28
|
+
ProductRangeLiteResourceArrayResponse,
|
|
29
|
+
ProductRangeResource,
|
|
30
|
+
StoreProductRangeRequest,
|
|
31
|
+
UpdateProductRangeRequest,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
import {
|
|
34
|
+
AttachAccessoriesProductRangeRequestFromJSON,
|
|
35
|
+
AttachAccessoriesProductRangeRequestToJSON,
|
|
36
|
+
AttachAttributesProductRangeRequestFromJSON,
|
|
37
|
+
AttachAttributesProductRangeRequestToJSON,
|
|
38
|
+
AttachDocumentsProductRangeRequestFromJSON,
|
|
39
|
+
AttachDocumentsProductRangeRequestToJSON,
|
|
40
|
+
DetachAccessoriesProductRangeRequestFromJSON,
|
|
41
|
+
DetachAccessoriesProductRangeRequestToJSON,
|
|
42
|
+
DetachAttributesProductRangeRequestFromJSON,
|
|
43
|
+
DetachAttributesProductRangeRequestToJSON,
|
|
44
|
+
DetachDocumentsProductRangeRequestFromJSON,
|
|
45
|
+
DetachDocumentsProductRangeRequestToJSON,
|
|
46
|
+
GenericResponseFromJSON,
|
|
47
|
+
GenericResponseToJSON,
|
|
48
|
+
GetAllProductRangeRequestFromJSON,
|
|
49
|
+
GetAllProductRangeRequestToJSON,
|
|
50
|
+
IndexProductRangeRequestFromJSON,
|
|
51
|
+
IndexProductRangeRequestToJSON,
|
|
52
|
+
PaginatedProductRangeListResourceResponseFromJSON,
|
|
53
|
+
PaginatedProductRangeListResourceResponseToJSON,
|
|
54
|
+
ProductRangeLiteResourceArrayResponseFromJSON,
|
|
55
|
+
ProductRangeLiteResourceArrayResponseToJSON,
|
|
56
|
+
ProductRangeResourceFromJSON,
|
|
57
|
+
ProductRangeResourceToJSON,
|
|
58
|
+
StoreProductRangeRequestFromJSON,
|
|
59
|
+
StoreProductRangeRequestToJSON,
|
|
60
|
+
UpdateProductRangeRequestFromJSON,
|
|
61
|
+
UpdateProductRangeRequestToJSON,
|
|
62
|
+
} from '../models/index';
|
|
63
|
+
|
|
64
|
+
export interface AttachAccessoriesProductRangeOperationRequest {
|
|
65
|
+
productRange: number;
|
|
66
|
+
attachAccessoriesProductRangeRequest?: AttachAccessoriesProductRangeRequest;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AttachAttributesProductRangeOperationRequest {
|
|
70
|
+
productRange: number;
|
|
71
|
+
attachAttributesProductRangeRequest?: AttachAttributesProductRangeRequest;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface AttachDocumentsProductRangeOperationRequest {
|
|
75
|
+
productRange: number;
|
|
76
|
+
attachDocumentsProductRangeRequest?: AttachDocumentsProductRangeRequest;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface AttachProductChildrenProductRangeRequest {
|
|
80
|
+
productRange: number;
|
|
81
|
+
attachAccessoriesProductRangeRequest?: AttachAccessoriesProductRangeRequest;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface DestroyProductRangeRequest {
|
|
85
|
+
productRange: number;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface DetachAccessoriesProductRangeOperationRequest {
|
|
89
|
+
productRange: number;
|
|
90
|
+
detachAccessoriesProductRangeRequest?: DetachAccessoriesProductRangeRequest;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface DetachAttributesProductRangeOperationRequest {
|
|
94
|
+
productRange: number;
|
|
95
|
+
detachAttributesProductRangeRequest?: DetachAttributesProductRangeRequest;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface DetachDocumentsProductRangeOperationRequest {
|
|
99
|
+
productRange: number;
|
|
100
|
+
detachDocumentsProductRangeRequest?: DetachDocumentsProductRangeRequest;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface DetachProductChildrenProductRangeRequest {
|
|
104
|
+
productRange: number;
|
|
105
|
+
detachAccessoriesProductRangeRequest?: DetachAccessoriesProductRangeRequest;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface GetAllProductRangeOperationRequest {
|
|
109
|
+
getAllProductRangeRequest?: GetAllProductRangeRequest;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface IndexProductRangeOperationRequest {
|
|
113
|
+
indexProductRangeRequest?: IndexProductRangeRequest;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface ShowProductRangeRequest {
|
|
117
|
+
productRange: number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface StoreProductRangeOperationRequest {
|
|
121
|
+
storeProductRangeRequest?: StoreProductRangeRequest;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface UpdateProductRangeOperationRequest {
|
|
125
|
+
productRange: number;
|
|
126
|
+
updateProductRangeRequest?: UpdateProductRangeRequest;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
export class ProductRangeApi extends runtime.BaseAPI {
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Auto-generated: attachAccessoriesProductRange
|
|
136
|
+
*/
|
|
137
|
+
async attachAccessoriesProductRangeRaw(requestParameters: AttachAccessoriesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
138
|
+
if (requestParameters['productRange'] == null) {
|
|
139
|
+
throw new runtime.RequiredError(
|
|
140
|
+
'productRange',
|
|
141
|
+
'Required parameter "productRange" was null or undefined when calling attachAccessoriesProductRange().'
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const queryParameters: any = {};
|
|
146
|
+
|
|
147
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
148
|
+
|
|
149
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
let urlPath = `/admin-api/product-range/{productRange}/attach-accessories`;
|
|
153
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
154
|
+
|
|
155
|
+
const response = await this.request({
|
|
156
|
+
path: urlPath,
|
|
157
|
+
method: 'POST',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
query: queryParameters,
|
|
160
|
+
body: AttachAccessoriesProductRangeRequestToJSON(requestParameters['attachAccessoriesProductRangeRequest']),
|
|
161
|
+
}, initOverrides);
|
|
162
|
+
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Auto-generated: attachAccessoriesProductRange
|
|
168
|
+
*/
|
|
169
|
+
async attachAccessoriesProductRange(requestParameters: AttachAccessoriesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
170
|
+
const response = await this.attachAccessoriesProductRangeRaw(requestParameters, initOverrides);
|
|
171
|
+
return await response.value();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Auto-generated: attachAttributesProductRange
|
|
176
|
+
*/
|
|
177
|
+
async attachAttributesProductRangeRaw(requestParameters: AttachAttributesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
178
|
+
if (requestParameters['productRange'] == null) {
|
|
179
|
+
throw new runtime.RequiredError(
|
|
180
|
+
'productRange',
|
|
181
|
+
'Required parameter "productRange" was null or undefined when calling attachAttributesProductRange().'
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const queryParameters: any = {};
|
|
186
|
+
|
|
187
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
188
|
+
|
|
189
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
let urlPath = `/admin-api/product-range/{productRange}/attach-attributes`;
|
|
193
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
194
|
+
|
|
195
|
+
const response = await this.request({
|
|
196
|
+
path: urlPath,
|
|
197
|
+
method: 'POST',
|
|
198
|
+
headers: headerParameters,
|
|
199
|
+
query: queryParameters,
|
|
200
|
+
body: AttachAttributesProductRangeRequestToJSON(requestParameters['attachAttributesProductRangeRequest']),
|
|
201
|
+
}, initOverrides);
|
|
202
|
+
|
|
203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Auto-generated: attachAttributesProductRange
|
|
208
|
+
*/
|
|
209
|
+
async attachAttributesProductRange(requestParameters: AttachAttributesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
210
|
+
const response = await this.attachAttributesProductRangeRaw(requestParameters, initOverrides);
|
|
211
|
+
return await response.value();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Auto-generated: attachDocumentsProductRange
|
|
216
|
+
*/
|
|
217
|
+
async attachDocumentsProductRangeRaw(requestParameters: AttachDocumentsProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
218
|
+
if (requestParameters['productRange'] == null) {
|
|
219
|
+
throw new runtime.RequiredError(
|
|
220
|
+
'productRange',
|
|
221
|
+
'Required parameter "productRange" was null or undefined when calling attachDocumentsProductRange().'
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const queryParameters: any = {};
|
|
226
|
+
|
|
227
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
228
|
+
|
|
229
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
let urlPath = `/admin-api/product-range/{productRange}/attach-documents`;
|
|
233
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
234
|
+
|
|
235
|
+
const response = await this.request({
|
|
236
|
+
path: urlPath,
|
|
237
|
+
method: 'POST',
|
|
238
|
+
headers: headerParameters,
|
|
239
|
+
query: queryParameters,
|
|
240
|
+
body: AttachDocumentsProductRangeRequestToJSON(requestParameters['attachDocumentsProductRangeRequest']),
|
|
241
|
+
}, initOverrides);
|
|
242
|
+
|
|
243
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Auto-generated: attachDocumentsProductRange
|
|
248
|
+
*/
|
|
249
|
+
async attachDocumentsProductRange(requestParameters: AttachDocumentsProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
250
|
+
const response = await this.attachDocumentsProductRangeRaw(requestParameters, initOverrides);
|
|
251
|
+
return await response.value();
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Auto-generated: attachProductChildrenProductRange
|
|
256
|
+
*/
|
|
257
|
+
async attachProductChildrenProductRangeRaw(requestParameters: AttachProductChildrenProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
258
|
+
if (requestParameters['productRange'] == null) {
|
|
259
|
+
throw new runtime.RequiredError(
|
|
260
|
+
'productRange',
|
|
261
|
+
'Required parameter "productRange" was null or undefined when calling attachProductChildrenProductRange().'
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const queryParameters: any = {};
|
|
266
|
+
|
|
267
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
268
|
+
|
|
269
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
let urlPath = `/admin-api/product-range/{productRange}/attach-products`;
|
|
273
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
274
|
+
|
|
275
|
+
const response = await this.request({
|
|
276
|
+
path: urlPath,
|
|
277
|
+
method: 'POST',
|
|
278
|
+
headers: headerParameters,
|
|
279
|
+
query: queryParameters,
|
|
280
|
+
body: AttachAccessoriesProductRangeRequestToJSON(requestParameters['attachAccessoriesProductRangeRequest']),
|
|
281
|
+
}, initOverrides);
|
|
282
|
+
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Auto-generated: attachProductChildrenProductRange
|
|
288
|
+
*/
|
|
289
|
+
async attachProductChildrenProductRange(requestParameters: AttachProductChildrenProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
290
|
+
const response = await this.attachProductChildrenProductRangeRaw(requestParameters, initOverrides);
|
|
291
|
+
return await response.value();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Auto-generated: destroyProductRange
|
|
296
|
+
*/
|
|
297
|
+
async destroyProductRangeRaw(requestParameters: DestroyProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
298
|
+
if (requestParameters['productRange'] == null) {
|
|
299
|
+
throw new runtime.RequiredError(
|
|
300
|
+
'productRange',
|
|
301
|
+
'Required parameter "productRange" was null or undefined when calling destroyProductRange().'
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const queryParameters: any = {};
|
|
306
|
+
|
|
307
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
let urlPath = `/admin-api/product-range/{productRange}/delete`;
|
|
311
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
312
|
+
|
|
313
|
+
const response = await this.request({
|
|
314
|
+
path: urlPath,
|
|
315
|
+
method: 'DELETE',
|
|
316
|
+
headers: headerParameters,
|
|
317
|
+
query: queryParameters,
|
|
318
|
+
}, initOverrides);
|
|
319
|
+
|
|
320
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Auto-generated: destroyProductRange
|
|
325
|
+
*/
|
|
326
|
+
async destroyProductRange(requestParameters: DestroyProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
327
|
+
const response = await this.destroyProductRangeRaw(requestParameters, initOverrides);
|
|
328
|
+
return await response.value();
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Auto-generated: detachAccessoriesProductRange
|
|
333
|
+
*/
|
|
334
|
+
async detachAccessoriesProductRangeRaw(requestParameters: DetachAccessoriesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
335
|
+
if (requestParameters['productRange'] == null) {
|
|
336
|
+
throw new runtime.RequiredError(
|
|
337
|
+
'productRange',
|
|
338
|
+
'Required parameter "productRange" was null or undefined when calling detachAccessoriesProductRange().'
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
const queryParameters: any = {};
|
|
343
|
+
|
|
344
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
345
|
+
|
|
346
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
let urlPath = `/admin-api/product-range/{productRange}/detach-accessories`;
|
|
350
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
351
|
+
|
|
352
|
+
const response = await this.request({
|
|
353
|
+
path: urlPath,
|
|
354
|
+
method: 'POST',
|
|
355
|
+
headers: headerParameters,
|
|
356
|
+
query: queryParameters,
|
|
357
|
+
body: DetachAccessoriesProductRangeRequestToJSON(requestParameters['detachAccessoriesProductRangeRequest']),
|
|
358
|
+
}, initOverrides);
|
|
359
|
+
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Auto-generated: detachAccessoriesProductRange
|
|
365
|
+
*/
|
|
366
|
+
async detachAccessoriesProductRange(requestParameters: DetachAccessoriesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
367
|
+
const response = await this.detachAccessoriesProductRangeRaw(requestParameters, initOverrides);
|
|
368
|
+
return await response.value();
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Auto-generated: detachAttributesProductRange
|
|
373
|
+
*/
|
|
374
|
+
async detachAttributesProductRangeRaw(requestParameters: DetachAttributesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
375
|
+
if (requestParameters['productRange'] == null) {
|
|
376
|
+
throw new runtime.RequiredError(
|
|
377
|
+
'productRange',
|
|
378
|
+
'Required parameter "productRange" was null or undefined when calling detachAttributesProductRange().'
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
const queryParameters: any = {};
|
|
383
|
+
|
|
384
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
385
|
+
|
|
386
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
let urlPath = `/admin-api/product-range/{productRange}/detach-attributes`;
|
|
390
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
391
|
+
|
|
392
|
+
const response = await this.request({
|
|
393
|
+
path: urlPath,
|
|
394
|
+
method: 'POST',
|
|
395
|
+
headers: headerParameters,
|
|
396
|
+
query: queryParameters,
|
|
397
|
+
body: DetachAttributesProductRangeRequestToJSON(requestParameters['detachAttributesProductRangeRequest']),
|
|
398
|
+
}, initOverrides);
|
|
399
|
+
|
|
400
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Auto-generated: detachAttributesProductRange
|
|
405
|
+
*/
|
|
406
|
+
async detachAttributesProductRange(requestParameters: DetachAttributesProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
407
|
+
const response = await this.detachAttributesProductRangeRaw(requestParameters, initOverrides);
|
|
408
|
+
return await response.value();
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Auto-generated: detachDocumentsProductRange
|
|
413
|
+
*/
|
|
414
|
+
async detachDocumentsProductRangeRaw(requestParameters: DetachDocumentsProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
415
|
+
if (requestParameters['productRange'] == null) {
|
|
416
|
+
throw new runtime.RequiredError(
|
|
417
|
+
'productRange',
|
|
418
|
+
'Required parameter "productRange" was null or undefined when calling detachDocumentsProductRange().'
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
const queryParameters: any = {};
|
|
423
|
+
|
|
424
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
425
|
+
|
|
426
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
let urlPath = `/admin-api/product-range/{productRange}/detach-documents`;
|
|
430
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
431
|
+
|
|
432
|
+
const response = await this.request({
|
|
433
|
+
path: urlPath,
|
|
434
|
+
method: 'POST',
|
|
435
|
+
headers: headerParameters,
|
|
436
|
+
query: queryParameters,
|
|
437
|
+
body: DetachDocumentsProductRangeRequestToJSON(requestParameters['detachDocumentsProductRangeRequest']),
|
|
438
|
+
}, initOverrides);
|
|
439
|
+
|
|
440
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Auto-generated: detachDocumentsProductRange
|
|
445
|
+
*/
|
|
446
|
+
async detachDocumentsProductRange(requestParameters: DetachDocumentsProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
447
|
+
const response = await this.detachDocumentsProductRangeRaw(requestParameters, initOverrides);
|
|
448
|
+
return await response.value();
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Auto-generated: detachProductChildrenProductRange
|
|
453
|
+
*/
|
|
454
|
+
async detachProductChildrenProductRangeRaw(requestParameters: DetachProductChildrenProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
455
|
+
if (requestParameters['productRange'] == null) {
|
|
456
|
+
throw new runtime.RequiredError(
|
|
457
|
+
'productRange',
|
|
458
|
+
'Required parameter "productRange" was null or undefined when calling detachProductChildrenProductRange().'
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
const queryParameters: any = {};
|
|
463
|
+
|
|
464
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
465
|
+
|
|
466
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
let urlPath = `/admin-api/product-range/{productRange}/detach-products`;
|
|
470
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
471
|
+
|
|
472
|
+
const response = await this.request({
|
|
473
|
+
path: urlPath,
|
|
474
|
+
method: 'POST',
|
|
475
|
+
headers: headerParameters,
|
|
476
|
+
query: queryParameters,
|
|
477
|
+
body: DetachAccessoriesProductRangeRequestToJSON(requestParameters['detachAccessoriesProductRangeRequest']),
|
|
478
|
+
}, initOverrides);
|
|
479
|
+
|
|
480
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Auto-generated: detachProductChildrenProductRange
|
|
485
|
+
*/
|
|
486
|
+
async detachProductChildrenProductRange(requestParameters: DetachProductChildrenProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
487
|
+
const response = await this.detachProductChildrenProductRangeRaw(requestParameters, initOverrides);
|
|
488
|
+
return await response.value();
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Auto-generated: getAllProductRange
|
|
493
|
+
*/
|
|
494
|
+
async getAllProductRangeRaw(requestParameters: GetAllProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeLiteResourceArrayResponse>> {
|
|
495
|
+
const queryParameters: any = {};
|
|
496
|
+
|
|
497
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
498
|
+
|
|
499
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
let urlPath = `/admin-api/product-range/all`;
|
|
503
|
+
|
|
504
|
+
const response = await this.request({
|
|
505
|
+
path: urlPath,
|
|
506
|
+
method: 'POST',
|
|
507
|
+
headers: headerParameters,
|
|
508
|
+
query: queryParameters,
|
|
509
|
+
body: GetAllProductRangeRequestToJSON(requestParameters['getAllProductRangeRequest']),
|
|
510
|
+
}, initOverrides);
|
|
511
|
+
|
|
512
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeLiteResourceArrayResponseFromJSON(jsonValue));
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Auto-generated: getAllProductRange
|
|
517
|
+
*/
|
|
518
|
+
async getAllProductRange(requestParameters: GetAllProductRangeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeLiteResourceArrayResponse> {
|
|
519
|
+
const response = await this.getAllProductRangeRaw(requestParameters, initOverrides);
|
|
520
|
+
return await response.value();
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Auto-generated: indexProductRange
|
|
525
|
+
*/
|
|
526
|
+
async indexProductRangeRaw(requestParameters: IndexProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRangeListResourceResponse>> {
|
|
527
|
+
const queryParameters: any = {};
|
|
528
|
+
|
|
529
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
530
|
+
|
|
531
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
let urlPath = `/admin-api/product-range/list`;
|
|
535
|
+
|
|
536
|
+
const response = await this.request({
|
|
537
|
+
path: urlPath,
|
|
538
|
+
method: 'POST',
|
|
539
|
+
headers: headerParameters,
|
|
540
|
+
query: queryParameters,
|
|
541
|
+
body: IndexProductRangeRequestToJSON(requestParameters['indexProductRangeRequest']),
|
|
542
|
+
}, initOverrides);
|
|
543
|
+
|
|
544
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductRangeListResourceResponseFromJSON(jsonValue));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Auto-generated: indexProductRange
|
|
549
|
+
*/
|
|
550
|
+
async indexProductRange(requestParameters: IndexProductRangeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRangeListResourceResponse> {
|
|
551
|
+
const response = await this.indexProductRangeRaw(requestParameters, initOverrides);
|
|
552
|
+
return await response.value();
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Auto-generated: showProductRange
|
|
557
|
+
*/
|
|
558
|
+
async showProductRangeRaw(requestParameters: ShowProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
559
|
+
if (requestParameters['productRange'] == null) {
|
|
560
|
+
throw new runtime.RequiredError(
|
|
561
|
+
'productRange',
|
|
562
|
+
'Required parameter "productRange" was null or undefined when calling showProductRange().'
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
const queryParameters: any = {};
|
|
567
|
+
|
|
568
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
let urlPath = `/admin-api/product-range/{productRange}`;
|
|
572
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
573
|
+
|
|
574
|
+
const response = await this.request({
|
|
575
|
+
path: urlPath,
|
|
576
|
+
method: 'GET',
|
|
577
|
+
headers: headerParameters,
|
|
578
|
+
query: queryParameters,
|
|
579
|
+
}, initOverrides);
|
|
580
|
+
|
|
581
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Auto-generated: showProductRange
|
|
586
|
+
*/
|
|
587
|
+
async showProductRange(requestParameters: ShowProductRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
588
|
+
const response = await this.showProductRangeRaw(requestParameters, initOverrides);
|
|
589
|
+
return await response.value();
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Auto-generated: storeProductRange
|
|
594
|
+
*/
|
|
595
|
+
async storeProductRangeRaw(requestParameters: StoreProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
596
|
+
const queryParameters: any = {};
|
|
597
|
+
|
|
598
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
599
|
+
|
|
600
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
let urlPath = `/admin-api/product-range/create`;
|
|
604
|
+
|
|
605
|
+
const response = await this.request({
|
|
606
|
+
path: urlPath,
|
|
607
|
+
method: 'POST',
|
|
608
|
+
headers: headerParameters,
|
|
609
|
+
query: queryParameters,
|
|
610
|
+
body: StoreProductRangeRequestToJSON(requestParameters['storeProductRangeRequest']),
|
|
611
|
+
}, initOverrides);
|
|
612
|
+
|
|
613
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Auto-generated: storeProductRange
|
|
618
|
+
*/
|
|
619
|
+
async storeProductRange(requestParameters: StoreProductRangeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
620
|
+
const response = await this.storeProductRangeRaw(requestParameters, initOverrides);
|
|
621
|
+
return await response.value();
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Auto-generated: updateProductRange
|
|
626
|
+
*/
|
|
627
|
+
async updateProductRangeRaw(requestParameters: UpdateProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRangeResource>> {
|
|
628
|
+
if (requestParameters['productRange'] == null) {
|
|
629
|
+
throw new runtime.RequiredError(
|
|
630
|
+
'productRange',
|
|
631
|
+
'Required parameter "productRange" was null or undefined when calling updateProductRange().'
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
const queryParameters: any = {};
|
|
636
|
+
|
|
637
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
638
|
+
|
|
639
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
let urlPath = `/admin-api/product-range/{productRange}/update`;
|
|
643
|
+
urlPath = urlPath.replace(`{${"productRange"}}`, encodeURIComponent(String(requestParameters['productRange'])));
|
|
644
|
+
|
|
645
|
+
const response = await this.request({
|
|
646
|
+
path: urlPath,
|
|
647
|
+
method: 'PUT',
|
|
648
|
+
headers: headerParameters,
|
|
649
|
+
query: queryParameters,
|
|
650
|
+
body: UpdateProductRangeRequestToJSON(requestParameters['updateProductRangeRequest']),
|
|
651
|
+
}, initOverrides);
|
|
652
|
+
|
|
653
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRangeResourceFromJSON(jsonValue));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Auto-generated: updateProductRange
|
|
658
|
+
*/
|
|
659
|
+
async updateProductRange(requestParameters: UpdateProductRangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRangeResource> {
|
|
660
|
+
const response = await this.updateProductRangeRaw(requestParameters, initOverrides);
|
|
661
|
+
return await response.value();
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
}
|
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 './ProductRangeApi';
|
|
12
13
|
export * from './ProductTypeApi';
|
|
13
14
|
export * from './SiteApi';
|
|
14
15
|
export * from './SupplierApi';
|