@digital8/lighting-illusions-ts-sdk 0.0.1671 → 0.0.1673
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.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 +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- 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 +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- 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/StoreSpecialDateResource.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/AddressResource.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 +5 -5
- package/src/models/StoreListResource.ts +2 -3
- 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 +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- 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,44 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllBlogCategoryRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetAllBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"search": null,
|
|
24
|
+
"sortBy": null,
|
|
25
|
+
"sortDirection": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"relatedType": null,
|
|
28
|
+
"includesRelations": null,
|
|
29
|
+
} satisfies GetAllBlogCategoryRequest
|
|
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 GetAllBlogCategoryRequest
|
|
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,44 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllFrontendComponentRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetAllFrontendComponentRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"search": null,
|
|
24
|
+
"sortBy": null,
|
|
25
|
+
"sortDirection": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"relatedType": null,
|
|
28
|
+
"includesRelations": null,
|
|
29
|
+
} satisfies GetAllFrontendComponentRequest
|
|
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 GetAllFrontendComponentRequest
|
|
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,48 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllPageComponentRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
`pageId` | Array<string>
|
|
16
|
+
`type` | Array<string>
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetAllPageComponentRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"search": null,
|
|
26
|
+
"sortBy": null,
|
|
27
|
+
"sortDirection": null,
|
|
28
|
+
"relatedId": null,
|
|
29
|
+
"relatedType": null,
|
|
30
|
+
"includesRelations": null,
|
|
31
|
+
"pageId": null,
|
|
32
|
+
"type": null,
|
|
33
|
+
} satisfies GetAllPageComponentRequest
|
|
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 GetAllPageComponentRequest
|
|
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,48 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllPageRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
`siteId` | Array<string>
|
|
16
|
+
`type` | Array<string>
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetAllPageRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"search": null,
|
|
26
|
+
"sortBy": null,
|
|
27
|
+
"sortDirection": null,
|
|
28
|
+
"relatedId": null,
|
|
29
|
+
"relatedType": null,
|
|
30
|
+
"includesRelations": null,
|
|
31
|
+
"siteId": null,
|
|
32
|
+
"type": null,
|
|
33
|
+
} satisfies GetAllPageRequest
|
|
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 GetAllPageRequest
|
|
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,48 @@
|
|
|
1
|
+
|
|
2
|
+
# IndexBlogCategoryRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`relatedId` | number
|
|
15
|
+
`relatedType` | string
|
|
16
|
+
`includesRelations` | boolean
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { IndexBlogCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"search": null,
|
|
26
|
+
"sortBy": null,
|
|
27
|
+
"sortDirection": null,
|
|
28
|
+
"perPage": null,
|
|
29
|
+
"page": null,
|
|
30
|
+
"relatedId": null,
|
|
31
|
+
"relatedType": null,
|
|
32
|
+
"includesRelations": null,
|
|
33
|
+
} satisfies IndexBlogCategoryRequest
|
|
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 IndexBlogCategoryRequest
|
|
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,52 @@
|
|
|
1
|
+
|
|
2
|
+
# IndexPageRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`type` | Array<string>
|
|
16
|
+
`relatedId` | number
|
|
17
|
+
`relatedType` | string
|
|
18
|
+
`includesRelations` | boolean
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { IndexPageRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"search": null,
|
|
28
|
+
"sortBy": null,
|
|
29
|
+
"sortDirection": null,
|
|
30
|
+
"perPage": null,
|
|
31
|
+
"page": null,
|
|
32
|
+
"siteId": null,
|
|
33
|
+
"type": null,
|
|
34
|
+
"relatedId": null,
|
|
35
|
+
"relatedType": null,
|
|
36
|
+
"includesRelations": null,
|
|
37
|
+
} satisfies IndexPageRequest
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexPageRequest
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
package/docs/PageApi.md
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
# PageApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**destroyPage**](PageApi.md#destroypage) | **DELETE** /admin-api/page/{page}/delete | Auto-generated: destroyPage |
|
|
8
|
+
| [**getAllPage**](PageApi.md#getallpageoperation) | **POST** /admin-api/page/all | Auto-generated: getAllPage |
|
|
9
|
+
| [**indexPage**](PageApi.md#indexpageoperation) | **POST** /admin-api/page/list | Auto-generated: indexPage |
|
|
10
|
+
| [**showPage**](PageApi.md#showpage) | **GET** /admin-api/page/{page} | Auto-generated: showPage |
|
|
11
|
+
| [**storePage**](PageApi.md#storepageoperation) | **POST** /admin-api/page/create | Auto-generated: storePage |
|
|
12
|
+
| [**updatePage**](PageApi.md#updatepageoperation) | **PUT** /admin-api/page/{page}/update | Auto-generated: updatePage |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## destroyPage
|
|
17
|
+
|
|
18
|
+
> GenericResponse destroyPage(page)
|
|
19
|
+
|
|
20
|
+
Auto-generated: destroyPage
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
PageApi,
|
|
28
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
29
|
+
import type { DestroyPageRequest } 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 PageApi();
|
|
34
|
+
|
|
35
|
+
const body = {
|
|
36
|
+
// number | The id of the page
|
|
37
|
+
page: 56,
|
|
38
|
+
} satisfies DestroyPageRequest;
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const data = await api.destroyPage(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
|
+
| **page** | `number` | The id of the page | [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
|
+
## getAllPage
|
|
82
|
+
|
|
83
|
+
> PageLiteResourceArrayResponse getAllPage(getAllPageRequest)
|
|
84
|
+
|
|
85
|
+
Auto-generated: getAllPage
|
|
86
|
+
|
|
87
|
+
### Example
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
import {
|
|
91
|
+
Configuration,
|
|
92
|
+
PageApi,
|
|
93
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
+
import type { GetAllPageOperationRequest } 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 PageApi();
|
|
99
|
+
|
|
100
|
+
const body = {
|
|
101
|
+
// GetAllPageRequest (optional)
|
|
102
|
+
getAllPageRequest: ...,
|
|
103
|
+
} satisfies GetAllPageOperationRequest;
|
|
104
|
+
|
|
105
|
+
try {
|
|
106
|
+
const data = await api.getAllPage(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
|
+
| **getAllPageRequest** | [GetAllPageRequest](GetAllPageRequest.md) | | [Optional] |
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
[**PageLiteResourceArrayResponse**](PageLiteResourceArrayResponse.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
|
+
## indexPage
|
|
147
|
+
|
|
148
|
+
> PaginatedPageListResourceResponse indexPage(indexPageRequest)
|
|
149
|
+
|
|
150
|
+
Auto-generated: indexPage
|
|
151
|
+
|
|
152
|
+
### Example
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import {
|
|
156
|
+
Configuration,
|
|
157
|
+
PageApi,
|
|
158
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
+
import type { IndexPageOperationRequest } 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 PageApi();
|
|
164
|
+
|
|
165
|
+
const body = {
|
|
166
|
+
// IndexPageRequest (optional)
|
|
167
|
+
indexPageRequest: ...,
|
|
168
|
+
} satisfies IndexPageOperationRequest;
|
|
169
|
+
|
|
170
|
+
try {
|
|
171
|
+
const data = await api.indexPage(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
|
+
| **indexPageRequest** | [IndexPageRequest](IndexPageRequest.md) | | [Optional] |
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
[**PaginatedPageListResourceResponse**](PaginatedPageListResourceResponse.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<\\PageListResource[]>> | - |
|
|
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
|
+
## showPage
|
|
212
|
+
|
|
213
|
+
> PageResource showPage(page)
|
|
214
|
+
|
|
215
|
+
Auto-generated: showPage
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
|
|
219
|
+
```ts
|
|
220
|
+
import {
|
|
221
|
+
Configuration,
|
|
222
|
+
PageApi,
|
|
223
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
224
|
+
import type { ShowPageRequest } 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 PageApi();
|
|
229
|
+
|
|
230
|
+
const body = {
|
|
231
|
+
// number | The id of the page
|
|
232
|
+
page: 56,
|
|
233
|
+
} satisfies ShowPageRequest;
|
|
234
|
+
|
|
235
|
+
try {
|
|
236
|
+
const data = await api.showPage(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
|
+
| **page** | `number` | The id of the page | [Defaults to `undefined`] |
|
|
253
|
+
|
|
254
|
+
### Return type
|
|
255
|
+
|
|
256
|
+
[**PageResource**](PageResource.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
|
+
## storePage
|
|
277
|
+
|
|
278
|
+
> PageResource storePage(storePageRequest)
|
|
279
|
+
|
|
280
|
+
Auto-generated: storePage
|
|
281
|
+
|
|
282
|
+
### Example
|
|
283
|
+
|
|
284
|
+
```ts
|
|
285
|
+
import {
|
|
286
|
+
Configuration,
|
|
287
|
+
PageApi,
|
|
288
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
289
|
+
import type { StorePageOperationRequest } 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 PageApi();
|
|
294
|
+
|
|
295
|
+
const body = {
|
|
296
|
+
// StorePageRequest (optional)
|
|
297
|
+
storePageRequest: ...,
|
|
298
|
+
} satisfies StorePageOperationRequest;
|
|
299
|
+
|
|
300
|
+
try {
|
|
301
|
+
const data = await api.storePage(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
|
+
| **storePageRequest** | [StorePageRequest](StorePageRequest.md) | | [Optional] |
|
|
318
|
+
|
|
319
|
+
### Return type
|
|
320
|
+
|
|
321
|
+
[**PageResource**](PageResource.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
|
+
## updatePage
|
|
342
|
+
|
|
343
|
+
> PageResource updatePage(page, updatePageRequest)
|
|
344
|
+
|
|
345
|
+
Auto-generated: updatePage
|
|
346
|
+
|
|
347
|
+
### Example
|
|
348
|
+
|
|
349
|
+
```ts
|
|
350
|
+
import {
|
|
351
|
+
Configuration,
|
|
352
|
+
PageApi,
|
|
353
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
354
|
+
import type { UpdatePageOperationRequest } 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 PageApi();
|
|
359
|
+
|
|
360
|
+
const body = {
|
|
361
|
+
// number | The id of the page
|
|
362
|
+
page: 56,
|
|
363
|
+
// UpdatePageRequest (optional)
|
|
364
|
+
updatePageRequest: ...,
|
|
365
|
+
} satisfies UpdatePageOperationRequest;
|
|
366
|
+
|
|
367
|
+
try {
|
|
368
|
+
const data = await api.updatePage(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
|
+
| **page** | `number` | The id of the page | [Defaults to `undefined`] |
|
|
385
|
+
| **updatePageRequest** | [UpdatePageRequest](UpdatePageRequest.md) | | [Optional] |
|
|
386
|
+
|
|
387
|
+
### Return type
|
|
388
|
+
|
|
389
|
+
[**PageResource**](PageResource.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
|
+
|