@decafhub/decaf-client-extras 0.0.2 → 0.0.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.0.2"
2
+ ".": "0.0.3"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.0.2...v0.0.3) (2022-08-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * pxRefCcy and pxClsCcy types are wrong in share class values ([1862e1a](https://github.com/teloscube/decaf-client-javascript-extras/commit/1862e1abde3d6e5f8a539233e1408557e9465b07)), closes [#16](https://github.com/teloscube/decaf-client-javascript-extras/issues/16)
9
+
3
10
  ## [0.0.2](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.0.1...v0.0.2) (2022-08-19)
4
11
 
5
12
 
@@ -91,8 +91,8 @@ export function toShareClassValue(x) {
91
91
  sharecountPrev: asDecimal(x.sharecount_prev),
92
92
  sharecountCurr: asDecimal(x.sharecount_curr),
93
93
  sharecountDiff: asDecimal(x.sharecount_diff),
94
- pxRefCcy: asDecimal(x.px_refccy),
95
- pxClsCcy: asDecimal(x.px_clsccy),
94
+ pxRefCcy: maybeDecimal(x.px_refccy),
95
+ pxClsCcy: maybeDecimal(x.px_clsccy),
96
96
  ytdExt: maybeDecimal(x.ytdext),
97
97
  ytdInt: maybeDecimal(x.ytdint),
98
98
  };
@@ -18,8 +18,8 @@ export interface PortfolioValuationReportShareClassValue {
18
18
  sharecountPrev: Decimal;
19
19
  sharecountCurr: Decimal;
20
20
  sharecountDiff: Decimal;
21
- pxRefCcy: Decimal;
22
- pxClsCcy: Decimal;
21
+ pxRefCcy: Maybe<Decimal>;
22
+ pxClsCcy: Maybe<Decimal>;
23
23
  ytdExt: Maybe<Decimal>;
24
24
  ytdInt: Maybe<Decimal>;
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decafhub/decaf-client-extras",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "DECAF Client Extras",
5
5
  "author": "Teloscube Pte Ltd",
6
6
  "license": "MIT",
@@ -142,8 +142,8 @@ function toShareClassValue(x) {
142
142
  sharecountPrev: (0, prelude_1.asDecimal)(x.sharecount_prev),
143
143
  sharecountCurr: (0, prelude_1.asDecimal)(x.sharecount_curr),
144
144
  sharecountDiff: (0, prelude_1.asDecimal)(x.sharecount_diff),
145
- pxRefCcy: (0, prelude_1.asDecimal)(x.px_refccy),
146
- pxClsCcy: (0, prelude_1.asDecimal)(x.px_clsccy),
145
+ pxRefCcy: (0, prelude_1.maybeDecimal)(x.px_refccy),
146
+ pxClsCcy: (0, prelude_1.maybeDecimal)(x.px_clsccy),
147
147
  ytdExt: (0, prelude_1.maybeDecimal)(x.ytdext),
148
148
  ytdInt: (0, prelude_1.maybeDecimal)(x.ytdint),
149
149
  };
@@ -18,8 +18,8 @@ export interface PortfolioValuationReportShareClassValue {
18
18
  sharecountPrev: Decimal;
19
19
  sharecountCurr: Decimal;
20
20
  sharecountDiff: Decimal;
21
- pxRefCcy: Decimal;
22
- pxClsCcy: Decimal;
21
+ pxRefCcy: Maybe<Decimal>;
22
+ pxClsCcy: Maybe<Decimal>;
23
23
  ytdExt: Maybe<Decimal>;
24
24
  ytdInt: Maybe<Decimal>;
25
25
  }
@@ -242,8 +242,8 @@ export function toShareClassValue(x: RemoteValuationShareClassValue): PortfolioV
242
242
  sharecountPrev: asDecimal(x.sharecount_prev),
243
243
  sharecountCurr: asDecimal(x.sharecount_curr),
244
244
  sharecountDiff: asDecimal(x.sharecount_diff),
245
- pxRefCcy: asDecimal(x.px_refccy),
246
- pxClsCcy: asDecimal(x.px_clsccy),
245
+ pxRefCcy: maybeDecimal(x.px_refccy),
246
+ pxClsCcy: maybeDecimal(x.px_clsccy),
247
247
  ytdExt: maybeDecimal(x.ytdext),
248
248
  ytdInt: maybeDecimal(x.ytdint),
249
249
  };
@@ -29,8 +29,8 @@ export interface PortfolioValuationReportShareClassValue {
29
29
  sharecountPrev: Decimal;
30
30
  sharecountCurr: Decimal;
31
31
  sharecountDiff: Decimal;
32
- pxRefCcy: Decimal;
33
- pxClsCcy: Decimal;
32
+ pxRefCcy: Maybe<Decimal>;
33
+ pxClsCcy: Maybe<Decimal>;
34
34
  ytdExt: Maybe<Decimal>;
35
35
  ytdInt: Maybe<Decimal>;
36
36
  }