@rocket.chat/core-typings 6.3.0-rc.7 → 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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @rocket.chat/core-typings
2
2
 
3
+ ## 6.3.0-rc.9
4
+
5
+ ### Minor Changes
6
+
7
+ - 48ac55f4ea: Created new endpoints for creating users in bulk
8
+
9
+ ## 6.3.0-rc.8
10
+
3
11
  ## 6.3.0-rc.7
4
12
 
5
13
  ## 6.3.0-rc.6
@@ -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 {};
@@ -27,4 +27,5 @@ export interface IModerationAudit {
27
27
  ts: IModerationReport['ts'];
28
28
  rooms: IModerationReport['room'][];
29
29
  count: number;
30
+ isUserDeleted: boolean;
30
31
  }
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: IUserEmailCode[];
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":";;;AA6LO,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"}
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"}
@@ -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: string;
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 = 'string';
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: string;
17
- title: string;
18
- fallback: string;
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;
@@ -13,4 +13,5 @@ export interface IImportUser {
13
13
  bio?: string;
14
14
  services?: Record<string, Record<string, any>>;
15
15
  customFields?: Record<string, any>;
16
+ password?: string;
16
17
  }
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IImporterSelection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IImporterSelection.js","sourceRoot":"","sources":["../../src/import/IImporterSelection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export interface IImporterSelectionChannel {
2
+ channel_id: string;
3
+ name: string | undefined;
4
+ is_archived: boolean;
5
+ do_import: boolean;
6
+ is_private: boolean;
7
+ creator: undefined;
8
+ is_direct: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IImporterSelectionChannel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IImporterSelectionChannel.js","sourceRoot":"","sources":["../../src/import/IImporterSelectionChannel.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export interface IImporterSelectionUser {
2
+ user_id: string;
3
+ username: string | undefined;
4
+ email: string;
5
+ is_deleted: boolean;
6
+ is_bot: boolean;
7
+ do_import: boolean;
8
+ is_email_taken: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IImporterSelectionUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IImporterSelectionUser.js","sourceRoot":"","sources":["../../src/import/IImporterSelectionUser.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { IImport } from './IImport';
2
+ export type ImportState = 'none' | 'new' | 'loading' | 'ready' | 'importing' | 'done' | 'error' | 'canceled';
3
+ export type ImportStatus = {
4
+ state: 'none';
5
+ } | {
6
+ state: ImportState;
7
+ operation: IImport;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ImportState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImportState.js","sourceRoot":"","sources":["../../src/import/ImportState.ts"],"names":[],"mappings":""}
@@ -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';
@@ -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
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocket.chat/core-typings",
3
- "version": "6.3.0-rc.7",
3
+ "version": "6.3.0-rc.9",
4
4
  "devDependencies": {
5
5
  "@rocket.chat/eslint-config": "^0.5.0",
6
6
  "eslint": "~8.43.0",