Skip to content

Commit

Permalink
Merge pull request #842 from finos/regenerate-context-types-after-val…
Browse files Browse the repository at this point in the history
…uation-correction

regenerate context_types after valuation correction
  • Loading branch information
kriswest authored Nov 10, 2022
2 parents f0c72f3 + a7a0db4 commit d1f67b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/fdc3",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"author": "Fintech Open Source Foundation (FINOS)",
"homepage": "https://fdc3.finos.org",
"repository": {
Expand Down
6 changes: 2 additions & 4 deletions src/context/ContextTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,12 @@ export interface Position {
}

export interface Valuation {
CURRENCY_ISCODE?: string;
CURRENCY_ISOCODE: string;
expiryTime?: Date;
price?: number;
type: string;
valuationTime?: Date;
value: number;
CURRENCY_ISOCODE: any;
id?: { [key: string]: string };
name?: string;
}
Expand Down Expand Up @@ -660,13 +659,12 @@ const typeMap: any = {
),
Valuation: o(
[
{ json: 'CURRENCY_ISCODE', js: 'CURRENCY_ISCODE', typ: u(undefined, '') },
{ json: 'CURRENCY_ISOCODE', js: 'CURRENCY_ISOCODE', typ: '' },
{ json: 'expiryTime', js: 'expiryTime', typ: u(undefined, Date) },
{ json: 'price', js: 'price', typ: u(undefined, 3.14) },
{ json: 'type', js: 'type', typ: '' },
{ json: 'valuationTime', js: 'valuationTime', typ: u(undefined, Date) },
{ json: 'value', js: 'value', typ: 3.14 },
{ json: 'CURRENCY_ISOCODE', js: 'CURRENCY_ISOCODE', typ: 'any' },
{ json: 'id', js: 'id', typ: u(undefined, m('')) },
{ json: 'name', js: 'name', typ: u(undefined, '') },
],
Expand Down

0 comments on commit d1f67b3

Please sign in to comment.