@digital8/lighting-illusions-ts-sdk 0.0.640 → 0.0.642
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 +2 -50
- package/README.md +3 -32
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/ProductSearchResultResource.d.ts +6 -12
- package/dist/models/ProductSearchResultResource.js +4 -8
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
- package/dist/models/SupplierFrontendResource.d.ts +8 -7
- package/dist/models/SupplierFrontendResource.js +9 -8
- package/dist/models/index.d.ts +1 -24
- package/dist/models/index.js +1 -24
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/ProductSearchResultResource.md +2 -4
- package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
- package/docs/StoreProductCategoryRequest.md +1 -1
- package/docs/SupplierFrontendResource.md +4 -4
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/ProductSearchResultResource.ts +9 -18
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/StoreProductCategoryRequest.ts +2 -2
- package/src/models/SupplierFrontendResource.ts +27 -20
- package/src/models/index.ts +1 -24
- package/dist/apis/DefinitionApi.d.ts +0 -85
- package/dist/apis/DefinitionApi.js +0 -355
- package/dist/models/AssetFrontendResource.d.ts +0 -74
- package/dist/models/AssetFrontendResource.js +0 -79
- package/dist/models/AssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/CategoryFrontendResource.d.ts +0 -70
- package/dist/models/CategoryFrontendResource.js +0 -73
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
- package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
- package/dist/models/DefinitionListResource.d.ts +0 -38
- package/dist/models/DefinitionListResource.js +0 -55
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/DefinitionListResourceArrayResponse.js +0 -50
- package/dist/models/DefinitionResource.d.ts +0 -44
- package/dist/models/DefinitionResource.js +0 -59
- package/dist/models/DefinitionResourceArrayResponse.d.ts +0 -33
- package/dist/models/DefinitionResourceArrayResponse.js +0 -50
- package/dist/models/DocumentFrontendResource.d.ts +0 -44
- package/dist/models/DocumentFrontendResource.js +0 -57
- package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/DocumentFrontendResourceArrayResponse.js +0 -50
- package/dist/models/GetAllDefinitionRequest.d.ts +0 -80
- package/dist/models/GetAllDefinitionRequest.js +0 -76
- package/dist/models/IndexDefinitionRequest.d.ts +0 -92
- package/dist/models/IndexDefinitionRequest.js +0 -80
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +0 -63
- package/dist/models/OverlayTemplateAssetFrontendResource.js +0 -72
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedDefinitionListResourceResponse.js +0 -57
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedDefinitionResourceResponse.js +0 -57
- package/dist/models/ProductAvailability.d.ts +0 -26
- package/dist/models/ProductAvailability.js +0 -52
- package/dist/models/ProductCompareResource.d.ts +0 -141
- package/dist/models/ProductCompareResource.js +0 -124
- package/dist/models/ProductCompareResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductCompareResourceArrayResponse.js +0 -50
- package/dist/models/StoreDefinitionRequest.d.ts +0 -38
- package/dist/models/StoreDefinitionRequest.js +0 -55
- package/dist/models/UpdateDefinitionRequest.d.ts +0 -38
- package/dist/models/UpdateDefinitionRequest.js +0 -55
- package/docs/AssetFrontendResource.md +0 -48
- package/docs/AssetFrontendResourceArrayResponse.md +0 -34
- package/docs/CategoryFrontendResource.md +0 -46
- package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/CategoryWithChildrenFrontendResource.md +0 -36
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
- package/docs/DefinitionApi.md +0 -407
- package/docs/DefinitionListResource.md +0 -36
- package/docs/DefinitionListResourceArrayResponse.md +0 -34
- package/docs/DefinitionResource.md +0 -38
- package/docs/DefinitionResourceArrayResponse.md +0 -34
- package/docs/DocumentFrontendResource.md +0 -38
- package/docs/DocumentFrontendResourceArrayResponse.md +0 -34
- package/docs/GetAllDefinitionRequest.md +0 -44
- package/docs/IndexDefinitionRequest.md +0 -48
- package/docs/OverlayTemplateAssetFrontendResource.md +0 -44
- package/docs/OverlayTemplateAssetFrontendResourceArrayResponse.md +0 -34
- package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
- package/docs/PaginatedDefinitionListResourceResponse.md +0 -36
- package/docs/PaginatedDefinitionResourceResponse.md +0 -36
- package/docs/ProductCompareResource.md +0 -70
- package/docs/ProductCompareResourceArrayResponse.md +0 -34
- package/docs/StoreDefinitionRequest.md +0 -36
- package/docs/UpdateDefinitionRequest.md +0 -36
- package/src/apis/DefinitionApi.ts +0 -286
- package/src/models/AssetFrontendResource.ts +0 -129
- package/src/models/AssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/CategoryFrontendResource.ts +0 -133
- package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
- package/src/models/DefinitionListResource.ts +0 -75
- package/src/models/DefinitionListResourceArrayResponse.ts +0 -73
- package/src/models/DefinitionResource.ts +0 -84
- package/src/models/DefinitionResourceArrayResponse.ts +0 -73
- package/src/models/DocumentFrontendResource.ts +0 -83
- package/src/models/DocumentFrontendResourceArrayResponse.ts +0 -73
- package/src/models/GetAllDefinitionRequest.ts +0 -127
- package/src/models/IndexDefinitionRequest.ts +0 -143
- package/src/models/OverlayTemplateAssetFrontendResource.ts +0 -119
- package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
- package/src/models/PaginatedDefinitionListResourceResponse.ts +0 -90
- package/src/models/PaginatedDefinitionResourceResponse.ts +0 -90
- package/src/models/ProductAvailability.ts +0 -54
- package/src/models/ProductCompareResource.ts +0 -236
- package/src/models/ProductCompareResourceArrayResponse.ts +0 -73
- package/src/models/StoreDefinitionRequest.ts +0 -75
- package/src/models/UpdateDefinitionRequest.ts +0 -75
|
@@ -1,55 +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.instanceOfUpdateDefinitionRequest = instanceOfUpdateDefinitionRequest;
|
|
17
|
-
exports.UpdateDefinitionRequestFromJSON = UpdateDefinitionRequestFromJSON;
|
|
18
|
-
exports.UpdateDefinitionRequestFromJSONTyped = UpdateDefinitionRequestFromJSONTyped;
|
|
19
|
-
exports.UpdateDefinitionRequestToJSON = UpdateDefinitionRequestToJSON;
|
|
20
|
-
exports.UpdateDefinitionRequestToJSONTyped = UpdateDefinitionRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the UpdateDefinitionRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfUpdateDefinitionRequest(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('content' in value) || value['content'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function UpdateDefinitionRequestFromJSON(json) {
|
|
32
|
-
return UpdateDefinitionRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function UpdateDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'name': json['name'],
|
|
40
|
-
'content': json['content'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function UpdateDefinitionRequestToJSON(json) {
|
|
44
|
-
return UpdateDefinitionRequestToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function UpdateDefinitionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'name': value['name'],
|
|
53
|
-
'content': value['content'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`filePath` | string
|
|
11
|
-
`fileName` | string
|
|
12
|
-
`altText` | string
|
|
13
|
-
`index` | number
|
|
14
|
-
`isThumbnail` | boolean
|
|
15
|
-
`isLifestyle` | boolean
|
|
16
|
-
`overlays` | object
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { AssetFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"id": null,
|
|
26
|
-
"filePath": null,
|
|
27
|
-
"fileName": null,
|
|
28
|
-
"altText": null,
|
|
29
|
-
"index": null,
|
|
30
|
-
"isThumbnail": null,
|
|
31
|
-
"isLifestyle": null,
|
|
32
|
-
"overlays": null,
|
|
33
|
-
} satisfies AssetFrontendResource
|
|
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 AssetFrontendResource
|
|
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
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AssetFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<AssetFrontendResource>](AssetFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AssetFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies AssetFrontendResourceArrayResponse
|
|
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 AssetFrontendResourceArrayResponse
|
|
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,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CategoryFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
`parentId` | string
|
|
13
|
-
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
14
|
-
`seo` | object
|
|
15
|
-
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { CategoryFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"id": null,
|
|
25
|
-
"name": null,
|
|
26
|
-
"slug": null,
|
|
27
|
-
"parentId": null,
|
|
28
|
-
"thumbnail": null,
|
|
29
|
-
"seo": null,
|
|
30
|
-
"descriptions": null,
|
|
31
|
-
} satisfies CategoryFrontendResource
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as CategoryFrontendResource
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CategoryFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<CategoryFrontendResource>](CategoryFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { CategoryFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies CategoryFrontendResourceArrayResponse
|
|
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 CategoryFrontendResourceArrayResponse
|
|
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,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CategoryWithChildrenFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`category` | [CategoryFrontendResource](CategoryFrontendResource.md)
|
|
10
|
-
`children` | [Array<CategoryFrontendResource>](CategoryFrontendResource.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { CategoryWithChildrenFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"category": null,
|
|
20
|
-
"children": null,
|
|
21
|
-
} satisfies CategoryWithChildrenFrontendResource
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as CategoryWithChildrenFrontendResource
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CategoryWithChildrenFrontendResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<CategoryWithChildrenFrontendResource>](CategoryWithChildrenFrontendResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { CategoryWithChildrenFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies CategoryWithChildrenFrontendResourceArrayResponse
|
|
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 CategoryWithChildrenFrontendResourceArrayResponse
|
|
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
|
-
|
package/docs/DefinitionApi.md
DELETED
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
# DefinitionApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**destroyDefinition**](DefinitionApi.md#destroydefinition) | **DELETE** /admin-api/definition/{definition}/delete | Auto-generated: destroyDefinition |
|
|
8
|
-
| [**getAllDefinition**](DefinitionApi.md#getalldefinitionoperation) | **POST** /admin-api/definition/all | Auto-generated: getAllDefinition |
|
|
9
|
-
| [**indexDefinition**](DefinitionApi.md#indexdefinitionoperation) | **POST** /admin-api/definition/list | Auto-generated: indexDefinition |
|
|
10
|
-
| [**showDefinition**](DefinitionApi.md#showdefinition) | **GET** /admin-api/definition/{definition} | Auto-generated: showDefinition |
|
|
11
|
-
| [**storeDefinition**](DefinitionApi.md#storedefinitionoperation) | **POST** /admin-api/definition/create | Auto-generated: storeDefinition |
|
|
12
|
-
| [**updateDefinition**](DefinitionApi.md#updatedefinitionoperation) | **PUT** /admin-api/definition/{definition}/update | Auto-generated: updateDefinition |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## destroyDefinition
|
|
17
|
-
|
|
18
|
-
> GenericResponse destroyDefinition(definition)
|
|
19
|
-
|
|
20
|
-
Auto-generated: destroyDefinition
|
|
21
|
-
|
|
22
|
-
### Example
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
import {
|
|
26
|
-
Configuration,
|
|
27
|
-
DefinitionApi,
|
|
28
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
29
|
-
import type { DestroyDefinitionRequest } 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 DefinitionApi();
|
|
34
|
-
|
|
35
|
-
const body = {
|
|
36
|
-
// number | The id of the definition
|
|
37
|
-
definition: 56,
|
|
38
|
-
} satisfies DestroyDefinitionRequest;
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
const data = await api.destroyDefinition(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
|
-
| **definition** | `number` | The id of the definition | [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
|
-
## getAllDefinition
|
|
82
|
-
|
|
83
|
-
> DefinitionListResourceArrayResponse getAllDefinition(getAllDefinitionRequest)
|
|
84
|
-
|
|
85
|
-
Auto-generated: getAllDefinition
|
|
86
|
-
|
|
87
|
-
### Example
|
|
88
|
-
|
|
89
|
-
```ts
|
|
90
|
-
import {
|
|
91
|
-
Configuration,
|
|
92
|
-
DefinitionApi,
|
|
93
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
-
import type { GetAllDefinitionOperationRequest } 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 DefinitionApi();
|
|
99
|
-
|
|
100
|
-
const body = {
|
|
101
|
-
// GetAllDefinitionRequest (optional)
|
|
102
|
-
getAllDefinitionRequest: ...,
|
|
103
|
-
} satisfies GetAllDefinitionOperationRequest;
|
|
104
|
-
|
|
105
|
-
try {
|
|
106
|
-
const data = await api.getAllDefinition(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
|
-
| **getAllDefinitionRequest** | [GetAllDefinitionRequest](GetAllDefinitionRequest.md) | | [Optional] |
|
|
123
|
-
|
|
124
|
-
### Return type
|
|
125
|
-
|
|
126
|
-
[**DefinitionListResourceArrayResponse**](DefinitionListResourceArrayResponse.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
|
-
## indexDefinition
|
|
147
|
-
|
|
148
|
-
> PaginatedDefinitionListResourceResponse indexDefinition(indexDefinitionRequest)
|
|
149
|
-
|
|
150
|
-
Auto-generated: indexDefinition
|
|
151
|
-
|
|
152
|
-
### Example
|
|
153
|
-
|
|
154
|
-
```ts
|
|
155
|
-
import {
|
|
156
|
-
Configuration,
|
|
157
|
-
DefinitionApi,
|
|
158
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
-
import type { IndexDefinitionOperationRequest } 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 DefinitionApi();
|
|
164
|
-
|
|
165
|
-
const body = {
|
|
166
|
-
// IndexDefinitionRequest (optional)
|
|
167
|
-
indexDefinitionRequest: ...,
|
|
168
|
-
} satisfies IndexDefinitionOperationRequest;
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
const data = await api.indexDefinition(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
|
-
| **indexDefinitionRequest** | [IndexDefinitionRequest](IndexDefinitionRequest.md) | | [Optional] |
|
|
188
|
-
|
|
189
|
-
### Return type
|
|
190
|
-
|
|
191
|
-
[**PaginatedDefinitionListResourceResponse**](PaginatedDefinitionListResourceResponse.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<\\DefinitionListResource[]>> | - |
|
|
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
|
-
## showDefinition
|
|
212
|
-
|
|
213
|
-
> DefinitionResource showDefinition(definition)
|
|
214
|
-
|
|
215
|
-
Auto-generated: showDefinition
|
|
216
|
-
|
|
217
|
-
### Example
|
|
218
|
-
|
|
219
|
-
```ts
|
|
220
|
-
import {
|
|
221
|
-
Configuration,
|
|
222
|
-
DefinitionApi,
|
|
223
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
224
|
-
import type { ShowDefinitionRequest } 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 DefinitionApi();
|
|
229
|
-
|
|
230
|
-
const body = {
|
|
231
|
-
// number | The id of the definition
|
|
232
|
-
definition: 56,
|
|
233
|
-
} satisfies ShowDefinitionRequest;
|
|
234
|
-
|
|
235
|
-
try {
|
|
236
|
-
const data = await api.showDefinition(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
|
-
| **definition** | `number` | The id of the definition | [Defaults to `undefined`] |
|
|
253
|
-
|
|
254
|
-
### Return type
|
|
255
|
-
|
|
256
|
-
[**DefinitionResource**](DefinitionResource.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
|
-
## storeDefinition
|
|
277
|
-
|
|
278
|
-
> DefinitionResource storeDefinition(storeDefinitionRequest)
|
|
279
|
-
|
|
280
|
-
Auto-generated: storeDefinition
|
|
281
|
-
|
|
282
|
-
### Example
|
|
283
|
-
|
|
284
|
-
```ts
|
|
285
|
-
import {
|
|
286
|
-
Configuration,
|
|
287
|
-
DefinitionApi,
|
|
288
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
289
|
-
import type { StoreDefinitionOperationRequest } 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 DefinitionApi();
|
|
294
|
-
|
|
295
|
-
const body = {
|
|
296
|
-
// StoreDefinitionRequest (optional)
|
|
297
|
-
storeDefinitionRequest: ...,
|
|
298
|
-
} satisfies StoreDefinitionOperationRequest;
|
|
299
|
-
|
|
300
|
-
try {
|
|
301
|
-
const data = await api.storeDefinition(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
|
-
| **storeDefinitionRequest** | [StoreDefinitionRequest](StoreDefinitionRequest.md) | | [Optional] |
|
|
318
|
-
|
|
319
|
-
### Return type
|
|
320
|
-
|
|
321
|
-
[**DefinitionResource**](DefinitionResource.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
|
-
## updateDefinition
|
|
342
|
-
|
|
343
|
-
> DefinitionResource updateDefinition(definition, updateDefinitionRequest)
|
|
344
|
-
|
|
345
|
-
Auto-generated: updateDefinition
|
|
346
|
-
|
|
347
|
-
### Example
|
|
348
|
-
|
|
349
|
-
```ts
|
|
350
|
-
import {
|
|
351
|
-
Configuration,
|
|
352
|
-
DefinitionApi,
|
|
353
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
354
|
-
import type { UpdateDefinitionOperationRequest } 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 DefinitionApi();
|
|
359
|
-
|
|
360
|
-
const body = {
|
|
361
|
-
// number | The id of the definition
|
|
362
|
-
definition: 56,
|
|
363
|
-
// UpdateDefinitionRequest (optional)
|
|
364
|
-
updateDefinitionRequest: ...,
|
|
365
|
-
} satisfies UpdateDefinitionOperationRequest;
|
|
366
|
-
|
|
367
|
-
try {
|
|
368
|
-
const data = await api.updateDefinition(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
|
-
| **definition** | `number` | The id of the definition | [Defaults to `undefined`] |
|
|
385
|
-
| **updateDefinitionRequest** | [UpdateDefinitionRequest](UpdateDefinitionRequest.md) | | [Optional] |
|
|
386
|
-
|
|
387
|
-
### Return type
|
|
388
|
-
|
|
389
|
-
[**DefinitionResource**](DefinitionResource.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
|
-
|