@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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +8 -8
  2. package/README.md +17 -17
  3. package/dist/apis/AttributeApi.d.ts +31 -31
  4. package/dist/apis/AttributeApi.js +92 -92
  5. package/dist/apis/OverlayTemplateApi.d.ts +37 -37
  6. package/dist/apis/OverlayTemplateApi.js +110 -110
  7. package/dist/apis/ProductTypeApi.d.ts +31 -31
  8. package/dist/apis/ProductTypeApi.js +89 -89
  9. package/dist/apis/TagApi.d.ts +24 -24
  10. package/dist/apis/TagApi.js +81 -81
  11. package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +32 -0
  12. package/dist/models/AttachAssetsOverlayTemplateRequest.js +51 -0
  13. package/dist/models/AttachAttributeProductTypeRequest.d.ts +48 -0
  14. package/dist/models/AttachAttributeProductTypeRequest.js +65 -0
  15. package/dist/models/AttachProductTypeAttributeRequest.d.ts +48 -0
  16. package/dist/models/AttachProductTypeAttributeRequest.js +65 -0
  17. package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +51 -0
  18. package/dist/models/{UnlinkAssetableOverlayTemplateRequest.js → DetachAssetableOverlayTemplateRequest.js} +15 -15
  19. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  20. package/dist/models/ExternalApiLogResource.js +1 -3
  21. package/dist/models/ProductTypeListResource.d.ts +6 -0
  22. package/dist/models/ProductTypeListResource.js +4 -0
  23. package/dist/models/index.d.ts +4 -4
  24. package/dist/models/index.js +4 -4
  25. package/docs/{LinkAssetsOverlayTemplateRequest.md → AttachAssetsOverlayTemplateRequest.md} +4 -4
  26. package/docs/{LinkAttributeProductTypeRequest.md → AttachAttributeProductTypeRequest.md} +4 -4
  27. package/docs/{LinkProductTypeAttributeRequest.md → AttachProductTypeAttributeRequest.md} +4 -4
  28. package/docs/AttributeApi.md +117 -117
  29. package/docs/{UnlinkAssetableOverlayTemplateRequest.md → DetachAssetableOverlayTemplateRequest.md} +4 -4
  30. package/docs/OverlayTemplateApi.md +115 -115
  31. package/docs/ProductTypeApi.md +94 -94
  32. package/docs/ProductTypeListResource.md +2 -0
  33. package/docs/TagApi.md +84 -84
  34. package/package.json +1 -1
  35. package/src/apis/AttributeApi.ts +105 -105
  36. package/src/apis/OverlayTemplateApi.ts +138 -138
  37. package/src/apis/ProductTypeApi.ts +101 -101
  38. package/src/apis/TagApi.ts +88 -88
  39. package/src/models/AttachAssetsOverlayTemplateRequest.ts +66 -0
  40. package/src/models/AttachAttributeProductTypeRequest.ts +88 -0
  41. package/src/models/AttachProductTypeAttributeRequest.ts +88 -0
  42. package/src/models/{UnlinkAssetableOverlayTemplateRequest.ts → DetachAssetableOverlayTemplateRequest.ts} +16 -16
  43. package/src/models/ExternalApiLogResource.ts +2 -3
  44. package/src/models/ProductTypeListResource.ts +9 -0
  45. package/src/models/index.ts +4 -4
  46. package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +0 -32
  47. package/dist/models/LinkAssetsOverlayTemplateRequest.js +0 -51
  48. package/dist/models/LinkAttributeProductTypeRequest.d.ts +0 -48
  49. package/dist/models/LinkAttributeProductTypeRequest.js +0 -65
  50. package/dist/models/LinkProductTypeAttributeRequest.d.ts +0 -48
  51. package/dist/models/LinkProductTypeAttributeRequest.js +0 -65
  52. package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +0 -51
  53. package/src/models/LinkAssetsOverlayTemplateRequest.ts +0 -66
  54. package/src/models/LinkAttributeProductTypeRequest.ts +0 -88
  55. package/src/models/LinkProductTypeAttributeRequest.ts +0 -88
