@bisondesk/core-sdk 1.0.48 → 1.0.49
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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare type ConversationData = {
|
|
2
|
+
conversation: Conversation;
|
|
3
|
+
messages: Message[];
|
|
4
|
+
};
|
|
5
|
+
export declare type Conversation = {
|
|
6
|
+
author: string;
|
|
7
|
+
businessEntityId: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
followers: string[];
|
|
10
|
+
id: string;
|
|
11
|
+
latestMessageAt: string;
|
|
12
|
+
recordId: string;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type Message = {
|
|
16
|
+
author: string;
|
|
17
|
+
content?: MessageContent;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
modifiedAt?: string;
|
|
20
|
+
id: string;
|
|
21
|
+
pinned?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare type MessageContent = {
|
|
24
|
+
value: string;
|
|
25
|
+
mentions: string[];
|
|
26
|
+
};
|
|
27
|
+
export declare type NewConversationRequest = {
|
|
28
|
+
businessEntityId: string;
|
|
29
|
+
content: MessageContent;
|
|
30
|
+
recordId: string;
|
|
31
|
+
title: string;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/types/conversations.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/types/conversations.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bisondesk/core-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf build dist lib *.tsbuildinfo",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Ivo Anastácio",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@bisondesk/commons-sdk": "^1.0.
|
|
14
|
+
"@bisondesk/commons-sdk": "^1.0.49",
|
|
15
15
|
"joi": "17.4.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type ConversationData = {
|
|
2
|
+
conversation: Conversation;
|
|
3
|
+
messages: Message[];
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type Conversation = {
|
|
7
|
+
author: string;
|
|
8
|
+
businessEntityId: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
followers: string[];
|
|
11
|
+
id: string;
|
|
12
|
+
latestMessageAt: string;
|
|
13
|
+
recordId: string;
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type Message = {
|
|
18
|
+
author: string;
|
|
19
|
+
content?: MessageContent;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
modifiedAt?: string;
|
|
22
|
+
id: string;
|
|
23
|
+
pinned?: boolean;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type MessageContent = {
|
|
27
|
+
value: string;
|
|
28
|
+
mentions: string[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type NewConversationRequest = {
|
|
32
|
+
businessEntityId: string;
|
|
33
|
+
content: MessageContent;
|
|
34
|
+
recordId: string;
|
|
35
|
+
title: string;
|
|
36
|
+
};
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -221,6 +221,11 @@
|
|
|
221
221
|
"signature": "9ee2b981371627ac5054881f87a966d04dbdd17a23b0777ab155c68660e653c8",
|
|
222
222
|
"affectsGlobalScope": false
|
|
223
223
|
},
|
|
224
|
+
"./src/types/conversations.ts": {
|
|
225
|
+
"version": "64f6e1c8acfb1c799b8a23c561626ff5b8821734281f6b7b825806026c5f18ac",
|
|
226
|
+
"signature": "e69c84342201dc3f03f3b6e3c279cf09238d40f600fd22a7e9454e08d01039fa",
|
|
227
|
+
"affectsGlobalScope": false
|
|
228
|
+
},
|
|
224
229
|
"../commons-sdk/lib/types.d.ts": {
|
|
225
230
|
"version": "fa2cbb94404ab29da6196fc91fc4496589b1d33042473fd5237f919677a748a6",
|
|
226
231
|
"signature": "fa2cbb94404ab29da6196fc91fc4496589b1d33042473fd5237f919677a748a6",
|
|
@@ -3009,6 +3014,7 @@
|
|
|
3009
3014
|
"../commons-sdk/lib/hyperdms.d.ts",
|
|
3010
3015
|
"../commons-sdk/lib/types.d.ts",
|
|
3011
3016
|
"./src/constants.ts",
|
|
3017
|
+
"./src/types/conversations.ts",
|
|
3012
3018
|
"./src/types/crm.ts",
|
|
3013
3019
|
"./src/types/definitions.ts",
|
|
3014
3020
|
"./src/types/events.ts",
|