@digital8/lighting-illusions-ts-sdk 0.0.2260 → 0.0.2261
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 +0 -10
- package/README.md +2 -7
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
- package/dist/models/CategoryAutomationFieldType.js +1 -3
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +4 -4
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/docs/ProductClassResource.md +1 -1
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +6 -4
- package/src/models/CategoryAutomationFieldType.ts +1 -3
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +0 -4
- package/dist/apis/ProductClassApi.d.ts +0 -34
- package/dist/apis/ProductClassApi.js +0 -139
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
- package/dist/models/ProductClassLiteResource.d.ts +0 -44
- package/dist/models/ProductClassLiteResource.js +0 -57
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
- package/dist/models/SearchProductClassesRequest.d.ts +0 -90
- package/dist/models/SearchProductClassesRequest.js +0 -78
- package/docs/PaginatedProductClassLiteResourceResponse.md +0 -36
- package/docs/ProductClassApi.md +0 -74
- package/docs/ProductClassLiteResource.md +0 -38
- package/docs/ProductClassLiteResourceArrayResponse.md +0 -34
- package/docs/SearchProductClassesRequest.md +0 -48
- package/src/apis/ProductClassApi.ts +0 -76
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
- package/src/models/ProductClassLiteResource.ts +0 -83
- package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
- package/src/models/SearchProductClassesRequest.ts +0 -141
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SearchProductClassesRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface SearchProductClassesRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SearchProductClassesRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {SearchProductClassesRequestSortByEnum}
|
|
27
|
-
* @memberof SearchProductClassesRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: SearchProductClassesRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {SearchProductClassesRequestSortDirectionEnum}
|
|
33
|
-
* @memberof SearchProductClassesRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: SearchProductClassesRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof SearchProductClassesRequest
|
|
40
|
-
*/
|
|
41
|
-
perPage?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof SearchProductClassesRequest
|
|
46
|
-
*/
|
|
47
|
-
page?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof SearchProductClassesRequest
|
|
52
|
-
*/
|
|
53
|
-
relatedId?: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SearchProductClassesRequest
|
|
58
|
-
*/
|
|
59
|
-
relatedType?: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {boolean}
|
|
63
|
-
* @memberof SearchProductClassesRequest
|
|
64
|
-
*/
|
|
65
|
-
includesRelations?: boolean;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export declare const SearchProductClassesRequestSortByEnum: {
|
|
71
|
-
readonly Id: "id";
|
|
72
|
-
readonly Name: "name";
|
|
73
|
-
};
|
|
74
|
-
export type SearchProductClassesRequestSortByEnum = typeof SearchProductClassesRequestSortByEnum[keyof typeof SearchProductClassesRequestSortByEnum];
|
|
75
|
-
/**
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
|
-
export declare const SearchProductClassesRequestSortDirectionEnum: {
|
|
79
|
-
readonly Asc: "asc";
|
|
80
|
-
readonly Desc: "desc";
|
|
81
|
-
};
|
|
82
|
-
export type SearchProductClassesRequestSortDirectionEnum = typeof SearchProductClassesRequestSortDirectionEnum[keyof typeof SearchProductClassesRequestSortDirectionEnum];
|
|
83
|
-
/**
|
|
84
|
-
* Check if a given object implements the SearchProductClassesRequest interface.
|
|
85
|
-
*/
|
|
86
|
-
export declare function instanceOfSearchProductClassesRequest(value: object): value is SearchProductClassesRequest;
|
|
87
|
-
export declare function SearchProductClassesRequestFromJSON(json: any): SearchProductClassesRequest;
|
|
88
|
-
export declare function SearchProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchProductClassesRequest;
|
|
89
|
-
export declare function SearchProductClassesRequestToJSON(json: any): SearchProductClassesRequest;
|
|
90
|
-
export declare function SearchProductClassesRequestToJSONTyped(value?: SearchProductClassesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SearchProductClassesRequestSortDirectionEnum = exports.SearchProductClassesRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfSearchProductClassesRequest = instanceOfSearchProductClassesRequest;
|
|
18
|
-
exports.SearchProductClassesRequestFromJSON = SearchProductClassesRequestFromJSON;
|
|
19
|
-
exports.SearchProductClassesRequestFromJSONTyped = SearchProductClassesRequestFromJSONTyped;
|
|
20
|
-
exports.SearchProductClassesRequestToJSON = SearchProductClassesRequestToJSON;
|
|
21
|
-
exports.SearchProductClassesRequestToJSONTyped = SearchProductClassesRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.SearchProductClassesRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
Name: 'name'
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
exports.SearchProductClassesRequestSortDirectionEnum = {
|
|
33
|
-
Asc: 'asc',
|
|
34
|
-
Desc: 'desc'
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the SearchProductClassesRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
function instanceOfSearchProductClassesRequest(value) {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
function SearchProductClassesRequestFromJSON(json) {
|
|
43
|
-
return SearchProductClassesRequestFromJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
function SearchProductClassesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
-
if (json == null) {
|
|
47
|
-
return json;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
54
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
55
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
56
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
57
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function SearchProductClassesRequestToJSON(json) {
|
|
61
|
-
return SearchProductClassesRequestToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
function SearchProductClassesRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
'search': value['search'],
|
|
70
|
-
'sortBy': value['sortBy'],
|
|
71
|
-
'sortDirection': value['sortDirection'],
|
|
72
|
-
'per_page': value['perPage'],
|
|
73
|
-
'page': value['page'],
|
|
74
|
-
'related_id': value['relatedId'],
|
|
75
|
-
'related_type': value['relatedType'],
|
|
76
|
-
'includes_relations': value['includesRelations'],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedProductClassLiteResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedProductClassLiteResourceResponse } 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 PaginatedProductClassLiteResourceResponse
|
|
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 PaginatedProductClassLiteResourceResponse
|
|
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/ProductClassApi.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# ProductClassApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getAllProductClass**](ProductClassApi.md#getallproductclass) | **POST** /admin-api/product-class/all | Auto-generated: getAllProductClass |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## getAllProductClass
|
|
12
|
-
|
|
13
|
-
> ProductClassLiteResourceArrayResponse getAllProductClass(searchProductClassesRequest)
|
|
14
|
-
|
|
15
|
-
Auto-generated: getAllProductClass
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
import {
|
|
21
|
-
Configuration,
|
|
22
|
-
ProductClassApi,
|
|
23
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
-
import type { GetAllProductClassRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
-
|
|
26
|
-
async function example() {
|
|
27
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
-
const api = new ProductClassApi();
|
|
29
|
-
|
|
30
|
-
const body = {
|
|
31
|
-
// SearchProductClassesRequest (optional)
|
|
32
|
-
searchProductClassesRequest: ...,
|
|
33
|
-
} satisfies GetAllProductClassRequest;
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
const data = await api.getAllProductClass(body);
|
|
37
|
-
console.log(data);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.error(error);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Run the test
|
|
44
|
-
example().catch(console.error);
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Parameters
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description | Notes |
|
|
51
|
-
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **searchProductClassesRequest** | [SearchProductClassesRequest](SearchProductClassesRequest.md) | | [Optional] |
|
|
53
|
-
|
|
54
|
-
### Return type
|
|
55
|
-
|
|
56
|
-
[**ProductClassLiteResourceArrayResponse**](ProductClassLiteResourceArrayResponse.md)
|
|
57
|
-
|
|
58
|
-
### Authorization
|
|
59
|
-
|
|
60
|
-
No authorization required
|
|
61
|
-
|
|
62
|
-
### HTTP request headers
|
|
63
|
-
|
|
64
|
-
- **Content-Type**: `application/json`
|
|
65
|
-
- **Accept**: `application/json`
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### HTTP response details
|
|
69
|
-
| Status code | Description | Response headers |
|
|
70
|
-
|-------------|-------------|------------------|
|
|
71
|
-
| **200** | Successful resource response | - |
|
|
72
|
-
|
|
73
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductClassLiteResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`pathString` | string
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { ProductClassLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"id": null,
|
|
21
|
-
"name": null,
|
|
22
|
-
"pathString": null,
|
|
23
|
-
} satisfies ProductClassLiteResource
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResource
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductClassLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductClassLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductClassLiteResourceArrayResponse
|
|
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 ProductClassLiteResourceArrayResponse
|
|
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
|
-
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# SearchProductClassesRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`perPage` | number
|
|
13
|
-
`page` | number
|
|
14
|
-
`relatedId` | number
|
|
15
|
-
`relatedType` | string
|
|
16
|
-
`includesRelations` | boolean
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { SearchProductClassesRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"search": null,
|
|
26
|
-
"sortBy": null,
|
|
27
|
-
"sortDirection": null,
|
|
28
|
-
"perPage": null,
|
|
29
|
-
"page": null,
|
|
30
|
-
"relatedId": null,
|
|
31
|
-
"relatedType": null,
|
|
32
|
-
"includesRelations": null,
|
|
33
|
-
} satisfies SearchProductClassesRequest
|
|
34
|
-
|
|
35
|
-
console.log(example)
|
|
36
|
-
|
|
37
|
-
// Convert the instance to a JSON string
|
|
38
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
-
console.log(exampleJSON)
|
|
40
|
-
|
|
41
|
-
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as SearchProductClassesRequest
|
|
43
|
-
console.log(exampleParsed)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
-
|
|
48
|
-
|
|
@@ -1,76 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
-
import {
|
|
17
|
-
type ProductClassLiteResourceArrayResponse,
|
|
18
|
-
ProductClassLiteResourceArrayResponseFromJSON,
|
|
19
|
-
ProductClassLiteResourceArrayResponseToJSON,
|
|
20
|
-
} from '../models/ProductClassLiteResourceArrayResponse';
|
|
21
|
-
import {
|
|
22
|
-
type SearchProductClassesRequest,
|
|
23
|
-
SearchProductClassesRequestFromJSON,
|
|
24
|
-
SearchProductClassesRequestToJSON,
|
|
25
|
-
} from '../models/SearchProductClassesRequest';
|
|
26
|
-
|
|
27
|
-
export interface GetAllProductClassRequest {
|
|
28
|
-
searchProductClassesRequest?: SearchProductClassesRequest;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export class ProductClassApi extends runtime.BaseAPI {
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Creates request options for getAllProductClass without sending the request
|
|
38
|
-
*/
|
|
39
|
-
async getAllProductClassRequestOpts(requestParameters: GetAllProductClassRequest): Promise<runtime.RequestOpts> {
|
|
40
|
-
const queryParameters: any = {};
|
|
41
|
-
|
|
42
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
43
|
-
|
|
44
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
let urlPath = `/admin-api/product-class/all`;
|
|
48
|
-
|
|
49
|
-
return {
|
|
50
|
-
path: urlPath,
|
|
51
|
-
method: 'POST',
|
|
52
|
-
headers: headerParameters,
|
|
53
|
-
query: queryParameters,
|
|
54
|
-
body: SearchProductClassesRequestToJSON(requestParameters['searchProductClassesRequest']),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Auto-generated: getAllProductClass
|
|
60
|
-
*/
|
|
61
|
-
async getAllProductClassRaw(requestParameters: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductClassLiteResourceArrayResponse>> {
|
|
62
|
-
const requestOptions = await this.getAllProductClassRequestOpts(requestParameters);
|
|
63
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
64
|
-
|
|
65
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductClassLiteResourceArrayResponseFromJSON(jsonValue));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Auto-generated: getAllProductClass
|
|
70
|
-
*/
|
|
71
|
-
async getAllProductClass(requestParameters: GetAllProductClassRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductClassLiteResourceArrayResponse> {
|
|
72
|
-
const response = await this.getAllProductClassRaw(requestParameters, initOverrides);
|
|
73
|
-
return await response.value();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
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 { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
24
|
-
import {
|
|
25
|
-
ProductClassLiteResourceFromJSON,
|
|
26
|
-
ProductClassLiteResourceFromJSONTyped,
|
|
27
|
-
ProductClassLiteResourceToJSON,
|
|
28
|
-
ProductClassLiteResourceToJSONTyped,
|
|
29
|
-
} from './ProductClassLiteResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedProductClassLiteResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedProductClassLiteResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<ProductClassLiteResource>}
|
|
40
|
-
* @memberof PaginatedProductClassLiteResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<ProductClassLiteResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedProductClassLiteResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedProductClassLiteResourceResponse(value: object): value is PaginatedProductClassLiteResourceResponse {
|
|
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 PaginatedProductClassLiteResourceResponseFromJSON(json: any): PaginatedProductClassLiteResourceResponse {
|
|
61
|
-
return PaginatedProductClassLiteResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedProductClassLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductClassLiteResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(ProductClassLiteResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedProductClassLiteResourceResponseToJSON(json: any): PaginatedProductClassLiteResourceResponse {
|
|
76
|
-
return PaginatedProductClassLiteResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedProductClassLiteResourceResponseToJSONTyped(value?: PaginatedProductClassLiteResourceResponse | 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(ProductClassLiteResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
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 ProductClassLiteResource
|
|
20
|
-
*/
|
|
21
|
-
export interface ProductClassLiteResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof ProductClassLiteResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ProductClassLiteResource
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ProductClassLiteResource
|
|
38
|
-
*/
|
|
39
|
-
pathString: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the ProductClassLiteResource interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfProductClassLiteResource(value: object): value is ProductClassLiteResource {
|
|
46
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
-
if (!('pathString' in value) || value['pathString'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function ProductClassLiteResourceFromJSON(json: any): ProductClassLiteResource {
|
|
52
|
-
return ProductClassLiteResourceFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function ProductClassLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResource {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
-
'name': json['name'],
|
|
63
|
-
'pathString': json['pathString'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function ProductClassLiteResourceToJSON(json: any): ProductClassLiteResource {
|
|
68
|
-
return ProductClassLiteResourceToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function ProductClassLiteResourceToJSONTyped(value?: ProductClassLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'id': value['id'],
|
|
79
|
-
'name': value['name'],
|
|
80
|
-
'pathString': value['pathString'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|