@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev1 → 1.380.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +540 -376
- package/dist/es/es2018/types/src/generated/adapters/openSlackConversation.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeConversationOpen.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOpenInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOpenOutputRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +1298 -1131
- package/src/raml/api.raml +112 -72
- package/src/raml/luvio.raml +16 -7
package/src/raml/api.raml
CHANGED
|
@@ -734,6 +734,31 @@ types:
|
|
|
734
734
|
timestamp:
|
|
735
735
|
description: Timestamp of the message posted to Slack
|
|
736
736
|
type: string
|
|
737
|
+
SlackBridgeConversationOpenInputRepresentation:
|
|
738
|
+
description: Contains the parameters of the conversation to open
|
|
739
|
+
type: object
|
|
740
|
+
properties:
|
|
741
|
+
channel:
|
|
742
|
+
description: Channel id of existing DM or MPDM, optional if users is specified instead
|
|
743
|
+
type: string
|
|
744
|
+
users:
|
|
745
|
+
description: List of user ids for conversation to be opened
|
|
746
|
+
type: array
|
|
747
|
+
items:
|
|
748
|
+
type: string
|
|
749
|
+
preventCreation:
|
|
750
|
+
description: True if we don't want to create new DM/MPDM; used to check if there's an existing DM/MPDM
|
|
751
|
+
type: boolean
|
|
752
|
+
returnIm:
|
|
753
|
+
description: True to return full IM channel definition in response
|
|
754
|
+
type: boolean
|
|
755
|
+
SlackBridgeConversationOpenOutputRepresentation:
|
|
756
|
+
description: Contains the id of channel that was opened
|
|
757
|
+
type: object
|
|
758
|
+
properties:
|
|
759
|
+
channelId:
|
|
760
|
+
description: Id of the channel that was opened (existing channel if found or new channel if created)
|
|
761
|
+
type: string
|
|
737
762
|
SlackBridgePostMessageReactionInputRepresentation:
|
|
738
763
|
description: Contains the parameters to post or delete a reaction on Slack message
|
|
739
764
|
type: object
|
|
@@ -957,78 +982,93 @@ types:
|
|
|
957
982
|
items:
|
|
958
983
|
type: SlackBridgeUserInfoOutputRepresentation
|
|
959
984
|
/connect/slackbridge:
|
|
960
|
-
/conversation
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
number of messages
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
985
|
+
/conversation:
|
|
986
|
+
/messages:
|
|
987
|
+
get:
|
|
988
|
+
displayName: getSlackConversation
|
|
989
|
+
description: Get Slack conversation from the given Workspace and Channel
|
|
990
|
+
responses:
|
|
991
|
+
'200':
|
|
992
|
+
description: Success
|
|
993
|
+
body:
|
|
994
|
+
application/json:
|
|
995
|
+
type: SlackBridgeConversationOutputRepresentation
|
|
996
|
+
queryParameters:
|
|
997
|
+
centerMessageTs:
|
|
998
|
+
description: Messages before and after this Unix timestamp will be included in results.
|
|
999
|
+
type: string
|
|
1000
|
+
required: false
|
|
1001
|
+
channelId:
|
|
1002
|
+
description: Channel where the conversation exist
|
|
1003
|
+
type: string
|
|
1004
|
+
required: false
|
|
1005
|
+
includeView:
|
|
1006
|
+
description: Include the full view of the conversation.
|
|
1007
|
+
type: boolean
|
|
1008
|
+
required: false
|
|
1009
|
+
inclusive:
|
|
1010
|
+
description: Include messages with latest or oldest timestamp in results.
|
|
1011
|
+
Ignored unless either timestamp is specified.
|
|
1012
|
+
type: boolean
|
|
1013
|
+
required: false
|
|
1014
|
+
latestMessageTs:
|
|
1015
|
+
description: Only messages before this Unix timestamp will be included in
|
|
1016
|
+
results. Default is the current time.
|
|
1017
|
+
type: string
|
|
1018
|
+
required: false
|
|
1019
|
+
limit:
|
|
1020
|
+
description: The maximum number of messages to return. Fewer than the requested
|
|
1021
|
+
number of messages may be returned.
|
|
1022
|
+
type: integer
|
|
1023
|
+
required: false
|
|
1024
|
+
noEmojis:
|
|
1025
|
+
description: Do not search for references to custom emojis
|
|
1026
|
+
type: boolean
|
|
1027
|
+
required: false
|
|
1028
|
+
oldestMessageTs:
|
|
1029
|
+
description: Only messages after this Unix timestamp will be included in
|
|
1030
|
+
results. Default is the current time.
|
|
1031
|
+
type: string
|
|
1032
|
+
required: false
|
|
1033
|
+
parentMessageTs:
|
|
1034
|
+
description: Parent Message timestamp (if the message(s) belongs to a thread)
|
|
1035
|
+
type: string
|
|
1036
|
+
required: false
|
|
1037
|
+
relatedRecordId:
|
|
1038
|
+
description: Id of the record to which the Slack Conversation is related.
|
|
1039
|
+
type: string
|
|
1040
|
+
required: false
|
|
1041
|
+
teamId:
|
|
1042
|
+
description: Team or Workspace where the conversation exist
|
|
1043
|
+
type: string
|
|
1044
|
+
required: false
|
|
1045
|
+
post:
|
|
1046
|
+
displayName: postSlackConversation
|
|
1047
|
+
description: Request to create a Slack post
|
|
1048
|
+
responses:
|
|
1049
|
+
'200':
|
|
1050
|
+
description: Success
|
|
1051
|
+
body:
|
|
1052
|
+
application/json:
|
|
1053
|
+
type: SlackBridgePostMessageOutputRepresentation
|
|
1054
|
+
body:
|
|
1055
|
+
application/json:
|
|
1056
|
+
type: SlackBridgePostMessageInputRepresentation
|
|
1057
|
+
(oas-body-name): slackMessagePostRequest
|
|
1058
|
+
/open:
|
|
1059
|
+
post:
|
|
1060
|
+
displayName: openSlackConversation
|
|
1061
|
+
description: Request to open a Slack conversation
|
|
1062
|
+
responses:
|
|
1063
|
+
'200':
|
|
1064
|
+
description: Success
|
|
1065
|
+
body:
|
|
1066
|
+
application/json:
|
|
1067
|
+
type: SlackBridgeConversationOpenOutputRepresentation
|
|
1068
|
+
body:
|
|
1069
|
+
application/json:
|
|
1070
|
+
type: SlackBridgeConversationOpenInputRepresentation
|
|
1071
|
+
(oas-body-name): slackConversationOpenRequest
|
|
1032
1072
|
/files:
|
|
1033
1073
|
post:
|
|
1034
1074
|
displayName: postSlackFile
|
package/src/raml/luvio.raml
CHANGED
|
@@ -10,6 +10,10 @@ uses:
|
|
|
10
10
|
types:
|
|
11
11
|
SlackBridgeConversationOutputRepresentation:
|
|
12
12
|
(luvio.ttl): 500
|
|
13
|
+
SlackBridgeConversationOpenOutputRepresentation:
|
|
14
|
+
(luvio.ttl): 500
|
|
15
|
+
(luvio.key):
|
|
16
|
+
channelId: channelId
|
|
13
17
|
SlackBridgeFileOutputRepresentation:
|
|
14
18
|
(luvio.key):
|
|
15
19
|
uniqueKey: uniqueKey
|
|
@@ -63,13 +67,18 @@ types:
|
|
|
63
67
|
(luvio.ttl): 500
|
|
64
68
|
|
|
65
69
|
/connect/slackbridge:
|
|
66
|
-
/conversation
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
/conversation:
|
|
71
|
+
/messages:
|
|
72
|
+
get:
|
|
73
|
+
(luvio.adapter):
|
|
74
|
+
name: getSlackConversation
|
|
75
|
+
post:
|
|
76
|
+
(luvio.adapter):
|
|
77
|
+
name: postSlackConversation
|
|
78
|
+
/open:
|
|
79
|
+
post:
|
|
80
|
+
(luvio.adapter):
|
|
81
|
+
name: openSlackConversation
|
|
73
82
|
/files:
|
|
74
83
|
post:
|
|
75
84
|
(luvio.adapter):
|