@arrowsphere/api-client 2.8.0 → 3.0.0

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,12 @@
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.0.0] - 2022-03-08
7
+
8
+ ### Changed
9
+
10
+ - Moved the property `currency` of license from root to price object
11
+
6
12
  ## [2.8.0] - 2022-03-03
7
13
 
8
14
  ### Added
@@ -13,7 +13,6 @@ export declare enum LicenseGetFields {
13
13
  COLUMN_STATUS_CODE = "statusCode",
14
14
  COLUMN_IS_TRIAL = "isTrial",
15
15
  COLUMN_IS_ADDON = "isAddon",
16
- COLUMN_CURRENCY = "currency",
17
16
  COLUMN_SERVICE_REF = "service_ref",
18
17
  COLUMN_SKU = "sku",
19
18
  COLUMN_NAME = "name",
@@ -45,7 +44,6 @@ export declare type LicenseGetData = {
45
44
  [LicenseGetFields.COLUMN_STATUS_CODE]: number;
46
45
  [LicenseGetFields.COLUMN_IS_TRIAL]: boolean;
47
46
  [LicenseGetFields.COLUMN_IS_ADDON]: boolean;
48
- [LicenseGetFields.COLUMN_CURRENCY]: string;
49
47
  [LicenseGetFields.COLUMN_SERVICE_REF]: string;
50
48
  [LicenseGetFields.COLUMN_SKU]: string;
51
49
  [LicenseGetFields.COLUMN_NAME]: string;
@@ -79,7 +77,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
79
77
  get statusCode(): number;
80
78
  get isTrial(): boolean;
81
79
  get isAddon(): boolean;
82
- get currency(): string;
83
80
  get serviceRef(): string;
84
81
  get sku(): string;
85
82
  get name(): string;
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _statusCode, _isTrial, _isAddon, _currency, _service_ref, _sku, _name, _seats, _activeSeats, _activation_datetime, _expiry_datetime, _autoRenew, _message, _actions, _actionMessages, _order_reference, _order, _vendor_license_id, _periodicity, _term, _category, _program, _associatedSubscriptionProgram, _price, _arrowSubCategories;
15
+ var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _statusCode, _isTrial, _isAddon, _service_ref, _sku, _name, _seats, _activeSeats, _activation_datetime, _expiry_datetime, _autoRenew, _message, _actions, _actionMessages, _order_reference, _order, _vendor_license_id, _periodicity, _term, _category, _program, _associatedSubscriptionProgram, _price, _arrowSubCategories;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
18
18
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -31,7 +31,6 @@ var LicenseGetFields;
31
31
  LicenseGetFields["COLUMN_STATUS_CODE"] = "statusCode";
32
32
  LicenseGetFields["COLUMN_IS_TRIAL"] = "isTrial";
33
33
  LicenseGetFields["COLUMN_IS_ADDON"] = "isAddon";
34
- LicenseGetFields["COLUMN_CURRENCY"] = "currency";
35
34
  LicenseGetFields["COLUMN_SERVICE_REF"] = "service_ref";
36
35
  LicenseGetFields["COLUMN_SKU"] = "sku";
37
36
  LicenseGetFields["COLUMN_NAME"] = "name";
@@ -66,7 +65,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
66
65
  _statusCode.set(this, void 0);
67
66
  _isTrial.set(this, void 0);
68
67
  _isAddon.set(this, void 0);
69
- _currency.set(this, void 0);
70
68
  _service_ref.set(this, void 0);
71
69
  _sku.set(this, void 0);
72
70
  _name.set(this, void 0);
@@ -96,7 +94,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
96
94
  __classPrivateFieldSet(this, _statusCode, licenseGetDataInput[LicenseGetFields.COLUMN_STATUS_CODE]);
97
95
  __classPrivateFieldSet(this, _isTrial, licenseGetDataInput[LicenseGetFields.COLUMN_IS_TRIAL]);
98
96
  __classPrivateFieldSet(this, _isAddon, licenseGetDataInput[LicenseGetFields.COLUMN_IS_ADDON]);
99
- __classPrivateFieldSet(this, _currency, licenseGetDataInput[LicenseGetFields.COLUMN_CURRENCY]);
100
97
  __classPrivateFieldSet(this, _service_ref, licenseGetDataInput[LicenseGetFields.COLUMN_SERVICE_REF]);
101
98
  __classPrivateFieldSet(this, _sku, licenseGetDataInput[LicenseGetFields.COLUMN_SKU]);
102
99
  __classPrivateFieldSet(this, _name, licenseGetDataInput[LicenseGetFields.COLUMN_NAME]);
@@ -145,9 +142,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
145
142
  get isAddon() {
146
143
  return __classPrivateFieldGet(this, _isAddon);
147
144
  }
148
- get currency() {
149
- return __classPrivateFieldGet(this, _currency);
150
- }
151
145
  get serviceRef() {
152
146
  return __classPrivateFieldGet(this, _service_ref);
153
147
  }
@@ -222,7 +216,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
222
216
  [LicenseGetFields.COLUMN_STATUS_CODE]: this.statusCode,
223
217
  [LicenseGetFields.COLUMN_IS_TRIAL]: this.isTrial,
224
218
  [LicenseGetFields.COLUMN_IS_ADDON]: this.isAddon,
225
- [LicenseGetFields.COLUMN_CURRENCY]: this.currency,
226
219
  [LicenseGetFields.COLUMN_SERVICE_REF]: this.serviceRef,
227
220
  [LicenseGetFields.COLUMN_SKU]: this.sku,
228
221
  [LicenseGetFields.COLUMN_NAME]: this.name,
@@ -249,5 +242,5 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
249
242
  }
250
243
  }
