@digital8/lighting-illusions-ts-sdk 0.0.446 → 0.0.447
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 +12 -0
- package/README.md +10 -2
- package/dist/apis/SiteApi.d.ts +14 -3
- package/dist/apis/SiteApi.js +46 -1
- package/dist/apis/SupplierApi.d.ts +14 -3
- package/dist/apis/SupplierApi.js +46 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexSupplierRequest.d.ts +8 -1
- package/dist/models/IndexSupplierRequest.js +7 -1
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/SiteApi.md +69 -3
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +69 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/SiteApi.ts +42 -6
- package/src/apis/SupplierApi.ts +42 -6
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexSupplierRequest.ts +9 -1
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +6 -0
package/docs/SupplierApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
9
9
|
| [**getAllSupplier**](SupplierApi.md#getallsupplieroperation) | **POST** /admin-api/supplier/all | Auto-generated: getAllSupplier |
|
|
10
10
|
| [**importSupplier**](SupplierApi.md#importsupplier) | **POST** /admin-api/supplier/import | Auto-generated: importSupplier |
|
|
11
11
|
| [**indexSupplier**](SupplierApi.md#indexsupplieroperation) | **POST** /admin-api/supplier/list | Auto-generated: indexSupplier |
|
|
12
|
+
| [**searchExcludingRelationsSupplier**](SupplierApi.md#searchexcludingrelationssupplier) | **POST** /admin-api/supplier/search-excluding-relations | Auto-generated: searchExcludingRelationsSupplier |
|
|
12
13
|
| [**showSupplier**](SupplierApi.md#showsupplier) | **GET** /admin-api/supplier/{supplier} | Auto-generated: showSupplier |
|
|
13
14
|
| [**storeSupplier**](SupplierApi.md#storesupplieroperation) | **POST** /admin-api/supplier/create | Auto-generated: storeSupplier |
|
|
14
15
|
| [**updateSupplier**](SupplierApi.md#updatesupplieroperation) | **PUT** /admin-api/supplier/{supplier}/update | Auto-generated: updateSupplier |
|
|
@@ -277,7 +278,7 @@ No authorization required
|
|
|
277
278
|
|
|
278
279
|
## indexSupplier
|
|
279
280
|
|
|
280
|
-
>
|
|
281
|
+
> PaginatedSupplierListResourceResponse indexSupplier(indexSupplierRequest)
|
|
281
282
|
|
|
282
283
|
Auto-generated: indexSupplier
|
|
283
284
|
|
|
@@ -320,7 +321,7 @@ example().catch(console.error);
|
|
|
320
321
|
|
|
321
322
|
### Return type
|
|
322
323
|
|
|
323
|
-
[**
|
|
324
|
+
[**PaginatedSupplierListResourceResponse**](PaginatedSupplierListResourceResponse.md)
|
|
324
325
|
|
|
325
326
|
### Authorization
|
|
326
327
|
|
|
@@ -335,7 +336,72 @@ No authorization required
|
|
|
335
336
|
### HTTP response details
|
|
336
337
|
| Status code | Description | Response headers |
|
|
337
338
|
|-------------|-------------|------------------|
|
|
338
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
339
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\SupplierListResource[]>> | - |
|
|
340
|
+
|
|
341
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
## searchExcludingRelationsSupplier
|
|
345
|
+
|
|
346
|
+
> PaginatedSupplierListResourceResponse searchExcludingRelationsSupplier(indexSupplierRequest)
|
|
347
|
+
|
|
348
|
+
Auto-generated: searchExcludingRelationsSupplier
|
|
349
|
+
|
|
350
|
+
### Example
|
|
351
|
+
|
|
352
|
+
```ts
|
|
353
|
+
import {
|
|
354
|
+
Configuration,
|
|
355
|
+
SupplierApi,
|
|
356
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
357
|
+
import type { SearchExcludingRelationsSupplierRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
358
|
+
|
|
359
|
+
async function example() {
|
|
360
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
361
|
+
const api = new SupplierApi();
|
|
362
|
+
|
|
363
|
+
const body = {
|
|
364
|
+
// IndexSupplierRequest (optional)
|
|
365
|
+
indexSupplierRequest: ...,
|
|
366
|
+
} satisfies SearchExcludingRelationsSupplierRequest;
|
|
367
|
+
|
|
368
|
+
try {
|
|
369
|
+
const data = await api.searchExcludingRelationsSupplier(body);
|
|
370
|
+
console.log(data);
|
|
371
|
+
} catch (error) {
|
|
372
|
+
console.error(error);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Run the test
|
|
377
|
+
example().catch(console.error);
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Parameters
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
| Name | Type | Description | Notes |
|
|
384
|
+
|------------- | ------------- | ------------- | -------------|
|
|
385
|
+
| **indexSupplierRequest** | [IndexSupplierRequest](IndexSupplierRequest.md) | | [Optional] |
|
|
386
|
+
|
|
387
|
+
### Return type
|
|
388
|
+
|
|
389
|
+
[**PaginatedSupplierListResourceResponse**](PaginatedSupplierListResourceResponse.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** | Paginated response \\JsonResponse<\\ResourcePaginator<\\SupplierListResource[]>> | - |
|
|
339
405
|
|
|
340
406
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
341
407
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# SupplierListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
13
|
+
`supplierEta` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { SupplierListResource } 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
|
+
"slug": null,
|
|
25
|
+
"thumbnail": null,
|
|
26
|
+
"supplierEta": null,
|
|
27
|
+
} satisfies SupplierListResource
|
|
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 SupplierListResource
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# SupplierListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<SupplierListResource>](SupplierListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { SupplierListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies SupplierListResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as SupplierListResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/package.json
CHANGED
package/src/apis/SiteApi.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
IndexSiteNotificationRequest,
|
|
20
20
|
IndexSiteRequest,
|
|
21
|
+
PaginatedSiteListResourceResponse,
|
|
21
22
|
PaginatedSiteNotificationResourceResponse,
|
|
22
|
-
PaginatedSiteResourceResponse,
|
|
23
23
|
SiteLiteResourceArrayResponse,
|
|
24
24
|
SiteNotificationResource,
|
|
25
25
|
SiteResource,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
IndexSiteNotificationRequestToJSON,
|
|
35
35
|
IndexSiteRequestFromJSON,
|
|
36
36
|
IndexSiteRequestToJSON,
|
|
37
|
+
PaginatedSiteListResourceResponseFromJSON,
|
|
38
|
+
PaginatedSiteListResourceResponseToJSON,
|
|
37
39
|
PaginatedSiteNotificationResourceResponseFromJSON,
|
|
38
40
|
PaginatedSiteNotificationResourceResponseToJSON,
|
|
39
|
-
PaginatedSiteResourceResponseFromJSON,
|
|
40
|
-
PaginatedSiteResourceResponseToJSON,
|
|
41
41
|
SiteLiteResourceArrayResponseFromJSON,
|
|
42
42
|
SiteLiteResourceArrayResponseToJSON,
|
|
43
43
|
SiteNotificationResourceFromJSON,
|
|
@@ -68,6 +68,10 @@ export interface IndexSiteNotificationOperationRequest {
|
|
|
68
68
|
indexSiteNotificationRequest?: IndexSiteNotificationRequest;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
export interface SearchExcludingRelationsSiteRequest {
|
|
72
|
+
indexSiteRequest?: IndexSiteRequest;
|
|
73
|
+
}
|
|
74
|
+
|
|
71
75
|
export interface ShowSiteRequest {
|
|
72
76
|
site: number;
|
|
73
77
|
}
|
|
@@ -163,7 +167,7 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
163
167
|
/**
|
|
164
168
|
* Auto-generated: indexSite
|
|
165
169
|
*/
|
|
166
|
-
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
170
|
+
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteListResourceResponse>> {
|
|
167
171
|
const queryParameters: any = {};
|
|
168
172
|
|
|
169
173
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -181,13 +185,13 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
181
185
|
body: IndexSiteRequestToJSON(requestParameters['indexSiteRequest']),
|
|
182
186
|
}, initOverrides);
|
|
183
187
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
188
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteListResourceResponseFromJSON(jsonValue));
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
/**
|
|
188
192
|
* Auto-generated: indexSite
|
|
189
193
|
*/
|
|
190
|
-
async indexSite(requestParameters: IndexSiteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
194
|
+
async indexSite(requestParameters: IndexSiteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteListResourceResponse> {
|
|
191
195
|
const response = await this.indexSiteRaw(requestParameters, initOverrides);
|
|
192
196
|
return await response.value();
|
|
193
197
|
}
|
|
@@ -224,6 +228,38 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
224
228
|
return await response.value();
|
|
225
229
|
}
|
|
226
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Auto-generated: searchExcludingRelationsSite
|
|
233
|
+
*/
|
|
234
|
+
async searchExcludingRelationsSiteRaw(requestParameters: SearchExcludingRelationsSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteListResourceResponse>> {
|
|
235
|
+
const queryParameters: any = {};
|
|
236
|
+
|
|
237
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
238
|
+
|
|
239
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
let urlPath = `/admin-api/site/search-excluding-relations`;
|
|
243
|
+
|
|
244
|
+
const response = await this.request({
|
|
245
|
+
path: urlPath,
|
|
246
|
+
method: 'POST',
|
|
247
|
+
headers: headerParameters,
|
|
248
|
+
query: queryParameters,
|
|
249
|
+
body: IndexSiteRequestToJSON(requestParameters['indexSiteRequest']),
|
|
250
|
+
}, initOverrides);
|
|
251
|
+
|
|
252
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteListResourceResponseFromJSON(jsonValue));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Auto-generated: searchExcludingRelationsSite
|
|
257
|
+
*/
|
|
258
|
+
async searchExcludingRelationsSite(requestParameters: SearchExcludingRelationsSiteRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteListResourceResponse> {
|
|
259
|
+
const response = await this.searchExcludingRelationsSiteRaw(requestParameters, initOverrides);
|
|
260
|
+
return await response.value();
|
|
261
|
+
}
|
|
262
|
+
|
|
227
263
|
/**
|
|
228
264
|
* Auto-generated: showSite
|
|
229
265
|
*/
|
package/src/apis/SupplierApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
GetAllSupplierRequest,
|
|
20
20
|
IndexSupplierRequest,
|
|
21
|
-
|
|
21
|
+
PaginatedSupplierListResourceResponse,
|
|
22
22
|
StoreSupplierRequest,
|
|
23
23
|
SupplierLiteResourceArrayResponse,
|
|
24
24
|
SupplierResource,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
GetAllSupplierRequestToJSON,
|
|
32
32
|
IndexSupplierRequestFromJSON,
|
|
33
33
|
IndexSupplierRequestToJSON,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
PaginatedSupplierListResourceResponseFromJSON,
|
|
35
|
+
PaginatedSupplierListResourceResponseToJSON,
|
|
36
36
|
StoreSupplierRequestFromJSON,
|
|
37
37
|
StoreSupplierRequestToJSON,
|
|
38
38
|
SupplierLiteResourceArrayResponseFromJSON,
|
|
@@ -63,6 +63,10 @@ export interface IndexSupplierOperationRequest {
|
|
|
63
63
|
indexSupplierRequest?: IndexSupplierRequest;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export interface SearchExcludingRelationsSupplierRequest {
|
|
67
|
+
indexSupplierRequest?: IndexSupplierRequest;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
export interface ShowSupplierRequest {
|
|
67
71
|
supplier: number;
|
|
68
72
|
}
|
|
@@ -242,7 +246,7 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
242
246
|
/**
|
|
243
247
|
* Auto-generated: indexSupplier
|
|
244
248
|
*/
|
|
245
|
-
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
249
|
+
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>> {
|
|
246
250
|
const queryParameters: any = {};
|
|
247
251
|
|
|
248
252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -260,17 +264,49 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
260
264
|
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
261
265
|
}, initOverrides);
|
|
262
266
|
|
|
263
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
267
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierListResourceResponseFromJSON(jsonValue));
|
|
264
268
|
}
|
|
265
269
|
|
|
266
270
|
/**
|
|
267
271
|
* Auto-generated: indexSupplier
|
|
268
272
|
*/
|
|
269
|
-
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
273
|
+
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse> {
|
|
270
274
|
const response = await this.indexSupplierRaw(requestParameters, initOverrides);
|
|
271
275
|
return await response.value();
|
|
272
276
|
}
|
|
273
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
280
|
+
*/
|
|
281
|
+
async searchExcludingRelationsSupplierRaw(requestParameters: SearchExcludingRelationsSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>> {
|
|
282
|
+
const queryParameters: any = {};
|
|
283
|
+
|
|
284
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
285
|
+
|
|
286
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
let urlPath = `/admin-api/supplier/search-excluding-relations`;
|
|
290
|
+
|
|
291
|
+
const response = await this.request({
|
|
292
|
+
path: urlPath,
|
|
293
|
+
method: 'POST',
|
|
294
|
+
headers: headerParameters,
|
|
295
|
+
query: queryParameters,
|
|
296
|
+
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
297
|
+
}, initOverrides);
|
|
298
|
+
|
|
299
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierListResourceResponseFromJSON(jsonValue));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
304
|
+
*/
|
|
305
|
+
async searchExcludingRelationsSupplier(requestParameters: SearchExcludingRelationsSupplierRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse> {
|
|
306
|
+
const response = await this.searchExcludingRelationsSupplierRaw(requestParameters, initOverrides);
|
|
307
|
+
return await response.value();
|
|
308
|
+
}
|
|
309
|
+
|
|
274
310
|
/**
|
|
275
311
|
* Auto-generated: showSupplier
|
|
276
312
|
*/
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -60,7 +60,7 @@ export interface IndexSupplierRequest {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof IndexSupplierRequest
|
|
62
62
|
*/
|
|
63
|
-
relatedType?:
|
|
63
|
+
relatedType?: IndexSupplierRequestRelatedTypeEnum;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
|
|
@@ -86,6 +86,14 @@ export const IndexSupplierRequestSortDirectionEnum = {
|
|
|
86
86
|
} as const;
|
|
87
87
|
export type IndexSupplierRequestSortDirectionEnum = typeof IndexSupplierRequestSortDirectionEnum[keyof typeof IndexSupplierRequestSortDirectionEnum];
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const IndexSupplierRequestRelatedTypeEnum = {
|
|
93
|
+
ProductChild: 'productChild'
|
|
94
|
+
} as const;
|
|
95
|
+
export type IndexSupplierRequestRelatedTypeEnum = typeof IndexSupplierRequestRelatedTypeEnum[keyof typeof IndexSupplierRequestRelatedTypeEnum];
|
|
96
|
+
|
|
89
97
|
|
|
90
98
|
/**
|
|
91
99
|
* Check if a given object implements the IndexSupplierRequest interface.
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { SiteListResource } from './SiteListResource';
|
|
24
|
+
import {
|
|
25
|
+
SiteListResourceFromJSON,
|
|
26
|
+
SiteListResourceFromJSONTyped,
|
|
27
|
+
SiteListResourceToJSON,
|
|
28
|
+
SiteListResourceToJSONTyped,
|
|
29
|
+
} from './SiteListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedSiteListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedSiteListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SiteListResource>}
|
|
40
|
+
* @memberof PaginatedSiteListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<SiteListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedSiteListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedSiteListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedSiteListResourceResponse(value: object): value is PaginatedSiteListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedSiteListResourceResponseFromJSON(json: any): PaginatedSiteListResourceResponse {
|
|
61
|
+
return PaginatedSiteListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedSiteListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(SiteListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedSiteListResourceResponseToJSON(json: any): PaginatedSiteListResourceResponse {
|
|
76
|
+
return PaginatedSiteListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedSiteListResourceResponseToJSONTyped(value?: PaginatedSiteListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(SiteListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { SupplierListResource } from './SupplierListResource';
|
|
24
|
+
import {
|
|
25
|
+
SupplierListResourceFromJSON,
|
|
26
|
+
SupplierListResourceFromJSONTyped,
|
|
27
|
+
SupplierListResourceToJSON,
|
|
28
|
+
SupplierListResourceToJSONTyped,
|
|
29
|
+
} from './SupplierListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedSupplierListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedSupplierListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SupplierListResource>}
|
|
40
|
+
* @memberof PaginatedSupplierListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<SupplierListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedSupplierListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedSupplierListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedSupplierListResourceResponse(value: object): value is PaginatedSupplierListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedSupplierListResourceResponseFromJSON(json: any): PaginatedSupplierListResourceResponse {
|
|
61
|
+
return PaginatedSupplierListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedSupplierListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupplierListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(SupplierListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedSupplierListResourceResponseToJSON(json: any): PaginatedSupplierListResourceResponse {
|
|
76
|
+
return PaginatedSupplierListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedSupplierListResourceResponseToJSONTyped(value?: PaginatedSupplierListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(SupplierListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|