-
Notifications
You must be signed in to change notification settings - Fork 166
Add manifest to slack [MAPS-70] #10212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f7ca3bc
Update Node.js version in Dockerfile and serverless.yml to 18.x
JuliRossi ff83906
updating controller to have response
JuliRossi b929f74
wip: new manifest for slack app
JuliRossi 8756b0e
updating backend packages
JuliRossi 8f3796f
updating fe deps
JuliRossi 9e3a5df
adding script
JuliRossi b0afd96
refactoring
JuliRossi 5d2ea10
Updating test
JuliRossi f28929a
Fixing old tests
JuliRossi 6b3213c
Removing unused dep
JuliRossi 2db5411
Revert "Update Node.js version in Dockerfile and serverless.yml to 18.x"
JuliRossi 0dc0860
Updating instructions
JuliRossi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,9 @@ | ||
| REACT_APP_SLACK_CLIENT_ID=<your-slack-app-client-id> | ||
| REACT_APP_BACKEND_BASE_URL=https://slack-backend-dev.ngrok.io/dev/api | ||
| REACT_APP_BACKEND_BASE_URL=https://slack-backend-dev.ngrok.io/dev/api | ||
|
|
||
| ## This are only needed to run the updateAppAction script | ||
| CONTENTFUL_ACCESS_TOKEN=<your-contentful-access-token> | ||
| CONTENTFUL_ORG_ID=<your-contentful-organization-id> | ||
| CONTENTFUL_APP_DEF_ID=<your-contentful-app-definition-id> | ||
| #Optional | ||
| APP_ACTION_ID=<your-app-action-id> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| { | ||
| "actions": [ | ||
| { | ||
| "id": "sendMessage", | ||
| "name": "Send Slack Message", | ||
| "category": "Custom", | ||
| "description": "Sends a message to a specified Slack channel or user", | ||
| "type": "endpoint", | ||
| "url": "/messages", | ||
| "allowNetworks": [], | ||
| "parametersSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "message": { | ||
| "type": "string", | ||
| "title": "Message Content", | ||
| "description": "The content of the message to be sent to Slack", | ||
| "minLength": 1, | ||
| "maxLength": 4000 | ||
JuliRossi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "channelId": { | ||
| "type": "string", | ||
| "title": "Slack Channel ID", | ||
| "description": "The Slack channel ID to send the message to", | ||
| "minLength": 1 | ||
| }, | ||
| "workspaceId": { | ||
| "type": "string", | ||
| "title": "Slack Workspace ID", | ||
| "description": "The Slack workspace ID where the message should be sent", | ||
| "minLength": 1 | ||
| } | ||
| }, | ||
| "required": [ | ||
| "message", | ||
| "channelId" | ||
| ], | ||
| "additionalProperties": false | ||
| }, | ||
| "resultSchema": { | ||
joaquincasal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "object", | ||
| "properties": { | ||
| "ok": { | ||
| "type": "boolean", | ||
| "description": "Indicates whether the message was sent successfully" | ||
| }, | ||
| "channel": { | ||
| "type": "string", | ||
| "description": "The channel ID where the message was sent" | ||
| }, | ||
| "ts": { | ||
| "type": "string", | ||
| "description": "The timestamp of the message" | ||
| }, | ||
| "message": { | ||
| "type": "object", | ||
| "description": "The message object that was sent", | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "description": "The type of message" | ||
| }, | ||
| "text": { | ||
| "type": "string", | ||
| "description": "The text content of the message" | ||
| }, | ||
| "user": { | ||
| "type": "string", | ||
| "description": "The user ID who sent the message" | ||
| }, | ||
| "ts": { | ||
| "type": "string", | ||
| "description": "The timestamp of the message" | ||
| }, | ||
| "team": { | ||
| "type": "string", | ||
| "description": "The team ID" | ||
| }, | ||
| "bot_id": { | ||
| "type": "string", | ||
| "description": "The bot ID that sent the message" | ||
| } | ||
| } | ||
| }, | ||
| "error": { | ||
JuliRossi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "string", | ||
| "description": "Error message when operation fails (present when ok: false)" | ||
| }, | ||
| "errors": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "description": "Array of error messages (present when ok: false)" | ||
| }, | ||
| "response_metadata": { | ||
| "type": "object", | ||
| "description": "Additional metadata about the response", | ||
| "properties": { | ||
| "warnings": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "ok" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.