@salesforce/lds-adapters-service-slack 1.291.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/LICENSE.txt +82 -0
- package/dist/es/es2018/service-slack.js +3567 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationdeleteSlackMessage.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationdeleteSlackMessageReactions.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationgetSlackConversationInfo.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationgetSlackMessage.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationgetSlackUser.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationpatchSlackMessage.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationpostSlackConversation.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationpostSlackMessageReactions.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackCustomEmoji.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/postSlackFile.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +11 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/deleteConnectSwarmingConversationMessagesByMessageTimestamp.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/deleteConnectSwarmingConversationMessagesReactionsByMessageTimestamp.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSwarmingConversationEmojis.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSwarmingConversationMessages.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSwarmingConversationMessagesByMessageTimestamp.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSwarmingConversationMessagesReactionsByMessageTimestamp.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSwarmingConversationUserByUserId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSwarmingSlackConversationInfo.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectSwarmingConversationMessagesByMessageTimestamp.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSwarmingConversationFiles.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSwarmingConversationMessages.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSwarmingConversationMessagesReactionsByMessageTimestamp.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/ContentDocumentOutputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ContentVersionOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/EmptyRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/FileTypeOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SlackConversationInfoOutputRepresentation.d.ts +67 -0
- package/dist/es/es2018/types/src/generated/types/SlackConversationOutputRepresentation.d.ts +64 -0
- package/dist/es/es2018/types/src/generated/types/SlackCustomEmojisOutputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/SlackFileInputRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/SlackFileOutputRepresentation.d.ts +68 -0
- package/dist/es/es2018/types/src/generated/types/SlackMessageOutputRepresentation.d.ts +127 -0
- package/dist/es/es2018/types/src/generated/types/SlackPostMessageInputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/SlackPostMessageOutputRepresentation.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/SlackPostMessageReactionInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SlackReactionOutputRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/SlackUpdateMessageInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SlackUpdatedMessageOutputRepresentation.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/SlackUserInfoOutputRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +3750 -0
- package/src/raml/api.raml +731 -0
- package/src/raml/luvio.raml +84 -0
|
@@ -0,0 +1,127 @@
|
|
|
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 { SlackFileOutputRepresentation as SlackFileOutputRepresentation_SlackFileOutputRepresentation } from './SlackFileOutputRepresentation';
|
|
3
|
+
import { SlackReactionOutputRepresentation as SlackReactionOutputRepresentation_SlackReactionOutputRepresentation } from './SlackReactionOutputRepresentation';
|
|
4
|
+
import { SlackUserInfoOutputRepresentation as SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation } from './SlackUserInfoOutputRepresentation';
|
|
5
|
+
export declare const TTL = 300;
|
|
6
|
+
export declare const VERSION = "530df8acc9c3c40a091cb37970289745";
|
|
7
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
|
+
export declare const RepresentationType: string;
|
|
9
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
10
|
+
messageTimestamp: string;
|
|
11
|
+
}
|
|
12
|
+
export type SlackMessageOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export type PartialSlackMessageOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SlackMessageOutputRepresentationNormalizedKeyMetadata;
|
|
16
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackMessageOutputRepresentation): string;
|
|
17
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackMessageOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
|
+
export declare function normalize(input: SlackMessageOutputRepresentation, existing: SlackMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackMessageOutputRepresentationNormalized;
|
|
19
|
+
export interface DynamicIngestParams {
|
|
20
|
+
files: $64$luvio_engine_ResourceIngest;
|
|
21
|
+
reactions: $64$luvio_engine_ResourceIngest;
|
|
22
|
+
replyUsers: $64$luvio_engine_ResourceIngest;
|
|
23
|
+
userInfo: $64$luvio_engine_ResourceIngest;
|
|
24
|
+
}
|
|
25
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackMessageOutputRepresentation, existing: SlackMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackMessageOutputRepresentationNormalized;
|
|
26
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
27
|
+
export interface DynamicSelectParams {
|
|
28
|
+
files?: $64$luvio_engine_LinkSelection;
|
|
29
|
+
reactions?: $64$luvio_engine_LinkSelection;
|
|
30
|
+
replyUsers?: $64$luvio_engine_LinkSelection;
|
|
31
|
+
userInfo?: $64$luvio_engine_LinkSelection;
|
|
32
|
+
}
|
|
33
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
34
|
+
export declare function equals(existing: SlackMessageOutputRepresentationNormalized, incoming: SlackMessageOutputRepresentationNormalized): boolean;
|
|
35
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
36
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackMessageOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
37
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
38
|
+
/**
|
|
39
|
+
* Contains the details of Slack Message
|
|
40
|
+
*
|
|
41
|
+
* Keys:
|
|
42
|
+
* messageTimestamp (string): slackMessageTs
|
|
43
|
+
*/
|
|
44
|
+
export interface SlackMessageOutputRepresentationNormalized {
|
|
45
|
+
/** Id of the Slack App */
|
|
46
|
+
appId: string;
|
|
47
|
+
/** Thread where the reply belong to (if this message is a broadcasted reply) */
|
|
48
|
+
broadcastThreadTs: string;
|
|
49
|
+
/** Id of the Channel to which this message belong to */
|
|
50
|
+
channelId: string;
|
|
51
|
+
/** List of files attached to this message */
|
|
52
|
+
files: Array<$64$luvio_engine_StoreLink>;
|
|
53
|
+
/** Does this message includes Custom emoji? */
|
|
54
|
+
includesCustomEmoji: boolean;
|
|
55
|
+
/** Is this a reply also sent to the Channel? */
|
|
56
|
+
isBroadcast: boolean;
|
|
57
|
+
/** Can this message be edited? */
|
|
58
|
+
isEditable: boolean;
|
|
59
|
+
/** Is this an edited message? */
|
|
60
|
+
isEdited: boolean;
|
|
61
|
+
/** Does the App contains required scopes to read Slack files? */
|
|
62
|
+
isFileReadAllowed: boolean;
|
|
63
|
+
/** Latest Reply timestamp */
|
|
64
|
+
latestReplyTimestamp: string;
|
|
65
|
+
/** Content of the Message */
|
|
66
|
+
message: string;
|
|
67
|
+
/** Epoch (Millisecond) Timestamp of the Message */
|
|
68
|
+
messageEpochMillisecond: number;
|
|
69
|
+
/** Is this a message sent by the context User? */
|
|
70
|
+
outbound: boolean;
|
|
71
|
+
/** List of reactions added to this message */
|
|
72
|
+
reactions: Array<$64$luvio_engine_StoreLink>;
|
|
73
|
+
/** Number of replies for this message */
|
|
74
|
+
replyCount: number;
|
|
75
|
+
/** List of Users who replied to this message */
|
|
76
|
+
replyUsers: Array<$64$luvio_engine_StoreLink>;
|
|
77
|
+
/** Number of users who replied to this message */
|
|
78
|
+
replyUsersCount: number;
|
|
79
|
+
/** Timestamp of the Message */
|
|
80
|
+
slackMessageTs: string;
|
|
81
|
+
/** Sub-type of Message */
|
|
82
|
+
subtype: string;
|
|
83
|
+
/** Id of the Team to which this message belong to */
|
|
84
|
+
teamId: string;
|
|
85
|
+
/** Timestamp of the thread to which this message belong to */
|
|
86
|
+
threadTs: string;
|
|
87
|
+
/** Type of Message */
|
|
88
|
+
type: string;
|
|
89
|
+
/** Unique Key for this message */
|
|
90
|
+
uniqueKey: string;
|
|
91
|
+
/** Url for this message */
|
|
92
|
+
url: string;
|
|
93
|
+
userInfo: $64$luvio_engine_StoreLink;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Contains the details of Slack Message
|
|
97
|
+
*
|
|
98
|
+
* Keys:
|
|
99
|
+
* messageTimestamp (string): slackMessageTs
|
|
100
|
+
*/
|
|
101
|
+
export interface SlackMessageOutputRepresentation {
|
|
102
|
+
appId: string;
|
|
103
|
+
broadcastThreadTs: string;
|
|
104
|
+
channelId: string;
|
|
105
|
+
files: Array<SlackFileOutputRepresentation_SlackFileOutputRepresentation>;
|
|
106
|
+
includesCustomEmoji: boolean;
|
|
107
|
+
isBroadcast: boolean;
|
|
108
|
+
isEditable: boolean;
|
|
109
|
+
isEdited: boolean;
|
|
110
|
+
isFileReadAllowed: boolean;
|
|
111
|
+
latestReplyTimestamp: string;
|
|
112
|
+
message: string;
|
|
113
|
+
messageEpochMillisecond: number;
|
|
114
|
+
outbound: boolean;
|
|
115
|
+
reactions: Array<SlackReactionOutputRepresentation_SlackReactionOutputRepresentation>;
|
|
116
|
+
replyCount: number;
|
|
117
|
+
replyUsers: Array<SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation>;
|
|
118
|
+
replyUsersCount: number;
|
|
119
|
+
slackMessageTs: string;
|
|
120
|
+
subtype: string;
|
|
121
|
+
teamId: string;
|
|
122
|
+
threadTs: string;
|
|
123
|
+
type: string;
|
|
124
|
+
uniqueKey: string;
|
|
125
|
+
url: string;
|
|
126
|
+
userInfo: SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation;
|
|
127
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "046b358a1b4e3b1b6ae4ff6e22261654";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SlackPostMessageInputRepresentation, existing: SlackPostMessageInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackPostMessageInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SlackPostMessageInputRepresentationNormalized, incoming: SlackPostMessageInputRepresentationNormalized): 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: SlackPostMessageInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Contains the parameters to post a message to Slack
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SlackPostMessageInputRepresentationNormalized {
|
|
17
|
+
/** Slack App Id */
|
|
18
|
+
appId: string;
|
|
19
|
+
/** Channel where the message should be posted */
|
|
20
|
+
channelId: string;
|
|
21
|
+
/** Find and link channel names and usernames using the Slack ID */
|
|
22
|
+
linkNames: boolean;
|
|
23
|
+
/** Used in conjunction with `thread_ts` and indicates whether reply should be made visible to everyone in the channel or conversation */
|
|
24
|
+
replyBroadcast: boolean;
|
|
25
|
+
/** Workspace where the message should be posted */
|
|
26
|
+
teamId: string;
|
|
27
|
+
/** Content of the message */
|
|
28
|
+
text: string;
|
|
29
|
+
/** Time stamp of the Parent message (in case of reply) */
|
|
30
|
+
threadTs: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Contains the parameters to post a message to Slack
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* (none)
|
|
37
|
+
*/
|
|
38
|
+
export interface SlackPostMessageInputRepresentation {
|
|
39
|
+
appId: string;
|
|
40
|
+
channelId: string;
|
|
41
|
+
linkNames: boolean;
|
|
42
|
+
replyBroadcast: boolean;
|
|
43
|
+
teamId: string;
|
|
44
|
+
text: string;
|
|
45
|
+
threadTs: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { SlackMessageOutputRepresentation as SlackMessageOutputRepresentation_SlackMessageOutputRepresentation } from './SlackMessageOutputRepresentation';
|
|
3
|
+
export declare const TTL = 300;
|
|
4
|
+
export declare const VERSION = "3fbe2a2b782a04407aa59b540ea5c4ba";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
channelId: string;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
}
|
|
11
|
+
export type SlackPostMessageOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export type PartialSlackPostMessageOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SlackPostMessageOutputRepresentationNormalizedKeyMetadata;
|
|
15
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackPostMessageOutputRepresentation): string;
|
|
16
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackPostMessageOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function normalize(input: SlackPostMessageOutputRepresentation, existing: SlackPostMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackPostMessageOutputRepresentationNormalized;
|
|
18
|
+
export interface DynamicIngestParams {
|
|
19
|
+
postedMessage: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
}
|
|
21
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackPostMessageOutputRepresentation, existing: SlackPostMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackPostMessageOutputRepresentationNormalized;
|
|
22
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
23
|
+
export interface DynamicSelectParams {
|
|
24
|
+
postedMessage?: $64$luvio_engine_LinkSelection;
|
|
25
|
+
}
|
|
26
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
27
|
+
export declare function equals(existing: SlackPostMessageOutputRepresentationNormalized, incoming: SlackPostMessageOutputRepresentationNormalized): boolean;
|
|
28
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
29
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackPostMessageOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
30
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
31
|
+
/**
|
|
32
|
+
* Contains the details of message posted to Slack
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* channelId (string): channelId
|
|
36
|
+
* timestamp (string): timestamp
|
|
37
|
+
*/
|
|
38
|
+
export interface SlackPostMessageOutputRepresentationNormalized {
|
|
39
|
+
/** Id of the Channel to which this message belong to */
|
|
40
|
+
channelId: string;
|
|
41
|
+
/** Message posted to Slack */
|
|
42
|
+
postedMessage: $64$luvio_engine_StoreLink;
|
|
43
|
+
/** Timestamp of the message posted to Slack */
|
|
44
|
+
timestamp: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Contains the details of message posted to Slack
|
|
48
|
+
*
|
|
49
|
+
* Keys:
|
|
50
|
+
* channelId (string): channelId
|
|
51
|
+
* timestamp (string): timestamp
|
|
52
|
+
*/
|
|
53
|
+
export interface SlackPostMessageOutputRepresentation {
|
|
54
|
+
channelId: string;
|
|
55
|
+
postedMessage: SlackMessageOutputRepresentation_SlackMessageOutputRepresentation;
|
|
56
|
+
timestamp: string;
|
|
57
|
+
}
|
package/dist/es/es2018/types/src/generated/types/SlackPostMessageReactionInputRepresentation.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 = "a4dc8d14fe4fbfffe30b93740e10591c";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SlackPostMessageReactionInputRepresentation, existing: SlackPostMessageReactionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackPostMessageReactionInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SlackPostMessageReactionInputRepresentationNormalized, incoming: SlackPostMessageReactionInputRepresentationNormalized): 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: SlackPostMessageReactionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Contains the parameters to post or delete a reaction on Slack message
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SlackPostMessageReactionInputRepresentationNormalized {
|
|
17
|
+
/** Slack App Id */
|
|
18
|
+
appId: string;
|
|
19
|
+
/** Channel where the message reaction should be posted */
|
|
20
|
+
channelId: string;
|
|
21
|
+
/** Name of the reaction */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Workspace where the message reaction should be posted */
|
|
24
|
+
teamId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Contains the parameters to post or delete a reaction on Slack message
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SlackPostMessageReactionInputRepresentation {
|
|
33
|
+
appId: string;
|
|
34
|
+
channelId: string;
|
|
35
|
+
name: string;
|
|
36
|
+
teamId: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
import { SlackUserInfoOutputRepresentation as SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation } from './SlackUserInfoOutputRepresentation';
|
|
3
|
+
export declare const VERSION = "c90a441214ca8dcf92b93fd78646dd6e";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: SlackReactionOutputRepresentation, existing: SlackReactionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackReactionOutputRepresentationNormalized;
|
|
7
|
+
export interface DynamicIngestParams {
|
|
8
|
+
reactedUsers: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
}
|
|
10
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackReactionOutputRepresentation, existing: SlackReactionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackReactionOutputRepresentationNormalized;
|
|
11
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
+
export interface DynamicSelectParams {
|
|
13
|
+
reactedUsers?: $64$luvio_engine_LinkSelection;
|
|
14
|
+
}
|
|
15
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
|
+
export declare function equals(existing: SlackReactionOutputRepresentationNormalized, incoming: SlackReactionOutputRepresentationNormalized): boolean;
|
|
17
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackReactionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
19
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
20
|
+
/**
|
|
21
|
+
* Contains the details of Slack reaction
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface SlackReactionOutputRepresentationNormalized {
|
|
27
|
+
/** Number of reactions */
|
|
28
|
+
count: number;
|
|
29
|
+
/** Has the context user reacted? */
|
|
30
|
+
hasUserReacted: boolean;
|
|
31
|
+
/** Is this a custom emoji? */
|
|
32
|
+
isCustomEmoji: boolean;
|
|
33
|
+
/** Timestamp of the Slack message where this reaction was made */
|
|
34
|
+
messageTs: string;
|
|
35
|
+
/** Name of the reaction */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Users who made this reaction */
|
|
38
|
+
reactedUsers: Array<$64$luvio_engine_StoreLink>;
|
|
39
|
+
/** Unicode for the reaction */
|
|
40
|
+
unicode: string;
|
|
41
|
+
/** Unique Key for this reaction specific to a particular Slack message */
|
|
42
|
+
uniqueKey: string;
|
|
43
|
+
/** Url for the reaction */
|
|
44
|
+
url: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Contains the details of Slack reaction
|
|
48
|
+
*
|
|
49
|
+
* Keys:
|
|
50
|
+
* (none)
|
|
51
|
+
*/
|
|
52
|
+
export interface SlackReactionOutputRepresentation {
|
|
53
|
+
count: number;
|
|
54
|
+
hasUserReacted: boolean;
|
|
55
|
+
isCustomEmoji: boolean;
|
|
56
|
+
messageTs: string;
|
|
57
|
+
name: string;
|
|
58
|
+
reactedUsers: Array<SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation>;
|
|
59
|
+
unicode: string;
|
|
60
|
+
uniqueKey: string;
|
|
61
|
+
url: string;
|
|
62
|
+
}
|
|
@@ -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 = "f7be23f58e197a8b744f9f4df35c737d";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SlackUpdateMessageInputRepresentation, existing: SlackUpdateMessageInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackUpdateMessageInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SlackUpdateMessageInputRepresentationNormalized, incoming: SlackUpdateMessageInputRepresentationNormalized): 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: SlackUpdateMessageInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Contains the parameters to update a message to Slack
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SlackUpdateMessageInputRepresentationNormalized {
|
|
17
|
+
/** Slack App Id */
|
|
18
|
+
appId: string;
|
|
19
|
+
/** Channel, private group, or IM channel where the message exists */
|
|
20
|
+
channelId: string;
|
|
21
|
+
/** Workspace where the message exists */
|
|
22
|
+
teamId: string;
|
|
23
|
+
/** Content of the updated Slack message */
|
|
24
|
+
text: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Contains the parameters to update a message to Slack
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SlackUpdateMessageInputRepresentation {
|
|
33
|
+
appId: string;
|
|
34
|
+
channelId: string;
|
|
35
|
+
teamId: string;
|
|
36
|
+
text: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { SlackMessageOutputRepresentation as SlackMessageOutputRepresentation_SlackMessageOutputRepresentation } from './SlackMessageOutputRepresentation';
|
|
3
|
+
export declare const TTL = 300;
|
|
4
|
+
export declare const VERSION = "e0dc0ed06034e8a0dcff97612151271f";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
channelId: string;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
}
|
|
11
|
+
export type SlackUpdatedMessageOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export type PartialSlackUpdatedMessageOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SlackUpdatedMessageOutputRepresentationNormalizedKeyMetadata;
|
|
15
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackUpdatedMessageOutputRepresentation): string;
|
|
16
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackUpdatedMessageOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function normalize(input: SlackUpdatedMessageOutputRepresentation, existing: SlackUpdatedMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackUpdatedMessageOutputRepresentationNormalized;
|
|
18
|
+
export interface DynamicIngestParams {
|
|
19
|
+
updatedMessage: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
}
|
|
21
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackUpdatedMessageOutputRepresentation, existing: SlackUpdatedMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackUpdatedMessageOutputRepresentationNormalized;
|
|
22
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
23
|
+
export interface DynamicSelectParams {
|
|
24
|
+
updatedMessage?: $64$luvio_engine_LinkSelection;
|
|
25
|
+
}
|
|
26
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
27
|
+
export declare function equals(existing: SlackUpdatedMessageOutputRepresentationNormalized, incoming: SlackUpdatedMessageOutputRepresentationNormalized): boolean;
|
|
28
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
29
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackUpdatedMessageOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
30
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
31
|
+
/**
|
|
32
|
+
* Contains the details of updated Slack message
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* channelId (string): channelId
|
|
36
|
+
* timestamp (string): timestamp
|
|
37
|
+
*/
|
|
38
|
+
export interface SlackUpdatedMessageOutputRepresentationNormalized {
|
|
39
|
+
/** Id of the Channel to which this message belong to */
|
|
40
|
+
channelId: string;
|
|
41
|
+
/** Timestamp of the message posted to Slack */
|
|
42
|
+
timestamp: string;
|
|
43
|
+
/** Updated Message from Slack */
|
|
44
|
+
updatedMessage: $64$luvio_engine_StoreLink;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Contains the details of updated Slack message
|
|
48
|
+
*
|
|
49
|
+
* Keys:
|
|
50
|
+
* channelId (string): channelId
|
|
51
|
+
* timestamp (string): timestamp
|
|
52
|
+
*/
|
|
53
|
+
export interface SlackUpdatedMessageOutputRepresentation {
|
|
54
|
+
channelId: string;
|
|
55
|
+
timestamp: string;
|
|
56
|
+
updatedMessage: SlackMessageOutputRepresentation_SlackMessageOutputRepresentation;
|
|
57
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 VERSION = "3ab8a0bb29f3b91228cf856e86966b0e";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
6
|
+
userId: string;
|
|
7
|
+
}
|
|
8
|
+
export type SlackUserInfoOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
9
|
+
export type PartialSlackUserInfoOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SlackUserInfoOutputRepresentationNormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackUserInfoOutputRepresentation): string;
|
|
13
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackUserInfoOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function normalize(input: SlackUserInfoOutputRepresentation, existing: SlackUserInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackUserInfoOutputRepresentationNormalized;
|
|
15
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
16
|
+
export declare function equals(existing: SlackUserInfoOutputRepresentationNormalized, incoming: SlackUserInfoOutputRepresentationNormalized): boolean;
|
|
17
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackUserInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
19
|
+
/**
|
|
20
|
+
* Contains the details of Slack User
|
|
21
|
+
*
|
|
22
|
+
* Keys:
|
|
23
|
+
* userId (string): slackUserId
|
|
24
|
+
*/
|
|
25
|
+
export interface SlackUserInfoOutputRepresentationNormalized {
|
|
26
|
+
/** Is this a Bot User? */
|
|
27
|
+
bot: boolean;
|
|
28
|
+
/** User Profile url */
|
|
29
|
+
profileUrl: string;
|
|
30
|
+
/** Id of the related Salesforce User mapped to the Slack User */
|
|
31
|
+
salesforceUserId: string;
|
|
32
|
+
/** Id of the Slack User */
|
|
33
|
+
slackUserId: string;
|
|
34
|
+
/** Url of the Slack User Image */
|
|
35
|
+
slackUserImageUrl: string;
|
|
36
|
+
/** Name of the Slack User */
|
|
37
|
+
slackUsername: string;
|
|
38
|
+
/** Slack Workspace Id */
|
|
39
|
+
teamId: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Contains the details of Slack User
|
|
43
|
+
*
|
|
44
|
+
* Keys:
|
|
45
|
+
* userId (string): slackUserId
|
|
46
|
+
*/
|
|
47
|
+
export interface SlackUserInfoOutputRepresentation {
|
|
48
|
+
bot: boolean;
|
|
49
|
+
profileUrl: string;
|
|
50
|
+
salesforceUserId: string;
|
|
51
|
+
slackUserId: string;
|
|
52
|
+
slackUserImageUrl: string;
|
|
53
|
+
slackUsername: string;
|
|
54
|
+
teamId: string;
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectKeys: {
|
|
3
|
+
(o: object): string[];
|
|
4
|
+
(o: {}): string[];
|
|
5
|
+
}, ObjectCreate: {
|
|
6
|
+
(o: object | null): any;
|
|
7
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
8
|
+
}, ObjectAssign: {
|
|
9
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
10
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
11
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
12
|
+
(target: object, ...sources: any[]): any;
|
|
13
|
+
};
|
|
14
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
15
|
+
export declare const JSONStringify: {
|
|
16
|
+
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
17
|
+
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
18
|
+
};
|
|
19
|
+
type AllowedPrimitives = boolean | string | number | Date | null;
|
|
20
|
+
type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
|
|
21
|
+
export type RecursivePartial<T> = null | {
|
|
22
|
+
[P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
|
|
23
|
+
};
|
|
24
|
+
export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
|
|
25
|
+
export declare function equalsObject<U, V extends {
|
|
26
|
+
[key: string]: U;
|
|
27
|
+
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
28
|
+
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
29
|
+
__ref: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
32
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-service-slack",
|
|
3
|
+
"version": "1.291.0",
|
|
4
|
+
"description": "APIs to connect with Slack Conversation",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/service-slack.js",
|
|
7
|
+
"module": "dist/es/es2018/service-slack.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
17
|
+
"import": "./dist/es/es2018/service-slack.js",
|
|
18
|
+
"require": "./dist/es/es2018/service-slack.js"
|
|
19
|
+
},
|
|
20
|
+
"./sfdc": {
|
|
21
|
+
"types": "./sfdc/index.d.ts",
|
|
22
|
+
"import": "./sfdc/index.js",
|
|
23
|
+
"default": "./sfdc/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sfdc": {
|
|
27
|
+
"namespace": "lightning",
|
|
28
|
+
"module": "serviceSlackApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"jocelyn.lin@salesforce.com"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "yarn build:services",
|
|
35
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
36
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
37
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
38
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-service-slack",
|
|
39
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-slack",
|
|
40
|
+
"test:unit": "jest"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@salesforce/lds-bindings": "^1.291.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.291.0"
|
|
47
|
+
},
|
|
48
|
+
"nx": {
|
|
49
|
+
"targets": {
|
|
50
|
+
"build": {
|
|
51
|
+
"outputs": [
|
|
52
|
+
"{projectRoot}/dist",
|
|
53
|
+
"{projectRoot}/sfdc"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"build:raml": {
|
|
57
|
+
"outputs": [
|
|
58
|
+
"{projectRoot}/src/generated"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"volta": {
|
|
64
|
+
"extends": "../../package.json"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|