@digital8/lighting-illusions-ts-sdk 0.0.446 → 0.0.448
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 +24 -0
- package/README.md +18 -2
- package/dist/apis/AttributeApi.d.ts +14 -3
- package/dist/apis/AttributeApi.js +46 -1
- package/dist/apis/ProductTypeApi.d.ts +14 -3
- package/dist/apis/ProductTypeApi.js +46 -1
- 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/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/IndexAttributeRequest.d.ts +8 -1
- package/dist/models/IndexAttributeRequest.js +7 -1
- package/dist/models/IndexSupplierRequest.d.ts +8 -1
- package/dist/models/IndexSupplierRequest.js +7 -1
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- 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/ProductTypeListResource.d.ts +38 -0
- package/dist/models/ProductTypeListResource.js +55 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/docs/AttributeApi.md +69 -3
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/ProductTypeApi.md +69 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -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/AttributeApi.ts +42 -6
- package/src/apis/ProductTypeApi.ts +42 -6
- package/src/apis/SiteApi.ts +42 -6
- package/src/apis/SupplierApi.ts +42 -6
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/IndexAttributeRequest.ts +9 -1
- package/src/models/IndexSupplierRequest.ts +9 -1
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -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 +12 -0
package/docs/SiteApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
8
8
|
| [**getAllSite**](SiteApi.md#getallsite) | **POST** /admin-api/site/all | Auto-generated: getAllSite |
|
|
9
9
|
| [**indexSite**](SiteApi.md#indexsiteoperation) | **POST** /admin-api/site/list | Auto-generated: indexSite |
|
|
10
10
|
| [**indexSiteNotification**](SiteApi.md#indexsitenotificationoperation) | **POST** /admin-api/site/notification/list | Auto-generated: indexSiteNotification |
|
|
11
|
+
| [**searchExcludingRelationsSite**](SiteApi.md#searchexcludingrelationssite) | **POST** /admin-api/site/search-excluding-relations | Auto-generated: searchExcludingRelationsSite |
|
|
11
12
|
| [**showSite**](SiteApi.md#showsite) | **GET** /admin-api/site/{site} | Auto-generated: showSite |
|
|
12
13
|
| [**storeSiteNotification**](SiteApi.md#storesitenotificationoperation) | **POST** /admin-api/site/notification/create | Auto-generated: storeSiteNotification |
|
|
13
14
|
| [**updateSite**](SiteApi.md#updatesiteoperation) | **PUT** /admin-api/site/{site}/update | Auto-generated: updateSite |
|
|
@@ -147,7 +148,7 @@ No authorization required
|
|
|
147
148
|
|
|
148
149
|
## indexSite
|
|
149
150
|
|
|
150
|
-
>
|
|
151
|
+
> PaginatedSiteListResourceResponse indexSite(indexSiteRequest)
|
|
151
152
|
|
|
152
153
|
Auto-generated: indexSite
|
|
153
154
|
|
|
@@ -190,7 +191,7 @@ example().catch(console.error);
|
|
|
190
191
|
|
|
191
192
|
### Return type
|
|
192
193
|
|
|
193
|
-
[**
|
|
194
|
+
[**PaginatedSiteListResourceResponse**](PaginatedSiteListResourceResponse.md)
|
|
194
195
|
|
|
195
196
|
### Authorization
|
|
196
197
|
|
|
@@ -205,7 +206,7 @@ No authorization required
|
|
|
205
206
|
### HTTP response details
|
|
206
207
|
| Status code | Description | Response headers |
|
|
207
208
|
|-------------|-------------|------------------|
|
|
208
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
209
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\SiteListResource[]>> | - |
|
|
209
210
|
|
|
210
211
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
211
212
|
|
|
@@ -275,6 +276,71 @@ No authorization required
|
|
|
275
276
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
276
277
|
|
|
277
278
|
|
|
279
|
+
## searchExcludingRelationsSite
|
|
280
|
+
|
|
281
|
+
> PaginatedSiteListResourceResponse searchExcludingRelationsSite(indexSiteRequest)
|
|
282
|
+
|
|
283
|
+
Auto-generated: searchExcludingRelationsSite
|
|
284
|
+
|
|
285
|
+
### Example
|
|
286
|
+
|
|
287
|
+
```ts
|
|
288
|
+
import {
|
|
289
|
+
Configuration,
|
|
290
|
+
SiteApi,
|
|
291
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
292
|
+
import type { SearchExcludingRelationsSiteRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
293
|
+
|
|
294
|
+
async function example() {
|
|
295
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
296
|
+
const api = new SiteApi();
|
|
297
|
+
|
|
298
|
+
const body = {
|
|
299
|
+
// IndexSiteRequest (optional)
|
|
300
|
+
indexSiteRequest: ...,
|
|
301
|
+
} satisfies SearchExcludingRelationsSiteRequest;
|
|
302
|
+
|
|
303
|
+
try {
|
|
304
|
+
const data = await api.searchExcludingRelationsSite(body);
|
|
305
|
+
console.log(data);
|
|
306
|
+
} catch (error) {
|
|
307
|
+
console.error(error);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// Run the test
|
|
312
|
+
example().catch(console.error);
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### Parameters
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
| Name | Type | Description | Notes |
|
|
319
|
+
|------------- | ------------- | ------------- | -------------|
|
|
320
|
+
| **indexSiteRequest** | [IndexSiteRequest](IndexSiteRequest.md) | | [Optional] |
|
|
321
|
+
|
|
322
|
+
### Return type
|
|
323
|
+
|
|
324
|
+
[**PaginatedSiteListResourceResponse**](PaginatedSiteListResourceResponse.md)
|
|
325
|
+
|
|
326
|
+
### Authorization
|
|
327
|
+
|
|
328
|
+
No authorization required
|
|
329
|
+
|
|
330
|
+
### HTTP request headers
|
|
331
|
+
|
|
332
|
+
- **Content-Type**: `application/json`
|
|
333
|
+
- **Accept**: `application/json`
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### HTTP response details
|
|
337
|
+
| Status code | Description | Response headers |
|
|
338
|
+
|-------------|-------------|------------------|
|
|
339
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\SiteListResource[]>> | - |
|
|
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
|
+
|
|
278
344
|
## showSite
|
|
279
345
|
|
|
280
346
|
> SiteResource showSite(site)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# SiteListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`abbreviation` | string
|
|
12
|
+
`domain` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { SiteListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"name": null,
|
|
23
|
+
"abbreviation": null,
|
|
24
|
+
"domain": null,
|
|
25
|
+
} satisfies SiteListResource
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as SiteListResource
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# SiteListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<SiteListResource>](SiteListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { SiteListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies SiteListResourceArrayResponse
|
|
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 SiteListResourceArrayResponse
|
|
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/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/AttributeApi.ts
CHANGED
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
IndexAttributeRequest,
|
|
25
25
|
LinkProductTypeAttributeRequest,
|
|
26
26
|
ModelAttributeResourceArrayResponse,
|
|
27
|
-
|
|
27
|
+
PaginatedAttributeListResourceResponse,
|
|
28
28
|
StoreAttributeRequest,
|
|
29
29
|
StoreAttributeValueRequest,
|
|
30
30
|
UpdateAttributeRequest,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
LinkProductTypeAttributeRequestToJSON,
|
|
52
52
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
53
53
|
ModelAttributeResourceArrayResponseToJSON,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
PaginatedAttributeListResourceResponseFromJSON,
|
|
55
|
+
PaginatedAttributeListResourceResponseToJSON,
|
|
56
56
|
StoreAttributeRequestFromJSON,
|
|
57
57
|
StoreAttributeRequestToJSON,
|
|
58
58
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -89,6 +89,10 @@ export interface LinkProductTypeAttributeOperationRequest {
|
|
|
89
89
|
linkProductTypeAttributeRequest?: LinkProductTypeAttributeRequest;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
export interface SearchExcludingRelationsAttributeRequest {
|
|
93
|
+
indexAttributeRequest?: IndexAttributeRequest;
|
|
94
|
+
}
|
|
95
|
+
|
|
92
96
|
export interface ShowAttributeRequest {
|
|
93
97
|
attribute: number;
|
|
94
98
|
}
|
|
@@ -247,7 +251,7 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
247
251
|
/**
|
|
248
252
|
* Auto-generated: indexAttribute
|
|
249
253
|
*/
|
|
250
|
-
async indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
254
|
+
async indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeListResourceResponse>> {
|
|
251
255
|
const queryParameters: any = {};
|
|
252
256
|
|
|
253
257
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -265,13 +269,13 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
265
269
|
body: IndexAttributeRequestToJSON(requestParameters['indexAttributeRequest']),
|
|
266
270
|
}, initOverrides);
|
|
267
271
|
|
|
268
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
272
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeListResourceResponseFromJSON(jsonValue));
|
|
269
273
|
}
|
|
270
274
|
|
|
271
275
|
/**
|
|
272
276
|
* Auto-generated: indexAttribute
|
|
273
277
|
*/
|
|
274
|
-
async indexAttribute(requestParameters: IndexAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
278
|
+
async indexAttribute(requestParameters: IndexAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse> {
|
|
275
279
|
const response = await this.indexAttributeRaw(requestParameters, initOverrides);
|
|
276
280
|
return await response.value();
|
|
277
281
|
}
|
|
@@ -316,6 +320,38 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
316
320
|
return await response.value();
|
|
317
321
|
}
|
|
318
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Auto-generated: searchExcludingRelationsAttribute
|
|
325
|
+
*/
|
|
326
|
+
async searchExcludingRelationsAttributeRaw(requestParameters: SearchExcludingRelationsAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeListResourceResponse>> {
|
|
327
|
+
const queryParameters: any = {};
|
|
328
|
+
|
|
329
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
330
|
+
|
|
331
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
let urlPath = `/admin-api/attribute/search-excluding-relations`;
|
|
335
|
+
|
|
336
|
+
const response = await this.request({
|
|
337
|
+
path: urlPath,
|
|
338
|
+
method: 'POST',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
body: IndexAttributeRequestToJSON(requestParameters['indexAttributeRequest']),
|
|
342
|
+
}, initOverrides);
|
|
343
|
+
|
|
344
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeListResourceResponseFromJSON(jsonValue));
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Auto-generated: searchExcludingRelationsAttribute
|
|
349
|
+
*/
|
|
350
|
+
async searchExcludingRelationsAttribute(requestParameters: SearchExcludingRelationsAttributeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse> {
|
|
351
|
+
const response = await this.searchExcludingRelationsAttributeRaw(requestParameters, initOverrides);
|
|
352
|
+
return await response.value();
|
|
353
|
+
}
|
|
354
|
+
|
|
319
355
|
/**
|
|
320
356
|
* Auto-generated: showAttribute
|
|
321
357
|
*/
|
|
@@ -19,8 +19,8 @@ import type {
|
|
|
19
19
|
GetAllProductTypeRequest,
|
|
20
20
|
IndexProductTypeRequest,
|
|
21
21
|
LinkAttributeProductTypeRequest,
|
|
22
|
+
PaginatedProductTypeListResourceResponse,
|
|
22
23
|
PaginatedProductTypeLiteResourceResponse,
|
|
23
|
-
PaginatedProductTypeResourceResponse,
|
|
24
24
|
ProductTypeResource,
|
|
25
25
|
StoreProductTypeRequest,
|
|
26
26
|
UpdateProductTypeRequest,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
IndexProductTypeRequestToJSON,
|
|
35
35
|
LinkAttributeProductTypeRequestFromJSON,
|
|
36
36
|
LinkAttributeProductTypeRequestToJSON,
|
|
37
|
+
PaginatedProductTypeListResourceResponseFromJSON,
|
|
38
|
+
PaginatedProductTypeListResourceResponseToJSON,
|
|
37
39
|
PaginatedProductTypeLiteResourceResponseFromJSON,
|
|
38
40
|
PaginatedProductTypeLiteResourceResponseToJSON,
|
|
39
|
-
PaginatedProductTypeResourceResponseFromJSON,
|
|
40
|
-
PaginatedProductTypeResourceResponseToJSON,
|
|
41
41
|
ProductTypeResourceFromJSON,
|
|
42
42
|
ProductTypeResourceToJSON,
|
|
43
43
|
StoreProductTypeRequestFromJSON,
|
|
@@ -63,6 +63,10 @@ export interface LinkAttributeProductTypeOperationRequest {
|
|
|
63
63
|
linkAttributeProductTypeRequest?: LinkAttributeProductTypeRequest;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export interface SearchExcludingRelationsProductTypeRequest {
|
|
67
|
+
indexProductTypeRequest?: IndexProductTypeRequest;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
export interface ShowProductTypeRequest {
|
|
67
71
|
productType: number;
|
|
68
72
|
}
|
|
@@ -163,7 +167,7 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
163
167
|
/**
|
|
164
168
|
* Auto-generated: indexProductType
|
|
165
169
|
*/
|
|
166
|
-
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
170
|
+
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>> {
|
|
167
171
|
const queryParameters: any = {};
|
|
168
172
|
|
|
169
173
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -181,13 +185,13 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
181
185
|
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
182
186
|
}, initOverrides);
|
|
183
187
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
188
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeListResourceResponseFromJSON(jsonValue));
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
/**
|
|
188
192
|
* Auto-generated: indexProductType
|
|
189
193
|
*/
|
|
190
|
-
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
194
|
+
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse> {
|
|
191
195
|
const response = await this.indexProductTypeRaw(requestParameters, initOverrides);
|
|
192
196
|
return await response.value();
|
|
193
197
|
}
|
|
@@ -232,6 +236,38 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
232
236
|
return await response.value();
|
|
233
237
|
}
|
|
234
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Auto-generated: searchExcludingRelationsProductType
|
|
241
|
+
*/
|
|
242
|
+
async searchExcludingRelationsProductTypeRaw(requestParameters: SearchExcludingRelationsProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>> {
|
|
243
|
+
const queryParameters: any = {};
|
|
244
|
+
|
|
245
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
246
|
+
|
|
247
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
let urlPath = `/admin-api/product-type/search-excluding-relations`;
|
|
251
|
+
|
|
252
|
+
const response = await this.request({
|
|
253
|
+
path: urlPath,
|
|
254
|
+
method: 'POST',
|
|
255
|
+
headers: headerParameters,
|
|
256
|
+
query: queryParameters,
|
|
257
|
+
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
258
|
+
}, initOverrides);
|
|
259
|
+
|
|
260
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeListResourceResponseFromJSON(jsonValue));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Auto-generated: searchExcludingRelationsProductType
|
|
265
|
+
*/
|
|
266
|
+
async searchExcludingRelationsProductType(requestParameters: SearchExcludingRelationsProductTypeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse> {
|
|
267
|
+
const response = await this.searchExcludingRelationsProductTypeRaw(requestParameters, initOverrides);
|
|
268
|
+
return await response.value();
|
|
269
|
+
}
|
|
270
|
+
|
|
235
271
|
/**
|
|
236
272
|
* Auto-generated: showProductType
|
|
237
273
|
*/
|
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
|
*/
|