@decafhub/decaf-client-extras 0.0.4 → 0.1.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.
Files changed (53) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +22 -0
  3. package/commons/-currency.d.ts +22 -6
  4. package/commons/-currency.js +12 -6
  5. package/commons/{-date-type.d.ts → -datetype.d.ts} +2 -2
  6. package/commons/{-date-type.js → -datetype.js} +2 -2
  7. package/commons/-id.d.ts +109 -17
  8. package/commons/-id.js +73 -0
  9. package/commons/index.d.ts +4 -1
  10. package/commons/index.js +17 -1
  11. package/es/commons/-currency.d.ts +22 -6
  12. package/es/commons/-currency.js +12 -6
  13. package/es/commons/{-date-type.d.ts → -datetype.d.ts} +2 -2
  14. package/es/commons/{-date-type.js → -datetype.js} +1 -1
  15. package/es/commons/-id.d.ts +109 -17
  16. package/es/commons/-id.js +70 -1
  17. package/es/commons/index.d.ts +4 -1
  18. package/es/commons/index.js +4 -1
  19. package/es/reports/valuation/-remote-valuation-report-portfolio.d.ts +15 -15
  20. package/es/reports/valuation/-remote-valuation-report-portfolio.js +32 -32
  21. package/es/reports/valuation/-remote-valuation-report-shared.d.ts +4 -4
  22. package/es/reports/valuation/-remote-valuation-report-shared.js +29 -26
  23. package/es/reports/valuation/-valuation-report-consolidated.d.ts +1 -1
  24. package/es/reports/valuation/-valuation-report-holdings-tree/-machinery.js +6 -5
  25. package/es/reports/valuation/-valuation-report-portfolio.d.ts +14 -14
  26. package/es/reports/valuation/-valuation-report-shared.d.ts +7 -7
  27. package/nix/default.nix +59 -0
  28. package/nix/sources.json +14 -0
  29. package/nix/sources.nix +194 -0
  30. package/package.json +16 -16
  31. package/reports/valuation/-remote-valuation-report-consolidated.js +1 -1
  32. package/reports/valuation/-remote-valuation-report-portfolio.d.ts +15 -15
  33. package/reports/valuation/-remote-valuation-report-portfolio.js +32 -32
  34. package/reports/valuation/-remote-valuation-report-shared.d.ts +4 -4
  35. package/reports/valuation/-remote-valuation-report-shared.js +28 -25
  36. package/reports/valuation/-valuation-report-consolidated.d.ts +1 -1
  37. package/reports/valuation/-valuation-report-holdings-tree/-machinery.js +14 -11
  38. package/reports/valuation/-valuation-report-portfolio.d.ts +14 -14
  39. package/reports/valuation/-valuation-report-shared.d.ts +7 -7
  40. package/shell.nix +5 -20
  41. package/src/commons/-currency.test.ts +27 -0
  42. package/src/commons/-currency.ts +24 -9
  43. package/src/commons/-datetype.test.ts +10 -0
  44. package/src/commons/{-date-type.ts → -datetype.ts} +1 -1
  45. package/src/commons/-id.test.ts +27 -0
  46. package/src/commons/-id.ts +112 -17
  47. package/src/commons/index.ts +4 -1
  48. package/src/index.test.ts +34 -5
  49. package/src/reports/valuation/-remote-valuation-report-portfolio.ts +54 -54
  50. package/src/reports/valuation/-remote-valuation-report-shared.ts +34 -31
  51. package/src/reports/valuation/-valuation-report-holdings-tree/-machinery.ts +14 -5
  52. package/src/reports/valuation/-valuation-report-portfolio.ts +20 -20
  53. package/src/reports/valuation/-valuation-report-shared.ts +13 -6
@@ -1,13 +1,13 @@
1
1
  import { Decimal, Maybe, SDate, SDateTime } from '@telostat/prelude';
2
2
  import {
3
- ActionId,
3
+ DecafActionId,
4
4
  CurrencyCode,
5
- ExternalValuationId,
6
- OhlcSeriesId,
7
- PortfolioId,
8
- PrincipalId,
9
- ShareClassFeeScheduleId,
10
- ShareClassId,
5
+ DecafExternalValuationId,
6
+ DecafOhlcSeriesId,
7
+ DecafPortfolioId,
8
+ DecafPrincipalId,
9
+ DecafShareClassFeeScheduleId,
10
+ DecafShareClassId,
11
11
  } from '../../commons';
12
12
  import { BaseValuationReport, ValuationReportPortfolio } from './-valuation-report-shared';
13
13
 
@@ -36,13 +36,13 @@ export interface PortfolioValuationReportShareClassValue {
36
36
  }
37
37
 
