Skip to content

Commit

Permalink
�regenerate context_types after valuation correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswest committed Oct 27, 2022
1 parent 5631b9c commit 53cf6a1
Showing 1 changed file with 2 additions and 4 deletions.
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 53cf6a1

Please sign in to comment.