@digital8/lighting-illusions-ts-sdk 0.0.1672 → 0.0.1674
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 +36 -0
- package/README.md +34 -2
- package/dist/apis/BlogCategoryApi.d.ts +109 -0
- package/dist/apis/BlogCategoryApi.js +433 -0
- package/dist/apis/FrontendComponentApi.d.ts +33 -0
- package/dist/apis/FrontendComponentApi.js +138 -0
- package/dist/apis/PageApi.d.ts +109 -0
- package/dist/apis/PageApi.js +433 -0
- package/dist/apis/PageComponentApi.d.ts +94 -0
- package/dist/apis/PageComponentApi.js +375 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllBlogCategoryRequest.d.ts +78 -0
- package/dist/models/GetAllBlogCategoryRequest.js +74 -0
- package/dist/models/GetAllFrontendComponentRequest.d.ts +78 -0
- package/dist/models/GetAllFrontendComponentRequest.js +74 -0
- package/dist/models/GetAllPageComponentRequest.d.ts +90 -0
- package/dist/models/GetAllPageComponentRequest.js +78 -0
- package/dist/models/GetAllPageRequest.d.ts +91 -0
- package/dist/models/GetAllPageRequest.js +79 -0
- package/dist/models/IndexBlogCategoryRequest.d.ts +90 -0
- package/dist/models/IndexBlogCategoryRequest.js +78 -0
- package/dist/models/IndexPageRequest.d.ts +103 -0
- package/dist/models/IndexPageRequest.js +83 -0
- package/dist/models/StoreBlogCategoryRequest.d.ts +45 -0
- package/dist/models/StoreBlogCategoryRequest.js +60 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StorePageComponentRequest.d.ts +81 -0
- package/dist/models/StorePageComponentRequest.js +72 -0
- package/dist/models/StorePageComponentRequestRelationsInner.d.ts +44 -0
- package/dist/models/StorePageComponentRequestRelationsInner.js +53 -0
- package/dist/models/StorePageRequest.d.ts +85 -0
- package/dist/models/StorePageRequest.js +84 -0
- package/dist/models/StorePageRequestBlog.d.ts +50 -0
- package/dist/models/StorePageRequestBlog.js +55 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/UpdateBlogCategoryRequest.d.ts +45 -0
- package/dist/models/UpdateBlogCategoryRequest.js +60 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +69 -0
- package/dist/models/UpdatePageComponentRequest.js +64 -0
- package/dist/models/UpdatePageRequest.d.ts +70 -0
- package/dist/models/UpdatePageRequest.js +69 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/BlogCategoryApi.md +407 -0
- package/docs/FrontendComponentApi.md +74 -0
- package/docs/GetAllBlogCategoryRequest.md +44 -0
- package/docs/GetAllFrontendComponentRequest.md +44 -0
- package/docs/GetAllPageComponentRequest.md +48 -0
- package/docs/GetAllPageRequest.md +48 -0
- package/docs/IndexBlogCategoryRequest.md +48 -0
- package/docs/IndexPageRequest.md +52 -0
- package/docs/PageApi.md +407 -0
- package/docs/PageComponentApi.md +341 -0
- package/docs/StoreBlogCategoryRequest.md +38 -0
- package/docs/StorePageComponentRequest.md +50 -0
- package/docs/StorePageComponentRequestRelationsInner.md +38 -0
- package/docs/StorePageRequest.md +48 -0
- package/docs/StorePageRequestBlog.md +40 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/UpdateBlogCategoryRequest.md +38 -0
- package/docs/UpdatePageComponentRequest.md +46 -0
- package/docs/UpdatePageRequest.md +46 -0
- package/package.json +1 -1
- package/src/apis/BlogCategoryApi.ts +334 -0
- package/src/apis/FrontendComponentApi.ts +77 -0
- package/src/apis/PageApi.ts +334 -0
- package/src/apis/PageComponentApi.ts +284 -0
- package/src/apis/index.ts +4 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllBlogCategoryRequest.ts +125 -0
- package/src/models/GetAllFrontendComponentRequest.ts +125 -0
- package/src/models/GetAllPageComponentRequest.ts +141 -0
- package/src/models/GetAllPageRequest.ts +142 -0
- package/src/models/IndexBlogCategoryRequest.ts +141 -0
- package/src/models/IndexPageRequest.ts +158 -0
- package/src/models/StoreBlogCategoryRequest.ts +92 -0
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StorePageComponentRequest.ts +140 -0
- package/src/models/StorePageComponentRequestRelationsInner.ts +81 -0
- package/src/models/StorePageRequest.ts +153 -0
- package/src/models/StorePageRequestBlog.ts +89 -0
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/UpdateBlogCategoryRequest.ts +92 -0
- package/src/models/UpdatePageComponentRequest.ts +122 -0
- package/src/models/UpdatePageRequest.ts +131 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdatePageRequest = instanceOfUpdatePageRequest;
|
|
17
|
+
exports.UpdatePageRequestFromJSON = UpdatePageRequestFromJSON;
|
|
18
|
+
exports.UpdatePageRequestFromJSONTyped = UpdatePageRequestFromJSONTyped;
|
|
19
|
+
exports.UpdatePageRequestToJSON = UpdatePageRequestToJSON;
|
|
20
|
+
exports.UpdatePageRequestToJSONTyped = UpdatePageRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestSeoInner_1 = require("./StoreProductCategoryRequestSeoInner");
|
|
22
|
+
var StorePageRequestBlog_1 = require("./StorePageRequestBlog");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdatePageRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdatePageRequest(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UpdatePageRequestFromJSON(json) {
|
|
36
|
+
return UpdatePageRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UpdatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'slug': json['slug'],
|
|
45
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
46
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
47
|
+
'blog': json['blog'] == null ? undefined : (0, StorePageRequestBlog_1.StorePageRequestBlogFromJSON)(json['blog']),
|
|
48
|
+
'componentOrder': json['component_order'] == null ? undefined : json['component_order'],
|
|
49
|
+
'seo': (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function UpdatePageRequestToJSON(json) {
|
|
53
|
+
return UpdatePageRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'slug': value['slug'],
|
|
63
|
+
'enabled': value['enabled'],
|
|
64
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
65
|
+
'blog': (0, StorePageRequestBlog_1.StorePageRequestBlogToJSON)(value['blog']),
|
|
66
|
+
'component_order': value['componentOrder'],
|
|
67
|
+
'seo': (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -99,10 +99,14 @@ export * from './FrontendComponentResourceArrayResponse';
|
|
|
99
99
|
export * from './GenericResponse';
|
|
100
100
|
export * from './GetAllAttributeRequest';
|
|
101
101
|
export * from './GetAllAttributeValueRequest';
|
|
102
|
+
export * from './GetAllBlogCategoryRequest';
|
|
102
103
|
export * from './GetAllDefinitionRequest';
|
|
103
104
|
export * from './GetAllDocumentRequest';
|
|
105
|
+
export * from './GetAllFrontendComponentRequest';
|
|
104
106
|
export * from './GetAllGoogleCategoryRequest';
|
|
105
107
|
export * from './GetAllOverlayTemplateRequest';
|
|
108
|
+
export * from './GetAllPageComponentRequest';
|
|
109
|
+
export * from './GetAllPageRequest';
|
|
106
110
|
export * from './GetAllProductCategoryRequest';
|
|
107
111
|
export * from './GetAllProductChildRequest';
|
|
108
112
|
export * from './GetAllProductRangeRequest';
|
|
@@ -124,12 +128,14 @@ export * from './GoogleCategoryResource';
|
|
|
124
128
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
125
129
|
export * from './IndexAttributeRequest';
|
|
126
130
|
export * from './IndexAttributeValueRequest';
|
|
131
|
+
export * from './IndexBlogCategoryRequest';
|
|
127
132
|
export * from './IndexDefinitionRequest';
|
|
128
133
|
export * from './IndexDocumentRequest';
|
|
129
134
|
export * from './IndexExternalApiLogRequest';
|
|
130
135
|
export * from './IndexLabelRequest';
|
|
131
136
|
export * from './IndexModelAttributeRequest';
|
|
132
137
|
export * from './IndexOverlayTemplateRequest';
|
|
138
|
+
export * from './IndexPageRequest';
|
|
133
139
|
export * from './IndexProductCategoryRequest';
|
|
134
140
|
export * from './IndexProductChildRequest';
|
|
135
141
|
export * from './IndexProductRangeRequest';
|
|
@@ -342,6 +348,7 @@ export * from './StoreAssetFileRequest';
|
|
|
342
348
|
export * from './StoreAssetForAssetableRequest';
|
|
343
349
|
export * from './StoreAttributeRequest';
|
|
344
350
|
export * from './StoreAttributeValueRequest';
|
|
351
|
+
export * from './StoreBlogCategoryRequest';
|
|
345
352
|
export * from './StoreDefinitionRequest';
|
|
346
353
|
export * from './StoreDocumentFileRequest';
|
|
347
354
|
export * from './StoreDocumentRequest';
|
|
@@ -354,6 +361,10 @@ export * from './StoreLiteResource';
|
|
|
354
361
|
export * from './StoreLiteResourceArrayResponse';
|
|
355
362
|
export * from './StoreOverlayTemplateAssetRequest';
|
|
356
363
|
export * from './StoreOverlayTemplateRequest';
|
|
364
|
+
export * from './StorePageComponentRequest';
|
|
365
|
+
export * from './StorePageComponentRequestRelationsInner';
|
|
366
|
+
export * from './StorePageRequest';
|
|
367
|
+
export * from './StorePageRequestBlog';
|
|
357
368
|
export * from './StoreProductCategoryRequest';
|
|
358
369
|
export * from './StoreProductCategoryRequestAutomationRulesInner';
|
|
359
370
|
export * from './StoreProductCategoryRequestDescriptionsInner';
|
|
@@ -400,6 +411,7 @@ export * from './TagType';
|
|
|
400
411
|
export * from './UpdateAssetForAssetableRequest';
|
|
401
412
|
export * from './UpdateAttributeRequest';
|
|
402
413
|
export * from './UpdateAttributeValueRequest';
|
|
414
|
+
export * from './UpdateBlogCategoryRequest';
|
|
403
415
|
export * from './UpdateDefinitionRequest';
|
|
404
416
|
export * from './UpdateDocumentRequest';
|
|
405
417
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
@@ -408,6 +420,8 @@ export * from './UpdateLabelRequest';
|
|
|
408
420
|
export * from './UpdateModelAttributeRequest';
|
|
409
421
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
410
422
|
export * from './UpdateOverlayTemplateRequest';
|
|
423
|
+
export * from './UpdatePageComponentRequest';
|
|
424
|
+
export * from './UpdatePageRequest';
|
|
411
425
|
export * from './UpdateProductCategoryRequest';
|
|
412
426
|
export * from './UpdateProductChildRequest';
|
|
413
427
|
export * from './UpdateProductChildRequestAssetsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -117,10 +117,14 @@ __exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
|
117
117
|
__exportStar(require("./GenericResponse"), exports);
|
|
118
118
|
__exportStar(require("./GetAllAttributeRequest"), exports);
|
|
119
119
|
__exportStar(require("./GetAllAttributeValueRequest"), exports);
|
|
120
|
+
__exportStar(require("./GetAllBlogCategoryRequest"), exports);
|
|
120
121
|
__exportStar(require("./GetAllDefinitionRequest"), exports);
|
|
121
122
|
__exportStar(require("./GetAllDocumentRequest"), exports);
|
|
123
|
+
__exportStar(require("./GetAllFrontendComponentRequest"), exports);
|
|
122
124
|
__exportStar(require("./GetAllGoogleCategoryRequest"), exports);
|
|
123
125
|
__exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
126
|
+
__exportStar(require("./GetAllPageComponentRequest"), exports);
|
|
127
|
+
__exportStar(require("./GetAllPageRequest"), exports);
|
|
124
128
|
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
125
129
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
126
130
|
__exportStar(require("./GetAllProductRangeRequest"), exports);
|
|
@@ -142,12 +146,14 @@ __exportStar(require("./GoogleCategoryResource"), exports);
|
|
|
142
146
|
__exportStar(require("./GoogleCategoryResourceArrayResponse"), exports);
|
|
143
147
|
__exportStar(require("./IndexAttributeRequest"), exports);
|
|
144
148
|
__exportStar(require("./IndexAttributeValueRequest"), exports);
|
|
149
|
+
__exportStar(require("./IndexBlogCategoryRequest"), exports);
|
|
145
150
|
__exportStar(require("./IndexDefinitionRequest"), exports);
|
|
146
151
|
__exportStar(require("./IndexDocumentRequest"), exports);
|
|
147
152
|
__exportStar(require("./IndexExternalApiLogRequest"), exports);
|
|
148
153
|
__exportStar(require("./IndexLabelRequest"), exports);
|
|
149
154
|
__exportStar(require("./IndexModelAttributeRequest"), exports);
|
|
150
155
|
__exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
156
|
+
__exportStar(require("./IndexPageRequest"), exports);
|
|
151
157
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
152
158
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
153
159
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
@@ -360,6 +366,7 @@ __exportStar(require("./StoreAssetFileRequest"), exports);
|
|
|
360
366
|
__exportStar(require("./StoreAssetForAssetableRequest"), exports);
|
|
361
367
|
__exportStar(require("./StoreAttributeRequest"), exports);
|
|
362
368
|
__exportStar(require("./StoreAttributeValueRequest"), exports);
|
|
369
|
+
__exportStar(require("./StoreBlogCategoryRequest"), exports);
|
|
363
370
|
__exportStar(require("./StoreDefinitionRequest"), exports);
|
|
364
371
|
__exportStar(require("./StoreDocumentFileRequest"), exports);
|
|
365
372
|
__exportStar(require("./StoreDocumentRequest"), exports);
|
|
@@ -372,6 +379,10 @@ __exportStar(require("./StoreLiteResource"), exports);
|
|
|
372
379
|
__exportStar(require("./StoreLiteResourceArrayResponse"), exports);
|
|
373
380
|
__exportStar(require("./StoreOverlayTemplateAssetRequest"), exports);
|
|
374
381
|
__exportStar(require("./StoreOverlayTemplateRequest"), exports);
|
|
382
|
+
__exportStar(require("./StorePageComponentRequest"), exports);
|
|
383
|
+
__exportStar(require("./StorePageComponentRequestRelationsInner"), exports);
|
|
384
|
+
__exportStar(require("./StorePageRequest"), exports);
|
|
385
|
+
__exportStar(require("./StorePageRequestBlog"), exports);
|
|
375
386
|
__exportStar(require("./StoreProductCategoryRequest"), exports);
|
|
376
387
|
__exportStar(require("./StoreProductCategoryRequestAutomationRulesInner"), exports);
|
|
377
388
|
__exportStar(require("./StoreProductCategoryRequestDescriptionsInner"), exports);
|
|
@@ -418,6 +429,7 @@ __exportStar(require("./TagType"), exports);
|
|
|
418
429
|
__exportStar(require("./UpdateAssetForAssetableRequest"), exports);
|
|
419
430
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
420
431
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
432
|
+
__exportStar(require("./UpdateBlogCategoryRequest"), exports);
|
|
421
433
|
__exportStar(require("./UpdateDefinitionRequest"), exports);
|
|
422
434
|
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
423
435
|
__exportStar(require("./UpdateFilterOrderAttributeRequest"), exports);
|
|
@@ -426,6 +438,8 @@ __exportStar(require("./UpdateLabelRequest"), exports);
|
|
|
426
438
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|
|
427
439
|
__exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
428
440
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|
|
441
|
+
__exportStar(require("./UpdatePageComponentRequest"), exports);
|
|
442
|
+
__exportStar(require("./UpdatePageRequest"), exports);
|
|
429
443
|
__exportStar(require("./UpdateProductCategoryRequest"), exports);
|
|
430
444
|
__exportStar(require("./UpdateProductChildRequest"), exports);
|
|
431
445
|
__exportStar(require("./UpdateProductChildRequestAssetsInner"), exports);
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
# BlogCategoryApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**destroyBlogCategory**](BlogCategoryApi.md#destroyblogcategory) | **DELETE** /admin-api/blog-category/{blogCategory}/delete | Auto-generated: destroyBlogCategory |
|
|
8
|
+
| [**getAllBlogCategory**](BlogCategoryApi.md#getallblogcategoryoperation) | **POST** /admin-api/blog-category/all | Auto-generated: getAllBlogCategory |
|
|
9
|
+
| [**indexBlogCategory**](BlogCategoryApi.md#indexblogcategoryoperation) | **POST** /admin-api/blog-category/list | Auto-generated: indexBlogCategory |
|
|
10
|
+
| [**showBlogCategory**](BlogCategoryApi.md#showblogcategory) | **GET** /admin-api/blog-category/{blogCategory} | Auto-generated: showBlogCategory |
|
|
11
|
+
| [**storeBlogCategory**](BlogCategoryApi.md#storeblogcategoryoperation) | **POST** /admin-api/blog-category/create | Auto-generated: storeBlogCategory |
|
|
12
|
+
| [**updateBlogCategory**](BlogCategoryApi.md#updateblogcategoryoperation) | **PUT** /admin-api/blog-category/{blogCategory}/update | Auto-generated: updateBlogCategory |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## destroyBlogCategory
|
|
17
|
+
|
|
18
|
+
> GenericResponse destroyBlogCategory(blogCategory)
|
|
19
|
+
|
|
20
|
+
Auto-generated: destroyBlogCategory
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
BlogCategoryApi,
|
|
28
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
29
|
+
import type { DestroyBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
30
|
+
|
|
31
|
+
async function example() {
|
|
32
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
33
|
+
const api = new BlogCategoryApi();
|
|
34
|
+
|
|
35
|
+
const body = {
|
|
36
|
+
// number | The id of the blogCategory
|
|
37
|
+
blogCategory: 56,
|
|
38
|
+
} satisfies DestroyBlogCategoryRequest;
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const data = await api.destroyBlogCategory(body);
|
|
42
|
+
console.log(data);
|
|
43
|
+
} catch (error) {
|
|
44
|
+
console.error(error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Run the test
|
|
49
|
+
example().catch(console.error);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Parameters
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
| Name | Type | Description | Notes |
|
|
56
|
+
|------------- | ------------- | ------------- | -------------|
|
|
57
|
+
| **blogCategory** | `number` | The id of the blogCategory | [Defaults to `undefined`] |
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
[**GenericResponse**](GenericResponse.md)
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
No authorization required
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: Not defined
|
|
70
|
+
- **Accept**: `application/json`
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### HTTP response details
|
|
74
|
+
| Status code | Description | Response headers |
|
|
75
|
+
|-------------|-------------|------------------|
|
|
76
|
+
| **200** | \\JsonResponse | - |
|
|
77
|
+
|
|
78
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## getAllBlogCategory
|
|
82
|
+
|
|
83
|
+
> BlogCategoryLiteResourceArrayResponse getAllBlogCategory(getAllBlogCategoryRequest)
|
|
84
|
+
|
|
85
|
+
Auto-generated: getAllBlogCategory
|
|
86
|
+
|
|
87
|
+
### Example
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
import {
|
|
91
|
+
Configuration,
|
|
92
|
+
BlogCategoryApi,
|
|
93
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
+
import type { GetAllBlogCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
95
|
+
|
|
96
|
+
async function example() {
|
|
97
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
98
|
+
const api = new BlogCategoryApi();
|
|
99
|
+
|
|
100
|
+
const body = {
|
|
101
|
+
// GetAllBlogCategoryRequest (optional)
|
|
102
|
+
getAllBlogCategoryRequest: ...,
|
|
103
|
+
} satisfies GetAllBlogCategoryOperationRequest;
|
|
104
|
+
|
|
105
|
+
try {
|
|
106
|
+
const data = await api.getAllBlogCategory(body);
|
|
107
|
+
console.log(data);
|
|
108
|
+
} catch (error) {
|
|
109
|
+
console.error(error);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Run the test
|
|
114
|
+
example().catch(console.error);
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Parameters
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
| Name | Type | Description | Notes |
|
|
121
|
+
|------------- | ------------- | ------------- | -------------|
|
|
122
|
+
| **getAllBlogCategoryRequest** | [GetAllBlogCategoryRequest](GetAllBlogCategoryRequest.md) | | [Optional] |
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
[**BlogCategoryLiteResourceArrayResponse**](BlogCategoryLiteResourceArrayResponse.md)
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
No authorization required
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: `application/json`
|
|
135
|
+
- **Accept**: `application/json`
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
| **200** | Successful resource response | - |
|
|
142
|
+
|
|
143
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## indexBlogCategory
|
|
147
|
+
|
|
148
|
+
> PaginatedBlogCategoryListResourceResponse indexBlogCategory(indexBlogCategoryRequest)
|
|
149
|
+
|
|
150
|
+
Auto-generated: indexBlogCategory
|
|
151
|
+
|
|
152
|
+
### Example
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import {
|
|
156
|
+
Configuration,
|
|
157
|
+
BlogCategoryApi,
|
|
158
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
+
import type { IndexBlogCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
160
|
+
|
|
161
|
+
async function example() {
|
|
162
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
163
|
+
const api = new BlogCategoryApi();
|
|
164
|
+
|
|
165
|
+
const body = {
|
|
166
|
+
// IndexBlogCategoryRequest (optional)
|
|
167
|
+
indexBlogCategoryRequest: ...,
|
|
168
|
+
} satisfies IndexBlogCategoryOperationRequest;
|
|
169
|
+
|
|
170
|
+
try {
|
|
171
|
+
const data = await api.indexBlogCategory(body);
|
|
172
|
+
console.log(data);
|
|
173
|
+
} catch (error) {
|
|
174
|
+
console.error(error);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Run the test
|
|
179
|
+
example().catch(console.error);
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Parameters
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
| Name | Type | Description | Notes |
|
|
186
|
+
|------------- | ------------- | ------------- | -------------|
|
|
187
|
+
| **indexBlogCategoryRequest** | [IndexBlogCategoryRequest](IndexBlogCategoryRequest.md) | | [Optional] |
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
[**PaginatedBlogCategoryListResourceResponse**](PaginatedBlogCategoryListResourceResponse.md)
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
No authorization required
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: `application/json`
|
|
200
|
+
- **Accept**: `application/json`
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### HTTP response details
|
|
204
|
+
| Status code | Description | Response headers |
|
|
205
|
+
|-------------|-------------|------------------|
|
|
206
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\BlogCategoryListResource[]>> | - |
|
|
207
|
+
|
|
208
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## showBlogCategory
|
|
212
|
+
|
|
213
|
+
> BlogCategoryResource showBlogCategory(blogCategory)
|
|
214
|
+
|
|
215
|
+
Auto-generated: showBlogCategory
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
|
|
219
|
+
```ts
|
|
220
|
+
import {
|
|
221
|
+
Configuration,
|
|
222
|
+
BlogCategoryApi,
|
|
223
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
224
|
+
import type { ShowBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
225
|
+
|
|
226
|
+
async function example() {
|
|
227
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
228
|
+
const api = new BlogCategoryApi();
|
|
229
|
+
|
|
230
|
+
const body = {
|
|
231
|
+
// number | The id of the blogCategory
|
|
232
|
+
blogCategory: 56,
|
|
233
|
+
} satisfies ShowBlogCategoryRequest;
|
|
234
|
+
|
|
235
|
+
try {
|
|
236
|
+
const data = await api.showBlogCategory(body);
|
|
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
|
+
|
|
250
|
+
| Name | Type | Description | Notes |
|
|
251
|
+
|------------- | ------------- | ------------- | -------------|
|
|
252
|
+
| **blogCategory** | `number` | The id of the blogCategory | [Defaults to `undefined`] |
|
|
253
|
+
|
|
254
|
+
### Return type
|
|
255
|
+
|
|
256
|
+
[**BlogCategoryResource**](BlogCategoryResource.md)
|
|
257
|
+
|
|
258
|
+
### Authorization
|
|
259
|
+
|
|
260
|
+
No authorization required
|
|
261
|
+
|
|
262
|
+
### HTTP request headers
|
|
263
|
+
|
|
264
|
+
- **Content-Type**: Not defined
|
|
265
|
+
- **Accept**: `application/json`
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### HTTP response details
|
|
269
|
+
| Status code | Description | Response headers |
|
|
270
|
+
|-------------|-------------|------------------|
|
|
271
|
+
| **200** | Successful resource response | - |
|
|
272
|
+
|
|
273
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
## storeBlogCategory
|
|
277
|
+
|
|
278
|
+
> BlogCategoryResource storeBlogCategory(storeBlogCategoryRequest)
|
|
279
|
+
|
|
280
|
+
Auto-generated: storeBlogCategory
|
|
281
|
+
|
|
282
|
+
### Example
|
|
283
|
+
|
|
284
|
+
```ts
|
|
285
|
+
import {
|
|
286
|
+
Configuration,
|
|
287
|
+
BlogCategoryApi,
|
|
288
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
289
|
+
import type { StoreBlogCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
290
|
+
|
|
291
|
+
async function example() {
|
|
292
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
293
|
+
const api = new BlogCategoryApi();
|
|
294
|
+
|
|
295
|
+
const body = {
|
|
296
|
+
// StoreBlogCategoryRequest (optional)
|
|
297
|
+
storeBlogCategoryRequest: ...,
|
|
298
|
+
} satisfies StoreBlogCategoryOperationRequest;
|
|
299
|
+
|
|
300
|
+
try {
|
|
301
|
+
const data = await api.storeBlogCategory(body);
|
|
302
|
+
console.log(data);
|
|
303
|
+
} catch (error) {
|
|
304
|
+
console.error(error);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
// Run the test
|
|
309
|
+
example().catch(console.error);
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Parameters
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
| Name | Type | Description | Notes |
|
|
316
|
+
|------------- | ------------- | ------------- | -------------|
|
|
317
|
+
| **storeBlogCategoryRequest** | [StoreBlogCategoryRequest](StoreBlogCategoryRequest.md) | | [Optional] |
|
|
318
|
+
|
|
319
|
+
### Return type
|
|
320
|
+
|
|
321
|
+
[**BlogCategoryResource**](BlogCategoryResource.md)
|
|
322
|
+
|
|
323
|
+
### Authorization
|
|
324
|
+
|
|
325
|
+
No authorization required
|
|
326
|
+
|
|
327
|
+
### HTTP request headers
|
|
328
|
+
|
|
329
|
+
- **Content-Type**: `application/json`
|
|
330
|
+
- **Accept**: `application/json`
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### HTTP response details
|
|
334
|
+
| Status code | Description | Response headers |
|
|
335
|
+
|-------------|-------------|------------------|
|
|
336
|
+
| **200** | Successful resource response | - |
|
|
337
|
+
|
|
338
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
## updateBlogCategory
|
|
342
|
+
|
|
343
|
+
> BlogCategoryResource updateBlogCategory(blogCategory, updateBlogCategoryRequest)
|
|
344
|
+
|
|
345
|
+
Auto-generated: updateBlogCategory
|
|
346
|
+
|
|
347
|
+
### Example
|
|
348
|
+
|
|
349
|
+
```ts
|
|
350
|
+
import {
|
|
351
|
+
Configuration,
|
|
352
|
+
BlogCategoryApi,
|
|
353
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
354
|
+
import type { UpdateBlogCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
355
|
+
|
|
356
|
+
async function example() {
|
|
357
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
358
|
+
const api = new BlogCategoryApi();
|
|
359
|
+
|
|
360
|
+
const body = {
|
|
361
|
+
// number | The id of the blogCategory
|
|
362
|
+
blogCategory: 56,
|
|
363
|
+
// UpdateBlogCategoryRequest (optional)
|
|
364
|
+
updateBlogCategoryRequest: ...,
|
|
365
|
+
} satisfies UpdateBlogCategoryOperationRequest;
|
|
366
|
+
|
|
367
|
+
try {
|
|
368
|
+
const data = await api.updateBlogCategory(body);
|
|
369
|
+
console.log(data);
|
|
370
|
+
} catch (error) {
|
|
371
|
+
console.error(error);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// Run the test
|
|
376
|
+
example().catch(console.error);
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Parameters
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
| Name | Type | Description | Notes |
|
|
383
|
+
|------------- | ------------- | ------------- | -------------|
|
|
384
|
+
| **blogCategory** | `number` | The id of the blogCategory | [Defaults to `undefined`] |
|
|
385
|
+
| **updateBlogCategoryRequest** | [UpdateBlogCategoryRequest](UpdateBlogCategoryRequest.md) | | [Optional] |
|
|
386
|
+
|
|
387
|
+
### Return type
|
|
388
|
+
|
|
389
|
+
[**BlogCategoryResource**](BlogCategoryResource.md)
|
|
390
|
+
|
|
391
|
+
### Authorization
|
|
392
|
+
|
|
393
|
+
No authorization required
|
|
394
|
+
|
|
395
|
+
### HTTP request headers
|
|
396
|
+
|
|
397
|
+
- **Content-Type**: `application/json`
|
|
398
|
+
- **Accept**: `application/json`
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
### HTTP response details
|
|
402
|
+
| Status code | Description | Response headers |
|
|
403
|
+
|-------------|-------------|------------------|
|
|
404
|
+
| **200** | Successful resource response | - |
|
|
405
|
+
|
|
406
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
407
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# FrontendComponentApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getAllFrontendComponent**](FrontendComponentApi.md#getallfrontendcomponentoperation) | **POST** /admin-api/frontend-component/all | Auto-generated: getAllFrontendComponent |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getAllFrontendComponent
|
|
12
|
+
|
|
13
|
+
> FrontendComponentResourceArrayResponse getAllFrontendComponent(getAllFrontendComponentRequest)
|
|
14
|
+
|
|
15
|
+
Auto-generated: getAllFrontendComponent
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
FrontendComponentApi,
|
|
23
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
+
import type { GetAllFrontendComponentOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
+
const api = new FrontendComponentApi();
|
|
29
|
+
|
|
30
|
+
const body = {
|
|
31
|
+
// GetAllFrontendComponentRequest (optional)
|
|
32
|
+
getAllFrontendComponentRequest: ...,
|
|
33
|
+
} satisfies GetAllFrontendComponentOperationRequest;
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
const data = await api.getAllFrontendComponent(body);
|
|
37
|
+
console.log(data);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error(error);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Run the test
|
|
44
|
+
example().catch(console.error);
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
| Name | Type | Description | Notes |
|
|
51
|
+
|------------- | ------------- | ------------- | -------------|
|
|
52
|
+
| **getAllFrontendComponentRequest** | [GetAllFrontendComponentRequest](GetAllFrontendComponentRequest.md) | | [Optional] |
|
|
53
|
+
|
|
54
|
+
### Return type
|
|
55
|
+
|
|
56
|
+
[**FrontendComponentResourceArrayResponse**](FrontendComponentResourceArrayResponse.md)
|
|
57
|
+
|
|
58
|
+
### Authorization
|
|
59
|
+
|
|
60
|
+
No authorization required
|
|
61
|
+
|
|
62
|
+
### HTTP request headers
|
|
63
|
+
|
|
64
|
+
- **Content-Type**: `application/json`
|
|
65
|
+
- **Accept**: `application/json`
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### HTTP response details
|
|
69
|
+
| Status code | Description | Response headers |
|
|
70
|
+
|-------------|-------------|------------------|
|
|
71
|
+
| **200** | Successful resource response | - |
|
|
72
|
+
|
|
73
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
+
|