@digital8/lighting-illusions-ts-sdk 0.0.2265 → 0.0.2266
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 +10 -0
- package/README.md +7 -2
- package/dist/apis/ProductClassApi.d.ts +34 -0
- package/dist/apis/ProductClassApi.js +139 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
- package/dist/models/CategoryAutomationFieldType.js +3 -1
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
- package/dist/models/FrontendCartResource.d.ts +0 -12
- package/dist/models/FrontendCartResource.js +0 -8
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
- package/dist/models/ProductClassLiteResource.d.ts +44 -0
- package/dist/models/ProductClassLiteResource.js +57 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/SearchAllProductClassesRequest.js +74 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/FrontendCartResource.md +0 -4
- package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
- package/docs/ProductClassApi.md +74 -0
- package/docs/ProductClassLiteResource.md +38 -0
- package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/SearchAllProductClassesRequest.md +44 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +76 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +2 -3
- package/src/models/CategoryAutomationFieldType.ts +3 -1
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
- package/src/models/FrontendCartResource.ts +0 -18
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
- package/src/models/ProductClassLiteResource.ts +83 -0
- package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -332,6 +332,7 @@ docs/PaginatedProductChildLiteResourceResponse.md
|
|
|
332
332
|
docs/PaginatedProductChildOverlayRelationResourceResponse.md
|
|
333
333
|
docs/PaginatedProductChildRelationResourceResponse.md
|
|
334
334
|
docs/PaginatedProductChildResourceResponse.md
|
|
335
|
+
docs/PaginatedProductClassLiteResourceResponse.md
|
|
335
336
|
docs/PaginatedProductListResourceResponse.md
|
|
336
337
|
docs/PaginatedProductLiteResourceResponse.md
|
|
337
338
|
docs/PaginatedProductRangeFrontendListResourceResponse.md
|
|
@@ -410,6 +411,9 @@ docs/ProductChildSiteDetailLiteResource.md
|
|
|
410
411
|
docs/ProductChildSiteDetailLiteResourceArrayResponse.md
|
|
411
412
|
docs/ProductChildSiteDetailResource.md
|
|
412
413
|
docs/ProductChildSiteDetailResourceArrayResponse.md
|
|
414
|
+
docs/ProductClassApi.md
|
|
415
|
+
docs/ProductClassLiteResource.md
|
|
416
|
+
docs/ProductClassLiteResourceArrayResponse.md
|
|
413
417
|
docs/ProductClassResource.md
|
|
414
418
|
docs/ProductClassResourceArrayResponse.md
|
|
415
419
|
docs/ProductCompareResource.md
|
|
@@ -518,6 +522,7 @@ docs/SearchAllPageComponentsRequest.md
|
|
|
518
522
|
docs/SearchAllPagesRequest.md
|
|
519
523
|
docs/SearchAllProductCategoriesRequest.md
|
|
520
524
|
docs/SearchAllProductChildrenRequest.md
|
|
525
|
+
docs/SearchAllProductClassesRequest.md
|
|
521
526
|
docs/SearchAllProductRangesRequest.md
|
|
522
527
|
docs/SearchAllProductRegistrationsRequest.md
|
|
523
528
|
docs/SearchAllProductTypesRequest.md
|
|
@@ -684,6 +689,7 @@ src/apis/PageApi.ts
|
|
|
684
689
|
src/apis/PageComponentApi.ts
|
|
685
690
|
src/apis/ProductApi.ts
|
|
686
691
|
src/apis/ProductCategoryApi.ts
|
|
692
|
+
src/apis/ProductClassApi.ts
|
|
687
693
|
src/apis/ProductRangeApi.ts
|
|
688
694
|
src/apis/ProductRegistrationApi.ts
|
|
689
695
|
src/apis/ProductTypeApi.ts
|
|
@@ -1008,6 +1014,7 @@ src/models/PaginatedProductChildLiteResourceResponse.ts
|
|
|
1008
1014
|
src/models/PaginatedProductChildOverlayRelationResourceResponse.ts
|
|
1009
1015
|
src/models/PaginatedProductChildRelationResourceResponse.ts
|
|
1010
1016
|
src/models/PaginatedProductChildResourceResponse.ts
|
|
1017
|
+
src/models/PaginatedProductClassLiteResourceResponse.ts
|
|
1011
1018
|
src/models/PaginatedProductListResourceResponse.ts
|
|
1012
1019
|
src/models/PaginatedProductLiteResourceResponse.ts
|
|
1013
1020
|
src/models/PaginatedProductRangeFrontendListResourceResponse.ts
|
|
@@ -1084,6 +1091,8 @@ src/models/ProductChildSiteDetailLiteResource.ts
|
|
|
1084
1091
|
src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
|
|
1085
1092
|
src/models/ProductChildSiteDetailResource.ts
|
|
1086
1093
|
src/models/ProductChildSiteDetailResourceArrayResponse.ts
|
|
1094
|
+
src/models/ProductClassLiteResource.ts
|
|
1095
|
+
src/models/ProductClassLiteResourceArrayResponse.ts
|
|
1087
1096
|
src/models/ProductClassResource.ts
|
|
1088
1097
|
src/models/ProductClassResourceArrayResponse.ts
|
|
1089
1098
|
src/models/ProductCompareResource.ts
|
|
@@ -1187,6 +1196,7 @@ src/models/SearchAllPageComponentsRequest.ts
|
|
|
1187
1196
|
src/models/SearchAllPagesRequest.ts
|
|
1188
1197
|
src/models/SearchAllProductCategoriesRequest.ts
|
|
1189
1198
|
src/models/SearchAllProductChildrenRequest.ts
|
|
1199
|
+
src/models/SearchAllProductClassesRequest.ts
|
|
1190
1200
|
src/models/SearchAllProductRangesRequest.ts
|
|
1191
1201
|
src/models/SearchAllProductRegistrationsRequest.ts
|
|
1192
1202
|
src/models/SearchAllProductTypesRequest.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.2266
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -208,6 +208,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
208
208
|
*ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
|
|
209
209
|
*ProductCategoryApi* | [**storeProductCategory**](docs/ProductCategoryApi.md#storeproductcategory) | **POST** /admin-api/product-category/create | Auto-generated: storeProductCategory
|
|
210
210
|
*ProductCategoryApi* | [**updateProductCategory**](docs/ProductCategoryApi.md#updateproductcategoryoperation) | **PUT** /admin-api/product-category/{productCategory}/update | Auto-generated: updateProductCategory
|
|
211
|
+
*ProductClassApi* | [**getAllProductClass**](docs/ProductClassApi.md#getallproductclass) | **POST** /admin-api/product-class/all | Auto-generated: getAllProductClass
|
|
211
212
|
*ProductRangeApi* | [**attachAccessoriesProductRange**](docs/ProductRangeApi.md#attachaccessoriesproductrange) | **POST** /admin-api/product-range/{productRange}/attach-accessories | Auto-generated: attachAccessoriesProductRange
|
|
212
213
|
*ProductRangeApi* | [**attachAttributesProductRange**](docs/ProductRangeApi.md#attachattributesproductrange) | **POST** /admin-api/product-range/{productRange}/attach-attributes | Auto-generated: attachAttributesProductRange
|
|
213
214
|
*ProductRangeApi* | [**attachDocumentsProductRange**](docs/ProductRangeApi.md#attachdocumentsproductrange) | **POST** /admin-api/product-range/{productRange}/attach-documents | Auto-generated: attachDocumentsProductRange
|
|
@@ -605,6 +606,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
605
606
|
- [PaginatedProductChildOverlayRelationResourceResponse](docs/PaginatedProductChildOverlayRelationResourceResponse.md)
|
|
606
607
|
- [PaginatedProductChildRelationResourceResponse](docs/PaginatedProductChildRelationResourceResponse.md)
|
|
607
608
|
- [PaginatedProductChildResourceResponse](docs/PaginatedProductChildResourceResponse.md)
|
|
609
|
+
- [PaginatedProductClassLiteResourceResponse](docs/PaginatedProductClassLiteResourceResponse.md)
|
|
608
610
|
- [PaginatedProductListResourceResponse](docs/PaginatedProductListResourceResponse.md)
|
|
609
611
|
- [PaginatedProductLiteResourceResponse](docs/PaginatedProductLiteResourceResponse.md)
|
|
610
612
|
- [PaginatedProductRangeFrontendListResourceResponse](docs/PaginatedProductRangeFrontendListResourceResponse.md)
|
|
@@ -681,6 +683,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
681
683
|
- [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
|
|
682
684
|
- [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
|
|
683
685
|
- [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
|
|
686
|
+
- [ProductClassLiteResource](docs/ProductClassLiteResource.md)
|
|
687
|
+
- [ProductClassLiteResourceArrayResponse](docs/ProductClassLiteResourceArrayResponse.md)
|
|
684
688
|
- [ProductClassResource](docs/ProductClassResource.md)
|
|
685
689
|
- [ProductClassResourceArrayResponse](docs/ProductClassResourceArrayResponse.md)
|
|
686
690
|
- [ProductCompareResource](docs/ProductCompareResource.md)
|
|
@@ -784,6 +788,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
784
788
|
- [SearchAllPagesRequest](docs/SearchAllPagesRequest.md)
|
|
785
789
|
- [SearchAllProductCategoriesRequest](docs/SearchAllProductCategoriesRequest.md)
|
|
786
790
|
- [SearchAllProductChildrenRequest](docs/SearchAllProductChildrenRequest.md)
|
|
791
|
+
- [SearchAllProductClassesRequest](docs/SearchAllProductClassesRequest.md)
|
|
787
792
|
- [SearchAllProductRangesRequest](docs/SearchAllProductRangesRequest.md)
|
|
788
793
|
- [SearchAllProductRegistrationsRequest](docs/SearchAllProductRegistrationsRequest.md)
|
|
789
794
|
- [SearchAllProductTypesRequest](docs/SearchAllProductTypesRequest.md)
|
|
@@ -937,7 +942,7 @@ and is automatically generated by the
|
|
|
937
942
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
938
943
|
|
|
939
944
|
- API version: `1.0.0`
|
|
940
|
-
- Package version: `0.0.
|
|
945
|
+
- Package version: `0.0.2266`
|
|
941
946
|
- Generator version: `7.22.0`
|
|
942
947
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
943
948
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type ProductClassLiteResourceArrayResponse } from '../models/ProductClassLiteResourceArrayResponse';
|
|
14
|
+
import { type SearchAllProductClassesRequest } from '../models/SearchAllProductClassesRequest';
|
|
15
|
+
export interface GetAllProductClassRequest {
|
|
16
|
+
searchAllProductClassesRequest?: SearchAllProductClassesRequest;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class ProductClassApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Creates request options for getAllProductClass without sending the request
|
|
24
|
+
*/
|
|
25
|
+
getAllProductClassRequestOpts(requestParameters: GetAllProductClassRequest): Promise<runtime.RequestOpts>;
|
|
26
|
+
/**
|
|
27
|
+
* Auto-generated: getAllProductClass
|
|
28
|
+
*/
|
|
29
|
+
getAllProductClassRaw(requestParameters: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductClassLiteResourceArrayResponse>>;
|
|
30
|
+
/**
|
|
31
|
+
* Auto-generated: getAllProductClass
|
|
32
|
+
*/
|
|
33
|
+
getAllProductClass(requestParameters?: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductClassLiteResourceArrayResponse>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.ProductClassApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var ProductClassLiteResourceArrayResponse_1 = require("../models/ProductClassLiteResourceArrayResponse");
|
|
70
|
+
var SearchAllProductClassesRequest_1 = require("../models/SearchAllProductClassesRequest");
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
var ProductClassApi = /** @class */ (function (_super) {
|
|
75
|
+
__extends(ProductClassApi, _super);
|
|
76
|
+
function ProductClassApi() {
|
|
77
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates request options for getAllProductClass without sending the request
|
|
81
|
+
*/
|
|
82
|
+
ProductClassApi.prototype.getAllProductClassRequestOpts = function (requestParameters) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, urlPath;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
queryParameters = {};
|
|
87
|
+
headerParameters = {};
|
|
88
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
89
|
+
urlPath = "/admin-api/product-class/all";
|
|
90
|
+
return [2 /*return*/, {
|
|
91
|
+
path: urlPath,
|
|
92
|
+
method: 'POST',
|
|
93
|
+
headers: headerParameters,
|
|
94
|
+
query: queryParameters,
|
|
95
|
+
body: (0, SearchAllProductClassesRequest_1.SearchAllProductClassesRequestToJSON)(requestParameters['searchAllProductClassesRequest']),
|
|
96
|
+
}];
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Auto-generated: getAllProductClass
|
|
102
|
+
*/
|
|
103
|
+
ProductClassApi.prototype.getAllProductClassRaw = function (requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
+
var requestOptions, response;
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
switch (_a.label) {
|
|
108
|
+
case 0: return [4 /*yield*/, this.getAllProductClassRequestOpts(requestParameters)];
|
|
109
|
+
case 1:
|
|
110
|
+
requestOptions = _a.sent();
|
|
111
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
112
|
+
case 2:
|
|
113
|
+
response = _a.sent();
|
|
114
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProductClassLiteResourceArrayResponse_1.ProductClassLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Auto-generated: getAllProductClass
|
|
121
|
+
*/
|
|
122
|
+
ProductClassApi.prototype.getAllProductClass = function () {
|
|
123
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
124
|
+
var response;
|
|
125
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
switch (_a.label) {
|
|
128
|
+
case 0: return [4 /*yield*/, this.getAllProductClassRaw(requestParameters, initOverrides)];
|
|
129
|
+
case 1:
|
|
130
|
+
response = _a.sent();
|
|
131
|
+
return [4 /*yield*/, response.value()];
|
|
132
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
return ProductClassApi;
|
|
138
|
+
}(runtime.BaseAPI));
|
|
139
|
+
exports.ProductClassApi = ProductClassApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './PageApi';
|
|
|
18
18
|
export * from './PageComponentApi';
|
|
19
19
|
export * from './ProductApi';
|
|
20
20
|
export * from './ProductCategoryApi';
|
|
21
|
+
export * from './ProductClassApi';
|
|
21
22
|
export * from './ProductRangeApi';
|
|
22
23
|
export * from './ProductRegistrationApi';
|
|
23
24
|
export * from './ProductTypeApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __exportStar(require("./PageApi"), exports);
|
|
|
36
36
|
__exportStar(require("./PageComponentApi"), exports);
|
|
37
37
|
__exportStar(require("./ProductApi"), exports);
|
|
38
38
|
__exportStar(require("./ProductCategoryApi"), exports);
|
|
39
|
+
__exportStar(require("./ProductClassApi"), exports);
|
|
39
40
|
__exportStar(require("./ProductRangeApi"), exports);
|
|
40
41
|
__exportStar(require("./ProductRegistrationApi"), exports);
|
|
41
42
|
__exportStar(require("./ProductTypeApi"), exports);
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,8 +22,12 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
27
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
28
32
|
return false;
|
|
29
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -44,9 +48,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
48
|
return json;
|
|
45
49
|
}
|
|
46
50
|
return {
|
|
47
|
-
'company': json['company']
|
|
51
|
+
'company': json['company'],
|
|
48
52
|
'line1': json['line1'],
|
|
49
|
-
'line2': json['line2']
|
|
53
|
+
'line2': json['line2'],
|
|
50
54
|
'postcode': json['postcode'],
|
|
51
55
|
'suburb': json['suburb'],
|
|
52
56
|
'country': json['country'],
|
|
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -49,7 +47,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
48
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
49
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
52
|
-
'addresseeName': json['addresseeName'],
|
|
50
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
53
51
|
'company': json['company'] == null ? undefined : json['company'],
|
|
54
52
|
'line1': json['line1'],
|
|
55
53
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
@@ -21,6 +21,8 @@ export declare const CategoryAutomationFieldType: {
|
|
|
21
21
|
readonly Tag: "tag";
|
|
22
22
|
readonly Supplier: "supplier";
|
|
23
23
|
readonly Label: "label";
|
|
24
|
+
readonly ProductType: "product_type";
|
|
25
|
+
readonly ProductClass: "product_class";
|
|
24
26
|
};
|
|
25
27
|
export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
|
|
26
28
|
export declare function instanceOfCategoryAutomationFieldType(value: any): boolean;
|
|
@@ -30,7 +30,9 @@ exports.CategoryAutomationFieldType = {
|
|
|
30
30
|
Attribute: 'attribute',
|
|
31
31
|
Tag: 'tag',
|
|
32
32
|
Supplier: 'supplier',
|
|
33
|
-
Label: 'label'
|
|
33
|
+
Label: 'label',
|
|
34
|
+
ProductType: 'product_type',
|
|
35
|
+
ProductClass: 'product_class'
|
|
34
36
|
};
|
|
35
37
|
function instanceOfCategoryAutomationFieldType(value) {
|
|
36
38
|
for (var key in exports.CategoryAutomationFieldType) {
|
|
@@ -63,6 +63,8 @@ export declare const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEn
|
|
|
63
63
|
readonly Tag: "tag";
|
|
64
64
|
readonly Supplier: "supplier";
|
|
65
65
|
readonly Label: "label";
|
|
66
|
+
readonly ProductType: "product_type";
|
|
67
|
+
readonly ProductClass: "product_class";
|
|
66
68
|
};
|
|
67
69
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
68
70
|
/**
|
|
@@ -29,7 +29,9 @@ exports.CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
29
29
|
Attribute: 'attribute',
|
|
30
30
|
Tag: 'tag',
|
|
31
31
|
Supplier: 'supplier',
|
|
32
|
-
Label: 'label'
|
|
32
|
+
Label: 'label',
|
|
33
|
+
ProductType: 'product_type',
|
|
34
|
+
ProductClass: 'product_class'
|
|
33
35
|
};
|
|
34
36
|
/**
|
|
35
37
|
* @export
|
|
@@ -121,18 +121,6 @@ export interface FrontendCartResource {
|
|
|
121
121
|
* @memberof FrontendCartResource
|
|
122
122
|
*/
|
|
123
123
|
transitInsurance: number;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {number}
|
|
127
|
-
* @memberof FrontendCartResource
|
|
128
|
-
*/
|
|
129
|
-
deliveryShippingQuote: number;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {number}
|
|
133
|
-
* @memberof FrontendCartResource
|
|
134
|
-
*/
|
|
135
|
-
transitInsuranceQuote: number;
|
|
136
124
|
/**
|
|
137
125
|
*
|
|
138
126
|
* @type {number}
|
|
@@ -54,10 +54,6 @@ function instanceOfFrontendCartResource(value) {
|
|
|
54
54
|
return false;
|
|
55
55
|
if (!('transitInsurance' in value) || value['transitInsurance'] === undefined)
|
|
56
56
|
return false;
|
|
57
|
-
if (!('deliveryShippingQuote' in value) || value['deliveryShippingQuote'] === undefined)
|
|
58
|
-
return false;
|
|
59
|
-
if (!('transitInsuranceQuote' in value) || value['transitInsuranceQuote'] === undefined)
|
|
60
|
-
return false;
|
|
61
57
|
if (!('gst' in value) || value['gst'] === undefined)
|
|
62
58
|
return false;
|
|
63
59
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined)
|
|
@@ -89,8 +85,6 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
85
|
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
90
86
|
'shipping': json['shipping'],
|
|
91
87
|
'transitInsurance': json['transitInsurance'],
|
|
92
|
-
'deliveryShippingQuote': json['deliveryShippingQuote'],
|
|
93
|
-
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
94
88
|
'gst': json['gst'],
|
|
95
89
|
'grandTotal': json['grandTotal'],
|
|
96
90
|
};
|
|
@@ -121,8 +115,6 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
121
115
|
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
122
116
|
'shipping': value['shipping'],
|
|
123
117
|
'transitInsurance': value['transitInsurance'],
|
|
124
|
-
'deliveryShippingQuote': value['deliveryShippingQuote'],
|
|
125
|
-
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
126
118
|
'gst': value['gst'],
|
|
127
119
|
'grandTotal': value['grandTotal'],
|
|
128
120
|
};
|
|
@@ -45,13 +45,13 @@ export interface OrderFulfillmentResource {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,7 +29,7 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -51,8 +51,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'orderId': json['orderId'],
|
|
52
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
53
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
54
|
-
'trackingUrl': json['trackingUrl']
|
|
55
|
-
'trackingCompany': json['trackingCompany'],
|
|
54
|
+
'trackingUrl': json['trackingUrl'],
|
|
55
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
56
56
|
'docnum': json['docnum'],
|
|
57
57
|
'netsuiteId': json['netsuiteId'],
|
|
58
58
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductClassLiteResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductClassLiteResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductClassLiteResource>}
|
|
23
|
+
* @memberof PaginatedProductClassLiteResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductClassLiteResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductClassLiteResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductClassLiteResourceResponse(value: object): value is PaginatedProductClassLiteResourceResponse;
|
|
37
|
+
export declare function PaginatedProductClassLiteResourceResponseFromJSON(json: any): PaginatedProductClassLiteResourceResponse;
|
|
38
|
+
export declare function PaginatedProductClassLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductClassLiteResourceResponse;
|
|
39
|
+
export declare function PaginatedProductClassLiteResourceResponseToJSON(json: any): PaginatedProductClassLiteResourceResponse;
|
|
40
|
+
export declare function PaginatedProductClassLiteResourceResponseToJSONTyped(value?: PaginatedProductClassLiteResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedProductClassLiteResourceResponse = instanceOfPaginatedProductClassLiteResourceResponse;
|
|
17
|
+
exports.PaginatedProductClassLiteResourceResponseFromJSON = PaginatedProductClassLiteResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedProductClassLiteResourceResponseFromJSONTyped = PaginatedProductClassLiteResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedProductClassLiteResourceResponseToJSON = PaginatedProductClassLiteResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedProductClassLiteResourceResponseToJSONTyped = PaginatedProductClassLiteResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var ProductClassLiteResource_1 = require("./ProductClassLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedProductClassLiteResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedProductClassLiteResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedProductClassLiteResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedProductClassLiteResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ProductClassLiteResource_1.ProductClassLiteResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedProductClassLiteResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedProductClassLiteResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedProductClassLiteResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ProductClassLiteResource_1.ProductClassLiteResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ProductClassLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductClassLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductClassLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductClassLiteResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductClassLiteResource
|
|
34
|
+
*/
|
|
35
|
+
pathString: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProductClassLiteResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfProductClassLiteResource(value: object): value is ProductClassLiteResource;
|
|
41
|
+
export declare function ProductClassLiteResourceFromJSON(json: any): ProductClassLiteResource;
|
|
42
|
+
export declare function ProductClassLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResource;
|
|
43
|
+
export declare function ProductClassLiteResourceToJSON(json: any): ProductClassLiteResource;
|
|
44
|
+
export declare function ProductClassLiteResourceToJSONTyped(value?: ProductClassLiteResource | null, ignoreDiscriminator?: boolean): any;
|