@digital8/lighting-illusions-ts-sdk 0.0.572 → 0.0.574
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 +4 -16
- package/README.md +6 -10
- package/dist/apis/ProductCategoryApi.d.ts +25 -1
- package/dist/apis/ProductCategoryApi.js +96 -0
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/AttachProductsProductCategoryRequest.js +51 -0
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/DetachProductsProductCategoryRequest.js +51 -0
- package/dist/models/index.d.ts +2 -8
- package/dist/models/index.js +2 -8
- package/docs/{GlobalSearchCategoryResource.md → AttachProductsProductCategoryRequest.md} +6 -10
- package/docs/{GlobalSearchRangeResourceArrayResponse.md → DetachProductsProductCategoryRequest.md} +6 -6
- package/docs/ProductCategoryApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +96 -0
- package/src/models/AttachProductsProductCategoryRequest.ts +66 -0
- package/src/models/DetachProductsProductCategoryRequest.ts +66 -0
- package/src/models/index.ts +2 -8
- package/dist/models/GlobalSearchCategoryResource.d.ts +0 -44
- package/dist/models/GlobalSearchCategoryResource.js +0 -59
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchProductResource.d.ts +0 -86
- package/dist/models/GlobalSearchProductResource.js +0 -87
- package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchProductResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchRangeResource.d.ts +0 -56
- package/dist/models/GlobalSearchRangeResource.js +0 -67
- package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchRangeResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchResponseResource.d.ts +0 -47
- package/dist/models/GlobalSearchResponseResource.js +0 -62
- package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchResponseResourceArrayResponse.js +0 -50
- package/docs/GlobalSearchCategoryResourceArrayResponse.md +0 -34
- package/docs/GlobalSearchProductResource.md +0 -52
- package/docs/GlobalSearchProductResourceArrayResponse.md +0 -34
- package/docs/GlobalSearchRangeResource.md +0 -42
- package/docs/GlobalSearchResponseResource.md +0 -38
- package/docs/GlobalSearchResponseResourceArrayResponse.md +0 -34
- package/src/models/GlobalSearchCategoryResource.ts +0 -84
- package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchProductResource.ts +0 -147
- package/src/models/GlobalSearchProductResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchRangeResource.ts +0 -102
- package/src/models/GlobalSearchRangeResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchResponseResource.ts +0 -106
- package/src/models/GlobalSearchResponseResourceArrayResponse.ts +0 -73
|
@@ -4,7 +4,9 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**attachProductsProductCategory**](ProductCategoryApi.md#attachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/attach-products | Auto-generated: attachProductsProductCategory |
|
|
7
8
|
| [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
|
|
9
|
+
| [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
|
|
8
10
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
9
11
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
10
12
|
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
@@ -16,6 +18,74 @@ All URIs are relative to *http://localhost/api*
|
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
|
|
21
|
+
## attachProductsProductCategory
|
|
22
|
+
|
|
23
|
+
> ProductCategoryResource attachProductsProductCategory(productCategory, attachProductsProductCategoryRequest)
|
|
24
|
+
|
|
25
|
+
Auto-generated: attachProductsProductCategory
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import {
|
|
31
|
+
Configuration,
|
|
32
|
+
ProductCategoryApi,
|
|
33
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
34
|
+
import type { AttachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
35
|
+
|
|
36
|
+
async function example() {
|
|
37
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
38
|
+
const api = new ProductCategoryApi();
|
|
39
|
+
|
|
40
|
+
const body = {
|
|
41
|
+
// number | The id of the productCategory
|
|
42
|
+
productCategory: 56,
|
|
43
|
+
// AttachProductsProductCategoryRequest (optional)
|
|
44
|
+
attachProductsProductCategoryRequest: ...,
|
|
45
|
+
} satisfies AttachProductsProductCategoryOperationRequest;
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
const data = await api.attachProductsProductCategory(body);
|
|
49
|
+
console.log(data);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
console.error(error);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Run the test
|
|
56
|
+
example().catch(console.error);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Parameters
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
|------------- | ------------- | ------------- | -------------|
|
|
64
|
+
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
65
|
+
| **attachProductsProductCategoryRequest** | [AttachProductsProductCategoryRequest](AttachProductsProductCategoryRequest.md) | | [Optional] |
|
|
66
|
+
|
|
67
|
+
### Return type
|
|
68
|
+
|
|
69
|
+
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
70
|
+
|
|
71
|
+
### Authorization
|
|
72
|
+
|
|
73
|
+
No authorization required
|
|
74
|
+
|
|
75
|
+
### HTTP request headers
|
|
76
|
+
|
|
77
|
+
- **Content-Type**: `application/json`
|
|
78
|
+
- **Accept**: `application/json`
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### HTTP response details
|
|
82
|
+
| Status code | Description | Response headers |
|
|
83
|
+
|-------------|-------------|------------------|
|
|
84
|
+
| **200** | Successful resource response | - |
|
|
85
|
+
|
|
86
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
87
|
+
|
|
88
|
+
|
|
19
89
|
## destroyProductCategory
|
|
20
90
|
|
|
21
91
|
> GenericResponse destroyProductCategory(productCategory)
|
|
@@ -81,6 +151,74 @@ No authorization required
|
|
|
81
151
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
82
152
|
|
|
83
153
|
|
|
154
|
+
## detachProductsProductCategory
|
|
155
|
+
|
|
156
|
+
> ProductCategoryResource detachProductsProductCategory(productCategory, detachProductsProductCategoryRequest)
|
|
157
|
+
|
|
158
|
+
Auto-generated: detachProductsProductCategory
|
|
159
|
+
|
|
160
|
+
### Example
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
import {
|
|
164
|
+
Configuration,
|
|
165
|
+
ProductCategoryApi,
|
|
166
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
167
|
+
import type { DetachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
168
|
+
|
|
169
|
+
async function example() {
|
|
170
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
171
|
+
const api = new ProductCategoryApi();
|
|
172
|
+
|
|
173
|
+
const body = {
|
|
174
|
+
// number | The id of the productCategory
|
|
175
|
+
productCategory: 56,
|
|
176
|
+
// DetachProductsProductCategoryRequest (optional)
|
|
177
|
+
detachProductsProductCategoryRequest: ...,
|
|
178
|
+
} satisfies DetachProductsProductCategoryOperationRequest;
|
|
179
|
+
|
|
180
|
+
try {
|
|
181
|
+
const data = await api.detachProductsProductCategory(body);
|
|
182
|
+
console.log(data);
|
|
183
|
+
} catch (error) {
|
|
184
|
+
console.error(error);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Run the test
|
|
189
|
+
example().catch(console.error);
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Parameters
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
| Name | Type | Description | Notes |
|
|
196
|
+
|------------- | ------------- | ------------- | -------------|
|
|
197
|
+
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
198
|
+
| **detachProductsProductCategoryRequest** | [DetachProductsProductCategoryRequest](DetachProductsProductCategoryRequest.md) | | [Optional] |
|
|
199
|
+
|
|
200
|
+
### Return type
|
|
201
|
+
|
|
202
|
+
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
203
|
+
|
|
204
|
+
### Authorization
|
|
205
|
+
|
|
206
|
+
No authorization required
|
|
207
|
+
|
|
208
|
+
### HTTP request headers
|
|
209
|
+
|
|
210
|
+
- **Content-Type**: `application/json`
|
|
211
|
+
- **Accept**: `application/json`
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### HTTP response details
|
|
215
|
+
| Status code | Description | Response headers |
|
|
216
|
+
|-------------|-------------|------------------|
|
|
217
|
+
| **200** | Successful resource response | - |
|
|
218
|
+
|
|
219
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
220
|
+
|
|
221
|
+
|
|
84
222
|
## getAllProductCategory
|
|
85
223
|
|
|
86
224
|
> ProductCategoryLiteResourceArrayResponse getAllProductCategory(getAllProductCategoryRequest)
|
package/package.json
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachProductsProductCategoryRequest,
|
|
19
|
+
DetachProductsProductCategoryRequest,
|
|
18
20
|
GenericResponse,
|
|
19
21
|
GetAllProductCategoryRequest,
|
|
20
22
|
IndexProductCategoryRequest,
|
|
@@ -28,6 +30,10 @@ import type {
|
|
|
28
30
|
UpdateProductCategoryRequest,
|
|
29
31
|
} from '../models/index';
|
|
30
32
|
import {
|
|
33
|
+
AttachProductsProductCategoryRequestFromJSON,
|
|
34
|
+
AttachProductsProductCategoryRequestToJSON,
|
|
35
|
+
DetachProductsProductCategoryRequestFromJSON,
|
|
36
|
+
DetachProductsProductCategoryRequestToJSON,
|
|
31
37
|
GenericResponseFromJSON,
|
|
32
38
|
GenericResponseToJSON,
|
|
33
39
|
GetAllProductCategoryRequestFromJSON,
|
|
@@ -52,10 +58,20 @@ import {
|
|
|
52
58
|
UpdateProductCategoryRequestToJSON,
|
|
53
59
|
} from '../models/index';
|
|
54
60
|
|
|
61
|
+
export interface AttachProductsProductCategoryOperationRequest {
|
|
62
|
+
productCategory: number;
|
|
63
|
+
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
55
66
|
export interface DestroyProductCategoryRequest {
|
|
56
67
|
productCategory: number;
|
|
57
68
|
}
|
|
58
69
|
|
|
70
|
+
export interface DetachProductsProductCategoryOperationRequest {
|
|
71
|
+
productCategory: number;
|
|
72
|
+
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
73
|
+
}
|
|
74
|
+
|
|
59
75
|
export interface GetAllProductCategoryOperationRequest {
|
|
60
76
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
61
77
|
}
|
|
@@ -91,6 +107,46 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
91
107
|
*/
|
|
92
108
|
export class ProductCategoryApi extends runtime.BaseAPI {
|
|
93
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Auto-generated: attachProductsProductCategory
|
|
112
|
+
*/
|
|
113
|
+
async attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
114
|
+
if (requestParameters['productCategory'] == null) {
|
|
115
|
+
throw new runtime.RequiredError(
|
|
116
|
+
'productCategory',
|
|
117
|
+
'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const queryParameters: any = {};
|
|
122
|
+
|
|
123
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
124
|
+
|
|
125
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
let urlPath = `/admin-api/product-category/{productCategory}/attach-products`;
|
|
129
|
+
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
130
|
+
|
|
131
|
+
const response = await this.request({
|
|
132
|
+
path: urlPath,
|
|
133
|
+
method: 'POST',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
body: AttachProductsProductCategoryRequestToJSON(requestParameters['attachProductsProductCategoryRequest']),
|
|
137
|
+
}, initOverrides);
|
|
138
|
+
|
|
139
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Auto-generated: attachProductsProductCategory
|
|
144
|
+
*/
|
|
145
|
+
async attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
146
|
+
const response = await this.attachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
147
|
+
return await response.value();
|
|
148
|
+
}
|
|
149
|
+
|
|
94
150
|
/**
|
|
95
151
|
* Auto-generated: destroyProductCategory
|
|
96
152
|
*/
|
|
@@ -128,6 +184,46 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
128
184
|
return await response.value();
|
|
129
185
|
}
|
|
130
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Auto-generated: detachProductsProductCategory
|
|
189
|
+
*/
|
|
190
|
+
async detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
191
|
+
if (requestParameters['productCategory'] == null) {
|
|
192
|
+
throw new runtime.RequiredError(
|
|
193
|
+
'productCategory',
|
|
194
|
+
'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().'
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const queryParameters: any = {};
|
|
199
|
+
|
|
200
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
201
|
+
|
|
202
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
let urlPath = `/admin-api/product-category/{productCategory}/detach-products`;
|
|
206
|
+
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
207
|
+
|
|
208
|
+
const response = await this.request({
|
|
209
|
+
path: urlPath,
|
|
210
|
+
method: 'POST',
|
|
211
|
+
headers: headerParameters,
|
|
212
|
+
query: queryParameters,
|
|
213
|
+
body: DetachProductsProductCategoryRequestToJSON(requestParameters['detachProductsProductCategoryRequest']),
|
|
214
|
+
}, initOverrides);
|
|
215
|
+
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Auto-generated: detachProductsProductCategory
|
|
221
|
+
*/
|
|
222
|
+
async detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
223
|
+
const response = await this.detachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
224
|
+
return await response.value();
|
|
225
|
+
}
|
|
226
|
+
|
|
131
227
|
/**
|
|
132
228
|
* Auto-generated: getAllProductCategory
|
|
133
229
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
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 AttachProductsProductCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AttachProductsProductCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AttachProductsProductCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
productChildSiteDetailIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AttachProductsProductCategoryRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAttachProductsProductCategoryRequest(value: object): value is AttachProductsProductCategoryRequest {
|
|
34
|
+
if (!('productChildSiteDetailIds' in value) || value['productChildSiteDetailIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AttachProductsProductCategoryRequestFromJSON(json: any): AttachProductsProductCategoryRequest {
|
|
39
|
+
return AttachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AttachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachProductsProductCategoryRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'productChildSiteDetailIds': json['product_child_site_detail_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AttachProductsProductCategoryRequestToJSON(json: any): AttachProductsProductCategoryRequest {
|
|
53
|
+
return AttachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AttachProductsProductCategoryRequestToJSONTyped(value?: AttachProductsProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'product_child_site_detail_ids': value['productChildSiteDetailIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 DetachProductsProductCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DetachProductsProductCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof DetachProductsProductCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
productChildSiteDetailIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DetachProductsProductCategoryRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDetachProductsProductCategoryRequest(value: object): value is DetachProductsProductCategoryRequest {
|
|
34
|
+
if (!('productChildSiteDetailIds' in value) || value['productChildSiteDetailIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DetachProductsProductCategoryRequestFromJSON(json: any): DetachProductsProductCategoryRequest {
|
|
39
|
+
return DetachProductsProductCategoryRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DetachProductsProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachProductsProductCategoryRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'productChildSiteDetailIds': json['product_child_site_detail_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DetachProductsProductCategoryRequestToJSON(json: any): DetachProductsProductCategoryRequest {
|
|
53
|
+
return DetachProductsProductCategoryRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DetachProductsProductCategoryRequestToJSONTyped(value?: DetachProductsProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'product_child_site_detail_ids': value['productChildSiteDetailIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
|
14
14
|
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
15
15
|
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
16
16
|
export * from './AttachProductTypeAttributeRequest';
|
|
17
|
+
export * from './AttachProductsProductCategoryRequest';
|
|
17
18
|
export * from './AttributeFieldType';
|
|
18
19
|
export * from './AttributeListResource';
|
|
19
20
|
export * from './AttributeListResourceArrayResponse';
|
|
@@ -39,6 +40,7 @@ export * from './DetachAssetableOverlayTemplateRequest';
|
|
|
39
40
|
export * from './DetachDocumentablesDocumentRequest';
|
|
40
41
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
41
42
|
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
43
|
+
export * from './DetachProductsProductCategoryRequest';
|
|
42
44
|
export * from './DocumentFileForUploadResource';
|
|
43
45
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
44
46
|
export * from './DocumentLiteResource';
|
|
@@ -61,14 +63,6 @@ export * from './GetAllProductChildRequest';
|
|
|
61
63
|
export * from './GetAllProductRequest';
|
|
62
64
|
export * from './GetAllProductTypeRequest';
|
|
63
65
|
export * from './GetAllSupplierRequest';
|
|
64
|
-
export * from './GlobalSearchCategoryResource';
|
|
65
|
-
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
66
|
-
export * from './GlobalSearchProductResource';
|
|
67
|
-
export * from './GlobalSearchProductResourceArrayResponse';
|
|
68
|
-
export * from './GlobalSearchRangeResource';
|
|
69
|
-
export * from './GlobalSearchRangeResourceArrayResponse';
|
|
70
|
-
export * from './GlobalSearchResponseResource';
|
|
71
|
-
export * from './GlobalSearchResponseResourceArrayResponse';
|
|
72
66
|
export * from './GoogleCategoryResource';
|
|
73
67
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
74
68
|
export * from './IndexAttributeRequest';
|
|
@@ -1,44 +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 GlobalSearchCategoryResource
|
|
16
|
-
*/
|
|
17
|
-
export interface GlobalSearchCategoryResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof GlobalSearchCategoryResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof GlobalSearchCategoryResource
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof GlobalSearchCategoryResource
|
|
34
|
-
*/
|
|
35
|
-
slug: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource;
|
|
41
|
-
export declare function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource;
|
|
42
|
-
export declare function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource;
|
|
43
|
-
export declare function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource;
|
|
44
|
-
export declare function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +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.instanceOfGlobalSearchCategoryResource = instanceOfGlobalSearchCategoryResource;
|
|
17
|
-
exports.GlobalSearchCategoryResourceFromJSON = GlobalSearchCategoryResourceFromJSON;
|
|
18
|
-
exports.GlobalSearchCategoryResourceFromJSONTyped = GlobalSearchCategoryResourceFromJSONTyped;
|
|
19
|
-
exports.GlobalSearchCategoryResourceToJSON = GlobalSearchCategoryResourceToJSON;
|
|
20
|
-
exports.GlobalSearchCategoryResourceToJSONTyped = GlobalSearchCategoryResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfGlobalSearchCategoryResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function GlobalSearchCategoryResourceFromJSON(json) {
|
|
34
|
-
return GlobalSearchCategoryResourceFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function GlobalSearchCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'id': json['id'],
|
|
42
|
-
'name': json['name'],
|
|
43
|
-
'slug': json['slug'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function GlobalSearchCategoryResourceToJSON(json) {
|
|
47
|
-
return GlobalSearchCategoryResourceToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function GlobalSearchCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'id': value['id'],
|
|
56
|
-
'name': value['name'],
|
|
57
|
-
'slug': value['slug'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,33 +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
|
-
import type { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GlobalSearchCategoryResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface GlobalSearchCategoryResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<GlobalSearchCategoryResource>}
|
|
22
|
-
* @memberof GlobalSearchCategoryResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<GlobalSearchCategoryResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfGlobalSearchCategoryResourceArrayResponse(value: object): value is GlobalSearchCategoryResourceArrayResponse;
|
|
30
|
-
export declare function GlobalSearchCategoryResourceArrayResponseFromJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
|
|
31
|
-
export declare function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResourceArrayResponse;
|
|
32
|
-
export declare function GlobalSearchCategoryResourceArrayResponseToJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
|
|
33
|
-
export declare function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value?: GlobalSearchCategoryResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfGlobalSearchCategoryResourceArrayResponse = instanceOfGlobalSearchCategoryResourceArrayResponse;
|
|
17
|
-
exports.GlobalSearchCategoryResourceArrayResponseFromJSON = GlobalSearchCategoryResourceArrayResponseFromJSON;
|
|
18
|
-
exports.GlobalSearchCategoryResourceArrayResponseFromJSONTyped = GlobalSearchCategoryResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.GlobalSearchCategoryResourceArrayResponseToJSON = GlobalSearchCategoryResourceArrayResponseToJSON;
|
|
20
|
-
exports.GlobalSearchCategoryResourceArrayResponseToJSONTyped = GlobalSearchCategoryResourceArrayResponseToJSONTyped;
|
|
21
|
-
var GlobalSearchCategoryResource_1 = require("./GlobalSearchCategoryResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfGlobalSearchCategoryResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function GlobalSearchCategoryResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function GlobalSearchCategoryResourceArrayResponseToJSON(json) {
|
|
40
|
-
return GlobalSearchCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|