@digital8/lighting-illusions-ts-sdk 0.0.465 → 0.0.466
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 -8
- package/README.md +17 -17
- package/dist/apis/AttributeApi.d.ts +31 -31
- package/dist/apis/AttributeApi.js +92 -92
- package/dist/apis/OverlayTemplateApi.d.ts +37 -37
- package/dist/apis/OverlayTemplateApi.js +110 -110
- package/dist/apis/ProductTypeApi.d.ts +31 -31
- package/dist/apis/ProductTypeApi.js +89 -89
- package/dist/apis/TagApi.d.ts +24 -24
- package/dist/apis/TagApi.js +81 -81
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +32 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +51 -0
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +48 -0
- package/dist/models/AttachAttributeProductTypeRequest.js +65 -0
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +48 -0
- package/dist/models/AttachProductTypeAttributeRequest.js +65 -0
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +51 -0
- package/dist/models/{UnlinkAssetableOverlayTemplateRequest.js → DetachAssetableOverlayTemplateRequest.js} +15 -15
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/ProductTypeListResource.d.ts +6 -0
- package/dist/models/ProductTypeListResource.js +4 -0
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/docs/{LinkAssetsOverlayTemplateRequest.md → AttachAssetsOverlayTemplateRequest.md} +4 -4
- package/docs/{LinkAttributeProductTypeRequest.md → AttachAttributeProductTypeRequest.md} +4 -4
- package/docs/{LinkProductTypeAttributeRequest.md → AttachProductTypeAttributeRequest.md} +4 -4
- package/docs/AttributeApi.md +117 -117
- package/docs/{UnlinkAssetableOverlayTemplateRequest.md → DetachAssetableOverlayTemplateRequest.md} +4 -4
- package/docs/OverlayTemplateApi.md +115 -115
- package/docs/ProductTypeApi.md +94 -94
- package/docs/ProductTypeListResource.md +2 -0
- package/docs/TagApi.md +84 -84
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +105 -105
- package/src/apis/OverlayTemplateApi.ts +138 -138
- package/src/apis/ProductTypeApi.ts +101 -101
- package/src/apis/TagApi.ts +88 -88
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +66 -0
- package/src/models/AttachAttributeProductTypeRequest.ts +88 -0
- package/src/models/AttachProductTypeAttributeRequest.ts +88 -0
- package/src/models/{UnlinkAssetableOverlayTemplateRequest.ts → DetachAssetableOverlayTemplateRequest.ts} +16 -16
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductTypeListResource.ts +9 -0
- package/src/models/index.ts +4 -4
- package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +0 -32
- package/dist/models/LinkAssetsOverlayTemplateRequest.js +0 -51
- package/dist/models/LinkAttributeProductTypeRequest.d.ts +0 -48
- package/dist/models/LinkAttributeProductTypeRequest.js +0 -65
- package/dist/models/LinkProductTypeAttributeRequest.d.ts +0 -48
- package/dist/models/LinkProductTypeAttributeRequest.js +0 -65
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +0 -51
- package/src/models/LinkAssetsOverlayTemplateRequest.ts +0 -66
- package/src/models/LinkAttributeProductTypeRequest.ts +0 -88
- package/src/models/LinkProductTypeAttributeRequest.ts +0 -88
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachAttributeProductTypeRequest,
|
|
18
19
|
GenericResponse,
|
|
19
20
|
GetAllProductTypeRequest,
|
|
20
21
|
IndexProductTypeRequest,
|
|
21
|
-
LinkAttributeProductTypeRequest,
|
|
22
22
|
PaginatedProductTypeListResourceResponse,
|
|
23
23
|
PaginatedProductTypeLiteResourceResponse,
|
|
24
24
|
ProductTypeResource,
|
|
@@ -26,14 +26,14 @@ import type {
|
|
|
26
26
|
UpdateProductTypeRequest,
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
import {
|
|
29
|
+
AttachAttributeProductTypeRequestFromJSON,
|
|
30
|
+
AttachAttributeProductTypeRequestToJSON,
|
|
29
31
|
GenericResponseFromJSON,
|
|
30
32
|
GenericResponseToJSON,
|
|
31
33
|
GetAllProductTypeRequestFromJSON,
|
|
32
34
|
GetAllProductTypeRequestToJSON,
|
|
33
35
|
IndexProductTypeRequestFromJSON,
|
|
34
36
|
IndexProductTypeRequestToJSON,
|
|
35
|
-
LinkAttributeProductTypeRequestFromJSON,
|
|
36
|
-
LinkAttributeProductTypeRequestToJSON,
|
|
37
37
|
PaginatedProductTypeListResourceResponseFromJSON,
|
|
38
38
|
PaginatedProductTypeListResourceResponseToJSON,
|
|
39
39
|
PaginatedProductTypeLiteResourceResponseFromJSON,
|
|
@@ -46,10 +46,20 @@ import {
|
|
|
46
46
|
UpdateProductTypeRequestToJSON,
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
|
+
export interface AttachAttributeProductTypeOperationRequest {
|
|
50
|
+
productType: number;
|
|
51
|
+
attachAttributeProductTypeRequest?: AttachAttributeProductTypeRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
export interface DestroyProductTypeRequest {
|
|
50
55
|
productType: number;
|
|
51
56
|
}
|
|
52
57
|
|
|
58
|
+
export interface DetachAttributeProductTypeRequest {
|
|
59
|
+
productType: number;
|
|
60
|
+
attribute: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
export interface GetAllProductTypeOperationRequest {
|
|
54
64
|
getAllProductTypeRequest?: GetAllProductTypeRequest;
|
|
55
65
|
}
|
|
@@ -58,11 +68,6 @@ export interface IndexProductTypeOperationRequest {
|
|
|
58
68
|
indexProductTypeRequest?: IndexProductTypeRequest;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
export interface LinkAttributeProductTypeOperationRequest {
|
|
62
|
-
productType: number;
|
|
63
|
-
linkAttributeProductTypeRequest?: LinkAttributeProductTypeRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
71
|
export interface ShowProductTypeRequest {
|
|
67
72
|
productType: number;
|
|
68
73
|
}
|
|
@@ -71,14 +76,9 @@ export interface StoreProductTypeOperationRequest {
|
|
|
71
76
|
storeProductTypeRequest?: StoreProductTypeRequest;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
export interface
|
|
75
|
-
productType: number;
|
|
76
|
-
attribute: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface UpdateLinkedAttributeProductTypeRequest {
|
|
79
|
+
export interface UpdateAttachedAttributeProductTypeRequest {
|
|
80
80
|
productType: number;
|
|
81
|
-
|
|
81
|
+
attachAttributeProductTypeRequest?: AttachAttributeProductTypeRequest;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface UpdateProductTypeOperationRequest {
|
|
@@ -91,6 +91,46 @@ export interface UpdateProductTypeOperationRequest {
|
|
|
91
91
|
*/
|
|
92
92
|
export class ProductTypeApi extends runtime.BaseAPI {
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Auto-generated: attachAttributeProductType
|
|
96
|
+
*/
|
|
97
|
+
async attachAttributeProductTypeRaw(requestParameters: AttachAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
98
|
+
if (requestParameters['productType'] == null) {
|
|
99
|
+
throw new runtime.RequiredError(
|
|
100
|
+
'productType',
|
|
101
|
+
'Required parameter "productType" was null or undefined when calling attachAttributeProductType().'
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const queryParameters: any = {};
|
|
106
|
+
|
|
107
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
|
+
|
|
109
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
let urlPath = `/admin-api/product-type/{productType}/attach-attribute`;
|
|
113
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
114
|
+
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'POST',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
body: AttachAttributeProductTypeRequestToJSON(requestParameters['attachAttributeProductTypeRequest']),
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
|
|
123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Auto-generated: attachAttributeProductType
|
|
128
|
+
*/
|
|
129
|
+
async attachAttributeProductType(requestParameters: AttachAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
130
|
+
const response = await this.attachAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
131
|
+
return await response.value();
|
|
132
|
+
}
|
|
133
|
+
|
|
94
134
|
/**
|
|
95
135
|
* Auto-generated: destroyProductType
|
|
96
136
|
*/
|
|
@@ -129,41 +169,54 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
129
169
|
}
|
|
130
170
|
|
|
131
171
|
/**
|
|
132
|
-
* Auto-generated:
|
|
172
|
+
* Auto-generated: detachAttributeProductType
|
|
133
173
|
*/
|
|
134
|
-
async
|
|
174
|
+
async detachAttributeProductTypeRaw(requestParameters: DetachAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
175
|
+
if (requestParameters['productType'] == null) {
|
|
176
|
+
throw new runtime.RequiredError(
|
|
177
|
+
'productType',
|
|
178
|
+
'Required parameter "productType" was null or undefined when calling detachAttributeProductType().'
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (requestParameters['attribute'] == null) {
|
|
183
|
+
throw new runtime.RequiredError(
|
|
184
|
+
'attribute',
|
|
185
|
+
'Required parameter "attribute" was null or undefined when calling detachAttributeProductType().'
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
135
189
|
const queryParameters: any = {};
|
|
136
190
|
|
|
137
191
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
138
192
|
|
|
139
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
140
|
-
|
|
141
193
|
|
|
142
|
-
let urlPath = `/admin-api/product-type/
|
|
194
|
+
let urlPath = `/admin-api/product-type/{productType}/detach-attribute/{attribute}`;
|
|
195
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
196
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
143
197
|
|
|
144
198
|
const response = await this.request({
|
|
145
199
|
path: urlPath,
|
|
146
200
|
method: 'POST',
|
|
147
201
|
headers: headerParameters,
|
|
148
202
|
query: queryParameters,
|
|
149
|
-
body: GetAllProductTypeRequestToJSON(requestParameters['getAllProductTypeRequest']),
|
|
150
203
|
}, initOverrides);
|
|
151
204
|
|
|
152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
153
206
|
}
|
|
154
207
|
|
|
155
208
|
/**
|
|
156
|
-
* Auto-generated:
|
|
209
|
+
* Auto-generated: detachAttributeProductType
|
|
157
210
|
*/
|
|
158
|
-
async
|
|
159
|
-
const response = await this.
|
|
211
|
+
async detachAttributeProductType(requestParameters: DetachAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
212
|
+
const response = await this.detachAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
160
213
|
return await response.value();
|
|
161
214
|
}
|
|
162
215
|
|
|
163
216
|
/**
|
|
164
|
-
* Auto-generated:
|
|
217
|
+
* Auto-generated: getAllProductType
|
|
165
218
|
*/
|
|
166
|
-
async
|
|
219
|
+
async getAllProductTypeRaw(requestParameters: GetAllProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeLiteResourceResponse>> {
|
|
167
220
|
const queryParameters: any = {};
|
|
168
221
|
|
|
169
222
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -171,38 +224,31 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
171
224
|
headerParameters['Content-Type'] = 'application/json';
|
|
172
225
|
|
|
173
226
|
|
|
174
|
-
let urlPath = `/admin-api/product-type/
|
|
227
|
+
let urlPath = `/admin-api/product-type/all`;
|
|
175
228
|
|
|
176
229
|
const response = await this.request({
|
|
177
230
|
path: urlPath,
|
|
178
231
|
method: 'POST',
|
|
179
232
|
headers: headerParameters,
|
|
180
233
|
query: queryParameters,
|
|
181
|
-
body:
|
|
234
|
+
body: GetAllProductTypeRequestToJSON(requestParameters['getAllProductTypeRequest']),
|
|
182
235
|
}, initOverrides);
|
|
183
236
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeLiteResourceResponseFromJSON(jsonValue));
|
|
185
238
|
}
|
|
186
239
|
|
|
187
240
|
/**
|
|
188
|
-
* Auto-generated:
|
|
241
|
+
* Auto-generated: getAllProductType
|
|
189
242
|
*/
|
|
190
|
-
async
|
|
191
|
-
const response = await this.
|
|
243
|
+
async getAllProductType(requestParameters: GetAllProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeLiteResourceResponse> {
|
|
244
|
+
const response = await this.getAllProductTypeRaw(requestParameters, initOverrides);
|
|
192
245
|
return await response.value();
|
|
193
246
|
}
|
|
194
247
|
|
|
195
248
|
/**
|
|
196
|
-
* Auto-generated:
|
|
249
|
+
* Auto-generated: indexProductType
|
|
197
250
|
*/
|
|
198
|
-
async
|
|
199
|
-
if (requestParameters['productType'] == null) {
|
|
200
|
-
throw new runtime.RequiredError(
|
|
201
|
-
'productType',
|
|
202
|
-
'Required parameter "productType" was null or undefined when calling linkAttributeProductType().'
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
|
|
251
|
+
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>> {
|
|
206
252
|
const queryParameters: any = {};
|
|
207
253
|
|
|
208
254
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -210,25 +256,24 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
210
256
|
headerParameters['Content-Type'] = 'application/json';
|
|
211
257
|
|
|
212
258
|
|
|
213
|
-
let urlPath = `/admin-api/product-type/
|
|
214
|
-
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
259
|
+
let urlPath = `/admin-api/product-type/list`;
|
|
215
260
|
|
|
216
261
|
const response = await this.request({
|
|
217
262
|
path: urlPath,
|
|
218
263
|
method: 'POST',
|
|
219
264
|
headers: headerParameters,
|
|
220
265
|
query: queryParameters,
|
|
221
|
-
body:
|
|
266
|
+
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
222
267
|
}, initOverrides);
|
|
223
268
|
|
|
224
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeListResourceResponseFromJSON(jsonValue));
|
|
225
270
|
}
|
|
226
271
|
|
|
227
272
|
/**
|
|
228
|
-
* Auto-generated:
|
|
273
|
+
* Auto-generated: indexProductType
|
|
229
274
|
*/
|
|
230
|
-
async
|
|
231
|
-
const response = await this.
|
|
275
|
+
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse> {
|
|
276
|
+
const response = await this.indexProductTypeRaw(requestParameters, initOverrides);
|
|
232
277
|
return await response.value();
|
|
233
278
|
}
|
|
234
279
|
|
|
@@ -302,58 +347,13 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
302
347
|
}
|
|
303
348
|
|
|
304
349
|
/**
|
|
305
|
-
* Auto-generated:
|
|
306
|
-
*/
|
|
307
|
-
async unlinkAttributeProductTypeRaw(requestParameters: UnlinkAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
308
|
-
if (requestParameters['productType'] == null) {
|
|
309
|
-
throw new runtime.RequiredError(
|
|
310
|
-
'productType',
|
|
311
|
-
'Required parameter "productType" was null or undefined when calling unlinkAttributeProductType().'
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
if (requestParameters['attribute'] == null) {
|
|
316
|
-
throw new runtime.RequiredError(
|
|
317
|
-
'attribute',
|
|
318
|
-
'Required parameter "attribute" was null or undefined when calling unlinkAttributeProductType().'
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
const queryParameters: any = {};
|
|
323
|
-
|
|
324
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
let urlPath = `/admin-api/product-type/{productType}/remove-attribute/{attribute}`;
|
|
328
|
-
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
329
|
-
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
330
|
-
|
|
331
|
-
const response = await this.request({
|
|
332
|
-
path: urlPath,
|
|
333
|
-
method: 'POST',
|
|
334
|
-
headers: headerParameters,
|
|
335
|
-
query: queryParameters,
|
|
336
|
-
}, initOverrides);
|
|
337
|
-
|
|
338
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Auto-generated: unlinkAttributeProductType
|
|
343
|
-
*/
|
|
344
|
-
async unlinkAttributeProductType(requestParameters: UnlinkAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
345
|
-
const response = await this.unlinkAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
346
|
-
return await response.value();
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Auto-generated: updateLinkedAttributeProductType
|
|
350
|
+
* Auto-generated: updateAttachedAttributeProductType
|
|
351
351
|
*/
|
|
352
|
-
async
|
|
352
|
+
async updateAttachedAttributeProductTypeRaw(requestParameters: UpdateAttachedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductTypeResource>> {
|
|
353
353
|
if (requestParameters['productType'] == null) {
|
|
354
354
|
throw new runtime.RequiredError(
|
|
355
355
|
'productType',
|
|
356
|
-
'Required parameter "productType" was null or undefined when calling
|
|
356
|
+
'Required parameter "productType" was null or undefined when calling updateAttachedAttributeProductType().'
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
359
|
|
|
@@ -372,17 +372,17 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
372
372
|
method: 'PUT',
|
|
373
373
|
headers: headerParameters,
|
|
374
374
|
query: queryParameters,
|
|
375
|
-
body:
|
|
375
|
+
body: AttachAttributeProductTypeRequestToJSON(requestParameters['attachAttributeProductTypeRequest']),
|
|
376
376
|
}, initOverrides);
|
|
377
377
|
|
|
378
378
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductTypeResourceFromJSON(jsonValue));
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
|
-
* Auto-generated:
|
|
382
|
+
* Auto-generated: updateAttachedAttributeProductType
|
|
383
383
|
*/
|
|
384
|
-
async
|
|
385
|
-
const response = await this.
|
|
384
|
+
async updateAttachedAttributeProductType(requestParameters: UpdateAttachedAttributeProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource> {
|
|
385
|
+
const response = await this.updateAttachedAttributeProductTypeRaw(requestParameters, initOverrides);
|
|
386
386
|
return await response.value();
|
|
387
387
|
}
|
|
388
388
|
|
package/src/apis/TagApi.ts
CHANGED
|
@@ -46,10 +46,20 @@ import {
|
|
|
46
46
|
UpdateTagRequestToJSON,
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
|
+
export interface AttachProductChildrenTagRequest {
|
|
50
|
+
tag: number;
|
|
51
|
+
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
export interface DestroyTagRequest {
|
|
50
55
|
tag: number;
|
|
51
56
|
}
|
|
52
57
|
|
|
58
|
+
export interface DetachProductChildTagRequest {
|
|
59
|
+
tag: number;
|
|
60
|
+
productChild: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
export interface GetAllTagRequest {
|
|
54
64
|
indexTagRequest?: IndexTagRequest;
|
|
55
65
|
}
|
|
@@ -58,11 +68,6 @@ export interface IndexTagOperationRequest {
|
|
|
58
68
|
indexTagRequest?: IndexTagRequest;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
export interface LinkProductChildrenTagRequest {
|
|
62
|
-
tag: number;
|
|
63
|
-
attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
71
|
export interface ShowTagRequest {
|
|
67
72
|
tag: number;
|
|
68
73
|
}
|
|
@@ -71,11 +76,6 @@ export interface StoreTagOperationRequest {
|
|
|
71
76
|
storeTagRequest?: StoreTagRequest;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
export interface UnlinkProductChildTagRequest {
|
|
75
|
-
tag: number;
|
|
76
|
-
productChild: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
79
|
export interface UpdateTagOperationRequest {
|
|
80
80
|
tag: number;
|
|
81
81
|
updateTagRequest?: UpdateTagRequest;
|
|
@@ -86,6 +86,46 @@ export interface UpdateTagOperationRequest {
|
|
|
86
86
|
*/
|
|
87
87
|
export class TagApi extends runtime.BaseAPI {
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Auto-generated: attachProductChildrenTag
|
|
91
|
+
*/
|
|
92
|
+
async attachProductChildrenTagRaw(requestParameters: AttachProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
93
|
+
if (requestParameters['tag'] == null) {
|
|
94
|
+
throw new runtime.RequiredError(
|
|
95
|
+
'tag',
|
|
96
|
+
'Required parameter "tag" was null or undefined when calling attachProductChildrenTag().'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const queryParameters: any = {};
|
|
101
|
+
|
|
102
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
|
+
|
|
104
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
let urlPath = `/admin-api/tag/{tag}/attach-product-children`;
|
|
108
|
+
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
109
|
+
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: urlPath,
|
|
112
|
+
method: 'POST',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
body: AttachAccessoriesProductChildRequestToJSON(requestParameters['attachAccessoriesProductChildRequest']),
|
|
116
|
+
}, initOverrides);
|
|
117
|
+
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Auto-generated: attachProductChildrenTag
|
|
123
|
+
*/
|
|
124
|
+
async attachProductChildrenTag(requestParameters: AttachProductChildrenTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
125
|
+
const response = await this.attachProductChildrenTagRaw(requestParameters, initOverrides);
|
|
126
|
+
return await response.value();
|
|
127
|
+
}
|
|
128
|
+
|
|
89
129
|
/**
|
|
90
130
|
* Auto-generated: destroyTag
|
|
91
131
|
*/
|
|
@@ -124,41 +164,54 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
124
164
|
}
|
|
125
165
|
|
|
126
166
|
/**
|
|
127
|
-
* Auto-generated:
|
|
167
|
+
* Auto-generated: detachProductChildTag
|
|
128
168
|
*/
|
|
129
|
-
async
|
|
169
|
+
async detachProductChildTagRaw(requestParameters: DetachProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
170
|
+
if (requestParameters['tag'] == null) {
|
|
171
|
+
throw new runtime.RequiredError(
|
|
172
|
+
'tag',
|
|
173
|
+
'Required parameter "tag" was null or undefined when calling detachProductChildTag().'
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (requestParameters['productChild'] == null) {
|
|
178
|
+
throw new runtime.RequiredError(
|
|
179
|
+
'productChild',
|
|
180
|
+
'Required parameter "productChild" was null or undefined when calling detachProductChildTag().'
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
130
184
|
const queryParameters: any = {};
|
|
131
185
|
|
|
132
186
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
133
187
|
|
|
134
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
135
|
-
|
|
136
188
|
|
|
137
|
-
let urlPath = `/admin-api/tag/
|
|
189
|
+
let urlPath = `/admin-api/tag/{tag}/detach-product-child/{productChild}`;
|
|
190
|
+
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
191
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
138
192
|
|
|
139
193
|
const response = await this.request({
|
|
140
194
|
path: urlPath,
|
|
141
195
|
method: 'POST',
|
|
142
196
|
headers: headerParameters,
|
|
143
197
|
query: queryParameters,
|
|
144
|
-
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
145
198
|
}, initOverrides);
|
|
146
199
|
|
|
147
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
200
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
148
201
|
}
|
|
149
202
|
|
|
150
203
|
/**
|
|
151
|
-
* Auto-generated:
|
|
204
|
+
* Auto-generated: detachProductChildTag
|
|
152
205
|
*/
|
|
153
|
-
async
|
|
154
|
-
const response = await this.
|
|
206
|
+
async detachProductChildTag(requestParameters: DetachProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
207
|
+
const response = await this.detachProductChildTagRaw(requestParameters, initOverrides);
|
|
155
208
|
return await response.value();
|
|
156
209
|
}
|
|
157
210
|
|
|
158
211
|
/**
|
|
159
|
-
* Auto-generated:
|
|
212
|
+
* Auto-generated: getAllTag
|
|
160
213
|
*/
|
|
161
|
-
async
|
|
214
|
+
async getAllTagRaw(requestParameters: GetAllTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagLiteResourceArrayResponse>> {
|
|
162
215
|
const queryParameters: any = {};
|
|
163
216
|
|
|
164
217
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -166,7 +219,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
166
219
|
headerParameters['Content-Type'] = 'application/json';
|
|
167
220
|
|
|
168
221
|
|
|
169
|
-
let urlPath = `/admin-api/tag/
|
|
222
|
+
let urlPath = `/admin-api/tag/all`;
|
|
170
223
|
|
|
171
224
|
const response = await this.request({
|
|
172
225
|
path: urlPath,
|
|
@@ -176,28 +229,21 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
176
229
|
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
177
230
|
}, initOverrides);
|
|
178
231
|
|
|
179
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TagLiteResourceArrayResponseFromJSON(jsonValue));
|
|
180
233
|
}
|
|
181
234
|
|
|
182
235
|
/**
|
|
183
|
-
* Auto-generated:
|
|
236
|
+
* Auto-generated: getAllTag
|
|
184
237
|
*/
|
|
185
|
-
async
|
|
186
|
-
const response = await this.
|
|
238
|
+
async getAllTag(requestParameters: GetAllTagRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagLiteResourceArrayResponse> {
|
|
239
|
+
const response = await this.getAllTagRaw(requestParameters, initOverrides);
|
|
187
240
|
return await response.value();
|
|
188
241
|
}
|
|
189
242
|
|
|
190
243
|
/**
|
|
191
|
-
* Auto-generated:
|
|
244
|
+
* Auto-generated: indexTag
|
|
192
245
|
*/
|
|
193
|
-
async
|
|
194
|
-
if (requestParameters['tag'] == null) {
|
|
195
|
-
throw new runtime.RequiredError(
|
|
196
|
-
'tag',
|
|
197
|
-
'Required parameter "tag" was null or undefined when calling linkProductChildrenTag().'
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
246
|
+
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>> {
|
|
201
247
|
const queryParameters: any = {};
|
|
202
248
|
|
|
203
249
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -205,25 +251,24 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
205
251
|
headerParameters['Content-Type'] = 'application/json';
|
|
206
252
|
|
|
207
253
|
|
|
208
|
-
let urlPath = `/admin-api/tag/
|
|
209
|
-
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
254
|
+
let urlPath = `/admin-api/tag/list`;
|
|
210
255
|
|
|
211
256
|
const response = await this.request({
|
|
212
257
|
path: urlPath,
|
|
213
258
|
method: 'POST',
|
|
214
259
|
headers: headerParameters,
|
|
215
260
|
query: queryParameters,
|
|
216
|
-
body:
|
|
261
|
+
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
217
262
|
}, initOverrides);
|
|
218
263
|
|
|
219
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
264
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTagListResourceResponseFromJSON(jsonValue));
|
|
220
265
|
}
|
|
221
266
|
|
|
222
267
|
/**
|
|
223
|
-
* Auto-generated:
|
|
268
|
+
* Auto-generated: indexTag
|
|
224
269
|
*/
|
|
225
|
-
async
|
|
226
|
-
const response = await this.
|
|
270
|
+
async indexTag(requestParameters: IndexTagOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse> {
|
|
271
|
+
const response = await this.indexTagRaw(requestParameters, initOverrides);
|
|
227
272
|
return await response.value();
|
|
228
273
|
}
|
|
229
274
|
|
|
@@ -296,51 +341,6 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
296
341
|
return await response.value();
|
|
297
342
|
}
|
|
298
343
|
|
|
299
|
-
/**
|
|
300
|
-
* Auto-generated: unlinkProductChildTag
|
|
301
|
-
*/
|
|
302
|
-
async unlinkProductChildTagRaw(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
303
|
-
if (requestParameters['tag'] == null) {
|
|
304
|
-
throw new runtime.RequiredError(
|
|
305
|
-
'tag',
|
|
306
|
-
'Required parameter "tag" was null or undefined when calling unlinkProductChildTag().'
|
|
307
|
-
);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
if (requestParameters['productChild'] == null) {
|
|
311
|
-
throw new runtime.RequiredError(
|
|
312
|
-
'productChild',
|
|
313
|
-
'Required parameter "productChild" was null or undefined when calling unlinkProductChildTag().'
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
const queryParameters: any = {};
|
|
318
|
-
|
|
319
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
let urlPath = `/admin-api/tag/{tag}/remove-product-child/{productChild}`;
|
|
323
|
-
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
324
|
-
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
325
|
-
|
|
326
|
-
const response = await this.request({
|
|
327
|
-
path: urlPath,
|
|
328
|
-
method: 'POST',
|
|
329
|
-
headers: headerParameters,
|
|
330
|
-
query: queryParameters,
|
|
331
|
-
}, initOverrides);
|
|
332
|
-
|
|
333
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Auto-generated: unlinkProductChildTag
|
|
338
|
-
*/
|
|
339
|
-
async unlinkProductChildTag(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
340
|
-
const response = await this.unlinkProductChildTagRaw(requestParameters, initOverrides);
|
|
341
|
-
return await response.value();
|
|
342
|
-
}
|
|
343
|
-
|
|
344
344
|
/**
|
|
345
345
|
* Auto-generated: updateTag
|
|
346
346
|
*/
|