@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.532

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 (96) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +30 -2
  3. package/dist/apis/ProductCategoryApi.d.ts +105 -0
  4. package/dist/apis/ProductCategoryApi.js +445 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
  8. package/dist/models/CategoryAutomationComparisonType.js +55 -0
  9. package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
  10. package/dist/models/CategoryAutomationConditionType.js +51 -0
  11. package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
  12. package/dist/models/CategoryAutomationFieldType.js +56 -0
  13. package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
  14. package/dist/models/CategoryAutomationRuleResource.js +67 -0
  15. package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +3 -1
  19. package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
  20. package/dist/models/GetAllProductCategoryRequest.js +94 -0
  21. package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
  22. package/dist/models/IndexProductCategoryRequest.js +98 -0
  23. package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
  27. package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
  28. package/dist/models/ProductCategoryHierarchyResource.js +69 -0
  29. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
  31. package/dist/models/ProductCategoryListResource.d.ts +75 -0
  32. package/dist/models/ProductCategoryListResource.js +78 -0
  33. package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
  35. package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
  36. package/dist/models/ProductCategoryLiteResource.js +53 -0
  37. package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
  39. package/dist/models/ProductCategoryResource.d.ts +107 -0
  40. package/dist/models/ProductCategoryResource.js +96 -0
  41. package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
  43. package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
  44. package/dist/models/StoreProductCategoryRequest.js +86 -0
  45. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
  46. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
  47. package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
  48. package/dist/models/UpdateProductCategoryRequest.js +74 -0
  49. package/dist/models/index.d.ts +20 -0
  50. package/dist/models/index.js +20 -0
  51. package/docs/CategoryAutomationComparisonType.md +32 -0
  52. package/docs/CategoryAutomationConditionType.md +32 -0
  53. package/docs/CategoryAutomationFieldType.md +32 -0
  54. package/docs/CategoryAutomationRuleResource.md +46 -0
  55. package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
  56. package/docs/GetAllProductCategoryRequest.md +52 -0
  57. package/docs/IndexProductCategoryRequest.md +56 -0
  58. package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
  59. package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
  60. package/docs/ProductCategoryApi.md +534 -0
  61. package/docs/ProductCategoryHierarchyResource.md +44 -0
  62. package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
  63. package/docs/ProductCategoryListResource.md +48 -0
  64. package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
  65. package/docs/ProductCategoryLiteResource.md +36 -0
  66. package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
  67. package/docs/ProductCategoryResource.md +58 -0
  68. package/docs/ProductCategoryResourceArrayResponse.md +34 -0
  69. package/docs/StoreProductCategoryRequest.md +58 -0
  70. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
  71. package/docs/UpdateProductCategoryRequest.md +58 -0
  72. package/package.json +1 -1
  73. package/src/apis/ProductCategoryApi.ts +363 -0
  74. package/src/apis/index.ts +1 -0
  75. package/src/models/CategoryAutomationComparisonType.ts +57 -0
  76. package/src/models/CategoryAutomationConditionType.ts +53 -0
  77. package/src/models/CategoryAutomationFieldType.ts +58 -0
  78. package/src/models/CategoryAutomationRuleResource.ts +116 -0
  79. package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
  80. package/src/models/ExternalApiLogResource.ts +3 -2
  81. package/src/models/GetAllProductCategoryRequest.ts +171 -0
  82. package/src/models/IndexProductCategoryRequest.ts +187 -0
  83. package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
  84. package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
  85. package/src/models/ProductCategoryHierarchyResource.ts +110 -0
  86. package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
  87. package/src/models/ProductCategoryListResource.ts +136 -0
  88. package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
  89. package/src/models/ProductCategoryLiteResource.ts +74 -0
  90. package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
  91. package/src/models/ProductCategoryResource.ts +193 -0
  92. package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
  93. package/src/models/StoreProductCategoryRequest.ts +175 -0
  94. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
  95. package/src/models/UpdateProductCategoryRequest.ts +169 -0
  96. package/src/models/index.ts +20 -0
