@digital8/lighting-illusions-ts-sdk 0.0.464 → 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 +10 -10
- package/README.md +24 -18
- 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/ProductApi.d.ts +73 -1
- package/dist/apis/ProductApi.js +292 -0
- package/dist/apis/ProductTypeApi.d.ts +31 -31
- package/dist/apis/ProductTypeApi.js +89 -89
- package/dist/apis/TagApi.d.ts +25 -25
- package/dist/apis/TagApi.js +81 -81
- package/dist/models/AssetLiteResource.d.ts +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- 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/OverlayTemplateListResource.d.ts +7 -0
- package/dist/models/OverlayTemplateListResource.js +5 -0
- package/dist/models/ProductChildListResource.d.ts +12 -0
- package/dist/models/ProductChildListResource.js +8 -0
- package/dist/models/ProductTypeListResource.d.ts +6 -0
- package/dist/models/ProductTypeListResource.js +4 -0
- package/dist/models/SiteNotificationListResource.d.ts +7 -0
- package/dist/models/SiteNotificationListResource.js +5 -0
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +5 -5
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +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/OverlayTemplateListResource.md +2 -0
- package/docs/ProductApi.md +414 -0
- package/docs/ProductChildListResource.md +4 -0
- package/docs/ProductTypeApi.md +94 -94
- package/docs/ProductTypeListResource.md +2 -0
- package/docs/SiteNotificationListResource.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/ProductApi.ts +283 -0
- package/src/apis/ProductTypeApi.ts +101 -101
- package/src/apis/TagApi.ts +91 -91
- package/src/models/AssetLiteResource.ts +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- 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/OverlayTemplateListResource.ts +17 -0
- package/src/models/ProductChildListResource.ts +18 -0
- package/src/models/ProductTypeListResource.ts +9 -0
- package/src/models/SiteNotificationListResource.ts +17 -0
- package/src/models/index.ts +5 -5
- 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/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- 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/LinkProductChildrenTagRequest.ts +0 -66
- package/src/models/LinkProductTypeAttributeRequest.ts +0 -88
package/docs/AttributeApi.md
CHANGED
|
@@ -4,23 +4,91 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**attachProductTypeAttribute**](AttributeApi.md#attachproducttypeattributeoperation) | **POST** /admin-api/attribute/{attribute}/attach-product-type | Auto-generated: attachProductTypeAttribute |
|
|
7
8
|
| [**destroyAttribute**](AttributeApi.md#destroyattribute) | **DELETE** /admin-api/attribute/{attribute}/delete | Auto-generated: destroyAttribute |
|
|
8
9
|
| [**destroyAttributeValue**](AttributeApi.md#destroyattributevalueoperation) | **POST** /admin-api/attribute/value/{attributeValue}/delete | Auto-generated: destroyAttributeValue |
|
|
10
|
+
| [**detachProductTypeAttribute**](AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute |
|
|
9
11
|
| [**getAllAttribute**](AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute |
|
|
10
12
|
| [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
|
|
11
|
-
| [**linkProductTypeAttribute**](AttributeApi.md#linkproducttypeattributeoperation) | **POST** /admin-api/attribute/{attribute}/link-product-type | Auto-generated: linkProductTypeAttribute |
|
|
12
13
|
| [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
|
|
13
14
|
| [**storeAttribute**](AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute |
|
|
14
15
|
| [**storeAttributeValue**](AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue |
|
|
15
|
-
| [**
|
|
16
|
+
| [**updateAttachedProductTypeAttribute**](AttributeApi.md#updateattachedproducttypeattribute) | **PUT** /admin-api/attribute/{attribute}/update-product-type | Auto-generated: updateAttachedProductTypeAttribute |
|
|
16
17
|
| [**updateAttribute**](AttributeApi.md#updateattributeoperation) | **PUT** /admin-api/attribute/{attribute}/update | Auto-generated: updateAttribute |
|
|
17
18
|
| [**updateAttributeValue**](AttributeApi.md#updateattributevalueoperation) | **PUT** /admin-api/attribute/value/{attributeValue}/update | Auto-generated: updateAttributeValue |
|
|
18
19
|
| [**updateFilterOrderAttribute**](AttributeApi.md#updatefilterorderattributeoperation) | **PUT** /admin-api/attribute/update-filter-order | Auto-generated: updateFilterOrderAttribute |
|
|
19
|
-
| [**updateLinkedProductTypeAttribute**](AttributeApi.md#updatelinkedproducttypeattribute) | **PUT** /admin-api/attribute/{attribute}/update-product-type | Auto-generated: updateLinkedProductTypeAttribute |
|
|
20
20
|
| [**updateModelAttribute**](AttributeApi.md#updatemodelattributeoperation) | **PUT** /admin-api/attribute/model-attribute/{modelAttribute}/update | Auto-generated: updateModelAttribute |
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
## attachProductTypeAttribute
|
|
25
|
+
|
|
26
|
+
> AttributeResource attachProductTypeAttribute(attribute, attachProductTypeAttributeRequest)
|
|
27
|
+
|
|
28
|
+
Auto-generated: attachProductTypeAttribute
|
|
29
|
+
|
|
30
|
+
### Example
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import {
|
|
34
|
+
Configuration,
|
|
35
|
+
AttributeApi,
|
|
36
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
37
|
+
import type { AttachProductTypeAttributeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
38
|
+
|
|
39
|
+
async function example() {
|
|
40
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
41
|
+
const api = new AttributeApi();
|
|
42
|
+
|
|
43
|
+
const body = {
|
|
44
|
+
// number | The id of the attribute
|
|
45
|
+
attribute: 56,
|
|
46
|
+
// AttachProductTypeAttributeRequest (optional)
|
|
47
|
+
attachProductTypeAttributeRequest: ...,
|
|
48
|
+
} satisfies AttachProductTypeAttributeOperationRequest;
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
const data = await api.attachProductTypeAttribute(body);
|
|
52
|
+
console.log(data);
|
|
53
|
+
} catch (error) {
|
|
54
|
+
console.error(error);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Run the test
|
|
59
|
+
example().catch(console.error);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
|------------- | ------------- | ------------- | -------------|
|
|
67
|
+
| **attribute** | `number` | The id of the attribute | [Defaults to `undefined`] |
|
|
68
|
+
| **attachProductTypeAttributeRequest** | [AttachProductTypeAttributeRequest](AttachProductTypeAttributeRequest.md) | | [Optional] |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
[**AttributeResource**](AttributeResource.md)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
No authorization required
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: `application/json`
|
|
81
|
+
- **Accept**: `application/json`
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### HTTP response details
|
|
85
|
+
| Status code | Description | Response headers |
|
|
86
|
+
|-------------|-------------|------------------|
|
|
87
|
+
| **200** | Successful resource response | - |
|
|
88
|
+
|
|
89
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
90
|
+
|
|
91
|
+
|
|
24
92
|
## destroyAttribute
|
|
25
93
|
|
|
26
94
|
> GenericResponse destroyAttribute(attribute)
|
|
@@ -154,11 +222,11 @@ No authorization required
|
|
|
154
222
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
155
223
|
|
|
156
224
|
|
|
157
|
-
##
|
|
225
|
+
## detachProductTypeAttribute
|
|
158
226
|
|
|
159
|
-
>
|
|
227
|
+
> AttributeResource detachProductTypeAttribute(attribute, productType)
|
|
160
228
|
|
|
161
|
-
Auto-generated:
|
|
229
|
+
Auto-generated: detachProductTypeAttribute
|
|
162
230
|
|
|
163
231
|
### Example
|
|
164
232
|
|
|
@@ -167,19 +235,21 @@ import {
|
|
|
167
235
|
Configuration,
|
|
168
236
|
AttributeApi,
|
|
169
237
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
170
|
-
import type {
|
|
238
|
+
import type { DetachProductTypeAttributeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
171
239
|
|
|
172
240
|
async function example() {
|
|
173
241
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
174
242
|
const api = new AttributeApi();
|
|
175
243
|
|
|
176
244
|
const body = {
|
|
177
|
-
//
|
|
178
|
-
|
|
179
|
-
|
|
245
|
+
// number | The id of the attribute
|
|
246
|
+
attribute: 56,
|
|
247
|
+
// number | The id of the productType
|
|
248
|
+
productType: 56,
|
|
249
|
+
} satisfies DetachProductTypeAttributeRequest;
|
|
180
250
|
|
|
181
251
|
try {
|
|
182
|
-
const data = await api.
|
|
252
|
+
const data = await api.detachProductTypeAttribute(body);
|
|
183
253
|
console.log(data);
|
|
184
254
|
} catch (error) {
|
|
185
255
|
console.error(error);
|
|
@@ -195,11 +265,12 @@ example().catch(console.error);
|
|
|
195
265
|
|
|
196
266
|
| Name | Type | Description | Notes |
|
|
197
267
|
|------------- | ------------- | ------------- | -------------|
|
|
198
|
-
| **
|
|
268
|
+
| **attribute** | `number` | The id of the attribute | [Defaults to `undefined`] |
|
|
269
|
+
| **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
|
|
199
270
|
|
|
200
271
|
### Return type
|
|
201
272
|
|
|
202
|
-
[**
|
|
273
|
+
[**AttributeResource**](AttributeResource.md)
|
|
203
274
|
|
|
204
275
|
### Authorization
|
|
205
276
|
|
|
@@ -207,7 +278,7 @@ No authorization required
|
|
|
207
278
|
|
|
208
279
|
### HTTP request headers
|
|
209
280
|
|
|
210
|
-
- **Content-Type**:
|
|
281
|
+
- **Content-Type**: Not defined
|
|
211
282
|
- **Accept**: `application/json`
|
|
212
283
|
|
|
213
284
|
|
|
@@ -219,11 +290,11 @@ No authorization required
|
|
|
219
290
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
220
291
|
|
|
221
292
|
|
|
222
|
-
##
|
|
293
|
+
## getAllAttribute
|
|
223
294
|
|
|
224
|
-
>
|
|
295
|
+
> AttributeLiteResourceArrayResponse getAllAttribute(getAllAttributeRequest)
|
|
225
296
|
|
|
226
|
-
Auto-generated:
|
|
297
|
+
Auto-generated: getAllAttribute
|
|
227
298
|
|
|
228
299
|
### Example
|
|
229
300
|
|
|
@@ -232,19 +303,19 @@ import {
|
|
|
232
303
|
Configuration,
|
|
233
304
|
AttributeApi,
|
|
234
305
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
235
|
-
import type {
|
|
306
|
+
import type { GetAllAttributeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
236
307
|
|
|
237
308
|
async function example() {
|
|
238
309
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
239
310
|
const api = new AttributeApi();
|
|
240
311
|
|
|
241
312
|
const body = {
|
|
242
|
-
//
|
|
243
|
-
|
|
244
|
-
} satisfies
|
|
313
|
+
// GetAllAttributeRequest (optional)
|
|
314
|
+
getAllAttributeRequest: ...,
|
|
315
|
+
} satisfies GetAllAttributeOperationRequest;
|
|
245
316
|
|
|
246
317
|
try {
|
|
247
|
-
const data = await api.
|
|
318
|
+
const data = await api.getAllAttribute(body);
|
|
248
319
|
console.log(data);
|
|
249
320
|
} catch (error) {
|
|
250
321
|
console.error(error);
|
|
@@ -260,11 +331,11 @@ example().catch(console.error);
|
|
|
260
331
|
|
|
261
332
|
| Name | Type | Description | Notes |
|
|
262
333
|
|------------- | ------------- | ------------- | -------------|
|
|
263
|
-
| **
|
|
334
|
+
| **getAllAttributeRequest** | [GetAllAttributeRequest](GetAllAttributeRequest.md) | | [Optional] |
|
|
264
335
|
|
|
265
336
|
### Return type
|
|
266
337
|
|
|
267
|
-
[**
|
|
338
|
+
[**AttributeLiteResourceArrayResponse**](AttributeLiteResourceArrayResponse.md)
|
|
268
339
|
|
|
269
340
|
### Authorization
|
|
270
341
|
|
|
@@ -279,16 +350,16 @@ No authorization required
|
|
|
279
350
|
### HTTP response details
|
|
280
351
|
| Status code | Description | Response headers |
|
|
281
352
|
|-------------|-------------|------------------|
|
|
282
|
-
| **200** |
|
|
353
|
+
| **200** | Successful resource response | - |
|
|
283
354
|
|
|
284
355
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
285
356
|
|
|
286
357
|
|
|
287
|
-
##
|
|
358
|
+
## indexAttribute
|
|
288
359
|
|
|
289
|
-
>
|
|
360
|
+
> PaginatedAttributeListResourceResponse indexAttribute(indexAttributeRequest)
|
|
290
361
|
|
|
291
|
-
Auto-generated:
|
|
362
|
+
Auto-generated: indexAttribute
|
|
292
363
|
|
|
293
364
|
### Example
|
|
294
365
|
|
|
@@ -297,21 +368,19 @@ import {
|
|
|
297
368
|
Configuration,
|
|
298
369
|
AttributeApi,
|
|
299
370
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
300
|
-
import type {
|
|
371
|
+
import type { IndexAttributeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
301
372
|
|
|
302
373
|
async function example() {
|
|
303
374
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
304
375
|
const api = new AttributeApi();
|
|
305
376
|
|
|
306
377
|
const body = {
|
|
307
|
-
//
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
linkProductTypeAttributeRequest: ...,
|
|
311
|
-
} satisfies LinkProductTypeAttributeOperationRequest;
|
|
378
|
+
// IndexAttributeRequest (optional)
|
|
379
|
+
indexAttributeRequest: ...,
|
|
380
|
+
} satisfies IndexAttributeOperationRequest;
|
|
312
381
|
|
|
313
382
|
try {
|
|
314
|
-
const data = await api.
|
|
383
|
+
const data = await api.indexAttribute(body);
|
|
315
384
|
console.log(data);
|
|
316
385
|
} catch (error) {
|
|
317
386
|
console.error(error);
|
|
@@ -327,12 +396,11 @@ example().catch(console.error);
|
|
|
327
396
|
|
|
328
397
|
| Name | Type | Description | Notes |
|
|
329
398
|
|------------- | ------------- | ------------- | -------------|
|
|
330
|
-
| **
|
|
331
|
-
| **linkProductTypeAttributeRequest** | [LinkProductTypeAttributeRequest](LinkProductTypeAttributeRequest.md) | | [Optional] |
|
|
399
|
+
| **indexAttributeRequest** | [IndexAttributeRequest](IndexAttributeRequest.md) | | [Optional] |
|
|
332
400
|
|
|
333
401
|
### Return type
|
|
334
402
|
|
|
335
|
-
[**
|
|
403
|
+
[**PaginatedAttributeListResourceResponse**](PaginatedAttributeListResourceResponse.md)
|
|
336
404
|
|
|
337
405
|
### Authorization
|
|
338
406
|
|
|
@@ -347,7 +415,7 @@ No authorization required
|
|
|
347
415
|
### HTTP response details
|
|
348
416
|
| Status code | Description | Response headers |
|
|
349
417
|
|-------------|-------------|------------------|
|
|
350
|
-
| **200** |
|
|
418
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\AttributeListResource[]>> | - |
|
|
351
419
|
|
|
352
420
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
353
421
|
|
|
@@ -547,11 +615,11 @@ No authorization required
|
|
|
547
615
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
548
616
|
|
|
549
617
|
|
|
550
|
-
##
|
|
618
|
+
## updateAttachedProductTypeAttribute
|
|
551
619
|
|
|
552
|
-
> AttributeResource
|
|
620
|
+
> AttributeResource updateAttachedProductTypeAttribute(attribute, attachProductTypeAttributeRequest)
|
|
553
621
|
|
|
554
|
-
Auto-generated:
|
|
622
|
+
Auto-generated: updateAttachedProductTypeAttribute
|
|
555
623
|
|
|
556
624
|
### Example
|
|
557
625
|
|
|
@@ -560,7 +628,7 @@ import {
|
|
|
560
628
|
Configuration,
|
|
561
629
|
AttributeApi,
|
|
562
630
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
563
|
-
import type {
|
|
631
|
+
import type { UpdateAttachedProductTypeAttributeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
564
632
|
|
|
565
633
|
async function example() {
|
|
566
634
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
@@ -569,12 +637,12 @@ async function example() {
|
|
|
569
637
|
const body = {
|
|
570
638
|
// number | The id of the attribute
|
|
571
639
|
attribute: 56,
|
|
572
|
-
//
|
|
573
|
-
|
|
574
|
-
} satisfies
|
|
640
|
+
// AttachProductTypeAttributeRequest (optional)
|
|
641
|
+
attachProductTypeAttributeRequest: ...,
|
|
642
|
+
} satisfies UpdateAttachedProductTypeAttributeRequest;
|
|
575
643
|
|
|
576
644
|
try {
|
|
577
|
-
const data = await api.
|
|
645
|
+
const data = await api.updateAttachedProductTypeAttribute(body);
|
|
578
646
|
console.log(data);
|
|
579
647
|
} catch (error) {
|
|
580
648
|
console.error(error);
|
|
@@ -591,7 +659,7 @@ example().catch(console.error);
|
|
|
591
659
|
| Name | Type | Description | Notes |
|
|
592
660
|
|------------- | ------------- | ------------- | -------------|
|
|
593
661
|
| **attribute** | `number` | The id of the attribute | [Defaults to `undefined`] |
|
|
594
|
-
| **
|
|
662
|
+
| **attachProductTypeAttributeRequest** | [AttachProductTypeAttributeRequest](AttachProductTypeAttributeRequest.md) | | [Optional] |
|
|
595
663
|
|
|
596
664
|
### Return type
|
|
597
665
|
|
|
@@ -603,7 +671,7 @@ No authorization required
|
|
|
603
671
|
|
|
604
672
|
### HTTP request headers
|
|
605
673
|
|
|
606
|
-
- **Content-Type**:
|
|
674
|
+
- **Content-Type**: `application/json`
|
|
607
675
|
- **Accept**: `application/json`
|
|
608
676
|
|
|
609
677
|
|
|
@@ -816,74 +884,6 @@ No authorization required
|
|
|
816
884
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
817
885
|
|
|
818
886
|
|
|
819
|
-
## updateLinkedProductTypeAttribute
|
|
820
|
-
|
|
821
|
-
> AttributeResource updateLinkedProductTypeAttribute(attribute, linkProductTypeAttributeRequest)
|
|
822
|
-
|
|
823
|
-
Auto-generated: updateLinkedProductTypeAttribute
|
|
824
|
-
|
|
825
|
-
### Example
|
|
826
|
-
|
|
827
|
-
```ts
|
|
828
|
-
import {
|
|
829
|
-
Configuration,
|
|
830
|
-
AttributeApi,
|
|
831
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
832
|
-
import type { UpdateLinkedProductTypeAttributeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
833
|
-
|
|
834
|
-
async function example() {
|
|
835
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
836
|
-
const api = new AttributeApi();
|
|
837
|
-
|
|
838
|
-
const body = {
|
|
839
|
-
// number | The id of the attribute
|
|
840
|
-
attribute: 56,
|
|
841
|
-
// LinkProductTypeAttributeRequest (optional)
|
|
842
|
-
linkProductTypeAttributeRequest: ...,
|
|
843
|
-
} satisfies UpdateLinkedProductTypeAttributeRequest;
|
|
844
|
-
|
|
845
|
-
try {
|
|
846
|
-
const data = await api.updateLinkedProductTypeAttribute(body);
|
|
847
|
-
console.log(data);
|
|
848
|
-
} catch (error) {
|
|
849
|
-
console.error(error);
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
// Run the test
|
|
854
|
-
example().catch(console.error);
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
### Parameters
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
| Name | Type | Description | Notes |
|
|
861
|
-
|------------- | ------------- | ------------- | -------------|
|
|
862
|
-
| **attribute** | `number` | The id of the attribute | [Defaults to `undefined`] |
|
|
863
|
-
| **linkProductTypeAttributeRequest** | [LinkProductTypeAttributeRequest](LinkProductTypeAttributeRequest.md) | | [Optional] |
|
|
864
|
-
|
|
865
|
-
### Return type
|
|
866
|
-
|
|
867
|
-
[**AttributeResource**](AttributeResource.md)
|
|
868
|
-
|
|
869
|
-
### Authorization
|
|
870
|
-
|
|
871
|
-
No authorization required
|
|
872
|
-
|
|
873
|
-
### HTTP request headers
|
|
874
|
-
|
|
875
|
-
- **Content-Type**: `application/json`
|
|
876
|
-
- **Accept**: `application/json`
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
### HTTP response details
|
|
880
|
-
| Status code | Description | Response headers |
|
|
881
|
-
|-------------|-------------|------------------|
|
|
882
|
-
| **200** | Successful resource response | - |
|
|
883
|
-
|
|
884
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
885
|
-
|
|
886
|
-
|
|
887
887
|
## updateModelAttribute
|
|
888
888
|
|
|
889
889
|
> ModelAttributeResourceArrayResponse updateModelAttribute(modelAttribute, updateModelAttributeRequest)
|
package/docs/{UnlinkAssetableOverlayTemplateRequest.md → DetachAssetableOverlayTemplateRequest.md}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# DetachAssetableOverlayTemplateRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -13,14 +13,14 @@ Name | Type
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { DetachAssetableOverlayTemplateRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"relatedId": null,
|
|
21
21
|
"relatedType": null,
|
|
22
22
|
"includesRelations": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies DetachAssetableOverlayTemplateRequest
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as DetachAssetableOverlayTemplateRequest
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|