@arrowsphere/api-client 3.3.0 → 3.4.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,13 @@
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.4.0] - 2022-04-28
7
+
8
+ ### Changed
9
+
10
+ - Object ProductPrices:
11
+ - Add field termCode and periodicityCode
12
+
6
13
  ## [3.3.0] - 2022-04-27
7
14
 
8
15
  ### Changed
@@ -4,7 +4,9 @@ export declare enum ProductPricesFields {
4
4
  COLUMN_SELL = "sell",
5
5
  COLUMN_CURRENCY = "currency",
6
6
  COLUMN_PERIODICITY = "periodicity",
7
- COLUMN_TERM = "term"
7
+ COLUMN_TERM = "term",
8
+ COLUMN_PERIODICITY_CODE = "periodicityCode",
9
+ COLUMN_TERM_CODE = "termCode"
8
10
  }
9
11
  export declare type ProductPricesType = {
10
12
  [ProductPricesFields.COLUMN_BUY]: number;
@@ -12,6 +14,8 @@ export declare type ProductPricesType = {
12
14
  [ProductPricesFields.COLUMN_CURRENCY]: string;
13
15
  [ProductPricesFields.COLUMN_PERIODICITY]: string;
14
16
  [ProductPricesFields.COLUMN_TERM]: string;
17
+ [ProductPricesFields.COLUMN_PERIODICITY_CODE]: number;
18
+ [ProductPricesFields.COLUMN_TERM_CODE]: number;
15
19
  };
16
20
  export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
17
21
  #private;
@@ -21,5 +25,7 @@ export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
21
25
  get currency(): string;
22
26
  get periodicity(): string;
23
27
  get term(): string;
28
+ get periodicityCode(): number;
29
+ get termCode(): number;
24
30
  toJSON(): ProductPricesType;
25
31
  }
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _buy, _sell, _currency, _periodicity, _term;
15
+ var _buy, _sell, _currency, _periodicity, _term, _periodicityCode, _termCode;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.ProductPrices = exports.ProductPricesFields = void 0;
18
18
  const abstractEntity_1 = require("../../../../../abstractEntity");
@@ -23,6 +23,8 @@ var ProductPricesFields;
23
23
  ProductPricesFields["COLUMN_CURRENCY"] = "currency";
24
24
  ProductPricesFields["COLUMN_PERIODICITY"] = "periodicity";
25
25
  ProductPricesFields["COLUMN_TERM"] = "term";
26
+ ProductPricesFields["COLUMN_PERIODICITY_CODE"] = "periodicityCode";
27
+ ProductPricesFields["COLUMN_TERM_CODE"] = "termCode";
26
28
  })(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
27
29
  class ProductPrices extends abstractEntity_1.AbstractEntity {
28
30
  constructor(productPricesInput) {
@@ -32,11 +34,15 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
32
34
  _currency.set(this, void 0);
33
35
  _periodicity.set(this, void 0);
34
36
  _term.set(this, void 0);
37
+ _periodicityCode.set(this, void 0);
38
+ _termCode.set(this, void 0);
35
39
  __classPrivateFieldSet(this, _buy, productPricesInput[ProductPricesFields.COLUMN_BUY]);
36
40
  __classPrivateFieldSet(this, _sell, productPricesInput[ProductPricesFields.COLUMN_SELL]);
37
41
  __classPrivateFieldSet(this, _currency, productPricesInput[ProductPricesFields.COLUMN_CURRENCY]);
38
42
  __classPrivateFieldSet(this, _periodicity, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY]);
39
43
  __classPrivateFieldSet(this, _term, productPricesInput[ProductPricesFields.COLUMN_TERM]);
44
+ __classPrivateFieldSet(this, _periodicityCode, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY_CODE]);
45
+ __classPrivateFieldSet(this, _termCode, productPricesInput[ProductPricesFields.COLUMN_TERM_CODE]);
40
46
  }
41
47
  get buy() {
42
48
  return __classPrivateFieldGet(this, _buy);
@@ -53,6 +59,12 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
53
59
  get term() {
54
60
  return __classPrivateFieldGet(this, _term);
55
61
  }
62
+ get periodicityCode() {
63
+ return __classPrivateFieldGet(this, _periodicityCode);
64
+ }
65
+ get termCode() {
66
+ return __classPrivateFieldGet(this, _termCode);
67
+ }
56
68
  toJSON() {
57
69
  return {
58
70
  [ProductPricesFields.COLUMN_BUY]: this.buy,
@@ -60,9 +72,11 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
60
72
  [ProductPricesFields.COLUMN_CURRENCY]: this.currency,
61
73
  [ProductPricesFields.COLUMN_PERIODICITY]: this.periodicity,
62
74
  [ProductPricesFields.COLUMN_TERM]: this.term,
75
+ [ProductPricesFields.COLUMN_PERIODICITY_CODE]: this.periodicityCode,
76
+ [ProductPricesFields.COLUMN_TERM_CODE]: this.termCode,
63
77
  };
64
78
  }
65
79
  }
66
80
  exports.ProductPrices = ProductPrices;
67
- _buy = new WeakMap(), _sell = new WeakMap(), _currency = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap();
81
+ _buy = new WeakMap(), _sell = new WeakMap(), _currency = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _periodicityCode = new WeakMap(), _termCode = new WeakMap();
68
82
  //# sourceMappingURL=productPrices.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.3.0",
7
+ "version": "3.4.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",