@digital8/lighting-illusions-ts-sdk 0.0.1459 → 0.0.1461

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 (196) hide show
  1. package/.openapi-generator/FILES +78 -4
  2. package/README.md +58 -4
  3. package/dist/apis/LabelApi.d.ts +109 -0
  4. package/dist/apis/LabelApi.js +433 -0
  5. package/dist/apis/StoreApi.d.ts +190 -0
  6. package/dist/apis/StoreApi.js +744 -0
  7. package/dist/apis/SupplierApi.d.ts +33 -1
  8. package/dist/apis/SupplierApi.js +122 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/AddressFrontendResource.d.ts +74 -0
  12. package/dist/models/AddressFrontendResource.js +77 -0
  13. package/dist/models/AddressFrontendResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/AddressFrontendResourceArrayResponse.js +50 -0
  15. package/dist/models/AddressResource.js +6 -6
  16. package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
  17. package/dist/models/AttachStoresSupplierRequest.js +51 -0
  18. package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
  19. package/dist/models/AttachSuppliersStoreRequest.js +51 -0
  20. package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
  21. package/dist/models/DetachStoresSupplierRequest.js +51 -0
  22. package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
  23. package/dist/models/DetachSuppliersStoreRequest.js +51 -0
  24. package/dist/models/GetAllStoreRequest.d.ts +93 -0
  25. package/dist/models/GetAllStoreRequest.js +81 -0
  26. package/dist/models/IndexLabelRequest.d.ts +109 -0
  27. package/dist/models/IndexLabelRequest.js +92 -0
  28. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  29. package/dist/models/IndexProductChildRequest.js +1 -0
  30. package/dist/models/IndexStoreRequest.d.ts +105 -0
  31. package/dist/models/IndexStoreRequest.js +85 -0
  32. package/dist/models/LabelListResource.d.ts +75 -0
  33. package/dist/models/LabelListResource.js +74 -0
  34. package/dist/models/LabelListResourceArrayResponse.d.ts +33 -0
  35. package/dist/models/LabelListResourceArrayResponse.js +50 -0
  36. package/dist/models/LabelLiteResource.d.ts +56 -0
  37. package/dist/models/LabelLiteResource.js +65 -0
  38. package/dist/models/LabelLiteResourceArrayResponse.d.ts +33 -0
  39. package/dist/models/LabelLiteResourceArrayResponse.js +50 -0
  40. package/dist/models/LabelResource.d.ts +23 -4
  41. package/dist/models/LabelResource.js +19 -8
  42. package/dist/models/PaginatedLabelListResourceResponse.d.ts +40 -0
  43. package/dist/models/PaginatedLabelListResourceResponse.js +57 -0
  44. package/dist/models/PaginatedStoreListResourceResponse.d.ts +40 -0
  45. package/dist/models/PaginatedStoreListResourceResponse.js +57 -0
  46. package/dist/models/ProductRegistrationListResource.d.ts +7 -7
  47. package/dist/models/ProductRegistrationListResource.js +7 -7
  48. package/dist/models/ProductRegistrationLiteResource.d.ts +2 -2
  49. package/dist/models/ProductRegistrationLiteResource.js +2 -2
  50. package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
  51. package/dist/models/ProductRegistrationProductChildResource.js +63 -0
  52. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
  53. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
  54. package/dist/models/ProductRegistrationResource.d.ts +6 -6
  55. package/dist/models/ProductRegistrationResource.js +6 -6
  56. package/dist/models/StoreFrontendResource.d.ts +98 -0
  57. package/dist/models/StoreFrontendResource.js +89 -0
  58. package/dist/models/StoreFrontendResourceArrayResponse.d.ts +33 -0
  59. package/dist/models/StoreFrontendResourceArrayResponse.js +50 -0
  60. package/dist/models/StoreLabelRequest.d.ts +74 -0
  61. package/dist/models/StoreLabelRequest.js +71 -0
  62. package/dist/models/StoreListResource.d.ts +81 -0
  63. package/dist/models/StoreListResource.js +78 -0
  64. package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
  65. package/dist/models/StoreListResourceArrayResponse.js +50 -0
  66. package/dist/models/StoreLiteResource.d.ts +45 -0
  67. package/dist/models/StoreLiteResource.js +58 -0
  68. package/dist/models/StoreLiteResourceArrayResponse.d.ts +33 -0
  69. package/dist/models/StoreLiteResourceArrayResponse.js +50 -0
  70. package/dist/models/StoreResource.d.ts +102 -0
  71. package/dist/models/StoreResource.js +95 -0
  72. package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
  73. package/dist/models/StoreResourceArrayResponse.js +50 -0
  74. package/dist/models/StoreSpecialDateFrontendResource.d.ts +68 -0
  75. package/dist/models/StoreSpecialDateFrontendResource.js +73 -0
  76. package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +33 -0
  77. package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +50 -0
  78. package/dist/models/StoreSpecialDateResource.d.ts +68 -0
  79. package/dist/models/StoreSpecialDateResource.js +73 -0
  80. package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
  81. package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
  82. package/dist/models/StoreStoreRequest.d.ts +94 -0
  83. package/dist/models/StoreStoreRequest.js +85 -0
  84. package/dist/models/StoreStoreRequestAddress.d.ts +68 -0
  85. package/dist/models/StoreStoreRequestAddress.js +73 -0
  86. package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +62 -0
  87. package/dist/models/StoreStoreRequestSpecialDatesInner.js +61 -0
  88. package/dist/models/StoreStoreSpecialDateRequest.d.ts +62 -0
  89. package/dist/models/StoreStoreSpecialDateRequest.js +61 -0
  90. package/dist/models/UpdateLabelRequest.d.ts +74 -0
  91. package/dist/models/UpdateLabelRequest.js +63 -0
  92. package/dist/models/UpdateStoreRequest.d.ts +94 -0
  93. package/dist/models/UpdateStoreRequest.js +85 -0
  94. package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
  95. package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
  96. package/dist/models/index.d.ts +37 -2
  97. package/dist/models/index.js +37 -2
  98. package/docs/AddressFrontendResource.md +48 -0
  99. package/docs/AddressFrontendResourceArrayResponse.md +34 -0
  100. package/docs/AttachStoresSupplierRequest.md +34 -0
  101. package/docs/AttachSuppliersStoreRequest.md +34 -0
  102. package/docs/DetachStoresSupplierRequest.md +34 -0
  103. package/docs/DetachSuppliersStoreRequest.md +34 -0
  104. package/docs/GetAllStoreRequest.md +48 -0
  105. package/docs/IndexLabelRequest.md +50 -0
  106. package/docs/IndexStoreRequest.md +52 -0
  107. package/docs/LabelApi.md +407 -0
  108. package/docs/LabelListResource.md +48 -0
  109. package/docs/LabelListResourceArrayResponse.md +34 -0
  110. package/docs/LabelLiteResource.md +42 -0
  111. package/docs/LabelLiteResourceArrayResponse.md +34 -0
  112. package/docs/LabelResource.md +12 -6
  113. package/docs/PaginatedLabelListResourceResponse.md +36 -0
  114. package/docs/PaginatedStoreListResourceResponse.md +36 -0
  115. package/docs/ProductRegistrationListResource.md +3 -3
  116. package/docs/ProductRegistrationLiteResource.md +1 -1
  117. package/docs/{ProductRegistrationCustomerLiteResource.md → ProductRegistrationProductChildResource.md} +8 -8
  118. package/docs/{ProductRegistrationCustomerLiteResourceArrayResponse.md → ProductRegistrationProductChildResourceArrayResponse.md} +5 -5
  119. package/docs/ProductRegistrationResource.md +3 -3
  120. package/docs/StoreApi.md +755 -0
  121. package/docs/StoreFrontendResource.md +56 -0
  122. package/docs/StoreFrontendResourceArrayResponse.md +34 -0
  123. package/docs/StoreLabelRequest.md +48 -0
  124. package/docs/StoreListResource.md +50 -0
  125. package/docs/StoreListResourceArrayResponse.md +34 -0
  126. package/docs/StoreLiteResource.md +38 -0
  127. package/docs/StoreLiteResourceArrayResponse.md +34 -0
  128. package/docs/StoreResource.md +56 -0
  129. package/docs/StoreResourceArrayResponse.md +34 -0
  130. package/docs/StoreSpecialDateFrontendResource.md +46 -0
  131. package/docs/StoreSpecialDateFrontendResourceArrayResponse.md +34 -0
  132. package/docs/StoreSpecialDateResource.md +46 -0
  133. package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
  134. package/docs/StoreStoreRequest.md +54 -0
  135. package/docs/StoreStoreRequestAddress.md +46 -0
  136. package/docs/StoreStoreRequestSpecialDatesInner.md +44 -0
  137. package/docs/StoreStoreSpecialDateRequest.md +44 -0
  138. package/docs/SupplierApi.md +138 -0
  139. package/docs/UpdateLabelRequest.md +48 -0
  140. package/docs/UpdateStoreRequest.md +54 -0
  141. package/docs/UpdateStoreRequestSpecialDatesInner.md +42 -0
  142. package/package.json +1 -1
  143. package/src/apis/LabelApi.ts +328 -0
  144. package/src/apis/StoreApi.ts +625 -0
  145. package/src/apis/SupplierApi.ts +112 -0
  146. package/src/apis/index.ts +2 -0
  147. package/src/models/AddressFrontendResource.ts +128 -0
  148. package/src/models/AddressFrontendResourceArrayResponse.ts +73 -0
  149. package/src/models/AddressResource.ts +6 -6
  150. package/src/models/AttachStoresSupplierRequest.ts +66 -0
  151. package/src/models/AttachSuppliersStoreRequest.ts +66 -0
  152. package/src/models/DetachStoresSupplierRequest.ts +66 -0
  153. package/src/models/DetachSuppliersStoreRequest.ts +66 -0
  154. package/src/models/GetAllStoreRequest.ts +144 -0
  155. package/src/models/IndexLabelRequest.ts +163 -0
  156. package/src/models/IndexProductChildRequest.ts +1 -0
  157. package/src/models/IndexStoreRequest.ts +160 -0
  158. package/src/models/LabelListResource.ts +134 -0
  159. package/src/models/LabelListResourceArrayResponse.ts +73 -0
  160. package/src/models/LabelLiteResource.ts +101 -0
  161. package/src/models/LabelLiteResourceArrayResponse.ts +73 -0
  162. package/src/models/LabelResource.ts +46 -12
  163. package/src/models/PaginatedLabelListResourceResponse.ts +90 -0
  164. package/src/models/PaginatedStoreListResourceResponse.ts +90 -0
  165. package/src/models/ProductRegistrationListResource.ts +18 -18
  166. package/src/models/ProductRegistrationLiteResource.ts +4 -4
  167. package/src/models/ProductRegistrationProductChildResource.ts +93 -0
  168. package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
  169. package/src/models/ProductRegistrationResource.ts +12 -12
  170. package/src/models/StoreFrontendResource.ts +162 -0
  171. package/src/models/StoreFrontendResourceArrayResponse.ts +73 -0
  172. package/src/models/StoreLabelRequest.ts +125 -0
  173. package/src/models/StoreListResource.ts +143 -0
  174. package/src/models/StoreListResourceArrayResponse.ts +73 -0
  175. package/src/models/StoreLiteResource.ts +91 -0
  176. package/src/models/StoreLiteResourceArrayResponse.ts +73 -0
  177. package/src/models/StoreResource.ts +192 -0
  178. package/src/models/StoreResourceArrayResponse.ts +73 -0
  179. package/src/models/StoreSpecialDateFrontendResource.ts +119 -0
  180. package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +73 -0
  181. package/src/models/StoreSpecialDateResource.ts +119 -0
  182. package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
  183. package/src/models/StoreStoreRequest.ts +167 -0
  184. package/src/models/StoreStoreRequestAddress.ts +119 -0
  185. package/src/models/StoreStoreRequestSpecialDatesInner.ts +106 -0
  186. package/src/models/StoreStoreSpecialDateRequest.ts +106 -0
  187. package/src/models/UpdateLabelRequest.ts +121 -0
  188. package/src/models/UpdateStoreRequest.ts +167 -0
  189. package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
  190. package/src/models/index.ts +37 -2
  191. package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +0 -50
  192. package/dist/models/ProductRegistrationCustomerLiteResource.js +0 -61
  193. package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +0 -33
  194. package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +0 -50
  195. package/src/models/ProductRegistrationCustomerLiteResource.ts +0 -92
  196. package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +0 -73
