@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev12 → 1.354.0-dev13

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.
@@ -4227,7 +4227,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
4227
4227
  });
4228
4228
  }
4229
4229
 
4230
- const VERSION$h = "e44783fc9e817e6accf3f3d286c3f0fe";
4230
+ const VERSION$h = "cb9ed1d2eccad9c0a25f91c023a3f068";
4231
4231
  function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4232
4232
  const v_error = (() => {
4233
4233
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4511,6 +4511,32 @@ function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4511
4511
  message += '\n' + obj_replyUsersCount_union1.split('\n').map((line) => '\t' + line).join('\n');
4512
4512
  return new TypeError(message);
4513
4513
  }
4514
+ const obj_slackInviterId = obj.slackInviterId;
4515
+ const path_slackInviterId = path + '.slackInviterId';
4516
+ let obj_slackInviterId_union0 = null;
4517
+ const obj_slackInviterId_union0_error = (() => {
4518
+ if (typeof obj_slackInviterId !== 'string') {
4519
+ return new TypeError('Expected "string" but received "' + typeof obj_slackInviterId + '" (at "' + path_slackInviterId + '")');
4520
+ }
4521
+ })();
4522
+ if (obj_slackInviterId_union0_error != null) {
4523
+ obj_slackInviterId_union0 = obj_slackInviterId_union0_error.message;
4524
+ }
4525
+ let obj_slackInviterId_union1 = null;
4526
+ const obj_slackInviterId_union1_error = (() => {
4527
+ if (obj_slackInviterId !== null) {
4528
+ return new TypeError('Expected "null" but received "' + typeof obj_slackInviterId + '" (at "' + path_slackInviterId + '")');
4529
+ }
4530
+ })();
4531
+ if (obj_slackInviterId_union1_error != null) {
4532
+ obj_slackInviterId_union1 = obj_slackInviterId_union1_error.message;
4533
+ }
4534
+ if (obj_slackInviterId_union0 && obj_slackInviterId_union1) {
4535
+ let message = 'Object doesn\'t match union (at "' + path_slackInviterId + '")';
4536
+ message += '\n' + obj_slackInviterId_union0.split('\n').map((line) => '\t' + line).join('\n');
4537
+ message += '\n' + obj_slackInviterId_union1.split('\n').map((line) => '\t' + line).join('\n');
4538
+ return new TypeError(message);
4539
+ }
4514
4540
  const obj_slackUserId = obj.slackUserId;
4515
4541
  const path_slackUserId = path + '.slackUserId';
4516
4542
  if (typeof obj_slackUserId !== 'string') {
@@ -4696,6 +4722,10 @@ const select$E = function SlackBridgeMessageOutputRepresentationSelect() {
4696
4722
  name: 'replyUsersCount',
4697
4723
  kind: 'Scalar'
4698
4724
  },
4725
+ {
4726
+ name: 'slackInviterId',
4727
+ kind: 'Scalar'
4728
+ },
4699
4729
  {
4700
4730
  name: 'slackUserId',
4701
4731
  kind: 'Scalar'
@@ -4840,6 +4870,11 @@ function equals$h(existing, incoming) {
4840
4870
  if (!(existing_replyUsersCount === incoming_replyUsersCount)) {
4841
4871
  return false;
4842
4872
  }
4873
+ const existing_slackInviterId = existing.slackInviterId;
4874
+ const incoming_slackInviterId = incoming.slackInviterId;
4875
+ if (!(existing_slackInviterId === incoming_slackInviterId)) {
4876
+ return false;
4877
+ }
4843
4878
  const existing_subtype = existing.subtype;
4844
4879
  const incoming_subtype = incoming.subtype;
4845
4880
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.354.0-dev12",
3
+ "version": "1.354.0-dev13",
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-dev12"
43
+ "@salesforce/lds-bindings": "^1.354.0-dev13"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.354.0-dev12"
46
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev13"
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)) {
@@ -10773,4 +10808,4 @@ withDefaultLuvio((luvio) => {
10773
10808
  });
10774
10809
 
10775
10810
  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.354.0-dev12-1fd5866001
10811
+ // version: 1.354.0-dev13-272d3dd416
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