From 08afab6b045d7e0f3e075a2c73515357ef0e00eb Mon Sep 17 00:00:00 2001 From: Julianna Langston Date: Wed, 18 Jun 2025 07:01:45 -0400 Subject: [PATCH] Update generated --- .../generated/context/ContextTypes.ts | 10 ++++ .../fdc3-schema/generated/api/BrowserTypes.ts | 51 +++++++------------ 2 files changed, 27 insertions(+), 34 deletions(-) diff --git a/packages/fdc3-context/generated/context/ContextTypes.ts b/packages/fdc3-context/generated/context/ContextTypes.ts index 99bf6e8e9..829e0938e 100644 --- a/packages/fdc3-context/generated/context/ContextTypes.ts +++ b/packages/fdc3-context/generated/context/ContextTypes.ts @@ -1980,6 +1980,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 +2048,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. */ @@ -3067,6 +3075,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 +3094,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') }, ], diff --git a/packages/fdc3-schema/generated/api/BrowserTypes.ts b/packages/fdc3-schema/generated/api/BrowserTypes.ts index 375bec40c..04ba7610c 100644 --- a/packages/fdc3-schema/generated/api/BrowserTypes.ts +++ b/packages/fdc3-schema/generated/api/BrowserTypes.ts @@ -101,7 +101,6 @@ export interface AddContextListenerRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -177,15 +176,6 @@ export interface AppIdentifier { [property: string]: any; } -/** - * Metadata that can be provided by an app. - */ -export interface AppProvidableContextMetadata { - hostParams?: { [key: string]: any }; - signature?: string; - traceId?: string; -} - /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -289,7 +279,6 @@ export interface AddEventListenerRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -403,7 +392,6 @@ export interface AddIntentListenerRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -764,7 +752,6 @@ export interface BroadcastRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -2671,7 +2658,6 @@ export interface IntentResultRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -2894,7 +2880,6 @@ export interface OpenRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -3338,7 +3323,6 @@ export interface RaiseIntentForContextRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -3478,7 +3462,6 @@ export interface RaiseIntentRequest { * Metadata for a request message sent by an FDC3-enabled app to a Desktop Agent. */ meta: AddContextListenerRequestMeta; - metadata?: AppProvidableContextMetadata; /** * The message payload typically contains the arguments to FDC3 API functions. */ @@ -3500,6 +3483,15 @@ export interface RaiseIntentRequestPayload { metadata?: AppProvidableContextMetadata; } +/** + * Metadata that can be provided by an app. + */ +export interface AppProvidableContextMetadata { + hostParams?: { [key: string]: any }; + signature?: string; + traceId?: string; +} + /** * Identifies the type of the message and it is typically set to the FDC3 function name that * the message relates to, e.g. 'findIntent', with 'Request' appended. @@ -4815,7 +4807,6 @@ const typeMap: any = { AddContextListenerRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('AddContextListenerRequestPayload') }, { json: 'type', js: 'type', typ: r('AddContextListenerRequestType') }, ], @@ -4837,14 +4828,6 @@ const typeMap: any = { ], 'any' ), - AppProvidableContextMetadata: o( - [ - { json: 'hostParams', js: 'hostParams', typ: u(undefined, m('any')) }, - { json: 'signature', js: 'signature', typ: u(undefined, '') }, - { json: 'traceId', js: 'traceId', typ: u(undefined, '') }, - ], - false - ), AddContextListenerRequestPayload: o( [ { json: 'channelId', js: 'channelId', typ: u(null, '') }, @@ -4879,7 +4862,6 @@ const typeMap: any = { AddEventListenerRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('AddEventListenerRequestPayload') }, { json: 'type', js: 'type', typ: r('AddEventListenerRequestType') }, ], @@ -4904,7 +4886,6 @@ const typeMap: any = { AddIntentListenerRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('AddIntentListenerRequestPayload') }, { json: 'type', js: 'type', typ: r('AddIntentListenerRequestType') }, ], @@ -4975,7 +4956,6 @@ const typeMap: any = { AppRequestMessage: o( [ { json: 'meta', js: 'meta', typ: r('AppRequestMessageMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: m('any') }, { json: 'type', js: 'type', typ: r('RequestMessageType') }, ], @@ -5031,7 +5011,6 @@ const typeMap: any = { BroadcastRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('BroadcastRequestPayload') }, { json: 'type', js: 'type', typ: r('BroadcastRequestType') }, ], @@ -5629,7 +5608,6 @@ const typeMap: any = { IntentResultRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('IntentResultRequestPayload') }, { json: 'type', js: 'type', typ: r('IntentResultRequestType') }, ], @@ -5697,7 +5675,6 @@ const typeMap: any = { OpenRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('OpenRequestPayload') }, { json: 'type', js: 'type', typ: r('OpenRequestType') }, ], @@ -5838,7 +5815,6 @@ const typeMap: any = { RaiseIntentForContextRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('RaiseIntentForContextRequestPayload') }, { json: 'type', js: 'type', typ: r('RaiseIntentForContextRequestType') }, ], @@ -5877,7 +5853,6 @@ const typeMap: any = { RaiseIntentRequest: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerRequestMeta') }, - { json: 'metadata', js: 'metadata', typ: u(undefined, r('AppProvidableContextMetadata')) }, { json: 'payload', js: 'payload', typ: r('RaiseIntentRequestPayload') }, { json: 'type', js: 'type', typ: r('RaiseIntentRequestType') }, ], @@ -5892,6 +5867,14 @@ const typeMap: any = { ], false ), + AppProvidableContextMetadata: o( + [ + { json: 'hostParams', js: 'hostParams', typ: u(undefined, m('any')) }, + { json: 'signature', js: 'signature', typ: u(undefined, '') }, + { json: 'traceId', js: 'traceId', typ: u(undefined, '') }, + ], + false + ), RaiseIntentResponse: o( [ { json: 'meta', js: 'meta', typ: r('AddContextListenerResponseMeta') },