Skip to content

Commit

Permalink
Match event listener names to event type names in fdc3 for web schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswest committed Dec 5, 2024
1 parent 071f72a commit e9890d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions schemas/api/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"description": "Event listener type names for Private Channel events.",
"type": "string",
"enum": [
"onAddContextListener",
"onUnsubscribe",
"onDisconnect"
"addContextListener",
"unsubscribe",
"disconnect"
]
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/api/BrowserTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ export interface AppMetadata {
}

/**
* Describes an Icon images that may be used to represent the application.
* Describes an Icon image that may be used to represent the application.
*/
export interface Icon {
/**
Expand Down Expand Up @@ -2107,7 +2107,7 @@ export interface GetCurrentContextResponsePayload {
*/

/**
* Request to retrieve information about the FDC3 Desktop Agent implementation and the
* Request to retrieve information about the FDC3 Desktop Agent implementation and the
* metadata of the calling application according to the Desktop Agent.
*
* A request message from an FDC3-enabled app to a Desktop Agent.
Expand Down Expand Up @@ -2919,7 +2919,7 @@ export interface TPayload {
*
* Event listener type names for Private Channel events.
*/
export type PrivateChannelEventListenerTypes = "onAddContextListener" | "onUnsubscribe" | "onDisconnect";
export type PrivateChannelEventListenerTypes = "addContextListener" | "unsubscribe" | "disconnect";

/**
* Identifies the type of the message and it is typically set to the FDC3 function name that
Expand Down Expand Up @@ -5780,9 +5780,9 @@ const typeMap: any = {
"openResponse",
],
"PrivateChannelEventListenerTypes": [
"onAddContextListener",
"onDisconnect",
"onUnsubscribe",
"addContextListener",
"disconnect",
"unsubscribe",
],
"PrivateChannelAddEventListenerRequestType": [
"privateChannelAddEventListenerRequest",
Expand Down

0 comments on commit e9890d4

Please sign in to comment.