@salesforce/lds-adapters-platform-slack-bridge 1.369.0 → 1.370.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.
@@ -4252,7 +4252,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
4252
4252
  });
4253
4253
  }
4254
4254
 
4255
- const VERSION$h = "cb9ed1d2eccad9c0a25f91c023a3f068";
4255
+ const VERSION$h = "57fae23c7ffb8f67218b25919d2c8e3c";
4256
4256
  function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4257
4257
  const v_error = (() => {
4258
4258
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4338,6 +4338,34 @@ function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4338
4338
  return new TypeError('Expected "object" but received "' + typeof obj_files_item + '" (at "' + path_files_item + '")');
4339
4339
  }
4340
4340
  }
4341
+ if (obj.icon !== undefined) {
4342
+ const obj_icon = obj.icon;
4343
+ const path_icon = path + '.icon';
4344
+ let obj_icon_union0 = null;
4345
+ const obj_icon_union0_error = (() => {
4346
+ if (typeof obj_icon !== 'string') {
4347
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
4348
+ }
4349
+ })();
4350
+ if (obj_icon_union0_error != null) {
4351
+ obj_icon_union0 = obj_icon_union0_error.message;
4352
+ }
4353
+ let obj_icon_union1 = null;
4354
+ const obj_icon_union1_error = (() => {
4355
+ if (obj_icon !== null) {
4356
+ return new TypeError('Expected "null" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
4357
+ }
4358
+ })();
4359
+ if (obj_icon_union1_error != null) {
4360
+ obj_icon_union1 = obj_icon_union1_error.message;
4361
+ }
4362
+ if (obj_icon_union0 && obj_icon_union1) {
4363
+ let message = 'Object doesn\'t match union (at "' + path_icon + '")';
4364
+ message += '\n' + obj_icon_union0.split('\n').map((line) => '\t' + line).join('\n');
4365
+ message += '\n' + obj_icon_union1.split('\n').map((line) => '\t' + line).join('\n');
4366
+ return new TypeError(message);
4367
+ }
4368
+ }
4341
4369
  const obj_includesCustomEmoji = obj.includesCustomEmoji;
4342
4370
  const path_includesCustomEmoji = path + '.includesCustomEmoji';
4343
4371
  let obj_includesCustomEmoji_union0 = null;
@@ -4364,6 +4392,34 @@ function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4364
4392
  message += '\n' + obj_includesCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
4365
4393
  return new TypeError(message);
4366
4394
  }
4395
+ if (obj.isBeyondFreeLimit !== undefined) {
4396
+ const obj_isBeyondFreeLimit = obj.isBeyondFreeLimit;
4397
+ const path_isBeyondFreeLimit = path + '.isBeyondFreeLimit';
4398
+ let obj_isBeyondFreeLimit_union0 = null;
4399
+ const obj_isBeyondFreeLimit_union0_error = (() => {
4400
+ if (typeof obj_isBeyondFreeLimit !== 'boolean') {
4401
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBeyondFreeLimit + '" (at "' + path_isBeyondFreeLimit + '")');
4402
+ }
4403
+ })();
4404
+ if (obj_isBeyondFreeLimit_union0_error != null) {
4405
+ obj_isBeyondFreeLimit_union0 = obj_isBeyondFreeLimit_union0_error.message;
4406
+ }
4407
+ let obj_isBeyondFreeLimit_union1 = null;
4408
+ const obj_isBeyondFreeLimit_union1_error = (() => {
4409
+ if (obj_isBeyondFreeLimit !== null) {
4410
+ return new TypeError('Expected "null" but received "' + typeof obj_isBeyondFreeLimit + '" (at "' + path_isBeyondFreeLimit + '")');
4411
+ }
4412
+ })();
4413
+ if (obj_isBeyondFreeLimit_union1_error != null) {
4414
+ obj_isBeyondFreeLimit_union1 = obj_isBeyondFreeLimit_union1_error.message;
4415
+ }
4416
+ if (obj_isBeyondFreeLimit_union0 && obj_isBeyondFreeLimit_union1) {
4417
+ let message = 'Object doesn\'t match union (at "' + path_isBeyondFreeLimit + '")';
4418
+ message += '\n' + obj_isBeyondFreeLimit_union0.split('\n').map((line) => '\t' + line).join('\n');
4419
+ message += '\n' + obj_isBeyondFreeLimit_union1.split('\n').map((line) => '\t' + line).join('\n');
4420
+ return new TypeError(message);
4421
+ }
4422
+ }
4367
4423
  const obj_isBroadcast = obj.isBroadcast;
4368
4424
  const path_isBroadcast = path + '.isBroadcast';
4369
4425
  let obj_isBroadcast_union0 = null;
@@ -4564,8 +4620,29 @@ function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4564
4620
  }
4565
4621
  const obj_slackUserId = obj.slackUserId;
4566
4622
  const path_slackUserId = path + '.slackUserId';
4567
- if (typeof obj_slackUserId !== 'string') {
4568
- return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
4623
+ let obj_slackUserId_union0 = null;
4624
+ const obj_slackUserId_union0_error = (() => {
4625
+ if (typeof obj_slackUserId !== 'string') {
4626
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
4627
+ }
4628
+ })();
4629
+ if (obj_slackUserId_union0_error != null) {
4630
+ obj_slackUserId_union0 = obj_slackUserId_union0_error.message;
4631
+ }
4632
+ let obj_slackUserId_union1 = null;
4633
+ const obj_slackUserId_union1_error = (() => {
4634
+ if (obj_slackUserId !== null) {
4635
+ return new TypeError('Expected "null" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
4636
+ }
4637
+ })();
4638
+ if (obj_slackUserId_union1_error != null) {
4639
+ obj_slackUserId_union1 = obj_slackUserId_union1_error.message;
4640
+ }
4641
+ if (obj_slackUserId_union0 && obj_slackUserId_union1) {
4642
+ let message = 'Object doesn\'t match union (at "' + path_slackUserId + '")';
4643
+ message += '\n' + obj_slackUserId_union0.split('\n').map((line) => '\t' + line).join('\n');
4644
+ message += '\n' + obj_slackUserId_union1.split('\n').map((line) => '\t' + line).join('\n');
4645
+ return new TypeError(message);
4569
4646
  }
4570
4647
  const obj_subtype = obj.subtype;
4571
4648
  const path_subtype = path + '.subtype';
@@ -4650,6 +4727,34 @@ function validate$h(obj, path = 'SlackBridgeMessageOutputRepresentation') {
4650
4727
  if (typeof obj_url !== 'string') {
4651
4728
  return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
4652
4729
  }
4730
+ if (obj.username !== undefined) {
4731
+ const obj_username = obj.username;
4732
+ const path_username = path + '.username';
4733
+ let obj_username_union0 = null;
4734
+ const obj_username_union0_error = (() => {
4735
+ if (typeof obj_username !== 'string') {
4736
+ return new TypeError('Expected "string" but received "' + typeof obj_username + '" (at "' + path_username + '")');
4737
+ }
4738
+ })();
4739
+ if (obj_username_union0_error != null) {
4740
+ obj_username_union0 = obj_username_union0_error.message;
4741
+ }
4742
+ let obj_username_union1 = null;
4743
+ const obj_username_union1_error = (() => {
4744
+ if (obj_username !== null) {
4745
+ return new TypeError('Expected "null" but received "' + typeof obj_username + '" (at "' + path_username + '")');
4746
+ }
4747
+ })();
4748
+ if (obj_username_union1_error != null) {
4749
+ obj_username_union1 = obj_username_union1_error.message;
4750
+ }
4751
+ if (obj_username_union0 && obj_username_union1) {
4752
+ let message = 'Object doesn\'t match union (at "' + path_username + '")';
4753
+ message += '\n' + obj_username_union0.split('\n').map((line) => '\t' + line).join('\n');
4754
+ message += '\n' + obj_username_union1.split('\n').map((line) => '\t' + line).join('\n');
4755
+ return new TypeError(message);
4756
+ }
4757
+ }
4653
4758
  })();
4654
4759
  return v_error === undefined ? null : v_error;
4655
4760
  }
@@ -4700,10 +4805,20 @@ const select$E = function SlackBridgeMessageOutputRepresentationSelect() {
4700
4805
  plural: true,
4701
4806
  fragment: select$F()
4702
4807
  },
4808
+ {
4809
+ name: 'icon',
4810
+ kind: 'Scalar',
4811
+ required: false
4812
+ },
4703
4813
  {
4704
4814
  name: 'includesCustomEmoji',
4705
4815
  kind: 'Scalar'
4706
4816
  },
4817
+ {
4818
+ name: 'isBeyondFreeLimit',
4819
+ kind: 'Scalar',
4820
+ required: false
4821
+ },
4707
4822
  {
4708
4823
  name: 'isBroadcast',
4709
4824
  kind: 'Scalar'
@@ -4770,6 +4885,11 @@ const select$E = function SlackBridgeMessageOutputRepresentationSelect() {
4770
4885
  {
4771
4886
  name: 'url',
4772
4887
  kind: 'Scalar'
4888
+ },
4889
+ {
4890
+ name: 'username',
4891
+ kind: 'Scalar',
4892
+ required: false
4773
4893
  }
4774
4894
  ]
4775
4895
  };
@@ -4790,11 +4910,6 @@ function equals$h(existing, incoming) {
4790
4910
  if (!(existing_messageTs === incoming_messageTs)) {
4791
4911
  return false;
4792
4912
  }
4793
- const existing_slackUserId = existing.slackUserId;
4794
- const incoming_slackUserId = incoming.slackUserId;
4795
- if (!(existing_slackUserId === incoming_slackUserId)) {
4796
- return false;
4797
- }
4798
4913
  const existing_url = existing.url;
4799
4914
  const incoming_url = incoming.url;
4800
4915
  if (!(existing_url === incoming_url)) {
@@ -4845,11 +4960,37 @@ function equals$h(existing, incoming) {
4845
4960
  if (equals_files_items === false) {
4846
4961
  return false;
4847
4962
  }
4963
+ const existing_icon = existing.icon;
4964
+ const incoming_icon = incoming.icon;
4965
+ // if at least one of these optionals is defined
4966
+ if (existing_icon !== undefined || incoming_icon !== undefined) {
4967
+ // if one of these is not defined we know the other is defined and therefore
4968
+ // not equal
4969
+ if (existing_icon === undefined || incoming_icon === undefined) {
4970
+ return false;
4971
+ }
4972
+ if (!(existing_icon === incoming_icon)) {
4973
+ return false;
4974
+ }
4975
+ }
4848
4976
  const existing_includesCustomEmoji = existing.includesCustomEmoji;
4849
4977
  const incoming_includesCustomEmoji = incoming.includesCustomEmoji;
4850
4978
  if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
4851
4979
  return false;
4852
4980
  }
4981
+ const existing_isBeyondFreeLimit = existing.isBeyondFreeLimit;
4982
+ const incoming_isBeyondFreeLimit = incoming.isBeyondFreeLimit;
4983
+ // if at least one of these optionals is defined
4984
+ if (existing_isBeyondFreeLimit !== undefined || incoming_isBeyondFreeLimit !== undefined) {
4985
+ // if one of these is not defined we know the other is defined and therefore
4986
+ // not equal
4987
+ if (existing_isBeyondFreeLimit === undefined || incoming_isBeyondFreeLimit === undefined) {
4988
+ return false;
4989
+ }
4990
+ if (!(existing_isBeyondFreeLimit === incoming_isBeyondFreeLimit)) {
4991
+ return false;
4992
+ }
4993
+ }
4853
4994
  const existing_isBroadcast = existing.isBroadcast;
4854
4995
  const incoming_isBroadcast = incoming.isBroadcast;
4855
4996
  if (!(existing_isBroadcast === incoming_isBroadcast)) {
@@ -4900,6 +5041,11 @@ function equals$h(existing, incoming) {
4900
5041
  if (!(existing_slackInviterId === incoming_slackInviterId)) {
4901
5042
  return false;
4902
5043
  }
5044
+ const existing_slackUserId = existing.slackUserId;
5045
+ const incoming_slackUserId = incoming.slackUserId;
5046
+ if (!(existing_slackUserId === incoming_slackUserId)) {
5047
+ return false;
5048
+ }
4903
5049
  const existing_subtype = existing.subtype;
4904
5050
  const incoming_subtype = incoming.subtype;
4905
5051
  if (!(existing_subtype === incoming_subtype)) {
@@ -4915,6 +5061,19 @@ function equals$h(existing, incoming) {
4915
5061
  if (!(existing_type === incoming_type)) {
4916
5062
  return false;
4917
5063
  }
5064
+ const existing_username = existing.username;
5065
+ const incoming_username = incoming.username;
5066
+ // if at least one of these optionals is defined
5067
+ if (existing_username !== undefined || incoming_username !== undefined) {
5068
+ // if one of these is not defined we know the other is defined and therefore
5069
+ // not equal
5070
+ if (existing_username === undefined || incoming_username === undefined) {
5071
+ return false;
5072
+ }
5073
+ if (!(existing_username === incoming_username)) {
5074
+ return false;
5075
+ }
5076
+ }
4918
5077
  return true;
4919
5078
  }
4920
5079
  const ingest$f = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -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 = "cb9ed1d2eccad9c0a25f91c023a3f068";
4
+ export declare const VERSION = "57fae23c7ffb8f67218b25919d2c8e3c";
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;
@@ -37,8 +37,12 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
37
37
  channelId: string | null;
38
38
  /** List of files attached to this message */
39
39
  files: Array<$64$luvio_engine_StoreLink>;
40
+ /** Sender icon url for demo bot messages */
41
+ icon?: string | null;
40
42
  /** Does this message includes Custom emoji? */
41
43
  includesCustomEmoji: boolean | null;
44
+ /** Is this message older than the limit for free teams? */
45
+ isBeyondFreeLimit?: boolean | null;
42
46
  /** Is this a reply also sent to the Channel? */
43
47
  isBroadcast: boolean | null;
44
48
  /** Can this message be edited? */
@@ -62,7 +66,7 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
62
66
  /** Details of the Slack User who invited the user described by slackUserId */
63
67
  slackInviterId: string | null;
64
68
  /** Details of the Slack User who posted this message */
65
- slackUserId: string;
69
+ slackUserId: string | null;
66
70
  /** Sub-type of Message */
67
71
  subtype: string | null;
68
72
  /** Timestamp of the thread to which this message belong to */
@@ -71,6 +75,8 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
71
75
  type: string | null;
72
76
  /** Url for this message */
73
77
  url: string;
78
+ /** Sender username for demo bot messages */
79
+ username?: string | null;
74
80
  }
75
81
  /**
76
82
  * Contains the details of Slack Message
@@ -87,7 +93,9 @@ export interface SlackBridgeMessageOutputRepresentation {
87
93
  }>;
88
94
  channelId: string | null;
89
95
  files: Array<SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation>;
96
+ icon?: string | null;
90
97
  includesCustomEmoji: boolean | null;
98
+ isBeyondFreeLimit?: boolean | null;
91
99
  isBroadcast: boolean | null;
92
100
  isEditable: boolean;
93
101
  isEdited: boolean | null;
@@ -99,9 +107,10 @@ export interface SlackBridgeMessageOutputRepresentation {
99
107
  replyUsers: Array<string>;
100
108
  replyUsersCount: number | null;
101
109
  slackInviterId: string | null;
102
- slackUserId: string;
110
+ slackUserId: string | null;
103
111
  subtype: string | null;
104
112
  threadTs: string | null;
105
113
  type: string | null;
106
114
  url: string;
115
+ username?: string | null;
107
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.369.0",
3
+ "version": "1.370.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.369.0"
43
+ "@salesforce/lds-bindings": "^1.370.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.369.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.370.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 = "cb9ed1d2eccad9c0a25f91c023a3f068";
3422
+ const VERSION$i = "57fae23c7ffb8f67218b25919d2c8e3c";
3423
3423
  function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3424
3424
  const v_error = (() => {
3425
3425
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3505,6 +3505,34 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3505
3505
  return new TypeError('Expected "object" but received "' + typeof obj_files_item + '" (at "' + path_files_item + '")');
3506
3506
  }
3507
3507
  }
3508
+ if (obj.icon !== undefined) {
3509
+ const obj_icon = obj.icon;
3510
+ const path_icon = path + '.icon';
3511
+ let obj_icon_union0 = null;
3512
+ const obj_icon_union0_error = (() => {
3513
+ if (typeof obj_icon !== 'string') {
3514
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3515
+ }
3516
+ })();
3517
+ if (obj_icon_union0_error != null) {
3518
+ obj_icon_union0 = obj_icon_union0_error.message;
3519
+ }
3520
+ let obj_icon_union1 = null;
3521
+ const obj_icon_union1_error = (() => {
3522
+ if (obj_icon !== null) {
3523
+ return new TypeError('Expected "null" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3524
+ }
3525
+ })();
3526
+ if (obj_icon_union1_error != null) {
3527
+ obj_icon_union1 = obj_icon_union1_error.message;
3528
+ }
3529
+ if (obj_icon_union0 && obj_icon_union1) {
3530
+ let message = 'Object doesn\'t match union (at "' + path_icon + '")';
3531
+ message += '\n' + obj_icon_union0.split('\n').map((line) => '\t' + line).join('\n');
3532
+ message += '\n' + obj_icon_union1.split('\n').map((line) => '\t' + line).join('\n');
3533
+ return new TypeError(message);
3534
+ }
3535
+ }
3508
3536
  const obj_includesCustomEmoji = obj.includesCustomEmoji;
3509
3537
  const path_includesCustomEmoji = path + '.includesCustomEmoji';
3510
3538
  let obj_includesCustomEmoji_union0 = null;
@@ -3531,6 +3559,34 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3531
3559
  message += '\n' + obj_includesCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
3532
3560
  return new TypeError(message);
3533
3561
  }
3562
+ if (obj.isBeyondFreeLimit !== undefined) {
3563
+ const obj_isBeyondFreeLimit = obj.isBeyondFreeLimit;
3564
+ const path_isBeyondFreeLimit = path + '.isBeyondFreeLimit';
3565
+ let obj_isBeyondFreeLimit_union0 = null;
3566
+ const obj_isBeyondFreeLimit_union0_error = (() => {
3567
+ if (typeof obj_isBeyondFreeLimit !== 'boolean') {
3568
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBeyondFreeLimit + '" (at "' + path_isBeyondFreeLimit + '")');
3569
+ }
3570
+ })();
3571
+ if (obj_isBeyondFreeLimit_union0_error != null) {
3572
+ obj_isBeyondFreeLimit_union0 = obj_isBeyondFreeLimit_union0_error.message;
3573
+ }
3574
+ let obj_isBeyondFreeLimit_union1 = null;
3575
+ const obj_isBeyondFreeLimit_union1_error = (() => {
3576
+ if (obj_isBeyondFreeLimit !== null) {
3577
+ return new TypeError('Expected "null" but received "' + typeof obj_isBeyondFreeLimit + '" (at "' + path_isBeyondFreeLimit + '")');
3578
+ }
3579
+ })();
3580
+ if (obj_isBeyondFreeLimit_union1_error != null) {
3581
+ obj_isBeyondFreeLimit_union1 = obj_isBeyondFreeLimit_union1_error.message;
3582
+ }
3583
+ if (obj_isBeyondFreeLimit_union0 && obj_isBeyondFreeLimit_union1) {
3584
+ let message = 'Object doesn\'t match union (at "' + path_isBeyondFreeLimit + '")';
3585
+ message += '\n' + obj_isBeyondFreeLimit_union0.split('\n').map((line) => '\t' + line).join('\n');
3586
+ message += '\n' + obj_isBeyondFreeLimit_union1.split('\n').map((line) => '\t' + line).join('\n');
3587
+ return new TypeError(message);
3588
+ }
3589
+ }
3534
3590
  const obj_isBroadcast = obj.isBroadcast;
3535
3591
  const path_isBroadcast = path + '.isBroadcast';
3536
3592
  let obj_isBroadcast_union0 = null;
@@ -3731,8 +3787,29 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3731
3787
  }
3732
3788
  const obj_slackUserId = obj.slackUserId;
3733
3789
  const path_slackUserId = path + '.slackUserId';
3734
- if (typeof obj_slackUserId !== 'string') {
3735
- return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
3790
+ let obj_slackUserId_union0 = null;
3791
+ const obj_slackUserId_union0_error = (() => {
3792
+ if (typeof obj_slackUserId !== 'string') {
3793
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
3794
+ }
3795
+ })();
3796
+ if (obj_slackUserId_union0_error != null) {
3797
+ obj_slackUserId_union0 = obj_slackUserId_union0_error.message;
3798
+ }
3799
+ let obj_slackUserId_union1 = null;
3800
+ const obj_slackUserId_union1_error = (() => {
3801
+ if (obj_slackUserId !== null) {
3802
+ return new TypeError('Expected "null" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
3803
+ }
3804
+ })();
3805
+ if (obj_slackUserId_union1_error != null) {
3806
+ obj_slackUserId_union1 = obj_slackUserId_union1_error.message;
3807
+ }
3808
+ if (obj_slackUserId_union0 && obj_slackUserId_union1) {
3809
+ let message = 'Object doesn\'t match union (at "' + path_slackUserId + '")';
3810
+ message += '\n' + obj_slackUserId_union0.split('\n').map((line) => '\t' + line).join('\n');
3811
+ message += '\n' + obj_slackUserId_union1.split('\n').map((line) => '\t' + line).join('\n');
3812
+ return new TypeError(message);
3736
3813
  }
3737
3814
  const obj_subtype = obj.subtype;
3738
3815
  const path_subtype = path + '.subtype';
@@ -3817,6 +3894,34 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3817
3894
  if (typeof obj_url !== 'string') {
3818
3895
  return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
3819
3896
  }
3897
+ if (obj.username !== undefined) {
3898
+ const obj_username = obj.username;
3899
+ const path_username = path + '.username';
3900
+ let obj_username_union0 = null;
3901
+ const obj_username_union0_error = (() => {
3902
+ if (typeof obj_username !== 'string') {
3903
+ return new TypeError('Expected "string" but received "' + typeof obj_username + '" (at "' + path_username + '")');
3904
+ }
3905
+ })();
3906
+ if (obj_username_union0_error != null) {
3907
+ obj_username_union0 = obj_username_union0_error.message;
3908
+ }
3909
+ let obj_username_union1 = null;
3910
+ const obj_username_union1_error = (() => {
3911
+ if (obj_username !== null) {
3912
+ return new TypeError('Expected "null" but received "' + typeof obj_username + '" (at "' + path_username + '")');
3913
+ }
3914
+ })();
3915
+ if (obj_username_union1_error != null) {
3916
+ obj_username_union1 = obj_username_union1_error.message;
3917
+ }
3918
+ if (obj_username_union0 && obj_username_union1) {
3919
+ let message = 'Object doesn\'t match union (at "' + path_username + '")';
3920
+ message += '\n' + obj_username_union0.split('\n').map((line) => '\t' + line).join('\n');
3921
+ message += '\n' + obj_username_union1.split('\n').map((line) => '\t' + line).join('\n');
3922
+ return new TypeError(message);
3923
+ }
3924
+ }
3820
3925
  })();
3821
3926
  return v_error === undefined ? null : v_error;
3822
3927
  }
@@ -3867,10 +3972,20 @@ const select$F = function SlackBridgeMessageOutputRepresentationSelect() {
3867
3972
  plural: true,
3868
3973
  fragment: select$G()
3869
3974
  },
3975
+ {
3976
+ name: 'icon',
3977
+ kind: 'Scalar',
3978
+ required: false
3979
+ },
3870
3980
  {
3871
3981
  name: 'includesCustomEmoji',
3872
3982
  kind: 'Scalar'
3873
3983
  },
3984
+ {
3985
+ name: 'isBeyondFreeLimit',
3986
+ kind: 'Scalar',
3987
+ required: false
3988
+ },
3874
3989
  {
3875
3990
  name: 'isBroadcast',
3876
3991
  kind: 'Scalar'
@@ -3937,6 +4052,11 @@ const select$F = function SlackBridgeMessageOutputRepresentationSelect() {
3937
4052
  {
3938
4053
  name: 'url',
3939
4054
  kind: 'Scalar'
4055
+ },
4056
+ {
4057
+ name: 'username',
4058
+ kind: 'Scalar',
4059
+ required: false
3940
4060
  }
3941
4061
  ]
3942
4062
  };
@@ -3957,11 +4077,6 @@ function equals$i(existing, incoming) {
3957
4077
  if (!(existing_messageTs === incoming_messageTs)) {
3958
4078
  return false;
3959
4079
  }
3960
- const existing_slackUserId = existing.slackUserId;
3961
- const incoming_slackUserId = incoming.slackUserId;
3962
- if (!(existing_slackUserId === incoming_slackUserId)) {
3963
- return false;
3964
- }
3965
4080
  const existing_url = existing.url;
3966
4081
  const incoming_url = incoming.url;
3967
4082
  if (!(existing_url === incoming_url)) {
@@ -4012,11 +4127,37 @@ function equals$i(existing, incoming) {
4012
4127
  if (equals_files_items === false) {
4013
4128
  return false;
4014
4129
  }
4130
+ const existing_icon = existing.icon;
4131
+ const incoming_icon = incoming.icon;
4132
+ // if at least one of these optionals is defined
4133
+ if (existing_icon !== undefined || incoming_icon !== undefined) {
4134
+ // if one of these is not defined we know the other is defined and therefore
4135
+ // not equal
4136
+ if (existing_icon === undefined || incoming_icon === undefined) {
4137
+ return false;
4138
+ }
4139
+ if (!(existing_icon === incoming_icon)) {
4140
+ return false;
4141
+ }
4142
+ }
4015
4143
  const existing_includesCustomEmoji = existing.includesCustomEmoji;
4016
4144
  const incoming_includesCustomEmoji = incoming.includesCustomEmoji;
4017
4145
  if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
4018
4146
  return false;
4019
4147
  }
4148
+ const existing_isBeyondFreeLimit = existing.isBeyondFreeLimit;
4149
+ const incoming_isBeyondFreeLimit = incoming.isBeyondFreeLimit;
4150
+ // if at least one of these optionals is defined
4151
+ if (existing_isBeyondFreeLimit !== undefined || incoming_isBeyondFreeLimit !== undefined) {
4152
+ // if one of these is not defined we know the other is defined and therefore
4153
+ // not equal
4154
+ if (existing_isBeyondFreeLimit === undefined || incoming_isBeyondFreeLimit === undefined) {
4155
+ return false;
4156
+ }
4157
+ if (!(existing_isBeyondFreeLimit === incoming_isBeyondFreeLimit)) {
4158
+ return false;
4159
+ }
4160
+ }
4020
4161
  const existing_isBroadcast = existing.isBroadcast;
4021
4162
  const incoming_isBroadcast = incoming.isBroadcast;
4022
4163
  if (!(existing_isBroadcast === incoming_isBroadcast)) {
@@ -4067,6 +4208,11 @@ function equals$i(existing, incoming) {
4067
4208
  if (!(existing_slackInviterId === incoming_slackInviterId)) {
4068
4209
  return false;
4069
4210
  }
4211
+ const existing_slackUserId = existing.slackUserId;
4212
+ const incoming_slackUserId = incoming.slackUserId;
4213
+ if (!(existing_slackUserId === incoming_slackUserId)) {
4214
+ return false;
4215
+ }
4070
4216
  const existing_subtype = existing.subtype;
4071
4217
  const incoming_subtype = incoming.subtype;
4072
4218
  if (!(existing_subtype === incoming_subtype)) {
@@ -4082,6 +4228,19 @@ function equals$i(existing, incoming) {
4082
4228
  if (!(existing_type === incoming_type)) {
4083
4229
  return false;
4084
4230
  }
4231
+ const existing_username = existing.username;
4232
+ const incoming_username = incoming.username;
4233
+ // if at least one of these optionals is defined
4234
+ if (existing_username !== undefined || incoming_username !== undefined) {
4235
+ // if one of these is not defined we know the other is defined and therefore
4236
+ // not equal
4237
+ if (existing_username === undefined || incoming_username === undefined) {
4238
+ return false;
4239
+ }
4240
+ if (!(existing_username === incoming_username)) {
4241
+ return false;
4242
+ }
4243
+ }
4085
4244
  return true;
4086
4245
  }
4087
4246
  const ingest$e = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -10834,4 +10993,4 @@ withDefaultLuvio((luvio) => {
10834
10993
  });
10835
10994
 
10836
10995
  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 };
10837
- // version: 1.369.0-7bf258f54c
10996
+ // version: 1.370.0-7c1df2520b
package/src/raml/api.raml CHANGED
@@ -2,7 +2,7 @@
2
2
  securedBy:
3
3
  - OAuth2
4
4
  title: Salesforce Connect API
5
- version: '64.0'
5
+ version: '65.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
@@ -605,9 +605,17 @@ types:
605
605
  type: array
606
606
  items:
607
607
  type: SlackBridgeFileOutputRepresentation
608
+ icon:
609
+ description: Sender icon url for demo bot messages
610
+ type: string | nil
611
+ required: false
608
612
  includesCustomEmoji:
609
613
  description: Does this message includes Custom emoji?
610
614
  type: boolean | nil
615
+ isBeyondFreeLimit:
616
+ description: Is this message older than the limit for free teams?
617
+ type: boolean | nil
618
+ required: false
611
619
  isBroadcast:
612
620
  description: Is this a reply also sent to the Channel?
613
621
  type: boolean | nil
@@ -647,7 +655,7 @@ types:
647
655
  type: string | nil
648
656
  slackUserId:
649
657
  description: Details of the Slack User who posted this message
650
- type: string
658
+ type: string | nil
651
659
  subtype:
652
660
  description: Sub-type of Message
653
661
  type: string | nil
@@ -660,6 +668,10 @@ types:
660
668
  url:
661
669
  description: Url for this message
662
670
  type: string
671
+ username:
672
+ description: Sender username for demo bot messages
673
+ type: string | nil
674
+ required: false
663
675
  SlackBridgePostMessageInputRepresentation:
664
676
  description: Contains the parameters to post a message to Slack
665
677
  type: object