@digital8/lighting-illusions-ts-sdk 0.0.1630 → 0.0.1632
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 +6 -32
- package/README.md +7 -23
- package/dist/apis/StoreApi.d.ts +28 -1
- package/dist/apis/StoreApi.js +113 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/ProductChildStoreStockType.d.ts +25 -0
- package/dist/models/ProductChildStoreStockType.js +51 -0
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +33 -0
- package/dist/models/SaveMapStoreStockMigrationRequest.js +52 -0
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +52 -0
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +67 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +12 -0
- package/dist/models/StoreResource.js +4 -0
- package/dist/models/StoreStoreRequest.d.ts +12 -0
- package/dist/models/StoreStoreRequest.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +12 -0
- package/dist/models/UpdateStoreRequest.js +4 -0
- package/dist/models/index.d.ts +3 -15
- package/dist/models/index.js +3 -15
- package/docs/{BlogCategoryLiteResource.md → ProductChildStoreStockType.md} +4 -8
- package/docs/{BlogCategoryResourceArrayResponse.md → SaveMapStoreStockMigrationRequest.md} +6 -6
- package/docs/{BlogCategoryListResourceArrayResponse.md → SaveMapStoreStockMigrationRequestAssociationsInner.md} +10 -6
- package/docs/StoreApi.md +124 -0
- package/docs/StoreResource.md +4 -0
- package/docs/StoreStoreRequest.md +4 -0
- package/docs/UpdateStoreRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +84 -0
- package/src/apis/index.ts +0 -1
- package/src/models/ProductChildStoreStockType.ts +53 -0
- package/src/models/SaveMapStoreStockMigrationRequest.ts +74 -0
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +95 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +16 -0
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/index.ts +3 -15
- package/dist/apis/BlogCategoriesApi.d.ts +0 -109
- package/dist/apis/BlogCategoriesApi.js +0 -433
- package/dist/models/BlogCategoryFrontendResource.d.ts +0 -44
- package/dist/models/BlogCategoryFrontendResource.js +0 -59
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryListResource.d.ts +0 -44
- package/dist/models/BlogCategoryListResource.js +0 -59
- package/dist/models/BlogCategoryListResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryListResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryLiteResource.d.ts +0 -38
- package/dist/models/BlogCategoryLiteResource.js +0 -55
- package/dist/models/BlogCategoryLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryLiteResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryResource.d.ts +0 -51
- package/dist/models/BlogCategoryResource.js +0 -64
- package/dist/models/BlogCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryResourceArrayResponse.js +0 -50
- package/dist/models/GetAllBlogCategoryRequest.d.ts +0 -78
- package/dist/models/GetAllBlogCategoryRequest.js +0 -74
- package/dist/models/IndexBlogCategoryRequest.d.ts +0 -90
- package/dist/models/IndexBlogCategoryRequest.js +0 -78
- package/dist/models/PaginatedBlogCategoryListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryListResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryResourceResponse.js +0 -57
- package/dist/models/StoreBlogCategoryRequest.d.ts +0 -45
- package/dist/models/StoreBlogCategoryRequest.js +0 -60
- package/dist/models/UpdateBlogCategoryRequest.d.ts +0 -45
- package/dist/models/UpdateBlogCategoryRequest.js +0 -60
- package/docs/BlogCategoriesApi.md +0 -407
- package/docs/BlogCategoryFrontendResource.md +0 -38
- package/docs/BlogCategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/BlogCategoryListResource.md +0 -38
- package/docs/BlogCategoryLiteResourceArrayResponse.md +0 -34
- package/docs/BlogCategoryResource.md +0 -40
- package/docs/GetAllBlogCategoryRequest.md +0 -44
- package/docs/IndexBlogCategoryRequest.md +0 -48
- package/docs/PaginatedBlogCategoryListResourceResponse.md +0 -36
- package/docs/PaginatedBlogCategoryLiteResourceResponse.md +0 -36
- package/docs/PaginatedBlogCategoryResourceResponse.md +0 -36
- package/docs/StoreBlogCategoryRequest.md +0 -38
- package/docs/UpdateBlogCategoryRequest.md +0 -38
- package/src/apis/BlogCategoriesApi.ts +0 -334
- package/src/models/BlogCategoryFrontendResource.ts +0 -84
- package/src/models/BlogCategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryListResource.ts +0 -84
- package/src/models/BlogCategoryListResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryLiteResource.ts +0 -75
- package/src/models/BlogCategoryLiteResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryResource.ts +0 -101
- package/src/models/BlogCategoryResourceArrayResponse.ts +0 -73
- package/src/models/GetAllBlogCategoryRequest.ts +0 -125
- package/src/models/IndexBlogCategoryRequest.ts +0 -141
- package/src/models/PaginatedBlogCategoryListResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryResourceResponse.ts +0 -90
- package/src/models/StoreBlogCategoryRequest.ts +0 -92
- package/src/models/UpdateBlogCategoryRequest.ts +0 -92
|
@@ -1,60 +0,0 @@
|
|
|
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.instanceOfStoreBlogCategoryRequest = instanceOfStoreBlogCategoryRequest;
|
|
17
|
-
exports.StoreBlogCategoryRequestFromJSON = StoreBlogCategoryRequestFromJSON;
|
|
18
|
-
exports.StoreBlogCategoryRequestFromJSONTyped = StoreBlogCategoryRequestFromJSONTyped;
|
|
19
|
-
exports.StoreBlogCategoryRequestToJSON = StoreBlogCategoryRequestToJSON;
|
|
20
|
-
exports.StoreBlogCategoryRequestToJSONTyped = StoreBlogCategoryRequestToJSONTyped;
|
|
21
|
-
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the StoreBlogCategoryRequest interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfStoreBlogCategoryRequest(value) {
|
|
26
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function StoreBlogCategoryRequestFromJSON(json) {
|
|
35
|
-
return StoreBlogCategoryRequestFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function StoreBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'name': json['name'],
|
|
43
|
-
'slug': json['slug'],
|
|
44
|
-
'descriptions': (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function StoreBlogCategoryRequestToJSON(json) {
|
|
48
|
-
return StoreBlogCategoryRequestToJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function StoreBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'name': value['name'],
|
|
57
|
-
'slug': value['slug'],
|
|
58
|
-
'descriptions': (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateBlogCategoryRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface UpdateBlogCategoryRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateBlogCategoryRequest
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UpdateBlogCategoryRequest
|
|
29
|
-
*/
|
|
30
|
-
slug: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
34
|
-
* @memberof UpdateBlogCategoryRequest
|
|
35
|
-
*/
|
|
36
|
-
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the UpdateBlogCategoryRequest interface.
|
|
40
|
-
*/
|
|
41
|
-
export declare function instanceOfUpdateBlogCategoryRequest(value: object): value is UpdateBlogCategoryRequest;
|
|
42
|
-
export declare function UpdateBlogCategoryRequestFromJSON(json: any): UpdateBlogCategoryRequest;
|
|
43
|
-
export declare function UpdateBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBlogCategoryRequest;
|
|
44
|
-
export declare function UpdateBlogCategoryRequestToJSON(json: any): UpdateBlogCategoryRequest;
|
|
45
|
-
export declare function UpdateBlogCategoryRequestToJSONTyped(value?: UpdateBlogCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,60 +0,0 @@
|
|
|
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.instanceOfUpdateBlogCategoryRequest = instanceOfUpdateBlogCategoryRequest;
|
|
17
|
-
exports.UpdateBlogCategoryRequestFromJSON = UpdateBlogCategoryRequestFromJSON;
|
|
18
|
-
exports.UpdateBlogCategoryRequestFromJSONTyped = UpdateBlogCategoryRequestFromJSONTyped;
|
|
19
|
-
exports.UpdateBlogCategoryRequestToJSON = UpdateBlogCategoryRequestToJSON;
|
|
20
|
-
exports.UpdateBlogCategoryRequestToJSONTyped = UpdateBlogCategoryRequestToJSONTyped;
|
|
21
|
-
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the UpdateBlogCategoryRequest interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfUpdateBlogCategoryRequest(value) {
|
|
26
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function UpdateBlogCategoryRequestFromJSON(json) {
|
|
35
|
-
return UpdateBlogCategoryRequestFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function UpdateBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'name': json['name'],
|
|
43
|
-
'slug': json['slug'],
|
|
44
|
-
'descriptions': (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function UpdateBlogCategoryRequestToJSON(json) {
|
|
48
|
-
return UpdateBlogCategoryRequestToJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function UpdateBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'name': value['name'],
|
|
57
|
-
'slug': value['slug'],
|
|
58
|
-
'descriptions': (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
# BlogCategoriesApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**destroyBlogCategory**](BlogCategoriesApi.md#destroyblogcategory) | **DELETE** /admin-api/blog-categories/{blogCategory}/delete | Auto-generated: destroyBlogCategory |
|
|
8
|
-
| [**getAllBlogCategory**](BlogCategoriesApi.md#getallblogcategoryoperation) | **POST** /admin-api/blog-categories/all | Auto-generated: getAllBlogCategory |
|
|
9
|
-
| [**indexBlogCategory**](BlogCategoriesApi.md#indexblogcategoryoperation) | **POST** /admin-api/blog-categories/list | Auto-generated: indexBlogCategory |
|
|
10
|
-
| [**showBlogCategory**](BlogCategoriesApi.md#showblogcategory) | **GET** /admin-api/blog-categories/{blogCategory} | Auto-generated: showBlogCategory |
|
|
11
|
-
| [**storeBlogCategory**](BlogCategoriesApi.md#storeblogcategoryoperation) | **POST** /admin-api/blog-categories/create | Auto-generated: storeBlogCategory |
|
|
12
|
-
| [**updateBlogCategory**](BlogCategoriesApi.md#updateblogcategoryoperation) | **PUT** /admin-api/blog-categories/{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
|
-
BlogCategoriesApi,
|
|
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 BlogCategoriesApi();
|
|
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
|
-
BlogCategoriesApi,
|
|
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 BlogCategoriesApi();
|
|
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
|
-
BlogCategoriesApi,
|
|
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 BlogCategoriesApi();
|
|
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
|
-
BlogCategoriesApi,
|
|
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 BlogCategoriesApi();
|
|
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
|
-
BlogCategoriesApi,
|
|
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 BlogCategoriesApi();
|
|
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
|
-
BlogCategoriesApi,
|
|
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 BlogCategoriesApi();
|
|
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
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# BlogCategoryFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { BlogCategoryFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"id": null,
|
|
21
|
-
"name": null,
|
|
22
|
-
"slug": null,
|
|
23
|
-
} satisfies BlogCategoryFrontendResource
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as BlogCategoryFrontendResource
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# BlogCategoryFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<BlogCategoryFrontendResource>](BlogCategoryFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { BlogCategoryFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies BlogCategoryFrontendResourceArrayResponse
|
|
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 BlogCategoryFrontendResourceArrayResponse
|
|
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
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# BlogCategoryListResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { BlogCategoryListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"id": null,
|
|
21
|
-
"name": null,
|
|
22
|
-
"slug": null,
|
|
23
|
-
} satisfies BlogCategoryListResource
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as BlogCategoryListResource
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|