@rocket.chat/core-typings 6.3.0-rc.8 → 6.3.0-rc.9
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 +6 -0
- package/dist/IMessage/IMessage.d.ts +13 -0
- package/dist/IModerationReport.d.ts +1 -0
- package/dist/IUser.d.ts +2 -1
- package/dist/IUser.js.map +1 -1
- package/dist/import/IImport.d.ts +10 -1
- package/dist/import/IImportMessage.d.ts +5 -5
- package/dist/import/IImportUser.d.ts +1 -0
- package/dist/import/IImporterSelection.d.ts +8 -0
- package/dist/import/IImporterSelection.js +3 -0
- package/dist/import/IImporterSelection.js.map +1 -0
- package/dist/import/IImporterSelectionChannel.d.ts +9 -0
- package/dist/import/IImporterSelectionChannel.js +3 -0
- package/dist/import/IImporterSelectionChannel.js.map +1 -0
- package/dist/import/IImporterSelectionUser.d.ts +9 -0
- package/dist/import/IImporterSelectionUser.js +3 -0
- package/dist/import/IImporterSelectionUser.js.map +1 -0
- package/dist/import/ImportState.d.ts +8 -0
- package/dist/import/ImportState.js +3 -0
- package/dist/import/ImportState.js.map +1 -0
- package/dist/import/index.d.ts +4 -0
- package/dist/import/index.js +4 -0
- package/dist/import/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -246,4 +246,17 @@ export type IVideoConfMessage = IMessage & {
|
|
246
246
|
export declare const isE2EEMessage: (message: IMessage) => message is IE2EEMessage;
|
247
247
|
export declare const isOTRMessage: (message: IMessage) => message is IOTRMessage;
|
248
248
|
export declare const isVideoConfMessage: (message: IMessage) => message is IVideoConfMessage;
|
249
|
+
export type IMessageWithPendingFileImport = IMessage & {
|
250
|
+
_importFile: {
|
251
|
+
downloadUrl: string;
|
252
|
+
id: string;
|
253
|
+
size: number;
|
254
|
+
name: string;
|
255
|
+
external: boolean;
|
256
|
+
source: 'slack' | 'hipchat-enterprise';
|
257
|
+
original: Record<string, any>;
|
258
|
+
rocketChatUrl?: string;
|
259
|
+
downloaded?: boolean;
|
260
|
+
};
|
261
|
+
};
|
249
262
|
export {};
|
package/dist/IUser.d.ts
CHANGED
@@ -65,7 +65,7 @@ export interface IUserServices {
|
|
65
65
|
enabled: boolean;
|
66
66
|
changedAt: Date;
|
67
67
|
};
|
68
|
-
emailCode
|
68
|
+
emailCode?: IUserEmailCode[];
|
69
69
|
saml?: {
|
70
70
|
inResponseTo?: string;
|
71
71
|
provider?: string;
|
@@ -165,6 +165,7 @@ export interface IUser extends IRocketChatRecord {
|
|
165
165
|
};
|
166
166
|
};
|
167
167
|
importIds?: string[];
|
168
|
+
_pendingAvatarUrl?: string;
|
168
169
|
}
|
169
170
|
export interface IRegisterUser extends IUser {
|
170
171
|
username: string;
|
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":";;;AA8LO,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/import/IImport.d.ts
CHANGED
@@ -1,13 +1,22 @@
|
|
1
1
|
import type { IRocketChatRecord } from '../IRocketChatRecord';
|
2
2
|
import type { IUser } from '../IUser';
|
3
|
+
import type { ProgressStep } from './IImportProgress';
|
3
4
|
export interface IImport extends IRocketChatRecord {
|
4
5
|
type: string;
|
5
6
|
importerKey: string;
|
6
7
|
ts: Date;
|
7
|
-
status:
|
8
|
+
status: ProgressStep;
|
8
9
|
valid: boolean;
|
9
10
|
user: IUser['_id'];
|
10
11
|
_updatedAt: Date;
|
11
12
|
contentType?: string;
|
12
13
|
file?: string;
|
14
|
+
count?: {
|
15
|
+
total?: number;
|
16
|
+
completed?: number;
|
17
|
+
error?: number;
|
18
|
+
users?: number;
|
19
|
+
messages?: number;
|
20
|
+
channels?: number;
|
21
|
+
};
|
13
22
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type IImportedId =
|
1
|
+
export type IImportedId = string;
|
2
2
|
export interface IImportMessageReaction {
|
3
3
|
name: string;
|
4
4
|
users: Array<IImportedId>;
|
@@ -13,9 +13,9 @@ export interface IImportPendingFile {
|
|
13
13
|
original: Record<string, any>;
|
14
14
|
}
|
15
15
|
export interface IImportAttachment extends Record<string, any> {
|
16
|
-
text
|
17
|
-
title
|
18
|
-
fallback
|
16
|
+
text?: string;
|
17
|
+
title?: string;
|
18
|
+
fallback?: string;
|
19
19
|
}
|
20
20
|
export interface IImportMessage {
|
21
21
|
_id?: IImportedId;
|
@@ -37,7 +37,7 @@ export interface IImportMessage {
|
|
37
37
|
editedBy?: IImportedId;
|
38
38
|
mentions?: Array<IImportedId>;
|
39
39
|
channels?: Array<string>;
|
40
|
-
attachments?: IImportAttachment;
|
40
|
+
attachments?: IImportAttachment[];
|
41
41
|
bot?: boolean;
|
42
42
|
emoji?: string;
|
43
43
|
url?: string;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { IImporterSelectionChannel } from './IImporterSelectionChannel';
|
2
|
+
import type { IImporterSelectionUser } from './IImporterSelectionUser';
|
3
|
+
export interface IImporterSelection {
|
4
|
+
name: string;
|
5
|
+
users: IImporterSelectionUser[];
|
6
|
+
channels: IImporterSelectionChannel[];
|
7
|
+
message_count: number;
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IImporterSelection.js","sourceRoot":"","sources":["../../src/import/IImporterSelection.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IImporterSelectionChannel.js","sourceRoot":"","sources":["../../src/import/IImporterSelectionChannel.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IImporterSelectionUser.js","sourceRoot":"","sources":["../../src/import/IImporterSelectionUser.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ImportState.js","sourceRoot":"","sources":["../../src/import/ImportState.ts"],"names":[],"mappings":""}
|
package/dist/import/index.d.ts
CHANGED
@@ -5,3 +5,7 @@ export * from './IImportMessage';
|
|
5
5
|
export * from './IImportChannel';
|
6
6
|
export * from './IImportFileData';
|
7
7
|
export * from './IImportProgress';
|
8
|
+
export * from './IImporterSelection';
|
9
|
+
export * from './IImporterSelectionUser';
|
10
|
+
export * from './IImporterSelectionChannel';
|
11
|
+
export * from './ImportState';
|
package/dist/import/index.js
CHANGED
@@ -21,4 +21,8 @@ __exportStar(require("./IImportMessage"), exports);
|
|
21
21
|
__exportStar(require("./IImportChannel"), exports);
|
22
22
|
__exportStar(require("./IImportFileData"), exports);
|
23
23
|
__exportStar(require("./IImportProgress"), exports);
|
24
|
+
__exportStar(require("./IImporterSelection"), exports);
|
25
|
+
__exportStar(require("./IImporterSelectionUser"), exports);
|
26
|
+
__exportStar(require("./IImporterSelectionChannel"), exports);
|
27
|
+
__exportStar(require("./ImportState"), exports);
|
24
28
|
//# sourceMappingURL=index.js.map
|
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"}
|
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"}
|