@rocket.chat/core-typings 6.5.0-rc.14 → 6.5.0-rc.16

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,9 @@
1
1
  # @rocket.chat/core-typings
2
2
 
3
+ ## 6.5.0-rc.16
4
+
5
+ ## 6.5.0-rc.15
6
+
3
7
  ## 6.5.0-rc.14
4
8
 
5
9
  ## 6.5.0-rc.13
package/dist/IBanner.d.ts CHANGED
@@ -5,10 +5,16 @@ export declare enum BannerPlatform {
5
5
  Web = "web",
6
6
  Mobile = "mobile"
7
7
  }
8
+ type Dictionary = {
9
+ [lng: string]: {
10
+ [key: string]: string;
11
+ };
12
+ };
8
13
  export interface IBanner extends IRocketChatRecord {
9
14
  platform: BannerPlatform[];
10
15
  expireAt: Date;
11
16
  startAt: Date;
17
+ /** @deprecated a new `selector` field should be created for filtering instead */
12
18
  roles?: string[];
13
19
  createdBy: Pick<IUser, '_id' | 'username'>;
14
20
  createdAt: Date;
@@ -16,6 +22,8 @@ export interface IBanner extends IRocketChatRecord {
16
22
  active?: boolean;
17
23
  inactivedAt?: Date;
18
24
  snapshot?: string;
25
+ dictionary?: Dictionary;
26
+ surface: 'banner' | 'modal';
19
27
  }
20
28
  export type InactiveBanner = IBanner & {
21
29
  active: false;
@@ -28,3 +36,4 @@ export interface IBannerDismiss extends IRocketChatRecord {
28
36
  dismissedAt: Date;
29
37
  dismissedBy: Pick<IUser, '_id' | 'username'>;
30
38
  }
39
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;AAIA,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,6BAAW,CAAA;IACX,mCAAiB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAmBM,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAA4B,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC;AAA1F,QAAA,gBAAgB,oBAA0E"}
1
+ {"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;AAIA,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,23 +1,6 @@
1
- import type { IRocketChatRecord } from '../IRocketChatRecord';
2
- import type * as UiKit from '../uikit';
3
- type TargetPlatform = 'web' | 'mobile';
4
- type Dictionary = {
5
- [lng: string]: {
6
- [key: string]: string;
7
- };
8
- };
9
- type Creator = 'cloud' | 'system';
10
- export interface Announcement extends IRocketChatRecord {
1
+ import type { IBanner } from '../IBanner';
2
+ export interface Announcement extends IBanner {
11
3
  selector?: {
12
4
  roles?: string[];
13
5
  };
14
- platform: TargetPlatform[];
15
- expireAt: Date;
16
- startAt: Date;
17
- createdBy: Creator;
18
- createdAt: Date;
19
- dictionary?: Dictionary;
20
- view: UiKit.View;
21
- surface: 'banner' | 'modal';
22
6
  }
23
- export {};
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/naming-convention */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=Announcement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":";AAAA,yDAAyD"}
1
+ {"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ import type { UiKit } from '..';
1
2
  import type { IBanner } from '../IBanner';
2
3
  import type { Announcement } from './Announcement';
3
4
  import type { NpsSurveyAnnouncement } from './NpsSurveyAnnouncement';
@@ -41,6 +42,7 @@ export interface WorkspaceSyncResponse {
41
42
  workspaceId: string;
42
43
  publicKey: string;
43
44
  license: unknown;
45
+ removeLicense?: boolean;
44
46
  }
45
47
  export interface WorkspaceCommsRequestPayload {
46
48
  npsEnabled: boolean;
@@ -55,3 +57,7 @@ export interface WorkspaceCommsResponsePayload {
55
57
  delete: Announcement['_id'][];
56
58
  };
57
59
  }
60
+ export interface WorkspaceInteractionResponsePayload {
61
+ serverInteraction: UiKit.ServerInteraction;
62
+ serverAction?: 'syncWorkspace';
63
+ }
@@ -1,4 +1,4 @@
1
1
  export { Announcement } from './Announcement';
2
2
  export { NpsSurveyAnnouncement } from './NpsSurveyAnnouncement';
3
3
  export { WorkspaceLicensePayload } from './WorkspaceLicensePayload';
4
- export { WorkspaceSyncPayload, WorkspaceSyncRequestPayload, WorkspaceSyncResponse, WorkspaceCommsRequestPayload, WorkspaceCommsResponsePayload, } from './WorkspaceSyncPayload';
4
+ export { WorkspaceSyncPayload, WorkspaceSyncRequestPayload, WorkspaceSyncResponse, WorkspaceCommsRequestPayload, WorkspaceCommsResponsePayload, WorkspaceInteractionResponsePayload, } from './WorkspaceSyncPayload';
@@ -17,6 +17,7 @@ type CloseModalServerInteraction = {
17
17
  type: 'modal.close';
18
18
  triggerId: string;
19
19
  appId: string;
20
+ viewId: ModalView['id'];
20
21
  };
21
22
  type OpenBannerServerInteraction = {
22
23
  type: 'banner.open';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@rocket.chat/core-typings",
4
- "version": "6.5.0-rc.14",
4
+ "version": "6.5.0-rc.16",
5
5
  "devDependencies": {
6
6
  "@rocket.chat/eslint-config": "^0.6.0",
7
7
  "eslint": "~8.45.0",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@rocket.chat/apps-engine": "1.41.0",
26
26
  "@rocket.chat/icons": "~0.32.0",
27
- "@rocket.chat/message-parser": "~0.31.26",
27
+ "@rocket.chat/message-parser": "~0.31.27",
28
28
  "@rocket.chat/ui-kit": "~0.32.1"
29
29
  },
30
30
  "volta": {