From 7c978d57b74c799e85207a89232cd3e23c6c87fe Mon Sep 17 00:00:00 2001 From: Angela Date: Fri, 6 Jun 2025 18:21:40 +0800 Subject: [PATCH] update ContextTypes --- CHANGELOG.md | 4 +-- .../generated/context/ContextTypes.ts | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0ee6107c..99209ab0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Added -* Add a notes field to trade type ([#1563](https://github.com/finos/FDC3/pull/1563)) -* Add a notes filed to order and product types ([#1597](https://github.com/finos/FDC3/pull/1597)) +* Add a notes field to Trade type ([#1563](https://github.com/finos/FDC3/pull/1563)) +* Add a notes filed to Order and Product types ([#1597](https://github.com/finos/FDC3/pull/1597)) ### Changed ### Deprecated diff --git a/packages/fdc3-context/generated/context/ContextTypes.ts b/packages/fdc3-context/generated/context/ContextTypes.ts index 99bf6e8e9..a6ff5bdd0 100644 --- a/packages/fdc3-context/generated/context/ContextTypes.ts +++ b/packages/fdc3-context/generated/context/ContextTypes.ts @@ -1587,6 +1587,10 @@ export interface Order { * An optional human-readable summary of the order. */ name?: string; + /** + * Additional notes or comments about the order. + */ + notes?: string; type: 'fdc3.order'; [property: string]: any; } @@ -1627,6 +1631,10 @@ export interface ProductObject { * A human-readable summary of the product. */ name?: string; + /** + * Additional notes or comments about the product. + */ + notes?: string; type: 'fdc3.product'; [property: string]: any; } @@ -1697,6 +1705,10 @@ export interface OrderElement { * An optional human-readable summary of the order. */ name?: string; + /** + * Additional notes or comments about the order. + */ + notes?: string; type: 'fdc3.order'; [property: string]: any; } @@ -1904,6 +1916,10 @@ export interface Product { * A human-readable summary of the product. */ name?: string; + /** + * Additional notes or comments about the product. + */ + notes?: string; type: 'fdc3.product'; [property: string]: any; } @@ -1980,6 +1996,10 @@ export interface Trade { * A human-readable summary of the trade. */ name?: string; + /** + * Additional notes or comments about the trade. + */ + notes?: string; /** * A product that is the subject of the trade. */ @@ -2044,6 +2064,10 @@ export interface TradeElement { * A human-readable summary of the trade. */ name?: string; + /** + * Additional notes or comments about the trade. + */ + notes?: string; /** * A product that is the subject of the trade. */ @@ -2966,6 +2990,7 @@ const typeMap: any = { { json: 'details', js: 'details', typ: u(undefined, r('PurpleOrderDetails')) }, { json: 'id', js: 'id', typ: m('') }, { json: 'name', js: 'name', typ: u(undefined, '') }, + { json: 'notes', js: 'notes', typ: u(undefined, '') }, { json: 'type', js: 'type', typ: r('OrderType') }, ], 'any' @@ -2976,6 +3001,7 @@ const typeMap: any = { { json: 'id', js: 'id', typ: m('') }, { json: 'instrument', js: 'instrument', typ: u(undefined, r('InstrumentElement')) }, { json: 'name', js: 'name', typ: u(undefined, '') }, + { json: 'notes', js: 'notes', typ: u(undefined, '') }, { json: 'type', js: 'type', typ: r('ProductType') }, ], 'any' @@ -2994,6 +3020,7 @@ const typeMap: any = { { json: 'details', js: 'details', typ: u(undefined, r('FluffyOrderDetails')) }, { json: 'id', js: 'id', typ: m('') }, { json: 'name', js: 'name', typ: u(undefined, '') }, + { json: 'notes', js: 'notes', typ: u(undefined, '') }, { json: 'type', js: 'type', typ: r('OrderType') }, ], 'any' @@ -3049,6 +3076,7 @@ const typeMap: any = { { json: 'id', js: 'id', typ: m('') }, { json: 'instrument', js: 'instrument', typ: u(undefined, r('InstrumentElement')) }, { json: 'name', js: 'name', typ: u(undefined, '') }, + { json: 'notes', js: 'notes', typ: u(undefined, '') }, { json: 'type', js: 'type', typ: r('ProductType') }, ], 'any' @@ -3067,6 +3095,7 @@ const typeMap: any = { [ { json: 'id', js: 'id', typ: m('') }, { json: 'name', js: 'name', typ: u(undefined, '') }, + { json: 'notes', js: 'notes', typ: u(undefined, '') }, { json: 'product', js: 'product', typ: r('ProductObject') }, { json: 'type', js: 'type', typ: r('TradeType') }, ], @@ -3085,6 +3114,7 @@ const typeMap: any = { [ { json: 'id', js: 'id', typ: m('') }, { json: 'name', js: 'name', typ: u(undefined, '') }, + { json: 'notes', js: 'notes', typ: u(undefined, '') }, { json: 'product', js: 'product', typ: r('ProductObject') }, { json: 'type', js: 'type', typ: r('TradeType') }, ],