Skip to content

Commit

Permalink
Merge pull request #1459 from InteropIO/fdc3-for-web-match-pc-listene…
Browse files Browse the repository at this point in the history
…rs-to-event-names

Match event listener names to event type names in fdc3 for web schemas
  • Loading branch information
kriswest authored Jan 16, 2025
2 parents bab450a + e9890d4 commit cb6d709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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
8 changes: 4 additions & 4 deletions src/api/BrowserTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2917,7 +2917,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 @@ -5778,9 +5778,9 @@ const typeMap: any = {
"openResponse",
],
"PrivateChannelEventListenerTypes": [
"onAddContextListener",
"onDisconnect",
"onUnsubscribe",
"addContextListener",
"disconnect",
"unsubscribe",
],
"PrivateChannelAddEventListenerRequestType": [
"privateChannelAddEventListenerRequest",
Expand Down

0 comments on commit cb6d709

Please sign in to comment.