@rocket.chat/core-typings 6.4.0-rc.4 → 6.4.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/IIntegration.d.ts +3 -0
- package/dist/IIntegrationHistory.d.ts +10 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @rocket.chat/core-typings
|
2
2
|
|
3
|
+
## 6.4.0-rc.5
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 1041d4d361: Added option to select between two script engine options for the integrations
|
8
|
+
|
3
9
|
## 6.4.0-rc.4
|
4
10
|
|
5
11
|
## 6.4.0-rc.3
|
@@ -23,6 +29,8 @@
|
|
23
29
|
- 61128364d6: Fixes a problem where the calculated time for considering the visitor abandonment was the first message from the visitor and not the visitor's reply to the agent.
|
24
30
|
- d45365436e: Use group filter when set to LDAP sync process
|
25
31
|
|
32
|
+
## 6.3.8
|
33
|
+
|
26
34
|
## 6.3.7
|
27
35
|
|
28
36
|
## 6.3.6
|
package/dist/IIntegration.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
2
|
import type { IUser } from './IUser';
|
3
|
+
export type IntegrationScriptEngine = 'vm2' | 'isolated-vm';
|
3
4
|
export interface IIncomingIntegration extends IRocketChatRecord {
|
4
5
|
type: 'webhook-incoming';
|
5
6
|
_createdBy: Pick<IUser, 'username' | '_id'> | null;
|
@@ -18,6 +19,7 @@ export interface IIncomingIntegration extends IRocketChatRecord {
|
|
18
19
|
alias?: string;
|
19
20
|
avatar?: string;
|
20
21
|
emoji?: string;
|
22
|
+
scriptEngine?: IntegrationScriptEngine;
|
21
23
|
}
|
22
24
|
export type OutgoingIntegrationEvent = 'sendMessage' | 'fileUploaded' | 'roomArchived' | 'roomCreated' | 'roomJoined' | 'roomLeft' | 'userCreated';
|
23
25
|
export interface IOutgoingIntegration extends IRocketChatRecord {
|
@@ -47,6 +49,7 @@ export interface IOutgoingIntegration extends IRocketChatRecord {
|
|
47
49
|
alias?: string;
|
48
50
|
avatar?: string;
|
49
51
|
emoji?: string;
|
52
|
+
scriptEngine?: IntegrationScriptEngine;
|
50
53
|
}
|
51
54
|
export type IIntegration = IIncomingIntegration | IOutgoingIntegration;
|
52
55
|
export type INewIncomingIntegration = Omit<IIncomingIntegration, 'channel' | 'scriptCompiled' | 'scriptError' | '_createdBy' | '_createdAt' | 'userId' | 'token'> & {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { IMessage } from './IMessage';
|
1
2
|
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
3
|
export interface IIntegrationHistory extends IRocketChatRecord {
|
3
4
|
type: string;
|
@@ -15,10 +16,16 @@ export interface IIntegrationHistory extends IRocketChatRecord {
|
|
15
16
|
ranPrepareScript: boolean;
|
16
17
|
finished: boolean;
|
17
18
|
triggerWord?: string;
|
18
|
-
prepareSentMessage?:
|
19
|
-
|
19
|
+
prepareSentMessage?: {
|
20
|
+
channel: string;
|
21
|
+
message: Partial<IMessage>;
|
22
|
+
}[];
|
23
|
+
processSentMessage?: {
|
24
|
+
channel: string;
|
25
|
+
message: Partial<IMessage>;
|
26
|
+
}[];
|
20
27
|
url?: string;
|
21
|
-
httpCallData?: string
|
28
|
+
httpCallData?: Record<string, any>;
|
22
29
|
httpError?: any;
|
23
30
|
httpResult?: string;
|
24
31
|
error?: any;
|