@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev13 → 1.354.0-dev14
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 +28 -2
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeConversationMessages.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +29 -3
- package/src/raml/api.raml +8 -0
|
@@ -601,7 +601,7 @@ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
const TTL$5 = 900000;
|
|
604
|
-
const VERSION$q = "
|
|
604
|
+
const VERSION$q = "e028e881472367bb6b51398f0ceca161";
|
|
605
605
|
function validate$q(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
606
606
|
const v_error = (() => {
|
|
607
607
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -806,6 +806,13 @@ function validate$q(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
806
806
|
if (typeof obj_isAdmin !== 'boolean') {
|
|
807
807
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isAdmin + '" (at "' + path_isAdmin + '")');
|
|
808
808
|
}
|
|
809
|
+
if (obj.isAgentforceBot !== undefined) {
|
|
810
|
+
const obj_isAgentforceBot = obj.isAgentforceBot;
|
|
811
|
+
const path_isAgentforceBot = path + '.isAgentforceBot';
|
|
812
|
+
if (typeof obj_isAgentforceBot !== 'boolean') {
|
|
813
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAgentforceBot + '" (at "' + path_isAgentforceBot + '")');
|
|
814
|
+
}
|
|
815
|
+
}
|
|
809
816
|
const obj_isExternal = obj.isExternal;
|
|
810
817
|
const path_isExternal = path + '.isExternal';
|
|
811
818
|
let obj_isExternal_union0 = null;
|
|
@@ -1210,6 +1217,11 @@ const select$N = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1210
1217
|
name: 'isAdmin',
|
|
1211
1218
|
kind: 'Scalar'
|
|
1212
1219
|
},
|
|
1220
|
+
{
|
|
1221
|
+
name: 'isAgentforceBot',
|
|
1222
|
+
kind: 'Scalar',
|
|
1223
|
+
required: false
|
|
1224
|
+
},
|
|
1213
1225
|
{
|
|
1214
1226
|
name: 'isExternal',
|
|
1215
1227
|
kind: 'Scalar'
|
|
@@ -1301,6 +1313,19 @@ function equals$q(existing, incoming) {
|
|
|
1301
1313
|
if (!(existing_isAdmin === incoming_isAdmin)) {
|
|
1302
1314
|
return false;
|
|
1303
1315
|
}
|
|
1316
|
+
const existing_isAgentforceBot = existing.isAgentforceBot;
|
|
1317
|
+
const incoming_isAgentforceBot = incoming.isAgentforceBot;
|
|
1318
|
+
// if at least one of these optionals is defined
|
|
1319
|
+
if (existing_isAgentforceBot !== undefined || incoming_isAgentforceBot !== undefined) {
|
|
1320
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1321
|
+
// not equal
|
|
1322
|
+
if (existing_isAgentforceBot === undefined || incoming_isAgentforceBot === undefined) {
|
|
1323
|
+
return false;
|
|
1324
|
+
}
|
|
1325
|
+
if (!(existing_isAgentforceBot === incoming_isAgentforceBot)) {
|
|
1326
|
+
return false;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1304
1329
|
const existing_isOwner = existing.isOwner;
|
|
1305
1330
|
const incoming_isOwner = incoming.isOwner;
|
|
1306
1331
|
if (!(existing_isOwner === incoming_isOwner)) {
|
|
@@ -5516,7 +5541,7 @@ function select$B(luvio, params) {
|
|
|
5516
5541
|
return select$C();
|
|
5517
5542
|
}
|
|
5518
5543
|
function keyBuilder$F(luvio, params) {
|
|
5519
|
-
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
5544
|
+
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'noEmojis:' + params.queryParams.noEmojis + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
5520
5545
|
}
|
|
5521
5546
|
function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
|
|
5522
5547
|
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$F(luvio, resourceParams));
|
|
@@ -5571,6 +5596,7 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
5571
5596
|
generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5572
5597
|
generateParamConfigMetadata('latestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5573
5598
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5599
|
+
generateParamConfigMetadata('noEmojis', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5574
5600
|
generateParamConfigMetadata('oldestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5575
5601
|
generateParamConfigMetadata('parentMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5576
5602
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SlackBridgeEnterpriseUserInfoOutputRepresentation as SlackBridgeEnterpr
|
|
|
2
2
|
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';
|
|
3
3
|
import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
|
|
4
4
|
export declare const TTL = 900000;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "e028e881472367bb6b51398f0ceca161";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -53,6 +53,8 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
|
|
|
53
53
|
isActive: boolean | null;
|
|
54
54
|
/** Is Slack User an admin? */
|
|
55
55
|
isAdmin: boolean;
|
|
56
|
+
/** Is Slack User an Agentforce bot? */
|
|
57
|
+
isAgentforceBot?: boolean;
|
|
56
58
|
/** Is Slack User external? */
|
|
57
59
|
isExternal: boolean | null;
|
|
58
60
|
/** Is Slack User an owner? */
|
|
@@ -106,6 +108,7 @@ export interface SlackBridgeUserInfoOutputRepresentation {
|
|
|
106
108
|
inHuddle: boolean | null;
|
|
107
109
|
isActive: boolean | null;
|
|
108
110
|
isAdmin: boolean;
|
|
111
|
+
isAgentforceBot?: boolean;
|
|
109
112
|
isExternal: boolean | null;
|
|
110
113
|
isOwner: boolean;
|
|
111
114
|
isPrimaryOwner: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-slack-bridge",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.0-dev14",
|
|
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.354.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.354.0-dev14"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev14"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -4895,7 +4895,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4895
4895
|
}
|
|
4896
4896
|
|
|
4897
4897
|
const TTL$3 = 900000;
|
|
4898
|
-
const VERSION$d = "
|
|
4898
|
+
const VERSION$d = "e028e881472367bb6b51398f0ceca161";
|
|
4899
4899
|
function validate$d(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
4900
4900
|
const v_error = (() => {
|
|
4901
4901
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5100,6 +5100,13 @@ function validate$d(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
5100
5100
|
if (typeof obj_isAdmin !== 'boolean') {
|
|
5101
5101
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isAdmin + '" (at "' + path_isAdmin + '")');
|
|
5102
5102
|
}
|
|
5103
|
+
if (obj.isAgentforceBot !== undefined) {
|
|
5104
|
+
const obj_isAgentforceBot = obj.isAgentforceBot;
|
|
5105
|
+
const path_isAgentforceBot = path + '.isAgentforceBot';
|
|
5106
|
+
if (typeof obj_isAgentforceBot !== 'boolean') {
|
|
5107
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAgentforceBot + '" (at "' + path_isAgentforceBot + '")');
|
|
5108
|
+
}
|
|
5109
|
+
}
|
|
5103
5110
|
const obj_isExternal = obj.isExternal;
|
|
5104
5111
|
const path_isExternal = path + '.isExternal';
|
|
5105
5112
|
let obj_isExternal_union0 = null;
|
|
@@ -5504,6 +5511,11 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
5504
5511
|
name: 'isAdmin',
|
|
5505
5512
|
kind: 'Scalar'
|
|
5506
5513
|
},
|
|
5514
|
+
{
|
|
5515
|
+
name: 'isAgentforceBot',
|
|
5516
|
+
kind: 'Scalar',
|
|
5517
|
+
required: false
|
|
5518
|
+
},
|
|
5507
5519
|
{
|
|
5508
5520
|
name: 'isExternal',
|
|
5509
5521
|
kind: 'Scalar'
|
|
@@ -5595,6 +5607,19 @@ function equals$d(existing, incoming) {
|
|
|
5595
5607
|
if (!(existing_isAdmin === incoming_isAdmin)) {
|
|
5596
5608
|
return false;
|
|
5597
5609
|
}
|
|
5610
|
+
const existing_isAgentforceBot = existing.isAgentforceBot;
|
|
5611
|
+
const incoming_isAgentforceBot = incoming.isAgentforceBot;
|
|
5612
|
+
// if at least one of these optionals is defined
|
|
5613
|
+
if (existing_isAgentforceBot !== undefined || incoming_isAgentforceBot !== undefined) {
|
|
5614
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5615
|
+
// not equal
|
|
5616
|
+
if (existing_isAgentforceBot === undefined || incoming_isAgentforceBot === undefined) {
|
|
5617
|
+
return false;
|
|
5618
|
+
}
|
|
5619
|
+
if (!(existing_isAgentforceBot === incoming_isAgentforceBot)) {
|
|
5620
|
+
return false;
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5598
5623
|
const existing_isOwner = existing.isOwner;
|
|
5599
5624
|
const incoming_isOwner = incoming.isOwner;
|
|
5600
5625
|
if (!(existing_isOwner === incoming_isOwner)) {
|
|
@@ -6393,7 +6418,7 @@ function select$w(luvio, params) {
|
|
|
6393
6418
|
return select$x();
|
|
6394
6419
|
}
|
|
6395
6420
|
function keyBuilder$x(luvio, params) {
|
|
6396
|
-
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
6421
|
+
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'noEmojis:' + params.queryParams.noEmojis + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
6397
6422
|
}
|
|
6398
6423
|
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
6399
6424
|
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
@@ -6448,6 +6473,7 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
6448
6473
|
generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6449
6474
|
generateParamConfigMetadata('latestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6450
6475
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6476
|
+
generateParamConfigMetadata('noEmojis', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6451
6477
|
generateParamConfigMetadata('oldestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6452
6478
|
generateParamConfigMetadata('parentMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6453
6479
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -10808,4 +10834,4 @@ withDefaultLuvio((luvio) => {
|
|
|
10808
10834
|
});
|
|
10809
10835
|
|
|
10810
10836
|
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfo_imperative, getSlackConversationInfos, getSlackConversationInfos_imperative, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackDisplayLogin, getSlackDisplayLogin_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchMPIMs, getSlackSearchMPIMs_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
10811
|
-
// version: 1.354.0-
|
|
10837
|
+
// version: 1.354.0-dev14-7a32f8b92f
|
package/src/raml/api.raml
CHANGED
|
@@ -864,6 +864,10 @@ types:
|
|
|
864
864
|
isWorkflowBot:
|
|
865
865
|
description: Is Slack User a workflow bot?
|
|
866
866
|
type: boolean
|
|
867
|
+
isAgentforceBot:
|
|
868
|
+
description: Is Slack User an Agentforce bot?
|
|
869
|
+
type: boolean
|
|
870
|
+
required: false
|
|
867
871
|
name:
|
|
868
872
|
description: Name of the Slack User
|
|
869
873
|
type: string
|
|
@@ -949,6 +953,10 @@ types:
|
|
|
949
953
|
number of messages may be returned.
|
|
950
954
|
type: integer
|
|
951
955
|
required: false
|
|
956
|
+
noEmojis:
|
|
957
|
+
description: Do not search for references to custom emojis
|
|
958
|
+
type: boolean
|
|
959
|
+
required: false
|
|
952
960
|
oldestMessageTs:
|
|
953
961
|
description: Only messages after this Unix timestamp will be included in
|
|
954
962
|
results. Default is the current time.
|