@digital8/lighting-illusions-ts-sdk 0.0.585 → 0.0.587

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.585
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.587
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -107,7 +107,6 @@ All URIs are relative to *http://localhost/api*
107
107
  *ProductApi* | [**storeProductChild**](docs/ProductApi.md#storeproductchildoperation) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild
108
108
  *ProductApi* | [**updateProduct**](docs/ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct
109
109
  *ProductApi* | [**updateProductChild**](docs/ProductApi.md#updateproductchildoperation) | **PUT** /admin-api/product/children/{productChild}/update | Auto-generated: updateProductChild
110
- *ProductCategoryApi* | [**bulkDetachProductsProductCategory**](docs/ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory
111
110
  *ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
112
111
  *ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
113
112
  *ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
@@ -411,7 +410,7 @@ and is automatically generated by the
411
410
  [OpenAPI Generator](https://openapi-generator.tech) project:
412
411
 
413
412
  - API version: `1.0.0`
414
- - Package version: `0.0.585`
413
+ - Package version: `0.0.587`
415
414
  - Generator version: `7.18.0`
416
415
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
417
416
 
@@ -11,9 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
14
- export interface BulkDetachProductsProductCategoryRequest {
15
- productCategory: number;
16
- }
17
14
  export interface DestroyProductCategoryRequest {
18
15
  productCategory: number;
19
16
  }
@@ -44,14 +41,6 @@ export interface UpdateProductCategoryOperationRequest {
44
41
  *
45
42
  */
46
43
  export declare class ProductCategoryApi extends runtime.BaseAPI {
47
- /**
48
- * Auto-generated: bulkDetachProductsProductCategory
49
- */
50
- bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
51
- /**
52
- * Auto-generated: bulkDetachProductsProductCategory
53
- */
54
- bulkDetachProductsProductCategory(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
55
44
  /**
56
45
  * Auto-generated: destroyProductCategory
57
46
  */
@@ -75,52 +75,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
75
75
  function ProductCategoryApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
- /**
79
- * Auto-generated: bulkDetachProductsProductCategory
80
- */
81
- ProductCategoryApi.prototype.bulkDetachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- if (requestParameters['productCategory'] == null) {
88
- throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling bulkDetachProductsProductCategory().');
89
- }
90
- queryParameters = {};
91
- headerParameters = {};
92
- urlPath = "/admin-api/product-category/{productCategory}/bulk-detach-products";
93
- urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
94
- return [4 /*yield*/, this.request({
95
- path: urlPath,
96
- method: 'DELETE',
97
- headers: headerParameters,
98
- query: queryParameters,
99
- }, initOverrides)];
100
- case 1:
101
- response = _a.sent();
102
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
103
- }
104
- });
105
- });
106
- };
107
- /**
108
- * Auto-generated: bulkDetachProductsProductCategory
109
- */
110
- ProductCategoryApi.prototype.bulkDetachProductsProductCategory = function (requestParameters, initOverrides) {
111
- return __awaiter(this, void 0, void 0, function () {
112
- var response;
113
- return __generator(this, function (_a) {
114
- switch (_a.label) {
115
- case 0: return [4 /*yield*/, this.bulkDetachProductsProductCategoryRaw(requestParameters, initOverrides)];
116
- case 1:
117
- response = _a.sent();
118
- return [4 /*yield*/, response.value()];
119
- case 2: return [2 /*return*/, _a.sent()];
120
- }
121
- });
122
- });
123
- };
124
78
  /**
125
79
  * Auto-generated: destroyProductCategory
126
80
  */
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ 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;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -116,8 +116,6 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
116
116
  readonly Attribute: "attribute";
117
117
  readonly AttributeValue: "attributeValue";
118
118
  readonly CompatibleProduct: "compatibleProduct";
119
- readonly Category: "category";
120
- readonly AutomatedCategory: "automatedCategory";
121
119
  readonly Document: "document";
122
120
  readonly OverlayTemplate: "overlayTemplate";
123
121
  readonly ProductType: "productType";
@@ -51,8 +51,6 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
51
51
  Attribute: 'attribute',
52
52
  AttributeValue: 'attributeValue',
53
53
  CompatibleProduct: 'compatibleProduct',
54
- Category: 'category',
55
- AutomatedCategory: 'automatedCategory',
56
54
  Document: 'document',
57
55
  OverlayTemplate: 'overlayTemplate',
58
56
  ProductType: 'productType',
@@ -4,7 +4,6 @@ All URIs are relative to *http://localhost/api*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
- | [**bulkDetachProductsProductCategory**](ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory |
8
7
  | [**destroyProductCategory**](ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory |
9
8
  | [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
10
9
  | [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
@@ -17,71 +16,6 @@ All URIs are relative to *http://localhost/api*
17
16
 
18
17
 
19
18
 
20
- ## bulkDetachProductsProductCategory
21
-
22
- > GenericResponse bulkDetachProductsProductCategory(productCategory)
23
-
24
- Auto-generated: bulkDetachProductsProductCategory
25
-
26
- ### Example
27
-
28
- ```ts
29
- import {
30
- Configuration,
31
- ProductCategoryApi,
32
- } from '@digital8/lighting-illusions-ts-sdk';
33
- import type { BulkDetachProductsProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
34
-
35
- async function example() {
36
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
37
- const api = new ProductCategoryApi();
38
-
39
- const body = {
40
- // number | The id of the productCategory
41
- productCategory: 56,
42
- } satisfies BulkDetachProductsProductCategoryRequest;
43
-
44
- try {
45
- const data = await api.bulkDetachProductsProductCategory(body);
46
- console.log(data);
47
- } catch (error) {
48
- console.error(error);
49
- }
50
- }
51
-
52
- // Run the test
53
- example().catch(console.error);
54
- ```
55
-
56
- ### Parameters
57
-
58
-
59
- | Name | Type | Description | Notes |
60
- |------------- | ------------- | ------------- | -------------|
61
- | **productCategory** | `number` | The id of the productCategory | [Defaults to `undefined`] |
62
-
63
- ### Return type
64
-
65
- [**GenericResponse**](GenericResponse.md)
66
-
67
- ### Authorization
68
-
69
- No authorization required
70
-
71
- ### HTTP request headers
72
-
73
- - **Content-Type**: Not defined
74
- - **Accept**: `application/json`
75
-
76
-
77
- ### HTTP response details
78
- | Status code | Description | Response headers |
79
- |-------------|-------------|------------------|
80
- | **200** | \\JsonResponse | - |
81
-
82
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
-
84
-
85
19
  ## destroyProductCategory
86
20
 
87
21
  > GenericResponse destroyProductCategory(productCategory)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.585",
3
+ "version": "0.0.587",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -52,10 +52,6 @@ import {
52
52
  UpdateProductCategoryRequestToJSON,
53
53
  } from '../models/index';
54
54
 
55
- export interface BulkDetachProductsProductCategoryRequest {
56
- productCategory: number;
57
- }
58
-
59
55
  export interface DestroyProductCategoryRequest {
60
56
  productCategory: number;
61
57
  }
@@ -95,43 +91,6 @@ export interface UpdateProductCategoryOperationRequest {
95
91
  */
96
92
  export class ProductCategoryApi extends runtime.BaseAPI {
97
93
 
98
- /**
99
- * Auto-generated: bulkDetachProductsProductCategory
100
- */
101
- async bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
102
- if (requestParameters['productCategory'] == null) {
103
- throw new runtime.RequiredError(
104
- 'productCategory',
105
- 'Required parameter "productCategory" was null or undefined when calling bulkDetachProductsProductCategory().'
106
- );
107
- }
108
-
109
- const queryParameters: any = {};
110
-
111
- const headerParameters: runtime.HTTPHeaders = {};
112
-
113
-
114
- let urlPath = `/admin-api/product-category/{productCategory}/bulk-detach-products`;
115
- urlPath = urlPath.replace(`{${"productCategory"}}`, encodeURIComponent(String(requestParameters['productCategory'])));
116
-
117
- const response = await this.request({
118
- path: urlPath,
119
- method: 'DELETE',
120
- headers: headerParameters,
121
- query: queryParameters,
122
- }, initOverrides);
123
-
124
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
125
- }
126
-
127
- /**
128
- * Auto-generated: bulkDetachProductsProductCategory
129
- */
130
- async bulkDetachProductsProductCategory(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
131
- const response = await this.bulkDetachProductsProductCategoryRaw(requestParameters, initOverrides);
132
- return await response.value();
133
- }
134
-
135
94
  /**
136
95
  * Auto-generated: destroyProductCategory
137
96
  */
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
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']),
@@ -124,8 +124,6 @@ export const IndexProductChildRequestRelatedTypeEnum = {
124
124
  Attribute: 'attribute',
125
125
  AttributeValue: 'attributeValue',
126
126
  CompatibleProduct: 'compatibleProduct',
127
- Category: 'category',
128
- AutomatedCategory: 'automatedCategory',
129
127
  Document: 'document',
130
128
  OverlayTemplate: 'overlayTemplate',
131
129
  ProductType: 'productType',