@salesforce/lds-adapters-platform-slack-bridge 1.353.1 → 1.354.0-dev2

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.
@@ -0,0 +1,26 @@
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_getConnectSlackbridgeSlack_display_login_ResourceRequestConfig } from '../resources/getConnectSlackbridgeSlack_display_login';
4
+ import { SlackBridgeDisplayLoginOutputRepresentation as types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation } from '../types/SlackBridgeDisplayLoginOutputRepresentation';
5
+ export declare const adapterName = "getSlackDisplayLogin";
6
+ export declare const getSlackDisplayLogin_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getSlackDisplayLogin_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetSlackDisplayLoginConfig {
9
+ }
10
+ export declare const createResourceParams: (config: GetSlackDisplayLoginConfig) => resources_getConnectSlackbridgeSlack_display_login_ResourceRequestConfig;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSlackDisplayLoginConfig>): adapter$45$utils_Untrusted<GetSlackDisplayLoginConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSlackDisplayLoginConfig | null;
15
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig): $64$luvio_engine_Fragment;
16
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig): $64$luvio_engine_Snapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, any>;
17
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig, resourceParams: resources_getConnectSlackbridgeSlack_display_login_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, any>>;
18
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig, resourceParams: resources_getConnectSlackbridgeSlack_display_login_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
19
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackDisplayLoginConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, any>>;
20
+ export type BuildSnapshotContext = {
21
+ luvio: $64$luvio_engine_Luvio;
22
+ config: GetSlackDisplayLoginConfig;
23
+ };
24
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, any>>;
25
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation>): $64$luvio_engine_Snapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, any>;
26
+ export declare const getSlackDisplayLoginAdapterFactory: $64$luvio_engine_AdapterFactory<GetSlackDisplayLoginConfig, types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation>;
@@ -4,6 +4,7 @@ export { postSlackFileAdapterFactory } from '../adapters/postSlackFile';
4
4
  export { postSlackRecordChannelInfosAdapterFactory } from '../adapters/postSlackRecordChannelInfos';
5
5
  export { getSlackRecordChannelInfoAdapterFactory } from '../adapters/getSlackRecordChannelInfo';
6
6
  export { getRelatedThreadsAdapterFactory } from '../adapters/getRelatedThreads';
7
+ export { getSlackDisplayLoginAdapterFactory } from '../adapters/getSlackDisplayLogin';
7
8
  export { postSlackConversationMarkAdapterFactory } from '../adapters/postSlackConversationMark';
8
9
  export { getSlackConversationMembersAdapterFactory } from '../adapters/getSlackConversationMembers';
9
10
  export { postSlackConversationMembersAdapterFactory } from '../adapters/postSlackConversationMembers';
@@ -7,6 +7,7 @@ declare let getSlackConversationMember: any;
7
7
  declare let getSlackConversationMemberNotifyChange: any;
8
8
  declare let getSlackConversationMembers: any;
9
9
  declare let getSlackConversationMembersNotifyChange: any;
10
+ declare let getSlackDisplayLogin: any;
10
11
  declare let getSlackEmoji: any;
11
12
  declare let getSlackEmojiNotifyChange: any;
12
13
  declare let getSlackEmojis: any;
@@ -30,6 +31,7 @@ declare let getRelatedThreads_imperative: any;
30
31
  declare let getSlackConversation_imperative: any;
31
32
  declare let getSlackConversationMember_imperative: any;
32
33
  declare let getSlackConversationMembers_imperative: any;
34
+ declare let getSlackDisplayLogin_imperative: any;
33
35
  declare let getSlackEmoji_imperative: any;
34
36
  declare let getSlackEmojis_imperative: any;
35
37
  declare let getSlackMessage_imperative: any;
@@ -38,4 +40,4 @@ declare let getSlackSearchConversation_imperative: any;
38
40
  declare let getSlackSearchEmoji_imperative: any;
39
41
  declare let getSlackSearchUser_imperative: any;
40
42
  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, };
43
+ export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackDisplayLogin, 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, getSlackDisplayLogin_imperative, getSlackEmoji_imperative, getSlackEmojis_imperative, getSlackMessage_imperative, getSlackRecordChannelInfo_imperative, getSlackSearchConversation_imperative, getSlackSearchEmoji_imperative, getSlackSearchUser_imperative, getSlackUser_imperative, };
@@ -0,0 +1,12 @@
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 { SlackBridgeDisplayLoginOutputRepresentation as types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation } from '../types/SlackBridgeDisplayLoginOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ }
5
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
6
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
7
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
8
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation): void;
9
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation, any>;
10
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SlackBridgeDisplayLoginOutputRepresentation_SlackBridgeDisplayLoginOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
11
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
12
+ export default createResourceRequest;
@@ -0,0 +1,32 @@
1
+ import { SlackBridgeSlackTeamOutputRepresentation as SlackBridgeSlackTeamOutputRepresentation_SlackBridgeSlackTeamOutputRepresentation } from './SlackBridgeSlackTeamOutputRepresentation';
2
+ 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';
3
+ export declare const TTL = 500;
4
+ export declare const VERSION = "b3c7e0b8bc0a4a3745874264601b9082";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: SlackBridgeDisplayLoginOutputRepresentation, existing: SlackBridgeDisplayLoginOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeDisplayLoginOutputRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: SlackBridgeDisplayLoginOutputRepresentationNormalized, incoming: SlackBridgeDisplayLoginOutputRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeDisplayLoginOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Contains Salesforce Org info and Slack Team info
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface SlackBridgeDisplayLoginOutputRepresentationNormalized {
19
+ /** Salesforce Org Id */
20
+ orgId: string;
21
+ slackTeam: SlackBridgeSlackTeamOutputRepresentation_SlackBridgeSlackTeamOutputRepresentation;
22
+ }
23
+ /**
24
+ * Contains Salesforce Org info and Slack Team info
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface SlackBridgeDisplayLoginOutputRepresentation {
30
+ orgId: string;
31
+ slackTeam: SlackBridgeSlackTeamOutputRepresentation_SlackBridgeSlackTeamOutputRepresentation;
32
+ }
@@ -0,0 +1,38 @@
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 TTL = 500;
3
+ export declare const VERSION = "d6833ffbee3e599bfdef928466ea65af";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: SlackBridgeSlackTeamOutputRepresentation, existing: SlackBridgeSlackTeamOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeSlackTeamOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: SlackBridgeSlackTeamOutputRepresentationNormalized, incoming: SlackBridgeSlackTeamOutputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeSlackTeamOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Contains metadata about the connected slack team
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface SlackBridgeSlackTeamOutputRepresentationNormalized {
18
+ /** The team connection status */
19
+ status: string;
20
+ /** The full domain name for the connected slack team or enterprise grid */
21
+ teamDomain: string;
22
+ /** The team id */
23
+ teamId: string;
24
+ /** The team name */
25
+ teamName: string;
26
+ }
27
+ /**
28
+ * Contains metadata about the connected slack team
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface SlackBridgeSlackTeamOutputRepresentation {
34
+ status: string;
35
+ teamDomain: string;
36
+ teamId: string;
37
+ teamName: string;
38
+ }
@@ -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
3
  export declare const TTL = 600000;
4
- export declare const VERSION = "ffc32ae0451b10824fba0c96aa0d2115";
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.353.1",
3
+ "version": "1.354.0-dev2",
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.353.1"
43
+ "@salesforce/lds-bindings": "^1.354.0-dev2"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.353.1"
46
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev2"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {