@digital8/lighting-illusions-ts-sdk 0.0.447 → 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 +12 -0
- package/README.md +10 -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/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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/IndexAttributeRequest.d.ts +8 -1
- package/dist/models/IndexAttributeRequest.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/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/index.d.ts +6 -0
- package/dist/models/index.js +6 -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/ProductTypeApi.md +69 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +42 -6
- package/src/apis/ProductTypeApi.ts +42 -6
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/IndexAttributeRequest.ts +9 -1
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductTypeListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductTypeListResource>](ProductTypeListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductTypeListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedProductTypeListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductTypeListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/ProductTypeApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
8
8
|
| [**getAllProductType**](ProductTypeApi.md#getallproducttypeoperation) | **POST** /admin-api/product-type/all | Auto-generated: getAllProductType |
|
|
9
9
|
| [**indexProductType**](ProductTypeApi.md#indexproducttypeoperation) | **POST** /admin-api/product-type/list | Auto-generated: indexProductType |
|
|
10
10
|
| [**linkAttributeProductType**](ProductTypeApi.md#linkattributeproducttypeoperation) | **POST** /admin-api/product-type/{productType}/link-attribute | Auto-generated: linkAttributeProductType |
|
|
11
|
+
| [**searchExcludingRelationsProductType**](ProductTypeApi.md#searchexcludingrelationsproducttype) | **POST** /admin-api/product-type/search-excluding-relations | Auto-generated: searchExcludingRelationsProductType |
|
|
11
12
|
| [**showProductType**](ProductTypeApi.md#showproducttype) | **GET** /admin-api/product-type/{productType} | Auto-generated: showProductType |
|
|
12
13
|
| [**storeProductType**](ProductTypeApi.md#storeproducttypeoperation) | **POST** /admin-api/product-type/create | Auto-generated: storeProductType |
|
|
13
14
|
| [**unlinkAttributeProductType**](ProductTypeApi.md#unlinkattributeproducttype) | **POST** /admin-api/product-type/{productType}/remove-attribute/{attribute} | Auto-generated: unlinkAttributeProductType |
|
|
@@ -148,7 +149,7 @@ No authorization required
|
|
|
148
149
|
|
|
149
150
|
## indexProductType
|
|
150
151
|
|
|
151
|
-
>
|
|
152
|
+
> PaginatedProductTypeListResourceResponse indexProductType(indexProductTypeRequest)
|
|
152
153
|
|
|
153
154
|
Auto-generated: indexProductType
|
|
154
155
|
|
|
@@ -191,7 +192,7 @@ example().catch(console.error);
|
|
|
191
192
|
|
|
192
193
|
### Return type
|
|
193
194
|
|
|
194
|
-
[**
|
|
195
|
+
[**PaginatedProductTypeListResourceResponse**](PaginatedProductTypeListResourceResponse.md)
|
|
195
196
|
|
|
196
197
|
### Authorization
|
|
197
198
|
|
|
@@ -206,7 +207,7 @@ No authorization required
|
|
|
206
207
|
### HTTP response details
|
|
207
208
|
| Status code | Description | Response headers |
|
|
208
209
|
|-------------|-------------|------------------|
|
|
209
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
210
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeListResource[]>> | - |
|
|
210
211
|
|
|
211
212
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
212
213
|
|
|
@@ -279,6 +280,71 @@ No authorization required
|
|
|
279
280
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
280
281
|
|
|
281
282
|
|
|
283
|
+
## searchExcludingRelationsProductType
|
|
284
|
+
|
|
285
|
+
> PaginatedProductTypeListResourceResponse searchExcludingRelationsProductType(indexProductTypeRequest)
|
|
286
|
+
|
|
287
|
+
Auto-generated: searchExcludingRelationsProductType
|
|
288
|
+
|
|
289
|
+
### Example
|
|
290
|
+
|
|
291
|
+
```ts
|
|
292
|
+
import {
|
|
293
|
+
Configuration,
|
|
294
|
+
ProductTypeApi,
|
|
295
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
296
|
+
import type { SearchExcludingRelationsProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
297
|
+
|
|
298
|
+
async function example() {
|
|
299
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
300
|
+
const api = new ProductTypeApi();
|
|
301
|
+
|
|
302
|
+
const body = {
|
|
303
|
+
// IndexProductTypeRequest (optional)
|
|
304
|
+
indexProductTypeRequest: ...,
|
|
305
|
+
} satisfies SearchExcludingRelationsProductTypeRequest;
|
|
306
|
+
|
|
307
|
+
try {
|
|
308
|
+
const data = await api.searchExcludingRelationsProductType(body);
|
|
309
|
+
console.log(data);
|
|
310
|
+
} catch (error) {
|
|
311
|
+
console.error(error);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Run the test
|
|
316
|
+
example().catch(console.error);
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Parameters
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
| Name | Type | Description | Notes |
|
|
323
|
+
|------------- | ------------- | ------------- | -------------|
|
|
324
|
+
| **indexProductTypeRequest** | [IndexProductTypeRequest](IndexProductTypeRequest.md) | | [Optional] |
|
|
325
|
+
|
|
326
|
+
### Return type
|
|
327
|
+
|
|
328
|
+
[**PaginatedProductTypeListResourceResponse**](PaginatedProductTypeListResourceResponse.md)
|
|
329
|
+
|
|
330
|
+
### Authorization
|
|
331
|
+
|
|
332
|
+
No authorization required
|
|
333
|
+
|
|
334
|
+
### HTTP request headers
|
|
335
|
+
|
|
336
|
+
- **Content-Type**: `application/json`
|
|
337
|
+
- **Accept**: `application/json`
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### HTTP response details
|
|
341
|
+
| Status code | Description | Response headers |
|
|
342
|
+
|-------------|-------------|------------------|
|
|
343
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeListResource[]>> | - |
|
|
344
|
+
|
|
345
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
346
|
+
|
|
347
|
+
|
|
282
348
|
## showProductType
|
|
283
349
|
|
|
284
350
|
> ProductTypeResource showProductType(productType)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductTypeListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ProductTypeListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies ProductTypeListResource
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductTypeListResource
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductTypeListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductTypeListResource>](ProductTypeListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductTypeListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductTypeListResourceArrayResponse
|
|
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 ProductTypeListResourceArrayResponse
|
|
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
|
*/
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AttributeListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AttributeListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AttributeListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AttributeListResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AttributeListResource
|
|
38
|
+
*/
|
|
39
|
+
type: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof AttributeListResource
|
|
44
|
+
*/
|
|
45
|
+
isFilterable: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AttributeListResource
|
|
50
|
+
*/
|
|
51
|
+
filterIndex: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AttributeListResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAttributeListResource(value: object): value is AttributeListResource {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
61
|
+
if (!('isFilterable' in value) || value['isFilterable'] === undefined) return false;
|
|
62
|
+
if (!('filterIndex' in value) || value['filterIndex'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AttributeListResourceFromJSON(json: any): AttributeListResource {
|
|
67
|
+
return AttributeListResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AttributeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'isFilterable': json['isFilterable'],
|
|
80
|
+
'filterIndex': json['filterIndex'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AttributeListResourceToJSON(json: any): AttributeListResource {
|
|
85
|
+
return AttributeListResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AttributeListResourceToJSONTyped(value?: AttributeListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'isFilterable': value['isFilterable'],
|
|
99
|
+
'filterIndex': value['filterIndex'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { AttributeListResource } from './AttributeListResource';
|
|
17
|
+
import {
|
|
18
|
+
AttributeListResourceFromJSON,
|
|
19
|
+
AttributeListResourceFromJSONTyped,
|
|
20
|
+
AttributeListResourceToJSON,
|
|
21
|
+
AttributeListResourceToJSONTyped,
|
|
22
|
+
} from './AttributeListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AttributeListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AttributeListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AttributeListResource>}
|
|
33
|
+
* @memberof AttributeListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AttributeListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AttributeListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAttributeListResourceArrayResponse(value: object): value is AttributeListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AttributeListResourceArrayResponseFromJSON(json: any): AttributeListResourceArrayResponse {
|
|
46
|
+
return AttributeListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AttributeListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AttributeListResourceArrayResponseToJSON(json: any): AttributeListResourceArrayResponse {
|
|
60
|
+
return AttributeListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AttributeListResourceArrayResponseToJSONTyped(value?: AttributeListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(AttributeListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -78,7 +78,7 @@ export interface IndexAttributeRequest {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof IndexAttributeRequest
|
|
80
80
|
*/
|
|
81
|
-
relatedType?:
|
|
81
|
+
relatedType?: IndexAttributeRequestRelatedTypeEnum;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
|
|
@@ -102,6 +102,14 @@ export const IndexAttributeRequestSortDirectionEnum = {
|
|
|
102
102
|
} as const;
|
|
103
103
|
export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeRequestSortDirectionEnum[keyof typeof IndexAttributeRequestSortDirectionEnum];
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export const IndexAttributeRequestRelatedTypeEnum = {
|
|
109
|
+
ProductType: 'productType'
|
|
110
|
+
} as const;
|
|
111
|
+
export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
|
|
112
|
+
|
|
105
113
|
|
|
106
114
|
/**
|
|
107
115
|
* Check if a given object implements the IndexAttributeRequest interface.
|