@arrowsphere/api-client 3.385.0-rc-cpe-1 → 3.385.0-rc-cpe-2

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.
@@ -1,5 +1,7 @@
1
1
  import { BuySellData, BuySellFindResult } from './buySellFindResult';
2
2
  import { AbstractEntity } from '../../../abstractEntity';
3
+ import { ProductPricesFields } from '../../../orders';
4
+ import { LicensePreferredCurrencyType } from '../license/licensePreferredCurrency';
3
5
  export declare enum LicensePriceGetFields {
4
6
  COLUMN_CURRENCY = "currency",
5
7
  COLUMN_PRICEBAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
@@ -11,6 +13,7 @@ export declare type LicensePriceGetData = {
11
13
  [LicensePriceGetFields.COLUMN_PRICEBAND_ARROWSPHERE_SKU]: string;
12
14
  [LicensePriceGetFields.COLUMN_UNIT]: BuySellData;
13
15
  [LicensePriceGetFields.COLUMN_TOTAL]: BuySellData;
16
+ [ProductPricesFields.COLUMN_PREFERRED_CURRENCY]?: LicensePreferredCurrencyType;
14
17
  };
15
18
  export declare class LicensePriceGetResult extends AbstractEntity<LicensePriceGetData> {
16
19
  #private;
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LicensePriceGetResult = exports.LicensePriceGetFields = void 0;
16
16
  const buySellFindResult_1 = require("./buySellFindResult");
17
17
  const abstractEntity_1 = require("../../../abstractEntity");
18
+ const orders_1 = require("../../../orders");
18
19
  var LicensePriceGetFields;
19
20
  (function (LicensePriceGetFields) {
20
21
  LicensePriceGetFields["COLUMN_CURRENCY"] = "currency";
@@ -0,0 +1,19 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum LicenseConversionRulesFields {
3
+ COLUMN_CURRENCY = "currency",
4
+ COLUMN_EXCHANGE_RATE_DATE = "exchangeRateDate",
5
+ COLUMN_EXCHANGE_RATE = "exchangeRate"
6
+ }
7
+ export declare type LicenseConversionRulesType = {
8
+ [LicenseConversionRulesFields.COLUMN_CURRENCY]: string;
9
+ [LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: string;
10
+ [LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE]: number;
11
+ };
12
+ export declare class LicenseConversionRules extends AbstractEntity<LicenseConversionRulesType> {
13
+ #private;
14
+ constructor(input: LicenseConversionRulesType);
15
+ get currency(): string;
16
+ get exchangeRateDate(): string;
17
+ get exchangeRate(): number;
18
+ toJSON(): LicenseConversionRulesType;
19
+ }
@@ -0,0 +1,53 @@
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 _LicenseConversionRules_currency, _LicenseConversionRules_exchangeRateDate, _LicenseConversionRules_exchangeRate;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LicenseConversionRules = exports.LicenseConversionRulesFields = void 0;
16
+ const abstractEntity_1 = require("../../../../abstractEntity");
17
+ var LicenseConversionRulesFields;
18
+ (function (LicenseConversionRulesFields) {
19
+ LicenseConversionRulesFields["COLUMN_CURRENCY"] = "currency";
20
+ LicenseConversionRulesFields["COLUMN_EXCHANGE_RATE_DATE"] = "exchangeRateDate";
21
+ LicenseConversionRulesFields["COLUMN_EXCHANGE_RATE"] = "exchangeRate";
22
+ })(LicenseConversionRulesFields = exports.LicenseConversionRulesFields || (exports.LicenseConversionRulesFields = {}));
23
+ class LicenseConversionRules extends abstractEntity_1.AbstractEntity {
24
+ constructor(input) {
25
+ super(input);
26
+ _LicenseConversionRules_currency.set(this, void 0);
27
+ _LicenseConversionRules_exchangeRateDate.set(this, void 0);
28
+ _LicenseConversionRules_exchangeRate.set(this, void 0);
29
+ __classPrivateFieldSet(this, _LicenseConversionRules_currency, input[LicenseConversionRulesFields.COLUMN_CURRENCY], "f");
30
+ __classPrivateFieldSet(this, _LicenseConversionRules_exchangeRateDate, input[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE], "f");
31
+ __classPrivateFieldSet(this, _LicenseConversionRules_exchangeRate, input[LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE], "f");
32
+ }
33
+ get currency() {
34
+ return __classPrivateFieldGet(this, _LicenseConversionRules_currency, "f");
35
+ }
36
+ get exchangeRateDate() {
37
+ return __classPrivateFieldGet(this, _LicenseConversionRules_exchangeRateDate, "f");
38
+ }
39
+ get exchangeRate() {
40
+ return __classPrivateFieldGet(this, _LicenseConversionRules_exchangeRate, "f");
41
+ }
42
+ toJSON() {
43
+ return {
44
+ [LicenseConversionRulesFields.COLUMN_CURRENCY]: this.currency,
45
+ [LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: this
46
+ .exchangeRateDate,
47
+ [LicenseConversionRulesFields.COLUMN_EXCHANGE_RATE]: this.exchangeRate,
48
+ };
49
+ }
50
+ }
51
+ exports.LicenseConversionRules = LicenseConversionRules;
52
+ _LicenseConversionRules_currency = new WeakMap(), _LicenseConversionRules_exchangeRateDate = new WeakMap(), _LicenseConversionRules_exchangeRate = new WeakMap();
53
+ //# sourceMappingURL=licenseConversionRules.js.map
@@ -0,0 +1,17 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ import { BuySellData, BuySellFindResult } from '../../getLicense/buySellFindResult';
3
+ export declare enum LicensePreferredCurrencyValuesFields {
4
+ COLUMN_UNIT = "unit",
5
+ COLUMN_TOTAL = "total"
6
+ }
7
+ export declare type LicensePreferredCurrencyValuesType = {
8
+ [LicensePreferredCurrencyValuesFields.COLUMN_UNIT]: BuySellData;
9
+ [LicensePreferredCurrencyValuesFields.COLUMN_TOTAL]: BuySellData;
10
+ };
11
+ export declare class LicensePreferredCurrencyValues extends AbstractEntity<LicensePreferredCurrencyValuesType> {
12
+ #private;
13
+ constructor(input: LicensePreferredCurrencyValuesType);
14
+ get unit(): BuySellFindResult;
15
+ get total(): BuySellFindResult;
16
+ toJSON(): LicensePreferredCurrencyValuesType;
17
+ }
@@ -0,0 +1,46 @@
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 _LicensePreferredCurrencyValues_unit, _LicensePreferredCurrencyValues_total;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LicensePreferredCurrencyValues = exports.LicensePreferredCurrencyValuesFields = void 0;
16
+ const abstractEntity_1 = require("../../../../abstractEntity");
17
+ const buySellFindResult_1 = require("../../getLicense/buySellFindResult");
18
+ var LicensePreferredCurrencyValuesFields;
19
+ (function (LicensePreferredCurrencyValuesFields) {
20
+ LicensePreferredCurrencyValuesFields["COLUMN_UNIT"] = "unit";
21
+ LicensePreferredCurrencyValuesFields["COLUMN_TOTAL"] = "total";
22
+ })(LicensePreferredCurrencyValuesFields = exports.LicensePreferredCurrencyValuesFields || (exports.LicensePreferredCurrencyValuesFields = {}));
23
+ class LicensePreferredCurrencyValues extends abstractEntity_1.AbstractEntity {
24
+ constructor(input) {
25
+ super(input);
26
+ _LicensePreferredCurrencyValues_unit.set(this, void 0);
27
+ _LicensePreferredCurrencyValues_total.set(this, void 0);
28
+ __classPrivateFieldSet(this, _LicensePreferredCurrencyValues_unit, new buySellFindResult_1.BuySellFindResult(input[LicensePreferredCurrencyValuesFields.COLUMN_UNIT]), "f");
29
+ __classPrivateFieldSet(this, _LicensePreferredCurrencyValues_total, new buySellFindResult_1.BuySellFindResult(input[LicensePreferredCurrencyValuesFields.COLUMN_TOTAL]), "f");
30
+ }
31
+ get unit() {
32
+ return __classPrivateFieldGet(this, _LicensePreferredCurrencyValues_unit, "f");
33
+ }
34
+ get total() {
35
+ return __classPrivateFieldGet(this, _LicensePreferredCurrencyValues_total, "f");
36
+ }
37
+ toJSON() {
38
+ return {
39
+ [LicensePreferredCurrencyValuesFields.COLUMN_UNIT]: this.unit.toJSON(),
40
+ [LicensePreferredCurrencyValuesFields.COLUMN_TOTAL]: this.total.toJSON(),
41
+ };
42
+ }
43
+ }
44
+ exports.LicensePreferredCurrencyValues = LicensePreferredCurrencyValues;
45
+ _LicensePreferredCurrencyValues_unit = new WeakMap(), _LicensePreferredCurrencyValues_total = new WeakMap();
46
+ //# sourceMappingURL=licensePreferredCurrencyValues.js.map
@@ -0,0 +1,18 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ import { LicenseConversionRules, LicenseConversionRulesType } from './licensePreferredCurrency/licenseConversionRules';
3
+ import { LicensePreferredCurrencyValues, LicensePreferredCurrencyValuesType } from './licensePreferredCurrency/licensePreferredCurrencyValues';
4
+ export declare enum LicensePreferredCurrencyFields {
5
+ COLUMN_CONVERSION_RULES = "conversionRules",
6
+ COLUMN_VALUES = "values"
7
+ }
8
+ export declare type LicensePreferredCurrencyType = {
9
+ [LicensePreferredCurrencyFields.COLUMN_CONVERSION_RULES]: LicenseConversionRulesType;
10
+ [LicensePreferredCurrencyFields.COLUMN_VALUES]: LicensePreferredCurrencyValuesType;
11
+ };
12
+ export declare class LicensePreferredCurrency extends AbstractEntity<LicensePreferredCurrencyType> {
13
+ #private;
14
+ constructor(input: LicensePreferredCurrencyType);
15
+ get conversionRules(): LicenseConversionRules;
16
+ get values(): LicensePreferredCurrencyValues;
17
+ toJSON(): LicensePreferredCurrencyType;
18
+ }
@@ -0,0 +1,47 @@
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 _LicensePreferredCurrency_conversionRules, _LicensePreferredCurrency_values;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LicensePreferredCurrency = exports.LicensePreferredCurrencyFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ const licenseConversionRules_1 = require("./licensePreferredCurrency/licenseConversionRules");
18
+ const licensePreferredCurrencyValues_1 = require("./licensePreferredCurrency/licensePreferredCurrencyValues");
19
+ var LicensePreferredCurrencyFields;
20
+ (function (LicensePreferredCurrencyFields) {
21
+ LicensePreferredCurrencyFields["COLUMN_CONVERSION_RULES"] = "conversionRules";
22
+ LicensePreferredCurrencyFields["COLUMN_VALUES"] = "values";
23
+ })(LicensePreferredCurrencyFields = exports.LicensePreferredCurrencyFields || (exports.LicensePreferredCurrencyFields = {}));
24
+ class LicensePreferredCurrency extends abstractEntity_1.AbstractEntity {
25
+ constructor(input) {
26
+ super(input);
27
+ _LicensePreferredCurrency_conversionRules.set(this, void 0);
28
+ _LicensePreferredCurrency_values.set(this, void 0);
29
+ __classPrivateFieldSet(this, _LicensePreferredCurrency_conversionRules, new licenseConversionRules_1.LicenseConversionRules(input[LicensePreferredCurrencyFields.COLUMN_CONVERSION_RULES]), "f");
30
+ __classPrivateFieldSet(this, _LicensePreferredCurrency_values, new licensePreferredCurrencyValues_1.LicensePreferredCurrencyValues(input[LicensePreferredCurrencyFields.COLUMN_VALUES]), "f");
31
+ }
32
+ get conversionRules() {
33
+ return __classPrivateFieldGet(this, _LicensePreferredCurrency_conversionRules, "f");
34
+ }
35
+ get values() {
36
+ return __classPrivateFieldGet(this, _LicensePreferredCurrency_values, "f");
37
+ }
38
+ toJSON() {
39
+ return {
40
+ [LicensePreferredCurrencyFields.COLUMN_CONVERSION_RULES]: this.conversionRules.toJSON(),
41
+ [LicensePreferredCurrencyFields.COLUMN_VALUES]: this.values.toJSON(),
42
+ };
43
+ }
44
+ }
45
+ exports.LicensePreferredCurrency = LicensePreferredCurrency;
46
+ _LicensePreferredCurrency_conversionRules = new WeakMap(), _LicensePreferredCurrency_values = new WeakMap();
47
+ //# sourceMappingURL=licensePreferredCurrency.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": "3.385.0-rc-cpe-1",
7
+ "version": "3.385.0-rc-cpe-2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",