@@ -0,0 +1,44 @@
1
+
2
+ # StoreStoreSpecialDateRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `hours` | string
11
+ `date` | Date
12
+ `closed` | boolean
13
+ `displayStartDate` | Date
14
+ `displayEndDate` | Date
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { StoreStoreSpecialDateRequest } from '@digital8/lighting-illusions-ts-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "hours": null,
25
+ "date": null,
26
+ "closed": null,
27
+ "displayStartDate": null,
28
+ "displayEndDate": null,
29
+ } satisfies StoreStoreSpecialDateRequest
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as StoreStoreSpecialDateRequest
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -4,7 +4,9 @@ All URIs are relative to *http://localhost/api*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**attachStoresSupplier**](SupplierApi.md#attachstoressupplieroperation) | **POST** /admin-api/supplier/{supplier}/attach-stores | Auto-generated: attachStoresSupplier |
7
8
  | [**destroySupplier**](SupplierApi.md#destroysupplier) | **DELETE** /admin-api/supplier/{supplier}/delete | Auto-generated: destroySupplier |
9
+ | [**detachStoresSupplier**](SupplierApi.md#detachstoressupplieroperation) | **POST** /admin-api/supplier/{supplier}/detach-stores | Auto-generated: detachStoresSupplier |
8
10
  | [**exportSupplier**](SupplierApi.md#exportsupplier) | **POST** /admin-api/supplier/export | Auto-generated: exportSupplier |
9
11
  | [**getAllSupplier**](SupplierApi.md#getallsupplieroperation) | **POST** /admin-api/supplier/all | Auto-generated: getAllSupplier |
10
12
  | [**importSupplier**](SupplierApi.md#importsupplier) | **POST** /admin-api/supplier/import | Auto-generated: importSupplier |
@@ -15,6 +17,74 @@ All URIs are relative to *http://localhost/api*
15
17
 
16
18
 
17
19
 
20
+ ## attachStoresSupplier
21
+
22
+ > SupplierResource attachStoresSupplier(supplier, attachStoresSupplierRequest)
23
+
24
+ Auto-generated: attachStoresSupplier
25
+
26
+ ### Example
27
+
28
+ ```ts
29
+ import {
30
+ Configuration,
31
+ SupplierApi,
32
+ } from '@digital8/lighting-illusions-ts-sdk';
33
+ import type { AttachStoresSupplierOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
34
+
35
+ async function example() {
36
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
37
+ const api = new SupplierApi();
38
+
39
+ const body = {
40
+ // number | The id of the supplier
41
+ supplier: 56,
42
+ // AttachStoresSupplierRequest (optional)
43
+ attachStoresSupplierRequest: ...,
44
+ } satisfies AttachStoresSupplierOperationRequest;
45
+
46
+ try {
47
+ const data = await api.attachStoresSupplier(body);
48
+ console.log(data);
49
+ } catch (error) {
50
+ console.error(error);
51
+ }
52
+ }
53
+
54
+ // Run the test
55
+ example().catch(console.error);
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+
61
+ | Name | Type | Description | Notes |
62
+ |------------- | ------------- | ------------- | -------------|
63
+ | **supplier** | `number` | The id of the supplier | [Defaults to `undefined`] |
64
+ | **attachStoresSupplierRequest** | [AttachStoresSupplierRequest](AttachStoresSupplierRequest.md) | | [Optional] |
65
+
66
+ ### Return type
67
+
68
+ [**SupplierResource**](SupplierResource.md)
69
+
70
+ ### Authorization
71
+
72
+ No authorization required
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: `application/json`
77
+ - **Accept**: `application/json`
78
+
79
+
80
+ ### HTTP response details
81
+ | Status code | Description | Response headers |
82
+ |-------------|-------------|------------------|
83
+ | **200** | Successful resource response | - |
84
+
85
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
86
+
87
+
18
88
  ## destroySupplier
19
89
 
20
90
  > GenericResponse destroySupplier(supplier)
@@ -80,6 +150,74 @@ No authorization required
80
150
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
81
151
 
82
152
 
153
+ ## detachStoresSupplier
154
+
155
+ > SupplierResource detachStoresSupplier(supplier, detachStoresSupplierRequest)
156
+
157
+ Auto-generated: detachStoresSupplier
158
+
159
+ ### Example
160
+
161
+ ```ts
162
+ import {
163
+ Configuration,
164
+ SupplierApi,
165
+ } from '@digital8/lighting-illusions-ts-sdk';
166
+ import type { DetachStoresSupplierOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
167
+
168
+ async function example() {
169
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
170
+ const api = new SupplierApi();
171
+
172
+ const body = {
173
+ // number | The id of the supplier
174
+ supplier: 56,
175
+ // DetachStoresSupplierRequest (optional)
176
+ detachStoresSupplierRequest: ...,
177
+ } satisfies DetachStoresSupplierOperationRequest;
178
+
179
+ try {
180
+ const data = await api.detachStoresSupplier(body);
181
+ console.log(data);
182
+ } catch (error) {
183
+ console.error(error);
184
+ }
185
+ }
186
+
187
+ // Run the test
188
+ example().catch(console.error);
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+
194
+ | Name | Type | Description | Notes |
195
+ |------------- | ------------- | ------------- | -------------|
196
+ | **supplier** | `number` | The id of the supplier | [Defaults to `undefined`] |
197
+ | **detachStoresSupplierRequest** | [DetachStoresSupplierRequest](DetachStoresSupplierRequest.md) | | [Optional] |
198
+
199
+ ### Return type
200
+
201
+ [**SupplierResource**](SupplierResource.md)
202
+
203
+ ### Authorization
204
+
205
+ No authorization required
206
+
207
+ ### HTTP request headers
208
+
209
+ - **Content-Type**: `application/json`
210
+ - **Accept**: `application/json`
211
+
212
+
213
+ ### HTTP response details
214
+ | Status code | Description | Response headers |
215
+ |-------------|-------------|------------------|
216
+ | **200** | Successful resource response | - |
217
+
218
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
219
+
220
+
83
221
  ## exportSupplier
84
222
 
85
223
  > Blob exportSupplier(indexSupplierRequest)
@@ -0,0 +1,48 @@
1
+
2
+ # UpdateLabelRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `siteId` | number
10
+ `shortName` | string
11
+ `longName` | string
12
+ `cartButtonText` | string
13
+ `colour` | string
14
+ `textColour` | string
15
+ `startDate` | Date
16
+ `endDate` | Date
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { UpdateLabelRequest } from '@digital8/lighting-illusions-ts-sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "siteId": null,
26
+ "shortName": null,
27
+ "longName": null,
28
+ "cartButtonText": null,
29
+ "colour": null,
30
+ "textColour": null,
31
+ "startDate": null,
32
+ "endDate": null,
33
+ } satisfies UpdateLabelRequest
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 UpdateLabelRequest
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,54 @@
1
+
2
+ # UpdateStoreRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `siteId` | number
10
+ `name` | string
11
+ `phone` | string
12
+ `longitude` | number
13
+ `latitude` | number
14
+ `tagLine` | string
15
+ `email` | string
16
+ `openingHours` | Array<string>
17
+ `supplierIds` | Array<number>
18
+ `specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
19
+ `address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { UpdateStoreRequest } from '@digital8/lighting-illusions-ts-sdk'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "siteId": null,
29
+ "name": null,
30
+ "phone": null,
31
+ "longitude": null,
32
+ "latitude": null,
33
+ "tagLine": null,
34
+ "email": null,
35
+ "openingHours": null,
36
+ "supplierIds": null,
37
+ "specialDates": null,
38
+ "address": null,
39
+ } satisfies UpdateStoreRequest
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as UpdateStoreRequest
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,42 @@
1
+
2
+ # UpdateStoreRequestSpecialDatesInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `hours` | string
12
+ `displayStart` | Date
13
+ `displayEnd` | Date
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { UpdateStoreRequestSpecialDatesInner } from '@digital8/lighting-illusions-ts-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": null,
23
+ "name": null,
24
+ "hours": null,
25
+ "displayStart": null,
26
+ "displayEnd": null,
27
+ } satisfies UpdateStoreRequestSpecialDatesInner
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as UpdateStoreRequestSpecialDatesInner
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1459",
3
+ "version": "0.0.1461",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,328 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ GenericResponse,
19
+ IndexLabelRequest,
20
+ LabelResource,
21
+ PaginatedLabelListResourceResponse,
22
+ StoreLabelRequest,
23
+ UpdateLabelRequest,
24
+ } from '../models/index';
25
+ import {
26
+ GenericResponseFromJSON,
27
+ GenericResponseToJSON,
28
+ IndexLabelRequestFromJSON,
29
+ IndexLabelRequestToJSON,
30
+ LabelResourceFromJSON,
31
+ LabelResourceToJSON,
32
+ PaginatedLabelListResourceResponseFromJSON,
33
+ PaginatedLabelListResourceResponseToJSON,
34
+ StoreLabelRequestFromJSON,
35
+ StoreLabelRequestToJSON,
36
+ UpdateLabelRequestFromJSON,
37
+ UpdateLabelRequestToJSON,
38
+ } from '../models/index';
39
+
40
+ export interface DestroyLabelRequest {
41
+ label: number;
42
+ }
43
+
44
+ export interface GetAllLabelRequest {
45
+ indexLabelRequest?: IndexLabelRequest;
46
+ }
47
+
48
+ export interface IndexLabelOperationRequest {
49
+ indexLabelRequest?: IndexLabelRequest;
50
+ }
51
+
52
+ export interface ShowLabelRequest {
53
+ label: number;
54
+ }
55
+
56
+ export interface StoreLabelOperationRequest {
57
+ storeLabelRequest?: StoreLabelRequest;
58
+ }
59
+
60
+ export interface UpdateLabelOperationRequest {
61
+ label: number;
62
+ updateLabelRequest?: UpdateLabelRequest;
63
+ }
64
+
65
+ /**
66
+ *
67
+ */
68
+ export class LabelApi extends runtime.BaseAPI {
69
+
70
+ /**
71
+ * Creates request options for destroyLabel without sending the request
72
+ */
73
+ async destroyLabelRequestOpts(requestParameters: DestroyLabelRequest): Promise<runtime.RequestOpts> {
74
+ if (requestParameters['label'] == null) {
75
+ throw new runtime.RequiredError(
76
+ 'label',
77
+ 'Required parameter "label" was null or undefined when calling destroyLabel().'
78
+ );
79
+ }
80
+
81
+ const queryParameters: any = {};
82
+
83
+ const headerParameters: runtime.HTTPHeaders = {};
84
+
85
+
86
+ let urlPath = `/admin-api/label/{label}/delete`;
87
+ urlPath = urlPath.replace(`{${"label"}}`, encodeURIComponent(String(requestParameters['label'])));
88
+
89
+ return {
90
+ path: urlPath,
91
+ method: 'DELETE',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ };
95
+ }
96
+
97
+ /**
98
+ * Auto-generated: destroyLabel
99
+ */
100
+ async destroyLabelRaw(requestParameters: DestroyLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
101
+ const requestOptions = await this.destroyLabelRequestOpts(requestParameters);
102
+ const response = await this.request(requestOptions, initOverrides);
103
+
104
+ return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
105
+ }
106
+
107
+ /**
108
+ * Auto-generated: destroyLabel
109
+ */
110
+ async destroyLabel(requestParameters: DestroyLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
111
+ const response = await this.destroyLabelRaw(requestParameters, initOverrides);
112
+ return await response.value();
113
+ }
114
+
115
+ /**
116
+ * Creates request options for getAllLabel without sending the request
117
+ */
118
+ async getAllLabelRequestOpts(requestParameters: GetAllLabelRequest): Promise<runtime.RequestOpts> {
119
+ const queryParameters: any = {};
120
+
121
+ const headerParameters: runtime.HTTPHeaders = {};
122
+
123
+ headerParameters['Content-Type'] = 'application/json';
124
+
125
+
126
+ let urlPath = `/admin-api/label/all`;
127
+
128
+ return {
129
+ path: urlPath,
130
+ method: 'POST',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ body: IndexLabelRequestToJSON(requestParameters['indexLabelRequest']),
134
+ };
135
+ }
136
+
137
+ /**
138
+ * Auto-generated: getAllLabel
139
+ */
140
+ async getAllLabelRaw(requestParameters: GetAllLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
141
+ const requestOptions = await this.getAllLabelRequestOpts(requestParameters);
142
+ const response = await this.request(requestOptions, initOverrides);
143
+
144
+ return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
145
+ }
146
+
147
+ /**
148
+ * Auto-generated: getAllLabel
149
+ */
150
+ async getAllLabel(requestParameters: GetAllLabelRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
151
+ const response = await this.getAllLabelRaw(requestParameters, initOverrides);
152
+ return await response.value();
153
+ }
154
+
155
+ /**
156
+ * Creates request options for indexLabel without sending the request
157
+ */
158
+ async indexLabelRequestOpts(requestParameters: IndexLabelOperationRequest): Promise<runtime.RequestOpts> {
159
+ const queryParameters: any = {};
160
+
161
+ const headerParameters: runtime.HTTPHeaders = {};
162
+
163
+ headerParameters['Content-Type'] = 'application/json';
164
+
165
+
166
+ let urlPath = `/admin-api/label/list`;
167
+
168
+ return {
169
+ path: urlPath,
170
+ method: 'POST',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ body: IndexLabelRequestToJSON(requestParameters['indexLabelRequest']),
174
+ };
175
+ }
176
+
177
+ /**
178
+ * Auto-generated: indexLabel
179
+ */
180
+ async indexLabelRaw(requestParameters: IndexLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLabelListResourceResponse>> {
181
+ const requestOptions = await this.indexLabelRequestOpts(requestParameters);
182
+ const response = await this.request(requestOptions, initOverrides);
183
+
184
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLabelListResourceResponseFromJSON(jsonValue));
185
+ }
186
+
187
+ /**
188
+ * Auto-generated: indexLabel
189
+ */
190
+ async indexLabel(requestParameters: IndexLabelOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLabelListResourceResponse> {
191
+ const response = await this.indexLabelRaw(requestParameters, initOverrides);
192
+ return await response.value();
193
+ }
194
+
195
+ /**
196
+ * Creates request options for showLabel without sending the request
197
+ */
198
+ async showLabelRequestOpts(requestParameters: ShowLabelRequest): Promise<runtime.RequestOpts> {
199
+ if (requestParameters['label'] == null) {
200
+ throw new runtime.RequiredError(
201
+ 'label',
202
+ 'Required parameter "label" was null or undefined when calling showLabel().'
203
+ );
204
+ }
205
+
206
+ const queryParameters: any = {};
207
+
208
+ const headerParameters: runtime.HTTPHeaders = {};
209
+
210
+
211
+ let urlPath = `/admin-api/label/{label}`;
212
+ urlPath = urlPath.replace(`{${"label"}}`, encodeURIComponent(String(requestParameters['label'])));
213
+
214
+ return {
215
+ path: urlPath,
216
+ method: 'GET',
217
+ headers: headerParameters,
218
+ query: queryParameters,
219
+ };
220
+ }
221
+
222
+ /**
223
+ * Auto-generated: showLabel
224
+ */
225
+ async showLabelRaw(requestParameters: ShowLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelResource>> {
226
+ const requestOptions = await this.showLabelRequestOpts(requestParameters);
227
+ const response = await this.request(requestOptions, initOverrides);
228
+
229
+ return new runtime.JSONApiResponse(response, (jsonValue) => LabelResourceFromJSON(jsonValue));
230
+ }
231
+
232
+ /**
233
+ * Auto-generated: showLabel
234
+ */
235
+ async showLabel(requestParameters: ShowLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelResource> {
236
+ const response = await this.showLabelRaw(requestParameters, initOverrides);
237
+ return await response.value();
238
+ }
239
+
240
+ /**
241
+ * Creates request options for storeLabel without sending the request
242
+ */
243
+ async storeLabelRequestOpts(requestParameters: StoreLabelOperationRequest): Promise<runtime.RequestOpts> {
244
+ const queryParameters: any = {};
245
+
246
+ const headerParameters: runtime.HTTPHeaders = {};
247
+
248
+ headerParameters['Content-Type'] = 'application/json';
249
+
250
+
251
+ let urlPath = `/admin-api/label/create`;
252
+
253
+ return {
254
+ path: urlPath,
255
+ method: 'POST',
256
+ headers: headerParameters,
257
+ query: queryParameters,
258
+ body: StoreLabelRequestToJSON(requestParameters['storeLabelRequest']),
259
+ };
260
+ }
261
+
262
+ /**
263
+ * Auto-generated: storeLabel
264
+ */
265
+ async storeLabelRaw(requestParameters: StoreLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelResource>> {
266
+ const requestOptions = await this.storeLabelRequestOpts(requestParameters);
267
+ const response = await this.request(requestOptions, initOverrides);
268
+
269
+ return new runtime.JSONApiResponse(response, (jsonValue) => LabelResourceFromJSON(jsonValue));
270
+ }
271
+
272
+ /**
273
+ * Auto-generated: storeLabel
274
+ */
275
+ async storeLabel(requestParameters: StoreLabelOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelResource> {
276
+ const response = await this.storeLabelRaw(requestParameters, initOverrides);
277
+ return await response.value();
278
+ }
279
+
280
+ /**
281
+ * Creates request options for updateLabel without sending the request
282
+ */
283
+ async updateLabelRequestOpts(requestParameters: UpdateLabelOperationRequest): Promise<runtime.RequestOpts> {
284
+ if (requestParameters['label'] == null) {
285
+ throw new runtime.RequiredError(
286
+ 'label',
287
+ 'Required parameter "label" was null or undefined when calling updateLabel().'
288
+ );
289
+ }
290
+
291
+ const queryParameters: any = {};
292
+
293
+ const headerParameters: runtime.HTTPHeaders = {};
294
+
295
+ headerParameters['Content-Type'] = 'application/json';
296
+
297
+
298
+ let urlPath = `/admin-api/label/{label}/update`;
299
+ urlPath = urlPath.replace(`{${"label"}}`, encodeURIComponent(String(requestParameters['label'])));
300
+
301
+ return {
302
+ path: urlPath,
303
+ method: 'PUT',
304
+ headers: headerParameters,
305
+ query: queryParameters,
306
+ body: UpdateLabelRequestToJSON(requestParameters['updateLabelRequest']),
307
+ };
308
+ }
309
+
310
+ /**
311
+ * Auto-generated: updateLabel
312
+ */
313
+ async updateLabelRaw(requestParameters: UpdateLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelResource>> {
314
+ const requestOptions = await this.updateLabelRequestOpts(requestParameters);
315
+ const response = await this.request(requestOptions, initOverrides);
316
+
317
+ return new runtime.JSONApiResponse(response, (jsonValue) => LabelResourceFromJSON(jsonValue));
318
+ }
319
+
320
+ /**
321
+ * Auto-generated: updateLabel
322
+ */
323
+ async updateLabel(requestParameters: UpdateLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelResource> {
324
+ const response = await this.updateLabelRaw(requestParameters, initOverrides);
325
+ return await response.value();
326
+ }
327
+
328
+ }