@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev14 → 1.354.0-dev16
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/dist/es/es2018/platform-slack-bridge.js +470 -13
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeConversationMessages.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationHistoryOutputRepresentation.d.ts +12 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +12 -3
- package/package.json +3 -3
- package/sfdc/index.js +471 -14
- package/src/raml/api.raml +44 -2
|
@@ -6,6 +6,7 @@ export declare const adapterName = "getSlackConversation";
|
|
|
6
6
|
export declare const getSlackConversation_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getSlackConversation_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetSlackConversationConfig {
|
|
9
|
+
centerMessageTs?: string;
|
|
9
10
|
channelId?: string;
|
|
10
11
|
includeView?: boolean;
|
|
11
12
|
inclusive?: boolean;
|
package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeConversationMessages.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { SlackBridgeConversationOutputRepresentation as types_SlackBridgeConversationOutputRepresentation_SlackBridgeConversationOutputRepresentation } from '../types/SlackBridgeConversationOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
centerMessageTs?: string;
|
|
5
6
|
channelId?: string;
|
|
6
7
|
includeView?: boolean;
|
|
7
8
|
inclusive?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
import { SlackBridgeMessageOutputRepresentation as SlackBridgeMessageOutputRepresentation_SlackBridgeMessageOutputRepresentation } from './SlackBridgeMessageOutputRepresentation';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "d2e4c202fa58b2b21daa0de3b09fc640";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: SlackBridgeConversationHistoryOutputRepresentation, existing: SlackBridgeConversationHistoryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeConversationHistoryOutputRepresentationNormalized;
|
|
@@ -24,12 +24,18 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
24
24
|
* (none)
|
|
25
25
|
*/
|
|
26
26
|
export interface SlackBridgeConversationHistoryOutputRepresentationNormalized {
|
|
27
|
+
/** Does this conversation have more messages later than the provided center timestamp? */
|
|
28
|
+
centerHasMoreLatest?: boolean | null;
|
|
29
|
+
/** Does this conversation have more messages older than the provided center timestamp? */
|
|
30
|
+
centerHasMoreOldest?: boolean | null;
|
|
27
31
|
/** Does this conversation have more messages to retrieve? */
|
|
28
|
-
hasMore: boolean;
|
|
32
|
+
hasMore: boolean | null;
|
|
29
33
|
/** List of Slack messages */
|
|
30
34
|
messages: Array<$64$luvio_engine_StoreLink>;
|
|
31
35
|
/** Used to paginate to the next page by passing this value as the cursor parameter in a subsequent request */
|
|
32
36
|
nextCursor: string | null;
|
|
37
|
+
/** Number of messages the current user has not read and did not author */
|
|
38
|
+
unreadCountDisplay?: number | null;
|
|
33
39
|
}
|
|
34
40
|
/**
|
|
35
41
|
* Contains the details of segment of a Slack conversation's history
|
|
@@ -38,7 +44,10 @@ export interface SlackBridgeConversationHistoryOutputRepresentationNormalized {
|
|
|
38
44
|
* (none)
|
|
39
45
|
*/
|
|
40
46
|
export interface SlackBridgeConversationHistoryOutputRepresentation {
|
|
41
|
-
|
|
47
|
+
centerHasMoreLatest?: boolean | null;
|
|
48
|
+
centerHasMoreOldest?: boolean | null;
|
|
49
|
+
hasMore: boolean | null;
|
|
42
50
|
messages: Array<SlackBridgeMessageOutputRepresentation_SlackBridgeMessageOutputRepresentation>;
|
|
43
51
|
nextCursor: string | null;
|
|
52
|
+
unreadCountDisplay?: number | null;
|
|
44
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SlackBridgeConversationPropertiesOutputRepresentation as SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation } from './SlackBridgeConversationPropertiesOutputRepresentation';
|
|
2
2
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 900000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "898110c1fd3651e7f407ba56cf0ca85a";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -59,6 +59,8 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
|
|
|
59
59
|
isThreadOnly: boolean | null;
|
|
60
60
|
/** The timestamp of the last read message of this conversation by the current user */
|
|
61
61
|
lastRead: string | null;
|
|
62
|
+
/** The timestamp of the last message in this conversation */
|
|
63
|
+
latest?: string | null;
|
|
62
64
|
/** Name of the Conversation */
|
|
63
65
|
name: string;
|
|
64
66
|
/** Number of members in the Conversation */
|
|
@@ -67,6 +69,10 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
|
|
|
67
69
|
properties?: SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation | null;
|
|
68
70
|
/** Should the Custom Emojis be cached? */
|
|
69
71
|
shouldCacheCustomEmoji: boolean | null;
|
|
72
|
+
/** Number of messages the current user has not read */
|
|
73
|
+
unreadCount?: number | null;
|
|
74
|
+
/** Number of messages the current user has not read and did not author */
|
|
75
|
+
unreadCountDisplay?: number | null;
|
|
70
76
|
/** The URL to the channel */
|
|
71
77
|
url?: string;
|
|
72
78
|
}
|
|
@@ -94,9 +100,12 @@ export interface SlackBridgeConversationInfoOutputRepresentation {
|
|
|
94
100
|
isShared: boolean | null;
|
|
95
101
|
isThreadOnly: boolean | null;
|
|
96
102
|
lastRead: string | null;
|
|
103
|
+
latest?: string | null;
|
|
97
104
|
name: string;
|
|
98
105
|
numOfMembers: number | null;
|
|
99
106
|
properties?: SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation | null;
|
|
100
107
|
shouldCacheCustomEmoji: boolean | null;
|
|
108
|
+
unreadCount?: number | null;
|
|
109
|
+
unreadCountDisplay?: number | null;
|
|
101
110
|
url?: string;
|
|
102
111
|
}
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SlackBridgeReactionOutputRepresentation as SlackBridgeReactionOutputRepresentation_SlackBridgeReactionOutputRepresentation } from './SlackBridgeReactionOutputRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
import { SlackBridgeFileOutputRepresentation as SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation } from './SlackBridgeFileOutputRepresentation';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "57fae23c7ffb8f67218b25919d2c8e3c";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: SlackBridgeMessageOutputRepresentation, existing: SlackBridgeMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeMessageOutputRepresentationNormalized;
|
|
@@ -37,8 +37,12 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
|
|
|
37
37
|
channelId: string | null;
|
|
38
38
|
/** List of files attached to this message */
|
|
39
39
|
files: Array<$64$luvio_engine_StoreLink>;
|
|
40
|
+
/** Sender icon url for demo bot messages */
|
|
41
|
+
icon?: string | null;
|
|
40
42
|
/** Does this message includes Custom emoji? */
|
|
41
43
|
includesCustomEmoji: boolean | null;
|
|
44
|
+
/** Is this message older than the limit for free teams? */
|
|
45
|
+
isBeyondFreeLimit?: boolean | null;
|
|
42
46
|
/** Is this a reply also sent to the Channel? */
|
|
43
47
|
isBroadcast: boolean | null;
|
|
44
48
|
/** Can this message be edited? */
|
|
@@ -62,7 +66,7 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
|
|
|
62
66
|
/** Details of the Slack User who invited the user described by slackUserId */
|
|
63
67
|
slackInviterId: string | null;
|
|
64
68
|
/** Details of the Slack User who posted this message */
|
|
65
|
-
slackUserId: string;
|
|
69
|
+
slackUserId: string | null;
|
|
66
70
|
/** Sub-type of Message */
|
|
67
71
|
subtype: string | null;
|
|
68
72
|
/** Timestamp of the thread to which this message belong to */
|
|
@@ -71,6 +75,8 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
|
|
|
71
75
|
type: string | null;
|
|
72
76
|
/** Url for this message */
|
|
73
77
|
url: string;
|
|
78
|
+
/** Sender username for demo bot messages */
|
|
79
|
+
username?: string | null;
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
76
82
|
* Contains the details of Slack Message
|
|
@@ -87,7 +93,9 @@ export interface SlackBridgeMessageOutputRepresentation {
|
|
|
87
93
|
}>;
|
|
88
94
|
channelId: string | null;
|
|
89
95
|
files: Array<SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation>;
|
|
96
|
+
icon?: string | null;
|
|
90
97
|
includesCustomEmoji: boolean | null;
|
|
98
|
+
isBeyondFreeLimit?: boolean | null;
|
|
91
99
|
isBroadcast: boolean | null;
|
|
92
100
|
isEditable: boolean;
|
|
93
101
|
isEdited: boolean | null;
|
|
@@ -99,9 +107,10 @@ export interface SlackBridgeMessageOutputRepresentation {
|
|
|
99
107
|
replyUsers: Array<string>;
|
|
100
108
|
replyUsersCount: number | null;
|
|
101
109
|
slackInviterId: string | null;
|
|
102
|
-
slackUserId: string;
|
|
110
|
+
slackUserId: string | null;
|
|
103
111
|
subtype: string | null;
|
|
104
112
|
threadTs: string | null;
|
|
105
113
|
type: string | null;
|
|
106
114
|
url: string;
|
|
115
|
+
username?: string | null;
|
|
107
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-slack-bridge",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.0-dev16",
|
|
4
4
|
"description": "API for bridging over to Slack from Salesforce Core",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-slack-bridge.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.354.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.354.0-dev16"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev16"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|