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

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.
Files changed (20) hide show
  1. package/dist/es/es2018/platform-slack-bridge.js +2085 -994
  2. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfo.d.ts +29 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfos.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getSlackDisplayLogin.d.ts +26 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -1
  7. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeSlack_display_login.d.ts +12 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId.d.ts +17 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +1 -0
  11. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +12 -1
  12. package/dist/es/es2018/types/src/generated/types/SlackBridgeDisplayLoginOutputRepresentation.d.ts +32 -0
  13. package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +27 -3
  14. package/dist/es/es2018/types/src/generated/types/SlackBridgeSlackTeamOutputRepresentation.d.ts +38 -0
  15. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +10 -7
  16. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
  17. package/package.json +3 -3
  18. package/sfdc/index.js +2010 -841
  19. package/src/raml/api.raml +127 -3
  20. package/src/raml/luvio.raml +20 -3
package/src/raml/api.raml CHANGED
@@ -2,7 +2,7 @@
2
2
  securedBy:
3
3
  - OAuth2
4
4
  title: Salesforce Connect API
5
- version: '63.0'
5
+ version: '64.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
@@ -217,6 +217,16 @@ types:
217
217
  conversationInfo:
218
218
  description: The full information describing this conversation
219
219
  type: SlackBridgeConversationInfoOutputRepresentation | nil
220
+ conversationInfos:
221
+ description: A collection of related conversations
222
+ type: array
223
+ items:
224
+ type: SlackBridgeConversationInfoOutputRepresentation
225
+ emojis:
226
+ description: A collection of emojis used in this conversation
227
+ type: array
228
+ items:
229
+ type: SlackBridgeEmojiOutputRepresentation
220
230
  history:
221
231
  description: A segment of this conversation's message history, either part
222
232
  of the top-level conversation or a single message's thread of replies
@@ -238,6 +248,16 @@ types:
238
248
  description: The websocket URL to subscribe to RTM topics associated with
239
249
  the conversation
240
250
  type: string | nil
251
+ SlackBridgeDisplayLoginOutputRepresentation:
252
+ description: Contains Salesforce Org info and Slack Team info
253
+ type: object
254
+ properties:
255
+ orgId:
256
+ description: Salesforce Org Id
257
+ type: string
258
+ slackTeam:
259
+ description: Slack Team Info
260
+ type: SlackBridgeSlackTeamOutputRepresentation
241
261
  SlackBridgeEmojiOutputRepresentation:
242
262
  description: Contains the details of a Slack Emoji
243
263
  type: object
@@ -317,7 +337,7 @@ types:
317
337
  description: Title of file.
318
338
  type: string
319
339
  SlackBridgeFileOutputRepresentation:
320
- description: Contains the details of files attached to the Slack Message
340
+ description: Contains the details of a Slack file
321
341
  type: object
322
342
  properties:
323
343
  contentDocument:
@@ -341,6 +361,30 @@ types:
341
361
  slackPermalink:
342
362
  description: Slack Permalink for the File
343
363
  type: string
364
+ thumb1024:
365
+ description: Thumbnail URL (1024 height)
366
+ type: string | nil
367
+ thumb360:
368
+ description: Thumbnail URL (360 height)
369
+ type: string | nil
370
+ thumb480:
371
+ description: Thumbnail URL (480 height)
372
+ type: string | nil
373
+ thumb720:
374
+ description: Thumbnail URL (720 height)
375
+ type: string | nil
376
+ thumb960:
377
+ description: Thumbnail URL (960 height)
378
+ type: string | nil
379
+ thumbVideo:
380
+ description: Video thumbnail
381
+ type: string | nil
382
+ thumbVideoHeight:
383
+ description: Video thumbnail height
384
+ type: integer | nil
385
+ thumbVideoWidth:
386
+ description: Video thumbnail width
387
+ type: integer | nil
344
388
  title:
345
389
  description: Title of the File
346
390
  type: string
@@ -582,6 +626,23 @@ types:
582
626
  description: The id of the Slack team (Workspace or Enterprise Org) where
583
627
  the related threads exist
584
628
  type: string
629
+ SlackBridgeSlackTeamOutputRepresentation:
630
+ description: Contains metadata about the connected slack team
631
+ type: object
632
+ properties:
633
+ status:
634
+ description: The team connection status
635
+ type: string
636
+ teamDomain:
637
+ description: The full domain name for the connected slack team or enterprise
638
+ grid
639
+ type: string
640
+ teamId:
641
+ description: The team id
642
+ type: string
643
+ teamName:
644
+ description: The team name
645
+ type: string
585
646
  SlackBridgeUpdateMessageInputRepresentation:
586
647
  description: Contains the parameters to update a message to Slack
587
648
  type: object
@@ -649,14 +710,25 @@ types:
649
710
  type: string | nil
650
711
  teamId:
651
712
  description: Slack Workspace Id
652
- type: string
713
+ type: string | nil
653
714
  title:
654
715
  description: Title of the Slack User
655
716
  type: string | nil