@@ -4,23 +4,23 @@ All URIs are relative to *http://localhost/api*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**attachAttributeProductType**](ProductTypeApi.md#attachattributeproducttypeoperation) | **POST** /admin-api/product-type/{productType}/attach-attribute | Auto-generated: attachAttributeProductType |
7
8
  | [**destroyProductType**](ProductTypeApi.md#destroyproducttype) | **DELETE** /admin-api/product-type/{productType}/delete | Auto-generated: destroyProductType |
9
+ | [**detachAttributeProductType**](ProductTypeApi.md#detachattributeproducttype) | **POST** /admin-api/product-type/{productType}/detach-attribute/{attribute} | Auto-generated: detachAttributeProductType |
8
10
  | [**getAllProductType**](ProductTypeApi.md#getallproducttypeoperation) | **POST** /admin-api/product-type/all | Auto-generated: getAllProductType |
9
11
  | [**indexProductType**](ProductTypeApi.md#indexproducttypeoperation) | **POST** /admin-api/product-type/list | Auto-generated: indexProductType |
10
- | [**linkAttributeProductType**](ProductTypeApi.md#linkattributeproducttypeoperation) | **POST** /admin-api/product-type/{productType}/link-attribute | Auto-generated: linkAttributeProductType |
11
12
  | [**showProductType**](ProductTypeApi.md#showproducttype) | **GET** /admin-api/product-type/{productType} | Auto-generated: showProductType |
12
13
  | [**storeProductType**](ProductTypeApi.md#storeproducttypeoperation) | **POST** /admin-api/product-type/create | Auto-generated: storeProductType |
13
- | [**unlinkAttributeProductType**](ProductTypeApi.md#unlinkattributeproducttype) | **POST** /admin-api/product-type/{productType}/remove-attribute/{attribute} | Auto-generated: unlinkAttributeProductType |
14
- | [**updateLinkedAttributeProductType**](ProductTypeApi.md#updatelinkedattributeproducttype) | **PUT** /admin-api/product-type/{productType}/update-attribute | Auto-generated: updateLinkedAttributeProductType |
14
+ | [**updateAttachedAttributeProductType**](ProductTypeApi.md#updateattachedattributeproducttype) | **PUT** /admin-api/product-type/{productType}/update-attribute | Auto-generated: updateAttachedAttributeProductType |
15
15
  | [**updateProductType**](ProductTypeApi.md#updateproducttypeoperation) | **PUT** /admin-api/product-type/{productType}/update | Auto-generated: updateProductType |
16
16
 
17
17
 
18
18
 
19
- ## destroyProductType
19
+ ## attachAttributeProductType
20
20
 
21
- > GenericResponse destroyProductType(productType)
21
+ > ProductTypeResource attachAttributeProductType(productType, attachAttributeProductTypeRequest)
22
22
 
23
- Auto-generated: destroyProductType
23
+ Auto-generated: attachAttributeProductType
24
24
 
25
25
  ### Example
26
26
 
@@ -29,7 +29,7 @@ import {
29
29
  Configuration,
30
30
  ProductTypeApi,
31
31
  } from '@digital8/lighting-illusions-ts-sdk';
32
- import type { DestroyProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
32
+ import type { AttachAttributeProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
33
33
 
34
34
  async function example() {
35
35
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
@@ -38,10 +38,12 @@ async function example() {
38
38
  const body = {
39
39
  // number | The id of the productType
40
40
  productType: 56,
41
- } satisfies DestroyProductTypeRequest;
41
+ // AttachAttributeProductTypeRequest (optional)
42
+ attachAttributeProductTypeRequest: ...,
43
+ } satisfies AttachAttributeProductTypeOperationRequest;
42
44
 
43
45
  try {
44
- const data = await api.destroyProductType(body);
46
+ const data = await api.attachAttributeProductType(body);
45
47
  console.log(data);
46
48
  } catch (error) {
47
49
  console.error(error);
@@ -58,10 +60,11 @@ example().catch(console.error);
58
60
  | Name | Type | Description | Notes |
59
61
  |------------- | ------------- | ------------- | -------------|
60
62
  | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
63
+ | **attachAttributeProductTypeRequest** | [AttachAttributeProductTypeRequest](AttachAttributeProductTypeRequest.md) | | [Optional] |
61
64
 
62
65
  ### Return type
63
66
 
64
- [**GenericResponse**](GenericResponse.md)
67
+ [**ProductTypeResource**](ProductTypeResource.md)
65
68
 
66
69
  ### Authorization
67
70
 
@@ -69,23 +72,23 @@ No authorization required
69
72
 
70
73
  ### HTTP request headers
71
74
 
72
- - **Content-Type**: Not defined
75
+ - **Content-Type**: `application/json`
73
76
  - **Accept**: `application/json`
74
77
 
75
78
 
76
79
  ### HTTP response details
77
80
  | Status code | Description | Response headers |
78
81
  |-------------|-------------|------------------|
79
- | **200** | \\JsonResponse | - |
82
+ | **200** | Successful resource response | - |
80
83
 
81
84
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
82
85
 
83
86
 
84
- ## getAllProductType
87
+ ## destroyProductType
85
88
 
86
- > PaginatedProductTypeLiteResourceResponse getAllProductType(getAllProductTypeRequest)
89
+ > GenericResponse destroyProductType(productType)
87
90
 
88
- Auto-generated: getAllProductType
91
+ Auto-generated: destroyProductType
89
92
 
90
93
  ### Example
91
94
 
@@ -94,19 +97,19 @@ import {
94
97
  Configuration,
95
98
  ProductTypeApi,
96
99
  } from '@digital8/lighting-illusions-ts-sdk';
97
- import type { GetAllProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
100
+ import type { DestroyProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
98
101
 
99
102
  async function example() {
100
103
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
101
104
  const api = new ProductTypeApi();
102
105
 
103
106
  const body = {
104
- // GetAllProductTypeRequest (optional)
105
- getAllProductTypeRequest: ...,
106
- } satisfies GetAllProductTypeOperationRequest;
107
+ // number | The id of the productType
108
+ productType: 56,
109
+ } satisfies DestroyProductTypeRequest;
107
110
 
108
111
  try {
109
- const data = await api.getAllProductType(body);
112
+ const data = await api.destroyProductType(body);
110
113
  console.log(data);
111
114
  } catch (error) {
112
115
  console.error(error);
@@ -122,11 +125,11 @@ example().catch(console.error);
122
125
 
123
126
  | Name | Type | Description | Notes |
124
127
  |------------- | ------------- | ------------- | -------------|
125
- | **getAllProductTypeRequest** | [GetAllProductTypeRequest](GetAllProductTypeRequest.md) | | [Optional] |
128
+ | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
126
129
 
127
130
  ### Return type
128
131
 
129
- [**PaginatedProductTypeLiteResourceResponse**](PaginatedProductTypeLiteResourceResponse.md)
132
+ [**GenericResponse**](GenericResponse.md)
130
133
 
131
134
  ### Authorization
132
135
 
@@ -134,23 +137,23 @@ No authorization required
134
137
 
135
138
  ### HTTP request headers
136
139
 
137
- - **Content-Type**: `application/json`
140
+ - **Content-Type**: Not defined
138
141
  - **Accept**: `application/json`
139
142
 
140
143
 
141
144
  ### HTTP response details
142
145
  | Status code | Description | Response headers |
143
146
  |-------------|-------------|------------------|
144
- | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeLiteResource[]>> | - |
147
+ | **200** | \\JsonResponse | - |
145
148
 
146
149
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
147
150
 
148
151
 
149
- ## indexProductType
152
+ ## detachAttributeProductType
150
153
 
151
- > PaginatedProductTypeListResourceResponse indexProductType(indexProductTypeRequest)
154
+ > ProductTypeResource detachAttributeProductType(productType, attribute)
152
155
 
153
- Auto-generated: indexProductType
156
+ Auto-generated: detachAttributeProductType
154
157
 
155
158
  ### Example
156
159
 
@@ -159,19 +162,21 @@ import {
159
162
  Configuration,
160
163
  ProductTypeApi,
161
164
  } from '@digital8/lighting-illusions-ts-sdk';
162
- import type { IndexProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
165
+ import type { DetachAttributeProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
163
166
 
164
167
  async function example() {
165
168
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
166
169
  const api = new ProductTypeApi();
167
170
 
168
171
  const body = {
169
- // IndexProductTypeRequest (optional)
170
- indexProductTypeRequest: ...,
171
- } satisfies IndexProductTypeOperationRequest;
172
+ // number | The id of the productType
173
+ productType: 56,
174
+ // number | The id of the attribute
175
+ attribute: 56,
176
+ } satisfies DetachAttributeProductTypeRequest;
172
177
 
173
178
  try {
174
- const data = await api.indexProductType(body);
179
+ const data = await api.detachAttributeProductType(body);
175
180
  console.log(data);
176
181
  } catch (error) {
177
182
  console.error(error);
@@ -187,11 +192,12 @@ example().catch(console.error);
187
192
 
188
193
  | Name | Type | Description | Notes |
189
194
  |------------- | ------------- | ------------- | -------------|
190
- | **indexProductTypeRequest** | [IndexProductTypeRequest](IndexProductTypeRequest.md) | | [Optional] |
195
+ | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
196
+ | **attribute** | `number` | The id of the attribute | [Defaults to `undefined`] |
191
197
 
192
198
  ### Return type
193
199
 
194
- [**PaginatedProductTypeListResourceResponse**](PaginatedProductTypeListResourceResponse.md)
200
+ [**ProductTypeResource**](ProductTypeResource.md)
195
201
 
196
202
  ### Authorization
197
203
 
@@ -199,23 +205,23 @@ No authorization required
199
205
 
200
206
  ### HTTP request headers
201
207
 
202
- - **Content-Type**: `application/json`
208
+ - **Content-Type**: Not defined
203
209
  - **Accept**: `application/json`
204
210
 
205
211
 
206
212
  ### HTTP response details
207
213
  | Status code | Description | Response headers |
208
214
  |-------------|-------------|------------------|
209
- | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeListResource[]>> | - |
215
+ | **200** | Successful resource response | - |
210
216
 
211
217
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
212
218
 
213
219
 
214
- ## linkAttributeProductType
220
+ ## getAllProductType
215
221
 
216
- > ProductTypeResource linkAttributeProductType(productType, linkAttributeProductTypeRequest)
222
+ > PaginatedProductTypeLiteResourceResponse getAllProductType(getAllProductTypeRequest)
217
223
 
218
- Auto-generated: linkAttributeProductType
224
+ Auto-generated: getAllProductType
219
225
 
220
226
  ### Example
221
227
 
@@ -224,21 +230,19 @@ import {
224
230
  Configuration,
225
231
  ProductTypeApi,
226
232
  } from '@digital8/lighting-illusions-ts-sdk';
227
- import type { LinkAttributeProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
233
+ import type { GetAllProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
228
234
 
229
235
  async function example() {
230
236
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
231
237
  const api = new ProductTypeApi();
232
238
 
233
239
  const body = {
234
- // number | The id of the productType
235
- productType: 56,
236
- // LinkAttributeProductTypeRequest (optional)
237
- linkAttributeProductTypeRequest: ...,
238
- } satisfies LinkAttributeProductTypeOperationRequest;
240
+ // GetAllProductTypeRequest (optional)
241
+ getAllProductTypeRequest: ...,
242
+ } satisfies GetAllProductTypeOperationRequest;
239
243
 
240
244
  try {
241
- const data = await api.linkAttributeProductType(body);
245
+ const data = await api.getAllProductType(body);
242
246
  console.log(data);
243
247
  } catch (error) {
244
248
  console.error(error);
@@ -254,12 +258,11 @@ example().catch(console.error);
254
258
 
255
259
  | Name | Type | Description | Notes |
256
260
  |------------- | ------------- | ------------- | -------------|
257
- | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
258
- | **linkAttributeProductTypeRequest** | [LinkAttributeProductTypeRequest](LinkAttributeProductTypeRequest.md) | | [Optional] |
261
+ | **getAllProductTypeRequest** | [GetAllProductTypeRequest](GetAllProductTypeRequest.md) | | [Optional] |
259
262
 
260
263
  ### Return type
261
264
 
262
- [**ProductTypeResource**](ProductTypeResource.md)
265
+ [**PaginatedProductTypeLiteResourceResponse**](PaginatedProductTypeLiteResourceResponse.md)
263
266
 
264
267
  ### Authorization
265
268
 
@@ -274,16 +277,16 @@ No authorization required
274
277
  ### HTTP response details
275
278
  | Status code | Description | Response headers |
276
279
  |-------------|-------------|------------------|
277
- | **200** | Successful resource response | - |
280
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeLiteResource[]>> | - |
278
281
 
279
282
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
280
283
 
281
284
 
282
- ## showProductType
285
+ ## indexProductType
283
286
 
284
- > ProductTypeResource showProductType(productType)
287
+ > PaginatedProductTypeListResourceResponse indexProductType(indexProductTypeRequest)
285
288
 
286
- Auto-generated: showProductType
289
+ Auto-generated: indexProductType
287
290
 
288
291
  ### Example
289
292
 
@@ -292,19 +295,19 @@ import {
292
295
  Configuration,
293
296
  ProductTypeApi,
294
297
  } from '@digital8/lighting-illusions-ts-sdk';
295
- import type { ShowProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
298
+ import type { IndexProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
296
299
 
297
300
  async function example() {
298
301
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
299
302
  const api = new ProductTypeApi();
300
303
 
301
304
  const body = {
302
- // number | The id of the productType
303
- productType: 56,
304
- } satisfies ShowProductTypeRequest;
305
+ // IndexProductTypeRequest (optional)
306
+ indexProductTypeRequest: ...,
307
+ } satisfies IndexProductTypeOperationRequest;
305
308
 
306
309
  try {
307
- const data = await api.showProductType(body);
310
+ const data = await api.indexProductType(body);
308
311
  console.log(data);
309
312
  } catch (error) {
310
313
  console.error(error);
@@ -320,11 +323,11 @@ example().catch(console.error);
320
323
 
321
324
  | Name | Type | Description | Notes |
322
325
  |------------- | ------------- | ------------- | -------------|
323
- | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
326
+ | **indexProductTypeRequest** | [IndexProductTypeRequest](IndexProductTypeRequest.md) | | [Optional] |
324
327
 
325
328
  ### Return type
326
329
 
327
- [**ProductTypeResource**](ProductTypeResource.md)
330
+ [**PaginatedProductTypeListResourceResponse**](PaginatedProductTypeListResourceResponse.md)
328
331
 
329
332
  ### Authorization
330
333
 
@@ -332,23 +335,23 @@ No authorization required
332
335
 
333
336
  ### HTTP request headers
334
337
 
335
- - **Content-Type**: Not defined
338
+ - **Content-Type**: `application/json`
336
339
  - **Accept**: `application/json`
337
340
 
338
341
 
339
342
  ### HTTP response details
340
343
  | Status code | Description | Response headers |
341
344
  |-------------|-------------|------------------|
342
- | **200** | Successful resource response | - |
345
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeListResource[]>> | - |
343
346
 
344
347
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
345
348
 
346
349
 
347
- ## storeProductType
350
+ ## showProductType
348
351
 
349
- > ProductTypeResource storeProductType(storeProductTypeRequest)
352
+ > ProductTypeResource showProductType(productType)
350
353
 
351
- Auto-generated: storeProductType
354
+ Auto-generated: showProductType
352
355
 
353
356
  ### Example
354
357
 
@@ -357,19 +360,19 @@ import {
357
360
  Configuration,
358
361
  ProductTypeApi,
359
362
  } from '@digital8/lighting-illusions-ts-sdk';
360
- import type { StoreProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
363
+ import type { ShowProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
361
364
 
362
365
  async function example() {
363
366
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
364
367
  const api = new ProductTypeApi();
365
368
 
366
369
  const body = {
367
- // StoreProductTypeRequest (optional)
368
- storeProductTypeRequest: ...,
369
- } satisfies StoreProductTypeOperationRequest;
370
+ // number | The id of the productType
371
+ productType: 56,
372
+ } satisfies ShowProductTypeRequest;
370
373
 
371
374
  try {
372
- const data = await api.storeProductType(body);
375
+ const data = await api.showProductType(body);
373
376
  console.log(data);
374
377
  } catch (error) {
375
378
  console.error(error);
@@ -385,7 +388,7 @@ example().catch(console.error);
385
388
 
386
389
  | Name | Type | Description | Notes |
387
390
  |------------- | ------------- | ------------- | -------------|
388
- | **storeProductTypeRequest** | [StoreProductTypeRequest](StoreProductTypeRequest.md) | | [Optional] |
391
+ | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
389
392
 
390
393
  ### Return type
391
394
 
@@ -397,7 +400,7 @@ No authorization required
397
400
 
398
401
  ### HTTP request headers
399
402
 
400
- - **Content-Type**: `application/json`
403
+ - **Content-Type**: Not defined
401
404
  - **Accept**: `application/json`
402
405
 
403
406
 
@@ -409,11 +412,11 @@ No authorization required
409
412
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
410
413
 
411
414
 
412
- ## unlinkAttributeProductType
415
+ ## storeProductType
413
416
 
414
- > ProductTypeResource unlinkAttributeProductType(productType, attribute)
417
+ > ProductTypeResource storeProductType(storeProductTypeRequest)
415
418
 
416
- Auto-generated: unlinkAttributeProductType
419
+ Auto-generated: storeProductType
417
420
 
418
421
  ### Example
419
422
 
@@ -422,21 +425,19 @@ import {
422
425
  Configuration,
423
426
  ProductTypeApi,
424
427
  } from '@digital8/lighting-illusions-ts-sdk';
425
- import type { UnlinkAttributeProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
428
+ import type { StoreProductTypeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
426
429
 
427
430
  async function example() {
428
431
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
429
432
  const api = new ProductTypeApi();
430
433
 
431
434
  const body = {
432
- // number | The id of the productType
433
- productType: 56,
434
- // number | The id of the attribute
435
- attribute: 56,
436
- } satisfies UnlinkAttributeProductTypeRequest;
435
+ // StoreProductTypeRequest (optional)
436
+ storeProductTypeRequest: ...,
437
+ } satisfies StoreProductTypeOperationRequest;
437
438
 
438
439
  try {
439
- const data = await api.unlinkAttributeProductType(body);
440
+ const data = await api.storeProductType(body);
440
441
  console.log(data);
441
442
  } catch (error) {
442
443
  console.error(error);
@@ -452,8 +453,7 @@ example().catch(console.error);
452
453
 
453
454
  | Name | Type | Description | Notes |
454
455
  |------------- | ------------- | ------------- | -------------|
455
- | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
456
- | **attribute** | `number` | The id of the attribute | [Defaults to `undefined`] |
456
+ | **storeProductTypeRequest** | [StoreProductTypeRequest](StoreProductTypeRequest.md) | | [Optional] |
457
457
 
458
458
  ### Return type
459
459
 
@@ -465,7 +465,7 @@ No authorization required
465
465
 
466
466
  ### HTTP request headers
467
467
 
468
- - **Content-Type**: Not defined
468
+ - **Content-Type**: `application/json`
469
469
  - **Accept**: `application/json`
470
470
 
471
471
 
@@ -477,11 +477,11 @@ No authorization required
477
477
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
478
478
 
479
479
 
480
- ## updateLinkedAttributeProductType
480
+ ## updateAttachedAttributeProductType
481
481
 
482
- > ProductTypeResource updateLinkedAttributeProductType(productType, linkAttributeProductTypeRequest)
482
+ > ProductTypeResource updateAttachedAttributeProductType(productType, attachAttributeProductTypeRequest)
483
483
 
484
- Auto-generated: updateLinkedAttributeProductType
484
+ Auto-generated: updateAttachedAttributeProductType
485
485
 
486
486
  ### Example
487
487
 
@@ -490,7 +490,7 @@ import {
490
490
  Configuration,
491
491
  ProductTypeApi,
492
492
  } from '@digital8/lighting-illusions-ts-sdk';
493
- import type { UpdateLinkedAttributeProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
493
+ import type { UpdateAttachedAttributeProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
494
494
 
495
495
  async function example() {
496
496
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
@@ -499,12 +499,12 @@ async function example() {
499
499
  const body = {
500
500
  // number | The id of the productType
501
501
  productType: 56,
502
- // LinkAttributeProductTypeRequest (optional)
503
- linkAttributeProductTypeRequest: ...,
504
- } satisfies UpdateLinkedAttributeProductTypeRequest;
502
+ // AttachAttributeProductTypeRequest (optional)
503
+ attachAttributeProductTypeRequest: ...,
504
+ } satisfies UpdateAttachedAttributeProductTypeRequest;
505
505
 
506
506
  try {
507
- const data = await api.updateLinkedAttributeProductType(body);
507
+ const data = await api.updateAttachedAttributeProductType(body);
508
508
  console.log(data);
509
509
  } catch (error) {
510
510
  console.error(error);
@@ -521,7 +521,7 @@ example().catch(console.error);
521
521
  | Name | Type | Description | Notes |
522
522
  |------------- | ------------- | ------------- | -------------|
523
523
  | **productType** | `number` | The id of the productType | [Defaults to `undefined`] |
524
- | **linkAttributeProductTypeRequest** | [LinkAttributeProductTypeRequest](LinkAttributeProductTypeRequest.md) | | [Optional] |
524
+ | **attachAttributeProductTypeRequest** | [AttachAttributeProductTypeRequest](AttachAttributeProductTypeRequest.md) | | [Optional] |
525
525
 
526
526
  ### Return type
527
527
 
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
+ `totalAttributes` | number
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { ProductTypeListResource } from '@digital8/lighting-illusions-ts-sd
18
19
  const example = {
19
20
  "id": null,
20
21
  "name": null,
22
+ "totalAttributes": null,
21
23
  } satisfies ProductTypeListResource
22
24
 
23
25
  console.log(example)