@salesforce/lds-adapters-platform-slack-bridge 1.355.0 → 1.357.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 +1188 -763
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfo.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfos.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +4 -7
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +995 -504
- package/src/raml/api.raml +57 -2
- package/src/raml/luvio.raml +12 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId_ResourceRequestConfig } from '../resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId';
|
|
4
|
+
import { SlackBridgeConversationInfoOutputRepresentation as types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, KeyParams as types_SlackBridgeConversationInfoOutputRepresentation_KeyParams } from '../types/SlackBridgeConversationInfoOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getSlackConversationInfo";
|
|
6
|
+
export declare const getSlackConversationInfo_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getSlackConversationInfo_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetSlackConversationInfoConfig {
|
|
9
|
+
channelId: string;
|
|
10
|
+
teamId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetSlackConversationInfoConfig) => resources_getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSlackConversationInfoConfig>): adapter$45$utils_Untrusted<GetSlackConversationInfoConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSlackConversationInfoConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig): $64$luvio_engine_Snapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig, resourceParams: resources_getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig, resourceParams: resources_getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfoConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetSlackConversationInfoConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>): $64$luvio_engine_Snapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, any>;
|
|
28
|
+
export declare const getSlackConversationInfoAdapterFactory: $64$luvio_engine_AdapterFactory<GetSlackConversationInfoConfig, types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>;
|
|
29
|
+
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_SlackBridgeConversationInfoOutputRepresentation_KeyParams, any>[]) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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_getConnectSlackbridgeTeamChannelsByTeamId_ResourceRequestConfig } from '../resources/getConnectSlackbridgeTeamChannelsByTeamId';
|
|
4
|
+
import { SlackBridgeConversationInfosOutputRepresentation as types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation } from '../types/SlackBridgeConversationInfosOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getSlackConversationInfos";
|
|
6
|
+
export declare const getSlackConversationInfos_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getSlackConversationInfos_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetSlackConversationInfosConfig {
|
|
9
|
+
teamId: string;
|
|
10
|
+
channelIds: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetSlackConversationInfosConfig) => resources_getConnectSlackbridgeTeamChannelsByTeamId_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSlackConversationInfosConfig>): adapter$45$utils_Untrusted<GetSlackConversationInfosConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSlackConversationInfosConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig): $64$luvio_engine_Snapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig, resourceParams: resources_getConnectSlackbridgeTeamChannelsByTeamId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig, resourceParams: resources_getConnectSlackbridgeTeamChannelsByTeamId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackConversationInfosConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetSlackConversationInfosConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation>): $64$luvio_engine_Snapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, any>;
|
|
28
|
+
export declare const getSlackConversationInfosAdapterFactory: $64$luvio_engine_AdapterFactory<GetSlackConversationInfosConfig, types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation>;
|
|
@@ -14,6 +14,8 @@ export { getSlackMessageAdapterFactory } from '../adapters/getSlackMessage';
|
|
|
14
14
|
export { patchSlackMessageAdapterFactory } from '../adapters/patchSlackMessage';
|
|
15
15
|
export { deleteSlackMessageReactionsAdapterFactory } from '../adapters/deleteSlackMessageReactions';
|
|
16
16
|
export { postSlackMessageReactionsAdapterFactory } from '../adapters/postSlackMessageReactions';
|
|
17
|
+
export { getSlackConversationInfosAdapterFactory } from '../adapters/getSlackConversationInfos';
|
|
18
|
+
export { getSlackConversationInfoAdapterFactory } from '../adapters/getSlackConversationInfo';
|
|
17
19
|
export { getSlackEmojisAdapterFactory } from '../adapters/getSlackEmojis';
|
|
18
20
|
export { getSlackEmojiAdapterFactory } from '../adapters/getSlackEmoji';
|
|
19
21
|
export { getSlackSearchConversationAdapterFactory } from '../adapters/getSlackSearchConversation';
|
|
@@ -3,6 +3,9 @@ declare let deleteSlackMessage: any;
|
|
|
3
3
|
declare let deleteSlackMessageReactions: any;
|
|
4
4
|
declare let getRelatedThreads: any;
|
|
5
5
|
declare let getSlackConversation: any;
|
|
6
|
+
declare let getSlackConversationInfo: any;
|
|
7
|
+
declare let getSlackConversationInfoNotifyChange: any;
|
|
8
|
+
declare let getSlackConversationInfos: any;
|
|
6
9
|
declare let getSlackConversationMember: any;
|
|
7
10
|
declare let getSlackConversationMemberNotifyChange: any;
|
|
8
11
|
declare let getSlackConversationMembers: any;
|
|
@@ -28,6 +31,8 @@ declare let postSlackMessageReactions: any;
|
|
|
28
31
|
declare let postSlackRecordChannelInfos: any;
|
|
29
32
|
declare let getRelatedThreads_imperative: any;
|
|
30
33
|
declare let getSlackConversation_imperative: any;
|
|
34
|
+
declare let getSlackConversationInfo_imperative: any;
|
|
35
|
+
declare let getSlackConversationInfos_imperative: any;
|
|
31
36
|
declare let getSlackConversationMember_imperative: any;
|
|
32
37
|
declare let getSlackConversationMembers_imperative: any;
|
|
33
38
|
declare let getSlackEmoji_imperative: any;
|
|
@@ -38,4 +43,4 @@ declare let getSlackSearchConversation_imperative: any;
|
|
|
38
43
|
declare let getSlackSearchEmoji_imperative: any;
|
|
39
44
|
declare let getSlackSearchUser_imperative: any;
|
|
40
45
|
declare let getSlackUser_imperative: any;
|
|
41
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmojis, getSlackMessage, getSlackMessageNotifyChange, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackSearchConversation, getSlackSearchEmoji, getSlackSearchUser, getSlackUser, getSlackUserNotifyChange, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos, getRelatedThreads_imperative, getSlackConversation_imperative, getSlackConversationMember_imperative, getSlackConversationMembers_imperative, getSlackEmoji_imperative, getSlackEmojis_imperative, getSlackMessage_imperative, getSlackRecordChannelInfo_imperative, getSlackSearchConversation_imperative, getSlackSearchEmoji_imperative, getSlackSearchUser_imperative, getSlackUser_imperative, };
|
|
46
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfos, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmojis, getSlackMessage, getSlackMessageNotifyChange, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackSearchConversation, getSlackSearchEmoji, getSlackSearchUser, getSlackUser, getSlackUserNotifyChange, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos, getRelatedThreads_imperative, getSlackConversation_imperative, getSlackConversationInfo_imperative, getSlackConversationInfos_imperative, getSlackConversationMember_imperative, getSlackConversationMembers_imperative, getSlackEmoji_imperative, getSlackEmojis_imperative, getSlackMessage_imperative, getSlackRecordChannelInfo_imperative, getSlackSearchConversation_imperative, getSlackSearchEmoji_imperative, getSlackSearchUser_imperative, getSlackUser_imperative, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SlackBridgeConversationInfoOutputRepresentation as types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from '../types/SlackBridgeConversationInfoOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
channelId: string;
|
|
6
|
+
teamId: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
|
17
|
+
export declare function createResourceRequestFromRepresentation(representation: types_SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation): $64$luvio_engine_ResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SlackBridgeConversationInfosOutputRepresentation as types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation } from '../types/SlackBridgeConversationInfosOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
teamId: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
channelIds: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation): void;
|
|
15
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation, any>;
|
|
16
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SlackBridgeConversationInfosOutputRepresentation_SlackBridgeConversationInfosOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
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 = 900000;
|
|
2
3
|
export declare const VERSION = "252fe3a6509a770a876e36552ad8dd06";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
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 { SlackBridgeUserInfoOutputRepresentation as SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation } from './SlackBridgeUserInfoOutputRepresentation';
|
|
3
3
|
import { SlackBridgeConversationInfoOutputRepresentation as SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from './SlackBridgeConversationInfoOutputRepresentation';
|
|
4
|
+
import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
|
|
4
5
|
import { SlackBridgeConversationHistoryOutputRepresentation as SlackBridgeConversationHistoryOutputRepresentation_SlackBridgeConversationHistoryOutputRepresentation } from './SlackBridgeConversationHistoryOutputRepresentation';
|
|
5
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "1119f2c416d047eefd8303c5a2d590ae";
|
|
6
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
8
|
export declare const RepresentationType: string;
|
|
8
9
|
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
10
|
export interface DynamicIngestParams {
|
|
10
11
|
contextUserInfo: $64$luvio_engine_ResourceIngest;
|
|
11
12
|
conversationInfo: $64$luvio_engine_ResourceIngest;
|
|
13
|
+
conversationInfos: $64$luvio_engine_ResourceIngest;
|
|
14
|
+
emojis: $64$luvio_engine_ResourceIngest;
|
|
12
15
|
history: $64$luvio_engine_ResourceIngest;
|
|
13
16
|
userInfos: $64$luvio_engine_ResourceIngest;
|
|
14
17
|
}
|
|
@@ -17,6 +20,8 @@ export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
|
17
20
|
export interface DynamicSelectParams {
|
|
18
21
|
contextUserInfo?: $64$luvio_engine_LinkSelection;
|
|
19
22
|
conversationInfo?: $64$luvio_engine_LinkSelection;
|
|
23
|
+
conversationInfos?: $64$luvio_engine_LinkSelection;
|
|
24
|
+
emojis?: $64$luvio_engine_LinkSelection;
|
|
20
25
|
history?: $64$luvio_engine_LinkSelection;
|
|
21
26
|
userInfos?: $64$luvio_engine_LinkSelection;
|
|
22
27
|
}
|
|
@@ -40,6 +45,10 @@ export interface SlackBridgeConversationOutputRepresentationNormalized {
|
|
|
40
45
|
contextUserInfo: $64$luvio_engine_StoreLink | null;
|
|
41
46
|
/** The full information describing this conversation */
|
|
42
47
|
conversationInfo: $64$luvio_engine_StoreLink | null;
|
|
48
|
+
/** A collection of related conversations */
|
|
49
|
+
conversationInfos: Array<$64$luvio_engine_StoreLink>;
|
|
50
|
+
/** A collection of emojis used in this conversation */
|
|
51
|
+
emojis: Array<$64$luvio_engine_StoreLink>;
|
|
43
52
|
/** A segment of this conversation's message history, either part of the top-level conversation or a single message's thread of replies */
|
|
44
53
|
history: $64$luvio_engine_StoreLink;
|
|
45
54
|
/** The id of the Slack team (Workspace or Enterprise Org) where this conversation exists */
|
|
@@ -62,6 +71,8 @@ export interface SlackBridgeConversationOutputRepresentation {
|
|
|
62
71
|
channelUrl: string;
|
|
63
72
|
contextUserInfo: SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation | null;
|
|
64
73
|
conversationInfo: SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation | null;
|
|
74
|
+
conversationInfos: Array<SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>;
|
|
75
|
+
emojis: Array<SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation>;
|
|
65
76
|
history: SlackBridgeConversationHistoryOutputRepresentation_SlackBridgeConversationHistoryOutputRepresentation;
|
|
66
77
|
teamId: string;
|
|
67
78
|
threadTs: string | null;
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
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
2
|
import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
|
|
3
|
-
export declare const TTL =
|
|
4
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const TTL = 900000;
|
|
4
|
+
export declare const VERSION = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
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 {
|
|
8
|
-
teamId: string;
|
|
9
8
|
slackUserId: string;
|
|
10
9
|
}
|
|
11
10
|
export type SlackBridgeUserInfoOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -32,7 +31,6 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
32
31
|
* Contains the details of Slack User
|
|
33
32
|
*
|
|
34
33
|
* Keys:
|
|
35
|
-
* teamId (string): teamId
|
|
36
34
|
* slackUserId (string): slackUserId
|
|
37
35
|
*/
|
|
38
36
|
export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
@@ -71,7 +69,7 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
71
69
|
/** Status message of the Slack User */
|
|
72
70
|
statusMessage: string | null;
|
|
73
71
|
/** Slack Workspace Id */
|
|
74
|
-
teamId: string;
|
|
72
|
+
teamId: string | null;
|
|
75
73
|
/** Title of the Slack User */
|
|
76
74
|
title: string | null;
|
|
77
75
|
}
|
|
@@ -79,7 +77,6 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
79
77
|
* Contains the details of Slack User
|
|
80
78
|
*
|
|
81
79
|
* Keys:
|
|
82
|
-
* teamId (string): teamId
|
|
83
80
|
* slackUserId (string): slackUserId
|
|
84
81
|
*/
|
|
85
82
|
export interface SlackBridgeUserInfoOutputRepresentation {
|
|
@@ -100,6 +97,6 @@ export interface SlackBridgeUserInfoOutputRepresentation {
|
|
|
100
97
|
slackUserId: string;
|
|
101
98
|
statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
|
|
102
99
|
statusMessage: string | null;
|
|
103
|
-
teamId: string;
|
|
100
|
+
teamId: string | null;
|
|
104
101
|
title: string | null;
|
|
105
102
|
}
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts
CHANGED
|
@@ -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 { SlackBridgeUserInfoOutputRepresentation as SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation } from './SlackBridgeUserInfoOutputRepresentation';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "16b915c502b8a0609446d7ed3907a794";
|
|
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: SlackBridgeUserInfosOutputRepresentation, existing: SlackBridgeUserInfosOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeUserInfosOutputRepresentationNormalized;
|
|
@@ -24,6 +24,8 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
|
|
|
24
24
|
* (none)
|
|
25
25
|
*/
|
|
26
26
|
export interface SlackBridgeUserInfosOutputRepresentationNormalized {
|
|
27
|
+
/** Next marker used for pagination. (Optional) */
|
|
28
|
+
nextMarker: string | null;
|
|
27
29
|
/** String used to search this list of conversations (Optional) */
|
|
28
30
|
searchString: string | null;
|
|
29
31
|
/** List of Slack User Information */
|
|
@@ -36,6 +38,7 @@ export interface SlackBridgeUserInfosOutputRepresentationNormalized {
|
|
|
36
38
|
* (none)
|
|
37
39
|
*/
|
|
38
40
|
export interface SlackBridgeUserInfosOutputRepresentation {
|
|
41
|
+
nextMarker: string | null;
|
|
39
42
|
searchString: string | null;
|
|
40
43
|
userInfos: Array<SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation>;
|
|
41
44
|
}
|
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.357.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.357.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.357.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|