@rocket.chat/core-typings 6.5.0-rc.8 → 6.5.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 +50 -0
- package/dist/IBanner.d.ts +9 -0
- package/dist/IBanner.js.map +1 -1
- package/dist/cloud/Announcement.d.ts +2 -19
- package/dist/cloud/Announcement.js +0 -1
- package/dist/cloud/Announcement.js.map +1 -1
- package/dist/cloud/WorkspaceSyncPayload.d.ts +6 -0
- package/dist/cloud/index.d.ts +1 -1
- package/dist/uikit/ServerInteraction.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,55 @@
|
|
1
1
|
# @rocket.chat/core-typings
|
2
2
|
|
3
|
+
## 6.5.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- c0ef13a0bf: Added `push` statistic, containing three bits. Each bit represents a boolean:
|
8
|
+
```
|
9
|
+
1 1 1
|
10
|
+
| | |
|
11
|
+
| | +- push enabled = 0b1 = 1
|
12
|
+
| +--- push gateway enabled = 0b10 = 2
|
13
|
+
+----- push gateway changed = 0b100 = 4
|
14
|
+
```
|
15
|
+
- 92613680b7: Added option to select between two script engine options for the integrations
|
16
|
+
- ec1b2b9846: Create a deployment fingerprint to identify possible deployment changes caused by database cloning. A question to the admin will confirm if it's a regular deployment change or an intent of a new deployment and correct identification values as needed.
|
17
|
+
The fingerprint is composed by `${siteUrl}${dbConnectionString}` and hashed via `sha256` in `base64`.
|
18
|
+
An environment variable named `AUTO_ACCEPT_FINGERPRINT`, when set to `true`, can be used to auto-accept an expected fingerprint change as a regular deployment update.
|
19
|
+
- 5f81a0f3cb: Implemented the License library, it is used to handle the functionality like expiration date, modules, limits, etc.
|
20
|
+
Also added a version v3 of the license, which contains an extended list of features.
|
21
|
+
v2 is still supported, since we convert it to v3 on the fly.
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- dea1fe9191: chore: Calculate & Store MAC stats
|
26
|
+
Added new info to the stats: `omnichannelContactsBySource`, `uniqueContactsOfLastMonth`, `uniqueContactsOfLastWeek`, `uniqueContactsOfYesterday`
|
27
|
+
- 5b9d6883bf: feat: Improve UI when MAC limits are reached
|
28
|
+
feat: Limit endpoints on MAC limit reached
|
29
|
+
- dea1fe9191: feat: Disable and annonimize visitors instead of removing
|
30
|
+
|
31
|
+
## 6.5.0-rc.19
|
32
|
+
|
33
|
+
## 6.5.0-rc.18
|
34
|
+
|
35
|
+
## 6.5.0-rc.17
|
36
|
+
|
37
|
+
## 6.5.0-rc.16
|
38
|
+
|
39
|
+
## 6.5.0-rc.15
|
40
|
+
|
41
|
+
## 6.5.0-rc.14
|
42
|
+
|
43
|
+
## 6.5.0-rc.13
|
44
|
+
|
45
|
+
## 6.5.0-rc.12
|
46
|
+
|
47
|
+
## 6.5.0-rc.11
|
48
|
+
|
49
|
+
## 6.5.0-rc.10
|
50
|
+
|
51
|
+
## 6.5.0-rc.9
|
52
|
+
|
3
53
|
## 6.5.0-rc.8
|
4
54
|
|
5
55
|
## 6.5.0-rc.7
|
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 {};
|
package/dist/IBanner.js.map
CHANGED
@@ -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;
|
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 {
|
2
|
-
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":"
|
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
|
+
}
|
package/dist/cloud/index.d.ts
CHANGED
@@ -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';
|
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
|
4
|
+
"version": "6.5.0",
|
5
5
|
"devDependencies": {
|
6
6
|
"@rocket.chat/eslint-config": "^0.6.0",
|
7
7
|
"eslint": "~8.45.0",
|
@@ -22,9 +22,9 @@
|
|
22
22
|
"/dist"
|
23
23
|
],
|
24
24
|
"dependencies": {
|
25
|
-
"@rocket.chat/apps-engine": "1.41.0
|
25
|
+
"@rocket.chat/apps-engine": "1.41.0",
|
26
26
|
"@rocket.chat/icons": "~0.32.0",
|
27
|
-
"@rocket.chat/message-parser": "~0.31.
|
27
|
+
"@rocket.chat/message-parser": "~0.31.27",
|
28
28
|
"@rocket.chat/ui-kit": "~0.32.1"
|
29
29
|
},
|
30
30
|
"volta": {
|