@arrowsphere/api-client 3.80.0 → 3.81.0-rc.bdj.1

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.80.1] - 2023-12-21
7
+
8
+ ### Fixed
9
+ - Fixed get pricing rate unit tests
10
+
6
11
  ## [3.80.0] - 2023-12-21
7
12
 
8
13
  ### Added
@@ -9,6 +9,7 @@ import { PromotionData, PromotionFindResult } from './promotionFindResult';
9
9
  import { AssetsData, AssetsFindResult } from './assetsFindResult';
10
10
  import { ExtraDataResult, ExtraDataType } from './extraDataGetResult';
11
11
  import { PriceBandData, PriceBandGetResult } from './priceBandGetResult';
12
+ import { RatesData, RatesGetResult } from './ratesGetResult';
12
13
  export declare enum LicenseGetFields {
13
14
  COLUMN_LICENSE_ID = "license_id",
14
15
  COLUMN_PARENT_LICENSE_ID = "parent_license_id",
@@ -48,7 +49,8 @@ export declare enum LicenseGetFields {
48
49
  COLUMN_VENDOR_BILLING_ID = "vendorBillingId",
49
50
  COLUMN_EXTRA_DATA = "extraData",
50
51
  COLUMN_PRICE_BAND = "priceBand",
51
- COLUMN_VENDOR_CODE = "vendorCode"
52
+ COLUMN_VENDOR_CODE = "vendorCode",
53
+ COLUMN_RATES = "rates"
52
54
  }
53
55
  export declare type LicenseGetData = {
54
56
  [LicenseGetFields.COLUMN_LICENSE_ID]: string;
@@ -90,6 +92,7 @@ export declare type LicenseGetData = {
90
92
  [LicenseGetFields.COLUMN_EXTRA_DATA]?: ExtraDataType[];
91
93
  [LicenseGetFields.COLUMN_PRICE_BAND]?: PriceBandData;
92
94
  [LicenseGetFields.COLUMN_VENDOR_CODE]?: string;
95
+ [LicenseGetFields.COLUMN_RATES]?: RatesData;
93
96
  };
94
97
  export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
95
98
  #private;
@@ -133,5 +136,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
133
136
  get extraData(): ExtraDataResult[] | undefined;
134
137
  get priceBand(): PriceBandGetResult | undefined;
135
138
  get vendorCode(): string | undefined;
139
+ get rates(): RatesGetResult | undefined;
136
140
  toJSON(): LicenseGetData;
137
141
  }
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode;
13
+ var _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_rates;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
16
16
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -24,6 +24,7 @@ const promotionFindResult_1 = require("./promotionFindResult");
24
24
  const assetsFindResult_1 = require("./assetsFindResult");
25
25
  const extraDataGetResult_1 = require("./extraDataGetResult");
26
26
  const priceBandGetResult_1 = require("./priceBandGetResult");
27
+ const ratesGetResult_1 = require("./ratesGetResult");
27
28
  var LicenseGetFields;
28
29
  (function (LicenseGetFields) {
29
30
  LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
@@ -65,6 +66,7 @@ var LicenseGetFields;
65
66
  LicenseGetFields["COLUMN_EXTRA_DATA"] = "extraData";
66
67
  LicenseGetFields["COLUMN_PRICE_BAND"] = "priceBand";
67
68
  LicenseGetFields["COLUMN_VENDOR_CODE"] = "vendorCode";
69
+ LicenseGetFields["COLUMN_RATES"] = "rates";
68
70
  })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
69
71
  class LicenseGetResult extends abstractEntity_1.AbstractEntity {
70
72
  constructor(licenseGetDataInput) {
@@ -109,6 +111,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
109
111
  _LicenseGetResult_extraData.set(this, void 0);
110
112
  _LicenseGetResult_priceBand.set(this, void 0);
111
113
  _LicenseGetResult_vendorCode.set(this, void 0);
114
+ _LicenseGetResult_rates.set(this, void 0);
112
115
  __classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
113
116
  __classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
114
117
  __classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
@@ -158,6 +161,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
158
161
  ? new priceBandGetResult_1.PriceBandGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_PRICE_BAND])
159
162
  : undefined, "f");
160
163
  __classPrivateFieldSet(this, _LicenseGetResult_vendorCode, licenseGetDataInput[LicenseGetFields.COLUMN_VENDOR_CODE], "f");
164
+ __classPrivateFieldSet(this, _LicenseGetResult_rates, licenseGetDataInput[LicenseGetFields.COLUMN_RATES] !== undefined
165
+ ? new ratesGetResult_1.RatesGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_RATES])
166
+ : undefined, "f");
161
167
  }