38
38
  export interface PortfolioValuationReportShareClass {
39
- id: ShareClassId;
39
+ id: DecafShareClassId;
40
40
  created: SDateTime;
41
- creator: Maybe<PrincipalId>;
41
+ creator: Maybe<DecafPrincipalId>;
42
42
  updated: SDateTime;
43
- updater: Maybe<PrincipalId>;
43
+ updater: Maybe<DecafPrincipalId>;
44
44
  guid: string;
45
- portfolio: PortfolioId;
45
+ portfolio: DecafPortfolioId;
46
46
  name: string;
47
47
  currency: CurrencyCode;
48
48
  isin: Maybe<string>;
@@ -54,23 +54,23 @@ export interface PortfolioValuationReportShareClass {
54
54
  subscriptionRedemptionPeriod: Maybe<string>;
55
55
  managementFeeFrequency: Maybe<number>;
56
56
  performanceFeeFrequency: Maybe<number>;
57
- benchmark: Maybe<OhlcSeriesId>;
57
+ benchmark: Maybe<DecafOhlcSeriesId>;
58
58
  description: Maybe<string>;
59
- feeScheduleIds: ShareClassFeeScheduleId[];
60
- effectiveFeeScheduleId: Maybe<ShareClassFeeScheduleId>;
61
- subscriptionIds: ActionId[];
59
+ feeScheduleIds: DecafShareClassFeeScheduleId[];
60
+ effectiveFeeScheduleId: Maybe<DecafShareClassFeeScheduleId>;
61
+ subscriptionIds: DecafActionId[];
62
62
  outstanding: Maybe<Decimal>;
63
63
  }
64
64
 
65
65
  export interface PortfolioValuationReportExternalValue {
66
- id: ExternalValuationId;
66
+ id: DecafExternalValuationId;
67
67
  created: SDateTime;
68
- creator: Maybe<PrincipalId>;
68
+ creator: Maybe<DecafPrincipalId>;
69
69
  updated: SDateTime;
70
- updater: Maybe<PrincipalId>;
70
+ updater: Maybe<DecafPrincipalId>;
71
71
  guid: string;
72
- portfolio: PortfolioId;
73
- shareclass: Maybe<ShareClassId>;
72
+ portfolio: DecafPortfolioId;
73
+ shareclass: Maybe<DecafShareClassId>;
74
74
  date: SDate;
75
75
  ccy: CurrencyCode;
76
76
  shares: Maybe<Decimal>;
@@ -1,5 +1,12 @@
1
1
  import { Decimal, Maybe, SDate, SDateTime } from '@telostat/prelude';
2
- import { AccountId, ArtifactId, ArtifactTypeId, CurrencyCode, DateType, PortfolioId } from '../../commons';
2
+ import {
3
+ CurrencyCode,
4
+ DateType,
5
+ DecafAccountId,
6
+ DecafArtifactId,
7
+ DecafArtifactTypeId,
8
+ DecafPortfolioId,
9
+ } from '../../commons';
3
10
 
4
11
  /**
5
12
  * Type definition for base valuation report.
@@ -33,7 +40,7 @@ export interface BaseValuationReport {
33
40
  * Type definition for account reference in valuation reports.
34
41
  */
35
42
  export interface ValuationReportAccount {
36
- id: AccountId;
43
+ id: DecafAccountId;
37
44
  guid: string;
38
45
  name: string;
39
46
  }
@@ -42,7 +49,7 @@ export interface ValuationReportAccount {
42
49
  * Type definition for portfolio reference in valuation reports.
43
50
  */
44
51
  export interface ValuationReportPortfolio {
45
- id: PortfolioId;
52
+ id: DecafPortfolioId;
46
53
  guid: string;
47
54
  name: string;
48
55
  }
@@ -181,7 +188,7 @@ export interface ValuationReportAccrualByCurrency {
181
188
  * Type definition of the FINREA artifact type.
182
189
  */
183
190
  export interface ValuationReportArtifactType {
184
- id: ArtifactTypeId;
191
+ id: DecafArtifactTypeId;
185
192
  name: string;
186
193
  order: number;
187
194
  }
@@ -190,7 +197,7 @@ export interface ValuationReportArtifactType {
190
197
  * Type definition for the artifact as reported in the valuation.
191
198
  */
192
199
  export interface ValuationReportArtifact {
193
- id: ArtifactId;
200
+ id: DecafArtifactId;
194
201
  guid: string;
195
202
  type: ValuationReportArtifactType;
196
203
  stype: Maybe<string>;
@@ -206,7 +213,7 @@ export interface ValuationReportArtifact {
206
213
  isin: Maybe<string>;
207
214
  figi: Maybe<string>;
208
215
  expiry: Maybe<SDate>;
209
- underlyingId: Maybe<ArtifactId>;
216
+ underlyingId: Maybe<DecafArtifactId>;
210
217
  }
211
218
 
212
219
  export interface ValuationReportFxRate {