Global

Members

ActionStyle

Description:
  • Represents the style of an action.
Source:
Represents the style of an action.

AttachmentType

Description:
  • Represents the type of an attachment.
Source:
Represents the type of an attachment.

CardLayout

Description:
  • Represents the layout of a card.
Source:
Represents the layout of a card.

ColumnWidth

Description:
  • Represents the column width
Source:
Represents the column width

CommandType

Description:
  • Represents the type of command.
Source:
Represents the type of command.

ContextSource

Description:
  • Represents the context source that initiates the application context update
Source:
Represents the context source that initiates the application context update

DisplayType

Description:
  • Represents the display type of an action.
Source:
Represents the display type of an action.

FieldAlignment

Description:
  • Represents the field alignment options.
Source:
Represents the field alignment options.

FontSize

Description:
  • Represents the font size options for a field.
Source:
Represents the font size options for a field.

FontWeight

Description:
  • Represents the font weight options for a field.
Source:
Represents the font weight options for a field.

InputStyle

Description:
  • Represents the input style options for a text input field.
Source:
Represents the input style options for a text input field.

Margin

Description:
  • Represents the margin options for a field.
Source:
Represents the margin options for a field.

MediaType

Description:
  • Represents the media type.
Source:
Represents the media type.

MultiSelectLayoutStyle

Description:
  • Represents the layout style of a multi-select field.
Source:
Represents the layout style of a multi-select field.

SingleSelectLayoutStyle

Description:
  • Represents the layout style for a single select field.
Source:
Represents the layout style for a single select field.

StreamState

Description:
  • Represents the state of the text stream
Source:
Represents the state of the text stream

VerticalAlignment

Description:
  • Represents the vertical column aligment
Source:
Represents the vertical column aligment

Methods

getItemEventhandlers(events, eventPath, itemsNode)

Description:
  • Recursively add item-level event handlers for all (nested) bag items.
Source:
Parameters:
Name Type Description
events *
eventPath *
itemsNode *

init(app, optionsopt) → {external:ExpressApplication}

Description:
  • Primary bot application initialization function used to prepare the application for bot message handling. Unless the parser option is explicitly false, this function requires express and body-parser.
Source:
Example
const express = require('express');
const OracleBot = require('@oracle/bots-node-sdk');

const app = express();
OracleBot.init(app, {
  // options...
});
Parameters:
Name Type Attributes Description
app external:ExpressApplication Express application reference.
options Object <optional>
Configuration options.
Properties
Name Type Attributes Default Description
logger CustomLogger <optional>
console Specify alternate logging utility
parser ParserOptions <optional>
Body parser middleware options.
Returns:
- Initialized application
Type
external:ExpressApplication