@digital8/lighting-illusions-ts-sdk 0.0.903 → 0.0.905
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -2
- package/README.md +3 -4
- package/dist/apis/ProductCategoryApi.d.ts +3 -6
- package/dist/apis/ProductCategoryApi.js +4 -7
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/ProductCategoryApi.md +6 -14
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +3 -13
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/index.ts +0 -1
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
- package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
- package/docs/GetHierarchyProductCategoryRequest.md +0 -34
- package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -83,7 +83,6 @@ docs/GetAllProductChildRequest.md
|
|
|
83
83
|
docs/GetAllProductRequest.md
|
|
84
84
|
docs/GetAllProductTypeRequest.md
|
|
85
85
|
docs/GetAllSupplierRequest.md
|
|
86
|
-
docs/GetHierarchyProductCategoryRequest.md
|
|
87
86
|
docs/GlobalSearchCategoryResource.md
|
|
88
87
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
89
88
|
docs/GlobalSearchProductResource.md
|
|
@@ -391,7 +390,6 @@ src/models/GetAllProductChildRequest.ts
|
|
|
391
390
|
src/models/GetAllProductRequest.ts
|
|
392
391
|
src/models/GetAllProductTypeRequest.ts
|
|
393
392
|
src/models/GetAllSupplierRequest.ts
|
|
394
|
-
src/models/GetHierarchyProductCategoryRequest.ts
|
|
395
393
|
src/models/GlobalSearchCategoryResource.ts
|
|
396
394
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
397
395
|
src/models/GlobalSearchProductResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.905
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -124,7 +124,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
124
124
|
*ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
|
|
125
125
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
126
126
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
127
|
-
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#
|
|
127
|
+
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
128
128
|
*ProductCategoryApi* | [**indexProductCategory**](docs/ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory
|
|
129
129
|
*ProductCategoryApi* | [**previewAutomationRulesProductCategory**](docs/ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory
|
|
130
130
|
*ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
|
|
@@ -243,7 +243,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
243
243
|
- [GetAllProductRequest](docs/GetAllProductRequest.md)
|
|
244
244
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
245
245
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
246
|
-
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
247
246
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
248
247
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
249
248
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -464,7 +463,7 @@ and is automatically generated by the
|
|
|
464
463
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
465
464
|
|
|
466
465
|
- API version: `1.0.0`
|
|
467
|
-
- Package version: `0.0.
|
|
466
|
+
- Package version: `0.0.905`
|
|
468
467
|
- Generator version: `7.19.0`
|
|
469
468
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
470
469
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest,
|
|
13
|
+
import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
14
14
|
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
15
|
productCategory: number;
|
|
16
16
|
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
@@ -32,9 +32,6 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
32
32
|
productCategory: number;
|
|
33
33
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
34
34
|
}
|
|
35
|
-
export interface GetHierarchyProductCategoryOperationRequest {
|
|
36
|
-
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
37
|
-
}
|
|
38
35
|
export interface IndexProductCategoryOperationRequest {
|
|
39
36
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
40
37
|
}
|
|
@@ -106,11 +103,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
106
103
|
/**
|
|
107
104
|
* Auto-generated: getHierarchyProductCategory
|
|
108
105
|
*/
|
|
109
|
-
getHierarchyProductCategoryRaw(
|
|
106
|
+
getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
|
|
110
107
|
/**
|
|
111
108
|
* Auto-generated: getHierarchyProductCategory
|
|
112
109
|
*/
|
|
113
|
-
getHierarchyProductCategory(
|
|
110
|
+
getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
|
|
114
111
|
/**
|
|
115
112
|
* Auto-generated: indexProductCategory
|
|
116
113
|
*/
|
|
@@ -359,7 +359,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
359
359
|
/**
|
|
360
360
|
* Auto-generated: getHierarchyProductCategory
|
|
361
361
|
*/
|
|
362
|
-
ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (
|
|
362
|
+
ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
|
|
363
363
|
return __awaiter(this, void 0, void 0, function () {
|
|
364
364
|
var queryParameters, headerParameters, urlPath, response;
|
|
365
365
|
return __generator(this, function (_a) {
|
|
@@ -367,14 +367,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
367
367
|
case 0:
|
|
368
368
|
queryParameters = {};
|
|
369
369
|
headerParameters = {};
|
|
370
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
371
370
|
urlPath = "/admin-api/product-category/hierarchy";
|
|
372
371
|
return [4 /*yield*/, this.request({
|
|
373
372
|
path: urlPath,
|
|
374
373
|
method: 'GET',
|
|
375
374
|
headers: headerParameters,
|
|
376
375
|
query: queryParameters,
|
|
377
|
-
body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
|
|
378
376
|
}, initOverrides)];
|
|
379
377
|
case 1:
|
|
380
378
|
response = _a.sent();
|
|
@@ -386,13 +384,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
386
384
|
/**
|
|
387
385
|
* Auto-generated: getHierarchyProductCategory
|
|
388
386
|
*/
|
|
389
|
-
ProductCategoryApi.prototype.getHierarchyProductCategory = function () {
|
|
390
|
-
return __awaiter(this,
|
|
387
|
+
ProductCategoryApi.prototype.getHierarchyProductCategory = function (initOverrides) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
391
389
|
var response;
|
|
392
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
393
390
|
return __generator(this, function (_a) {
|
|
394
391
|
switch (_a.label) {
|
|
395
|
-
case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(
|
|
392
|
+
case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
|
|
396
393
|
case 1:
|
|
397
394
|
response = _a.sent();
|
|
398
395
|
return [4 /*yield*/, response.value()];
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -74,7 +74,6 @@ export * from './GetAllProductChildRequest';
|
|
|
74
74
|
export * from './GetAllProductRequest';
|
|
75
75
|
export * from './GetAllProductTypeRequest';
|
|
76
76
|
export * from './GetAllSupplierRequest';
|
|
77
|
-
export * from './GetHierarchyProductCategoryRequest';
|
|
78
77
|
export * from './GlobalSearchCategoryResource';
|
|
79
78
|
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
80
79
|
export * from './GlobalSearchProductResource';
|
package/dist/models/index.js
CHANGED
|
@@ -92,7 +92,6 @@ __exportStar(require("./GetAllProductChildRequest"), exports);
|
|
|
92
92
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
93
93
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
94
94
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
95
|
-
__exportStar(require("./GetHierarchyProductCategoryRequest"), exports);
|
|
96
95
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
97
96
|
__exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
|
|
98
97
|
__exportStar(require("./GlobalSearchProductResource"), exports);
|
|
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
10
10
|
| [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
|
|
11
11
|
| [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
|
|
12
12
|
| [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
|
|
13
|
-
| [**getHierarchyProductCategory**](ProductCategoryApi.md#
|
|
13
|
+
| [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
|
|
14
14
|
| [**indexProductCategory**](ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory |
|
|
15
15
|
| [**previewAutomationRulesProductCategory**](ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory |
|
|
16
16
|
| [**showProductCategory**](ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory |
|
|
@@ -420,7 +420,7 @@ No authorization required
|
|
|
420
420
|
|
|
421
421
|
## getHierarchyProductCategory
|
|
422
422
|
|
|
423
|
-
> ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory(
|
|
423
|
+
> ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory()
|
|
424
424
|
|
|
425
425
|
Auto-generated: getHierarchyProductCategory
|
|
426
426
|
|
|
@@ -431,19 +431,14 @@ import {
|
|
|
431
431
|
Configuration,
|
|
432
432
|
ProductCategoryApi,
|
|
433
433
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
434
|
-
import type {
|
|
434
|
+
import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
435
435
|
|
|
436
436
|
async function example() {
|
|
437
437
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
438
438
|
const api = new ProductCategoryApi();
|
|
439
439
|
|
|
440
|
-
const body = {
|
|
441
|
-
// GetHierarchyProductCategoryRequest (optional)
|
|
442
|
-
getHierarchyProductCategoryRequest: ...,
|
|
443
|
-
} satisfies GetHierarchyProductCategoryOperationRequest;
|
|
444
|
-
|
|
445
440
|
try {
|
|
446
|
-
const data = await api.getHierarchyProductCategory(
|
|
441
|
+
const data = await api.getHierarchyProductCategory();
|
|
447
442
|
console.log(data);
|
|
448
443
|
} catch (error) {
|
|
449
444
|
console.error(error);
|
|
@@ -456,10 +451,7 @@ example().catch(console.error);
|
|
|
456
451
|
|
|
457
452
|
### Parameters
|
|
458
453
|
|
|
459
|
-
|
|
460
|
-
| Name | Type | Description | Notes |
|
|
461
|
-
|------------- | ------------- | ------------- | -------------|
|
|
462
|
-
| **getHierarchyProductCategoryRequest** | [GetHierarchyProductCategoryRequest](GetHierarchyProductCategoryRequest.md) | | [Optional] |
|
|
454
|
+
This endpoint does not need any parameter.
|
|
463
455
|
|
|
464
456
|
### Return type
|
|
465
457
|
|
|
@@ -471,7 +463,7 @@ No authorization required
|
|
|
471
463
|
|
|
472
464
|
### HTTP request headers
|
|
473
465
|
|
|
474
|
-
- **Content-Type**:
|
|
466
|
+
- **Content-Type**: Not defined
|
|
475
467
|
- **Accept**: `application/json`
|
|
476
468
|
|
|
477
469
|
|
package/package.json
CHANGED
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
DetachProductsProductCategoryRequest,
|
|
20
20
|
GenericResponse,
|
|
21
21
|
GetAllProductCategoryRequest,
|
|
22
|
-
GetHierarchyProductCategoryRequest,
|
|
23
22
|
IndexProductCategoryRequest,
|
|
24
23
|
PaginatedProductCategoryListResourceResponse,
|
|
25
24
|
PreviewAutomationRulesProductCategoryRequest,
|
|
@@ -39,8 +38,6 @@ import {
|
|
|
39
38
|
GenericResponseToJSON,
|
|
40
39
|
GetAllProductCategoryRequestFromJSON,
|
|
41
40
|
GetAllProductCategoryRequestToJSON,
|
|
42
|
-
GetHierarchyProductCategoryRequestFromJSON,
|
|
43
|
-
GetHierarchyProductCategoryRequestToJSON,
|
|
44
41
|
IndexProductCategoryRequestFromJSON,
|
|
45
42
|
IndexProductCategoryRequestToJSON,
|
|
46
43
|
PaginatedProductCategoryListResourceResponseFromJSON,
|
|
@@ -88,10 +85,6 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
88
85
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
89
86
|
}
|
|
90
87
|
|
|
91
|
-
export interface GetHierarchyProductCategoryOperationRequest {
|
|
92
|
-
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
88
|
export interface IndexProductCategoryOperationRequest {
|
|
96
89
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
97
90
|
}
|
|
@@ -347,13 +340,11 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
347
340
|
/**
|
|
348
341
|
* Auto-generated: getHierarchyProductCategory
|
|
349
342
|
*/
|
|
350
|
-
async getHierarchyProductCategoryRaw(
|
|
343
|
+
async getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
|
|
351
344
|
const queryParameters: any = {};
|
|
352
345
|
|
|
353
346
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
354
347
|
|
|
355
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
356
|
-
|
|
357
348
|
|
|
358
349
|
let urlPath = `/admin-api/product-category/hierarchy`;
|
|
359
350
|
|
|
@@ -362,7 +353,6 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
362
353
|
method: 'GET',
|
|
363
354
|
headers: headerParameters,
|
|
364
355
|
query: queryParameters,
|
|
365
|
-
body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
|
|
366
356
|
}, initOverrides);
|
|
367
357
|
|
|
368
358
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryHierarchyResourceArrayResponseFromJSON(jsonValue));
|
|
@@ -371,8 +361,8 @@ export class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
371
361
|
/**
|
|
372
362
|
* Auto-generated: getHierarchyProductCategory
|
|
373
363
|
*/
|
|
374
|
-
async getHierarchyProductCategory(
|
|
375
|
-
const response = await this.getHierarchyProductCategoryRaw(
|
|
364
|
+
async getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
|
|
365
|
+
const response = await this.getHierarchyProductCategoryRaw(initOverrides);
|
|
376
366
|
return await response.value();
|
|
377
367
|
}
|
|
378
368
|
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
package/src/models/index.ts
CHANGED
|
@@ -76,7 +76,6 @@ export * from './GetAllProductChildRequest';
|
|
|
76
76
|
export * from './GetAllProductRequest';
|
|
77
77
|
export * from './GetAllProductTypeRequest';
|
|
78
78
|
export * from './GetAllSupplierRequest';
|
|
79
|
-
export * from './GetHierarchyProductCategoryRequest';
|
|
80
79
|
export * from './GlobalSearchCategoryResource';
|
|
81
80
|
export * from './GlobalSearchCategoryResourceArrayResponse';
|
|
82
81
|
export * from './GlobalSearchProductResource';
|
|
@@ -1,32 +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 GetHierarchyProductCategoryRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface GetHierarchyProductCategoryRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof GetHierarchyProductCategoryRequest
|
|
22
|
-
*/
|
|
23
|
-
siteId: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the GetHierarchyProductCategoryRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfGetHierarchyProductCategoryRequest(value: object): value is GetHierarchyProductCategoryRequest;
|
|
29
|
-
export declare function GetHierarchyProductCategoryRequestFromJSON(json: any): GetHierarchyProductCategoryRequest;
|
|
30
|
-
export declare function GetHierarchyProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHierarchyProductCategoryRequest;
|
|
31
|
-
export declare function GetHierarchyProductCategoryRequestToJSON(json: any): GetHierarchyProductCategoryRequest;
|
|
32
|
-
export declare function GetHierarchyProductCategoryRequestToJSONTyped(value?: GetHierarchyProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +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.instanceOfGetHierarchyProductCategoryRequest = instanceOfGetHierarchyProductCategoryRequest;
|
|
17
|
-
exports.GetHierarchyProductCategoryRequestFromJSON = GetHierarchyProductCategoryRequestFromJSON;
|
|
18
|
-
exports.GetHierarchyProductCategoryRequestFromJSONTyped = GetHierarchyProductCategoryRequestFromJSONTyped;
|
|
19
|
-
exports.GetHierarchyProductCategoryRequestToJSON = GetHierarchyProductCategoryRequestToJSON;
|
|
20
|
-
exports.GetHierarchyProductCategoryRequestToJSONTyped = GetHierarchyProductCategoryRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the GetHierarchyProductCategoryRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfGetHierarchyProductCategoryRequest(value) {
|
|
25
|
-
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function GetHierarchyProductCategoryRequestFromJSON(json) {
|
|
30
|
-
return GetHierarchyProductCategoryRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function GetHierarchyProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'siteId': json['site_id'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function GetHierarchyProductCategoryRequestToJSON(json) {
|
|
41
|
-
return GetHierarchyProductCategoryRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function GetHierarchyProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'site_id': value['siteId'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GetHierarchyProductCategoryRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`siteId` | number
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"siteId": null,
|
|
19
|
-
} satisfies GetHierarchyProductCategoryRequest
|
|
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 GetHierarchyProductCategoryRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface GetHierarchyProductCategoryRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface GetHierarchyProductCategoryRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof GetHierarchyProductCategoryRequest
|
|
26
|
-
*/
|
|
27
|
-
siteId: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the GetHierarchyProductCategoryRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfGetHierarchyProductCategoryRequest(value: object): value is GetHierarchyProductCategoryRequest {
|
|
34
|
-
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function GetHierarchyProductCategoryRequestFromJSON(json: any): GetHierarchyProductCategoryRequest {
|
|
39
|
-
return GetHierarchyProductCategoryRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function GetHierarchyProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHierarchyProductCategoryRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'siteId': json['site_id'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function GetHierarchyProductCategoryRequestToJSON(json: any): GetHierarchyProductCategoryRequest {
|
|
53
|
-
return GetHierarchyProductCategoryRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function GetHierarchyProductCategoryRequestToJSONTyped(value?: GetHierarchyProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'site_id': value['siteId'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|