@salesforce/lds-adapters-platform-slack-bridge 1.333.0 → 1.334.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/dist/es/es2018/platform-slack-bridge.js +2017 -872
- package/dist/es/es2018/types/src/generated/adapters/deleteSlackConversationMember.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMember.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMembers.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackRecordChannelInfo.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMembers.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/postSlackRecordChannelInfos.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/resources/deleteConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeRecord_channelsByRelatedRecordId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeRecord_channels.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +13 -4
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +12 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMemberOutputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +5 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +15 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoInputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoOutputRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +1 -1
- package/package.json +3 -3
- package/sfdc/index.js +2463 -1159
- package/src/raml/api.raml +264 -88
- package/src/raml/luvio.raml +74 -26
package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { SlackBridgeConversationInfoOutputRepresentation as SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from './SlackBridgeConversationInfoOutputRepresentation';
|
|
2
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';
|
|
3
2
|
import { SlackBridgeUserInfoOutputRepresentation as SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation } from './SlackBridgeUserInfoOutputRepresentation';
|
|
3
|
+
import { SlackBridgeConversationInfoOutputRepresentation as SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from './SlackBridgeConversationInfoOutputRepresentation';
|
|
4
4
|
import { SlackBridgeConversationHistoryOutputRepresentation as SlackBridgeConversationHistoryOutputRepresentation_SlackBridgeConversationHistoryOutputRepresentation } from './SlackBridgeConversationHistoryOutputRepresentation';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: SlackBridgeConversationOutputRepresentation, existing: SlackBridgeConversationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeConversationOutputRepresentationNormalized;
|
|
9
9
|
export interface DynamicIngestParams {
|
|
10
10
|
contextUserInfo: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
conversationInfo: $64$luvio_engine_ResourceIngest;
|
|
11
12
|
history: $64$luvio_engine_ResourceIngest;
|
|
12
13
|
userInfos: $64$luvio_engine_ResourceIngest;
|
|
13
14
|
}
|
|
@@ -15,6 +16,7 @@ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (in
|
|
|
15
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
16
17
|
export interface DynamicSelectParams {
|
|
17
18
|
contextUserInfo?: $64$luvio_engine_LinkSelection;
|
|
19
|
+
conversationInfo?: $64$luvio_engine_LinkSelection;
|
|
18
20
|
history?: $64$luvio_engine_LinkSelection;
|
|
19
21
|
userInfos?: $64$luvio_engine_LinkSelection;
|
|
20
22
|
}
|
|
@@ -37,7 +39,7 @@ export interface SlackBridgeConversationOutputRepresentationNormalized {
|
|
|
37
39
|
/** The Slack user information of the related context Salesforce User who is viewing this Conversation */
|
|
38
40
|
contextUserInfo: $64$luvio_engine_StoreLink | null;
|
|
39
41
|
/** The full information describing this conversation */
|
|
40
|
-
conversationInfo:
|
|
42
|
+
conversationInfo: $64$luvio_engine_StoreLink | null;
|
|
41
43
|
/** A segment of this conversation's message history, either part of the top-level conversation or a single message's thread of replies */
|
|
42
44
|
history: $64$luvio_engine_StoreLink;
|
|
43
45
|
/** The id of the Slack team (Workspace or Enterprise Org) where this conversation exists */
|
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 = "d4fb2fb522a777fd831f500fea806ebe";
|
|
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;
|
|
@@ -25,6 +25,14 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
25
25
|
* (none)
|
|
26
26
|
*/
|
|
27
27
|
export interface SlackBridgeMessageOutputRepresentationNormalized {
|
|
28
|
+
/** Message attachments */
|
|
29
|
+
attachments: Array<{
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
}>;
|
|
32
|
+
/** Message blocks */
|
|
33
|
+
blocks: Array<{
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}>;
|
|
28
36
|
/** List of files attached to this message */
|
|
29
37
|
files: Array<$64$luvio_engine_StoreLink>;
|
|
30
38
|
/** Does this message includes Custom emoji? */
|
|
@@ -67,6 +75,12 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
|
|
|
67
75
|
* (none)
|
|
68
76
|
*/
|
|
69
77
|
export interface SlackBridgeMessageOutputRepresentation {
|
|
78
|
+
attachments: Array<{
|
|
79
|
+
[key: string]: unknown;
|
|
80
|
+
}>;
|
|
81
|
+
blocks: Array<{
|
|
82
|
+
[key: string]: unknown;
|
|
83
|
+
}>;
|
|
70
84
|
files: Array<SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation>;
|
|
71
85
|
includesCustomEmoji: boolean | null;
|
|
72
86
|
isBroadcast: boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 = "3c1954c22e6a059a8a8b62224d337ff4";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SlackBridgeRecordChannelInfoInputRepresentation, existing: SlackBridgeRecordChannelInfoInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRecordChannelInfoInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SlackBridgeRecordChannelInfoInputRepresentationNormalized, incoming: SlackBridgeRecordChannelInfoInputRepresentationNormalized): 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: SlackBridgeRecordChannelInfoInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation of a Slack record channel
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SlackBridgeRecordChannelInfoInputRepresentationNormalized {
|
|
17
|
+
/** The conversation info associated with the record */
|
|
18
|
+
conversationInfo: {
|
|
19
|
+
/** Is this conversation private? */
|
|
20
|
+
isPrivate: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** The ID of the Salesforce record associated with the conversation */
|
|
23
|
+
relatedRecordId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Representation of a Slack record channel
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface SlackBridgeRecordChannelInfoInputRepresentation {
|
|
32
|
+
conversationInfo: {
|
|
33
|
+
isPrivate: boolean;
|
|
34
|
+
};
|
|
35
|
+
relatedRecordId: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
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, 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 } from '@luvio/engine';
|
|
2
|
+
import { SlackBridgeConversationInfoOutputRepresentation as SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from './SlackBridgeConversationInfoOutputRepresentation';
|
|
3
|
+
export declare const VERSION = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
relatedRecordId: string;
|
|
8
|
+
}
|
|
9
|
+
export type SlackBridgeRecordChannelInfoOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialSlackBridgeRecordChannelInfoOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SlackBridgeRecordChannelInfoOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackBridgeRecordChannelInfoOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackBridgeRecordChannelInfoOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: SlackBridgeRecordChannelInfoOutputRepresentation, existing: SlackBridgeRecordChannelInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRecordChannelInfoOutputRepresentationNormalized;
|
|
16
|
+
export interface DynamicIngestParams {
|
|
17
|
+
conversationInfo: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
}
|
|
19
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackBridgeRecordChannelInfoOutputRepresentation, existing: SlackBridgeRecordChannelInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackBridgeRecordChannelInfoOutputRepresentationNormalized;
|
|
20
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
21
|
+
export interface DynamicSelectParams {
|
|
22
|
+
conversationInfo?: $64$luvio_engine_LinkSelection;
|
|
23
|
+
}
|
|
24
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
25
|
+
export declare function equals(existing: SlackBridgeRecordChannelInfoOutputRepresentationNormalized, incoming: SlackBridgeRecordChannelInfoOutputRepresentationNormalized): boolean;
|
|
26
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
27
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeRecordChannelInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
28
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
29
|
+
/**
|
|
30
|
+
* Representation of a Slack record channel
|
|
31
|
+
*
|
|
32
|
+
* Keys:
|
|
33
|
+
* relatedRecordId (string): relatedRecordId
|
|
34
|
+
*/
|
|
35
|
+
export interface SlackBridgeRecordChannelInfoOutputRepresentationNormalized {
|
|
36
|
+
/** The conversation info associated with the record */
|
|
37
|
+
conversationInfo: $64$luvio_engine_StoreLink;
|
|
38
|
+
/** The ID of the Salesforce record associated with the conversation */
|
|
39
|
+
relatedRecordId: string;
|
|
40
|
+
/** The Slack ID of the Slack team */
|
|
41
|
+
teamId: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Representation of a Slack record channel
|
|
45
|
+
*
|
|
46
|
+
* Keys:
|
|
47
|
+
* relatedRecordId (string): relatedRecordId
|
|
48
|
+
*/
|
|
49
|
+
export interface SlackBridgeRecordChannelInfoOutputRepresentation {
|
|
50
|
+
conversationInfo: SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation;
|
|
51
|
+
relatedRecordId: string;
|
|
52
|
+
teamId: string;
|
|
53
|
+
}
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
|
|
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
|
-
export declare const TTL =
|
|
3
|
+
export declare const TTL = 600000;
|
|
4
4
|
export declare const VERSION = "1c89c1c8379c0e55b8f94fecd03d8775";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-slack-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.334.0",
|
|
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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.334.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.334.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|