Skip to content

Commit c2fa637

Browse files
New version 2.6.3 with bug fixes
1 parent cf990e2 commit c2fa637

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Release Notes
22

3+
- [Version 2.6.3](#v263)
34
- [Version 2.6.2](#v262)
45
- [Version 2.6.1](#v261)
56
- [Version 2.6.0](#v260)
@@ -12,6 +13,12 @@
1213
- [Version 2.4.3](#v243)
1314
- [Version 2.4.2](#v242)
1415

16+
## Version 2.6.3 <a name="v263">
17+
18+
### Fixed Issues
19+
20+
- Fix for display value of multi-value recurring property
21+
1522
## Version 2.6.2 <a name="v262">
1623

1724
### Fixed Issues

bin/templates/components/entityeventhandler/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
*/
5353
function updatedItemsMessage(context) {
5454
if (context.getItemsUpdated().length > 0) {
55-
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " to " + context.getDisplayValue(item.fullName || item.name));
55+
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " to " + context.getDisplayValue(item.fullName || item.name));
5656
context.addMessage(message);
5757
}
5858
}
@@ -63,7 +63,7 @@ function updatedItemsMessage(context) {
6363
*/
6464
function outOfOrderItemsMessage(context) {
6565
if (context.getItemsMatchedOutOfOrder().length > 0) {
66-
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " " + context.getDisplayValue(item.fullName || item.name));
66+
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " " + context.getDisplayValue(item.fullName || item.name));
6767
context.addMessage(message);
6868
}
6969
}

bin/templates/components/entityeventhandler/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class {{className}} implements EntityEventHandler {
6767
*/
6868
function updatedItemsMessage(context: EntityResolutionContext) {
6969
if (context.getItemsUpdated().length > 0) {
70-
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " to " + context.getDisplayValue(item.fullName || item.name));
70+
let message = "I have updated" + context.getItemDefsUpdated().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " to " + context.getDisplayValue(item.fullName || item.name));
7171
context.addMessage(message);
7272
}
7373
}
@@ -78,7 +78,7 @@ function updatedItemsMessage(context: EntityResolutionContext) {
7878
*/
7979
function outOfOrderItemsMessage(context: EntityResolutionContext) {
8080
if (context.getItemsMatchedOutOfOrder().length > 0) {
81-
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name.toLowerCase()) + " " + context.getDisplayValue(item.fullName || item.name));
81+
let message = "I got" + context.getItemDefsMatchedOutOfOrder().map((item, i) => (i !== 0 ? " and the " : " the ") + (item.label || item.name).toLowerCase() + " " + context.getDisplayValue(item.fullName || item.name));
8282
context.addMessage(message);
8383
}
8484
}

lib/entity/entityResolutionContext.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ class EntityResolutionContext extends BaseContext {
538538
let childValue = itemValue[childItem.name];
539539
if (childValue) {
540540
let label = childItem.label || childItem.name;
541-
displayValue += '\n' + label + ': ' + this._getDisplayValue('DATE_TIME.'+childValue.subType, childValue);
541+
let subType = Array.isArray(childValue) ? childValue[0].subType : childValue.subType;
542+
displayValue += '\n' + label + ': ' + this._getDisplayValue('DATE_TIME.'+subType, childValue);
542543
}
543544
}
544545
return displayValue;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oracle/bots-node-sdk",
3-
"version": "2.6.2",
3+
"version": "2.6.3",
44
"description": "Oracle Bots SDK for custom component development and webhook integrations",
55
"main": "index.js",
66
"browser": "index-browser.js",

0 commit comments

Comments
 (0)