162
168
  get id() {
163
169
  return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
@@ -276,8 +282,11 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
276
282
  get vendorCode() {
277
283
  return __classPrivateFieldGet(this, _LicenseGetResult_vendorCode, "f");
278
284
  }
285
+ get rates() {
286
+ return __classPrivateFieldGet(this, _LicenseGetResult_rates, "f");
287
+ }
279
288
  toJSON() {
280
- var _a, _b, _c, _d, _e, _f, _g;
289
+ var _a, _b, _c, _d, _e, _f, _g, _h;
281
290
  return {
282
291
  [LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
283
292
  [LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
@@ -319,9 +328,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
319
328
  [LicenseGetFields.COLUMN_EXTRA_DATA]: (_f = this.extraData) === null || _f === void 0 ? void 0 : _f.map((e) => e.toJSON()),
320
329
  [LicenseGetFields.COLUMN_PRICE_BAND]: (_g = this.priceBand) === null || _g === void 0 ? void 0 : _g.toJSON(),
321
330
  [LicenseGetFields.COLUMN_VENDOR_CODE]: this.vendorCode,
331
+ [LicenseGetFields.COLUMN_RATES]: (_h = this.rates) === null || _h === void 0 ? void 0 : _h.toJSON(),
322
332
  };
323
333
  }
324
334
  }
325
335
  exports.LicenseGetResult = LicenseGetResult;
326
- _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap();
336
+ _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_rates = new WeakMap();
327
337
  //# sourceMappingURL=licenseGetResult.js.map
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum RatesDataFields {
3
+ COLUMN_ARROW_SELL_RATE = "arrowSellRate",
4
+ COLUMN_MSP_SELL_RATE = "mspSellRate"
5
+ }
6
+ export declare type RatesData = {
7
+ [RatesDataFields.COLUMN_ARROW_SELL_RATE]?: number | null;
8
+ [RatesDataFields.COLUMN_MSP_SELL_RATE]?: number | null;
9
+ };
10
+ export declare class RatesGetResult extends AbstractEntity<RatesData> {
11
+ #private;
12
+ constructor(data: RatesData);
13
+ get arrowSellRate(): number | null | undefined;
14
+ get mspSellRate(): number | null | undefined;
15
+ toJSON(): RatesData;
16
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _RatesGetResult_arrowSellRate, _RatesGetResult_mspSellRate;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.RatesGetResult = exports.RatesDataFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ var RatesDataFields;
18
+ (function (RatesDataFields) {
19
+ RatesDataFields["COLUMN_ARROW_SELL_RATE"] = "arrowSellRate";
20
+ RatesDataFields["COLUMN_MSP_SELL_RATE"] = "mspSellRate";
21
+ })(RatesDataFields = exports.RatesDataFields || (exports.RatesDataFields = {}));
22
+ class RatesGetResult extends abstractEntity_1.AbstractEntity {
23
+ constructor(data) {
24
+ super(data);
25
+ _RatesGetResult_arrowSellRate.set(this, void 0);
26
+ _RatesGetResult_mspSellRate.set(this, void 0);
27
+ __classPrivateFieldSet(this, _RatesGetResult_arrowSellRate, data[RatesDataFields.COLUMN_ARROW_SELL_RATE], "f");
28
+ __classPrivateFieldSet(this, _RatesGetResult_mspSellRate, data[RatesDataFields.COLUMN_MSP_SELL_RATE], "f");
29
+ }
30
+ get arrowSellRate() {
31
+ return __classPrivateFieldGet(this, _RatesGetResult_arrowSellRate, "f");
32
+ }
33
+ get mspSellRate() {
34
+ return __classPrivateFieldGet(this, _RatesGetResult_mspSellRate, "f");
35
+ }
36
+ toJSON() {
37
+ return {
38
+ [RatesDataFields.COLUMN_ARROW_SELL_RATE]: this.arrowSellRate,
39
+ [RatesDataFields.COLUMN_MSP_SELL_RATE]: this.mspSellRate,
40
+ };
41
+ }
42
+ }
43
+ exports.RatesGetResult = RatesGetResult;
44
+ _RatesGetResult_arrowSellRate = new WeakMap(), _RatesGetResult_mspSellRate = new WeakMap();
45
+ //# sourceMappingURL=ratesGetResult.js.map
@@ -9,6 +9,7 @@ export * from './entities/getLicense/actionsGetResult';
9
9
  export * from './entities/getLicense/buySellFindResult';
10
10
  export * from './entities/getLicense/extraDataGetResult';
11
11
  export * from './entities/getLicense/licenseGetResult';
12
+ export * from './entities/getLicense/ratesGetResult';
12
13
  export * from './entities/getLicense/licensePriceGetResult';
13
14
  export * from './entities/getLicense/orderGetResult';
14
15
  export * from './entities/getResult/getLicenseResult';
@@ -25,6 +25,7 @@ __exportStar(require("./entities/getLicense/actionsGetResult"), exports);
25
25
  __exportStar(require("./entities/getLicense/buySellFindResult"), exports);
26
26
  __exportStar(require("./entities/getLicense/extraDataGetResult"), exports);
27
27
  __exportStar(require("./entities/getLicense/licenseGetResult"), exports);
28
+ __exportStar(require("./entities/getLicense/ratesGetResult"), exports);
28
29
  __exportStar(require("./entities/getLicense/licensePriceGetResult"), exports);
29
30
  __exportStar(require("./entities/getLicense/orderGetResult"), exports);
30
31
  __exportStar(require("./entities/getResult/getLicenseResult"), exports);
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": "3.80.0",
7
+ "version": "3.81.0-rc.bdj.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",