Skip to main content

HacksMessageBuilder

HacksMessageBuilder

@spotify/backstage-plugin-skill-exchange-node/alpha > HacksMessageBuilder

The HacksMessageBuilder interface defines the contract for building messages used for Skill Exchange Hack notifications.

Interface

MethodDescriptionParametersTypeParameter Description
buildInquiryMessageBuilds a message to be sent to the post owner that someone expressed interest in their postpostUrlstringURL of the post
postTitlestringTitle of the post
senderSlackUserIdstringSlack user ID of the person expressing interest
customMessagestring (optional)Custom message from the sender
buildInquiryConfirmationMessageBuilds a confirmation message to be sent to the sender that their interest in the post was sent to the contact personpostUrlstringURL of the post
postTitlestringTitle of the post
postContactSlackUserIdstringSlack user ID of the post contact
buildInquiryReminderMessageBuilds a message to remind a post owner about an inquiry they receivedpostUrlstringURL of the post
postTitlestringTitle of the post
senderSlackUserIdstringSlack user ID of the person who sent the inquiry
durationstringTime duration since the inquiry was sent
buildStopInquiryRemindersConfirmationMessageBuilds a confirmation message that reminders about an inquiry have been stoppedNo parameters
buildErrorOnActionMessageBuilds a message to notify user that an error occurred when trying to perform an actionNo parameters
buildParticipantAddedMessageBuilds a message to notify a user that they were added as a participant to a postpostUrlstringURL of the post
postTitlestringTitle of the post
postContactSlackUserIdstringSlack user ID of the post contact
buildParticipantAddedConfirmationMessageBuilds a confirmation message to notify the post contact that a user was successfully added as a participantparticipantSlackUserIdstringSlack user ID of the participant who was added
buildSavedSearchMatchMessageBuilds a message to notify a user that a new post matches their saved search criteriapostUrlstringURL of the matching post
postTitlestringTitle of the matching post
buildHackDigestMessageBuilds a message that summarizes updates of posts that a user is followingargsHackDigestMessageArgs[]Array of post update information
buildSharedPostMessageBuilds a preview message for a URL that a user sharedargsSharedPostMessageArgsArguments containing shared post information

Types

HackDigestMessageArgs

PropertyTypeDescription
postUrlstringURL of the post
postTitlestringTitle of the post
newCommentsnumberNumber of new comments
newUpdatesnumberNumber of new updates

SharedPostMessageArgs

PropertyTypeDescription
postUrlstringURL of the post
postTitlestringTitle of the post
postPitchstringPitch of the post
postDescriptionstring (optional)Description of the post
postResourcesPostResource[]Resources of the post

PostResource

PropertyTypeDescription
urlstringURL of the resource
labelstring (optional)Label of the resource