@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev13 → 1.332.0-dev15

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.
package/src/raml/api.raml CHANGED
@@ -238,40 +238,45 @@ types:
238
238
  description: The websocket URL to subscribe to RTM topics associated with
239
239
  the conversation
240
240
  type: string | nil
241
- SlackBridgeCustomEmojisOutputRepresentation:
242
- description: Contains the Slack Custom emojis
243
- type: object
244
- properties:
245
- customEmojis:
246
- description: Custom emojis for the given Team (Slack Workspace)
247
- type: object
248
- properties:
249
- //:
250
- type: string
251
- teamId:
252
- description: Id of the Team (Workspace)
253
- type: string
254
241
  SlackBridgeEmojiOutputRepresentation:
255
- description: Contains the details of Slack Emoji
242
+ description: Contains the details of a Slack Emoji
256
243
  type: object
257
244
  properties:
258
- altText:
259
- description: Alt text for the Slack Emoji
245
+ alias:
246
+ description: The alias for the emoji
247
+ type: string | nil
248
+ collectionId:
249
+ description: Ties the emoji back to its collection, if it came from one
260
250
  type: string | nil
261
- isCustom:
262
- description: Is this a custom Slack Emoji?
251
+ isAlias:
252
+ description: Is the emoji an alias
263
253
  type: boolean | nil
264
254
  name:
265
- description: Name of the Slack Emoji
255
+ description: Indicates the name of the emoji, and doubles as an ID when looking
256
+ it up, as name is unique across a team/org
266
257
  type: string
267
- unicode:
268
- description: Unicode for the Slack Emoji
258
+ updated:
259
+ description: The last date the emoji name was updated
269
260
  type: string | nil
270
- url:
271
- description: Url of the Slack Emoji
261
+ value:
262
+ description: Value of the Slack Emoji. This is either a URL string, an alias
263
+ string, or an object containing both Apple and Google URL strings
264
+ type: SlackBridgeEmojiValueOutputRepresentation | nil
265
+ SlackBridgeEmojiValueOutputRepresentation:
266
+ description: Contains the details of a Slack emoji value
267
+ type: object
268
+ properties:
269
+ appleUrl:
270
+ description: Url of the emoji with Apple styles
271
+ type: string | nil
272
+ defaultValue:
273
+ description: Url of the emoji if specific Apple and Google urls are not provided
274
+ type: string | nil
275
+ googleUrl:
276
+ description: Url of the emoji with Google styles
272
277
  type: string | nil
273
278
  SlackBridgeEmojisOutputRepresentation:
274
- description: Contains the list of Slack Emoji
279
+ description: Contains the list of Slack Emojis
275
280
  type: object
276
281
  properties:
277
282
  emojis:
@@ -279,9 +284,6 @@ types:
279
284
  type: array
280
285
  items:
281
286
  type: SlackBridgeEmojiOutputRepresentation
282
- searchString:
283
- description: String used to search this list of conversations (Optional)
284
- type: string | nil
285
287
  SlackBridgeFileInputRepresentation:
286
288
  description: Contains the parameters to upload a file to Slack
287
289
  type: object
@@ -923,19 +925,46 @@ types:
923
925
  required: true
924
926
  /emojis:
925
927
  get:
926
- displayName: getSlackCustomEmoji
927
- description: Get Slack Custom Emojis
928
+ displayName: getSlackEmojis
929
+ description: Get Slack Emojis
928
930
  responses:
929
931
  '200':
930
932
  description: Success
931
933
  body:
932
934
  application/json:
933
- type: SlackBridgeCustomEmojisOutputRepresentation
935
+ type: SlackBridgeEmojisOutputRepresentation
936
+ queryParameters:
937
+ slackEmojiIds:
938
+ description: List of Emoji Ids
939
+ type: array
940
+ required: true
941
+ items:
942
+ type: string
943
+ (oas-collectionFormat): csv
934
944
  uriParameters:
935
945
  teamId:
936
946
  description: Team or Workspace
937
947
  type: string
938
948
  required: true
949
+ /emojis/{slackEmojiId}:
950
+ get:
951
+ displayName: getSlackEmoji
952
+ description: Get info about a Slack Emoji given a Team Id and Emoji Id
953
+ responses:
954
+ '200':
955
+ description: Success
956
+ body:
957
+ application/json:
958
+ type: SlackBridgeEmojiOutputRepresentation
959
+ uriParameters:
960
+ slackEmojiId:
961
+ description: Id of the Slack Emoji
962
+ type: string
963
+ required: true
964
+ teamId:
965
+ description: Team or Workspace
966
+ type: string
967
+ required: true
939
968
  /search:
940
969
  /conversations:
941
970
  get:
@@ -44,6 +44,11 @@ types:
44
44
  SlackBridgeConversationMarkOutputRepresentation:
45
45
  (luvio.key):
46
46
  channelId: channelId
47
+ SlackBridgeEmojiOutputRepresentation:
48
+ # Cache for 30 days - custom emoji URLs should rarely, if ever, change
49
+ (luvio.ttl): 2592000000
50
+ (luvio.key):
51
+ name: name
47
52
 
48
53
  /connect/slackbridge:
49
54
  /conversation/messages:
@@ -124,7 +129,13 @@ types:
124
129
  /emojis:
125
130
  get:
126
131
  (luvio.adapter):
127
- name: getSlackCustomEmoji
132
+ name: getSlackEmojis
133
+ /emojis/{slackEmojiId}:
134
+ get:
135
+ (luvio.adapter):
136
+ name: getSlackEmoji
137
+ (luvio.key):
138
+ name: urlParams.slackEmojiId
128
139
  /search:
129
140
  /conversations:
130
141
  get:
@@ -1,27 +0,0 @@
1
- import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
- import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_getConnectSlackbridgeTeamEmojisByTeamId_ResourceRequestConfig } from '../resources/getConnectSlackbridgeTeamEmojisByTeamId';
4
- import { SlackBridgeCustomEmojisOutputRepresentation as types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation } from '../types/SlackBridgeCustomEmojisOutputRepresentation';
5
- export declare const adapterName = "getSlackCustomEmoji";
6
- export declare const getSlackCustomEmoji_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
- export declare const getSlackCustomEmoji_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
- export interface GetSlackCustomEmojiConfig {
9
- teamId: string;
10
- }
11
- export declare const createResourceParams: (config: GetSlackCustomEmojiConfig) => resources_getConnectSlackbridgeTeamEmojisByTeamId_ResourceRequestConfig;
12
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig): string;
13
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
- export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSlackCustomEmojiConfig>): adapter$45$utils_Untrusted<GetSlackCustomEmojiConfig>;
15
- export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSlackCustomEmojiConfig | null;
16
- export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig): $64$luvio_engine_Fragment;
17
- export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig): $64$luvio_engine_Snapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, any>;
18
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig, resourceParams: resources_getConnectSlackbridgeTeamEmojisByTeamId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, any>>;
19
- export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig, resourceParams: resources_getConnectSlackbridgeTeamEmojisByTeamId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSlackCustomEmojiConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, any>>;
21
- export type BuildSnapshotContext = {
22
- luvio: $64$luvio_engine_Luvio;
23
- config: GetSlackCustomEmojiConfig;
24
- };
25
- export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, any>>;
26
- export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation>): $64$luvio_engine_Snapshot<types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation, any>;
27
- export declare const getSlackCustomEmojiAdapterFactory: $64$luvio_engine_AdapterFactory<GetSlackCustomEmojiConfig, types_SlackBridgeCustomEmojisOutputRepresentation_SlackBridgeCustomEmojisOutputRepresentation>;
@@ -1,35 +0,0 @@
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 = "8eb41a29d901a4cc9611e387d180f0da";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
5
- export declare function normalize(input: SlackBridgeCustomEmojisOutputRepresentation, existing: SlackBridgeCustomEmojisOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeCustomEmojisOutputRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: SlackBridgeCustomEmojisOutputRepresentationNormalized, incoming: SlackBridgeCustomEmojisOutputRepresentationNormalized): 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: SlackBridgeCustomEmojisOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
- /**
11
- * Contains the Slack Custom emojis
12
- *
13
- * Keys:
14
- * (none)
15
- */
16
- export interface SlackBridgeCustomEmojisOutputRepresentationNormalized {
17
- /** Custom emojis for the given Team (Slack Workspace) */
18
- customEmojis: {
19
- [key: string]: string;
20
- };
21
- /** Id of the Team (Workspace) */
22
- teamId: string;
23
- }
24
- /**
25
- * Contains the Slack Custom emojis
26
- *
27
- * Keys:
28
- * (none)
29
- */
30
- export interface SlackBridgeCustomEmojisOutputRepresentation {
31
- customEmojis: {
32
- [key: string]: string;
33
- };
34
- teamId: string;
35
- }