@digital8/lighting-illusions-ts-sdk 0.0.1455 → 0.0.1457
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 +40 -74
- package/README.md +25 -56
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +7 -9
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/LabelResource.d.ts +4 -23
- package/dist/models/LabelResource.js +8 -19
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +19 -35
- package/dist/models/index.js +19 -35
- package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
- package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
- package/docs/LabelResource.md +6 -12
- package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
- package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
- package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/SupplierApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +8 -9
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/LabelResource.ts +12 -46
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +19 -35
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/StoreApi.d.ts +0 -190
- package/dist/apis/StoreApi.js +0 -744
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/IndexLabelRequest.d.ts +0 -109
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/IndexStoreRequest.js +0 -85
- package/dist/models/LabelListResource.d.ts +0 -75
- package/dist/models/LabelListResource.js +0 -74
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -89
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -78
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -102
- package/dist/models/StoreResource.js +0 -95
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -73
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateResource.js +0 -73
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -94
- package/dist/models/StoreStoreRequest.js +0 -85
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
- package/dist/models/StoreStoreRequestAddress.js +0 -73
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateStoreRequest.d.ts +0 -94
- package/dist/models/UpdateStoreRequest.js +0 -85
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AttachStoresSupplierRequest.md +0 -34
- package/docs/AttachSuppliersStoreRequest.md +0 -34
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -48
- package/docs/StoreApi.md +0 -755
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreFrontendResourceArrayResponse.md +0 -34
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreListResourceArrayResponse.md +0 -34
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreSpecialDateFrontendResource.md +0 -46
- package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -54
- package/docs/StoreStoreRequestAddress.md +0 -46
- package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
- package/docs/StoreStoreSpecialDateRequest.md +0 -44
- package/docs/UpdateLabelRequest.md +0 -48
- package/docs/UpdateStoreRequest.md +0 -54
- package/src/apis/LabelApi.ts +0 -328
- package/src/apis/StoreApi.ts +0 -625
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexLabelRequest.ts +0 -163
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/LabelListResource.ts +0 -134
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -162
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/StoreListResource.ts +0 -143
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -192
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -119
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -119
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -167
- package/src/models/StoreStoreRequestAddress.ts +0 -119
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateStoreRequest.ts +0 -167
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
package/docs/LabelApi.md
DELETED
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
# LabelApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**destroyLabel**](LabelApi.md#destroylabel) | **DELETE** /admin-api/label/{label}/delete | Auto-generated: destroyLabel |
|
|
8
|
-
| [**getAllLabel**](LabelApi.md#getalllabel) | **POST** /admin-api/label/all | Auto-generated: getAllLabel |
|
|
9
|
-
| [**indexLabel**](LabelApi.md#indexlabeloperation) | **POST** /admin-api/label/list | Auto-generated: indexLabel |
|
|
10
|
-
| [**showLabel**](LabelApi.md#showlabel) | **GET** /admin-api/label/{label} | Auto-generated: showLabel |
|
|
11
|
-
| [**storeLabel**](LabelApi.md#storelabeloperation) | **POST** /admin-api/label/create | Auto-generated: storeLabel |
|
|
12
|
-
| [**updateLabel**](LabelApi.md#updatelabeloperation) | **PUT** /admin-api/label/{label}/update | Auto-generated: updateLabel |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## destroyLabel
|
|
17
|
-
|
|
18
|
-
> GenericResponse destroyLabel(label)
|
|
19
|
-
|
|
20
|
-
Auto-generated: destroyLabel
|
|
21
|
-
|
|
22
|
-
### Example
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
import {
|
|
26
|
-
Configuration,
|
|
27
|
-
LabelApi,
|
|
28
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
29
|
-
import type { DestroyLabelRequest } 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 LabelApi();
|
|
34
|
-
|
|
35
|
-
const body = {
|
|
36
|
-
// number | The id of the label
|
|
37
|
-
label: 56,
|
|
38
|
-
} satisfies DestroyLabelRequest;
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
const data = await api.destroyLabel(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
|
-
| **label** | `number` | The id of the label | [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** | Generic JSON success | - |
|
|
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
|
-
## getAllLabel
|
|
82
|
-
|
|
83
|
-
> GenericResponse getAllLabel(indexLabelRequest)
|
|
84
|
-
|
|
85
|
-
Auto-generated: getAllLabel
|
|
86
|
-
|
|
87
|
-
### Example
|
|
88
|
-
|
|
89
|
-
```ts
|
|
90
|
-
import {
|
|
91
|
-
Configuration,
|
|
92
|
-
LabelApi,
|
|
93
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
-
import type { GetAllLabelRequest } 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 LabelApi();
|
|
99
|
-
|
|
100
|
-
const body = {
|
|
101
|
-
// IndexLabelRequest (optional)
|
|
102
|
-
indexLabelRequest: ...,
|
|
103
|
-
} satisfies GetAllLabelRequest;
|
|
104
|
-
|
|
105
|
-
try {
|
|
106
|
-
const data = await api.getAllLabel(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
|
-
| **indexLabelRequest** | [IndexLabelRequest](IndexLabelRequest.md) | | [Optional] |
|
|
123
|
-
|
|
124
|
-
### Return type
|
|
125
|
-
|
|
126
|
-
[**GenericResponse**](GenericResponse.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** | \\JsonResponse<array{data: \\LabelLiteResource[]}> | - |
|
|
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
|
-
## indexLabel
|
|
147
|
-
|
|
148
|
-
> PaginatedLabelListResourceResponse indexLabel(indexLabelRequest)
|
|
149
|
-
|
|
150
|
-
Auto-generated: indexLabel
|
|
151
|
-
|
|
152
|
-
### Example
|
|
153
|
-
|
|
154
|
-
```ts
|
|
155
|
-
import {
|
|
156
|
-
Configuration,
|
|
157
|
-
LabelApi,
|
|
158
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
-
import type { IndexLabelOperationRequest } 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 LabelApi();
|
|
164
|
-
|
|
165
|
-
const body = {
|
|
166
|
-
// IndexLabelRequest (optional)
|
|
167
|
-
indexLabelRequest: ...,
|
|
168
|
-
} satisfies IndexLabelOperationRequest;
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
const data = await api.indexLabel(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
|
-
| **indexLabelRequest** | [IndexLabelRequest](IndexLabelRequest.md) | | [Optional] |
|
|
188
|
-
|
|
189
|
-
### Return type
|
|
190
|
-
|
|
191
|
-
[**PaginatedLabelListResourceResponse**](PaginatedLabelListResourceResponse.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<\\LabelListResource[]>> | - |
|
|
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
|
-
## showLabel
|
|
212
|
-
|
|
213
|
-
> LabelResource showLabel(label)
|
|
214
|
-
|
|
215
|
-
Auto-generated: showLabel
|
|
216
|
-
|
|
217
|
-
### Example
|
|
218
|
-
|
|
219
|
-
```ts
|
|
220
|
-
import {
|
|
221
|
-
Configuration,
|
|
222
|
-
LabelApi,
|
|
223
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
224
|
-
import type { ShowLabelRequest } 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 LabelApi();
|
|
229
|
-
|
|
230
|
-
const body = {
|
|
231
|
-
// number | The id of the label
|
|
232
|
-
label: 56,
|
|
233
|
-
} satisfies ShowLabelRequest;
|
|
234
|
-
|
|
235
|
-
try {
|
|
236
|
-
const data = await api.showLabel(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
|
-
| **label** | `number` | The id of the label | [Defaults to `undefined`] |
|
|
253
|
-
|
|
254
|
-
### Return type
|
|
255
|
-
|
|
256
|
-
[**LabelResource**](LabelResource.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
|
-
## storeLabel
|
|
277
|
-
|
|
278
|
-
> LabelResource storeLabel(storeLabelRequest)
|
|
279
|
-
|
|
280
|
-
Auto-generated: storeLabel
|
|
281
|
-
|
|
282
|
-
### Example
|
|
283
|
-
|
|
284
|
-
```ts
|
|
285
|
-
import {
|
|
286
|
-
Configuration,
|
|
287
|
-
LabelApi,
|
|
288
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
289
|
-
import type { StoreLabelOperationRequest } 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 LabelApi();
|
|
294
|
-
|
|
295
|
-
const body = {
|
|
296
|
-
// StoreLabelRequest (optional)
|
|
297
|
-
storeLabelRequest: ...,
|
|
298
|
-
} satisfies StoreLabelOperationRequest;
|
|
299
|
-
|
|
300
|
-
try {
|
|
301
|
-
const data = await api.storeLabel(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
|
-
| **storeLabelRequest** | [StoreLabelRequest](StoreLabelRequest.md) | | [Optional] |
|
|
318
|
-
|
|
319
|
-
### Return type
|
|
320
|
-
|
|
321
|
-
[**LabelResource**](LabelResource.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
|
-
## updateLabel
|
|
342
|
-
|
|
343
|
-
> LabelResource updateLabel(label, updateLabelRequest)
|
|
344
|
-
|
|
345
|
-
Auto-generated: updateLabel
|
|
346
|
-
|
|
347
|
-
### Example
|
|
348
|
-
|
|
349
|
-
```ts
|
|
350
|
-
import {
|
|
351
|
-
Configuration,
|
|
352
|
-
LabelApi,
|
|
353
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
354
|
-
import type { UpdateLabelOperationRequest } 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 LabelApi();
|
|
359
|
-
|
|
360
|
-
const body = {
|
|
361
|
-
// number | The id of the label
|
|
362
|
-
label: 56,
|
|
363
|
-
// UpdateLabelRequest (optional)
|
|
364
|
-
updateLabelRequest: ...,
|
|
365
|
-
} satisfies UpdateLabelOperationRequest;
|
|
366
|
-
|
|
367
|
-
try {
|
|
368
|
-
const data = await api.updateLabel(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
|
-
| **label** | `number` | The id of the label | [Defaults to `undefined`] |
|
|
385
|
-
| **updateLabelRequest** | [UpdateLabelRequest](UpdateLabelRequest.md) | | [Optional] |
|
|
386
|
-
|
|
387
|
-
### Return type
|
|
388
|
-
|
|
389
|
-
[**LabelResource**](LabelResource.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,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# LabelListResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`shortName` | string
|
|
11
|
-
`longName` | string
|
|
12
|
-
`colour` | string
|
|
13
|
-
`textColour` | string
|
|
14
|
-
`startDate` | string
|
|
15
|
-
`endDate` | string
|
|
16
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { LabelListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"id": null,
|
|
26
|
-
"shortName": null,
|
|
27
|
-
"longName": null,
|
|
28
|
-
"colour": null,
|
|
29
|
-
"textColour": null,
|
|
30
|
-
"startDate": null,
|
|
31
|
-
"endDate": null,
|
|
32
|
-
"site": null,
|
|
33
|
-
} satisfies LabelListResource
|
|
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 LabelListResource
|
|
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
|
-
|