@digital8/lighting-illusions-ts-sdk 0.0.442 → 0.0.443
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 -0
- package/README.md +6 -4
- package/dist/apis/ProductApi.d.ts +11 -0
- package/dist/apis/ProductApi.js +46 -1
- package/dist/apis/TagApi.d.ts +0 -11
- package/dist/apis/TagApi.js +0 -46
- package/dist/models/AssetLiteResource.d.ts +44 -0
- package/dist/models/AssetLiteResource.js +59 -0
- package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
- package/dist/models/GetAllProductChildRequest.d.ts +10 -1
- package/dist/models/GetAllProductChildRequest.js +9 -1
- package/dist/models/IndexProductChildRequest.d.ts +21 -0
- package/dist/models/IndexProductChildRequest.js +13 -1
- package/dist/models/ProductChildLiteResource.d.ts +3 -3
- package/dist/models/ProductChildLiteResource.js +3 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AssetLiteResource.md +38 -0
- package/docs/AssetLiteResourceArrayResponse.md +34 -0
- package/docs/IndexProductChildRequest.md +4 -0
- package/docs/ProductApi.md +67 -1
- package/docs/ProductChildLiteResource.md +1 -1
- package/docs/TagApi.md +0 -66
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +37 -1
- package/src/apis/TagApi.ts +0 -41
- package/src/models/AssetLiteResource.ts +84 -0
- package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
- package/src/models/GetAllProductChildRequest.ts +11 -1
- package/src/models/IndexProductChildRequest.ts +26 -0
- package/src/models/ProductChildLiteResource.ts +10 -10
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# AssetLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AssetLiteResource>](AssetLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { AssetLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies AssetLiteResourceArrayResponse
|
|
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 AssetLiteResourceArrayResponse
|
|
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
|
+
|
|
@@ -16,6 +16,8 @@ Name | Type
|
|
|
16
16
|
`siteDetailsSiteId` | Array<string>
|
|
17
17
|
`isDisabled` | Array<string>
|
|
18
18
|
`hasNetsuiteId` | Array<string>
|
|
19
|
+
`relatedId` | number
|
|
20
|
+
`relatedType` | string
|
|
19
21
|
|
|
20
22
|
## Example
|
|
21
23
|
|
|
@@ -34,6 +36,8 @@ const example = {
|
|
|
34
36
|
"siteDetailsSiteId": null,
|
|
35
37
|
"isDisabled": null,
|
|
36
38
|
"hasNetsuiteId": null,
|
|
39
|
+
"relatedId": null,
|
|
40
|
+
"relatedType": null,
|
|
37
41
|
} satisfies IndexProductChildRequest
|
|
38
42
|
|
|
39
43
|
console.log(example)
|
package/docs/ProductApi.md
CHANGED
|
@@ -9,7 +9,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
9
9
|
| [**getAllProduct**](ProductApi.md#getallproductoperation) | **POST** /admin-api/product/parent/all | Auto-generated: getAllProduct |
|
|
10
10
|
| [**getAllProductChild**](ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild |
|
|
11
11
|
| [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
|
|
12
|
-
| [**
|
|
12
|
+
| [**searchProductChildrenExcludingRelationsProductChild**](ProductApi.md#searchproductchildrenexcludingrelationsproductchild) | **POST** /admin-api/product/children/search-excluding-relations | Auto-generated: searchProductChildrenExcludingRelationsProductChild |
|
|
13
|
+
| [**searchProductChildrenForRelationsProductChild**](ProductApi.md#searchproductchildrenforrelationsproductchild) | **POST** /admin-api/product/children/search-for-relations | Auto-generated: searchProductChildrenForRelationsProductChild |
|
|
13
14
|
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
|
|
14
15
|
| [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
|
|
15
16
|
| [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
|
|
@@ -345,6 +346,71 @@ No authorization required
|
|
|
345
346
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
346
347
|
|
|
347
348
|
|
|
349
|
+
## searchProductChildrenExcludingRelationsProductChild
|
|
350
|
+
|
|
351
|
+
> PaginatedProductChildLiteResourceResponse searchProductChildrenExcludingRelationsProductChild(indexProductChildRequest)
|
|
352
|
+
|
|
353
|
+
Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
354
|
+
|
|
355
|
+
### Example
|
|
356
|
+
|
|
357
|
+
```ts
|
|
358
|
+
import {
|
|
359
|
+
Configuration,
|
|
360
|
+
ProductApi,
|
|
361
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
362
|
+
import type { SearchProductChildrenExcludingRelationsProductChildRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
363
|
+
|
|
364
|
+
async function example() {
|
|
365
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
366
|
+
const api = new ProductApi();
|
|
367
|
+
|
|
368
|
+
const body = {
|
|
369
|
+
// IndexProductChildRequest (optional)
|
|
370
|
+
indexProductChildRequest: ...,
|
|
371
|
+
} satisfies SearchProductChildrenExcludingRelationsProductChildRequest;
|
|
372
|
+
|
|
373
|
+
try {
|
|
374
|
+
const data = await api.searchProductChildrenExcludingRelationsProductChild(body);
|
|
375
|
+
console.log(data);
|
|
376
|
+
} catch (error) {
|
|
377
|
+
console.error(error);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// Run the test
|
|
382
|
+
example().catch(console.error);
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
| Name | Type | Description | Notes |
|
|
389
|
+
|------------- | ------------- | ------------- | -------------|
|
|
390
|
+
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
391
|
+
|
|
392
|
+
### Return type
|
|
393
|
+
|
|
394
|
+
[**PaginatedProductChildLiteResourceResponse**](PaginatedProductChildLiteResourceResponse.md)
|
|
395
|
+
|
|
396
|
+
### Authorization
|
|
397
|
+
|
|
398
|
+
No authorization required
|
|
399
|
+
|
|
400
|
+
### HTTP request headers
|
|
401
|
+
|
|
402
|
+
- **Content-Type**: `application/json`
|
|
403
|
+
- **Accept**: `application/json`
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### HTTP response details
|
|
407
|
+
| Status code | Description | Response headers |
|
|
408
|
+
|-------------|-------------|------------------|
|
|
409
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductChildLiteResource[]>> | - |
|
|
410
|
+
|
|
411
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
412
|
+
|
|
413
|
+
|
|
348
414
|
## searchProductChildrenForRelationsProductChild
|
|
349
415
|
|
|
350
416
|
> PaginatedProductChildLiteResourceResponse searchProductChildrenForRelationsProductChild(indexProductChildRequest)
|
package/docs/TagApi.md
CHANGED
|
@@ -6,7 +6,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**destroyTag**](TagApi.md#destroytag) | **DELETE** /admin-api/tag/{tag}/delete | Auto-generated: destroyTag |
|
|
8
8
|
| [**getAllTag**](TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag |
|
|
9
|
-
| [**getProductsTag**](TagApi.md#getproductstag) | **GET** /admin-api/tag/{tag}/products | Auto-generated: getProductsTag |
|
|
10
9
|
| [**indexTag**](TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag |
|
|
11
10
|
| [**linkProductChildrenTag**](TagApi.md#linkproductchildrentagoperation) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag |
|
|
12
11
|
| [**showTag**](TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag |
|
|
@@ -146,71 +145,6 @@ No authorization required
|
|
|
146
145
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
147
146
|
|
|
148
147
|
|
|
149
|
-
## getProductsTag
|
|
150
|
-
|
|
151
|
-
> ProductChildRelationResourceArrayResponse getProductsTag(tag)
|
|
152
|
-
|
|
153
|
-
Auto-generated: getProductsTag
|
|
154
|
-
|
|
155
|
-
### Example
|
|
156
|
-
|
|
157
|
-
```ts
|
|
158
|
-
import {
|
|
159
|
-
Configuration,
|
|
160
|
-
TagApi,
|
|
161
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
162
|
-
import type { GetProductsTagRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
163
|
-
|
|
164
|
-
async function example() {
|
|
165
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
166
|
-
const api = new TagApi();
|
|
167
|
-
|
|
168
|
-
const body = {
|
|
169
|
-
// number | The id of the tag
|
|
170
|
-
tag: 56,
|
|
171
|
-
} satisfies GetProductsTagRequest;
|
|
172
|
-
|
|
173
|
-
try {
|
|
174
|
-
const data = await api.getProductsTag(body);
|
|
175
|
-
console.log(data);
|
|
176
|
-
} catch (error) {
|
|
177
|
-
console.error(error);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// Run the test
|
|
182
|
-
example().catch(console.error);
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Parameters
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
| Name | Type | Description | Notes |
|
|
189
|
-
|------------- | ------------- | ------------- | -------------|
|
|
190
|
-
| **tag** | `number` | The id of the tag | [Defaults to `undefined`] |
|
|
191
|
-
|
|
192
|
-
### Return type
|
|
193
|
-
|
|
194
|
-
[**ProductChildRelationResourceArrayResponse**](ProductChildRelationResourceArrayResponse.md)
|
|
195
|
-
|
|
196
|
-
### Authorization
|
|
197
|
-
|
|
198
|
-
No authorization required
|
|
199
|
-
|
|
200
|
-
### HTTP request headers
|
|
201
|
-
|
|
202
|
-
- **Content-Type**: Not defined
|
|
203
|
-
- **Accept**: `application/json`
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
### HTTP response details
|
|
207
|
-
| Status code | Description | Response headers |
|
|
208
|
-
|-------------|-------------|------------------|
|
|
209
|
-
| **200** | Successful resource response | - |
|
|
210
|
-
|
|
211
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
212
|
-
|
|
213
|
-
|
|
214
148
|
## indexTag
|
|
215
149
|
|
|
216
150
|
> PaginatedTagResourceResponse indexTag(indexTagRequest)
|
package/package.json
CHANGED
package/src/apis/ProductApi.ts
CHANGED
|
@@ -84,6 +84,10 @@ export interface IndexProductChildOperationRequest {
|
|
|
84
84
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
export interface SearchProductChildrenExcludingRelationsProductChildRequest {
|
|
88
|
+
indexProductChildRequest?: IndexProductChildRequest;
|
|
89
|
+
}
|
|
90
|
+
|
|
87
91
|
export interface SearchProductChildrenForRelationsProductChildRequest {
|
|
88
92
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
89
93
|
}
|
|
@@ -293,6 +297,38 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
293
297
|
return await response.value();
|
|
294
298
|
}
|
|
295
299
|
|
|
300
|
+
/**
|
|
301
|
+
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
302
|
+
*/
|
|
303
|
+
async searchProductChildrenExcludingRelationsProductChildRaw(requestParameters: SearchProductChildrenExcludingRelationsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildLiteResourceResponse>> {
|
|
304
|
+
const queryParameters: any = {};
|
|
305
|
+
|
|
306
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
307
|
+
|
|
308
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
let urlPath = `/admin-api/product/children/search-excluding-relations`;
|
|
312
|
+
|
|
313
|
+
const response = await this.request({
|
|
314
|
+
path: urlPath,
|
|
315
|
+
method: 'POST',
|
|
316
|
+
headers: headerParameters,
|
|
317
|
+
query: queryParameters,
|
|
318
|
+
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
319
|
+
}, initOverrides);
|
|
320
|
+
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildLiteResourceResponseFromJSON(jsonValue));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
326
|
+
*/
|
|
327
|
+
async searchProductChildrenExcludingRelationsProductChild(requestParameters: SearchProductChildrenExcludingRelationsProductChildRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildLiteResourceResponse> {
|
|
328
|
+
const response = await this.searchProductChildrenExcludingRelationsProductChildRaw(requestParameters, initOverrides);
|
|
329
|
+
return await response.value();
|
|
330
|
+
}
|
|
331
|
+
|
|
296
332
|
/**
|
|
297
333
|
* Auto-generated: searchProductChildrenForRelationsProductChild
|
|
298
334
|
*/
|
|
@@ -304,7 +340,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
304
340
|
headerParameters['Content-Type'] = 'application/json';
|
|
305
341
|
|
|
306
342
|
|
|
307
|
-
let urlPath = `/admin-api/product/children/search-
|
|
343
|
+
let urlPath = `/admin-api/product/children/search-for-relations`;
|
|
308
344
|
|
|
309
345
|
const response = await this.request({
|
|
310
346
|
path: urlPath,
|
package/src/apis/TagApi.ts
CHANGED
|
@@ -54,10 +54,6 @@ export interface GetAllTagRequest {
|
|
|
54
54
|
indexTagRequest?: IndexTagRequest;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export interface GetProductsTagRequest {
|
|
58
|
-
tag: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
57
|
export interface IndexTagOperationRequest {
|
|
62
58
|
indexTagRequest?: IndexTagRequest;
|
|
63
59
|
}
|
|
@@ -159,43 +155,6 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
159
155
|
return await response.value();
|
|
160
156
|
}
|
|
161
157
|
|
|
162
|
-
/**
|
|
163
|
-
* Auto-generated: getProductsTag
|
|
164
|
-
*/
|
|
165
|
-
async getProductsTagRaw(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
|
|
166
|
-
if (requestParameters['tag'] == null) {
|
|
167
|
-
throw new runtime.RequiredError(
|
|
168
|
-
'tag',
|
|
169
|
-
'Required parameter "tag" was null or undefined when calling getProductsTag().'
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const queryParameters: any = {};
|
|
174
|
-
|
|
175
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
let urlPath = `/admin-api/tag/{tag}/products`;
|
|
179
|
-
urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
|
|
180
|
-
|
|
181
|
-
const response = await this.request({
|
|
182
|
-
path: urlPath,
|
|
183
|
-
method: 'GET',
|
|
184
|
-
headers: headerParameters,
|
|
185
|
-
query: queryParameters,
|
|
186
|
-
}, initOverrides);
|
|
187
|
-
|
|
188
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Auto-generated: getProductsTag
|
|
193
|
-
*/
|
|
194
|
-
async getProductsTag(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
|
|
195
|
-
const response = await this.getProductsTagRaw(requestParameters, initOverrides);
|
|
196
|
-
return await response.value();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
158
|
/**
|
|
200
159
|
* Auto-generated: indexTag
|
|
201
160
|
*/
|
|
@@ -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 AssetLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AssetLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AssetLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AssetLiteResource
|
|
32
|
+
*/
|
|
33
|
+
filePath: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AssetLiteResource
|
|
38
|
+
*/
|
|
39
|
+
fileName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AssetLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
48
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AssetLiteResourceFromJSON(json: any): AssetLiteResource {
|
|
53
|
+
return AssetLiteResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'filePath': json['filePath'],
|
|
64
|
+
'fileName': json['fileName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AssetLiteResourceToJSON(json: any): AssetLiteResource {
|
|
69
|
+
return AssetLiteResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'filePath': value['filePath'],
|
|
81
|
+
'fileName': value['fileName'],
|
|
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 { AssetLiteResource } from './AssetLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetLiteResourceFromJSON,
|
|
19
|
+
AssetLiteResourceFromJSONTyped,
|
|
20
|
+
AssetLiteResourceToJSON,
|
|
21
|
+
AssetLiteResourceToJSONTyped,
|
|
22
|
+
} from './AssetLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssetLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AssetLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AssetLiteResource>}
|
|
33
|
+
* @memberof AssetLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AssetLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssetLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAssetLiteResourceArrayResponse(value: object): value is AssetLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetLiteResourceArrayResponseFromJSON(json: any): AssetLiteResourceArrayResponse {
|
|
46
|
+
return AssetLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AssetLiteResourceArrayResponseToJSON(json: any): AssetLiteResourceArrayResponse {
|
|
60
|
+
return AssetLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AssetLiteResourceArrayResponseToJSONTyped(value?: AssetLiteResourceArrayResponse | 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(AssetLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -48,7 +48,7 @@ export interface GetAllProductChildRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllProductChildRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllProductChildRequestRelatedTypeEnum;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<string>}
|
|
@@ -111,6 +111,16 @@ export const GetAllProductChildRequestSortDirectionEnum = {
|
|
|
111
111
|
} as const;
|
|
112
112
|
export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChildRequestSortDirectionEnum[keyof typeof GetAllProductChildRequestSortDirectionEnum];
|
|
113
113
|
|
|
114
|
+
/**
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
export const GetAllProductChildRequestRelatedTypeEnum = {
|
|
118
|
+
OverlayTemplate: 'overlayTemplate',
|
|
119
|
+
Supplier: 'supplier',
|
|
120
|
+
Tag: 'tag'
|
|
121
|
+
} as const;
|
|
122
|
+
export type GetAllProductChildRequestRelatedTypeEnum = typeof GetAllProductChildRequestRelatedTypeEnum[keyof typeof GetAllProductChildRequestRelatedTypeEnum];
|
|
123
|
+
|
|
114
124
|
|
|
115
125
|
/**
|
|
116
126
|
* Check if a given object implements the GetAllProductChildRequest interface.
|
|
@@ -79,6 +79,18 @@ export interface IndexProductChildRequest {
|
|
|
79
79
|
* @memberof IndexProductChildRequest
|
|
80
80
|
*/
|
|
81
81
|
hasNetsuiteId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof IndexProductChildRequest
|
|
86
|
+
*/
|
|
87
|
+
relatedId?: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof IndexProductChildRequest
|
|
92
|
+
*/
|
|
93
|
+
relatedType?: IndexProductChildRequestRelatedTypeEnum;
|
|
82
94
|
}
|
|
83
95
|
|
|
84
96
|
|
|
@@ -111,6 +123,16 @@ export const IndexProductChildRequestSortDirectionEnum = {
|
|
|
111
123
|
} as const;
|
|
112
124
|
export type IndexProductChildRequestSortDirectionEnum = typeof IndexProductChildRequestSortDirectionEnum[keyof typeof IndexProductChildRequestSortDirectionEnum];
|
|
113
125
|
|
|
126
|
+
/**
|
|
127
|
+
* @export
|
|
128
|
+
*/
|
|
129
|
+
export const IndexProductChildRequestRelatedTypeEnum = {
|
|
130
|
+
OverlayTemplate: 'overlayTemplate',
|
|
131
|
+
Supplier: 'supplier',
|
|
132
|
+
Tag: 'tag'
|
|
133
|
+
} as const;
|
|
134
|
+
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
135
|
+
|
|
114
136
|
|
|
115
137
|
/**
|
|
116
138
|
* Check if a given object implements the IndexProductChildRequest interface.
|
|
@@ -139,6 +161,8 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
139
161
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
140
162
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
141
163
|
'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
|
|
164
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
165
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
142
166
|
};
|
|
143
167
|
}
|
|
144
168
|
|
|
@@ -163,6 +187,8 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
163
187
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
164
188
|
'is_disabled': value['isDisabled'],
|
|
165
189
|
'has_netsuite_id': value['hasNetsuiteId'],
|
|
190
|
+
'related_id': value['relatedId'],
|
|
191
|
+
'related_type': value['relatedType'],
|
|
166
192
|
};
|
|
167
193
|
}
|
|
168
194
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AssetLiteResourceFromJSON,
|
|
19
|
+
AssetLiteResourceFromJSONTyped,
|
|
20
|
+
AssetLiteResourceToJSON,
|
|
21
|
+
AssetLiteResourceToJSONTyped,
|
|
22
|
+
} from './AssetLiteResource';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -71,10 +71,10 @@ export interface ProductChildLiteResource {
|
|
|
71
71
|
netsuiteId: number;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
|
-
* @type {
|
|
74
|
+
* @type {AssetLiteResource}
|
|
75
75
|
* @memberof ProductChildLiteResource
|
|
76
76
|
*/
|
|
77
|
-
thumbnail:
|
|
77
|
+
thumbnail: AssetLiteResource | null;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -109,7 +109,7 @@ export function ProductChildLiteResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
109
109
|
'sku': json['sku'],
|
|
110
110
|
'stock': json['stock'],
|
|
111
111
|
'netsuiteId': json['netsuiteId'],
|
|
112
|
-
'thumbnail':
|
|
112
|
+
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -131,7 +131,7 @@ export function ProductChildLiteResourceToJSONTyped(value?: ProductChildLiteReso
|
|
|
131
131
|
'sku': value['sku'],
|
|
132
132
|
'stock': value['stock'],
|
|
133
133
|
'netsuiteId': value['netsuiteId'],
|
|
134
|
-
'thumbnail':
|
|
134
|
+
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
|
package/src/models/index.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AssetFileForUploadResource';
|
|
4
4
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
5
|
+
export * from './AssetLiteResource';
|
|
6
|
+
export * from './AssetLiteResourceArrayResponse';
|
|
5
7
|
export * from './AssetResource';
|
|
6
8
|
export * from './AssetResourceArrayResponse';
|
|
7
9
|
export * from './AttributeFieldType';
|