@digital8/lighting-illusions-ts-sdk 0.0.2372 → 0.0.2374
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 +42 -0
- package/README.md +30 -2
- package/dist/apis/ReturnsApi.d.ts +149 -0
- package/dist/apis/ReturnsApi.js +563 -0
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- package/dist/models/AttachReturnAssetsRequest.d.ts +32 -0
- package/dist/models/AttachReturnAssetsRequest.js +51 -0
- package/dist/models/CreateReturnRequest.d.ts +106 -0
- package/dist/models/CreateReturnRequest.js +103 -0
- package/dist/models/DetachReturnAssetsRequest.d.ts +32 -0
- package/dist/models/DetachReturnAssetsRequest.js +51 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/PaginatedReturnFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReturnFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedReturnListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReturnListResourceResponse.js +57 -0
- package/dist/models/ReturnFrontendListResource.d.ts +82 -0
- package/dist/models/ReturnFrontendListResource.js +83 -0
- package/dist/models/ReturnFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ReturnFrontendResource.d.ts +94 -0
- package/dist/models/ReturnFrontendResource.js +91 -0
- package/dist/models/ReturnFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ReturnListResource.d.ts +97 -0
- package/dist/models/ReturnListResource.js +94 -0
- package/dist/models/ReturnListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnListResourceArrayResponse.js +50 -0
- package/dist/models/ReturnLiteResource.d.ts +44 -0
- package/dist/models/ReturnLiteResource.js +59 -0
- package/dist/models/ReturnLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnLiteResourceArrayResponse.js +50 -0
- package/dist/models/ReturnMethod.d.ts +25 -0
- package/dist/models/ReturnMethod.js +51 -0
- package/dist/models/ReturnReason.d.ts +30 -0
- package/dist/models/ReturnReason.js +56 -0
- package/dist/models/ReturnResource.d.ts +135 -0
- package/dist/models/ReturnResource.js +118 -0
- package/dist/models/ReturnResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnResourceArrayResponse.js +50 -0
- package/dist/models/ReturnStatus.d.ts +28 -0
- package/dist/models/ReturnStatus.js +54 -0
- package/dist/models/SearchAllRolesRequest.d.ts +0 -2
- package/dist/models/SearchAllRolesRequest.js +1 -3
- package/dist/models/SearchReturnsRequest.d.ts +165 -0
- package/dist/models/SearchReturnsRequest.js +109 -0
- package/dist/models/SearchRolesRequest.d.ts +0 -2
- package/dist/models/SearchRolesRequest.js +1 -3
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateReturnRequest.d.ts +100 -0
- package/dist/models/UpdateReturnRequest.js +99 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/docs/AttachReturnAssetsRequest.md +34 -0
- package/docs/CreateReturnRequest.md +48 -0
- package/docs/DetachReturnAssetsRequest.md +34 -0
- package/docs/PaginatedReturnFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedReturnListResourceResponse.md +36 -0
- package/docs/ReturnFrontendListResource.md +50 -0
- package/docs/ReturnFrontendListResourceArrayResponse.md +34 -0
- package/docs/ReturnFrontendResource.md +54 -0
- package/docs/ReturnFrontendResourceArrayResponse.md +34 -0
- package/docs/ReturnListResource.md +54 -0
- package/docs/ReturnListResourceArrayResponse.md +34 -0
- package/docs/ReturnLiteResource.md +38 -0
- package/docs/ReturnLiteResourceArrayResponse.md +34 -0
- package/docs/ReturnMethod.md +32 -0
- package/docs/ReturnReason.md +32 -0
- package/docs/ReturnResource.md +66 -0
- package/docs/ReturnResourceArrayResponse.md +34 -0
- package/docs/ReturnStatus.md +32 -0
- package/docs/ReturnsApi.md +545 -0
- package/docs/SearchReturnsRequest.md +70 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/SupplierApi.md +2 -2
- package/docs/UpdateReturnRequest.md +46 -0
- package/package.json +1 -1
- package/src/apis/ReturnsApi.ts +456 -0
- package/src/apis/SupplierApi.ts +1 -1
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -6
- package/src/models/AttachReturnAssetsRequest.ts +66 -0
- package/src/models/CreateReturnRequest.ts +163 -0
- package/src/models/DetachReturnAssetsRequest.ts +66 -0
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/PaginatedReturnFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedReturnListResourceResponse.ts +90 -0
- package/src/models/ReturnFrontendListResource.ts +152 -0
- package/src/models/ReturnFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ReturnFrontendResource.ts +170 -0
- package/src/models/ReturnFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ReturnListResource.ts +191 -0
- package/src/models/ReturnListResourceArrayResponse.ts +73 -0
- package/src/models/ReturnLiteResource.ts +84 -0
- package/src/models/ReturnLiteResourceArrayResponse.ts +73 -0
- package/src/models/ReturnMethod.ts +53 -0
- package/src/models/ReturnReason.ts +58 -0
- package/src/models/ReturnResource.ts +258 -0
- package/src/models/ReturnResourceArrayResponse.ts +73 -0
- package/src/models/ReturnStatus.ts +56 -0
- package/src/models/SearchAllRolesRequest.ts +1 -3
- package/src/models/SearchReturnsRequest.ts +238 -0
- package/src/models/SearchRolesRequest.ts +1 -3
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateReturnRequest.ts +154 -0
- package/src/models/index.ts +20 -0
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
# ReturnsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**attachAssetsReturn**](ReturnsApi.md#attachassetsreturn) | **POST** /admin-api/returns/{productReturn}/assets/attach | Auto-generated: attachAssetsReturn |
|
|
8
|
+
| [**destroyReturn**](ReturnsApi.md#destroyreturn) | **DELETE** /admin-api/returns/{productReturn}/delete | Auto-generated: destroyReturn |
|
|
9
|
+
| [**detachAssetsReturn**](ReturnsApi.md#detachassetsreturn) | **POST** /admin-api/returns/{productReturn}/assets/detach | Auto-generated: detachAssetsReturn |
|
|
10
|
+
| [**getAllReturn**](ReturnsApi.md#getallreturn) | **POST** /admin-api/returns/all | Auto-generated: getAllReturn |
|
|
11
|
+
| [**indexReturn**](ReturnsApi.md#indexreturn) | **POST** /admin-api/returns/list | Auto-generated: indexReturn |
|
|
12
|
+
| [**showReturn**](ReturnsApi.md#showreturn) | **GET** /admin-api/returns/{productReturn} | Auto-generated: showReturn |
|
|
13
|
+
| [**storeReturn**](ReturnsApi.md#storereturn) | **POST** /admin-api/returns/create | Auto-generated: storeReturn |
|
|
14
|
+
| [**updateReturn**](ReturnsApi.md#updatereturnoperation) | **PUT** /admin-api/returns/{productReturn}/update | Auto-generated: updateReturn |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## attachAssetsReturn
|
|
19
|
+
|
|
20
|
+
> ReturnResource attachAssetsReturn(productReturn, attachReturnAssetsRequest)
|
|
21
|
+
|
|
22
|
+
Auto-generated: attachAssetsReturn
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import {
|
|
28
|
+
Configuration,
|
|
29
|
+
ReturnsApi,
|
|
30
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
31
|
+
import type { AttachAssetsReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
32
|
+
|
|
33
|
+
async function example() {
|
|
34
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
35
|
+
const api = new ReturnsApi();
|
|
36
|
+
|
|
37
|
+
const body = {
|
|
38
|
+
// number | The id of the productReturn
|
|
39
|
+
productReturn: 56,
|
|
40
|
+
// AttachReturnAssetsRequest (optional)
|
|
41
|
+
attachReturnAssetsRequest: ...,
|
|
42
|
+
} satisfies AttachAssetsReturnRequest;
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
const data = await api.attachAssetsReturn(body);
|
|
46
|
+
console.log(data);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(error);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Run the test
|
|
53
|
+
example().catch(console.error);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
|------------- | ------------- | ------------- | -------------|
|
|
61
|
+
| **productReturn** | `number` | The id of the productReturn | [Defaults to `undefined`] |
|
|
62
|
+
| **attachReturnAssetsRequest** | [AttachReturnAssetsRequest](AttachReturnAssetsRequest.md) | | [Optional] |
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
[**ReturnResource**](ReturnResource.md)
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
No authorization required
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: `application/json`
|
|
75
|
+
- **Accept**: `application/json`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
| Status code | Description | Response headers |
|
|
80
|
+
|-------------|-------------|------------------|
|
|
81
|
+
| **200** | Successful resource response | - |
|
|
82
|
+
|
|
83
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## destroyReturn
|
|
87
|
+
|
|
88
|
+
> GenericResponse destroyReturn(productReturn)
|
|
89
|
+
|
|
90
|
+
Auto-generated: destroyReturn
|
|
91
|
+
|
|
92
|
+
### Example
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import {
|
|
96
|
+
Configuration,
|
|
97
|
+
ReturnsApi,
|
|
98
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
99
|
+
import type { DestroyReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
100
|
+
|
|
101
|
+
async function example() {
|
|
102
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
103
|
+
const api = new ReturnsApi();
|
|
104
|
+
|
|
105
|
+
const body = {
|
|
106
|
+
// number | The id of the productReturn
|
|
107
|
+
productReturn: 56,
|
|
108
|
+
} satisfies DestroyReturnRequest;
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
const data = await api.destroyReturn(body);
|
|
112
|
+
console.log(data);
|
|
113
|
+
} catch (error) {
|
|
114
|
+
console.error(error);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Run the test
|
|
119
|
+
example().catch(console.error);
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Parameters
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
| Name | Type | Description | Notes |
|
|
126
|
+
|------------- | ------------- | ------------- | -------------|
|
|
127
|
+
| **productReturn** | `number` | The id of the productReturn | [Defaults to `undefined`] |
|
|
128
|
+
|
|
129
|
+
### Return type
|
|
130
|
+
|
|
131
|
+
[**GenericResponse**](GenericResponse.md)
|
|
132
|
+
|
|
133
|
+
### Authorization
|
|
134
|
+
|
|
135
|
+
No authorization required
|
|
136
|
+
|
|
137
|
+
### HTTP request headers
|
|
138
|
+
|
|
139
|
+
- **Content-Type**: Not defined
|
|
140
|
+
- **Accept**: `application/json`
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### HTTP response details
|
|
144
|
+
| Status code | Description | Response headers |
|
|
145
|
+
|-------------|-------------|------------------|
|
|
146
|
+
| **200** | \\JsonResponse | - |
|
|
147
|
+
|
|
148
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## detachAssetsReturn
|
|
152
|
+
|
|
153
|
+
> ReturnResource detachAssetsReturn(productReturn, detachReturnAssetsRequest)
|
|
154
|
+
|
|
155
|
+
Auto-generated: detachAssetsReturn
|
|
156
|
+
|
|
157
|
+
### Example
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
import {
|
|
161
|
+
Configuration,
|
|
162
|
+
ReturnsApi,
|
|
163
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
164
|
+
import type { DetachAssetsReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
165
|
+
|
|
166
|
+
async function example() {
|
|
167
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
168
|
+
const api = new ReturnsApi();
|
|
169
|
+
|
|
170
|
+
const body = {
|
|
171
|
+
// number | The id of the productReturn
|
|
172
|
+
productReturn: 56,
|
|
173
|
+
// DetachReturnAssetsRequest (optional)
|
|
174
|
+
detachReturnAssetsRequest: ...,
|
|
175
|
+
} satisfies DetachAssetsReturnRequest;
|
|
176
|
+
|
|
177
|
+
try {
|
|
178
|
+
const data = await api.detachAssetsReturn(body);
|
|
179
|
+
console.log(data);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
console.error(error);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Run the test
|
|
186
|
+
example().catch(console.error);
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Parameters
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
| Name | Type | Description | Notes |
|
|
193
|
+
|------------- | ------------- | ------------- | -------------|
|
|
194
|
+
| **productReturn** | `number` | The id of the productReturn | [Defaults to `undefined`] |
|
|
195
|
+
| **detachReturnAssetsRequest** | [DetachReturnAssetsRequest](DetachReturnAssetsRequest.md) | | [Optional] |
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
[**ReturnResource**](ReturnResource.md)
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
No authorization required
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: `application/json`
|
|
208
|
+
- **Accept**: `application/json`
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### HTTP response details
|
|
212
|
+
| Status code | Description | Response headers |
|
|
213
|
+
|-------------|-------------|------------------|
|
|
214
|
+
| **200** | Successful resource response | - |
|
|
215
|
+
|
|
216
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## getAllReturn
|
|
220
|
+
|
|
221
|
+
> ReturnLiteResourceArrayResponse getAllReturn(searchReturnsRequest)
|
|
222
|
+
|
|
223
|
+
Auto-generated: getAllReturn
|
|
224
|
+
|
|
225
|
+
### Example
|
|
226
|
+
|
|
227
|
+
```ts
|
|
228
|
+
import {
|
|
229
|
+
Configuration,
|
|
230
|
+
ReturnsApi,
|
|
231
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
232
|
+
import type { GetAllReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
233
|
+
|
|
234
|
+
async function example() {
|
|
235
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
236
|
+
const api = new ReturnsApi();
|
|
237
|
+
|
|
238
|
+
const body = {
|
|
239
|
+
// SearchReturnsRequest (optional)
|
|
240
|
+
searchReturnsRequest: ...,
|
|
241
|
+
} satisfies GetAllReturnRequest;
|
|
242
|
+
|
|
243
|
+
try {
|
|
244
|
+
const data = await api.getAllReturn(body);
|
|
245
|
+
console.log(data);
|
|
246
|
+
} catch (error) {
|
|
247
|
+
console.error(error);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Run the test
|
|
252
|
+
example().catch(console.error);
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Parameters
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
| Name | Type | Description | Notes |
|
|
259
|
+
|------------- | ------------- | ------------- | -------------|
|
|
260
|
+
| **searchReturnsRequest** | [SearchReturnsRequest](SearchReturnsRequest.md) | | [Optional] |
|
|
261
|
+
|
|
262
|
+
### Return type
|
|
263
|
+
|
|
264
|
+
[**ReturnLiteResourceArrayResponse**](ReturnLiteResourceArrayResponse.md)
|
|
265
|
+
|
|
266
|
+
### Authorization
|
|
267
|
+
|
|
268
|
+
No authorization required
|
|
269
|
+
|
|
270
|
+
### HTTP request headers
|
|
271
|
+
|
|
272
|
+
- **Content-Type**: `application/json`
|
|
273
|
+
- **Accept**: `application/json`
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
### HTTP response details
|
|
277
|
+
| Status code | Description | Response headers |
|
|
278
|
+
|-------------|-------------|------------------|
|
|
279
|
+
| **200** | Successful resource response | - |
|
|
280
|
+
|
|
281
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
## indexReturn
|
|
285
|
+
|
|
286
|
+
> PaginatedReturnListResourceResponse indexReturn(searchReturnsRequest)
|
|
287
|
+
|
|
288
|
+
Auto-generated: indexReturn
|
|
289
|
+
|
|
290
|
+
### Example
|
|
291
|
+
|
|
292
|
+
```ts
|
|
293
|
+
import {
|
|
294
|
+
Configuration,
|
|
295
|
+
ReturnsApi,
|
|
296
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
297
|
+
import type { IndexReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
298
|
+
|
|
299
|
+
async function example() {
|
|
300
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
301
|
+
const api = new ReturnsApi();
|
|
302
|
+
|
|
303
|
+
const body = {
|
|
304
|
+
// SearchReturnsRequest (optional)
|
|
305
|
+
searchReturnsRequest: ...,
|
|
306
|
+
} satisfies IndexReturnRequest;
|
|
307
|
+
|
|
308
|
+
try {
|
|
309
|
+
const data = await api.indexReturn(body);
|
|
310
|
+
console.log(data);
|
|
311
|
+
} catch (error) {
|
|
312
|
+
console.error(error);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// Run the test
|
|
317
|
+
example().catch(console.error);
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Parameters
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
| Name | Type | Description | Notes |
|
|
324
|
+
|------------- | ------------- | ------------- | -------------|
|
|
325
|
+
| **searchReturnsRequest** | [SearchReturnsRequest](SearchReturnsRequest.md) | | [Optional] |
|
|
326
|
+
|
|
327
|
+
### Return type
|
|
328
|
+
|
|
329
|
+
[**PaginatedReturnListResourceResponse**](PaginatedReturnListResourceResponse.md)
|
|
330
|
+
|
|
331
|
+
### Authorization
|
|
332
|
+
|
|
333
|
+
No authorization required
|
|
334
|
+
|
|
335
|
+
### HTTP request headers
|
|
336
|
+
|
|
337
|
+
- **Content-Type**: `application/json`
|
|
338
|
+
- **Accept**: `application/json`
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### HTTP response details
|
|
342
|
+
| Status code | Description | Response headers |
|
|
343
|
+
|-------------|-------------|------------------|
|
|
344
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ReturnListResource[]>> | - |
|
|
345
|
+
|
|
346
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
## showReturn
|
|
350
|
+
|
|
351
|
+
> ReturnResource showReturn(productReturn)
|
|
352
|
+
|
|
353
|
+
Auto-generated: showReturn
|
|
354
|
+
|
|
355
|
+
### Example
|
|
356
|
+
|
|
357
|
+
```ts
|
|
358
|
+
import {
|
|
359
|
+
Configuration,
|
|
360
|
+
ReturnsApi,
|
|
361
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
362
|
+
import type { ShowReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
363
|
+
|
|
364
|
+
async function example() {
|
|
365
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
366
|
+
const api = new ReturnsApi();
|
|
367
|
+
|
|
368
|
+
const body = {
|
|
369
|
+
// number | The id of the productReturn
|
|
370
|
+
productReturn: 56,
|
|
371
|
+
} satisfies ShowReturnRequest;
|
|
372
|
+
|
|
373
|
+
try {
|
|
374
|
+
const data = await api.showReturn(body);
|
|
375
|
+
console.log(data);
|
|
376
|
+
} catch (error) {
|
|
377
|
+
console.error(error);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// Run the test
|
|
382
|
+
example().catch(console.error);
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
| Name | Type | Description | Notes |
|
|
389
|
+
|------------- | ------------- | ------------- | -------------|
|
|
390
|
+
| **productReturn** | `number` | The id of the productReturn | [Defaults to `undefined`] |
|
|
391
|
+
|
|
392
|
+
### Return type
|
|
393
|
+
|
|
394
|
+
[**ReturnResource**](ReturnResource.md)
|
|
395
|
+
|
|
396
|
+
### Authorization
|
|
397
|
+
|
|
398
|
+
No authorization required
|
|
399
|
+
|
|
400
|
+
### HTTP request headers
|
|
401
|
+
|
|
402
|
+
- **Content-Type**: Not defined
|
|
403
|
+
- **Accept**: `application/json`
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### HTTP response details
|
|
407
|
+
| Status code | Description | Response headers |
|
|
408
|
+
|-------------|-------------|------------------|
|
|
409
|
+
| **200** | Successful resource response | - |
|
|
410
|
+
|
|
411
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
## storeReturn
|
|
415
|
+
|
|
416
|
+
> ReturnResource storeReturn(createReturnRequest)
|
|
417
|
+
|
|
418
|
+
Auto-generated: storeReturn
|
|
419
|
+
|
|
420
|
+
### Example
|
|
421
|
+
|
|
422
|
+
```ts
|
|
423
|
+
import {
|
|
424
|
+
Configuration,
|
|
425
|
+
ReturnsApi,
|
|
426
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
427
|
+
import type { StoreReturnRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
428
|
+
|
|
429
|
+
async function example() {
|
|
430
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
431
|
+
const api = new ReturnsApi();
|
|
432
|
+
|
|
433
|
+
const body = {
|
|
434
|
+
// CreateReturnRequest (optional)
|
|
435
|
+
createReturnRequest: ...,
|
|
436
|
+
} satisfies StoreReturnRequest;
|
|
437
|
+
|
|
438
|
+
try {
|
|
439
|
+
const data = await api.storeReturn(body);
|
|
440
|
+
console.log(data);
|
|
441
|
+
} catch (error) {
|
|
442
|
+
console.error(error);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// Run the test
|
|
447
|
+
example().catch(console.error);
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
### Parameters
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
| Name | Type | Description | Notes |
|
|
454
|
+
|------------- | ------------- | ------------- | -------------|
|
|
455
|
+
| **createReturnRequest** | [CreateReturnRequest](CreateReturnRequest.md) | | [Optional] |
|
|
456
|
+
|
|
457
|
+
### Return type
|
|
458
|
+
|
|
459
|
+
[**ReturnResource**](ReturnResource.md)
|
|
460
|
+
|
|
461
|
+
### Authorization
|
|
462
|
+
|
|
463
|
+
No authorization required
|
|
464
|
+
|
|
465
|
+
### HTTP request headers
|
|
466
|
+
|
|
467
|
+
- **Content-Type**: `application/json`
|
|
468
|
+
- **Accept**: `application/json`
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
### HTTP response details
|
|
472
|
+
| Status code | Description | Response headers |
|
|
473
|
+
|-------------|-------------|------------------|
|
|
474
|
+
| **200** | Successful resource response | - |
|
|
475
|
+
|
|
476
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
## updateReturn
|
|
480
|
+
|
|
481
|
+
> ReturnResource updateReturn(productReturn, updateReturnRequest)
|
|
482
|
+
|
|
483
|
+
Auto-generated: updateReturn
|
|
484
|
+
|
|
485
|
+
### Example
|
|
486
|
+
|
|
487
|
+
```ts
|
|
488
|
+
import {
|
|
489
|
+
Configuration,
|
|
490
|
+
ReturnsApi,
|
|
491
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
492
|
+
import type { UpdateReturnOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
493
|
+
|
|
494
|
+
async function example() {
|
|
495
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
496
|
+
const api = new ReturnsApi();
|
|
497
|
+
|
|
498
|
+
const body = {
|
|
499
|
+
// number | The id of the productReturn
|
|
500
|
+
productReturn: 56,
|
|
501
|
+
// UpdateReturnRequest (optional)
|
|
502
|
+
updateReturnRequest: ...,
|
|
503
|
+
} satisfies UpdateReturnOperationRequest;
|
|
504
|
+
|
|
505
|
+
try {
|
|
506
|
+
const data = await api.updateReturn(body);
|
|
507
|
+
console.log(data);
|
|
508
|
+
} catch (error) {
|
|
509
|
+
console.error(error);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// Run the test
|
|
514
|
+
example().catch(console.error);
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### Parameters
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
| Name | Type | Description | Notes |
|
|
521
|
+
|------------- | ------------- | ------------- | -------------|
|
|
522
|
+
| **productReturn** | `number` | The id of the productReturn | [Defaults to `undefined`] |
|
|
523
|
+
| **updateReturnRequest** | [UpdateReturnRequest](UpdateReturnRequest.md) | | [Optional] |
|
|
524
|
+
|
|
525
|
+
### Return type
|
|
526
|
+
|
|
527
|
+
[**ReturnResource**](ReturnResource.md)
|
|
528
|
+
|
|
529
|
+
### Authorization
|
|
530
|
+
|
|
531
|
+
No authorization required
|
|
532
|
+
|
|
533
|
+
### HTTP request headers
|
|
534
|
+
|
|
535
|
+
- **Content-Type**: `application/json`
|
|
536
|
+
- **Accept**: `application/json`
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
### HTTP response details
|
|
540
|
+
| Status code | Description | Response headers |
|
|
541
|
+
|-------------|-------------|------------------|
|
|
542
|
+
| **200** | Successful resource response | - |
|
|
543
|
+
|
|
544
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
545
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchReturnsRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`customerId` | Array<string>
|
|
16
|
+
`orderId` | Array<string>
|
|
17
|
+
`status` | Array<string>
|
|
18
|
+
`reason` | Array<string>
|
|
19
|
+
`returnMethod` | Array<string>
|
|
20
|
+
`reviewerId` | Array<string>
|
|
21
|
+
`beforeCreatedAt` | Date
|
|
22
|
+
`afterCreatedAt` | Date
|
|
23
|
+
`beforeUpdatedAt` | Date
|
|
24
|
+
`afterUpdatedAt` | Date
|
|
25
|
+
`relatedId` | number
|
|
26
|
+
`relatedType` | string
|
|
27
|
+
`includesRelations` | boolean
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import type { SearchReturnsRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
33
|
+
|
|
34
|
+
// TODO: Update the object below with actual values
|
|
35
|
+
const example = {
|
|
36
|
+
"search": null,
|
|
37
|
+
"sortBy": null,
|
|
38
|
+
"sortDirection": null,
|
|
39
|
+
"perPage": null,
|
|
40
|
+
"page": null,
|
|
41
|
+
"siteId": null,
|
|
42
|
+
"customerId": null,
|
|
43
|
+
"orderId": null,
|
|
44
|
+
"status": null,
|
|
45
|
+
"reason": null,
|
|
46
|
+
"returnMethod": null,
|
|
47
|
+
"reviewerId": null,
|
|
48
|
+
"beforeCreatedAt": null,
|
|
49
|
+
"afterCreatedAt": null,
|
|
50
|
+
"beforeUpdatedAt": null,
|
|
51
|
+
"afterUpdatedAt": null,
|
|
52
|
+
"relatedId": null,
|
|
53
|
+
"relatedType": null,
|
|
54
|
+
"includesRelations": null,
|
|
55
|
+
} satisfies SearchReturnsRequest
|
|
56
|
+
|
|
57
|
+
console.log(example)
|
|
58
|
+
|
|
59
|
+
// Convert the instance to a JSON string
|
|
60
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
61
|
+
console.log(exampleJSON)
|
|
62
|
+
|
|
63
|
+
// Parse the JSON string back to an object
|
|
64
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchReturnsRequest
|
|
65
|
+
console.log(exampleParsed)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
69
|
+
|
|
70
|
+
|
package/docs/SupplierApi.md
CHANGED
|
@@ -401,14 +401,14 @@ No authorization required
|
|
|
401
401
|
|
|
402
402
|
### HTTP request headers
|
|
403
403
|
|
|
404
|
-
- **Content-Type**: `
|
|
404
|
+
- **Content-Type**: `application/x-www-form-urlencoded`
|
|
405
405
|
- **Accept**: `application/json`
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
### HTTP response details
|
|
409
409
|
| Status code | Description | Response headers |
|
|
410
410
|
|-------------|-------------|------------------|
|
|
411
|
-
| **200** |
|
|
411
|
+
| **200** | Generic JSON success | - |
|
|
412
412
|
|
|
413
413
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
414
414
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateReturnRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`reviewerId` | number
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`status` | string
|
|
12
|
+
`reason` | string
|
|
13
|
+
`returnMethod` | string
|
|
14
|
+
`description` | string
|
|
15
|
+
`netsuiteId` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { UpdateReturnRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"reviewerId": null,
|
|
25
|
+
"quantity": null,
|
|
26
|
+
"status": null,
|
|
27
|
+
"reason": null,
|
|
28
|
+
"returnMethod": null,
|
|
29
|
+
"description": null,
|
|
30
|
+
"netsuiteId": null,
|
|
31
|
+
} satisfies UpdateReturnRequest
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateReturnRequest
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|