@digital8/lighting-illusions-ts-sdk 0.0.1456 → 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.
Files changed (232) hide show
  1. package/.openapi-generator/FILES +40 -74
  2. package/README.md +25 -56
  3. package/dist/apis/ProductRegistrationApi.d.ts +79 -0
  4. package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
  5. package/dist/apis/SupplierApi.d.ts +1 -33
  6. package/dist/apis/SupplierApi.js +0 -122
  7. package/dist/apis/index.d.ts +1 -2
  8. package/dist/apis/index.js +1 -2
  9. package/dist/models/AddressResource.js +6 -6
  10. package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
  11. package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
  12. package/dist/models/IndexProductChildRequest.d.ts +1 -1
  13. package/dist/models/IndexProductChildRequest.js +1 -1
  14. package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
  15. package/dist/models/IndexProductRegistrationRequest.js +95 -0
  16. package/dist/models/LabelResource.d.ts +4 -23
  17. package/dist/models/LabelResource.js +8 -19
  18. package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
  19. package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
  20. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
  21. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
  22. package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
  23. package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
  24. package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
  25. package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
  26. package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
  27. package/dist/models/ProductRegistrationAssetResource.js +58 -0
  28. package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
  29. package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
  30. package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
  31. package/dist/models/ProductRegistrationAssetType.js +51 -0
  32. package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +44 -0
  33. package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
  34. package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
  35. package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
  36. package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
  37. package/dist/models/ProductRegistrationCustomerResource.js +61 -0
  38. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
  39. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
  40. package/dist/models/ProductRegistrationListResource.d.ts +51 -0
  41. package/dist/models/ProductRegistrationListResource.js +60 -0
  42. package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
  43. package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
  44. package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
  45. package/dist/models/ProductRegistrationLiteResource.js +53 -0
  46. package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
  47. package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
  48. package/dist/models/ProductRegistrationResource.d.ts +76 -0
  49. package/dist/models/ProductRegistrationResource.js +75 -0
  50. package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
  51. package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
  52. package/dist/models/index.d.ts +19 -35
  53. package/dist/models/index.js +19 -35
  54. package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
  55. package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
  56. package/docs/LabelResource.md +6 -12
  57. package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
  58. package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
  59. package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
  60. package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
  61. package/docs/ProductRegistrationApi.md +275 -0
  62. package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
  63. package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
  64. package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
  65. package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
  66. package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
  67. package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
  68. package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
  69. package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
  70. package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
  71. package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
  72. package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
  73. package/docs/ProductRegistrationResource.md +48 -0
  74. package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
  75. package/docs/SupplierApi.md +0 -138
  76. package/package.json +1 -1
  77. package/src/apis/ProductRegistrationApi.ts +238 -0
  78. package/src/apis/SupplierApi.ts +0 -112
  79. package/src/apis/index.ts +1 -2
  80. package/src/models/AddressResource.ts +6 -6
  81. package/src/models/GetAllProductRegistrationRequest.ts +128 -0
  82. package/src/models/IndexProductChildRequest.ts +1 -1
  83. package/src/models/IndexProductRegistrationRequest.ts +184 -0
  84. package/src/models/LabelResource.ts +12 -46
  85. package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
  86. package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
  87. package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
  88. package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
  89. package/src/models/ProductRegistrationAssetResource.ts +91 -0
  90. package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
  91. package/src/models/ProductRegistrationAssetType.ts +53 -0
  92. package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
  93. package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
  94. package/src/models/ProductRegistrationCustomerResource.ts +92 -0
  95. package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
  96. package/src/models/ProductRegistrationListResource.ts +99 -0
  97. package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
  98. package/src/models/ProductRegistrationLiteResource.ts +74 -0
  99. package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
  100. package/src/models/ProductRegistrationResource.ts +141 -0
  101. package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
  102. package/src/models/index.ts +19 -35
  103. package/dist/apis/LabelApi.d.ts +0 -109
  104. package/dist/apis/StoreApi.d.ts +0 -190
  105. package/dist/apis/StoreApi.js +0 -744
  106. package/dist/models/AddressFrontendResource.d.ts +0 -74
  107. package/dist/models/AddressFrontendResource.js +0 -75
  108. package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
  109. package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
  110. package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
  111. package/dist/models/AttachStoresSupplierRequest.js +0 -51
  112. package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
  113. package/dist/models/AttachSuppliersStoreRequest.js +0 -51
  114. package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
  115. package/dist/models/DetachStoresSupplierRequest.js +0 -51
  116. package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
  117. package/dist/models/DetachSuppliersStoreRequest.js +0 -51
  118. package/dist/models/GetAllStoreRequest.d.ts +0 -93
  119. package/dist/models/IndexLabelRequest.d.ts +0 -109
  120. package/dist/models/IndexStoreRequest.d.ts +0 -105
  121. package/dist/models/IndexStoreRequest.js +0 -85
  122. package/dist/models/LabelListResource.d.ts +0 -75
  123. package/dist/models/LabelListResource.js +0 -74
  124. package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
  125. package/dist/models/LabelListResourceArrayResponse.js +0 -50
  126. package/dist/models/LabelLiteResource.d.ts +0 -56
  127. package/dist/models/LabelLiteResource.js +0 -65
  128. package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
  130. package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
  131. package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
  132. package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
  133. package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
  134. package/dist/models/StoreFrontendResource.d.ts +0 -98
  135. package/dist/models/StoreFrontendResource.js +0 -89
  136. package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
  137. package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
  138. package/dist/models/StoreLabelRequest.d.ts +0 -74
  139. package/dist/models/StoreLabelRequest.js +0 -71
  140. package/dist/models/StoreListResource.d.ts +0 -81
  141. package/dist/models/StoreListResource.js +0 -80
  142. package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
  143. package/dist/models/StoreListResourceArrayResponse.js +0 -50
  144. package/dist/models/StoreLiteResource.d.ts +0 -45
  145. package/dist/models/StoreLiteResource.js +0 -58
  146. package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
  147. package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
  148. package/dist/models/StoreResource.d.ts +0 -102
  149. package/dist/models/StoreResource.js +0 -95
  150. package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
  151. package/dist/models/StoreResourceArrayResponse.js +0 -50
  152. package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
  153. package/dist/models/StoreSpecialDateFrontendResource.js +0 -71
  154. package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
  155. package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
  156. package/dist/models/StoreSpecialDateResource.d.ts +0 -68
  157. package/dist/models/StoreSpecialDateResource.js +0 -71
  158. package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
  159. package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
  160. package/dist/models/StoreStoreRequest.d.ts +0 -94
  161. package/dist/models/StoreStoreRequest.js +0 -85
  162. package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
  163. package/dist/models/StoreStoreRequestAddress.js +0 -73
  164. package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
  165. package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
  166. package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
  167. package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
  168. package/dist/models/UpdateLabelRequest.d.ts +0 -74
  169. package/dist/models/UpdateLabelRequest.js +0 -63
  170. package/dist/models/UpdateStoreRequest.d.ts +0 -94
  171. package/dist/models/UpdateStoreRequest.js +0 -85
  172. package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
  173. package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
  174. package/docs/AddressFrontendResource.md +0 -48
  175. package/docs/AttachStoresSupplierRequest.md +0 -34
  176. package/docs/AttachSuppliersStoreRequest.md +0 -34
  177. package/docs/LabelApi.md +0 -407
  178. package/docs/LabelListResource.md +0 -48
  179. package/docs/StoreApi.md +0 -755
  180. package/docs/StoreFrontendResource.md +0 -56
  181. package/docs/StoreFrontendResourceArrayResponse.md +0 -34
  182. package/docs/StoreLabelRequest.md +0 -48
  183. package/docs/StoreListResource.md +0 -50
  184. package/docs/StoreListResourceArrayResponse.md +0 -34
  185. package/docs/StoreLiteResourceArrayResponse.md +0 -34
  186. package/docs/StoreResource.md +0 -56
  187. package/docs/StoreResourceArrayResponse.md +0 -34
  188. package/docs/StoreSpecialDateFrontendResource.md +0 -46
  189. package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
  190. package/docs/StoreStoreRequest.md +0 -54
  191. package/docs/StoreStoreRequestAddress.md +0 -46
  192. package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
  193. package/docs/StoreStoreSpecialDateRequest.md +0 -44
  194. package/docs/UpdateLabelRequest.md +0 -48
  195. package/docs/UpdateStoreRequest.md +0 -54
  196. package/src/apis/LabelApi.ts +0 -328
  197. package/src/apis/StoreApi.ts +0 -625
  198. package/src/models/AddressFrontendResource.ts +0 -127
  199. package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
  200. package/src/models/AttachStoresSupplierRequest.ts +0 -66
  201. package/src/models/AttachSuppliersStoreRequest.ts +0 -66
  202. package/src/models/DetachStoresSupplierRequest.ts +0 -66
  203. package/src/models/DetachSuppliersStoreRequest.ts +0 -66
  204. package/src/models/GetAllStoreRequest.ts +0 -144
  205. package/src/models/IndexLabelRequest.ts +0 -163
  206. package/src/models/IndexStoreRequest.ts +0 -160
  207. package/src/models/LabelListResource.ts +0 -134
  208. package/src/models/LabelListResourceArrayResponse.ts +0 -73
  209. package/src/models/LabelLiteResource.ts +0 -101
  210. package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
  211. package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
  212. package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
  213. package/src/models/StoreFrontendResource.ts +0 -162
  214. package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
  215. package/src/models/StoreLabelRequest.ts +0 -125
  216. package/src/models/StoreListResource.ts +0 -144
  217. package/src/models/StoreListResourceArrayResponse.ts +0 -73
  218. package/src/models/StoreLiteResource.ts +0 -91
  219. package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
  220. package/src/models/StoreResource.ts +0 -192
  221. package/src/models/StoreResourceArrayResponse.ts +0 -73
  222. package/src/models/StoreSpecialDateFrontendResource.ts +0 -118
  223. package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
  224. package/src/models/StoreSpecialDateResource.ts +0 -118
  225. package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
  226. package/src/models/StoreStoreRequest.ts +0 -167
  227. package/src/models/StoreStoreRequestAddress.ts +0 -119
  228. package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
  229. package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
  230. package/src/models/UpdateLabelRequest.ts +0 -121
  231. package/src/models/UpdateStoreRequest.ts +0 -167
  232. 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
-