@arrowsphere/api-client 3.94.3-rc.wev.1 → 3.94.3
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.94.3] - 2024.02.01
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- [orders] fix optional fields in order type and class
|
|
10
|
+
|
|
6
11
|
## [3.94.2] - 2024.01.29
|
|
7
12
|
|
|
8
13
|
### Fixed
|
|
@@ -30,7 +30,7 @@ export declare type OrderProductsType = {
|
|
|
30
30
|
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]?: Array<string>;
|
|
31
31
|
[OrderProductsFields.COLUMN_IS_TRIAL]: boolean;
|
|
32
32
|
[OrderProductsFields.COLUMN_PRICES]: ProductPricesType;
|
|
33
|
-
[OrderProductsFields.COLUMN_SUBSCRIPTION]
|
|
33
|
+
[OrderProductsFields.COLUMN_SUBSCRIPTION]?: ReferenceLinkType;
|
|
34
34
|
[OrderProductsFields.COLUMN_LICENSE]: ReferenceLinkType;
|
|
35
35
|
[OrderProductsFields.COLUMN_NAME]: string;
|
|
36
36
|
[OrderProductsFields.COLUMN_CLASSIFICATION]: string;
|
|
@@ -49,7 +49,7 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
|
|
|
49
49
|
get arrowSubCategories(): Array<string> | undefined;
|
|
50
50
|
get isTrial(): boolean;
|
|
51
51
|
get prices(): ProductPrices;
|
|
52
|
-
get subscription(): ReferenceLink;
|
|
52
|
+
get subscription(): ReferenceLink | undefined;
|
|
53
53
|
get license(): ReferenceLink;
|
|
54
54
|
get name(): string;
|
|
55
55
|
get classification(): string;
|
|
@@ -64,7 +64,9 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
64
64
|
__classPrivateFieldSet(this, _OrderProduct_arrowSubCategories, (_a = getOrderProducts[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]) !== null && _a !== void 0 ? _a : undefined, "f");
|
|
65
65
|
__classPrivateFieldSet(this, _OrderProduct_isTrial, getOrderProducts[OrderProductsFields.COLUMN_IS_TRIAL], "f");
|
|
66
66
|
__classPrivateFieldSet(this, _OrderProduct_prices, new productPrices_1.ProductPrices(getOrderProducts[OrderProductsFields.COLUMN_PRICES]), "f");
|
|
67
|
-
__classPrivateFieldSet(this, _OrderProduct_subscription,
|
|
67
|
+
__classPrivateFieldSet(this, _OrderProduct_subscription, getOrderProducts[OrderProductsFields.COLUMN_SUBSCRIPTION]
|
|
68
|
+
? new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_SUBSCRIPTION])
|
|
69
|
+
: undefined, "f");
|
|
68
70
|
__classPrivateFieldSet(this, _OrderProduct_license, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_LICENSE]), "f");
|
|
69
71
|
__classPrivateFieldSet(this, _OrderProduct_name, getOrderProducts[OrderProductsFields.COLUMN_NAME], "f");
|
|
70
72
|
__classPrivateFieldSet(this, _OrderProduct_classification, getOrderProducts[OrderProductsFields.COLUMN_CLASSIFICATION], "f");
|
|
@@ -117,6 +119,7 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
117
119
|
return __classPrivateFieldGet(this, _OrderProduct_identifier, "f");
|
|
118
120
|
}
|
|
119
121
|
toJSON() {
|
|
122
|
+
var _a;
|
|
120
123
|
return {
|
|
121
124
|
[OrderProductsFields.COLUMN_SKU]: this.sku,
|
|
122
125
|
[OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
|
|
@@ -127,7 +130,7 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
|
|
|
127
130
|
[OrderProductsFields.COLUMN_ARROWSUBCATEGORIES]: this.arrowSubCategories,
|
|
128
131
|
[OrderProductsFields.COLUMN_IS_TRIAL]: this.isTrial,
|
|
129
132
|
[OrderProductsFields.COLUMN_PRICES]: this.prices.toJSON(),
|
|
130
|
-
[OrderProductsFields.COLUMN_SUBSCRIPTION]: this.subscription.toJSON(),
|
|
133
|
+
[OrderProductsFields.COLUMN_SUBSCRIPTION]: (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
131
134
|
[OrderProductsFields.COLUMN_LICENSE]: this.license.toJSON(),
|
|
132
135
|
[OrderProductsFields.COLUMN_NAME]: this.name,
|
|
133
136
|
[OrderProductsFields.COLUMN_CLASSIFICATION]: this.classification,
|
package/package.json
CHANGED
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.94.3
|
|
7
|
+
"version": "3.94.3",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
11
|
-
"type": "module",
|
|
12
11
|
"scripts": {
|
|
13
12
|
"build": "tsc --build",
|
|
14
13
|
"clean": "rm -rf build/",
|