@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev14 → 1.354.0-dev16

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/sfdc/index.js CHANGED
@@ -1117,7 +1117,7 @@ function equals$o(existing, incoming) {
1117
1117
  }
1118
1118
 
1119
1119
  const TTL$6 = 900000;
1120
- const VERSION$n = "881db9651a4514e5db997e8a9fc589fe";
1120
+ const VERSION$n = "898110c1fd3651e7f407ba56cf0ca85a";
1121
1121
  function validate$n(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
1122
1122
  const v_error = (() => {
1123
1123
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1544,6 +1544,34 @@ function validate$n(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
1544
1544
  message += '\n' + obj_lastRead_union1.split('\n').map((line) => '\t' + line).join('\n');
1545
1545
  return new TypeError(message);
1546
1546
  }
1547
+ if (obj.latest !== undefined) {
1548
+ const obj_latest = obj.latest;
1549
+ const path_latest = path + '.latest';
1550
+ let obj_latest_union0 = null;
1551
+ const obj_latest_union0_error = (() => {
1552
+ if (typeof obj_latest !== 'string') {
1553
+ return new TypeError('Expected "string" but received "' + typeof obj_latest + '" (at "' + path_latest + '")');
1554
+ }
1555
+ })();
1556
+ if (obj_latest_union0_error != null) {
1557
+ obj_latest_union0 = obj_latest_union0_error.message;
1558
+ }
1559
+ let obj_latest_union1 = null;
1560
+ const obj_latest_union1_error = (() => {
1561
+ if (obj_latest !== null) {
1562
+ return new TypeError('Expected "null" but received "' + typeof obj_latest + '" (at "' + path_latest + '")');
1563
+ }
1564
+ })();
1565
+ if (obj_latest_union1_error != null) {
1566
+ obj_latest_union1 = obj_latest_union1_error.message;
1567
+ }
1568
+ if (obj_latest_union0 && obj_latest_union1) {
1569
+ let message = 'Object doesn\'t match union (at "' + path_latest + '")';
1570
+ message += '\n' + obj_latest_union0.split('\n').map((line) => '\t' + line).join('\n');
1571
+ message += '\n' + obj_latest_union1.split('\n').map((line) => '\t' + line).join('\n');
1572
+ return new TypeError(message);
1573
+ }
1574
+ }
1547
1575
  const obj_name = obj.name;
1548
1576
  const path_name = path + '.name';
1549
1577
  if (typeof obj_name !== 'string') {
@@ -1632,6 +1660,62 @@ function validate$n(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
1632
1660
  message += '\n' + obj_shouldCacheCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
1633
1661
  return new TypeError(message);
1634
1662
  }
1663
+ if (obj.unreadCount !== undefined) {
1664
+ const obj_unreadCount = obj.unreadCount;
1665
+ const path_unreadCount = path + '.unreadCount';
1666
+ let obj_unreadCount_union0 = null;
1667
+ const obj_unreadCount_union0_error = (() => {
1668
+ if (typeof obj_unreadCount !== 'number' || (typeof obj_unreadCount === 'number' && Math.floor(obj_unreadCount) !== obj_unreadCount)) {
1669
+ return new TypeError('Expected "integer" but received "' + typeof obj_unreadCount + '" (at "' + path_unreadCount + '")');
1670
+ }
1671
+ })();
1672
+ if (obj_unreadCount_union0_error != null) {
1673
+ obj_unreadCount_union0 = obj_unreadCount_union0_error.message;
1674
+ }
1675
+ let obj_unreadCount_union1 = null;
1676
+ const obj_unreadCount_union1_error = (() => {
1677
+ if (obj_unreadCount !== null) {
1678
+ return new TypeError('Expected "null" but received "' + typeof obj_unreadCount + '" (at "' + path_unreadCount + '")');
1679
+ }
1680
+ })();
1681
+ if (obj_unreadCount_union1_error != null) {
1682
+ obj_unreadCount_union1 = obj_unreadCount_union1_error.message;
1683
+ }
1684
+ if (obj_unreadCount_union0 && obj_unreadCount_union1) {
1685
+ let message = 'Object doesn\'t match union (at "' + path_unreadCount + '")';
1686
+ message += '\n' + obj_unreadCount_union0.split('\n').map((line) => '\t' + line).join('\n');
1687
+ message += '\n' + obj_unreadCount_union1.split('\n').map((line) => '\t' + line).join('\n');
1688
+ return new TypeError(message);
1689
+ }
1690
+ }
1691
+ if (obj.unreadCountDisplay !== undefined) {
1692
+ const obj_unreadCountDisplay = obj.unreadCountDisplay;
1693
+ const path_unreadCountDisplay = path + '.unreadCountDisplay';
1694
+ let obj_unreadCountDisplay_union0 = null;
1695
+ const obj_unreadCountDisplay_union0_error = (() => {
1696
+ if (typeof obj_unreadCountDisplay !== 'number' || (typeof obj_unreadCountDisplay === 'number' && Math.floor(obj_unreadCountDisplay) !== obj_unreadCountDisplay)) {
1697
+ return new TypeError('Expected "integer" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
1698
+ }
1699
+ })();
1700
+ if (obj_unreadCountDisplay_union0_error != null) {
1701
+ obj_unreadCountDisplay_union0 = obj_unreadCountDisplay_union0_error.message;
1702
+ }
1703
+ let obj_unreadCountDisplay_union1 = null;
1704
+ const obj_unreadCountDisplay_union1_error = (() => {
1705
+ if (obj_unreadCountDisplay !== null) {
1706
+ return new TypeError('Expected "null" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
1707
+ }
1708
+ })();
1709
+ if (obj_unreadCountDisplay_union1_error != null) {
1710
+ obj_unreadCountDisplay_union1 = obj_unreadCountDisplay_union1_error.message;
1711
+ }
1712
+ if (obj_unreadCountDisplay_union0 && obj_unreadCountDisplay_union1) {
1713
+ let message = 'Object doesn\'t match union (at "' + path_unreadCountDisplay + '")';
1714
+ message += '\n' + obj_unreadCountDisplay_union0.split('\n').map((line) => '\t' + line).join('\n');
1715
+ message += '\n' + obj_unreadCountDisplay_union1.split('\n').map((line) => '\t' + line).join('\n');
1716
+ return new TypeError(message);
1717
+ }
1718
+ }
1635
1719
  if (obj.url !== undefined) {
1636
1720
  const obj_url = obj.url;
1637
1721
  const path_url = path + '.url';
@@ -1730,6 +1814,11 @@ const select$K = function SlackBridgeConversationInfoOutputRepresentationSelect(
1730
1814
  name: 'lastRead',
1731
1815
  kind: 'Scalar'
1732
1816
  },
1817
+ {
1818
+ name: 'latest',
1819
+ kind: 'Scalar',
1820
+ required: false
1821
+ },
1733
1822
  {
1734
1823
  name: 'name',
1735
1824
  kind: 'Scalar'
@@ -1749,6 +1838,16 @@ const select$K = function SlackBridgeConversationInfoOutputRepresentationSelect(
1749
1838
  name: 'shouldCacheCustomEmoji',
1750
1839
  kind: 'Scalar'
1751
1840
  },
1841
+ {
1842
+ name: 'unreadCount',
1843
+ kind: 'Scalar',
1844
+ required: false
1845
+ },
1846
+ {
1847
+ name: 'unreadCountDisplay',
1848
+ kind: 'Scalar',
1849
+ required: false
1850
+ },
1752
1851
  {
1753
1852
  name: 'url',
1754
1853
  kind: 'Scalar',
@@ -1861,6 +1960,19 @@ function equals$n(existing, incoming) {
1861
1960
  if (!(existing_lastRead === incoming_lastRead)) {
1862
1961
  return false;
1863
1962
  }
1963
+ const existing_latest = existing.latest;
1964
+ const incoming_latest = incoming.latest;
1965
+ // if at least one of these optionals is defined
1966
+ if (existing_latest !== undefined || incoming_latest !== undefined) {
1967
+ // if one of these is not defined we know the other is defined and therefore
1968
+ // not equal
1969
+ if (existing_latest === undefined || incoming_latest === undefined) {
1970
+ return false;
1971
+ }
1972
+ if (!(existing_latest === incoming_latest)) {
1973
+ return false;
1974
+ }
1975
+ }
1864
1976
  const existing_numOfMembers = existing.numOfMembers;
1865
1977
  const incoming_numOfMembers = incoming.numOfMembers;
1866
1978
  if (!(existing_numOfMembers === incoming_numOfMembers)) {
@@ -1887,6 +1999,32 @@ function equals$n(existing, incoming) {
1887
1999
  if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
1888
2000
  return false;
1889
2001
  }
2002
+ const existing_unreadCount = existing.unreadCount;
2003
+ const incoming_unreadCount = incoming.unreadCount;
2004
+ // if at least one of these optionals is defined
2005
+ if (existing_unreadCount !== undefined || incoming_unreadCount !== undefined) {
2006
+ // if one of these is not defined we know the other is defined and therefore
2007
+ // not equal
2008
+ if (existing_unreadCount === undefined || incoming_unreadCount === undefined) {
2009
+ return false;
2010
+ }
2011
+ if (!(existing_unreadCount === incoming_unreadCount)) {
2012
+ return false;
2013
+ }
2014
+ }
2015
+ const existing_unreadCountDisplay = existing.unreadCountDisplay;
2016
+ const incoming_unreadCountDisplay = incoming.unreadCountDisplay;
2017
+ // if at least one of these optionals is defined
2018
+ if (existing_unreadCountDisplay !== undefined || incoming_unreadCountDisplay !== undefined) {
2019
+ // if one of these is not defined we know the other is defined and therefore
2020
+ // not equal
2021
+ if (existing_unreadCountDisplay === undefined || incoming_unreadCountDisplay === undefined) {
2022
+ return false;
2023
+ }
2024
+ if (!(existing_unreadCountDisplay === incoming_unreadCountDisplay)) {
2025
+ return false;
2026
+ }
2027
+ }
1890
2028
  return true;
1891
2029
  }
1892
2030
  const ingest$g = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -3419,7 +3557,7 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
3419
3557
  });
3420
3558
  }
3421
3559
 
3422
- const VERSION$i = "cb9ed1d2eccad9c0a25f91c023a3f068";
3560
+ const VERSION$i = "57fae23c7ffb8f67218b25919d2c8e3c";
3423
3561
  function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3424
3562
  const v_error = (() => {
3425
3563
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3505,6 +3643,34 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3505
3643
  return new TypeError('Expected "object" but received "' + typeof obj_files_item + '" (at "' + path_files_item + '")');
3506
3644
  }
3507
3645
  }
3646
+ if (obj.icon !== undefined) {
3647
+ const obj_icon = obj.icon;
3648
+ const path_icon = path + '.icon';
3649
+ let obj_icon_union0 = null;
3650
+ const obj_icon_union0_error = (() => {
3651
+ if (typeof obj_icon !== 'string') {
3652
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3653
+ }
3654
+ })();
3655
+ if (obj_icon_union0_error != null) {
3656
+ obj_icon_union0 = obj_icon_union0_error.message;
3657
+ }
3658
+ let obj_icon_union1 = null;
3659
+ const obj_icon_union1_error = (() => {
3660
+ if (obj_icon !== null) {
3661
+ return new TypeError('Expected "null" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
3662
+ }
3663
+ })();
3664
+ if (obj_icon_union1_error != null) {
3665
+ obj_icon_union1 = obj_icon_union1_error.message;
3666
+ }
3667
+ if (obj_icon_union0 && obj_icon_union1) {
3668
+ let message = 'Object doesn\'t match union (at "' + path_icon + '")';
3669
+ message += '\n' + obj_icon_union0.split('\n').map((line) => '\t' + line).join('\n');
3670
+ message += '\n' + obj_icon_union1.split('\n').map((line) => '\t' + line).join('\n');
3671
+ return new TypeError(message);
3672
+ }
3673
+ }
3508
3674
  const obj_includesCustomEmoji = obj.includesCustomEmoji;
3509
3675
  const path_includesCustomEmoji = path + '.includesCustomEmoji';
3510
3676
  let obj_includesCustomEmoji_union0 = null;
@@ -3531,6 +3697,34 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3531
3697
  message += '\n' + obj_includesCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
3532
3698
  return new TypeError(message);
3533
3699
  }
3700
+ if (obj.isBeyondFreeLimit !== undefined) {
3701
+ const obj_isBeyondFreeLimit = obj.isBeyondFreeLimit;
3702
+ const path_isBeyondFreeLimit = path + '.isBeyondFreeLimit';
3703
+ let obj_isBeyondFreeLimit_union0 = null;
3704
+ const obj_isBeyondFreeLimit_union0_error = (() => {
3705
+ if (typeof obj_isBeyondFreeLimit !== 'boolean') {
3706
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBeyondFreeLimit + '" (at "' + path_isBeyondFreeLimit + '")');
3707
+ }
3708
+ })();
3709
+ if (obj_isBeyondFreeLimit_union0_error != null) {
3710
+ obj_isBeyondFreeLimit_union0 = obj_isBeyondFreeLimit_union0_error.message;
3711
+ }
3712
+ let obj_isBeyondFreeLimit_union1 = null;
3713
+ const obj_isBeyondFreeLimit_union1_error = (() => {
3714
+ if (obj_isBeyondFreeLimit !== null) {
3715
+ return new TypeError('Expected "null" but received "' + typeof obj_isBeyondFreeLimit + '" (at "' + path_isBeyondFreeLimit + '")');
3716
+ }
3717
+ })();
3718
+ if (obj_isBeyondFreeLimit_union1_error != null) {
3719
+ obj_isBeyondFreeLimit_union1 = obj_isBeyondFreeLimit_union1_error.message;
3720
+ }
3721
+ if (obj_isBeyondFreeLimit_union0 && obj_isBeyondFreeLimit_union1) {
3722
+ let message = 'Object doesn\'t match union (at "' + path_isBeyondFreeLimit + '")';
3723
+ message += '\n' + obj_isBeyondFreeLimit_union0.split('\n').map((line) => '\t' + line).join('\n');
3724
+ message += '\n' + obj_isBeyondFreeLimit_union1.split('\n').map((line) => '\t' + line).join('\n');
3725
+ return new TypeError(message);
3726
+ }
3727
+ }
3534
3728
  const obj_isBroadcast = obj.isBroadcast;
3535
3729
  const path_isBroadcast = path + '.isBroadcast';
3536
3730
  let obj_isBroadcast_union0 = null;
@@ -3731,8 +3925,29 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3731
3925
  }
3732
3926
  const obj_slackUserId = obj.slackUserId;
3733
3927
  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 + '")');
3928
+ let obj_slackUserId_union0 = null;
3929
+ const obj_slackUserId_union0_error = (() => {
3930
+ if (typeof obj_slackUserId !== 'string') {
3931
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
3932
+ }
3933
+ })();
3934
+ if (obj_slackUserId_union0_error != null) {
3935
+ obj_slackUserId_union0 = obj_slackUserId_union0_error.message;
3936
+ }
3937
+ let obj_slackUserId_union1 = null;
3938
+ const obj_slackUserId_union1_error = (() => {
3939
+ if (obj_slackUserId !== null) {
3940
+ return new TypeError('Expected "null" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
3941
+ }
3942
+ })();
3943
+ if (obj_slackUserId_union1_error != null) {
3944
+ obj_slackUserId_union1 = obj_slackUserId_union1_error.message;
3945
+ }
3946
+ if (obj_slackUserId_union0 && obj_slackUserId_union1) {
3947
+ let message = 'Object doesn\'t match union (at "' + path_slackUserId + '")';
3948
+ message += '\n' + obj_slackUserId_union0.split('\n').map((line) => '\t' + line).join('\n');
3949
+ message += '\n' + obj_slackUserId_union1.split('\n').map((line) => '\t' + line).join('\n');
3950
+ return new TypeError(message);
3736
3951
  }
3737
3952
  const obj_subtype = obj.subtype;
3738
3953
  const path_subtype = path + '.subtype';
@@ -3817,6 +4032,34 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
3817
4032
  if (typeof obj_url !== 'string') {
3818
4033
  return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
3819
4034
  }
4035
+ if (obj.username !== undefined) {
4036
+ const obj_username = obj.username;
4037
+ const path_username = path + '.username';
4038
+ let obj_username_union0 = null;
4039
+ const obj_username_union0_error = (() => {
4040
+ if (typeof obj_username !== 'string') {
4041
+ return new TypeError('Expected "string" but received "' + typeof obj_username + '" (at "' + path_username + '")');
4042
+ }
4043
+ })();
4044
+ if (obj_username_union0_error != null) {
4045
+ obj_username_union0 = obj_username_union0_error.message;
4046
+ }
4047
+ let obj_username_union1 = null;
4048
+ const obj_username_union1_error = (() => {
4049
+ if (obj_username !== null) {
4050
+ return new TypeError('Expected "null" but received "' + typeof obj_username + '" (at "' + path_username + '")');
4051
+ }
4052
+ })();
4053
+ if (obj_username_union1_error != null) {
4054
+ obj_username_union1 = obj_username_union1_error.message;
4055
+ }
4056
+ if (obj_username_union0 && obj_username_union1) {
4057
+ let message = 'Object doesn\'t match union (at "' + path_username + '")';
4058
+ message += '\n' + obj_username_union0.split('\n').map((line) => '\t' + line).join('\n');
4059
+ message += '\n' + obj_username_union1.split('\n').map((line) => '\t' + line).join('\n');
4060
+ return new TypeError(message);
4061
+ }
4062
+ }
3820
4063
  })();
3821
4064
  return v_error === undefined ? null : v_error;
3822
4065
  }
@@ -3867,10 +4110,20 @@ const select$F = function SlackBridgeMessageOutputRepresentationSelect() {
3867
4110
  plural: true,
3868
4111
  fragment: select$G()
3869
4112
  },
4113
+ {
4114
+ name: 'icon',
4115
+ kind: 'Scalar',
4116
+ required: false
4117
+ },
3870
4118
  {
3871
4119
  name: 'includesCustomEmoji',
3872
4120
  kind: 'Scalar'
3873
4121
  },
4122
+ {
4123
+ name: 'isBeyondFreeLimit',
4124
+ kind: 'Scalar',
4125
+ required: false
4126
+ },
3874
4127
  {
3875
4128
  name: 'isBroadcast',
3876
4129
  kind: 'Scalar'
@@ -3937,6 +4190,11 @@ const select$F = function SlackBridgeMessageOutputRepresentationSelect() {
3937
4190
  {
3938
4191
  name: 'url',
3939
4192
  kind: 'Scalar'
4193
+ },
4194
+ {
4195
+ name: 'username',
4196
+ kind: 'Scalar',
4197
+ required: false
3940
4198
  }
3941
4199
  ]
3942
4200
  };
@@ -3957,11 +4215,6 @@ function equals$i(existing, incoming) {
3957
4215
  if (!(existing_messageTs === incoming_messageTs)) {
3958
4216
  return false;
3959
4217
  }
3960
- const existing_slackUserId = existing.slackUserId;
3961
- const incoming_slackUserId = incoming.slackUserId;
3962
- if (!(existing_slackUserId === incoming_slackUserId)) {
3963
- return false;
3964
- }
3965
4218
  const existing_url = existing.url;
3966
4219
  const incoming_url = incoming.url;
3967
4220
  if (!(existing_url === incoming_url)) {
@@ -4012,11 +4265,37 @@ function equals$i(existing, incoming) {
4012
4265
  if (equals_files_items === false) {
4013
4266
  return false;
4014
4267
  }
4268
+ const existing_icon = existing.icon;
4269
+ const incoming_icon = incoming.icon;
4270
+ // if at least one of these optionals is defined
4271
+ if (existing_icon !== undefined || incoming_icon !== undefined) {
4272
+ // if one of these is not defined we know the other is defined and therefore
4273
+ // not equal
4274
+ if (existing_icon === undefined || incoming_icon === undefined) {
4275
+ return false;
4276
+ }
4277
+ if (!(existing_icon === incoming_icon)) {
4278
+ return false;
4279
+ }
4280
+ }
4015
4281
  const existing_includesCustomEmoji = existing.includesCustomEmoji;
4016
4282
  const incoming_includesCustomEmoji = incoming.includesCustomEmoji;
4017
4283
  if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
4018
4284
  return false;
4019
4285
  }
4286
+ const existing_isBeyondFreeLimit = existing.isBeyondFreeLimit;
4287
+ const incoming_isBeyondFreeLimit = incoming.isBeyondFreeLimit;
4288
+ // if at least one of these optionals is defined
4289
+ if (existing_isBeyondFreeLimit !== undefined || incoming_isBeyondFreeLimit !== undefined) {
4290
+ // if one of these is not defined we know the other is defined and therefore
4291
+ // not equal
4292
+ if (existing_isBeyondFreeLimit === undefined || incoming_isBeyondFreeLimit === undefined) {
4293
+ return false;
4294
+ }
4295
+ if (!(existing_isBeyondFreeLimit === incoming_isBeyondFreeLimit)) {
4296
+ return false;
4297
+ }
4298
+ }
4020
4299
  const existing_isBroadcast = existing.isBroadcast;
4021
4300
  const incoming_isBroadcast = incoming.isBroadcast;
4022
4301
  if (!(existing_isBroadcast === incoming_isBroadcast)) {
@@ -4067,6 +4346,11 @@ function equals$i(existing, incoming) {
4067
4346
  if (!(existing_slackInviterId === incoming_slackInviterId)) {
4068
4347
  return false;
4069
4348
  }
4349
+ const existing_slackUserId = existing.slackUserId;
4350
+ const incoming_slackUserId = incoming.slackUserId;
4351
+ if (!(existing_slackUserId === incoming_slackUserId)) {
4352
+ return false;
4353
+ }
4070
4354
  const existing_subtype = existing.subtype;
4071
4355
  const incoming_subtype = incoming.subtype;
4072
4356
  if (!(existing_subtype === incoming_subtype)) {
@@ -4082,6 +4366,19 @@ function equals$i(existing, incoming) {
4082
4366
  if (!(existing_type === incoming_type)) {
4083
4367
  return false;
4084
4368
  }
4369
+ const existing_username = existing.username;
4370
+ const incoming_username = incoming.username;
4371
+ // if at least one of these optionals is defined
4372
+ if (existing_username !== undefined || incoming_username !== undefined) {
4373
+ // if one of these is not defined we know the other is defined and therefore
4374
+ // not equal
4375
+ if (existing_username === undefined || incoming_username === undefined) {
4376
+ return false;
4377
+ }
4378
+ if (!(existing_username === incoming_username)) {
4379
+ return false;
4380
+ }
4381
+ }
4085
4382
  return true;
4086
4383
  }
4087
4384
  const ingest$e = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -5820,16 +6117,93 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
5820
6117
  }
5821
6118
  }
5822
6119
 
5823
- const VERSION$c = "5145ac2c241c561e4baa29b3884748dc";
6120
+ const VERSION$c = "d2e4c202fa58b2b21daa0de3b09fc640";
5824
6121
  function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
5825
6122
  const v_error = (() => {
5826
6123
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5827
6124
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5828
6125
  }
6126
+ if (obj.centerHasMoreLatest !== undefined) {
6127
+ const obj_centerHasMoreLatest = obj.centerHasMoreLatest;
6128
+ const path_centerHasMoreLatest = path + '.centerHasMoreLatest';
6129
+ let obj_centerHasMoreLatest_union0 = null;
6130
+ const obj_centerHasMoreLatest_union0_error = (() => {
6131
+ if (typeof obj_centerHasMoreLatest !== 'boolean') {
6132
+ return new TypeError('Expected "boolean" but received "' + typeof obj_centerHasMoreLatest + '" (at "' + path_centerHasMoreLatest + '")');
6133
+ }
6134
+ })();
6135
+ if (obj_centerHasMoreLatest_union0_error != null) {
6136
+ obj_centerHasMoreLatest_union0 = obj_centerHasMoreLatest_union0_error.message;
6137
+ }
6138
+ let obj_centerHasMoreLatest_union1 = null;
6139
+ const obj_centerHasMoreLatest_union1_error = (() => {
6140
+ if (obj_centerHasMoreLatest !== null) {
6141
+ return new TypeError('Expected "null" but received "' + typeof obj_centerHasMoreLatest + '" (at "' + path_centerHasMoreLatest + '")');
6142
+ }
6143
+ })();
6144
+ if (obj_centerHasMoreLatest_union1_error != null) {
6145
+ obj_centerHasMoreLatest_union1 = obj_centerHasMoreLatest_union1_error.message;
6146
+ }
6147
+ if (obj_centerHasMoreLatest_union0 && obj_centerHasMoreLatest_union1) {
6148
+ let message = 'Object doesn\'t match union (at "' + path_centerHasMoreLatest + '")';
6149
+ message += '\n' + obj_centerHasMoreLatest_union0.split('\n').map((line) => '\t' + line).join('\n');
6150
+ message += '\n' + obj_centerHasMoreLatest_union1.split('\n').map((line) => '\t' + line).join('\n');
6151
+ return new TypeError(message);
6152
+ }
6153
+ }
6154
+ if (obj.centerHasMoreOldest !== undefined) {
6155
+ const obj_centerHasMoreOldest = obj.centerHasMoreOldest;
6156
+ const path_centerHasMoreOldest = path + '.centerHasMoreOldest';
6157
+ let obj_centerHasMoreOldest_union0 = null;
6158
+ const obj_centerHasMoreOldest_union0_error = (() => {
6159
+ if (typeof obj_centerHasMoreOldest !== 'boolean') {
6160
+ return new TypeError('Expected "boolean" but received "' + typeof obj_centerHasMoreOldest + '" (at "' + path_centerHasMoreOldest + '")');
6161
+ }
6162
+ })();
6163
+ if (obj_centerHasMoreOldest_union0_error != null) {
6164
+ obj_centerHasMoreOldest_union0 = obj_centerHasMoreOldest_union0_error.message;
6165
+ }
6166
+ let obj_centerHasMoreOldest_union1 = null;
6167
+ const obj_centerHasMoreOldest_union1_error = (() => {
6168
+ if (obj_centerHasMoreOldest !== null) {
6169
+ return new TypeError('Expected "null" but received "' + typeof obj_centerHasMoreOldest + '" (at "' + path_centerHasMoreOldest + '")');
6170
+ }
6171
+ })();
6172
+ if (obj_centerHasMoreOldest_union1_error != null) {
6173
+ obj_centerHasMoreOldest_union1 = obj_centerHasMoreOldest_union1_error.message;
6174
+ }
6175
+ if (obj_centerHasMoreOldest_union0 && obj_centerHasMoreOldest_union1) {
6176
+ let message = 'Object doesn\'t match union (at "' + path_centerHasMoreOldest + '")';
6177
+ message += '\n' + obj_centerHasMoreOldest_union0.split('\n').map((line) => '\t' + line).join('\n');
6178
+ message += '\n' + obj_centerHasMoreOldest_union1.split('\n').map((line) => '\t' + line).join('\n');
6179
+ return new TypeError(message);
6180
+ }
6181
+ }
5829
6182
  const obj_hasMore = obj.hasMore;
5830
6183
  const path_hasMore = path + '.hasMore';
5831
- if (typeof obj_hasMore !== 'boolean') {
5832
- return new TypeError('Expected "boolean" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
6184
+ let obj_hasMore_union0 = null;
6185
+ const obj_hasMore_union0_error = (() => {
6186
+ if (typeof obj_hasMore !== 'boolean') {
6187
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
6188
+ }
6189
+ })();
6190
+ if (obj_hasMore_union0_error != null) {
6191
+ obj_hasMore_union0 = obj_hasMore_union0_error.message;
6192
+ }
6193
+ let obj_hasMore_union1 = null;
6194
+ const obj_hasMore_union1_error = (() => {
6195
+ if (obj_hasMore !== null) {
6196
+ return new TypeError('Expected "null" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
6197
+ }
6198
+ })();
6199
+ if (obj_hasMore_union1_error != null) {
6200
+ obj_hasMore_union1 = obj_hasMore_union1_error.message;
6201
+ }
6202
+ if (obj_hasMore_union0 && obj_hasMore_union1) {
6203
+ let message = 'Object doesn\'t match union (at "' + path_hasMore + '")';
6204
+ message += '\n' + obj_hasMore_union0.split('\n').map((line) => '\t' + line).join('\n');
6205
+ message += '\n' + obj_hasMore_union1.split('\n').map((line) => '\t' + line).join('\n');
6206
+ return new TypeError(message);
5833
6207
  }
5834
6208
  const obj_messages = obj.messages;
5835
6209
  const path_messages = path + '.messages';
@@ -5869,6 +6243,34 @@ function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
5869
6243
  message += '\n' + obj_nextCursor_union1.split('\n').map((line) => '\t' + line).join('\n');
5870
6244
  return new TypeError(message);
5871
6245
  }
6246
+ if (obj.unreadCountDisplay !== undefined) {
6247
+ const obj_unreadCountDisplay = obj.unreadCountDisplay;
6248
+ const path_unreadCountDisplay = path + '.unreadCountDisplay';
6249
+ let obj_unreadCountDisplay_union0 = null;
6250
+ const obj_unreadCountDisplay_union0_error = (() => {
6251
+ if (typeof obj_unreadCountDisplay !== 'number' || (typeof obj_unreadCountDisplay === 'number' && Math.floor(obj_unreadCountDisplay) !== obj_unreadCountDisplay)) {
6252
+ return new TypeError('Expected "integer" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
6253
+ }
6254
+ })();
6255
+ if (obj_unreadCountDisplay_union0_error != null) {
6256
+ obj_unreadCountDisplay_union0 = obj_unreadCountDisplay_union0_error.message;
6257
+ }
6258
+ let obj_unreadCountDisplay_union1 = null;
6259
+ const obj_unreadCountDisplay_union1_error = (() => {
6260
+ if (obj_unreadCountDisplay !== null) {
6261
+ return new TypeError('Expected "null" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
6262
+ }
6263
+ })();
6264
+ if (obj_unreadCountDisplay_union1_error != null) {
6265
+ obj_unreadCountDisplay_union1 = obj_unreadCountDisplay_union1_error.message;
6266
+ }
6267
+ if (obj_unreadCountDisplay_union0 && obj_unreadCountDisplay_union1) {
6268
+ let message = 'Object doesn\'t match union (at "' + path_unreadCountDisplay + '")';
6269
+ message += '\n' + obj_unreadCountDisplay_union0.split('\n').map((line) => '\t' + line).join('\n');
6270
+ message += '\n' + obj_unreadCountDisplay_union1.split('\n').map((line) => '\t' + line).join('\n');
6271
+ return new TypeError(message);
6272
+ }
6273
+ }
5872
6274
  })();
5873
6275
  return v_error === undefined ? null : v_error;
5874
6276
  }
@@ -5898,6 +6300,16 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
5898
6300
  version: VERSION$c,
5899
6301
  private: [],
5900
6302
  selections: [
6303
+ {
6304
+ name: 'centerHasMoreLatest',
6305
+ kind: 'Scalar',
6306
+ required: false
6307
+ },
6308
+ {
6309
+ name: 'centerHasMoreOldest',
6310
+ kind: 'Scalar',
6311
+ required: false
6312
+ },
5901
6313
  {
5902
6314
  name: 'hasMore',
5903
6315
  kind: 'Scalar'
@@ -5911,11 +6323,42 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
5911
6323
  {
5912
6324
  name: 'nextCursor',
5913
6325
  kind: 'Scalar'
6326
+ },
6327
+ {
6328
+ name: 'unreadCountDisplay',
6329
+ kind: 'Scalar',
6330
+ required: false
5914
6331
  }
5915
6332
  ]
5916
6333
  };
5917
6334
  };
5918
6335
  function equals$c(existing, incoming) {
6336
+ const existing_centerHasMoreLatest = existing.centerHasMoreLatest;
6337
+ const incoming_centerHasMoreLatest = incoming.centerHasMoreLatest;
6338
+ // if at least one of these optionals is defined
6339
+ if (existing_centerHasMoreLatest !== undefined || incoming_centerHasMoreLatest !== undefined) {
6340
+ // if one of these is not defined we know the other is defined and therefore
6341
+ // not equal
6342
+ if (existing_centerHasMoreLatest === undefined || incoming_centerHasMoreLatest === undefined) {
6343
+ return false;
6344
+ }
6345
+ if (!(existing_centerHasMoreLatest === incoming_centerHasMoreLatest)) {
6346
+ return false;
6347
+ }
6348
+ }
6349
+ const existing_centerHasMoreOldest = existing.centerHasMoreOldest;
6350
+ const incoming_centerHasMoreOldest = incoming.centerHasMoreOldest;
6351
+ // if at least one of these optionals is defined
6352
+ if (existing_centerHasMoreOldest !== undefined || incoming_centerHasMoreOldest !== undefined) {
6353
+ // if one of these is not defined we know the other is defined and therefore
6354
+ // not equal
6355
+ if (existing_centerHasMoreOldest === undefined || incoming_centerHasMoreOldest === undefined) {
6356
+ return false;
6357
+ }
6358
+ if (!(existing_centerHasMoreOldest === incoming_centerHasMoreOldest)) {
6359
+ return false;
6360
+ }
6361
+ }
5919
6362
  const existing_hasMore = existing.hasMore;
5920
6363
  const incoming_hasMore = incoming.hasMore;
5921
6364
  if (!(existing_hasMore === incoming_hasMore)) {
@@ -5936,6 +6379,19 @@ function equals$c(existing, incoming) {
5936
6379
  if (!(existing_nextCursor === incoming_nextCursor)) {
5937
6380
  return false;
5938
6381
  }
6382
+ const existing_unreadCountDisplay = existing.unreadCountDisplay;
6383
+ const incoming_unreadCountDisplay = incoming.unreadCountDisplay;
6384
+ // if at least one of these optionals is defined
6385
+ if (existing_unreadCountDisplay !== undefined || incoming_unreadCountDisplay !== undefined) {
6386
+ // if one of these is not defined we know the other is defined and therefore
6387
+ // not equal
6388
+ if (existing_unreadCountDisplay === undefined || incoming_unreadCountDisplay === undefined) {
6389
+ return false;
6390
+ }
6391
+ if (!(existing_unreadCountDisplay === incoming_unreadCountDisplay)) {
6392
+ return false;
6393
+ }
6394
+ }
5939
6395
  return true;
5940
6396
  }
5941
6397
  const ingest$a = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -6418,7 +6874,7 @@ function select$w(luvio, params) {
6418
6874
  return select$x();
6419
6875
  }
6420
6876
  function keyBuilder$x(luvio, params) {
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 + ')';
6877
+ return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'centerMessageTs:' + params.queryParams.centerMessageTs + ',' + '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 + ')';
6422
6878
  }
6423
6879
  function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
6424
6880
  getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
@@ -6468,6 +6924,7 @@ function createResourceRequest$l(config) {
6468
6924
 
6469
6925
  const adapterName$l = 'getSlackConversation';
6470
6926
  const getSlackConversation_ConfigPropertyMetadata = [
6927
+ generateParamConfigMetadata('centerMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
6471
6928
  generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
6472
6929
  generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
6473
6930
  generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
@@ -10834,4 +11291,4 @@ withDefaultLuvio((luvio) => {
10834
11291
  });
10835
11292
 
10836
11293
  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.354.0-dev14-7a32f8b92f
11294
+ // version: 1.354.0-dev16-fc68199eb5