@digital8/lighting-illusions-ts-sdk 0.0.592 → 0.0.593
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 +16 -4
- package/README.md +10 -7
- package/dist/apis/ProductCategoryApi.d.ts +1 -36
- package/dist/apis/ProductCategoryApi.js +0 -142
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +0 -6
- package/dist/models/GetAllDocumentRequest.js +0 -2
- package/dist/models/GetAllProductChildRequest.d.ts +1 -1
- package/dist/models/GetAllProductChildRequest.js +3 -3
- package/dist/models/GlobalSearchCategoryResource.d.ts +44 -0
- package/dist/models/GlobalSearchCategoryResource.js +59 -0
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchProductResource.d.ts +86 -0
- package/dist/models/GlobalSearchProductResource.js +87 -0
- package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchProductResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchRangeResource.d.ts +56 -0
- package/dist/models/GlobalSearchRangeResource.js +67 -0
- package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchRangeResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchResponseResource.d.ts +47 -0
- package/dist/models/GlobalSearchResponseResource.js +62 -0
- package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/IndexDocumentRequest.d.ts +0 -6
- package/dist/models/IndexDocumentRequest.js +0 -2
- package/dist/models/IndexProductChildRequest.d.ts +1 -3
- package/dist/models/IndexProductChildRequest.js +3 -5
- package/dist/models/index.d.ts +8 -2
- package/dist/models/index.js +8 -2
- package/docs/GetAllDocumentRequest.md +0 -2
- package/docs/{AttachProductsProductCategoryRequest.md → GlobalSearchCategoryResource.md} +10 -6
- package/docs/GlobalSearchCategoryResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchProductResource.md +52 -0
- package/docs/GlobalSearchProductResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchRangeResource.md +42 -0
- package/docs/{DetachProductsProductCategoryRequest.md → GlobalSearchRangeResourceArrayResponse.md} +6 -6
- package/docs/GlobalSearchResponseResource.md +38 -0
- package/docs/GlobalSearchResponseResourceArrayResponse.md +34 -0
- package/docs/IndexDocumentRequest.md +0 -2
- package/docs/ProductCategoryApi.md +0 -204
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +0 -137
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +0 -8
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/GlobalSearchCategoryResource.ts +84 -0
- package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchProductResource.ts +147 -0
- package/src/models/GlobalSearchProductResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchRangeResource.ts +102 -0
- package/src/models/GlobalSearchRangeResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchResponseResource.ts +106 -0
- package/src/models/GlobalSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/IndexDocumentRequest.ts +0 -8
- package/src/models/IndexProductChildRequest.ts +3 -5
- package/src/models/index.ts +8 -2
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +0 -32
- package/dist/models/AttachProductsProductCategoryRequest.js +0 -51
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +0 -32
- package/dist/models/DetachProductsProductCategoryRequest.js +0 -51
- package/src/models/AttachProductsProductCategoryRequest.ts +0 -66
- package/src/models/DetachProductsProductCategoryRequest.ts +0 -66
|
@@ -4,10 +4,7 @@ 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 |
|
|
8
|
-
| [**bulkDetachProductsProductCategory**](ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory |
|
|
9
7
|
| [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
|
|
10
|
-
| [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
|
|
11
8
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
12
9
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
13
10
|
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
@@ -19,139 +16,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
19
16
|
|
|
20
17
|
|
|
21
18
|
|
|
22
|
-
## attachProductsProductCategory
|
|
23
|
-
|
|
24
|
-
> ProductCategoryResource attachProductsProductCategory(productCategory, attachProductsProductCategoryRequest)
|
|
25
|
-
|
|
26
|
-
Auto-generated: attachProductsProductCategory
|
|
27
|
-
|
|
28
|
-
### Example
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
import {
|
|
32
|
-
Configuration,
|
|
33
|
-
ProductCategoryApi,
|
|
34
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
35
|
-
import type { AttachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
36
|
-
|
|
37
|
-
async function example() {
|
|
38
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
39
|
-
const api = new ProductCategoryApi();
|
|
40
|
-
|
|
41
|
-
const body = {
|
|
42
|
-
// number | The id of the productCategory
|
|
43
|
-
productCategory: 56,
|
|
44
|
-
// AttachProductsProductCategoryRequest (optional)
|
|
45
|
-
attachProductsProductCategoryRequest: ...,
|
|
46
|
-
} satisfies AttachProductsProductCategoryOperationRequest;
|
|
47
|
-
|
|
48
|
-
try {
|
|
49
|
-
const data = await api.attachProductsProductCategory(body);
|
|
50
|
-
console.log(data);
|
|
51
|
-
} catch (error) {
|
|
52
|
-
console.error(error);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Run the test
|
|
57
|
-
example().catch(console.error);
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Parameters
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
| Name | Type | Description | Notes |
|
|
64
|
-
|------------- | ------------- | ------------- | -------------|
|
|
65
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
66
|
-
| **attachProductsProductCategoryRequest** | [AttachProductsProductCategoryRequest](AttachProductsProductCategoryRequest.md) | | [Optional] |
|
|
67
|
-
|
|
68
|
-
### Return type
|
|
69
|
-
|
|
70
|
-
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
71
|
-
|
|
72
|
-
### Authorization
|
|
73
|
-
|
|
74
|
-
No authorization required
|
|
75
|
-
|
|
76
|
-
### HTTP request headers
|
|
77
|
-
|
|
78
|
-
- **Content-Type**: `application/json`
|
|
79
|
-
- **Accept**: `application/json`
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### HTTP response details
|
|
83
|
-
| Status code | Description | Response headers |
|
|
84
|
-
|-------------|-------------|------------------|
|
|
85
|
-
| **200** | Successful resource response | - |
|
|
86
|
-
|
|
87
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## bulkDetachProductsProductCategory
|
|
91
|
-
|
|
92
|
-
> GenericResponse bulkDetachProductsProductCategory(productCategory)
|
|
93
|
-
|
|
94
|
-
Auto-generated: bulkDetachProductsProductCategory
|
|
95
|
-
|
|
96
|
-
### Example
|
|
97
|
-
|
|
98
|
-
```ts
|
|
99
|
-
import {
|
|
100
|
-
Configuration,
|
|
101
|
-
ProductCategoryApi,
|
|
102
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
103
|
-
import type { BulkDetachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
104
|
-
|
|
105
|
-
async function example() {
|
|
106
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
107
|
-
const api = new ProductCategoryApi();
|
|
108
|
-
|
|
109
|
-
const body = {
|
|
110
|
-
// number | The id of the productCategory
|
|
111
|
-
productCategory: 56,
|
|
112
|
-
} satisfies BulkDetachProductsProductCategoryRequest;
|
|
113
|
-
|
|
114
|
-
try {
|
|
115
|
-
const data = await api.bulkDetachProductsProductCategory(body);
|
|
116
|
-
console.log(data);
|
|
117
|
-
} catch (error) {
|
|
118
|
-
console.error(error);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Run the test
|
|
123
|
-
example().catch(console.error);
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Parameters
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
| Name | Type | Description | Notes |
|
|
130
|
-
|------------- | ------------- | ------------- | -------------|
|
|
131
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
132
|
-
|
|
133
|
-
### Return type
|
|
134
|
-
|
|
135
|
-
[**GenericResponse**](GenericResponse.md)
|
|
136
|
-
|
|
137
|
-
### Authorization
|
|
138
|
-
|
|
139
|
-
No authorization required
|
|
140
|
-
|
|
141
|
-
### HTTP request headers
|
|
142
|
-
|
|
143
|
-
- **Content-Type**: Not defined
|
|
144
|
-
- **Accept**: `application/json`
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### HTTP response details
|
|
148
|
-
| Status code | Description | Response headers |
|
|
149
|
-
|-------------|-------------|------------------|
|
|
150
|
-
| **200** | \\JsonResponse | - |
|
|
151
|
-
|
|
152
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
153
|
-
|
|
154
|
-
|
|
155
19
|
## destroyProductCategory
|
|
156
20
|
|
|
157
21
|
> GenericResponse destroyProductCategory(productCategory)
|
|
@@ -217,74 +81,6 @@ No authorization required
|
|
|
217
81
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
218
82
|
|
|
219
83
|
|
|
220
|
-
## detachProductsProductCategory
|
|
221
|
-
|
|
222
|
-
> ProductCategoryResource detachProductsProductCategory(productCategory, detachProductsProductCategoryRequest)
|
|
223
|
-
|
|
224
|
-
Auto-generated: detachProductsProductCategory
|
|
225
|
-
|
|
226
|
-
### Example
|
|
227
|
-
|
|
228
|
-
```ts
|
|
229
|
-
import {
|
|
230
|
-
Configuration,
|
|
231
|
-
ProductCategoryApi,
|
|
232
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
233
|
-
import type { DetachProductsProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
234
|
-
|
|
235
|
-
async function example() {
|
|
236
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
237
|
-
const api = new ProductCategoryApi();
|
|
238
|
-
|
|
239
|
-
const body = {
|
|
240
|
-
// number | The id of the productCategory
|
|
241
|
-
productCategory: 56,
|
|
242
|
-
// DetachProductsProductCategoryRequest (optional)
|
|
243
|
-
detachProductsProductCategoryRequest: ...,
|
|
244
|
-
} satisfies DetachProductsProductCategoryOperationRequest;
|
|
245
|
-
|
|
246
|
-
try {
|
|
247
|
-
const data = await api.detachProductsProductCategory(body);
|
|
248
|
-
console.log(data);
|
|
249
|
-
} catch (error) {
|
|
250
|
-
console.error(error);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Run the test
|
|
255
|
-
example().catch(console.error);
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Parameters
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
| Name | Type | Description | Notes |
|
|
262
|
-
|------------- | ------------- | ------------- | -------------|
|
|
263
|
-
| **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
|
|
264
|
-
| **detachProductsProductCategoryRequest** | [DetachProductsProductCategoryRequest](DetachProductsProductCategoryRequest.md) | | [Optional] |
|
|
265
|
-
|
|
266
|
-
### Return type
|
|
267
|
-
|
|
268
|
-
[**ProductCategoryResource**](ProductCategoryResource.md)
|
|
269
|
-
|
|
270
|
-
### Authorization
|
|
271
|
-
|
|
272
|
-
No authorization required
|
|
273
|
-
|
|
274
|
-
### HTTP request headers
|
|
275
|
-
|
|
276
|
-
- **Content-Type**: `application/json`
|
|
277
|
-
- **Accept**: `application/json`
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
### HTTP response details
|
|
281
|
-
| Status code | Description | Response headers |
|
|
282
|
-
|-------------|-------------|------------------|
|
|
283
|
-
| **200** | Successful resource response | - |
|
|
284
|
-
|
|
285
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
286
|
-
|
|
287
|
-
|
|
288
84
|
## getAllProductCategory
|
|
289
85
|
|
|
290
86
|
> ProductCategoryLiteResourceArrayResponse getAllProductCategory(getAllProductCategoryRequest)
|
package/package.json
CHANGED
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
AttachProductsProductCategoryRequest,
|
|
19
|
-
DetachProductsProductCategoryRequest,
|
|
20
18
|
GenericResponse,
|
|
21
19
|
GetAllProductCategoryRequest,
|
|
22
20
|
IndexProductCategoryRequest,
|
|
@@ -30,10 +28,6 @@ import type {
|
|
|
30
28
|
UpdateProductCategoryRequest,
|
|
31
29
|
} from '../models/index';
|
|
32
30
|
import {
|
|
33
|
-
AttachProductsProductCategoryRequestFromJSON,
|
|
34
|
-
AttachProductsProductCategoryRequestToJSON,
|
|
35
|
-
DetachProductsProductCategoryRequestFromJSON,
|
|
36
|
-
DetachProductsProductCategoryRequestToJSON,
|
|
37
31
|
GenericResponseFromJSON,
|
|
38
32
|
GenericResponseToJSON,
|
|
39
33
|
GetAllProductCategoryRequestFromJSON,
|
|
@@ -58,24 +52,10 @@ import {
|
|
|
58
52
|
UpdateProductCategoryRequestToJSON,
|
|
59
53
|
} from '../models/index';
|
|
60
54
|
|
|
61
|
-
export interface AttachProductsProductCategoryOperationRequest {
|
|
62
|
-
productCategory: number;
|
|
63
|
-
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface BulkDetachProductsProductCategoryRequest {
|
|
67
|
-
productCategory: number;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
55
|
export interface DestroyProductCategoryRequest {
|
|
71
56
|
productCategory: number;
|
|
72
57
|
}
|
|
73
58
|
|
|
74
|
-
export interface DetachProductsProductCategoryOperationRequest {
|
|
75
|
-
productCategory: number;
|
|
76
|
-
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
59
|
export interface GetAllProductCategoryOperationRequest {
|
|
80
60
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
81
61
|
}
|
|
@@ -111,83 +91,6 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
111
91
|
*/
|
|
112
92
|
export class ProductCategoryApi extends runtime.BaseAPI {
|
|
113
93
|
|
|
114
|
-
/**
|
|
115
|
-
* Auto-generated: attachProductsProductCategory
|
|
116
|
-
*/
|
|
117
|
-
async attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
118
|
-
if (requestParameters['productCategory'] == null) {
|
|
119
|
-
throw new runtime.RequiredError(
|
|
120
|
-
'productCategory',
|
|
121
|
-
'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().'
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const queryParameters: any = {};
|
|
126
|
-
|
|
127
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
|
-
|
|
129
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
let urlPath = `/admin-api/product-category/{productCategory}/attach-products`;
|
|
133
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
134
|
-
|
|
135
|
-
const response = await this.request({
|
|
136
|
-
path: urlPath,
|
|
137
|
-
method: 'POST',
|
|
138
|
-
headers: headerParameters,
|
|
139
|
-
query: queryParameters,
|
|
140
|
-
body: AttachProductsProductCategoryRequestToJSON(requestParameters['attachProductsProductCategoryRequest']),
|
|
141
|
-
}, initOverrides);
|
|
142
|
-
|
|
143
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Auto-generated: attachProductsProductCategory
|
|
148
|
-
*/
|
|
149
|
-
async attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
150
|
-
const response = await this.attachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
151
|
-
return await response.value();
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
156
|
-
*/
|
|
157
|
-
async bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
158
|
-
if (requestParameters['productCategory'] == null) {
|
|
159
|
-
throw new runtime.RequiredError(
|
|
160
|
-
'productCategory',
|
|
161
|
-
'Required parameter "productCategory" was null or undefined when calling bulkDetachProductsProductCategory().'
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const queryParameters: any = {};
|
|
166
|
-
|
|
167
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
let urlPath = `/admin-api/product-category/{productCategory}/bulk-detach-products`;
|
|
171
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
172
|
-
|
|
173
|
-
const response = await this.request({
|
|
174
|
-
path: urlPath,
|
|
175
|
-
method: 'DELETE',
|
|
176
|
-
headers: headerParameters,
|
|
177
|
-
query: queryParameters,
|
|
178
|
-
}, initOverrides);
|
|
179
|
-
|
|
180
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
185
|
-
*/
|
|
186
|
-
async bulkDetachProductsProductCategory(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
187
|
-
const response = await this.bulkDetachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
188
|
-
return await response.value();
|
|
189
|
-
}
|
|
190
|
-
|
|
191
94
|
/**
|
|
192
95
|
* Auto-generated: destroyProductCategory
|
|
193
96
|
*/
|
|
@@ -225,46 +128,6 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
225
128
|
return await response.value();
|
|
226
129
|
}
|
|
227
130
|
|
|
228
|
-
/**
|
|
229
|
-
* Auto-generated: detachProductsProductCategory
|
|
230
|
-
*/
|
|
231
|
-
async detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>> {
|
|
232
|
-
if (requestParameters['productCategory'] == null) {
|
|
233
|
-
throw new runtime.RequiredError(
|
|
234
|
-
'productCategory',
|
|
235
|
-
'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().'
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
const queryParameters: any = {};
|
|
240
|
-
|
|
241
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
242
|
-
|
|
243
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
let urlPath = `/admin-api/product-category/{productCategory}/detach-products`;
|
|
247
|
-
urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
|
|
248
|
-
|
|
249
|
-
const response = await this.request({
|
|
250
|
-
path: urlPath,
|
|
251
|
-
method: 'POST',
|
|
252
|
-
headers: headerParameters,
|
|
253
|
-
query: queryParameters,
|
|
254
|
-
body: DetachProductsProductCategoryRequestToJSON(requestParameters['detachProductsProductCategoryRequest']),
|
|
255
|
-
}, initOverrides);
|
|
256
|
-
|
|
257
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryResourceFromJSON(jsonValue));
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Auto-generated: detachProductsProductCategory
|
|
262
|
-
*/
|
|
263
|
-
async detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource> {
|
|
264
|
-
const response = await this.detachProductsProductCategoryRaw(requestParameters, initOverrides);
|
|
265
|
-
return await response.value();
|
|
266
|
-
}
|
|
267
|
-
|
|
268
131
|
/**
|
|
269
132
|
* Auto-generated: getAllProductCategory
|
|
270
133
|
*/
|
|
@@ -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']),
|
|
@@ -55,12 +55,6 @@ export interface GetAllDocumentRequest {
|
|
|
55
55
|
* @memberof GetAllDocumentRequest
|
|
56
56
|
*/
|
|
57
57
|
includesRelations?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof GetAllDocumentRequest
|
|
62
|
-
*/
|
|
63
|
-
sitesId?: Array<string>;
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
|
|
@@ -117,7 +111,6 @@ export function GetAllDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
117
111
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
118
112
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
119
113
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
120
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
121
114
|
};
|
|
122
115
|
}
|
|
123
116
|
|
|
@@ -138,7 +131,6 @@ export function GetAllDocumentRequestToJSONTyped(value?: GetAllDocumentRequest |
|
|
|
138
131
|
'related_id': value['relatedId'],
|
|
139
132
|
'related_type': value['relatedType'],
|
|
140
133
|
'includes_relations': value['includesRelations'],
|
|
141
|
-
'sites-id': value['sitesId'],
|
|
142
134
|
};
|
|
143
135
|
}
|
|
144
136
|
|
|
@@ -87,7 +87,7 @@ export const GetAllProductChildRequestSortByEnum = {
|
|
|
87
87
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
88
88
|
Sku: 'sku',
|
|
89
89
|
Model: 'model',
|
|
90
|
-
NetsuiteSyncNetsuiteId: '
|
|
90
|
+
NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
|
|
91
91
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
92
92
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
93
93
|
CreatedAt: 'created_at',
|
|
@@ -141,7 +141,7 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
141
141
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
142
142
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
143
143
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
144
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
144
|
+
'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -164,7 +164,7 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
164
164
|
'includes_relations': value['includesRelations'],
|
|
165
165
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
166
166
|
'is_disabled': value['isDisabled'],
|
|
167
|
-
'
|
|
167
|
+
'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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 GlobalSearchCategoryResource
|
|
20
|
+
*/
|
|
21
|
+
export interface GlobalSearchCategoryResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GlobalSearchCategoryResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GlobalSearchCategoryResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GlobalSearchCategoryResource
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource {
|
|
53
|
+
return GlobalSearchCategoryResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'slug': json['slug'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource {
|
|
69
|
+
return GlobalSearchCategoryResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'slug': value['slug'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
|
|
17
|
+
import {
|
|
18
|
+
GlobalSearchCategoryResourceFromJSON,
|
|
19
|
+
GlobalSearchCategoryResourceFromJSONTyped,
|
|
20
|
+
GlobalSearchCategoryResourceToJSON,
|
|
21
|
+
GlobalSearchCategoryResourceToJSONTyped,
|
|
22
|
+
} from './GlobalSearchCategoryResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GlobalSearchCategoryResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface GlobalSearchCategoryResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GlobalSearchCategoryResource>}
|
|
33
|
+
* @memberof GlobalSearchCategoryResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<GlobalSearchCategoryResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGlobalSearchCategoryResourceArrayResponse(value: object): value is GlobalSearchCategoryResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GlobalSearchCategoryResourceArrayResponseFromJSON(json: any): GlobalSearchCategoryResourceArrayResponse {
|
|
46
|
+
return GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchCategoryResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GlobalSearchCategoryResourceArrayResponseToJSON(json: any): GlobalSearchCategoryResourceArrayResponse {
|
|
60
|
+
return GlobalSearchCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value?: GlobalSearchCategoryResourceArrayResponse | 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(GlobalSearchCategoryResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|