251
244
  exports.LicenseGetResult = LicenseGetResult;
252
- _license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = new WeakMap(), _statusCode = new WeakMap(), _isTrial = new WeakMap(), _isAddon = new WeakMap(), _currency = new WeakMap(), _service_ref = new WeakMap(), _sku = new WeakMap(), _name = new WeakMap(), _seats = new WeakMap(), _activeSeats = new WeakMap(), _activation_datetime = new WeakMap(), _expiry_datetime = new WeakMap(), _autoRenew = new WeakMap(), _message = new WeakMap(), _actions = new WeakMap(), _actionMessages = new WeakMap(), _order_reference = new WeakMap(), _order = new WeakMap(), _vendor_license_id = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _category = new WeakMap(), _program = new WeakMap(), _associatedSubscriptionProgram = new WeakMap(), _price = new WeakMap(), _arrowSubCategories = new WeakMap();
245
+ _license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = new WeakMap(), _statusCode = new WeakMap(), _isTrial = new WeakMap(), _isAddon = new WeakMap(), _service_ref = new WeakMap(), _sku = new WeakMap(), _name = new WeakMap(), _seats = new WeakMap(), _activeSeats = new WeakMap(), _activation_datetime = new WeakMap(), _expiry_datetime = new WeakMap(), _autoRenew = new WeakMap(), _message = new WeakMap(), _actions = new WeakMap(), _actionMessages = new WeakMap(), _order_reference = new WeakMap(), _order = new WeakMap(), _vendor_license_id = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _category = new WeakMap(), _program = new WeakMap(), _associatedSubscriptionProgram = new WeakMap(), _price = new WeakMap(), _arrowSubCategories = new WeakMap();
253
246
  //# sourceMappingURL=licenseGetResult.js.map
@@ -1,16 +1,19 @@
1
1
  import { BuySellData, BuySellFindResult } from './buySellFindResult';
2
2
  import { AbstractEntity } from '../../../abstractEntity';
3
3
  export declare enum LicensePriceGetFields {
4
+ COLUMN_CURRENCY = "currency",
4
5
  COLUMN_UNIT = "unit",
5
6
  COLUMN_TOTAL = "total"
6
7
  }
7
8
  export declare type LicensePriceGetData = {
9
+ [LicensePriceGetFields.COLUMN_CURRENCY]: string;
8
10
  [LicensePriceGetFields.COLUMN_UNIT]: BuySellData;
9
11
  [LicensePriceGetFields.COLUMN_TOTAL]: BuySellData;
10
12
  };
11
13
  export declare class LicensePriceGetResult extends AbstractEntity<LicensePriceGetData> {
12
14
  #private;
13
15
  constructor(data: LicensePriceGetData);
16
+ get currency(): string;
14
17
  get unit(): BuySellFindResult;
15
18
  get total(): BuySellFindResult;
16
19
  toJSON(): LicensePriceGetData;
@@ -12,24 +12,30 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _unit, _total;
15
+ var _currency, _unit, _total;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.LicensePriceGetResult = exports.LicensePriceGetFields = void 0;
18
18
  const buySellFindResult_1 = require("./buySellFindResult");
19
19
  const abstractEntity_1 = require("../../../abstractEntity");
20
20
  var LicensePriceGetFields;
21
21
  (function (LicensePriceGetFields) {
22
+ LicensePriceGetFields["COLUMN_CURRENCY"] = "currency";
22
23
  LicensePriceGetFields["COLUMN_UNIT"] = "unit";
23
24
  LicensePriceGetFields["COLUMN_TOTAL"] = "total";
24
25
  })(LicensePriceGetFields = exports.LicensePriceGetFields || (exports.LicensePriceGetFields = {}));
25
26
  class LicensePriceGetResult extends abstractEntity_1.AbstractEntity {
26
27
  constructor(data) {
27
28
  super(data);
29
+ _currency.set(this, void 0);
28
30
  _unit.set(this, void 0);
29
31
  _total.set(this, void 0);
32
+ __classPrivateFieldSet(this, _currency, data[LicensePriceGetFields.COLUMN_CURRENCY]);
30
33
  __classPrivateFieldSet(this, _unit, new buySellFindResult_1.BuySellFindResult(data[LicensePriceGetFields.COLUMN_UNIT]));
31
34
  __classPrivateFieldSet(this, _total, new buySellFindResult_1.BuySellFindResult(data[LicensePriceGetFields.COLUMN_TOTAL]));
32
35
  }
36
+ get currency() {
37
+ return __classPrivateFieldGet(this, _currency);
38
+ }
33
39
  get unit() {
34
40
  return __classPrivateFieldGet(this, _unit);
35
41
  }
@@ -38,11 +44,12 @@ class LicensePriceGetResult extends abstractEntity_1.AbstractEntity {
38
44
  }
39
45
  toJSON() {
40
46
  return {
47
+ [LicensePriceGetFields.COLUMN_CURRENCY]: __classPrivateFieldGet(this, _currency),
41
48
  [LicensePriceGetFields.COLUMN_UNIT]: this.unit.toJSON(),
42
49
  [LicensePriceGetFields.COLUMN_TOTAL]: this.total.toJSON(),
43
50
  };
44
51
  }
45
52
  }
46
53
  exports.LicensePriceGetResult = LicensePriceGetResult;
47
- _unit = new WeakMap(), _total = new WeakMap();
54
+ _currency = new WeakMap(), _unit = new WeakMap(), _total = new WeakMap();
48
55
  //# sourceMappingURL=licensePriceGetResult.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "2.8.0",
7
+ "version": "3.0.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",