@rocket.chat/core-typings 6.5.2 → 6.6.0-rc.0
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 +13 -0
- package/dist/IBanner.d.ts +1 -1
- package/dist/IBanner.js.map +1 -1
- package/dist/ICustomOAuthConfig.d.ts +2 -1
- package/dist/ICustomUserStatus.d.ts +3 -4
- package/dist/ILivechatAgent.d.ts +1 -1
- package/dist/ILoginServiceConfiguration.d.ts +93 -1
- package/dist/IMessage/IMessage.d.ts +10 -12
- package/dist/IMessage/IMessage.js +1 -3
- package/dist/IMessage/IMessage.js.map +1 -1
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.d.ts +8 -2
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.js.map +1 -1
- package/dist/IMessage/MessageAttachment/MessageAttachment.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.d.ts +1 -0
- package/dist/IRoom.d.ts +5 -0
- package/dist/IRoom.js.map +1 -1
- package/dist/IUpload.d.ts +4 -0
- package/dist/IUser.d.ts +1 -0
- package/dist/IUser.js.map +1 -1
- package/dist/IWebdavAccount.d.ts +2 -2
- package/dist/cloud/WorkspaceSyncPayload.d.ts +1 -1
- package/dist/import/IImporterInfo.d.ts +4 -0
- package/dist/{uikit/BannerView.js → import/IImporterInfo.js} +1 -1
- package/dist/import/IImporterInfo.js.map +1 -0
- package/dist/import/index.d.ts +1 -0
- package/dist/import/index.js +1 -0
- package/dist/import/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/omnichannel/routing.d.ts +3 -0
- package/dist/omnichannel/sms.js.map +1 -1
- package/package.json +7 -7
- package/dist/uikit/BannerView.d.ts +0 -14
- package/dist/uikit/BannerView.js.map +0 -1
- package/dist/uikit/ContextualBarView.d.ts +0 -12
- package/dist/uikit/ContextualBarView.js +0 -3
- package/dist/uikit/ContextualBarView.js.map +0 -1
- package/dist/uikit/ModalView.d.ts +0 -13
- package/dist/uikit/ModalView.js +0 -3
- package/dist/uikit/ModalView.js.map +0 -1
- package/dist/uikit/ServerInteraction.d.ts +0 -67
- package/dist/uikit/ServerInteraction.js +0 -3
- package/dist/uikit/ServerInteraction.js.map +0 -1
- package/dist/uikit/UserInteraction.d.ts +0 -113
- package/dist/uikit/UserInteraction.js +0 -3
- package/dist/uikit/UserInteraction.js.map +0 -1
- package/dist/uikit/View.d.ts +0 -8
- package/dist/uikit/View.js +0 -3
- package/dist/uikit/View.js.map +0 -1
- package/dist/uikit/index.d.ts +0 -7
- package/dist/uikit/index.js +0 -18
- package/dist/uikit/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @rocket.chat/core-typings
|
2
2
|
|
3
|
+
## 6.6.0-rc.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- b223cbde14: feat(uikit): Move `@rocket.chat/ui-kit` package to the main monorepo
|
8
|
+
- dbb08ef948: feat: Implemented InlineCode handling in Bold, Italic and Strike
|
9
|
+
- fdd9852079: Added `chat.getURLPreview` endpoint to enable users to retrieve previews for URL (ready to be provided in message send/update)
|
10
|
+
- b4b2cd20a8: Fixed an issue caused by the `Fallback Forward Department` feature. Feature could be configured by admins in a way that mimis a loop, causing a chat to be forwarded "infinitely" between those departments. System will now prevent Self & 1-level deep circular references from being saved, and a new setting is added to control the maximum number of hops that the system will do between fallback departments before considering a transfer failure.
|
11
|
+
- Updated dependencies [b223cbde14]
|
12
|
+
- @rocket.chat/ui-kit@0.33.0-rc.0
|
13
|
+
|
14
|
+
## 6.5.3
|
15
|
+
|
3
16
|
## 6.5.2
|
4
17
|
|
5
18
|
## 6.5.1
|
package/dist/IBanner.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
import type * as UiKit from '@rocket.chat/ui-kit';
|
1
2
|
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
3
|
import type { IUser } from './IUser';
|
3
|
-
import type * as UiKit from './uikit';
|
4
4
|
export declare enum BannerPlatform {
|
5
5
|
Web = "web",
|
6
6
|
Mobile = "mobile"
|
package/dist/IBanner.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;AAKA,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,6BAAW,CAAA;IACX,mCAAiB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AA8BM,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAA4B,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC;AAA1F,QAAA,gBAAgB,oBAA0E"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export type OauthConfig = {
|
2
2
|
serverURL?: string;
|
3
3
|
identityPath?: string;
|
4
|
-
addAutopublishFields
|
4
|
+
addAutopublishFields?: {
|
5
5
|
forLoggedInUser: string[];
|
6
6
|
forOtherUsers: string[];
|
7
7
|
};
|
@@ -13,4 +13,5 @@ export type OauthConfig = {
|
|
13
13
|
tokenSentVia?: string;
|
14
14
|
usernameField?: string;
|
15
15
|
mergeUsers?: boolean;
|
16
|
+
responseType?: string;
|
16
17
|
};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import type {
|
2
|
-
export interface ICustomUserStatus extends
|
3
|
-
|
4
|
-
statusType: string;
|
1
|
+
import type { IUserStatus } from './IUserStatus';
|
2
|
+
export interface ICustomUserStatus extends IUserStatus {
|
3
|
+
_updatedAt?: Date;
|
5
4
|
}
|
package/dist/ILivechatAgent.d.ts
CHANGED
@@ -1,6 +1,98 @@
|
|
1
1
|
export interface ILoginServiceConfiguration {
|
2
2
|
_id: string;
|
3
3
|
service: string;
|
4
|
+
}
|
5
|
+
export type OAuthConfiguration = {
|
6
|
+
custom: boolean;
|
4
7
|
clientId: string;
|
5
8
|
secret: string;
|
6
|
-
|
9
|
+
serverURL: string;
|
10
|
+
tokenPath: string;
|
11
|
+
identityPath: string;
|
12
|
+
authorizePath: string;
|
13
|
+
scope: string;
|
14
|
+
accessTokenParam: string;
|
15
|
+
buttonLabelText: string;
|
16
|
+
buttonLabelColor: string;
|
17
|
+
loginStyle: '' | 'redirect' | 'popup';
|
18
|
+
buttonColor: string;
|
19
|
+
tokenSentVia: 'header' | 'payload';
|
20
|
+
identityTokenSentVia: 'default' | 'header' | 'payload';
|
21
|
+
keyField: 'username' | 'email';
|
22
|
+
usernameField: string;
|
23
|
+
emailField: string;
|
24
|
+
nameField: string;
|
25
|
+
avatarField: string;
|
26
|
+
rolesClaim: string;
|
27
|
+
groupsClaim: string;
|
28
|
+
channelsMap: string;
|
29
|
+
channelsAdmin: string;
|
30
|
+
mergeUsers: boolean;
|
31
|
+
mergeUsersDistinctServices: boolean;
|
32
|
+
mapChannels: boolean;
|
33
|
+
mergeRoles: boolean;
|
34
|
+
rolesToSync: string;
|
35
|
+
showButton: boolean;
|
36
|
+
};
|
37
|
+
export type FacebookOAuthConfiguration = Omit<Partial<OAuthConfiguration>, 'clientId'> & {
|
38
|
+
appId: OAuthConfiguration['clientId'];
|
39
|
+
};
|
40
|
+
export type TwitterOAuthConfiguration = Omit<Partial<OAuthConfiguration>, 'clientId'> & {
|
41
|
+
consumerKey: OAuthConfiguration['clientId'];
|
42
|
+
};
|
43
|
+
export type LinkedinOAuthConfiguration = Partial<OAuthConfiguration> & {
|
44
|
+
clientConfig: {
|
45
|
+
requestPermissions?: string[];
|
46
|
+
};
|
47
|
+
};
|
48
|
+
export type CASConfiguration = {
|
49
|
+
enabled: boolean;
|
50
|
+
base_url: string;
|
51
|
+
login_url: string;
|
52
|
+
buttonLabelText: string;
|
53
|
+
buttonLabelColor: string;
|
54
|
+
buttonColor: string;
|
55
|
+
width: number;
|
56
|
+
height: number;
|
57
|
+
autoclose: boolean;
|
58
|
+
};
|
59
|
+
export type SAMLConfiguration = {
|
60
|
+
buttonLabelText: string;
|
61
|
+
buttonLabelColor: string;
|
62
|
+
buttonColor: string;
|
63
|
+
clientConfig: {
|
64
|
+
provider?: string;
|
65
|
+
};
|
66
|
+
entryPoint: string;
|
67
|
+
idpSLORedirectURL: string;
|
68
|
+
usernameNormalize: 'None' | 'Lowercase';
|
69
|
+
immutableProperty: 'Username' | 'EMail';
|
70
|
+
generateUsername: boolean;
|
71
|
+
debug: boolean;
|
72
|
+
nameOverwrite: boolean;
|
73
|
+
mailOverwrite: boolean;
|
74
|
+
issuer: string;
|
75
|
+
logoutBehaviour: 'SAML' | 'Local';
|
76
|
+
defaultUserRole: string;
|
77
|
+
secret: {
|
78
|
+
privateKey: string;
|
79
|
+
publicCert: string;
|
80
|
+
cert: string;
|
81
|
+
};
|
82
|
+
signatureValidationType: 'All' | 'Response' | 'Assertion' | 'Either';
|
83
|
+
userDataFieldMap: string;
|
84
|
+
allowedClockDrift: number;
|
85
|
+
channelsAttributeUpdate: boolean;
|
86
|
+
includePrivateChannelsInUpdate: boolean;
|
87
|
+
customAuthnContext: string;
|
88
|
+
authnContextComparison: 'better' | 'exact' | 'maximum' | 'minimum';
|
89
|
+
identifierFormat: string;
|
90
|
+
nameIDPolicyTemplate: string;
|
91
|
+
authnContextTemplate: string;
|
92
|
+
authRequestTemplate: string;
|
93
|
+
logoutResponseTemplate: string;
|
94
|
+
logoutRequestTemplate: string;
|
95
|
+
metadataCertificateTemplate: string;
|
96
|
+
metadataTemplate: string;
|
97
|
+
};
|
98
|
+
export type LoginServiceConfiguration = ILoginServiceConfiguration & (Partial<OAuthConfiguration> | Partial<FacebookOAuthConfiguration> | Partial<TwitterOAuthConfiguration> | Partial<LinkedinOAuthConfiguration> | Partial<CASConfiguration> | Partial<SAMLConfiguration>);
|
@@ -11,18 +11,13 @@ import type { IRoom, RoomID } from '../IRoom';
|
|
11
11
|
import type { IUser } from '../IUser';
|
12
12
|
import type { FileProp } from './MessageAttachment/Files/FileProp';
|
13
13
|
import type { MessageAttachment } from './MessageAttachment/MessageAttachment';
|
14
|
-
type
|
15
|
-
type MessageUrl = {
|
14
|
+
export type MessageUrl = {
|
16
15
|
url: string;
|
17
16
|
source?: string;
|
18
17
|
meta: Record<string, string>;
|
19
18
|
headers?: {
|
20
|
-
contentLength
|
21
|
-
|
22
|
-
contentType: string;
|
23
|
-
} | {
|
24
|
-
contentLength: string;
|
25
|
-
contentType: string;
|
19
|
+
contentLength?: string;
|
20
|
+
contentType?: string;
|
26
21
|
};
|
27
22
|
ignoreParse?: boolean;
|
28
23
|
parsedUrl?: Pick<UrlWithStringQuery, 'host' | 'hash' | 'pathname' | 'protocol' | 'port' | 'query' | 'search' | 'hostname'>;
|
@@ -45,15 +40,19 @@ export type TokenExtra = {
|
|
45
40
|
highlight?: boolean;
|
46
41
|
noHtml?: string;
|
47
42
|
};
|
43
|
+
export type MessageMention = {
|
44
|
+
type?: 'user' | 'team';
|
45
|
+
_id: string;
|
46
|
+
name?: string;
|
47
|
+
username?: string;
|
48
|
+
};
|
48
49
|
export interface IMessage extends IRocketChatRecord {
|
49
50
|
rid: RoomID;
|
50
51
|
msg: string;
|
51
52
|
tmid?: string;
|
52
53
|
tshow?: boolean;
|
53
54
|
ts: Date;
|
54
|
-
mentions?:
|
55
|
-
type: MentionType;
|
56
|
-
} & Pick<IUser, '_id' | 'username' | 'name'>)[];
|
55
|
+
mentions?: MessageMention[];
|
57
56
|
groupable?: boolean;
|
58
57
|
channels?: Pick<IRoom, '_id' | 'name'>[];
|
59
58
|
u: Required<Pick<IUser, '_id' | 'username'>> & Pick<IUser, 'name'>;
|
@@ -178,7 +177,6 @@ export interface IMessageReactionsNormalized extends IMessage {
|
|
178
177
|
};
|
179
178
|
};
|
180
179
|
}
|
181
|
-
export declare const isMessageReactionsNormalized: (message: IMessage) => message is IMessageReactionsNormalized;
|
182
180
|
export interface IOmnichannelSystemMessage extends IMessage {
|
183
181
|
navigation?: {
|
184
182
|
page: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isVideoConfMessage = exports.isOTRAckMessage = exports.isOTRMessage = exports.isE2EEMessage = exports.isVoipMessage = exports.isIMessageInbox = exports.isMessageDiscussion = exports.
|
3
|
+
exports.isVideoConfMessage = exports.isOTRAckMessage = exports.isOTRMessage = exports.isE2EEMessage = exports.isVoipMessage = exports.isIMessageInbox = exports.isMessageDiscussion = exports.isPrivateMessage = exports.isDiscussionMessage = exports.isThreadMessage = exports.isThreadMainMessage = exports.isTranslatedMessage = exports.isMessageFromMatrixFederation = exports.isDeletedMessage = exports.isEditedMessage = void 0;
|
4
4
|
const isEditedMessage = (message) => 'editedAt' in message &&
|
5
5
|
message.editedAt instanceof Date &&
|
6
6
|
'editedBy' in message &&
|
@@ -23,8 +23,6 @@ const isDiscussionMessage = (message) => !!message.drid;
|
|
23
23
|
exports.isDiscussionMessage = isDiscussionMessage;
|
24
24
|
const isPrivateMessage = (message) => !!message.private;
|
25
25
|
exports.isPrivateMessage = isPrivateMessage;
|
26
|
-
const isMessageReactionsNormalized = (message) => Boolean('reactions' in message && message.reactions && message.reactions[0] && 'names' in message.reactions[0]);
|
27
|
-
exports.isMessageReactionsNormalized = isMessageReactionsNormalized;
|
28
26
|
const isMessageDiscussion = (message) => {
|
29
27
|
return 'drid' in message;
|
30
28
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IMessage.js","sourceRoot":"","sources":["../../src/IMessage/IMessage.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"IMessage.js","sourceRoot":"","sources":["../../src/IMessage/IMessage.ts"],"names":[],"mappings":";;;AAuOO,MAAM,eAAe,GAAG,CAAC,OAAiB,EAA6B,EAAE,CAC/E,UAAU,IAAI,OAAO;IACpB,OAAkC,CAAC,QAAQ,YAAY,I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,CAAC,OAAiB,EAAiC,EAAE;IACvF,OAAO,MAAM,IAAI,OAAO,CAAC;AAC1B,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAWK,MAAM,eAAe,GAAG,CAAC,OAAiB,EAA4B,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC;AAAtF,QAAA,eAAe,mBAAuE;AAC5F,MAAM,aAAa,GAAG,CAAC,OAAiB,EAA2B,EAAE,CAAC,UAAU,IAAI,OAAO,CAAC;AAAtF,QAAA,aAAa,iBAAyE;AAoB5F,MAAM,aAAa,GAAG,CAAC,OAAiB,EAA2B,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC;AAApF,QAAA,aAAa,iBAAuE;AAC1F,MAAM,YAAY,GAAG,CAAC,OAAiB,EAA0B,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC;AAAlF,QAAA,YAAY,gBAAsE;AACxF,MAAM,eAAe,GAAG,CAAC,OAAiB,EAA6B,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,SAAS,CAAC;AAA5F,QAAA,eAAe,mBAA6E;AAClG,MAAM,kBAAkB,GAAG,CAAC,OAAiB,EAAgC,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,WAAW,CAAC;AAApG,QAAA,kBAAkB,sBAAkF"}
|
@@ -2,7 +2,13 @@ import type { MessageAttachmentBase } from '../MessageAttachmentBase';
|
|
2
2
|
import type { AudioAttachmentProps } from './AudioAttachmentProps';
|
3
3
|
import type { ImageAttachmentProps } from './ImageAttachmentProps';
|
4
4
|
import type { VideoAttachmentProps } from './VideoAttachmentProps';
|
5
|
-
export type FileAttachmentProps = {
|
5
|
+
export type FileAttachmentProps = ({
|
6
6
|
type: 'file';
|
7
|
-
} &
|
7
|
+
} & VideoAttachmentProps) | ({
|
8
|
+
type: 'file';
|
9
|
+
} & ImageAttachmentProps) | ({
|
10
|
+
type: 'file';
|
11
|
+
} & AudioAttachmentProps) | ({
|
12
|
+
type: 'file';
|
13
|
+
} & MessageAttachmentBase);
|
8
14
|
export declare const isFileAttachment: (attachment: MessageAttachmentBase) => attachment is FileAttachmentProps;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FileAttachmentProps.js","sourceRoot":"","sources":["../../../../src/IMessage/MessageAttachment/Files/FileAttachmentProps.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"FileAttachmentProps.js","sourceRoot":"","sources":["../../../../src/IMessage/MessageAttachment/Files/FileAttachmentProps.ts"],"names":[],"mappings":";;;AAWO,MAAM,gBAAgB,GAAG,CAAC,UAAiC,EAAqC,EAAE,CACxG,MAAM,IAAI,UAAU,IAAK,UAAkB,CAAC,IAAI,KAAK,MAAM,CAAC;AADhD,QAAA,gBAAgB,oBACgC"}
|
@@ -1,5 +1,10 @@
|
|
1
|
+
import type { FileProp } from './Files';
|
1
2
|
import type { FileAttachmentProps } from './Files/FileAttachmentProps';
|
2
3
|
import type { MessageAttachmentAction } from './MessageAttachmentAction';
|
3
4
|
import type { MessageAttachmentDefault } from './MessageAttachmentDefault';
|
4
5
|
import type { MessageQuoteAttachment } from './MessageQuoteAttachment';
|
5
6
|
export type MessageAttachment = MessageAttachmentAction | MessageAttachmentDefault | FileAttachmentProps | MessageQuoteAttachment;
|
7
|
+
export type FilesAndAttachments = {
|
8
|
+
files: FileProp[];
|
9
|
+
attachments: MessageAttachment[];
|
10
|
+
};
|
package/dist/IRoom.d.ts
CHANGED
package/dist/IRoom.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IRoom.js","sourceRoot":"","sources":["../src/IRoom.ts"],"names":[],"mappings":";;;AAmGO,MAAM,kBAAkB,GAAG,CAAC,IAAoB,EAA6B,EAAE,CACrF,kBAAkB,IAAI,IAAI,IAAK,IAAY,CAAC,gBAAgB,KAAK,IAAI,CAAC;AAD1D,QAAA,kBAAkB,sBACwC;AAWhE,MAAM,eAAe,GAAG,CAAC,IAAoB,EAA0B,EAAE,CA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,CAAC,KAAK,GAAG,CAAC;AAAxE,QAAA,UAAU,cAA8D;AAE9E,MAAM,8BAA8B,GAAG,CAAC,IAAW,EAAyC,EAAE;IACpG,IAAI,CAAC,IAAA,yBAAiB,EAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,qBAAqB,CAAC,GAAG,CAAC;AACxD,CAAC,CAAC;AANW,QAAA,8BAA8B,kCAMzC"}
|
package/dist/IUpload.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { IUser } from './IUser';
|
1
2
|
export interface IUpload {
|
2
3
|
_id: string;
|
3
4
|
typeGroup?: string;
|
@@ -47,3 +48,6 @@ export interface IUpload {
|
|
47
48
|
path: string;
|
48
49
|
};
|
49
50
|
}
|
51
|
+
export type IUploadWithUser = IUpload & {
|
52
|
+
user?: Pick<IUser, '_id' | 'name' | 'username'>;
|
53
|
+
};
|
package/dist/IUser.d.ts
CHANGED
package/dist/IUser.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;AAgMO,MAAM,cAAc,GAAG,CAAC,IAAW,EAAyB,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;AAAhH,QAAA,cAAc,kBAAkG;AACtH,MAAM,eAAe,GAAG,CAAC,IAAoB,EAAE,EAAE,CAAC,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC;AAA3F,QAAA,eAAe,mBAA4E"}
|
package/dist/IWebdavAccount.d.ts
CHANGED
@@ -2,12 +2,12 @@ import type { IRocketChatRecord } from './IRocketChatRecord';
|
|
2
2
|
export interface IWebdavAccount extends IRocketChatRecord {
|
3
3
|
userId: string;
|
4
4
|
serverURL: string;
|
5
|
-
username
|
5
|
+
username: string;
|
6
6
|
password?: string;
|
7
7
|
name: string;
|
8
8
|
}
|
9
9
|
export type IWebdavAccountIntegration = Pick<IWebdavAccount, '_id' | 'username' | 'serverURL' | 'name'>;
|
10
|
-
export type IWebdavAccountPayload = Pick<IWebdavAccount, 'serverURL' | '
|
10
|
+
export type IWebdavAccountPayload = Pick<IWebdavAccount, 'serverURL' | 'password' | 'name'> & Partial<Pick<IWebdavAccount, 'username'>>;
|
11
11
|
export type IWebdavNode = {
|
12
12
|
basename: string;
|
13
13
|
etag: string | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IImporterInfo.js","sourceRoot":"","sources":["../../src/import/IImporterInfo.ts"],"names":[],"mappings":""}
|
package/dist/import/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ export * from './IImportUser';
|
|
3
3
|
export * from './IImportRecord';
|
4
4
|
export * from './IImportMessage';
|
5
5
|
export * from './IImportChannel';
|
6
|
+
export * from './IImporterInfo';
|
6
7
|
export * from './IImportFileData';
|
7
8
|
export * from './IImportProgress';
|
8
9
|
export * from './IImporterSelection';
|
package/dist/import/index.js
CHANGED
@@ -19,6 +19,7 @@ __exportStar(require("./IImportUser"), exports);
|
|
19
19
|
__exportStar(require("./IImportRecord"), exports);
|
20
20
|
__exportStar(require("./IImportMessage"), exports);
|
21
21
|
__exportStar(require("./IImportChannel"), exports);
|
22
|
+
__exportStar(require("./IImporterInfo"), exports);
|
22
23
|
__exportStar(require("./IImportFileData"), exports);
|
23
24
|
__exportStar(require("./IImportProgress"), exports);
|
24
25
|
__exportStar(require("./IImporterSelection"), exports);
|
package/dist/import/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/import/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC;AAClC,oDAAkC;AAClC,uDAAqC;AACrC,2DAAyC;AACzC,8DAA4C;AAC5C,gDAA8B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/import/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,kDAAgC;AAChC,oDAAkC;AAClC,oDAAkC;AAClC,uDAAqC;AACrC,2DAAyC;AACzC,8DAA4C;AAC5C,gDAA8B"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.Cloud = void 0;
|
30
30
|
__exportStar(require("./Apps"), exports);
|
31
31
|
__exportStar(require("./AppOverview"), exports);
|
32
32
|
__exportStar(require("./FeaturedApps"), exports);
|
@@ -150,5 +150,4 @@ __exportStar(require("./ICustomOAuthConfig"), exports);
|
|
150
150
|
__exportStar(require("./IModerationReport"), exports);
|
151
151
|
__exportStar(require("./CustomFieldMetadata"), exports);
|
152
152
|
exports.Cloud = __importStar(require("./cloud"));
|
153
|
-
exports.UiKit = __importStar(require("./uikit"));
|
154
153
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC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;
|
35
35
|
scope?: 'agent' | 'department' | 'queue' | 'autoTransferUnansweredChatsToAgent' | 'autoTransferUnansweredChatsToQueue';
|
36
36
|
comment?: string;
|
37
|
+
hops?: number;
|
38
|
+
usingFallbackDep?: boolean;
|
39
|
+
originalDepartmentName?: string;
|
37
40
|
};
|
38
41
|
export type TransferByData = {
|
39
42
|
_id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/omnichannel/sms.ts"],"names":[],"mappings":";;;AA8CO,MAAM,aAAa,GAAG,CAAC,IAAa,EAAuB,EAAE;IACnE,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;
|
1
|
+
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/omnichannel/sms.ts"],"names":[],"mappings":";;;AA8CO,MAAM,aAAa,GAAG,CAAC,IAAa,EAAuB,EAAE;IACnE,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,IAA+B,CAAC;IAE3D,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC;AACvF,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
3
3
|
"name": "@rocket.chat/core-typings",
|
4
|
-
"version": "6.
|
4
|
+
"version": "6.6.0-rc.0",
|
5
5
|
"devDependencies": {
|
6
|
-
"@rocket.chat/eslint-config": "^0.6.0",
|
6
|
+
"@rocket.chat/eslint-config": "^0.6.1-rc.0",
|
7
7
|
"eslint": "~8.45.0",
|
8
|
-
"mongodb": "^4.17.
|
8
|
+
"mongodb": "^4.17.2",
|
9
9
|
"prettier": "~2.8.8",
|
10
|
-
"typescript": "~5.
|
10
|
+
"typescript": "~5.3.2"
|
11
11
|
},
|
12
12
|
"scripts": {
|
13
13
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
|
@@ -23,9 +23,9 @@
|
|
23
23
|
],
|
24
24
|
"dependencies": {
|
25
25
|
"@rocket.chat/apps-engine": "1.41.0",
|
26
|
-
"@rocket.chat/icons": "
|
27
|
-
"@rocket.chat/message-parser": "~0.31.
|
28
|
-
"@rocket.chat/ui-kit": "~0.
|
26
|
+
"@rocket.chat/icons": "^0.33.0",
|
27
|
+
"@rocket.chat/message-parser": "~0.31.28",
|
28
|
+
"@rocket.chat/ui-kit": "~0.33.0-rc.0"
|
29
29
|
},
|
30
30
|
"volta": {
|
31
31
|
"extends": "../../package.json"
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { Keys as IconName } from '@rocket.chat/icons';
|
2
|
-
import type { BannerSurfaceLayout } from '@rocket.chat/ui-kit';
|
3
|
-
import type { View } from './View';
|
4
|
-
/**
|
5
|
-
* A view that is displayed as a banner.
|
6
|
-
*/
|
7
|
-
export type BannerView = View & {
|
8
|
-
viewId: string;
|
9
|
-
inline?: boolean;
|
10
|
-
variant?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
11
|
-
icon?: IconName;
|
12
|
-
title?: string;
|
13
|
-
blocks: BannerSurfaceLayout;
|
14
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BannerView.js","sourceRoot":"","sources":["../../src/uikit/BannerView.ts"],"names":[],"mappings":""}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { ButtonElement, ContextualBarSurfaceLayout, TextObject } from '@rocket.chat/ui-kit';
|
2
|
-
import type { View } from './View';
|
3
|
-
/**
|
4
|
-
* A view that is displayed as a contextual bar.
|
5
|
-
*/
|
6
|
-
export type ContextualBarView = View & {
|
7
|
-
id: string;
|
8
|
-
title: TextObject;
|
9
|
-
close?: ButtonElement;
|
10
|
-
submit?: ButtonElement;
|
11
|
-
blocks: ContextualBarSurfaceLayout;
|
12
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ContextualBarView.js","sourceRoot":"","sources":["../../src/uikit/ContextualBarView.ts"],"names":[],"mappings":""}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { ButtonElement, ModalSurfaceLayout, TextObject } from '@rocket.chat/ui-kit';
|
2
|
-
import type { View } from './View';
|
3
|
-
/**
|
4
|
-
* A view that is displayed as a modal dialog.
|
5
|
-
*/
|
6
|
-
export type ModalView = View & {
|
7
|
-
id: string;
|
8
|
-
showIcon?: boolean;
|
9
|
-
title: TextObject;
|
10
|
-
close?: ButtonElement;
|
11
|
-
submit?: ButtonElement;
|
12
|
-
blocks: ModalSurfaceLayout;
|
13
|
-
};
|
package/dist/uikit/ModalView.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ModalView.js","sourceRoot":"","sources":["../../src/uikit/ModalView.ts"],"names":[],"mappings":""}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import type { BannerView } from './BannerView';
|
2
|
-
import type { ContextualBarView } from './ContextualBarView';
|
3
|
-
import type { ModalView } from './ModalView';
|
4
|
-
type OpenModalServerInteraction = {
|
5
|
-
type: 'modal.open';
|
6
|
-
triggerId: string;
|
7
|
-
appId: string;
|
8
|
-
view: ModalView;
|
9
|
-
};
|
10
|
-
type UpdateModalServerInteraction = {
|
11
|
-
type: 'modal.update';
|
12
|
-
triggerId: string;
|
13
|
-
appId: string;
|
14
|
-
view: ModalView;
|
15
|
-
};
|
16
|
-
type CloseModalServerInteraction = {
|
17
|
-
type: 'modal.close';
|
18
|
-
triggerId: string;
|
19
|
-
appId: string;
|
20
|
-
viewId: ModalView['id'];
|
21
|
-
};
|
22
|
-
type OpenBannerServerInteraction = {
|
23
|
-
type: 'banner.open';
|
24
|
-
triggerId: string;
|
25
|
-
appId: string;
|
26
|
-
} & BannerView;
|
27
|
-
type UpdateBannerServerInteraction = {
|
28
|
-
type: 'banner.update';
|
29
|
-
triggerId: string;
|
30
|
-
appId: string;
|
31
|
-
view: BannerView;
|
32
|
-
};
|
33
|
-
type CloseBannerServerInteraction = {
|
34
|
-
type: 'banner.close';
|
35
|
-
triggerId: string;
|
36
|
-
appId: string;
|
37
|
-
viewId: BannerView['viewId'];
|
38
|
-
};
|
39
|
-
type OpenContextualBarServerInteraction = {
|
40
|
-
type: 'contextual_bar.open';
|
41
|
-
triggerId: string;
|
42
|
-
appId: string;
|
43
|
-
view: ContextualBarView;
|
44
|
-
};
|
45
|
-
type UpdateContextualBarServerInteraction = {
|
46
|
-
type: 'contextual_bar.update';
|
47
|
-
triggerId: string;
|
48
|
-
appId: string;
|
49
|
-
view: ContextualBarView;
|
50
|
-
};
|
51
|
-
type CloseContextualBarServerInteraction = {
|
52
|
-
type: 'contextual_bar.close';
|
53
|
-
triggerId: string;
|
54
|
-
appId: string;
|
55
|
-
view: ContextualBarView;
|
56
|
-
};
|
57
|
-
type ReportErrorsServerInteraction = {
|
58
|
-
type: 'errors';
|
59
|
-
triggerId: string;
|
60
|
-
appId: string;
|
61
|
-
viewId: ModalView['id'] | BannerView['viewId'] | ContextualBarView['id'];
|
62
|
-
errors: {
|
63
|
-
[field: string]: string;
|
64
|
-
}[];
|
65
|
-
};
|
66
|
-
export type ServerInteraction = OpenModalServerInteraction | UpdateModalServerInteraction | CloseModalServerInteraction | OpenBannerServerInteraction | UpdateBannerServerInteraction | CloseBannerServerInteraction | OpenContextualBarServerInteraction | UpdateContextualBarServerInteraction | CloseContextualBarServerInteraction | ReportErrorsServerInteraction;
|
67
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ServerInteraction.js","sourceRoot":"","sources":["../../src/uikit/ServerInteraction.ts"],"names":[],"mappings":""}
|
@@ -1,113 +0,0 @@
|
|
1
|
-
import type { IMessage } from '../IMessage';
|
2
|
-
import type { IRoom } from '../IRoom';
|
3
|
-
import type { View } from './View';
|
4
|
-
export type MessageBlockActionUserInteraction = {
|
5
|
-
type: 'blockAction';
|
6
|
-
actionId: string;
|
7
|
-
payload: {
|
8
|
-
blockId: string;
|
9
|
-
value: unknown;
|
10
|
-
};
|
11
|
-
container: {
|
12
|
-
type: 'message';
|
13
|
-
id: IMessage['_id'];
|
14
|
-
};
|
15
|
-
mid: IMessage['_id'];
|
16
|
-
tmid?: IMessage['_id'];
|
17
|
-
rid: IRoom['_id'];
|
18
|
-
triggerId: string;
|
19
|
-
};
|
20
|
-
export type ViewBlockActionUserInteraction = {
|
21
|
-
type: 'blockAction';
|
22
|
-
actionId: string;
|
23
|
-
payload: {
|
24
|
-
blockId: string;
|
25
|
-
value: unknown;
|
26
|
-
};
|
27
|
-
container: {
|
28
|
-
type: 'view';
|
29
|
-
id: string;
|
30
|
-
};
|
31
|
-
triggerId: string;
|
32
|
-
};
|
33
|
-
export type ViewClosedUserInteraction = {
|
34
|
-
type: 'viewClosed';
|
35
|
-
payload: {
|
36
|
-
viewId: string;
|
37
|
-
view: View & {
|
38
|
-
id: string;
|
39
|
-
state: {
|
40
|
-
[blockId: string]: {
|
41
|
-
[key: string]: unknown;
|
42
|
-
};
|
43
|
-
};
|
44
|
-
};
|
45
|
-
isCleared?: boolean;
|
46
|
-
};
|
47
|
-
triggerId: string;
|
48
|
-
};
|
49
|
-
export type ViewSubmitUserInteraction = {
|
50
|
-
type: 'viewSubmit';
|
51
|
-
actionId?: undefined;
|
52
|
-
payload: {
|
53
|
-
view: View & {
|
54
|
-
id: string;
|
55
|
-
state: {
|
56
|
-
[blockId: string]: {
|
57
|
-
[key: string]: unknown;
|
58
|
-
};
|
59
|
-
};
|
60
|
-
};
|
61
|
-
};
|
62
|
-
triggerId: string;
|
63
|
-
viewId: string;
|
64
|
-
};
|
65
|
-
export type MessageBoxActionButtonUserInteraction = {
|
66
|
-
type: 'actionButton';
|
67
|
-
actionId: string;
|
68
|
-
payload: {
|
69
|
-
context: 'messageBoxAction';
|
70
|
-
message: string;
|
71
|
-
};
|
72
|
-
mid?: undefined;
|
73
|
-
tmid?: IMessage['_id'];
|
74
|
-
rid: IRoom['_id'];
|
75
|
-
triggerId: string;
|
76
|
-
};
|
77
|
-
export type UserDropdownActionButtonUserInteraction = {
|
78
|
-
type: 'actionButton';
|
79
|
-
actionId: string;
|
80
|
-
payload: {
|
81
|
-
context: 'userDropdownAction';
|
82
|
-
message?: undefined;
|
83
|
-
};
|
84
|
-
mid?: undefined;
|
85
|
-
tmid?: undefined;
|
86
|
-
rid?: undefined;
|
87
|
-
triggerId: string;
|
88
|
-
};
|
89
|
-
export type MesssageActionButtonUserInteraction = {
|
90
|
-
type: 'actionButton';
|
91
|
-
actionId: string;
|
92
|
-
payload: {
|
93
|
-
context: 'messageAction';
|
94
|
-
message?: undefined;
|
95
|
-
};
|
96
|
-
mid: IMessage['_id'];
|
97
|
-
tmid?: IMessage['_id'];
|
98
|
-
rid: IRoom['_id'];
|
99
|
-
triggerId: string;
|
100
|
-
};
|
101
|
-
export type RoomActionButtonUserInteraction = {
|
102
|
-
type: 'actionButton';
|
103
|
-
actionId: string;
|
104
|
-
payload: {
|
105
|
-
context: 'roomAction';
|
106
|
-
message?: undefined;
|
107
|
-
};
|
108
|
-
mid?: undefined;
|
109
|
-
tmid?: undefined;
|
110
|
-
rid: IRoom['_id'];
|
111
|
-
triggerId: string;
|
112
|
-
};
|
113
|
-
export type UserInteraction = MessageBlockActionUserInteraction | ViewBlockActionUserInteraction | ViewClosedUserInteraction | ViewSubmitUserInteraction | MessageBoxActionButtonUserInteraction | UserDropdownActionButtonUserInteraction | MesssageActionButtonUserInteraction | RoomActionButtonUserInteraction;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UserInteraction.js","sourceRoot":"","sources":["../../src/uikit/UserInteraction.ts"],"names":[],"mappings":""}
|
package/dist/uikit/View.d.ts
DELETED
package/dist/uikit/View.js
DELETED
package/dist/uikit/View.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../src/uikit/View.ts"],"names":[],"mappings":""}
|
package/dist/uikit/index.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
export * from '@rocket.chat/ui-kit';
|
2
|
-
export type { UserInteraction, MessageBlockActionUserInteraction, ViewBlockActionUserInteraction, ViewClosedUserInteraction, ViewSubmitUserInteraction, MessageBoxActionButtonUserInteraction, UserDropdownActionButtonUserInteraction, MesssageActionButtonUserInteraction, RoomActionButtonUserInteraction, } from './UserInteraction';
|
3
|
-
export type { View } from './View';
|
4
|
-
export type { BannerView } from './BannerView';
|
5
|
-
export type { ContextualBarView } from './ContextualBarView';
|
6
|
-
export type { ModalView } from './ModalView';
|
7
|
-
export type { ServerInteraction } from './ServerInteraction';
|
package/dist/uikit/index.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("@rocket.chat/ui-kit"), exports);
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/uikit/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/uikit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|