@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev18 → 1.332.0-dev19

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.
@@ -4410,7 +4410,7 @@ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge_
4410
4410
  };
4411
4411
 
4412
4412
  const TTL = 500;
4413
- const VERSION$8 = "192b0be748476888c3d3587558207214";
4413
+ const VERSION$8 = "fb0fd743f16f2b13d70727c055fbc834";
4414
4414
  function validate$8(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation') {
4415
4415
  const v_error = (() => {
4416
4416
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4440,6 +4440,11 @@ function validate$8(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation')
4440
4440
  return new TypeError('Expected "object" but received "' + typeof obj_messages_item + '" (at "' + path_messages_item + '")');
4441
4441
  }
4442
4442
  }
4443
+ const obj_teamId = obj.teamId;
4444
+ const path_teamId = path + '.teamId';
4445
+ if (typeof obj_teamId !== 'string') {
4446
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
4447
+ }
4443
4448
  })();
4444
4449
  return v_error === undefined ? null : v_error;
4445
4450
  }
@@ -4496,11 +4501,20 @@ const select$m = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
4496
4501
  kind: 'Link',
4497
4502
  plural: true,
4498
4503
  fragment: select$w()
4504
+ },
4505
+ {
4506
+ name: 'teamId',
4507
+ kind: 'Scalar'
4499
4508
  }
4500
4509
  ]
4501
4510
  };
4502
4511
  };
4503
4512
  function equals$8(existing, incoming) {
4513
+ const existing_teamId = existing.teamId;
4514
+ const incoming_teamId = incoming.teamId;
4515
+ if (!(existing_teamId === incoming_teamId)) {
4516
+ return false;
4517
+ }
4504
4518
  const existing_conversations = existing.conversations;
4505
4519
  const incoming_conversations = incoming.conversations;
4506
4520
  const equals_conversations_items = equalsArray(existing_conversations, incoming_conversations, (existing_conversations_item, incoming_conversations_item) => {
@@ -2,7 +2,7 @@ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Lu
2
2
  import { SlackBridgeConversationInfoOutputRepresentation as SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from './SlackBridgeConversationInfoOutputRepresentation';
3
3
  import { SlackBridgeMessageOutputRepresentation as SlackBridgeMessageOutputRepresentation_SlackBridgeMessageOutputRepresentation } from './SlackBridgeMessageOutputRepresentation';
4
4
  export declare const TTL = 500;
5
- export declare const VERSION = "192b0be748476888c3d3587558207214";
5
+ export declare const VERSION = "fb0fd743f16f2b13d70727c055fbc834";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: SlackBridgeRelatedThreadsOutputRepresentation, existing: SlackBridgeRelatedThreadsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRelatedThreadsOutputRepresentationNormalized;
@@ -32,6 +32,8 @@ export interface SlackBridgeRelatedThreadsOutputRepresentationNormalized {
32
32
  conversations: Array<$64$luvio_engine_StoreLink>;
33
33
  /** List of Slack messages */
34
34
  messages: Array<$64$luvio_engine_StoreLink>;
35
+ /** The id of the Slack team (Workspace or Enterprise Org) where the related threads exist */
36
+ teamId: string;
35
37
  }
36
38
  /**
37
39
  * Contains the Slack Related Threads
@@ -42,4 +44,5 @@ export interface SlackBridgeRelatedThreadsOutputRepresentationNormalized {
42
44
  export interface SlackBridgeRelatedThreadsOutputRepresentation {
43
45
  conversations: Array<SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation>;
44
46
  messages: Array<SlackBridgeMessageOutputRepresentation_SlackBridgeMessageOutputRepresentation>;
47
+ teamId: string;
45
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.332.0-dev18",
3
+ "version": "1.332.0-dev19",
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-dev18"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev19"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev18"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev19"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2645,7 +2645,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
2645
2645
  }
2646
2646
 
2647
2647
  const TTL$2 = 500;
2648
- const VERSION$c = "192b0be748476888c3d3587558207214";
2648
+ const VERSION$c = "fb0fd743f16f2b13d70727c055fbc834";
2649
2649
  function validate$c(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation') {
2650
2650
  const v_error = (() => {
2651
2651
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2675,6 +2675,11 @@ function validate$c(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation')
2675
2675
  return new TypeError('Expected "object" but received "' + typeof obj_messages_item + '" (at "' + path_messages_item + '")');
2676
2676
  }
2677
2677
  }
2678
+ const obj_teamId = obj.teamId;
2679
+ const path_teamId = path + '.teamId';
2680
+ if (typeof obj_teamId !== 'string') {
2681
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
2682
+ }
2678
2683
  })();
2679
2684
  return v_error === undefined ? null : v_error;
2680
2685
  }
@@ -2731,11 +2736,20 @@ const select$v = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
2731
2736
  kind: 'Link',
2732
2737
  plural: true,
2733
2738
  fragment: select$w()
2739
+ },
2740
+ {
2741
+ name: 'teamId',
2742
+ kind: 'Scalar'
2734
2743
  }
2735
2744
  ]
2736
2745
  };
2737
2746
  };
2738
2747
  function equals$c(existing, incoming) {
2748
+ const existing_teamId = existing.teamId;
2749
+ const incoming_teamId = incoming.teamId;
2750
+ if (!(existing_teamId === incoming_teamId)) {
2751
+ return false;
2752
+ }
2739
2753
  const existing_conversations = existing.conversations;
2740
2754
  const incoming_conversations = incoming.conversations;
2741
2755
  const equals_conversations_items = equalsArray(existing_conversations, incoming_conversations, (existing_conversations_item, incoming_conversations_item) => {
@@ -7840,4 +7854,4 @@ withDefaultLuvio((luvio) => {
7840
7854
  });
7841
7855
 
7842
7856
  export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
7843
- // version: 1.332.0-dev18-3057085133
7857
+ // version: 1.332.0-dev19-d7ba00c6cd
package/src/raml/api.raml CHANGED
@@ -578,6 +578,10 @@ types:
578
578
  type: array
579
579
  items:
580
580
  type: SlackBridgeMessageOutputRepresentation
581
+ teamId:
582
+ description: The id of the Slack team (Workspace or Enterprise Org) where
583
+ the related threads exist
584
+ type: string
581
585
  SlackBridgeUpdateMessageInputRepresentation:
582
586
  description: Contains the parameters to update a message to Slack
583
587
  type: object