@salesforce/lds-adapters-platform-slack-bridge 1.370.0 → 1.372.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.
@@ -1817,7 +1817,7 @@ function equals$o(existing, incoming) {
1817
1817
  }
1818
1818
 
1819
1819
  const TTL$4 = 900000;
1820
- const VERSION$n = "881db9651a4514e5db997e8a9fc589fe";
1820
+ const VERSION$n = "898110c1fd3651e7f407ba56cf0ca85a";
1821
1821
  function validate$n(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
1822
1822
  const v_error = (() => {
1823
1823
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2244,6 +2244,34 @@ function validate$n(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
2244
2244
  message += '\n' + obj_lastRead_union1.split('\n').map((line) => '\t' + line).join('\n');
2245
2245
  return new TypeError(message);
2246
2246
  }
2247
+ if (obj.latest !== undefined) {
2248
+ const obj_latest = obj.latest;
2249
+ const path_latest = path + '.latest';
2250
+ let obj_latest_union0 = null;
2251
+ const obj_latest_union0_error = (() => {
2252
+ if (typeof obj_latest !== 'string') {
2253
+ return new TypeError('Expected "string" but received "' + typeof obj_latest + '" (at "' + path_latest + '")');
2254
+ }
2255
+ })();
2256
+ if (obj_latest_union0_error != null) {
2257
+ obj_latest_union0 = obj_latest_union0_error.message;
2258
+ }
2259
+ let obj_latest_union1 = null;
2260
+ const obj_latest_union1_error = (() => {
2261
+ if (obj_latest !== null) {
2262
+ return new TypeError('Expected "null" but received "' + typeof obj_latest + '" (at "' + path_latest + '")');
2263
+ }
2264
+ })();
2265
+ if (obj_latest_union1_error != null) {
2266
+ obj_latest_union1 = obj_latest_union1_error.message;
2267
+ }
2268
+ if (obj_latest_union0 && obj_latest_union1) {
2269
+ let message = 'Object doesn\'t match union (at "' + path_latest + '")';
2270
+ message += '\n' + obj_latest_union0.split('\n').map((line) => '\t' + line).join('\n');
2271
+ message += '\n' + obj_latest_union1.split('\n').map((line) => '\t' + line).join('\n');
2272
+ return new TypeError(message);
2273
+ }
2274
+ }
2247
2275
  const obj_name = obj.name;
2248
2276
  const path_name = path + '.name';
2249
2277
  if (typeof obj_name !== 'string') {
@@ -2332,6 +2360,62 @@ function validate$n(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
2332
2360
  message += '\n' + obj_shouldCacheCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
2333
2361
  return new TypeError(message);
2334
2362
  }
2363
+ if (obj.unreadCount !== undefined) {
2364
+ const obj_unreadCount = obj.unreadCount;
2365
+ const path_unreadCount = path + '.unreadCount';
2366
+ let obj_unreadCount_union0 = null;
2367
+ const obj_unreadCount_union0_error = (() => {
2368
+ if (typeof obj_unreadCount !== 'number' || (typeof obj_unreadCount === 'number' && Math.floor(obj_unreadCount) !== obj_unreadCount)) {
2369
+ return new TypeError('Expected "integer" but received "' + typeof obj_unreadCount + '" (at "' + path_unreadCount + '")');
2370
+ }
2371
+ })();
2372
+ if (obj_unreadCount_union0_error != null) {
2373
+ obj_unreadCount_union0 = obj_unreadCount_union0_error.message;
2374
+ }
2375
+ let obj_unreadCount_union1 = null;
2376
+ const obj_unreadCount_union1_error = (() => {
2377
+ if (obj_unreadCount !== null) {
2378
+ return new TypeError('Expected "null" but received "' + typeof obj_unreadCount + '" (at "' + path_unreadCount + '")');
2379
+ }
2380
+ })();
2381
+ if (obj_unreadCount_union1_error != null) {
2382
+ obj_unreadCount_union1 = obj_unreadCount_union1_error.message;
2383
+ }
2384
+ if (obj_unreadCount_union0 && obj_unreadCount_union1) {
2385
+ let message = 'Object doesn\'t match union (at "' + path_unreadCount + '")';
2386
+ message += '\n' + obj_unreadCount_union0.split('\n').map((line) => '\t' + line).join('\n');
2387
+ message += '\n' + obj_unreadCount_union1.split('\n').map((line) => '\t' + line).join('\n');
2388
+ return new TypeError(message);
2389
+ }
2390
+ }
2391
+ if (obj.unreadCountDisplay !== undefined) {
2392
+ const obj_unreadCountDisplay = obj.unreadCountDisplay;
2393
+ const path_unreadCountDisplay = path + '.unreadCountDisplay';
2394
+ let obj_unreadCountDisplay_union0 = null;
2395
+ const obj_unreadCountDisplay_union0_error = (() => {
2396
+ if (typeof obj_unreadCountDisplay !== 'number' || (typeof obj_unreadCountDisplay === 'number' && Math.floor(obj_unreadCountDisplay) !== obj_unreadCountDisplay)) {
2397
+ return new TypeError('Expected "integer" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
2398
+ }
2399
+ })();
2400
+ if (obj_unreadCountDisplay_union0_error != null) {
2401
+ obj_unreadCountDisplay_union0 = obj_unreadCountDisplay_union0_error.message;
2402
+ }
2403
+ let obj_unreadCountDisplay_union1 = null;
2404
+ const obj_unreadCountDisplay_union1_error = (() => {
2405
+ if (obj_unreadCountDisplay !== null) {
2406
+ return new TypeError('Expected "null" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
2407
+ }
2408
+ })();
2409
+ if (obj_unreadCountDisplay_union1_error != null) {
2410
+ obj_unreadCountDisplay_union1 = obj_unreadCountDisplay_union1_error.message;
2411
+ }
2412
+ if (obj_unreadCountDisplay_union0 && obj_unreadCountDisplay_union1) {
2413
+ let message = 'Object doesn\'t match union (at "' + path_unreadCountDisplay + '")';
2414
+ message += '\n' + obj_unreadCountDisplay_union0.split('\n').map((line) => '\t' + line).join('\n');
2415
+ message += '\n' + obj_unreadCountDisplay_union1.split('\n').map((line) => '\t' + line).join('\n');
2416
+ return new TypeError(message);
2417
+ }
2418
+ }
2335
2419
  if (obj.url !== undefined) {
2336
2420
  const obj_url = obj.url;
2337
2421
  const path_url = path + '.url';
@@ -2430,6 +2514,11 @@ const select$K = function SlackBridgeConversationInfoOutputRepresentationSelect(
2430
2514
  name: 'lastRead',
2431
2515
  kind: 'Scalar'
2432
2516
  },
2517
+ {
2518
+ name: 'latest',
2519
+ kind: 'Scalar',
2520
+ required: false
2521
+ },
2433
2522
  {
2434
2523
  name: 'name',
2435
2524
  kind: 'Scalar'
@@ -2449,6 +2538,16 @@ const select$K = function SlackBridgeConversationInfoOutputRepresentationSelect(
2449
2538
  name: 'shouldCacheCustomEmoji',
2450
2539
  kind: 'Scalar'
2451
2540
  },
2541
+ {
2542
+ name: 'unreadCount',
2543
+ kind: 'Scalar',
2544
+ required: false
2545
+ },
2546
+ {
2547
+ name: 'unreadCountDisplay',
2548
+ kind: 'Scalar',
2549
+ required: false
2550
+ },
2452
2551
  {
2453
2552
  name: 'url',
2454
2553
  kind: 'Scalar',
@@ -2561,6 +2660,19 @@ function equals$n(existing, incoming) {
2561
2660
  if (!(existing_lastRead === incoming_lastRead)) {
2562
2661
  return false;
2563
2662
  }
2663
+ const existing_latest = existing.latest;
2664
+ const incoming_latest = incoming.latest;
2665
+ // if at least one of these optionals is defined
2666
+ if (existing_latest !== undefined || incoming_latest !== undefined) {
2667
+ // if one of these is not defined we know the other is defined and therefore
2668
+ // not equal
2669
+ if (existing_latest === undefined || incoming_latest === undefined) {
2670
+ return false;
2671
+ }
2672
+ if (!(existing_latest === incoming_latest)) {
2673
+ return false;
2674
+ }
2675
+ }
2564
2676
  const existing_numOfMembers = existing.numOfMembers;
2565
2677
  const incoming_numOfMembers = incoming.numOfMembers;
2566
2678
  if (!(existing_numOfMembers === incoming_numOfMembers)) {
@@ -2587,6 +2699,32 @@ function equals$n(existing, incoming) {
2587
2699
  if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
2588
2700
  return false;
2589
2701
  }
2702
+ const existing_unreadCount = existing.unreadCount;
2703
+ const incoming_unreadCount = incoming.unreadCount;
2704
+ // if at least one of these optionals is defined
2705
+ if (existing_unreadCount !== undefined || incoming_unreadCount !== undefined) {
2706
+ // if one of these is not defined we know the other is defined and therefore
2707
+ // not equal
2708
+ if (existing_unreadCount === undefined || incoming_unreadCount === undefined) {
2709
+ return false;
2710
+ }
2711
+ if (!(existing_unreadCount === incoming_unreadCount)) {
2712
+ return false;
2713
+ }
2714
+ }
2715
+ const existing_unreadCountDisplay = existing.unreadCountDisplay;
2716
+ const incoming_unreadCountDisplay = incoming.unreadCountDisplay;
2717
+ // if at least one of these optionals is defined
2718
+ if (existing_unreadCountDisplay !== undefined || incoming_unreadCountDisplay !== undefined) {
2719
+ // if one of these is not defined we know the other is defined and therefore
2720
+ // not equal
2721
+ if (existing_unreadCountDisplay === undefined || incoming_unreadCountDisplay === undefined) {
2722
+ return false;
2723
+ }
2724
+ if (!(existing_unreadCountDisplay === incoming_unreadCountDisplay)) {
2725
+ return false;
2726
+ }
2727
+ }
2590
2728
  return true;
2591
2729
  }
2592
2730
  const ingest$h = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -5102,16 +5240,93 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
5102
5240
  }
5103
5241
  }
5104
5242
 
5105
- const VERSION$g = "5145ac2c241c561e4baa29b3884748dc";
5243
+ const VERSION$g = "d2e4c202fa58b2b21daa0de3b09fc640";
5106
5244
  function validate$g(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
5107
5245
  const v_error = (() => {
5108
5246
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5109
5247
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5110
5248
  }
5249
+ if (obj.centerHasMoreLatest !== undefined) {
5250
+ const obj_centerHasMoreLatest = obj.centerHasMoreLatest;
5251
+ const path_centerHasMoreLatest = path + '.centerHasMoreLatest';
5252
+ let obj_centerHasMoreLatest_union0 = null;
5253
+ const obj_centerHasMoreLatest_union0_error = (() => {
5254
+ if (typeof obj_centerHasMoreLatest !== 'boolean') {
5255
+ return new TypeError('Expected "boolean" but received "' + typeof obj_centerHasMoreLatest + '" (at "' + path_centerHasMoreLatest + '")');
5256
+ }
5257
+ })();
5258
+ if (obj_centerHasMoreLatest_union0_error != null) {
5259
+ obj_centerHasMoreLatest_union0 = obj_centerHasMoreLatest_union0_error.message;
5260
+ }
5261
+ let obj_centerHasMoreLatest_union1 = null;
5262
+ const obj_centerHasMoreLatest_union1_error = (() => {
5263
+ if (obj_centerHasMoreLatest !== null) {
5264
+ return new TypeError('Expected "null" but received "' + typeof obj_centerHasMoreLatest + '" (at "' + path_centerHasMoreLatest + '")');
5265
+ }
5266
+ })();
5267
+ if (obj_centerHasMoreLatest_union1_error != null) {
5268
+ obj_centerHasMoreLatest_union1 = obj_centerHasMoreLatest_union1_error.message;
5269
+ }
5270
+ if (obj_centerHasMoreLatest_union0 && obj_centerHasMoreLatest_union1) {
5271
+ let message = 'Object doesn\'t match union (at "' + path_centerHasMoreLatest + '")';
5272
+ message += '\n' + obj_centerHasMoreLatest_union0.split('\n').map((line) => '\t' + line).join('\n');
5273
+ message += '\n' + obj_centerHasMoreLatest_union1.split('\n').map((line) => '\t' + line).join('\n');
5274
+ return new TypeError(message);
5275
+ }
5276
+ }
5277
+ if (obj.centerHasMoreOldest !== undefined) {
5278
+ const obj_centerHasMoreOldest = obj.centerHasMoreOldest;
5279
+ const path_centerHasMoreOldest = path + '.centerHasMoreOldest';
5280
+ let obj_centerHasMoreOldest_union0 = null;
5281
+ const obj_centerHasMoreOldest_union0_error = (() => {
5282
+ if (typeof obj_centerHasMoreOldest !== 'boolean') {
5283
+ return new TypeError('Expected "boolean" but received "' + typeof obj_centerHasMoreOldest + '" (at "' + path_centerHasMoreOldest + '")');
5284
+ }
5285
+ })();
5286
+ if (obj_centerHasMoreOldest_union0_error != null) {
5287
+ obj_centerHasMoreOldest_union0 = obj_centerHasMoreOldest_union0_error.message;
5288
+ }
5289
+ let obj_centerHasMoreOldest_union1 = null;
5290
+ const obj_centerHasMoreOldest_union1_error = (() => {
5291
+ if (obj_centerHasMoreOldest !== null) {
5292
+ return new TypeError('Expected "null" but received "' + typeof obj_centerHasMoreOldest + '" (at "' + path_centerHasMoreOldest + '")');
5293
+ }
5294
+ })();
5295
+ if (obj_centerHasMoreOldest_union1_error != null) {
5296
+ obj_centerHasMoreOldest_union1 = obj_centerHasMoreOldest_union1_error.message;
5297
+ }
5298
+ if (obj_centerHasMoreOldest_union0 && obj_centerHasMoreOldest_union1) {
5299
+ let message = 'Object doesn\'t match union (at "' + path_centerHasMoreOldest + '")';
5300
+ message += '\n' + obj_centerHasMoreOldest_union0.split('\n').map((line) => '\t' + line).join('\n');
5301
+ message += '\n' + obj_centerHasMoreOldest_union1.split('\n').map((line) => '\t' + line).join('\n');
5302
+ return new TypeError(message);
5303
+ }
5304
+ }
5111
5305
  const obj_hasMore = obj.hasMore;
5112
5306
  const path_hasMore = path + '.hasMore';
5113
- if (typeof obj_hasMore !== 'boolean') {
5114
- return new TypeError('Expected "boolean" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
5307
+ let obj_hasMore_union0 = null;
5308
+ const obj_hasMore_union0_error = (() => {
5309
+ if (typeof obj_hasMore !== 'boolean') {
5310
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
5311
+ }
5312
+ })();
5313
+ if (obj_hasMore_union0_error != null) {
5314
+ obj_hasMore_union0 = obj_hasMore_union0_error.message;
5315
+ }
5316
+ let obj_hasMore_union1 = null;
5317
+ const obj_hasMore_union1_error = (() => {
5318
+ if (obj_hasMore !== null) {
5319
+ return new TypeError('Expected "null" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
5320
+ }
5321
+ })();
5322
+ if (obj_hasMore_union1_error != null) {
5323
+ obj_hasMore_union1 = obj_hasMore_union1_error.message;
5324
+ }
5325
+ if (obj_hasMore_union0 && obj_hasMore_union1) {
5326
+ let message = 'Object doesn\'t match union (at "' + path_hasMore + '")';
5327
+ message += '\n' + obj_hasMore_union0.split('\n').map((line) => '\t' + line).join('\n');
5328
+ message += '\n' + obj_hasMore_union1.split('\n').map((line) => '\t' + line).join('\n');
5329
+ return new TypeError(message);
5115
5330
  }
5116
5331
  const obj_messages = obj.messages;
5117
5332
  const path_messages = path + '.messages';
@@ -5151,6 +5366,34 @@ function validate$g(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
5151
5366
  message += '\n' + obj_nextCursor_union1.split('\n').map((line) => '\t' + line).join('\n');
5152
5367
  return new TypeError(message);
5153
5368
  }
5369
+ if (obj.unreadCountDisplay !== undefined) {
5370
+ const obj_unreadCountDisplay = obj.unreadCountDisplay;
5371
+ const path_unreadCountDisplay = path + '.unreadCountDisplay';
5372
+ let obj_unreadCountDisplay_union0 = null;
5373
+ const obj_unreadCountDisplay_union0_error = (() => {
5374
+ if (typeof obj_unreadCountDisplay !== 'number' || (typeof obj_unreadCountDisplay === 'number' && Math.floor(obj_unreadCountDisplay) !== obj_unreadCountDisplay)) {
5375
+ return new TypeError('Expected "integer" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
5376
+ }
5377
+ })();
5378
+ if (obj_unreadCountDisplay_union0_error != null) {
5379
+ obj_unreadCountDisplay_union0 = obj_unreadCountDisplay_union0_error.message;
5380
+ }
5381
+ let obj_unreadCountDisplay_union1 = null;
5382
+ const obj_unreadCountDisplay_union1_error = (() => {
5383
+ if (obj_unreadCountDisplay !== null) {
5384
+ return new TypeError('Expected "null" but received "' + typeof obj_unreadCountDisplay + '" (at "' + path_unreadCountDisplay + '")');
5385
+ }
5386
+ })();
5387
+ if (obj_unreadCountDisplay_union1_error != null) {
5388
+ obj_unreadCountDisplay_union1 = obj_unreadCountDisplay_union1_error.message;
5389
+ }
5390
+ if (obj_unreadCountDisplay_union0 && obj_unreadCountDisplay_union1) {
5391
+ let message = 'Object doesn\'t match union (at "' + path_unreadCountDisplay + '")';
5392
+ message += '\n' + obj_unreadCountDisplay_union0.split('\n').map((line) => '\t' + line).join('\n');
5393
+ message += '\n' + obj_unreadCountDisplay_union1.split('\n').map((line) => '\t' + line).join('\n');
5394
+ return new TypeError(message);
5395
+ }
5396
+ }
5154
5397
  })();
5155
5398
  return v_error === undefined ? null : v_error;
5156
5399
  }
@@ -5180,6 +5423,16 @@ const select$D = function SlackBridgeConversationHistoryOutputRepresentationSele
5180
5423
  version: VERSION$g,
5181
5424
  private: [],
5182
5425
  selections: [
5426
+ {
5427
+ name: 'centerHasMoreLatest',
5428
+ kind: 'Scalar',
5429
+ required: false
5430
+ },
5431
+ {
5432
+ name: 'centerHasMoreOldest',
5433
+ kind: 'Scalar',
5434
+ required: false
5435
+ },
5183
5436
  {
5184
5437
  name: 'hasMore',
5185
5438
  kind: 'Scalar'
@@ -5193,11 +5446,42 @@ const select$D = function SlackBridgeConversationHistoryOutputRepresentationSele
5193
5446
  {
5194
5447
  name: 'nextCursor',
5195
5448
  kind: 'Scalar'
5449
+ },
5450
+ {
5451
+ name: 'unreadCountDisplay',
5452
+ kind: 'Scalar',
5453
+ required: false
5196
5454
  }
5197
5455
  ]
5198
5456
  };
5199
5457
  };
5200
5458
  function equals$g(existing, incoming) {
5459
+ const existing_centerHasMoreLatest = existing.centerHasMoreLatest;
5460
+ const incoming_centerHasMoreLatest = incoming.centerHasMoreLatest;
5461
+ // if at least one of these optionals is defined
5462
+ if (existing_centerHasMoreLatest !== undefined || incoming_centerHasMoreLatest !== undefined) {
5463
+ // if one of these is not defined we know the other is defined and therefore
5464
+ // not equal
5465
+ if (existing_centerHasMoreLatest === undefined || incoming_centerHasMoreLatest === undefined) {
5466
+ return false;
5467
+ }
5468
+ if (!(existing_centerHasMoreLatest === incoming_centerHasMoreLatest)) {
5469
+ return false;
5470
+ }
5471
+ }
5472
+ const existing_centerHasMoreOldest = existing.centerHasMoreOldest;
5473
+ const incoming_centerHasMoreOldest = incoming.centerHasMoreOldest;
5474
+ // if at least one of these optionals is defined
5475
+ if (existing_centerHasMoreOldest !== undefined || incoming_centerHasMoreOldest !== undefined) {
5476
+ // if one of these is not defined we know the other is defined and therefore
5477
+ // not equal
5478
+ if (existing_centerHasMoreOldest === undefined || incoming_centerHasMoreOldest === undefined) {
5479
+ return false;
5480
+ }
5481
+ if (!(existing_centerHasMoreOldest === incoming_centerHasMoreOldest)) {
5482
+ return false;
5483
+ }
5484
+ }
5201
5485
  const existing_hasMore = existing.hasMore;
5202
5486
  const incoming_hasMore = incoming.hasMore;
5203
5487
  if (!(existing_hasMore === incoming_hasMore)) {
@@ -5218,6 +5502,19 @@ function equals$g(existing, incoming) {
5218
5502
  if (!(existing_nextCursor === incoming_nextCursor)) {
5219
5503
  return false;
5220
5504
  }
5505
+ const existing_unreadCountDisplay = existing.unreadCountDisplay;
5506
+ const incoming_unreadCountDisplay = incoming.unreadCountDisplay;
5507
+ // if at least one of these optionals is defined
5508
+ if (existing_unreadCountDisplay !== undefined || incoming_unreadCountDisplay !== undefined) {
5509
+ // if one of these is not defined we know the other is defined and therefore
5510
+ // not equal
5511
+ if (existing_unreadCountDisplay === undefined || incoming_unreadCountDisplay === undefined) {
5512
+ return false;
5513
+ }
5514
+ if (!(existing_unreadCountDisplay === incoming_unreadCountDisplay)) {
5515
+ return false;
5516
+ }
5517
+ }
5221
5518
  return true;
5222
5519
  }
5223
5520
  const ingest$e = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -5700,7 +5997,7 @@ function select$B(luvio, params) {
5700
5997
  return select$C();
5701
5998
  }
5702
5999
  function keyBuilder$F(luvio, params) {
5703
- 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 + ')';
6000
+ 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 + ')';
5704
6001
  }
5705
6002
  function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
5706
6003
  getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$F(luvio, resourceParams));
@@ -5750,6 +6047,7 @@ function createResourceRequest$p(config) {
5750
6047
 
5751
6048
  const adapterName$p = 'getSlackConversation';
5752
6049
  const getSlackConversation_ConfigPropertyMetadata = [
6050
+ generateParamConfigMetadata('centerMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
5753
6051
  generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
5754
6052
  generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
5755
6053
  generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
@@ -6,6 +6,7 @@ export declare const adapterName = "getSlackConversation";
6
6
  export declare const getSlackConversation_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const getSlackConversation_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetSlackConversationConfig {
9
+ centerMessageTs?: string;
9
10
  channelId?: string;
10
11
  includeView?: boolean;
11
12
  inclusive?: boolean;
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
2
2
  import { SlackBridgeConversationOutputRepresentation as types_SlackBridgeConversationOutputRepresentation_SlackBridgeConversationOutputRepresentation } from '../types/SlackBridgeConversationOutputRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  queryParams: {
5
+ centerMessageTs?: string;
5
6
  channelId?: string;
6
7
  includeView?: boolean;
7
8
  inclusive?: boolean;
@@ -1,6 +1,6 @@
1
1
  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';
2
2
  import { SlackBridgeMessageOutputRepresentation as SlackBridgeMessageOutputRepresentation_SlackBridgeMessageOutputRepresentation } from './SlackBridgeMessageOutputRepresentation';
3
- export declare const VERSION = "5145ac2c241c561e4baa29b3884748dc";
3
+ export declare const VERSION = "d2e4c202fa58b2b21daa0de3b09fc640";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: SlackBridgeConversationHistoryOutputRepresentation, existing: SlackBridgeConversationHistoryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeConversationHistoryOutputRepresentationNormalized;
@@ -24,12 +24,18 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
24
24
  * (none)
25
25
  */
26
26
  export interface SlackBridgeConversationHistoryOutputRepresentationNormalized {
27
+ /** Does this conversation have more messages later than the provided center timestamp? */
28
+ centerHasMoreLatest?: boolean | null;
29
+ /** Does this conversation have more messages older than the provided center timestamp? */
30
+ centerHasMoreOldest?: boolean | null;
27
31
  /** Does this conversation have more messages to retrieve? */
28
- hasMore: boolean;
32
+ hasMore: boolean | null;
29
33
  /** List of Slack messages */
30
34
  messages: Array<$64$luvio_engine_StoreLink>;
31
35
  /** Used to paginate to the next page by passing this value as the cursor parameter in a subsequent request */
32
36
  nextCursor: string | null;
37
+ /** Number of messages the current user has not read and did not author */
38
+ unreadCountDisplay?: number | null;
33
39
  }
34
40
  /**
35
41
  * Contains the details of segment of a Slack conversation's history
@@ -38,7 +44,10 @@ export interface SlackBridgeConversationHistoryOutputRepresentationNormalized {
38
44
  * (none)
39
45
  */
40
46
  export interface SlackBridgeConversationHistoryOutputRepresentation {
41
- hasMore: boolean;
47
+ centerHasMoreLatest?: boolean | null;
48
+ centerHasMoreOldest?: boolean | null;
49
+ hasMore: boolean | null;
42
50
  messages: Array<SlackBridgeMessageOutputRepresentation_SlackBridgeMessageOutputRepresentation>;
43
51
  nextCursor: string | null;
52
+ unreadCountDisplay?: number | null;
44
53
  }
@@ -1,7 +1,7 @@
1
1
  import { SlackBridgeConversationPropertiesOutputRepresentation as SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation } from './SlackBridgeConversationPropertiesOutputRepresentation';
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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 900000;
4
- export declare const VERSION = "881db9651a4514e5db997e8a9fc589fe";
4
+ export declare const VERSION = "898110c1fd3651e7f407ba56cf0ca85a";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -59,6 +59,8 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
59
59
  isThreadOnly: boolean | null;
60
60
  /** The timestamp of the last read message of this conversation by the current user */
61
61
  lastRead: string | null;
62
+ /** The timestamp of the last message in this conversation */
63
+ latest?: string | null;
62
64
  /** Name of the Conversation */
63
65
  name: string;
64
66
  /** Number of members in the Conversation */
@@ -67,6 +69,10 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
67
69
  properties?: SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation | null;
68
70
  /** Should the Custom Emojis be cached? */
69
71
  shouldCacheCustomEmoji: boolean | null;
72
+ /** Number of messages the current user has not read */
73
+ unreadCount?: number | null;
74
+ /** Number of messages the current user has not read and did not author */
75
+ unreadCountDisplay?: number | null;
70
76
  /** The URL to the channel */
71
77
  url?: string;
72
78
  }
@@ -94,9 +100,12 @@ export interface SlackBridgeConversationInfoOutputRepresentation {
94
100
  isShared: boolean | null;
95
101
  isThreadOnly: boolean | null;
96
102
  lastRead: string | null;
103
+ latest?: string | null;
97
104
  name: string;
98
105
  numOfMembers: number | null;
99
106
  properties?: SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation | null;
100
107
  shouldCacheCustomEmoji: boolean | null;
108
+ unreadCount?: number | null;
109
+ unreadCountDisplay?: number | null;
101
110
  url?: string;
102
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.370.0",
3
+ "version": "1.372.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.370.0"
43
+ "@salesforce/lds-bindings": "^1.372.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.370.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.372.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
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) {
@@ -5979,16 +6117,93 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
5979
6117
  }
5980
6118
  }
5981
6119
 
5982
- const VERSION$c = "5145ac2c241c561e4baa29b3884748dc";
6120
+ const VERSION$c = "d2e4c202fa58b2b21daa0de3b09fc640";
5983
6121
  function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
5984
6122
  const v_error = (() => {
5985
6123
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5986
6124
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5987
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
+ }
5988
6182
  const obj_hasMore = obj.hasMore;
5989
6183
  const path_hasMore = path + '.hasMore';
5990
- if (typeof obj_hasMore !== 'boolean') {
5991
- 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);
5992
6207
  }
5993
6208
  const obj_messages = obj.messages;
5994
6209
  const path_messages = path + '.messages';
@@ -6028,6 +6243,34 @@ function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
6028
6243
  message += '\n' + obj_nextCursor_union1.split('\n').map((line) => '\t' + line).join('\n');
6029
6244
  return new TypeError(message);
6030
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
+ }
6031
6274
  })();
6032
6275
  return v_error === undefined ? null : v_error;
6033
6276
  }
@@ -6057,6 +6300,16 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
6057
6300
  version: VERSION$c,
6058
6301
  private: [],
6059
6302
  selections: [
6303
+ {
6304
+ name: 'centerHasMoreLatest',
6305
+ kind: 'Scalar',
6306
+ required: false
6307
+ },
6308
+ {
6309
+ name: 'centerHasMoreOldest',
6310
+ kind: 'Scalar',
6311
+ required: false
6312
+ },
6060
6313
  {
6061
6314
  name: 'hasMore',
6062
6315
  kind: 'Scalar'
@@ -6070,11 +6323,42 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
6070
6323
  {
6071
6324
  name: 'nextCursor',
6072
6325
  kind: 'Scalar'
6326
+ },
6327
+ {
6328
+ name: 'unreadCountDisplay',
6329
+ kind: 'Scalar',
6330
+ required: false
6073
6331
  }
6074
6332
  ]
6075
6333
  };
6076
6334
  };
6077
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
+ }
6078
6362
  const existing_hasMore = existing.hasMore;
6079
6363
  const incoming_hasMore = incoming.hasMore;
6080
6364
  if (!(existing_hasMore === incoming_hasMore)) {
@@ -6095,6 +6379,19 @@ function equals$c(existing, incoming) {
6095
6379
  if (!(existing_nextCursor === incoming_nextCursor)) {
6096
6380
  return false;
6097
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
+ }
6098
6395
  return true;
6099
6396
  }
6100
6397
  const ingest$a = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -6577,7 +6874,7 @@ function select$w(luvio, params) {
6577
6874
  return select$x();
6578
6875
  }
6579
6876
  function keyBuilder$x(luvio, params) {
6580
- 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 + ')';
6581
6878
  }
6582
6879
  function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
6583
6880
  getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
@@ -6627,6 +6924,7 @@ function createResourceRequest$l(config) {
6627
6924
 
6628
6925
  const adapterName$l = 'getSlackConversation';
6629
6926
  const getSlackConversation_ConfigPropertyMetadata = [
6927
+ generateParamConfigMetadata('centerMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
6630
6928
  generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
6631
6929
  generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
6632
6930
  generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
@@ -10993,4 +11291,4 @@ withDefaultLuvio((luvio) => {
10993
11291
  });
10994
11292
 
10995
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 };
10996
- // version: 1.370.0-7c1df2520b
11294
+ // version: 1.372.0-59e8aa192f
package/src/raml/api.raml CHANGED
@@ -70,9 +70,17 @@ types:
70
70
  description: Contains the details of segment of a Slack conversation's history
71
71
  type: object
72
72
  properties:
73
+ centerHasMoreLatest:
74
+ description: Does this conversation have more messages later than the provided center timestamp?
75
+ required: false
76
+ type: boolean | nil
77
+ centerHasMoreOldest:
78
+ description: Does this conversation have more messages older than the provided center timestamp?
79
+ required: false
80
+ type: boolean | nil
73
81
  hasMore:
74
82
  description: Does this conversation have more messages to retrieve?
75
- type: boolean
83
+ type: boolean | nil
76
84
  messages:
77
85
  description: List of Slack messages
78
86
  type: array
@@ -82,6 +90,11 @@ types:
82
90
  description: Used to paginate to the next page by passing this value as the
83
91
  cursor parameter in a subsequent request
84
92
  type: string | nil
93
+ unreadCountDisplay:
94
+ description: Number of messages the current user has not read
95
+ and did not author
96
+ required: false
97
+ type: integer | nil
85
98
  SlackBridgeConversationInfoOutputRepresentation:
86
99
  description: Contains the conversation info
87
100
  type: object
@@ -134,6 +147,10 @@ types:
134
147
  isThreadOnly:
135
148
  description: Is this conversation thread-only?
136
149
  type: boolean | nil
150
+ latest:
151
+ description: The timestamp of the last message in this conversation
152
+ required: false
153
+ type: string | nil
137
154
  lastRead:
138
155
  description: The timestamp of the last read message of this conversation by
139
156
  the current user
@@ -151,6 +168,15 @@ types:
151
168
  shouldCacheCustomEmoji:
152
169
  description: Should the Custom Emojis be cached?
153
170
  type: boolean | nil
171
+ unreadCount:
172
+ description: Number of messages the current user has not read
173
+ required: false
174
+ type: integer | nil
175
+ unreadCountDisplay:
176
+ description: Number of messages the current user has not read
177
+ and did not author
178
+ required: false
179
+ type: integer | nil
154
180
  url:
155
181
  description: The URL to the channel
156
182
  required: false
@@ -942,6 +968,10 @@ types:
942
968
  application/json:
943
969
  type: SlackBridgeConversationOutputRepresentation
944
970
  queryParameters:
971
+ centerMessageTs:
972
+ description: Messages before and after this Unix timestamp will be included in results.
973
+ type: string
974
+ required: false
945
975
  channelId:
946
976
  description: Channel where the conversation exist
947
977
  type: string