@salesforce/lds-adapters-platform-slack-bridge 1.366.0 → 1.367.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.
@@ -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 = "bcaac31b87fd56b593eac50b497f7c53";
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)) {
@@ -4227,7 +4252,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
4227
4252
  });
4228
4253
  }
4229
4254
 
4230
- const VERSION$h = "e44783fc9e817e6accf3f3d286c3f0fe";
4255
+ const VERSION$h = "cb9ed1d2eccad9c0a25f91c023a3f068";
4231
4256
  function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4232
4257
  const v_error = (() => {
4233
4258
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4511,6 +4536,32 @@ function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4511
4536
  message += '\n' + obj_replyUsersCount_union1.split('\n').map((line) => '\t' + line).join('\n');
4512
4537
  return new TypeError(message);
4513
4538
  }
4539
+ const obj_slackInviterId = obj.slackInviterId;
4540
+ const path_slackInviterId = path + '.slackInviterId';
4541
+ let obj_slackInviterId_union0 = null;
4542
+ const obj_slackInviterId_union0_error = (() => {
4543
+ if (typeof obj_slackInviterId !== 'string') {
4544
+ return new TypeError('Expected "string" but received "' + typeof obj_slackInviterId + '" (at "' + path_slackInviterId + '")');
4545
+ }
4546
+ })();
4547
+ if (obj_slackInviterId_union0_error != null) {
4548
+ obj_slackInviterId_union0 = obj_slackInviterId_union0_error.message;
4549
+ }
4550
+ let obj_slackInviterId_union1 = null;
4551
+ const obj_slackInviterId_union1_error = (() => {
4552
+ if (obj_slackInviterId !== null) {
4553
+ return new TypeError('Expected "null" but received "' + typeof obj_slackInviterId + '" (at "' + path_slackInviterId + '")');
4554
+ }
4555
+ })();
4556
+ if (obj_slackInviterId_union1_error != null) {
4557
+ obj_slackInviterId_union1 = obj_slackInviterId_union1_error.message;
4558
+ }
4559
+ if (obj_slackInviterId_union0 && obj_slackInviterId_union1) {
4560
+ let message = 'Object doesn\'t match union (at "' + path_slackInviterId + '")';
4561
+ message += '\n' + obj_slackInviterId_union0.split('\n').map((line) => '\t' + line).join('\n');
4562
+ message += '\n' + obj_slackInviterId_union1.split('\n').map((line) => '\t' + line).join('\n');
4563
+ return new TypeError(message);
4564
+ }
4514
4565
  const obj_slackUserId = obj.slackUserId;
4515
4566
  const path_slackUserId = path + '.slackUserId';
4516
4567
  if (typeof obj_slackUserId !== 'string') {
@@ -4696,6 +4747,10 @@ const select$E = function SlackBridgeMessageOutputRepresentationSelect() {
4696
4747
  name: 'replyUsersCount',
4697
4748
  kind: 'Scalar'
4698
4749
  },
4750
+ {
4751
+ name: 'slackInviterId',
4752
+ kind: 'Scalar'
4753
+ },
4699
4754
  {
4700
4755
  name: 'slackUserId',
4701
4756
  kind: 'Scalar'
@@ -4840,6 +4895,11 @@ function equals$h(existing, incoming) {
4840
4895
  if (!(existing_replyUsersCount === incoming_replyUsersCount)) {
4841
4896
  return false;
4842
4897
  }
4898
+ const existing_slackInviterId = existing.slackInviterId;
4899
+ const incoming_slackInviterId = incoming.slackInviterId;
4900
+ if (!(existing_slackInviterId === incoming_slackInviterId)) {
4901
+ return false;
4902
+ }
4843
4903
  const existing_subtype = existing.subtype;
4844
4904
  const incoming_subtype = incoming.subtype;
4845
4905
  if (!(existing_subtype === incoming_subtype)) {
@@ -1,7 +1,7 @@
1
1
  import { SlackBridgeReactionOutputRepresentation as SlackBridgeReactionOutputRepresentation_SlackBridgeReactionOutputRepresentation } from './SlackBridgeReactionOutputRepresentation';
2
2
  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';
3
3
  import { SlackBridgeFileOutputRepresentation as SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation } from './SlackBridgeFileOutputRepresentation';
4
- export declare const VERSION = "e44783fc9e817e6accf3f3d286c3f0fe";
4
+ export declare const VERSION = "cb9ed1d2eccad9c0a25f91c023a3f068";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: SlackBridgeMessageOutputRepresentation, existing: SlackBridgeMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeMessageOutputRepresentationNormalized;
@@ -59,6 +59,8 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
59
59
  replyUsers: Array<string>;
60
60
  /** Number of users who replied to this message */
61
61
  replyUsersCount: number | null;
62
+ /** Details of the Slack User who invited the user described by slackUserId */
63
+ slackInviterId: string | null;
62
64
  /** Details of the Slack User who posted this message */
63
65
  slackUserId: string;
64
66
  /** Sub-type of Message */
@@ -96,6 +98,7 @@ export interface SlackBridgeMessageOutputRepresentation {
96
98
  replyCount: number | null;
97
99
  replyUsers: Array<string>;
98
100
  replyUsersCount: number | null;
101
+ slackInviterId: string | null;
99
102
  slackUserId: string;
100
103
  subtype: string | null;
101
104
  threadTs: string | null;
@@ -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 = "bcaac31b87fd56b593eac50b497f7c53";
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.366.0",
3
+ "version": "1.367.0",
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.366.0"
43
+ "@salesforce/lds-bindings": "^1.367.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.366.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.367.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -3419,7 +3419,7 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
3419
3419
  });
3420
3420
  }
3421
3421
 
3422
- const VERSION$i = "e44783fc9e817e6accf3f3d286c3f0fe";
3422
+ const VERSION$i = "cb9ed1d2eccad9c0a25f91c023a3f068";
3423
3423
  function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3424
3424
  const v_error = (() => {
3425
3425
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3703,6 +3703,32 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3703
3703
  message += '\n' + obj_replyUsersCount_union1.split('\n').map((line) => '\t' + line).join('\n');
3704
3704
  return new TypeError(message);
3705
3705
  }
3706
+ const obj_slackInviterId = obj.slackInviterId;
3707
+ const path_slackInviterId = path + '.slackInviterId';
3708
+ let obj_slackInviterId_union0 = null;
3709
+ const obj_slackInviterId_union0_error = (() => {
3710
+ if (typeof obj_slackInviterId !== 'string') {
3711
+ return new TypeError('Expected "string" but received "' + typeof obj_slackInviterId + '" (at "' + path_slackInviterId + '")');
3712
+ }
3713
+ })();
3714
+ if (obj_slackInviterId_union0_error != null) {
3715
+ obj_slackInviterId_union0 = obj_slackInviterId_union0_error.message;
3716
+ }
3717
+ let obj_slackInviterId_union1 = null;
3718
+ const obj_slackInviterId_union1_error = (() => {
3719
+ if (obj_slackInviterId !== null) {
3720
+ return new TypeError('Expected "null" but received "' + typeof obj_slackInviterId + '" (at "' + path_slackInviterId + '")');
3721
+ }
3722
+ })();
3723
+ if (obj_slackInviterId_union1_error != null) {
3724
+ obj_slackInviterId_union1 = obj_slackInviterId_union1_error.message;
3725
+ }
3726
+ if (obj_slackInviterId_union0 && obj_slackInviterId_union1) {
3727
+ let message = 'Object doesn\'t match union (at "' + path_slackInviterId + '")';
3728
+ message += '\n' + obj_slackInviterId_union0.split('\n').map((line) => '\t' + line).join('\n');
3729
+ message += '\n' + obj_slackInviterId_union1.split('\n').map((line) => '\t' + line).join('\n');
3730
+ return new TypeError(message);
3731
+ }
3706
3732
  const obj_slackUserId = obj.slackUserId;
3707
3733
  const path_slackUserId = path + '.slackUserId';
3708
3734
  if (typeof obj_slackUserId !== 'string') {
@@ -3888,6 +3914,10 @@ const select$F = function SlackBridgeMessageOutputRepresentationSelect() {
3888
3914
  name: 'replyUsersCount',
3889
3915
  kind: 'Scalar'
3890
3916
  },
3917
+ {
3918
+ name: 'slackInviterId',
3919
+ kind: 'Scalar'
3920
+ },
3891
3921
  {
3892
3922
  name: 'slackUserId',
3893
3923
  kind: 'Scalar'
@@ -4032,6 +4062,11 @@ function equals$i(existing, incoming) {
4032
4062
  if (!(existing_replyUsersCount === incoming_replyUsersCount)) {
4033
4063
  return false;
4034
4064
  }
4065
+ const existing_slackInviterId = existing.slackInviterId;
4066
+ const incoming_slackInviterId = incoming.slackInviterId;
4067
+ if (!(existing_slackInviterId === incoming_slackInviterId)) {
4068
+ return false;
4069
+ }
4035
4070
  const existing_subtype = existing.subtype;
4036
4071
  const incoming_subtype = incoming.subtype;
4037
4072
  if (!(existing_subtype === incoming_subtype)) {
@@ -4860,7 +4895,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
4860
4895
  }
4861
4896
 
4862
4897
  const TTL$3 = 900000;
4863
- const VERSION$d = "bcaac31b87fd56b593eac50b497f7c53";
4898
+ const VERSION$d = "e028e881472367bb6b51398f0ceca161";
4864
4899
  function validate$d(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
4865
4900
  const v_error = (() => {
4866
4901
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5065,6 +5100,13 @@ function validate$d(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
5065
5100
  if (typeof obj_isAdmin !== 'boolean') {
5066
5101
  return new TypeError('Expected "boolean" but received "' + typeof obj_isAdmin + '" (at "' + path_isAdmin + '")');
5067
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
+ }
5068
5110
  const obj_isExternal = obj.isExternal;
5069
5111
  const path_isExternal = path + '.isExternal';
5070
5112
  let obj_isExternal_union0 = null;
@@ -5469,6 +5511,11 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
5469
5511
  name: 'isAdmin',
5470
5512
  kind: 'Scalar'
5471
5513
  },
5514
+ {
5515
+ name: 'isAgentforceBot',
5516
+ kind: 'Scalar',
5517
+ required: false
5518
+ },
5472
5519
  {
5473
5520
  name: 'isExternal',
5474
5521
  kind: 'Scalar'
@@ -5560,6 +5607,19 @@ function equals$d(existing, incoming) {
5560
5607
  if (!(existing_isAdmin === incoming_isAdmin)) {
5561
5608
  return false;
5562
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
+ }
5563
5623
  const existing_isOwner = existing.isOwner;
5564
5624
  const incoming_isOwner = incoming.isOwner;
5565
5625
  if (!(existing_isOwner === incoming_isOwner)) {
@@ -10773,4 +10833,4 @@ withDefaultLuvio((luvio) => {
10773
10833
  });
10774
10834
 
10775
10835
  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 };
10776
- // version: 1.366.0-bf15f04cce
10836
+ // version: 1.367.0-dc146bc62e
package/src/raml/api.raml CHANGED
@@ -642,6 +642,9 @@ types:
642
642
  replyUsersCount:
643
643
  description: Number of users who replied to this message
644
644
  type: integer | nil
645
+ slackInviterId:
646
+ description: Details of the Slack User who invited the user described by slackUserId
647
+ type: string | nil
645
648
  slackUserId:
646
649
  description: Details of the Slack User who posted this message
647
650
  type: string
@@ -861,6 +864,10 @@ types:
861
864
  isWorkflowBot:
862
865
  description: Is Slack User a workflow bot?
863
866
  type: boolean
867
+ isAgentforceBot:
868
+ description: Is Slack User an Agentforce bot?
869
+ type: boolean
870
+ required: false
864
871
  name:
865
872
  description: Name of the Slack User
866
873
  type: string