Skip to content

Commit ea8b794

Browse files
committed
Update build files
1 parent 8947b5d commit ea8b794

137 files changed

Lines changed: 757 additions & 199 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

definition/App.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export declare abstract class App implements IApp {
3636
* @return {string} the username of the app user
3737
*
3838
* @deprecated This method will be removed in the next major version.
39-
* Please use read.getAppUser instead.
39+
* Please use read.getUserReader().getAppUser() instead.
4040
*/
4141
getAppUserUsername(): string;
4242
/**

definition/App.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/App.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/accessors/IConfigurationExtend.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { IHttpExtend } from './IHttp';
44
import { ISchedulerExtend } from './ISchedulerExtend';
55
import { ISettingsExtend } from './ISettingsExtend';
66
import { ISlashCommandsExtend } from './ISlashCommandsExtend';
7+
import { IUIExtend } from './IUIExtend';
78
/**
89
* This accessor provides methods for declaring the configuration
910
* of your App. It is provided during initialization of your App.
@@ -20,4 +21,6 @@ export interface IConfigurationExtend {
2021
readonly externalComponents: IExternalComponentsExtend;
2122
/** Accessor for declaring tasks that can be scheduled (like cron) */
2223
readonly scheduler: ISchedulerExtend;
24+
/** Accessor for registering different elements in the host UI */
25+
readonly ui: IUIExtend;
2326
}

definition/accessors/IConfigurationExtend.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/accessors/ILivechatCreator.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { ILivechatRoom, IVisitor } from '../livechat';
22
import { IUser } from '../users';
3+
export interface IExtraRoomParams {
4+
source?: ILivechatRoom['source'];
5+
}
36
export interface ILivechatCreator {
47
/**
58
* Creates a room to connect the `visitor` to an `agent`.
@@ -10,7 +13,7 @@ export interface ILivechatCreator {
1013
* @param visitor The Livechat Visitor that started the conversation
1114
* @param agent The agent responsible for the room
1215
*/
13-
createRoom(visitor: IVisitor, agent: IUser): Promise<ILivechatRoom>;
16+
createRoom(visitor: IVisitor, agent: IUser, extraParams?: IExtraRoomParams): Promise<ILivechatRoom>;
1417
/**
1518
* Creates a Livechat visitor
1619
*

definition/accessors/ILivechatCreator.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/accessors/ILivechatUpdater.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ILivechatTransferData, IVisitor } from '../livechat';
22
import { IRoom } from '../rooms';
3+
import { IUser } from '../users';
34
export interface ILivechatUpdater {
45
/**
56
* Transfer a Livechat visitor to another room
@@ -13,8 +14,9 @@ export interface ILivechatUpdater {
1314
*
1415
* @param room The room to be closed
1516
* @param comment The comment explaining the reason for closing the room
17+
* @param closer The user that closes the room
1618
*/
17-
closeRoom(room: IRoom, comment: string): Promise<boolean>;
19+
closeRoom(room: IRoom, comment: string, closer?: IUser): Promise<boolean>;
1820
/**
1921
* Set a livechat visitor's custom fields by its token
2022
* @param token The visitor's token

definition/accessors/ILivechatUpdater.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

definition/accessors/IMessageBuilder.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,13 @@ export interface IMessageBuilder {
189189
* Gets the block collection of the message
190190
*/
191191
getBlocks(): Array<IBlock>;
192+
/**
193+
* Adds a custom field to the message.
194+
* Note: This key can not already exist or it will throw an error.
195+
* Note: The key must not contain a period in it, an error will be thrown.
196+
*
197+
* @param key the name of the custom field
198+
* @param value the value of this custom field
199+
*/
200+
addCustomField(key: string, value: any): IMessageBuilder;
192201
}

0 commit comments

Comments
 (0)