@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev14 → 1.380.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 +426 -91
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +9 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeRoomOutputRepresentation.d.ts +46 -0
- package/package.json +3 -3
- package/sfdc/index.js +413 -78
- package/src/raml/api.raml +42 -1
|
@@ -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 = "a35df81fd20149aae615a01f742cece5";
|
|
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 {
|
|
@@ -43,6 +43,8 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
|
|
|
43
43
|
isIm: boolean | null;
|
|
44
44
|
/** Is the context User a member of this Conversation? */
|
|
45
45
|
isMember: boolean | null;
|
|
46
|
+
/** Is this MPDM? */
|
|
47
|
+
isMpim?: boolean | null;
|
|
46
48
|
/** Is this conversation open? */
|
|
47
49
|
isOpen: boolean | null;
|
|
48
50
|
/** Is this conversation org shared? */
|
|
@@ -62,7 +64,7 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
|
|
|
62
64
|
/** The timestamp of the last message in this conversation */
|
|
63
65
|
latest?: string | null;
|
|
64
66
|
/** Name of the Conversation */
|
|
65
|
-
name: string;
|
|
67
|
+
name: string | null;
|
|
66
68
|
/** Number of members in the Conversation */
|
|
67
69
|
numOfMembers: number | null;
|
|
68
70
|
/** The properties of the conversation */
|
|
@@ -75,6 +77,8 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
|
|
|
75
77
|
unreadCountDisplay?: number | null;
|
|
76
78
|
/** The URL to the channel */
|
|
77
79
|
url?: string;
|
|
80
|
+
/** Id of user participating in a DM */
|
|
81
|
+
user?: string | null;
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
84
|
* Contains the conversation info
|
|
@@ -92,6 +96,7 @@ export interface SlackBridgeConversationInfoOutputRepresentation {
|
|
|
92
96
|
isGroup: boolean | null;
|
|
93
97
|
isIm: boolean | null;
|
|
94
98
|
isMember: boolean | null;
|
|
99
|
+
isMpim?: boolean | null;
|
|
95
100
|
isOpen: boolean | null;
|
|
96
101
|
isOrgShared: boolean | null;
|
|
97
102
|
isPendingExtShared: boolean | null;
|
|
@@ -101,11 +106,12 @@ export interface SlackBridgeConversationInfoOutputRepresentation {
|
|
|
101
106
|
isThreadOnly: boolean | null;
|
|
102
107
|
lastRead: string | null;
|
|
103
108
|
latest?: string | null;
|
|
104
|
-
name: string;
|
|
109
|
+
name: string | null;
|
|
105
110
|
numOfMembers: number | null;
|
|
106
111
|
properties?: SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation | null;
|
|
107
112
|
shouldCacheCustomEmoji: boolean | null;
|
|
108
113
|
unreadCount?: number | null;
|
|
109
114
|
unreadCountDisplay?: number | null;
|
|
110
115
|
url?: string;
|
|
116
|
+
user?: string | null;
|
|
111
117
|
}
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SlackBridgeReactionOutputRepresentation as SlackBridgeReactionOutputRepresentation_SlackBridgeReactionOutputRepresentation } from './SlackBridgeReactionOutputRepresentation';
|
|
2
|
+
import { SlackBridgeRoomOutputRepresentation as SlackBridgeRoomOutputRepresentation_SlackBridgeRoomOutputRepresentation } from './SlackBridgeRoomOutputRepresentation';
|
|
2
3
|
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
4
|
import { SlackBridgeFileOutputRepresentation as SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation } from './SlackBridgeFileOutputRepresentation';
|
|
4
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "cc3b0409eeb9f8a45956130e18c9be91";
|
|
5
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
7
|
export declare const RepresentationType: string;
|
|
7
8
|
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;
|
|
@@ -63,6 +64,7 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
|
|
|
63
64
|
replyUsers: Array<string>;
|
|
64
65
|
/** Number of users who replied to this message */
|
|
65
66
|
replyUsersCount: number | null;
|
|
67
|
+
room?: SlackBridgeRoomOutputRepresentation_SlackBridgeRoomOutputRepresentation | null;
|
|
66
68
|
/** Details of the Slack User who invited the user described by slackUserId */
|
|
67
69
|
slackInviterId: string | null;
|
|
68
70
|
/** Details of the Slack User who posted this message */
|
|
@@ -106,6 +108,7 @@ export interface SlackBridgeMessageOutputRepresentation {
|
|
|
106
108
|
replyCount: number | null;
|
|
107
109
|
replyUsers: Array<string>;
|
|
108
110
|
replyUsersCount: number | null;
|
|
111
|
+
room?: SlackBridgeRoomOutputRepresentation_SlackBridgeRoomOutputRepresentation | null;
|
|
109
112
|
slackInviterId: string | null;
|
|
110
113
|
slackUserId: string | null;
|
|
111
114
|
subtype: string | null;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "183fbca7ad14ab038244ff7883618c72";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SlackBridgeRoomOutputRepresentation, existing: SlackBridgeRoomOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRoomOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SlackBridgeRoomOutputRepresentationNormalized, incoming: SlackBridgeRoomOutputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeRoomOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Contains the details of Slack room (huddle)
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SlackBridgeRoomOutputRepresentationNormalized {
|
|
17
|
+
/** Ending date of the huddle */
|
|
18
|
+
dateEnd: number | null;
|
|
19
|
+
/** Starting date of the huddle */
|
|
20
|
+
dateStart: number;
|
|
21
|
+
/** Whether the huddle has ended */
|
|
22
|
+
hasEnded: boolean;
|
|
23
|
+
/** Link to join the huddle in Slack */
|
|
24
|
+
huddleLink: string;
|
|
25
|
+
/** Id of the room (huddle) */
|
|
26
|
+
id: string;
|
|
27
|
+
/** List of all participants who have joined */
|
|
28
|
+
participantHistory: Array<string>;
|
|
29
|
+
/** List of current participants */
|
|
30
|
+
participants: Array<string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Contains the details of Slack room (huddle)
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* (none)
|
|
37
|
+
*/
|
|
38
|
+
export interface SlackBridgeRoomOutputRepresentation {
|
|
39
|
+
dateEnd: number | null;
|
|
40
|
+
dateStart: number;
|
|
41
|
+
hasEnded: boolean;
|
|
42
|
+
huddleLink: string;
|
|
43
|
+
id: string;
|
|
44
|
+
participantHistory: Array<string>;
|
|
45
|
+
participants: Array<string>;
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-slack-bridge",
|
|
3
|
-
"version": "1.380.0-
|
|
3
|
+
"version": "1.380.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.380.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.380.0-dev16"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.380.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.380.0-dev16"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|