@digital8/lighting-illusions-ts-sdk 0.0.2349 → 0.0.2350

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.
Files changed (128) hide show
  1. package/.openapi-generator/FILES +14 -4
  2. package/README.md +9 -4
  3. package/dist/apis/ProductClassApi.d.ts +34 -0
  4. package/dist/apis/ProductClassApi.js +139 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +3 -1
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AdminOrderResource.d.ts +2 -3
  12. package/dist/models/AdminOrderResource.js +2 -3
  13. package/dist/models/AppliedCouponResource.d.ts +50 -0
  14. package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
  15. package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
  17. package/dist/models/CartListResource.d.ts +6 -0
  18. package/dist/models/CartListResource.js +4 -0
  19. package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
  20. package/dist/models/CategoryAutomationFieldType.js +3 -1
  21. package/dist/models/CreatePageComponentRequest.d.ts +4 -4
  22. package/dist/models/CreatePageComponentRequest.js +4 -4
  23. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
  24. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
  25. package/dist/models/CreateSupplierRequest.d.ts +6 -0
  26. package/dist/models/CreateSupplierRequest.js +2 -0
  27. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  28. package/dist/models/ExternalApiLogResource.js +3 -1
  29. package/dist/models/FrontendCartResource.d.ts +18 -0
  30. package/dist/models/FrontendCartResource.js +12 -0
  31. package/dist/models/FrontendOrderResource.d.ts +3 -3
  32. package/dist/models/FrontendOrderResource.js +3 -3
  33. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  34. package/dist/models/OrderFulfillmentResource.js +2 -6
  35. package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
  36. package/dist/models/OrderStatusWithCountResource.js +8 -0
  37. package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
  38. package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
  39. package/dist/models/ProductClassLiteResource.d.ts +44 -0
  40. package/dist/models/ProductClassLiteResource.js +57 -0
  41. package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
  43. package/dist/models/ProductClassResource.d.ts +2 -2
  44. package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
  45. package/dist/models/SearchAllOrdersRequest.js +2 -0
  46. package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
  47. package/dist/models/SearchAllProductClassesRequest.js +74 -0
  48. package/dist/models/SearchOrdersRequest.d.ts +6 -0
  49. package/dist/models/SearchOrdersRequest.js +2 -0
  50. package/dist/models/StoreFrontendResource.d.ts +1 -1
  51. package/dist/models/StoreFrontendResource.js +1 -3
  52. package/dist/models/StoreListResource.d.ts +1 -1
  53. package/dist/models/StoreListResource.js +1 -3
  54. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  55. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  56. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  57. package/dist/models/StoreSpecialDateResource.js +1 -3
  58. package/dist/models/SupplierFrontendResource.d.ts +6 -0
  59. package/dist/models/SupplierFrontendResource.js +4 -0
  60. package/dist/models/SupplierResource.d.ts +6 -0
  61. package/dist/models/SupplierResource.js +4 -0
  62. package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
  63. package/dist/models/UpdatePageComponentRequest.js +4 -4
  64. package/dist/models/UpdateSupplierRequest.d.ts +6 -0
  65. package/dist/models/UpdateSupplierRequest.js +2 -0
  66. package/dist/models/index.d.ts +6 -2
  67. package/dist/models/index.js +6 -2
  68. package/docs/AdminOrderResource.md +1 -1
  69. package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
  70. package/docs/{CartCouponResourceArrayResponse.md → AppliedCouponResourceArrayResponse.md} +5 -5
  71. package/docs/CartListResource.md +2 -0
  72. package/docs/CreatePageComponentRequest.md +2 -2
  73. package/docs/CreateSupplierRequest.md +2 -0
  74. package/docs/FrontendCartResource.md +6 -0
  75. package/docs/FrontendOrderResource.md +1 -1
  76. package/docs/OrderStatusWithCountResource.md +4 -0
  77. package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
  78. package/docs/ProductClassApi.md +74 -0
  79. package/docs/ProductClassLiteResource.md +38 -0
  80. package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
  81. package/docs/ProductClassResource.md +1 -1
  82. package/docs/SearchAllOrdersRequest.md +2 -0
  83. package/docs/SearchAllProductClassesRequest.md +44 -0
  84. package/docs/SearchOrdersRequest.md +2 -0
  85. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  86. package/docs/StoreSpecialDateResource.md +1 -1
  87. package/docs/SupplierFrontendResource.md +2 -0
  88. package/docs/SupplierResource.md +2 -0
  89. package/docs/UpdatePageComponentRequest.md +2 -2
  90. package/docs/UpdateSupplierRequest.md +2 -0
  91. package/package.json +1 -1
  92. package/src/apis/ProductClassApi.ts +76 -0
  93. package/src/apis/index.ts +1 -0
  94. package/src/models/AddressFrontendResource.ts +3 -2
  95. package/src/models/AddressResource.ts +3 -2
  96. package/src/models/AdminOrderResource.ts +4 -11
  97. package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
  98. package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
  99. package/src/models/CartListResource.ts +9 -0
  100. package/src/models/CategoryAutomationFieldType.ts +3 -1
  101. package/src/models/CreatePageComponentRequest.ts +8 -8
  102. package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
  103. package/src/models/CreateSupplierRequest.ts +8 -0
  104. package/src/models/ExternalApiLogResource.ts +3 -2
  105. package/src/models/FrontendCartResource.ts +27 -0
  106. package/src/models/FrontendOrderResource.ts +11 -11
  107. package/src/models/OrderFulfillmentResource.ts +4 -6
  108. package/src/models/OrderStatusWithCountResource.ts +18 -0
  109. package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
  110. package/src/models/ProductClassLiteResource.ts +83 -0
  111. package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
  112. package/src/models/ProductClassResource.ts +2 -2
  113. package/src/models/SearchAllOrdersRequest.ts +8 -0
  114. package/src/models/SearchAllProductClassesRequest.ts +125 -0
  115. package/src/models/SearchOrdersRequest.ts +8 -0
  116. package/src/models/StoreFrontendResource.ts +2 -3
  117. package/src/models/StoreListResource.ts +2 -3
  118. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  119. package/src/models/StoreSpecialDateResource.ts +3 -4
  120. package/src/models/SupplierFrontendResource.ts +9 -0
  121. package/src/models/SupplierResource.ts +9 -0
  122. package/src/models/UpdatePageComponentRequest.ts +8 -8
  123. package/src/models/UpdateSupplierRequest.ts +8 -0
  124. package/src/models/index.ts +6 -2
  125. package/dist/models/CartCouponResource.d.ts +0 -50
  126. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  127. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  128. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
