@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev1 → 1.381.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 +540 -376
- package/dist/es/es2018/types/src/generated/adapters/openSlackConversation.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeConversationOpen.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOpenInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOpenOutputRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +1298 -1131
- package/src/raml/api.raml +112 -72
- package/src/raml/luvio.raml +16 -7
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_postConnectSlackbridgeConversationOpen_ResourceRequestConfig } from '../resources/postConnectSlackbridgeConversationOpen';
|
|
4
|
+
import { SlackBridgeConversationOpenOutputRepresentation as types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation } from '../types/SlackBridgeConversationOpenOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "openSlackConversation";
|
|
6
|
+
export declare const openSlackConversation_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const openSlackConversation_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface OpenSlackConversationConfig {
|
|
9
|
+
channel: string;
|
|
10
|
+
users: Array<string>;
|
|
11
|
+
preventCreation: boolean;
|
|
12
|
+
returnIm: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: OpenSlackConversationConfig) => resources_postConnectSlackbridgeConversationOpen_ResourceRequestConfig;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<OpenSlackConversationConfig>): adapter$45$utils_Untrusted<OpenSlackConversationConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): OpenSlackConversationConfig | null;
|
|
17
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: OpenSlackConversationConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation, any>>;
|
|
18
|
+
export declare const openSlackConversationAdapterFactory: $64$luvio_engine_AdapterFactory<OpenSlackConversationConfig, types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { getSlackConversationAdapterFactory } from '../adapters/getSlackConversation';
|
|
2
2
|
export { postSlackConversationAdapterFactory } from '../adapters/postSlackConversation';
|
|
3
|
+
export { openSlackConversationAdapterFactory } from '../adapters/openSlackConversation';
|
|
3
4
|
export { postSlackFileAdapterFactory } from '../adapters/postSlackFile';
|
|
4
5
|
export { postSlackRecordChannelInfosAdapterFactory } from '../adapters/postSlackRecordChannelInfos';
|
|
5
6
|
export { getSlackRecordChannelInfoAdapterFactory } from '../adapters/getSlackRecordChannelInfo';
|
|
@@ -24,6 +24,7 @@ declare let getSlackSearchMPIMs: any;
|
|
|
24
24
|
declare let getSlackSearchUser: any;
|
|
25
25
|
declare let getSlackUser: any;
|
|
26
26
|
declare let getSlackUserNotifyChange: any;
|
|
27
|
+
declare let openSlackConversation: any;
|
|
27
28
|
declare let patchSlackMessage: any;
|
|
28
29
|
declare let postSlackConversation: any;
|
|
29
30
|
declare let postSlackConversationMark: any;
|
|
@@ -47,4 +48,4 @@ declare let getSlackSearchEmoji_imperative: any;
|
|
|
47
48
|
declare let getSlackSearchMPIMs_imperative: any;
|
|
48
49
|
declare let getSlackSearchUser_imperative: any;
|
|
49
50
|
declare let getSlackUser_imperative: any;
|
|
50
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfos, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackDisplayLogin, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmojis, getSlackMessage, getSlackMessageNotifyChange, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackSearchConversation, getSlackSearchEmoji, getSlackSearchMPIMs, getSlackSearchUser, getSlackUser, getSlackUserNotifyChange, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos, getRelatedThreads_imperative, getSlackConversation_imperative, getSlackConversationInfo_imperative, getSlackConversationInfos_imperative, getSlackConversationMember_imperative, getSlackConversationMembers_imperative, getSlackDisplayLogin_imperative, getSlackEmoji_imperative, getSlackEmojis_imperative, getSlackMessage_imperative, getSlackRecordChannelInfo_imperative, getSlackSearchConversation_imperative, getSlackSearchEmoji_imperative, getSlackSearchMPIMs_imperative, getSlackSearchUser_imperative, getSlackUser_imperative, };
|
|
51
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfos, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackDisplayLogin, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmojis, getSlackMessage, getSlackMessageNotifyChange, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackSearchConversation, getSlackSearchEmoji, getSlackSearchMPIMs, getSlackSearchUser, getSlackUser, getSlackUserNotifyChange, openSlackConversation, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos, getRelatedThreads_imperative, getSlackConversation_imperative, getSlackConversationInfo_imperative, getSlackConversationInfos_imperative, getSlackConversationMember_imperative, getSlackConversationMembers_imperative, getSlackDisplayLogin_imperative, getSlackEmoji_imperative, getSlackEmojis_imperative, getSlackMessage_imperative, getSlackRecordChannelInfo_imperative, getSlackSearchConversation_imperative, getSlackSearchEmoji_imperative, getSlackSearchMPIMs_imperative, getSlackSearchUser_imperative, getSlackUser_imperative, };
|
package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeConversationOpen.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SlackBridgeConversationOpenOutputRepresentation as types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation } from '../types/SlackBridgeConversationOpenOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
channel: string;
|
|
6
|
+
users: Array<string>;
|
|
7
|
+
preventCreation: boolean;
|
|
8
|
+
returnIm: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SlackBridgeConversationOpenOutputRepresentation_SlackBridgeConversationOpenOutputRepresentation, any>;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOpenInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 = "7c6bc19b9e521e2a5c3f86d8924dd745";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SlackBridgeConversationOpenInputRepresentation, existing: SlackBridgeConversationOpenInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeConversationOpenInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SlackBridgeConversationOpenInputRepresentationNormalized, incoming: SlackBridgeConversationOpenInputRepresentationNormalized): 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: SlackBridgeConversationOpenInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Contains the parameters of the conversation to open
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SlackBridgeConversationOpenInputRepresentationNormalized {
|
|
17
|
+
/** Channel id of existing DM or MPDM, optional if users is specified instead */
|
|
18
|
+
channel: string;
|
|
19
|
+
/** True if we don't want to create new DM/MPDM; used to check if there's an existing DM/MPDM */
|
|
20
|
+
preventCreation: boolean;
|
|
21
|
+
/** True to return full IM channel definition in response */
|
|
22
|
+
returnIm: boolean;
|
|
23
|
+
/** List of user ids for conversation to be opened */
|
|
24
|
+
users: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Contains the parameters of the conversation to open
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SlackBridgeConversationOpenInputRepresentation {
|
|
33
|
+
channel: string;
|
|
34
|
+
preventCreation: boolean;
|
|
35
|
+
returnIm: boolean;
|
|
36
|
+
users: Array<string>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 500;
|
|
3
|
+
export declare const VERSION = "ab23daeef684a6ee9d5922f63d4a673c";
|
|
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
|
+
channelId: string;
|
|
8
|
+
}
|
|
9
|
+
export type SlackBridgeConversationOpenOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialSlackBridgeConversationOpenOutputRepresentationNormalizedKeyMetadata = 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): SlackBridgeConversationOpenOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackBridgeConversationOpenOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackBridgeConversationOpenOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: SlackBridgeConversationOpenOutputRepresentation, existing: SlackBridgeConversationOpenOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeConversationOpenOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: SlackBridgeConversationOpenOutputRepresentationNormalized, incoming: SlackBridgeConversationOpenOutputRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeConversationOpenOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Contains the id of channel that was opened
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* channelId (string): channelId
|
|
25
|
+
*/
|
|
26
|
+
export interface SlackBridgeConversationOpenOutputRepresentationNormalized {
|
|
27
|
+
/** Id of the channel that was opened (existing channel if found or new channel if created) */
|
|
28
|
+
channelId: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Contains the id of channel that was opened
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* channelId (string): channelId
|
|
35
|
+
*/
|
|
36
|
+
export interface SlackBridgeConversationOpenOutputRepresentation {
|
|
37
|
+
channelId: string;
|
|
38
|
+
}
|
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.381.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.381.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.381.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|