-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed logging that might disclose sensitive info - Fixed name of bag item disambiguateMessage event in TypeScript - Added new CMM message types and properties - Typescript bots-node-sdk did not allow creating sub-type items for DateTime bag item.
- Loading branch information
1 parent
eea4ced
commit b94ee7d
Showing
27 changed files
with
563 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Action, NonRawMessage, MessageUtil } from '../internal'; | ||
|
||
/** | ||
* Represents a popup action. When clicked a popup dialog opens that shows the popup content | ||
* @extends Action | ||
*/ | ||
export class PopupAction extends Action { | ||
public readonly type: string = 'popup'; | ||
private popupContent: NonRawMessage; | ||
|
||
/** | ||
* Creates an instance of PopupAction. | ||
* @param label - The label of the popup action. | ||
* @param popupContent - The popup content associated with the popup action. | ||
*/ | ||
constructor(label: string, popupContent: NonRawMessage) { | ||
super(label); | ||
this.popupContent = popupContent; | ||
} | ||
|
||
/** | ||
* Deserialize nested object properties into corresponding class instances | ||
*/ | ||
public deserializeNestedProperties(): void { | ||
super.deserializeNestedProperties(); | ||
if (this.popupContent) { | ||
this.popupContent = MessageUtil.deserializeMessage(this.popupContent); | ||
} | ||
} | ||
|
||
/** | ||
* Gets the popup content associated with the popup action. | ||
* @returns The popup content associated with the popup action. | ||
*/ | ||
public getPopupContent(): NonRawMessage { | ||
return this.popupContent; | ||
} | ||
|
||
/** | ||
* Sets the popup content associated with the popup action. | ||
* @param popupContent - The popup content to set. | ||
* @returns The current instance of the PopupAction class. | ||
*/ | ||
public setPopupContent(popupContent: NonRawMessage): this { | ||
this.popupContent = popupContent; | ||
return this; | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
|
Oops, something went wrong.