Skip to content

Commit

Permalink
New version 2.7.3 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendavelaar committed Nov 28, 2023
1 parent b94ee7d commit 6f04caa
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Release Notes

- [Version 2.7.3](#v273)
- [Version 2.7.2](#v272)
- [Version 2.7.1](#v271)
- [Version 2.7.0](#v270)
Expand All @@ -21,6 +22,12 @@
- [Version 2.4.3](#v243)
- [Version 2.4.2](#v242)

## <a name="v273">Version 2.7.3 </a>

### Fixed Issues

- Renamed contextSource property to source in UpdateApplicationContextCommand

## <a name="v272">Version 2.7.2 </a>

### New Features
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oracle/bots-node-sdk",
"version": "2.7.2",
"version": "2.7.3",
"description": "Oracle Digital Assistant SDK for custom component development and webhook integrations",
"main": "index.js",
"browser": "index-browser.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class UpdateApplicationContextCommandMessage extends CommandMessage {
private pageName?: string;
private fieldName?: string;
private parameters?: Map<string, any>;
private contextSource: ContextSource;
private source: ContextSource;
private reset?: boolean;

/**
Expand All @@ -31,16 +31,26 @@ export class UpdateApplicationContextCommandMessage extends CommandMessage {
*/
constructor(applicationName: string) {
super(CommandType.updateApplicationContext);
this.contextSource = ContextSource.skill;
this.source = ContextSource.skill;
this.applicationName = applicationName;
}

/**
* Gets the context source
* @returns {ContextSource} The context source
*/
public getContextSource(): ContextSource {
return this.contextSource;
public getSource(): ContextSource {
return this.source;
}

/**
* Sets the context source
* @param {ContextSource} The context source
* @returns {this} The updated instance of the UpdateContextCommandMessage.
*/
public setSource(source: ContextSource): this {
this.source = source;
return this;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ts/spec/lib/message/messageDeserializer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('MessageDeserializer', () => {
let expected: string = fs.readFileSync(file, 'utf-8');
let msg = MF.messageFromJson(JSON.parse(expected)) as UpdateApplicationContextCommandMessage;
expect(msg.getCommand()).toEqual(CommandType.updateApplicationContext);
expect(msg.getContextSource()).toEqual(ContextSource.skill);
expect(msg.getSource()).toEqual(ContextSource.skill);
expect(msg.getReset()).toBeTruthy;
expect(msg.getApplicationName()).toEqual('HCM');
expect(msg.getPageName()).toEqual('JobRequisition');
Expand Down

0 comments on commit 6f04caa

Please sign in to comment.