@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev1 → 1.332.0-dev11

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.
Files changed (43) hide show
  1. package/dist/es/es2018/platform-slack-bridge.js +3769 -1470
  2. package/dist/es/es2018/types/src/generated/adapters/deleteSlackConversationMember.d.ts +16 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMember.d.ts +30 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMembers.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getSlackRecordChannelInfo.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getSlackSearchConversation.d.ts +28 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getSlackSearchUser.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMark.d.ts +17 -0
  9. package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMembers.d.ts +17 -0
  10. package/dist/es/es2018/types/src/generated/adapters/postSlackRecordChannelInfos.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +8 -0
  12. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +16 -1
  13. package/dist/es/es2018/types/src/generated/resources/deleteConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +14 -0
  14. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeRecord_channelsByRelatedRecordId.d.ts +16 -0
  15. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +18 -0
  16. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +17 -0
  17. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchConversationsByTeamId.d.ts +18 -0
  18. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchUsersByTeamId.d.ts +3 -0
  19. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeRecord_channels.d.ts +15 -0
  20. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMarkByChannelIdAndTeamId.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +16 -0
  22. package/dist/es/es2018/types/src/generated/types/SlackBridgeContentVersionOutputRepresentation.d.ts +6 -5
  23. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +34 -22
  24. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +14 -5
  25. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInputRepresentation.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMarkOutputRepresentation.d.ts +40 -0
  27. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMemberOutputRepresentation.d.ts +40 -0
  28. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersInputRepresentation.d.ts +28 -0
  29. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersOutputRepresentation.d.ts +43 -0
  30. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +5 -3
  31. package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiOutputRepresentation.d.ts +7 -7
  32. package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojisOutputRepresentation.d.ts +3 -3
  33. package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +14 -14
  34. package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +21 -7
  35. package/dist/es/es2018/types/src/generated/types/SlackBridgeReactionOutputRepresentation.d.ts +3 -3
  36. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoInputRepresentation.d.ts +36 -0
  37. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoOutputRepresentation.d.ts +53 -0
  38. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +16 -10
  39. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +3 -3
  40. package/package.json +3 -3
  41. package/sfdc/index.js +4730 -2258
  42. package/src/raml/api.raml +379 -117
  43. package/src/raml/luvio.raml +85 -26