@@ -16,6 +16,8 @@ docs/AdminOrderResource.md
16
16
  docs/AdminOrderResourceArrayResponse.md
17
17
  docs/AdminUserLiteResource.md
18
18
  docs/AdminUserLiteResourceArrayResponse.md
19
+ docs/AppliedCouponResource.md
20
+ docs/AppliedCouponResourceArrayResponse.md
19
21
  docs/AssetApi.md
20
22
  docs/AssetFileForUploadResource.md
21
23
  docs/AssetFileForUploadResourceArrayResponse.md
@@ -69,8 +71,6 @@ docs/BlogResource.md
69
71
  docs/BlogResourceArrayResponse.md
70
72
  docs/CartCouponLiteResource.md
71
73
  docs/CartCouponLiteResourceArrayResponse.md
72
- docs/CartCouponResource.md
73
- docs/CartCouponResourceArrayResponse.md
74
74
  docs/CartListResource.md
75
75
  docs/CartListResourceArrayResponse.md
76
76
  docs/CartOrderSource.md
@@ -344,6 +344,7 @@ docs/PaginatedProductChildLiteResourceResponse.md
344
344
  docs/PaginatedProductChildOverlayRelationResourceResponse.md
345
345
  docs/PaginatedProductChildRelationResourceResponse.md
346
346
  docs/PaginatedProductChildResourceResponse.md
347
+ docs/PaginatedProductClassLiteResourceResponse.md
347
348
  docs/PaginatedProductListResourceResponse.md
348
349
  docs/PaginatedProductLiteResourceResponse.md
349
350
  docs/PaginatedProductRangeFrontendListResourceResponse.md
@@ -422,6 +423,9 @@ docs/ProductChildSiteDetailLiteResource.md
422
423
  docs/ProductChildSiteDetailLiteResourceArrayResponse.md
423
424
  docs/ProductChildSiteDetailResource.md
424
425
  docs/ProductChildSiteDetailResourceArrayResponse.md
426
+ docs/ProductClassApi.md
427
+ docs/ProductClassLiteResource.md
428
+ docs/ProductClassLiteResourceArrayResponse.md
425
429
  docs/ProductClassResource.md
426
430
  docs/ProductClassResourceArrayResponse.md
427
431
  docs/ProductCompareResource.md
@@ -531,6 +535,7 @@ docs/SearchAllPageComponentsRequest.md
531
535
  docs/SearchAllPagesRequest.md
532
536
  docs/SearchAllProductCategoriesRequest.md
533
537
  docs/SearchAllProductChildrenRequest.md
538
+ docs/SearchAllProductClassesRequest.md
534
539
  docs/SearchAllProductRangesRequest.md
535
540
  docs/SearchAllProductRegistrationsRequest.md
536
541
  docs/SearchAllProductTypesRequest.md
@@ -700,6 +705,7 @@ src/apis/PageApi.ts
700
705
  src/apis/PageComponentApi.ts
701
706
  src/apis/ProductApi.ts
702
707
  src/apis/ProductCategoryApi.ts
708
+ src/apis/ProductClassApi.ts
703
709
  src/apis/ProductRangeApi.ts
704
710
  src/apis/ProductRegistrationApi.ts
705
711
  src/apis/ProductTypeApi.ts
@@ -725,6 +731,8 @@ src/models/AdminOrderResource.ts
725
731
  src/models/AdminOrderResourceArrayResponse.ts
726
732
  src/models/AdminUserLiteResource.ts
727
733
  src/models/AdminUserLiteResourceArrayResponse.ts
734
+ src/models/AppliedCouponResource.ts
735
+ src/models/AppliedCouponResourceArrayResponse.ts
728
736
  src/models/AssetFileForUploadResource.ts
729
737
  src/models/AssetFileForUploadResourceArrayResponse.ts
730
738
  src/models/AssetFrontendResource.ts
@@ -775,8 +783,6 @@ src/models/BlogResource.ts
775
783
  src/models/BlogResourceArrayResponse.ts
776
784
  src/models/CartCouponLiteResource.ts
777
785
  src/models/CartCouponLiteResourceArrayResponse.ts
778
- src/models/CartCouponResource.ts
779
- src/models/CartCouponResourceArrayResponse.ts
780
786
  src/models/CartListResource.ts
781
787
  src/models/CartListResourceArrayResponse.ts
782
788
  src/models/CartOrderSource.ts
@@ -1035,6 +1041,7 @@ src/models/PaginatedProductChildLiteResourceResponse.ts
1035
1041
  src/models/PaginatedProductChildOverlayRelationResourceResponse.ts
1036
1042
  src/models/PaginatedProductChildRelationResourceResponse.ts
1037
1043
  src/models/PaginatedProductChildResourceResponse.ts
1044
+ src/models/PaginatedProductClassLiteResourceResponse.ts
1038
1045
  src/models/PaginatedProductListResourceResponse.ts
1039
1046
  src/models/PaginatedProductLiteResourceResponse.ts
1040
1047
  src/models/PaginatedProductRangeFrontendListResourceResponse.ts
@@ -1111,6 +1118,8 @@ src/models/ProductChildSiteDetailLiteResource.ts
1111
1118
  src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
1112
1119
  src/models/ProductChildSiteDetailResource.ts
1113
1120
  src/models/ProductChildSiteDetailResourceArrayResponse.ts
1121
+ src/models/ProductClassLiteResource.ts
1122
+ src/models/ProductClassLiteResourceArrayResponse.ts
1114
1123
  src/models/ProductClassResource.ts
1115
1124
  src/models/ProductClassResourceArrayResponse.ts
1116
1125
  src/models/ProductCompareResource.ts
@@ -1215,6 +1224,7 @@ src/models/SearchAllPageComponentsRequest.ts
1215
1224
  src/models/SearchAllPagesRequest.ts
1216
1225
  src/models/SearchAllProductCategoriesRequest.ts
1217
1226
  src/models/SearchAllProductChildrenRequest.ts
1227
+ src/models/SearchAllProductClassesRequest.ts
1218
1228
  src/models/SearchAllProductRangesRequest.ts
1219
1229
  src/models/SearchAllProductRegistrationsRequest.ts
1220
1230
  src/models/SearchAllProductTypesRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.2349
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.2350
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -214,6 +214,7 @@ All URIs are relative to *http://localhost/api*
214
214
  *ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
215
215
  *ProductCategoryApi* | [**storeProductCategory**](docs/ProductCategoryApi.md#storeproductcategory) | **POST** /admin-api/product-category/create | Auto-generated: storeProductCategory
216
216
  *ProductCategoryApi* | [**updateProductCategory**](docs/ProductCategoryApi.md#updateproductcategoryoperation) | **PUT** /admin-api/product-category/{productCategory}/update | Auto-generated: updateProductCategory
217
+ *ProductClassApi* | [**getAllProductClass**](docs/ProductClassApi.md#getallproductclass) | **POST** /admin-api/product-class/all | Auto-generated: getAllProductClass
217
218
  *ProductRangeApi* | [**attachAccessoriesProductRange**](docs/ProductRangeApi.md#attachaccessoriesproductrange) | **POST** /admin-api/product-range/{productRange}/attach-accessories | Auto-generated: attachAccessoriesProductRange
218
219
  *ProductRangeApi* | [**attachAttributesProductRange**](docs/ProductRangeApi.md#attachattributesproductrange) | **POST** /admin-api/product-range/{productRange}/attach-attributes | Auto-generated: attachAttributesProductRange
219
220
  *ProductRangeApi* | [**attachDocumentsProductRange**](docs/ProductRangeApi.md#attachdocumentsproductrange) | **POST** /admin-api/product-range/{productRange}/attach-documents | Auto-generated: attachDocumentsProductRange
@@ -312,6 +313,8 @@ All URIs are relative to *http://localhost/api*
312
313
  - [AdminOrderResourceArrayResponse](docs/AdminOrderResourceArrayResponse.md)
313
314
  - [AdminUserLiteResource](docs/AdminUserLiteResource.md)
314
315
  - [AdminUserLiteResourceArrayResponse](docs/AdminUserLiteResourceArrayResponse.md)
316
+ - [AppliedCouponResource](docs/AppliedCouponResource.md)
317
+ - [AppliedCouponResourceArrayResponse](docs/AppliedCouponResourceArrayResponse.md)
315
318
  - [AssetFileForUploadResource](docs/AssetFileForUploadResource.md)
316
319
  - [AssetFileForUploadResourceArrayResponse](docs/AssetFileForUploadResourceArrayResponse.md)
317
320
  - [AssetFrontendResource](docs/AssetFrontendResource.md)
@@ -362,8 +365,6 @@ All URIs are relative to *http://localhost/api*
362
365
  - [BlogResourceArrayResponse](docs/BlogResourceArrayResponse.md)
363
366
  - [CartCouponLiteResource](docs/CartCouponLiteResource.md)
364
367
  - [CartCouponLiteResourceArrayResponse](docs/CartCouponLiteResourceArrayResponse.md)
365
- - [CartCouponResource](docs/CartCouponResource.md)
366
- - [CartCouponResourceArrayResponse](docs/CartCouponResourceArrayResponse.md)
367
368
  - [CartListResource](docs/CartListResource.md)
368
369
  - [CartListResourceArrayResponse](docs/CartListResourceArrayResponse.md)
369
370
  - [CartOrderSource](docs/CartOrderSource.md)
@@ -622,6 +623,7 @@ All URIs are relative to *http://localhost/api*
622
623
  - [PaginatedProductChildOverlayRelationResourceResponse](docs/PaginatedProductChildOverlayRelationResourceResponse.md)
623
624
  - [PaginatedProductChildRelationResourceResponse](docs/PaginatedProductChildRelationResourceResponse.md)
624
625
  - [PaginatedProductChildResourceResponse](docs/PaginatedProductChildResourceResponse.md)
626
+ - [PaginatedProductClassLiteResourceResponse](docs/PaginatedProductClassLiteResourceResponse.md)
625
627
  - [PaginatedProductListResourceResponse](docs/PaginatedProductListResourceResponse.md)
626
628
  - [PaginatedProductLiteResourceResponse](docs/PaginatedProductLiteResourceResponse.md)
627
629
  - [PaginatedProductRangeFrontendListResourceResponse](docs/PaginatedProductRangeFrontendListResourceResponse.md)
@@ -698,6 +700,8 @@ All URIs are relative to *http://localhost/api*
698
700
  - [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
699
701
  - [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
700
702
  - [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
703
+ - [ProductClassLiteResource](docs/ProductClassLiteResource.md)
704
+ - [ProductClassLiteResourceArrayResponse](docs/ProductClassLiteResourceArrayResponse.md)
701
705
  - [ProductClassResource](docs/ProductClassResource.md)
702
706
  - [ProductClassResourceArrayResponse](docs/ProductClassResourceArrayResponse.md)
703
707
  - [ProductCompareResource](docs/ProductCompareResource.md)
@@ -802,6 +806,7 @@ All URIs are relative to *http://localhost/api*
802
806
  - [SearchAllPagesRequest](docs/SearchAllPagesRequest.md)
803
807
  - [SearchAllProductCategoriesRequest](docs/SearchAllProductCategoriesRequest.md)
804
808
  - [SearchAllProductChildrenRequest](docs/SearchAllProductChildrenRequest.md)
809
+ - [SearchAllProductClassesRequest](docs/SearchAllProductClassesRequest.md)
805
810
  - [SearchAllProductRangesRequest](docs/SearchAllProductRangesRequest.md)
806
811
  - [SearchAllProductRegistrationsRequest](docs/SearchAllProductRegistrationsRequest.md)
807
812
  - [SearchAllProductTypesRequest](docs/SearchAllProductTypesRequest.md)
@@ -957,7 +962,7 @@ and is automatically generated by the
957
962
  [OpenAPI Generator](https://openapi-generator.tech) project:
958
963
 
959
964
  - API version: `1.0.0`
960
- - Package version: `0.0.2349`
965
+ - Package version: `0.0.2350`
961
966
  - Generator version: `7.22.0`
962
967
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
963
968
 
@@ -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;
@@ -19,6 +19,7 @@ export * from './PageApi';
19
19
  export * from './PageComponentApi';
20
20
  export * from './ProductApi';
21
21
  export * from './ProductCategoryApi';
22
+ export * from './ProductClassApi';
22
23
  export * from './ProductRangeApi';
23
24
  export * from './ProductRegistrationApi';
24
25
  export * from './ProductTypeApi';
@@ -37,6 +37,7 @@ __exportStar(require("./PageApi"), exports);
37
37
  __exportStar(require("./PageComponentApi"), exports);
38
38
  __exportStar(require("./ProductApi"), exports);
39
39
  __exportStar(require("./ProductCategoryApi"), exports);
40
+ __exportStar(require("./ProductClassApi"), exports);
40
41
  __exportStar(require("./ProductRangeApi"), exports);
41
42
  __exportStar(require("./ProductRegistrationApi"), exports);
42
43
  __exportStar(require("./ProductTypeApi"), exports);
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2?: string | null;
35
+ line2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
24
24
  function instanceOfAddressFrontendResource(value) {
25
25
  if (!('line1' in value) || value['line1'] === undefined)
26
26
  return false;
27
+ if (!('line2' in value) || value['line2'] === undefined)
28
+ return false;
27
29
  if (!('postcode' in value) || value['postcode'] === undefined)
28
30
  return false;
29
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
48
  return {
47
49
  'company': json['company'] == null ? undefined : json['company'],
48
50
  'line1': json['line1'],
49
- 'line2': json['line2'] == null ? undefined : json['line2'],
51
+ 'line2': json['line2'],
50
52
  'postcode': json['postcode'],
51
53
  'suburb': json['suburb'],
52
54
  'country': json['country'],
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- company?: string | null;
47
+ company: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
+ if (!('company' in value) || value['company'] === undefined)
28
+ return false;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
28
30
  return false;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -50,7 +52,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'type': json['type'] == null ? undefined : json['type'],
51
53
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
52
54
  'addresseeName': json['addresseeName'],
53
- 'company': json['company'] == null ? undefined : json['company'],
55
+ 'company': json['company'],
54
56
  'line1': json['line1'],
55
57
  'line2': json['line2'] == null ? undefined : json['line2'],
56
58
  'postcode': json['postcode'],
@@ -15,7 +15,6 @@ import type { SiteLiteResource } from './SiteLiteResource';
15
15
  import type { TransactionLiteResource } from './TransactionLiteResource';
16
16
  import type { AdminOrderLineItemResource } from './AdminOrderLineItemResource';
17
17
  import type { OrderStatusLiteResource } from './OrderStatusLiteResource';
18
- import type { CartCouponResource } from './CartCouponResource';
19
18
  import type { CustomerResource } from './CustomerResource';
20
19
  import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
21
20
  import type { OmnisendSyncLiteResource } from './OmnisendSyncLiteResource';
@@ -256,10 +255,10 @@ export interface AdminOrderResource {
256
255
  lineItems: Array<AdminOrderLineItemResource> | null;
257
256
  /**
258
257
  *
259
- * @type {Array<CartCouponResource>}
258
+ * @type {object}
260
259
  * @memberof AdminOrderResource
261
260
  */
262
- coupons: Array<CartCouponResource> | null;
261
+ coupons: object;
263
262
  /**
264
263
  *
265
264
  * @type {Array<DiscountResource>}
@@ -24,7 +24,6 @@ var SiteLiteResource_1 = require("./SiteLiteResource");
24
24
  var TransactionLiteResource_1 = require("./TransactionLiteResource");
25
25
  var AdminOrderLineItemResource_1 = require("./AdminOrderLineItemResource");
26
26
  var OrderStatusLiteResource_1 = require("./OrderStatusLiteResource");
27
- var CartCouponResource_1 = require("./CartCouponResource");
28
27
  var CustomerResource_1 = require("./CustomerResource");
29
28
  var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
30
29
  var OmnisendSyncLiteResource_1 = require("./OmnisendSyncLiteResource");
@@ -159,7 +158,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
159
158
  'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
160
159
  'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
161
160
  'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(AdminOrderLineItemResource_1.AdminOrderLineItemResourceFromJSON)),
162
- 'coupons': (json['coupons'] == null ? null : json['coupons'].map(CartCouponResource_1.CartCouponResourceFromJSON)),
161
+ 'coupons': json['coupons'],
163
162
  'discounts': (json['discounts'] == null ? null : json['discounts'].map(DiscountResource_1.DiscountResourceFromJSON)),
164
163
  'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
165
164
  'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
@@ -214,7 +213,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
214
213
  'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
215
214
  'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
216
215
  'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(AdminOrderLineItemResource_1.AdminOrderLineItemResourceToJSON)),
217
- 'coupons': (value['coupons'] == null ? null : value['coupons'].map(CartCouponResource_1.CartCouponResourceToJSON)),
216
+ 'coupons': value['coupons'],
218
217
  'discounts': (value['discounts'] == null ? null : value['discounts'].map(DiscountResource_1.DiscountResourceToJSON)),
219
218
  'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
220
219
  'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
@@ -0,0 +1,50 @@
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 AppliedCouponResource
16
+ */
17
+ export interface AppliedCouponResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AppliedCouponResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AppliedCouponResource
28
+ */
29
+ code: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AppliedCouponResource
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AppliedCouponResource
40
+ */
41
+ discountTotal: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AppliedCouponResource interface.
45
+ */
46
+ export declare function instanceOfAppliedCouponResource(value: object): value is AppliedCouponResource;
47
+ export declare function AppliedCouponResourceFromJSON(json: any): AppliedCouponResource;
48
+ export declare function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResource;
49
+ export declare function AppliedCouponResourceToJSON(json: any): AppliedCouponResource;
50
+ export declare function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource | null, ignoreDiscriminator?: boolean): any;
@@ -13,15 +13,15 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfCartCouponResource = instanceOfCartCouponResource;
17
- exports.CartCouponResourceFromJSON = CartCouponResourceFromJSON;
18
- exports.CartCouponResourceFromJSONTyped = CartCouponResourceFromJSONTyped;
19
- exports.CartCouponResourceToJSON = CartCouponResourceToJSON;
20
- exports.CartCouponResourceToJSONTyped = CartCouponResourceToJSONTyped;
16
+ exports.instanceOfAppliedCouponResource = instanceOfAppliedCouponResource;
17
+ exports.AppliedCouponResourceFromJSON = AppliedCouponResourceFromJSON;
18
+ exports.AppliedCouponResourceFromJSONTyped = AppliedCouponResourceFromJSONTyped;
19
+ exports.AppliedCouponResourceToJSON = AppliedCouponResourceToJSON;
20
+ exports.AppliedCouponResourceToJSONTyped = AppliedCouponResourceToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the CartCouponResource interface.
22
+ * Check if a given object implements the AppliedCouponResource interface.
23
23
  */
24
- function instanceOfCartCouponResource(value) {
24
+ function instanceOfAppliedCouponResource(value) {
25
25
  if (!('id' in value) || value['id'] === undefined)
26
26
  return false;
27
27
  if (!('code' in value) || value['code'] === undefined)
@@ -32,10 +32,10 @@ function instanceOfCartCouponResource(value) {
32
32
  return false;
33
33
  return true;
34
34
  }
35
- function CartCouponResourceFromJSON(json) {
36
- return CartCouponResourceFromJSONTyped(json, false);
35
+ function AppliedCouponResourceFromJSON(json) {
36
+ return AppliedCouponResourceFromJSONTyped(json, false);
37
37
  }
38
- function CartCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
38
+ function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
39
39
  if (json == null) {
40
40
  return json;
41
41
  }
@@ -46,10 +46,10 @@ function CartCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'discountTotal': json['discountTotal'],
47
47
  };
48
48
  }
49
- function CartCouponResourceToJSON(json) {
50
- return CartCouponResourceToJSONTyped(json, false);
49
+ function AppliedCouponResourceToJSON(json) {
50
+ return AppliedCouponResourceToJSONTyped(json, false);
51
51
  }
52
- function CartCouponResourceToJSONTyped(value, ignoreDiscriminator) {
52
+ function AppliedCouponResourceToJSONTyped(value, ignoreDiscriminator) {
53
53
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
54
  if (value == null) {
55
55
  return value;
@@ -0,0 +1,33 @@
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 { AppliedCouponResource } from './AppliedCouponResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AppliedCouponResourceArrayResponse
17
+ */
18
+ export interface AppliedCouponResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AppliedCouponResource>}
22
+ * @memberof AppliedCouponResourceArrayResponse
23
+ */
24
+ data?: Array<AppliedCouponResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AppliedCouponResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfAppliedCouponResourceArrayResponse(value: object): value is AppliedCouponResourceArrayResponse;
30
+ export declare function AppliedCouponResourceArrayResponseFromJSON(json: any): AppliedCouponResourceArrayResponse;
31
+ export declare function AppliedCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResourceArrayResponse;
32
+ export declare function AppliedCouponResourceArrayResponseToJSON(json: any): AppliedCouponResourceArrayResponse;
33
+ export declare function AppliedCouponResourceArrayResponseToJSONTyped(value?: AppliedCouponResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfAppliedCouponResourceArrayResponse = instanceOfAppliedCouponResourceArrayResponse;
17
+ exports.AppliedCouponResourceArrayResponseFromJSON = AppliedCouponResourceArrayResponseFromJSON;
18
+ exports.AppliedCouponResourceArrayResponseFromJSONTyped = AppliedCouponResourceArrayResponseFromJSONTyped;
19
+ exports.AppliedCouponResourceArrayResponseToJSON = AppliedCouponResourceArrayResponseToJSON;
20
+ exports.AppliedCouponResourceArrayResponseToJSONTyped = AppliedCouponResourceArrayResponseToJSONTyped;
21
+ var AppliedCouponResource_1 = require("./AppliedCouponResource");
22
+ /**
23
+ * Check if a given object implements the AppliedCouponResourceArrayResponse interface.
24
+ */
25
+ function instanceOfAppliedCouponResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function AppliedCouponResourceArrayResponseFromJSON(json) {
29
+ return AppliedCouponResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function AppliedCouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(AppliedCouponResource_1.AppliedCouponResourceFromJSON)),
37
+ };
38
+ }
39
+ function AppliedCouponResourceArrayResponseToJSON(json) {
40
+ return AppliedCouponResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function AppliedCouponResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(AppliedCouponResource_1.AppliedCouponResourceToJSON)),
49
+ };
50
+ }
@@ -48,6 +48,12 @@ export interface CartListResource {
48
48
  * @memberof CartListResource
49
49
  */
50
50
  createdAt?: Date | null;
51
+ /**
52
+ *
53
+ * @type {Date}
54
+ * @memberof CartListResource
55
+ */
56
+ expiryDate: Date;
51
57
  /**
52
58
  *
53
59
  * @type {SiteLiteResource}