717
+ tz:
718
+ description: Time zone of the Slack user, ie. America/New_York
719
+ required: false
720
+ type: string | nil
721
+ tzLabel:
722
+ description: Time zone label of the Slack user, ie. Eastern Daylight Time
723
+ required: false
724
+ type: string | nil
656
725
  SlackBridgeUserInfosOutputRepresentation:
657
726
  description: Contains the list of Slack User Information
658
727
  type: object
659
728
  properties:
729
+ nextMarker:
730
+ description: Next marker used for pagination. (Optional)
731
+ type: string | nil
660
732
  searchString:
661
733
  description: String used to search this list of conversations (Optional)
662
734
  type: string | nil
@@ -788,6 +860,16 @@ types:
788
860
  description: Entity ID to get related threads
789
861
  type: string
790
862
  required: true
863
+ /slack_display_login:
864
+ get:
865
+ displayName: getSlackDisplayLogin
866
+ description: Request to get Slack Login info
867
+ responses:
868
+ '200':
869
+ description: Success
870
+ body:
871
+ application/json:
872
+ type: SlackBridgeDisplayLoginOutputRepresentation
791
873
  /team/{teamId}:
792
874
  /channel/{channelId}:
793
875
  /mark:
@@ -968,6 +1050,48 @@ types:
968
1050
  description: Id of the Slack team where the conversation exists
969
1051
  type: string
970
1052
  required: true
1053
+ /channels:
1054
+ get:
1055
+ displayName: getSlackConversationInfos
1056
+ description: Request to get a collection of a Slack conversation infos
1057
+ responses:
1058
+ '200':
1059
+ description: Success
1060
+ body:
1061
+ application/json:
1062
+ type: SlackBridgeConversationInfosOutputRepresentation
1063
+ queryParameters:
1064
+ channelIds:
1065
+ description: List of Channel Ids
1066
+ type: array
1067
+ required: true
1068
+ items:
1069
+ type: string
1070
+ (oas-collectionFormat): csv
1071
+ uriParameters:
1072
+ teamId:
1073
+ description: Id of the Slack team where the conversations exists
1074
+ type: string
1075
+ required: true
1076
+ /channels/{channelId}:
1077
+ get:
1078
+ displayName: getSlackConversationInfo
1079
+ description: Request to get a collection of a Slack conversation infos
1080
+ responses:
1081
+ '200':
1082
+ description: Success
1083
+ body:
1084
+ application/json:
1085
+ type: SlackBridgeConversationInfoOutputRepresentation
1086
+ uriParameters:
1087
+ channelId:
1088
+ description: Id of the Slack channel
1089
+ type: string
1090
+ required: true
1091
+ teamId:
1092
+ description: Id of the Slack team where the conversations exists
1093
+ type: string
1094
+ required: true
971
1095
  /emojis:
972
1096
  get:
973
1097
  displayName: getSlackEmojis
@@ -12,9 +12,8 @@ types:
12
12
  (luvio.key):
13
13
  uniqueKey: uniqueKey
14
14
  SlackBridgeUserInfoOutputRepresentation:
15
- (luvio.ttl): 600000
15
+ (luvio.ttl): 900000
16
16
  (luvio.key):
17
- teamId: teamId
18
17
  slackUserId: slackUserId
19
18
  SlackBridgePostMessageOutputRepresentation:
20
19
  (luvio.key):
@@ -36,6 +35,7 @@ types:
36
35
  (luvio.key):
37
36
  channelId: channelId
38
37
  SlackBridgeConversationInfoOutputRepresentation:
38
+ (luvio.ttl): 900000
39
39
  (luvio.key):
40
40
  id: id
41
41
  SlackBridgeRecordChannelInfoOutputRepresentation:
@@ -51,6 +51,10 @@ types:
51
51
  (luvio.ttl): 2592000000
52
52
  (luvio.key):
53
53
  name: name
54
+ SlackBridgeDisplayLoginOutputRepresentation:
55
+ (luvio.ttl): 500
56
+ SlackBridgeSlackTeamOutputRepresentation:
57
+ (luvio.ttl): 500
54
58
 
55
59
  /connect/slackbridge:
56
60
  /conversation/messages:
@@ -128,6 +132,16 @@ types:
128
132
  post:
129
133
  (luvio.adapter):
130
134
  name: postSlackMessageReactions
135
+ /channels:
136
+ get:
137
+ (luvio.adapter):
138
+ name: getSlackConversationInfos
139
+ /channels/{channelId}:
140
+ get:
141
+ (luvio.adapter):
142
+ name: getSlackConversationInfo
143
+ (luvio.key):
144
+ id: urlParams.channelId
131
145
  /emojis:
132
146
  get:
133
147
  (luvio.adapter):
@@ -157,8 +171,11 @@ types:
157
171
  name: getSlackUser
158
172
  (luvio.key):
159
173
  slackUserId: urlParams.slackUserId
160
- teamId: urlParams.teamId
161
174
  /related_threads/entity/{entityId}:
162
175
  get:
163
176
  (luvio.adapter):
164
177
  name: getRelatedThreads
178
+ /slack_display_login:
179
+ get:
180
+ (luvio.adapter):
181
+ name: getSlackDisplayLogin