@salesforce/lds-adapters-platform-slack-bridge 1.344.0 → 1.346.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.
Files changed (28) hide show
  1. package/dist/es/es2018/platform-slack-bridge.js +2037 -805
  2. package/dist/es/es2018/types/src/generated/adapters/getSlackEmoji.d.ts +29 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getSlackEmojis.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getSlackSearchConversation.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getSlackSearchUser.d.ts +3 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -1
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -3
  8. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamId.d.ts +17 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamEmojisByTeamId.d.ts +7 -4
  10. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchConversationsByTeamId.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchUsersByTeamId.d.ts +3 -0
  12. package/dist/es/es2018/types/src/generated/types/SlackBridgeContentVersionOutputRepresentation.d.ts +6 -5
  13. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +22 -19
  14. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +3 -3
  15. package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiOutputRepresentation.d.ts +33 -19
  16. package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiValueOutputRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojisOutputRepresentation.d.ts +14 -8
  18. package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +14 -14
  19. package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +7 -7
  20. package/dist/es/es2018/types/src/generated/types/SlackBridgeReactionOutputRepresentation.d.ts +3 -3
  21. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +26 -11
  22. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +3 -3
  23. package/package.json +3 -3
  24. package/sfdc/index.js +2175 -880
  25. package/src/raml/api.raml +147 -68
  26. package/src/raml/luvio.raml +16 -1
  27. package/dist/es/es2018/types/src/generated/adapters/getSlackCustomEmoji.d.ts +0 -27
  28. package/dist/es/es2018/types/src/generated/types/SlackBridgeCustomEmojisOutputRepresentation.d.ts +0 -35
@@ -1,10 +1,10 @@
1
1
  import { SlackBridgeContentDocumentOutputRepresentation as SlackBridgeContentDocumentOutputRepresentation_SlackBridgeContentDocumentOutputRepresentation } from './SlackBridgeContentDocumentOutputRepresentation';
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 VERSION = "3f1a7f34ee73f6a8d9677314d88bad78";
3
+ export declare const VERSION = "15fa7211c500ebba9537b3c9921b39cf";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
- uniqueKey: string;
7
+ uniqueKey: string | null;
8
8
  }
9
9
  export type SlackBridgeFileOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
10
  export type PartialSlackBridgeFileOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
@@ -21,11 +21,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
21
21
  * Contains the details of files attached to the Slack Message
22
22
  *
23
23
  * Keys:
24
- * uniqueKey (string): uniqueKey
24
+ * uniqueKey (string | null): uniqueKey
25
25
  */
26
26
  export interface SlackBridgeFileOutputRepresentationNormalized {
27
27
  /** Content Document data */
28
- contentDocument: SlackBridgeContentDocumentOutputRepresentation_SlackBridgeContentDocumentOutputRepresentation;
28
+ contentDocument: SlackBridgeContentDocumentOutputRepresentation_SlackBridgeContentDocumentOutputRepresentation | null;
29
29
  /** Type of the File */
30
30
  filetype: string;
31
31
  /** Slack Id of the File */
@@ -35,34 +35,34 @@ export interface SlackBridgeFileOutputRepresentationNormalized {
35
35
  /** Name of the File */
36
36
  name: string;
37
37
  /** Size of the File */
38
- size: number;
38
+ size: number | null;
39
39
  /** Slack Permalink for the File */
40
40
  slackPermalink: string;
41
41
  /** Title of the File */
42
42
  title: string;
43
43
  /** Token used for the File */
44
- token: string;
44
+ token: string | null;
45
45
  /** Unique Key for the File */
46
- uniqueKey: string;
46
+ uniqueKey: string | null;
47
47
  /** Slack web URL for the File */
48
- url: string;
48
+ url: string | null;
49
49
  }
50
50
  /**
51
51
  * Contains the details of files attached to the Slack Message
52
52
  *
53
53
  * Keys:
54
- * uniqueKey (string): uniqueKey
54
+ * uniqueKey (string | null): uniqueKey
55
55
  */
56
56
  export interface SlackBridgeFileOutputRepresentation {
57
- contentDocument: SlackBridgeContentDocumentOutputRepresentation_SlackBridgeContentDocumentOutputRepresentation;
57
+ contentDocument: SlackBridgeContentDocumentOutputRepresentation_SlackBridgeContentDocumentOutputRepresentation | null;
58
58
  filetype: string;
59
59
  id: string;
60
60
  mimetype: string;
61
61
  name: string;
62
- size: number;
62
+ size: number | null;
63
63
  slackPermalink: string;
64
64
  title: string;
65
- token: string;
66
- uniqueKey: string;
67
- url: string;
65
+ token: string | null;
66
+ uniqueKey: string | null;
67
+ url: string | null;
68
68
  }
@@ -1,7 +1,7 @@
1
1
  import { SlackBridgeReactionOutputRepresentation as SlackBridgeReactionOutputRepresentation_SlackBridgeReactionOutputRepresentation } from './SlackBridgeReactionOutputRepresentation';
2
2
  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';
3
3
  import { SlackBridgeFileOutputRepresentation as SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation } from './SlackBridgeFileOutputRepresentation';
4
- export declare const VERSION = "d4fb2fb522a777fd831f500fea806ebe";
4
+ export declare const VERSION = "a8502e4e4bb65313c6fbaa1f89f1e539";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: SlackBridgeMessageOutputRepresentation, existing: SlackBridgeMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeMessageOutputRepresentationNormalized;
@@ -38,11 +38,11 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
38
38
  /** Does this message includes Custom emoji? */
39
39
  includesCustomEmoji: boolean | null;
40
40
  /** Is this a reply also sent to the Channel? */
41
- isBroadcast: boolean;
41
+ isBroadcast: boolean | null;
42
42
  /** Can this message be edited? */
43
43
  isEditable: boolean;
44
44
  /** Is this an edited message? */
45
- isEdited: boolean;
45
+ isEdited: boolean | null;
46
46
  /** Latest Reply timestamp */
47
47
  latestReplyTimestamp: string | null;
48
48
  /** Content of the Message */
@@ -64,7 +64,7 @@ export interface SlackBridgeMessageOutputRepresentationNormalized {
64
64
  /** Timestamp of the thread to which this message belong to */
65
65
  threadTs: string | null;
66
66
  /** Type of Message */
67
- type: string;
67
+ type: string | null;
68
68
  /** Url for this message */
69
69
  url: string;
70
70
  }
@@ -83,9 +83,9 @@ export interface SlackBridgeMessageOutputRepresentation {
83
83
  }>;
84
84
  files: Array<SlackBridgeFileOutputRepresentation_SlackBridgeFileOutputRepresentation>;
85
85
  includesCustomEmoji: boolean | null;
86
- isBroadcast: boolean;
86
+ isBroadcast: boolean | null;
87
87
  isEditable: boolean;
88
- isEdited: boolean;
88
+ isEdited: boolean | null;
89
89
  latestReplyTimestamp: string | null;
90
90
  message: string;
91
91
  messageTs: string;
@@ -96,6 +96,6 @@ export interface SlackBridgeMessageOutputRepresentation {
96
96
  slackUserId: string;
97
97
  subtype: string | null;
98
98
  threadTs: string | null;
99
- type: string;
99
+ type: string | null;
100
100
  url: string;
101
101
  }
@@ -1,5 +1,5 @@
1
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 = "c7dec6b60c7d567a7835fbdd84d3e67e";
2
+ export declare const VERSION = "7820a930852347bb0506c08d8b528281";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: SlackBridgeReactionOutputRepresentation, existing: SlackBridgeReactionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeReactionOutputRepresentationNormalized;
@@ -15,7 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  */
16
16
  export interface SlackBridgeReactionOutputRepresentationNormalized {
17
17
  /** Number of reactions */
18
- count: number;
18
+ count: number | null;
19
19
  /** Name of the reaction */
20
20
  name: string;
21
21
  /** Slack user ids of users who made this reaction */
@@ -30,7 +30,7 @@ export interface SlackBridgeReactionOutputRepresentationNormalized {
30
30
  * (none)
31
31
  */
32
32
  export interface SlackBridgeReactionOutputRepresentation {
33
- count: number;
33
+ count: number | null;
34
34
  name: string;
35
35
  reactedUsers: Array<string>;
36
36
  url: string | null;
@@ -1,7 +1,7 @@
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';
1
2
  import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
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 = "1c89c1c8379c0e55b8f94fecd03d8775";
4
+ export declare const VERSION = "53030123e17824e401cd635bf346e728";
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 {
@@ -15,10 +15,19 @@ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio,
15
15
  export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SlackBridgeUserInfoOutputRepresentation): string;
16
16
  export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SlackBridgeUserInfoOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
17
17
  export declare function normalize(input: SlackBridgeUserInfoOutputRepresentation, existing: SlackBridgeUserInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeUserInfoOutputRepresentationNormalized;
18
+ export interface DynamicIngestParams {
19
+ statusEmoji: $64$luvio_engine_ResourceIngest;
20
+ }
21
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SlackBridgeUserInfoOutputRepresentation, existing: SlackBridgeUserInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SlackBridgeUserInfoOutputRepresentationNormalized;
18
22
  export declare const select: () => $64$luvio_engine_FragmentSelection;
23
+ export interface DynamicSelectParams {
24
+ statusEmoji?: $64$luvio_engine_LinkSelection;
25
+ }
26
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
19
27
  export declare function equals(existing: SlackBridgeUserInfoOutputRepresentationNormalized, incoming: SlackBridgeUserInfoOutputRepresentationNormalized): boolean;
20
28
  export declare const ingest: $64$luvio_engine_ResourceIngest;
21
29
  export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SlackBridgeUserInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
30
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
22
31
  /**
23
32
  * Contains the details of Slack User
24
33
  *
@@ -30,9 +39,11 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
30
39
  /** Is this a Bot User? */
31
40
  bot: boolean;
32
41
  /** Display Name of the Slack User */
33
- displayName: string;
42
+ displayName: string | null;
43
+ /** Email of the Slack User */
44
+ email: string | null;
34
45
  /** 24x24 version of the Slack User image */
35
- image24: string;
46
+ image24: string | null;
36
47
  /** Original version of the Slack User image */
37
48
  imageOriginal: string | null;
38
49
  /** Is this Slack User currently in a Huddle? */
@@ -46,17 +57,19 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
46
57
  /** User Profile url */
47
58
  profileUrl: string | null;
48
59
  /** Real Name of the Slack User */
49
- realName: string;
60
+ realName: string | null;
50
61
  /** Id of the related Salesforce User mapped to the Slack User */
51
62
  salesforceUserId: string | null;
52
63
  /** Id of the Slack User */
53
64
  slackUserId: string;
54
65
  /** Status emoji of the Slack User */
55
- statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
66
+ statusEmoji: $64$luvio_engine_StoreLink | null;
56
67
  /** Status message of the Slack User */
57
- statusMessage: string;
68
+ statusMessage: string | null;
58
69
  /** Slack Workspace Id */
59
70
  teamId: string;
71
+ /** Title of the Slack User */
72
+ title: string | null;
60
73
  }
61
74
  /**
62
75
  * Contains the details of Slack User
@@ -67,18 +80,20 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
67
80
  */
68
81
  export interface SlackBridgeUserInfoOutputRepresentation {
69
82
  bot: boolean;
70
- displayName: string;
71
- image24: string;
83
+ displayName: string | null;
84
+ email: string | null;
85
+ image24: string | null;
72
86
  imageOriginal: string | null;
73
87
  inHuddle: boolean | null;
74
88
  isActive: boolean | null;
75
89
  isExternal: boolean | null;
76
90
  name: string;
77
91
  profileUrl: string | null;
78
- realName: string;
92
+ realName: string | null;
79
93
  salesforceUserId: string | null;
80
94
  slackUserId: string;
81
95
  statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
82
- statusMessage: string;
96
+ statusMessage: string | null;
83
97
  teamId: string;
98
+ title: string | null;
84
99
  }
@@ -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.344.0",
3
+ "version": "1.346.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.344.0"
43
+ "@salesforce/lds-bindings": "^1.346.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.344.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.346.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {