@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev7 → 1.332.0-dev8

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.
@@ -289,7 +289,7 @@ function equals$k(existing, incoming) {
289
289
  }
290
290
 
291
291
  const TTL = 600000;
292
- const VERSION$j = "ed55b392107ffac0017655cf2fd0083e";
292
+ const VERSION$j = "c15d4769a77b0ce9f7c5d06c3210c0d8";
293
293
  function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
294
294
  const v_error = (() => {
295
295
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -326,6 +326,32 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
326
326
  message += '\n' + obj_displayName_union1.split('\n').map((line) => '\t' + line).join('\n');
327
327
  return new TypeError(message);
328
328
  }
329
+ const obj_email = obj.email;
330
+ const path_email = path + '.email';
331
+ let obj_email_union0 = null;
332
+ const obj_email_union0_error = (() => {
333
+ if (typeof obj_email !== 'string') {
334
+ return new TypeError('Expected "string" but received "' + typeof obj_email + '" (at "' + path_email + '")');
335
+ }
336
+ })();
337
+ if (obj_email_union0_error != null) {
338
+ obj_email_union0 = obj_email_union0_error.message;
339
+ }
340
+ let obj_email_union1 = null;
341
+ const obj_email_union1_error = (() => {
342
+ if (obj_email !== null) {
343
+ return new TypeError('Expected "null" but received "' + typeof obj_email + '" (at "' + path_email + '")');
344
+ }
345
+ })();
346
+ if (obj_email_union1_error != null) {
347
+ obj_email_union1 = obj_email_union1_error.message;
348
+ }
349
+ if (obj_email_union0 && obj_email_union1) {
350
+ let message = 'Object doesn\'t match union (at "' + path_email + '")';
351
+ message += '\n' + obj_email_union0.split('\n').map((line) => '\t' + line).join('\n');
352
+ message += '\n' + obj_email_union1.split('\n').map((line) => '\t' + line).join('\n');
353
+ return new TypeError(message);
354
+ }
329
355
  const obj_image24 = obj.image24;
330
356
  const path_image24 = path + '.image24';
331
357
  let obj_image24_union0 = null;
@@ -604,6 +630,32 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
604
630
  if (typeof obj_teamId !== 'string') {
605
631
  return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
606
632
  }
633
+ const obj_title = obj.title;
634
+ const path_title = path + '.title';
635
+ let obj_title_union0 = null;
636
+ const obj_title_union0_error = (() => {
637
+ if (typeof obj_title !== 'string') {
638
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
639
+ }
640
+ })();
641
+ if (obj_title_union0_error != null) {
642
+ obj_title_union0 = obj_title_union0_error.message;
643
+ }
644
+ let obj_title_union1 = null;
645
+ const obj_title_union1_error = (() => {
646
+ if (obj_title !== null) {
647
+ return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
648
+ }
649
+ })();
650
+ if (obj_title_union1_error != null) {
651
+ obj_title_union1 = obj_title_union1_error.message;
652
+ }
653
+ if (obj_title_union0 && obj_title_union1) {
654
+ let message = 'Object doesn\'t match union (at "' + path_title + '")';
655
+ message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
656
+ message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
657
+ return new TypeError(message);
658
+ }
607
659
  })();
608
660
  return v_error === undefined ? null : v_error;
609
661
  }
@@ -636,6 +688,10 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
636
688
  name: 'displayName',
637
689
  kind: 'Scalar'
638
690
  },
691
+ {
692
+ name: 'email',
693
+ kind: 'Scalar'
694
+ },
639
695
  {
640
696
  name: 'image24',
641
697
  kind: 'Scalar'
@@ -689,6 +745,10 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
689
745
  {
690
746
  name: 'teamId',
691
747
  kind: 'Scalar'
748
+ },
749
+ {
750
+ name: 'title',
751
+ kind: 'Scalar'
692
752
  }
693
753
  ]
694
754
  };
@@ -719,6 +779,11 @@ function equals$j(existing, incoming) {
719
779
  if (!(existing_displayName === incoming_displayName)) {
720
780
  return false;
721
781
  }
782
+ const existing_email = existing.email;
783
+ const incoming_email = incoming.email;
784
+ if (!(existing_email === incoming_email)) {
785
+ return false;
786
+ }
722
787
  const existing_image24 = existing.image24;
723
788
  const incoming_image24 = incoming.image24;
724
789
  if (!(existing_image24 === incoming_image24)) {
@@ -772,6 +837,11 @@ function equals$j(existing, incoming) {
772
837
  if (!(existing_statusMessage === incoming_statusMessage)) {
773
838
  return false;
774
839
  }
840
+ const existing_title = existing.title;
841
+ const incoming_title = incoming.title;
842
+ if (!(existing_title === incoming_title)) {
843
+ return false;
844
+ }
775
845
  return true;
776
846
  }
777
847
  const ingest$f = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -6255,7 +6325,7 @@ function select$1(luvio, params) {
6255
6325
  return select$2();
6256
6326
  }
6257
6327
  function keyBuilder$3(luvio, params) {
6258
- return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
6328
+ return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'channels:' + params.queryParams.channels + ',' + 'filter:' + params.queryParams.filter + ',' + 'not_in_channels:' + params.queryParams.not_in_channels + ',' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
6259
6329
  }
6260
6330
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
6261
6331
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -6300,6 +6370,9 @@ function createResourceRequest$1(config) {
6300
6370
  const adapterName$1 = 'getSlackSearchUser';
6301
6371
  const getSlackSearchUser_ConfigPropertyMetadata = [
6302
6372
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
6373
+ generateParamConfigMetadata('channels', false, 1 /* QueryParameter */, 0 /* String */, true),
6374
+ generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
6375
+ generateParamConfigMetadata('not_in_channels', false, 1 /* QueryParameter */, 0 /* String */, true),
6303
6376
  generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
6304
6377
  ];
6305
6378
  const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
@@ -7,6 +7,9 @@ export declare const getSlackSearchUser_ConfigPropertyMetadata: $64$luvio_engine
7
7
  export declare const getSlackSearchUser_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetSlackSearchUserConfig {
9
9
  teamId: string;
10
+ channels?: Array<string>;
11
+ filter?: string;
12
+ not_in_channels?: Array<string>;
10
13
  search?: string;
11
14
  }
12
15
  export declare const createResourceParams: (config: GetSlackSearchUserConfig) => resources_getConnectSlackbridgeTeamSearchUsersByTeamId_ResourceRequestConfig;
@@ -5,6 +5,9 @@ export interface ResourceRequestConfig {
5
5
  teamId: string;
6
6
  };
7
7
  queryParams: {
8
+ channels?: Array<string>;
9
+ filter?: string;
10
+ not_in_channels?: Array<string>;
8
11
  search?: string;
9
12
  };
10
13
  }
@@ -1,7 +1,7 @@
1
1
  import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
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 = 600000;
4
- export declare const VERSION = "ed55b392107ffac0017655cf2fd0083e";
4
+ export declare const VERSION = "c15d4769a77b0ce9f7c5d06c3210c0d8";
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 {
@@ -31,6 +31,8 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
31
31
  bot: boolean;
32
32
  /** Display Name of the Slack User */
33
33
  displayName: string | null;
34
+ /** Email of the Slack User */
35
+ email: string | null;
34
36
  /** 24x24 version of the Slack User image */
35
37
  image24: string | null;
36
38
  /** Original version of the Slack User image */
@@ -57,6 +59,8 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
57
59
  statusMessage: string | null;
58
60
  /** Slack Workspace Id */
59
61
  teamId: string;
62
+ /** Title of the Slack User */
63
+ title: string | null;
60
64
  }
61
65
  /**
62
66
  * Contains the details of Slack User
@@ -68,6 +72,7 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
68
72
  export interface SlackBridgeUserInfoOutputRepresentation {
69
73
  bot: boolean;
70
74
  displayName: string | null;
75
+ email: string | null;
71
76
  image24: string | null;
72
77
  imageOriginal: string | null;
73
78
  inHuddle: boolean | null;
@@ -81,4 +86,5 @@ export interface SlackBridgeUserInfoOutputRepresentation {
81
86
  statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
82
87
  statusMessage: string | null;
83
88
  teamId: string;
89
+ title: string | null;
84
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.332.0-dev7",
3
+ "version": "1.332.0-dev8",
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.332.0-dev7"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev8"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev7"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev8"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1003,7 +1003,7 @@ function equals$g(existing, incoming) {
1003
1003
  }
1004
1004
 
1005
1005
  const TTL = 600000;
1006
- const VERSION$f = "ed55b392107ffac0017655cf2fd0083e";
1006
+ const VERSION$f = "c15d4769a77b0ce9f7c5d06c3210c0d8";
1007
1007
  function validate$f(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
1008
1008
  const v_error = (() => {
1009
1009
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1040,6 +1040,32 @@ function validate$f(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
1040
1040
  message += '\n' + obj_displayName_union1.split('\n').map((line) => '\t' + line).join('\n');
1041
1041
  return new TypeError(message);
1042
1042
  }
1043
+ const obj_email = obj.email;
1044
+ const path_email = path + '.email';
1045
+ let obj_email_union0 = null;
1046
+ const obj_email_union0_error = (() => {
1047
+ if (typeof obj_email !== 'string') {
1048
+ return new TypeError('Expected "string" but received "' + typeof obj_email + '" (at "' + path_email + '")');
1049
+ }
1050
+ })();
1051
+ if (obj_email_union0_error != null) {
1052
+ obj_email_union0 = obj_email_union0_error.message;
1053
+ }
1054
+ let obj_email_union1 = null;
1055
+ const obj_email_union1_error = (() => {
1056
+ if (obj_email !== null) {
1057
+ return new TypeError('Expected "null" but received "' + typeof obj_email + '" (at "' + path_email + '")');
1058
+ }
1059
+ })();
1060
+ if (obj_email_union1_error != null) {
1061
+ obj_email_union1 = obj_email_union1_error.message;
1062
+ }
1063
+ if (obj_email_union0 && obj_email_union1) {
1064
+ let message = 'Object doesn\'t match union (at "' + path_email + '")';
1065
+ message += '\n' + obj_email_union0.split('\n').map((line) => '\t' + line).join('\n');
1066
+ message += '\n' + obj_email_union1.split('\n').map((line) => '\t' + line).join('\n');
1067
+ return new TypeError(message);
1068
+ }
1043
1069
  const obj_image24 = obj.image24;
1044
1070
  const path_image24 = path + '.image24';
1045
1071
  let obj_image24_union0 = null;
@@ -1318,6 +1344,32 @@ function validate$f(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
1318
1344
  if (typeof obj_teamId !== 'string') {
1319
1345
  return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
1320
1346
  }
1347
+ const obj_title = obj.title;
1348
+ const path_title = path + '.title';
1349
+ let obj_title_union0 = null;
1350
+ const obj_title_union0_error = (() => {
1351
+ if (typeof obj_title !== 'string') {
1352
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
1353
+ }
1354
+ })();
1355
+ if (obj_title_union0_error != null) {
1356
+ obj_title_union0 = obj_title_union0_error.message;
1357
+ }
1358
+ let obj_title_union1 = null;
1359
+ const obj_title_union1_error = (() => {
1360
+ if (obj_title !== null) {
1361
+ return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
1362
+ }
1363
+ })();
1364
+ if (obj_title_union1_error != null) {
1365
+ obj_title_union1 = obj_title_union1_error.message;
1366
+ }
1367
+ if (obj_title_union0 && obj_title_union1) {
1368
+ let message = 'Object doesn\'t match union (at "' + path_title + '")';
1369
+ message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
1370
+ message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
1371
+ return new TypeError(message);
1372
+ }
1321
1373
  })();
1322
1374
  return v_error === undefined ? null : v_error;
1323
1375
  }
@@ -1350,6 +1402,10 @@ const select$v = function SlackBridgeUserInfoOutputRepresentationSelect() {
1350
1402
  name: 'displayName',
1351
1403
  kind: 'Scalar'
1352
1404
  },
1405
+ {
1406
+ name: 'email',
1407
+ kind: 'Scalar'
1408
+ },
1353
1409
  {
1354
1410
  name: 'image24',
1355
1411
  kind: 'Scalar'
@@ -1403,6 +1459,10 @@ const select$v = function SlackBridgeUserInfoOutputRepresentationSelect() {
1403
1459
  {
1404
1460
  name: 'teamId',
1405
1461
  kind: 'Scalar'
1462
+ },
1463
+ {
1464
+ name: 'title',
1465
+ kind: 'Scalar'
1406
1466
  }
1407
1467
  ]
1408
1468
  };
@@ -1433,6 +1493,11 @@ function equals$f(existing, incoming) {
1433
1493
  if (!(existing_displayName === incoming_displayName)) {
1434
1494
  return false;
1435
1495
  }
1496
+ const existing_email = existing.email;
1497
+ const incoming_email = incoming.email;
1498
+ if (!(existing_email === incoming_email)) {
1499
+ return false;
1500
+ }
1436
1501
  const existing_image24 = existing.image24;
1437
1502
  const incoming_image24 = incoming.image24;
1438
1503
  if (!(existing_image24 === incoming_image24)) {
@@ -1486,6 +1551,11 @@ function equals$f(existing, incoming) {
1486
1551
  if (!(existing_statusMessage === incoming_statusMessage)) {
1487
1552
  return false;
1488
1553
  }
1554
+ const existing_title = existing.title;
1555
+ const incoming_title = incoming.title;
1556
+ if (!(existing_title === incoming_title)) {
1557
+ return false;
1558
+ }
1489
1559
  return true;
1490
1560
  }
1491
1561
  const ingest$c = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -5725,7 +5795,7 @@ function select$8(luvio, params) {
5725
5795
  return select$9();
5726
5796
  }
5727
5797
  function keyBuilder$4(luvio, params) {
5728
- return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
5798
+ return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'channels:' + params.queryParams.channels + ',' + 'filter:' + params.queryParams.filter + ',' + 'not_in_channels:' + params.queryParams.not_in_channels + ',' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
5729
5799
  }
5730
5800
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
5731
5801
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
@@ -5770,6 +5840,9 @@ function createResourceRequest$7(config) {
5770
5840
  const adapterName$7 = 'getSlackSearchUser';
5771
5841
  const getSlackSearchUser_ConfigPropertyMetadata = [
5772
5842
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
5843
+ generateParamConfigMetadata('channels', false, 1 /* QueryParameter */, 0 /* String */, true),
5844
+ generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
5845
+ generateParamConfigMetadata('not_in_channels', false, 1 /* QueryParameter */, 0 /* String */, true),
5773
5846
  generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
5774
5847
  ];
5775
5848
  const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackSearchUser_ConfigPropertyMetadata);
@@ -6875,4 +6948,4 @@ withDefaultLuvio((luvio) => {
6875
6948
  });
6876
6949
 
6877
6950
  export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackCustomEmoji, getSlackCustomEmoji_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
6878
- // version: 1.332.0-dev7-84af9c7762
6951
+ // version: 1.332.0-dev8-41f1196a17
package/src/raml/api.raml CHANGED
@@ -565,6 +565,9 @@ types:
565
565
  displayName:
566
566
  description: Display Name of the Slack User
567
567
  type: string | nil
568
+ email:
569
+ description: Email of the Slack User
570
+ type: string | nil
568
571
  image24:
569
572
  description: 24x24 version of the Slack User image
570
573
  type: string | nil
@@ -604,6 +607,9 @@ types:
604
607
  teamId:
605
608
  description: Slack Workspace Id
606
609
  type: string
610
+ title:
611
+ description: Title of the Slack User
612
+ type: string | nil
607
613
  SlackBridgeUserInfosOutputRepresentation:
608
614
  description: Contains the list of Slack User Information
609
615
  type: object
@@ -946,6 +952,21 @@ types:
946
952
  application/json:
947
953
  type: SlackBridgeUserInfosOutputRepresentation
948
954
  queryParameters:
955
+ channels:
956
+ type: array
957
+ required: false
958
+ items:
959
+ type: string
960
+ (oas-collectionFormat): csv
961
+ filter:
962
+ type: string
963
+ required: false
964
+ not_in_channels:
965
+ type: array
966
+ required: false
967
+ items:
968
+ type: string
969
+ (oas-collectionFormat): csv
949
970
  search:
950
971
  description: Search String
951
972
  type: string