@@ -0,0 +1,36 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "3c1954c22e6a059a8a8b62224d337ff4";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SlackBridgeRecordChannelInfoInputRepresentation, existing: SlackBridgeRecordChannelInfoInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRecordChannelInfoInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SlackBridgeRecordChannelInfoInputRepresentationNormalized, incoming: SlackBridgeRecordChannelInfoInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeRecordChannelInfoInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of a Slack record channel
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SlackBridgeRecordChannelInfoInputRepresentationNormalized {
17
+ /** The conversation info associated with the record */
18
+ conversationInfo: {
19
+ /** Is this conversation private? */
20
+ isPrivate: boolean;
21
+ };
22
+ /** The ID of the Salesforce record associated with the conversation */
23
+ relatedRecordId: string;
24
+ }
25
+ /**
26
+ * Representation of a Slack record channel
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface SlackBridgeRecordChannelInfoInputRepresentation {
32
+ conversationInfo: {
33
+ isPrivate: boolean;
34
+ };
35
+ relatedRecordId: string;
36
+ }
@@ -0,0 +1,53 @@
1
+ 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, 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 } from '@luvio/engine';
2
+ import { SlackBridgeConversationInfoOutputRepresentation as SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation } from './SlackBridgeConversationInfoOutputRepresentation';
3
+ export declare const VERSION = "ed15e6ba6e9dd618e72c6eea210ee7a8";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ relatedRecordId: string;
8
+ }
9
+ export type SlackBridgeRecordChannelInfoOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialSlackBridgeRecordChannelInfoOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SlackBridgeRecordChannelInfoOutputRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackBridgeRecordChannelInfoOutputRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackBridgeRecordChannelInfoOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: SlackBridgeRecordChannelInfoOutputRepresentation, existing: SlackBridgeRecordChannelInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRecordChannelInfoOutputRepresentationNormalized;
16
+ export interface DynamicIngestParams {
17
+ conversationInfo: $64$luvio_engine_ResourceIngest;
18
+ }
19
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackBridgeRecordChannelInfoOutputRepresentation, existing: SlackBridgeRecordChannelInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackBridgeRecordChannelInfoOutputRepresentationNormalized;
20
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
21
+ export interface DynamicSelectParams {
22
+ conversationInfo?: $64$luvio_engine_LinkSelection;
23
+ }
24
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
25
+ export declare function equals(existing: SlackBridgeRecordChannelInfoOutputRepresentationNormalized, incoming: SlackBridgeRecordChannelInfoOutputRepresentationNormalized): boolean;
26
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
27
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeRecordChannelInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
28
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
29
+ /**
30
+ * Representation of a Slack record channel
31
+ *
32
+ * Keys:
33
+ * relatedRecordId (string): relatedRecordId
34
+ */
35
+ export interface SlackBridgeRecordChannelInfoOutputRepresentationNormalized {
36
+ /** The conversation info associated with the record */
37
+ conversationInfo: $64$luvio_engine_StoreLink;
38
+ /** The ID of the Salesforce record associated with the conversation */
39
+ relatedRecordId: string;
40
+ /** The Slack ID of the Slack team */
41
+ teamId: string;
42
+ }
43
+ /**
44
+ * Representation of a Slack record channel
45
+ *
46
+ * Keys:
47
+ * relatedRecordId (string): relatedRecordId
48
+ */
49
+ export interface SlackBridgeRecordChannelInfoOutputRepresentation {
50
+ conversationInfo: SlackBridgeConversationInfoOutputRepresentation_SlackBridgeConversationInfoOutputRepresentation;
51
+ relatedRecordId: string;
52
+ teamId: string;
53
+ }
@@ -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
- export declare const TTL = 300000;
4
- export declare const VERSION = "1c89c1c8379c0e55b8f94fecd03d8775";
3
+ export declare const TTL = 600000;
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 {
@@ -30,9 +30,11 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
30
30
  /** Is this a Bot User? */
31
31
  bot: boolean;
32
32
  /** Display Name of the Slack User */
33
- displayName: string;
33
+ displayName: string | null;
34
+ /** Email of the Slack User */
35
+ email: string | null;
34
36
  /** 24x24 version of the Slack User image */
35
- image24: string;
37
+ image24: string | null;
36
38
  /** Original version of the Slack User image */
37
39
  imageOriginal: string | null;
38
40
  /** Is this Slack User currently in a Huddle? */
@@ -46,7 +48,7 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
46
48
  /** User Profile url */
47
49
  profileUrl: string | null;
48
50
  /** Real Name of the Slack User */
49
- realName: string;
51
+ realName: string | null;
50
52
  /** Id of the related Salesforce User mapped to the Slack User */
51
53
  salesforceUserId: string | null;
52
54
  /** Id of the Slack User */
@@ -54,9 +56,11 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
54
56
  /** Status emoji of the Slack User */
55
57
  statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
56
58
  /** Status message of the Slack User */
57
- statusMessage: string;
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
@@ -67,18 +71,20 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
67
71
  */
68
72
  export interface SlackBridgeUserInfoOutputRepresentation {
69
73
  bot: boolean;
70
- displayName: string;
71
- image24: string;
74
+ displayName: string | null;
75
+ email: string | null;
76
+ image24: string | null;
72
77
  imageOriginal: string | null;
73
78
  inHuddle: boolean | null;
74
79
  isActive: boolean | null;
75
80
  isExternal: boolean | null;
76
81
  name: string;
77
82
  profileUrl: string | null;
78
- realName: string;
83
+ realName: string | null;
79
84
  salesforceUserId: string | null;
80
85
  slackUserId: string;
81
86
  statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
82
- statusMessage: string;
87
+ statusMessage: string | null;
83
88
  teamId: string;
89
+ title: string | null;
84
90
  }
@@ -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 { SlackBridgeUserInfoOutputRepresentation as SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation } from './SlackBridgeUserInfoOutputRepresentation';
3
- export declare const VERSION = "a34bf4d8d78f6cfc1c3ff193ce06f673";
3
+ export declare const VERSION = "058d708f5533e6123e368a3722311412";
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: SlackBridgeUserInfosOutputRepresentation, existing: SlackBridgeUserInfosOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeUserInfosOutputRepresentationNormalized;
@@ -25,7 +25,7 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
25
25
  */
26
26
  export interface SlackBridgeUserInfosOutputRepresentationNormalized {
27
27
  /** String used to search this list of conversations (Optional) */
28
- searchString: string;
28
+ searchString: string | null;
29
29
  /** List of Slack User Information */
30
30
  userInfos: Array<$64$luvio_engine_StoreLink>;
31
31
  }
@@ -36,6 +36,6 @@ export interface SlackBridgeUserInfosOutputRepresentationNormalized {
36
36
  * (none)
37
37
  */
38
38
  export interface SlackBridgeUserInfosOutputRepresentation {
39
- searchString: string;
39
+ searchString: string | null;
40
40
  userInfos: Array<SlackBridgeUserInfoOutputRepresentation_SlackBridgeUserInfoOutputRepresentation>;
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.332.0-dev1",
3
+ "version": "1.332.0-dev11",
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-dev1"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev11"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev1"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev11"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {