Skip to content

Commit c7136b5

Browse files
committed
Update build files
1 parent 0142e06 commit c7136b5

65 files changed

Lines changed: 350 additions & 171 deletions

Some content is hidden

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

definition/accessors/ILivechatRead.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { IDepartment } from '../livechat';
22
import { ILivechatRoom } from '../livechat/ILivechatRoom';
33
import { IVisitor } from '../livechat/IVisitor';
4+
import { IMessage } from '../messages';
45
export interface ILivechatRead {
56
/**
67
* Gets online status of the livechat.
@@ -26,4 +27,9 @@ export interface ILivechatRead {
2627
getLivechatVisitorByToken(token: string): Promise<IVisitor | undefined>;
2728
getLivechatVisitorByPhoneNumber(phoneNumber: string): Promise<IVisitor | undefined>;
2829
getLivechatDepartmentByIdOrName(value: string): Promise<IDepartment | undefined>;
30+
/**
31+
* @experimental we do not encourage the wider usage of this method,
32+
* as we're evaluating its performance and fit for the API.
33+
*/
34+
_fetchLivechatRoomMessages(roomId: string): Promise<Array<IMessage>>;
2935
}

definition/accessors/ILivechatRead.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/ISchedulerExtend.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface ISchedulerExtend {
44
* Register processors that can be scheduled to run
55
*
66
* @param {Array<IProcessor>} processors An array of processors
7+
* @returns List of task ids run at startup, or void no startup run is set
78
*/
8-
registerProcessors(processors: Array<IProcessor>): Promise<void>;
9+
registerProcessors(processors: Array<IProcessor>): Promise<void | Array<string>>;
910
}

definition/accessors/ISchedulerExtend.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/ISchedulerModify.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ export interface ISchedulerModify {
77
* Schedules a registered processor to run _once_.
88
*
99
* @param {IOnetimeSchedule} job
10+
* @returns jobid as string
1011
*/
11-
scheduleOnce(job: IOnetimeSchedule): Promise<void>;
12+
scheduleOnce(job: IOnetimeSchedule): Promise<void | string>;
1213
/**
1314
* Schedules a registered processor to run in recurrencly according to a given interval
1415
*
1516
* @param {IRecurringSchedule} job
17+
* @returns jobid as string
1618
*/
17-
scheduleRecurring(job: IRecurringSchedule): Promise<void>;
19+
scheduleRecurring(job: IRecurringSchedule): Promise<void | string>;
1820
/**
1921
* Cancels a running job given its jobId
2022
*

definition/accessors/ISchedulerModify.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/livechat/ILivechatRoom.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import { IRoom } from '../rooms/IRoom';
22
import { IUser } from '../users';
33
import { IDepartment } from './IDepartment';
44
import { IVisitor } from './IVisitor';
5+
export declare enum OmnichannelSourceType {
6+
WIDGET = "widget",
7+
EMAIL = "email",
8+
SMS = "sms",
9+
APP = "app",
10+
OTHER = "other"
11+
}
512
export interface ILivechatRoom extends IRoom {
613
visitor: IVisitor;
714
department?: IDepartment;
@@ -10,4 +17,9 @@ export interface ILivechatRoom extends IRoom {
1017
isWaitingResponse: boolean;
1118
isOpen: boolean;
1219
closedAt?: Date;
20+
source?: {
21+
type: OmnichannelSourceType;
22+
id?: string;
23+
alias?: string;
24+
};
1325
}

definition/livechat/ILivechatRoom.js

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

definition/livechat/ILivechatRoom.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/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket.chat/apps-ts-definition",
3-
"version": "1.27.1",
3+
"version": "1.28.0",
44
"description": "Contains the TypeScript definitions for the Rocket.Chat Applications.",
55
"main": "index.js",
66
"typings": "index",

0 commit comments

Comments
 (0)