@@ -0,0 +1,534 @@
1
+ # ProductCategoryApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
8
+ | [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
9
+ | [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
10
+ | [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
11
+ | [**indexProductCategory**](ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory |
12
+ | [**showProductCategory**](ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory |
13
+ | [**storeProductCategory**](ProductCategoryApi.md#storeproductcategoryoperation) | **POST** /admin-api/product-category/create | Auto-generated: storeProductCategory |
14
+ | [**updateProductCategory**](ProductCategoryApi.md#updateproductcategoryoperation) | **PUT** /admin-api/product-category/{productCategory}/update | Auto-generated: updateProductCategory |
15
+
16
+
17
+
18
+ ## destroyProductCategory
19
+
20
+ > GenericResponse destroyProductCategory(productCategory)
21
+
22
+ Auto-generated: destroyProductCategory
23
+
24
+ ### Example
25
+
26
+ ```ts
27
+ import {
28
+ Configuration,
29
+ ProductCategoryApi,
30
+ } from '@digital8/lighting-illusions-ts-sdk';
31
+ import type { DestroyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
32
+
33
+ async function example() {
34
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
35
+ const api = new ProductCategoryApi();
36
+
37
+ const body = {
38
+ // number | The id of the productCategory
39
+ productCategory: 56,
40
+ } satisfies DestroyProductCategoryRequest;
41
+
42
+ try {
43
+ const data = await api.destroyProductCategory(body);
44
+ console.log(data);
45
+ } catch (error) {
46
+ console.error(error);
47
+ }
48
+ }
49
+
50
+ // Run the test
51
+ example().catch(console.error);
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+
57
+ | Name | Type | Description | Notes |
58
+ |------------- | ------------- | ------------- | -------------|
59
+ | **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
60
+
61
+ ### Return type
62
+
63
+ [**GenericResponse**](GenericResponse.md)
64
+
65
+ ### Authorization
66
+
67
+ No authorization required
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: `application/json`
73
+
74
+
75
+ ### HTTP response details
76
+ | Status code | Description | Response headers |
77
+ |-------------|-------------|------------------|
78
+ | **200** | \\JsonResponse | - |
79
+
80
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
81
+
82
+
83
+ ## getAllProductCategory
84
+
85
+ > ProductCategoryLiteResourceArrayResponse getAllProductCategory(getAllProductCategoryRequest)
86
+
87
+ Auto-generated: getAllProductCategory
88
+
89
+ ### Example
90
+
91
+ ```ts
92
+ import {
93
+ Configuration,
94
+ ProductCategoryApi,
95
+ } from '@digital8/lighting-illusions-ts-sdk';
96
+ import type { GetAllProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
97
+
98
+ async function example() {
99
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
100
+ const api = new ProductCategoryApi();
101
+
102
+ const body = {
103
+ // GetAllProductCategoryRequest (optional)
104
+ getAllProductCategoryRequest: ...,
105
+ } satisfies GetAllProductCategoryOperationRequest;
106
+
107
+ try {
108
+ const data = await api.getAllProductCategory(body);
109
+ console.log(data);
110
+ } catch (error) {
111
+ console.error(error);
112
+ }
113
+ }
114
+
115
+ // Run the test
116
+ example().catch(console.error);
117
+ ```
118
+
119
+ ### Parameters
120
+
121
+
122
+ | Name | Type | Description | Notes |
123
+ |------------- | ------------- | ------------- | -------------|
124
+ | **getAllProductCategoryRequest** | [GetAllProductCategoryRequest](GetAllProductCategoryRequest.md) | | [Optional] |
125
+
126
+ ### Return type
127
+
128
+ [**ProductCategoryLiteResourceArrayResponse**](ProductCategoryLiteResourceArrayResponse.md)
129
+
130
+ ### Authorization
131
+
132
+ No authorization required
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: `application/json`
137
+ - **Accept**: `application/json`
138
+
139
+
140
+ ### HTTP response details
141
+ | Status code | Description | Response headers |
142
+ |-------------|-------------|------------------|
143
+ | **200** | Successful resource response | - |
144
+
145
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
146
+
147
+
148
+ ## getChildrenProductCategory
149
+
150
+ > PaginatedProductCategoryListResourceResponse getChildrenProductCategory(productCategory, indexProductCategoryRequest)
151
+
152
+ Auto-generated: getChildrenProductCategory
153
+
154
+ ### Example
155
+
156
+ ```ts
157
+ import {
158
+ Configuration,
159
+ ProductCategoryApi,
160
+ } from '@digital8/lighting-illusions-ts-sdk';
161
+ import type { GetChildrenProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
162
+
163
+ async function example() {
164
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
165
+ const api = new ProductCategoryApi();
166
+
167
+ const body = {
168
+ // number | The id of the productCategory
169
+ productCategory: 56,
170
+ // IndexProductCategoryRequest (optional)
171
+ indexProductCategoryRequest: ...,
172
+ } satisfies GetChildrenProductCategoryRequest;
173
+
174
+ try {
175
+ const data = await api.getChildrenProductCategory(body);
176
+ console.log(data);
177
+ } catch (error) {
178
+ console.error(error);
179
+ }
180
+ }
181
+
182
+ // Run the test
183
+ example().catch(console.error);
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+
189
+ | Name | Type | Description | Notes |
190
+ |------------- | ------------- | ------------- | -------------|
191
+ | **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
192
+ | **indexProductCategoryRequest** | [IndexProductCategoryRequest](IndexProductCategoryRequest.md) | | [Optional] |
193
+
194
+ ### Return type
195
+
196
+ [**PaginatedProductCategoryListResourceResponse**](PaginatedProductCategoryListResourceResponse.md)
197
+
198
+ ### Authorization
199
+
200
+ No authorization required
201
+
202
+ ### HTTP request headers
203
+
204
+ - **Content-Type**: `application/json`
205
+ - **Accept**: `application/json`
206
+
207
+
208
+ ### HTTP response details
209
+ | Status code | Description | Response headers |
210
+ |-------------|-------------|------------------|
211
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductCategoryListResource[]>> | - |
212
+
213
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
214
+
215
+
216
+ ## getHierarchyProductCategory
217
+
218
+ > ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory()
219
+
220
+ Auto-generated: getHierarchyProductCategory
221
+
222
+ ### Example
223
+
224
+ ```ts
225
+ import {
226
+ Configuration,
227
+ ProductCategoryApi,
228
+ } from '@digital8/lighting-illusions-ts-sdk';
229
+ import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
230
+
231
+ async function example() {
232
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
233
+ const api = new ProductCategoryApi();
234
+
235
+ try {
236
+ const data = await api.getHierarchyProductCategory();
237
+ console.log(data);
238
+ } catch (error) {
239
+ console.error(error);
240
+ }
241
+ }
242
+
243
+ // Run the test
244
+ example().catch(console.error);
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+ This endpoint does not need any parameter.
250
+
251
+ ### Return type
252
+
253
+ [**ProductCategoryHierarchyResourceArrayResponse**](ProductCategoryHierarchyResourceArrayResponse.md)
254
+
255
+ ### Authorization
256
+
257
+ No authorization required
258
+
259
+ ### HTTP request headers
260
+
261
+ - **Content-Type**: Not defined
262
+ - **Accept**: `application/json`
263
+
264
+
265
+ ### HTTP response details
266
+ | Status code | Description | Response headers |
267
+ |-------------|-------------|------------------|
268
+ | **200** | Successful resource response | - |
269
+
270
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
271
+
272
+
273
+ ## indexProductCategory
274
+
275
+ > PaginatedProductCategoryListResourceResponse indexProductCategory(indexProductCategoryRequest)
276
+
277
+ Auto-generated: indexProductCategory
278
+
279
+ ### Example
280
+
281
+ ```ts
282
+ import {
283
+ Configuration,
284
+ ProductCategoryApi,
285
+ } from '@digital8/lighting-illusions-ts-sdk';
286
+ import type { IndexProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
287
+
288
+ async function example() {
289
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
290
+ const api = new ProductCategoryApi();
291
+
292
+ const body = {
293
+ // IndexProductCategoryRequest (optional)
294
+ indexProductCategoryRequest: ...,
295
+ } satisfies IndexProductCategoryOperationRequest;
296
+
297
+ try {
298
+ const data = await api.indexProductCategory(body);
299
+ console.log(data);
300
+ } catch (error) {
301
+ console.error(error);
302
+ }
303
+ }
304
+
305
+ // Run the test
306
+ example().catch(console.error);
307
+ ```
308
+
309
+ ### Parameters
310
+
311
+
312
+ | Name | Type | Description | Notes |
313
+ |------------- | ------------- | ------------- | -------------|
314
+ | **indexProductCategoryRequest** | [IndexProductCategoryRequest](IndexProductCategoryRequest.md) | | [Optional] |
315
+
316
+ ### Return type
317
+
318
+ [**PaginatedProductCategoryListResourceResponse**](PaginatedProductCategoryListResourceResponse.md)
319
+
320
+ ### Authorization
321
+
322
+ No authorization required
323
+
324
+ ### HTTP request headers
325
+
326
+ - **Content-Type**: `application/json`
327
+ - **Accept**: `application/json`
328
+
329
+
330
+ ### HTTP response details
331
+ | Status code | Description | Response headers |
332
+ |-------------|-------------|------------------|
333
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductCategoryListResource[]>> | - |
334
+
335
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
336
+
337
+
338
+ ## showProductCategory
339
+
340
+ > ProductCategoryResource showProductCategory(productCategory)
341
+
342
+ Auto-generated: showProductCategory
343
+
344
+ ### Example
345
+
346
+ ```ts
347
+ import {
348
+ Configuration,
349
+ ProductCategoryApi,
350
+ } from '@digital8/lighting-illusions-ts-sdk';
351
+ import type { ShowProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
352
+
353
+ async function example() {
354
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
355
+ const api = new ProductCategoryApi();
356
+
357
+ const body = {
358
+ // number | The id of the productCategory
359
+ productCategory: 56,
360
+ } satisfies ShowProductCategoryRequest;
361
+
362
+ try {
363
+ const data = await api.showProductCategory(body);
364
+ console.log(data);
365
+ } catch (error) {
366
+ console.error(error);
367
+ }
368
+ }
369
+
370
+ // Run the test
371
+ example().catch(console.error);
372
+ ```
373
+
374
+ ### Parameters
375
+
376
+
377
+ | Name | Type | Description | Notes |
378
+ |------------- | ------------- | ------------- | -------------|
379
+ | **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
380
+
381
+ ### Return type
382
+
383
+ [**ProductCategoryResource**](ProductCategoryResource.md)
384
+
385
+ ### Authorization
386
+
387
+ No authorization required
388
+
389
+ ### HTTP request headers
390
+
391
+ - **Content-Type**: Not defined
392
+ - **Accept**: `application/json`
393
+
394
+
395
+ ### HTTP response details
396
+ | Status code | Description | Response headers |
397
+ |-------------|-------------|------------------|
398
+ | **200** | Successful resource response | - |
399
+
400
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
401
+
402
+
403
+ ## storeProductCategory
404
+
405
+ > ProductCategoryResource storeProductCategory(storeProductCategoryRequest)
406
+
407
+ Auto-generated: storeProductCategory
408
+
409
+ ### Example
410
+
411
+ ```ts
412
+ import {
413
+ Configuration,
414
+ ProductCategoryApi,
415
+ } from '@digital8/lighting-illusions-ts-sdk';
416
+ import type { StoreProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
417
+
418
+ async function example() {
419
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
420
+ const api = new ProductCategoryApi();
421
+
422
+ const body = {
423
+ // StoreProductCategoryRequest (optional)
424
+ storeProductCategoryRequest: ...,
425
+ } satisfies StoreProductCategoryOperationRequest;
426
+
427
+ try {
428
+ const data = await api.storeProductCategory(body);
429
+ console.log(data);
430
+ } catch (error) {
431
+ console.error(error);
432
+ }
433
+ }
434
+
435
+ // Run the test
436
+ example().catch(console.error);
437
+ ```
438
+
439
+ ### Parameters
440
+
441
+
442
+ | Name | Type | Description | Notes |
443
+ |------------- | ------------- | ------------- | -------------|
444
+ | **storeProductCategoryRequest** | [StoreProductCategoryRequest](StoreProductCategoryRequest.md) | | [Optional] |
445
+
446
+ ### Return type
447
+
448
+ [**ProductCategoryResource**](ProductCategoryResource.md)
449
+
450
+ ### Authorization
451
+
452
+ No authorization required
453
+
454
+ ### HTTP request headers
455
+
456
+ - **Content-Type**: `application/json`
457
+ - **Accept**: `application/json`
458
+
459
+
460
+ ### HTTP response details
461
+ | Status code | Description | Response headers |
462
+ |-------------|-------------|------------------|
463
+ | **200** | Successful resource response | - |
464
+
465
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
466
+
467
+
468
+ ## updateProductCategory
469
+
470
+ > ProductCategoryResource updateProductCategory(productCategory, updateProductCategoryRequest)
471
+
472
+ Auto-generated: updateProductCategory
473
+
474
+ ### Example
475
+
476
+ ```ts
477
+ import {
478
+ Configuration,
479
+ ProductCategoryApi,
480
+ } from '@digital8/lighting-illusions-ts-sdk';
481
+ import type { UpdateProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
482
+
483
+ async function example() {
484
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
485
+ const api = new ProductCategoryApi();
486
+
487
+ const body = {
488
+ // number | The id of the productCategory
489
+ productCategory: 56,
490
+ // UpdateProductCategoryRequest (optional)
491
+ updateProductCategoryRequest: ...,
492
+ } satisfies UpdateProductCategoryOperationRequest;
493
+
494
+ try {
495
+ const data = await api.updateProductCategory(body);
496
+ console.log(data);
497
+ } catch (error) {
498
+ console.error(error);
499
+ }
500
+ }
501
+
502
+ // Run the test
503
+ example().catch(console.error);
504
+ ```
505
+
506
+ ### Parameters
507
+
508
+
509
+ | Name | Type | Description | Notes |
510
+ |------------- | ------------- | ------------- | -------------|
511
+ | **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
512
+ | **updateProductCategoryRequest** | [UpdateProductCategoryRequest](UpdateProductCategoryRequest.md) | | [Optional] |
513
+
514
+ ### Return type
515
+
516
+ [**ProductCategoryResource**](ProductCategoryResource.md)
517
+
518
+ ### Authorization
519
+
520
+ No authorization required
521
+
522
+ ### HTTP request headers
523
+
524
+ - **Content-Type**: `application/json`
525
+ - **Accept**: `application/json`
526
+
527
+
528
+ ### HTTP response details
529
+ | Status code | Description | Response headers |
530
+ |-------------|-------------|------------------|
531
+ | **200** | Successful resource response | - |
532
+
533
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
534
+
@@ -0,0 +1,44 @@
1
+
2
+ # ProductCategoryHierarchyResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `slug` | string
12
+ `index` | number
13
+ `isAutomated` | boolean
14
+ `children` | object
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ProductCategoryHierarchyResource } from '@digital8/lighting-illusions-ts-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "name": null,
25
+ "slug": null,
26
+ "index": null,
27
+ "isAutomated": null,
28
+ "children": null,
29
+ } satisfies ProductCategoryHierarchyResource
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryHierarchyResource
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # ProductCategoryHierarchyResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductCategoryHierarchyResource>](ProductCategoryHierarchyResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductCategoryHierarchyResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductCategoryHierarchyResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryHierarchyResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,48 @@
1
+
2
+ # ProductCategoryListResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `slug` | string
12
+ `isDisabled` | boolean
13
+ `isAutomated` | boolean
14
+ `hasChildren` | boolean
15
+ `productCount` | number
16
+ `site` | [SiteLiteResource](SiteLiteResource.md)
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { ProductCategoryListResource } from '@digital8/lighting-illusions-ts-sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "id": null,
26
+ "name": null,
27
+ "slug": null,
28
+ "isDisabled": null,
29
+ "isAutomated": null,
30
+ "hasChildren": null,
31
+ "productCount": null,
32
+ "site": null,
33
+ } satisfies ProductCategoryListResource
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryListResource
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,34 @@
1
+
2
+ # ProductCategoryListResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductCategoryListResource>](ProductCategoryListResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductCategoryListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductCategoryListResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ProductCategoryListResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+