Coder Social home page Coder Social logo

slackapi / deno-slack-hub Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 204 KB

Connectors used to build coded workflows for Run on Slack apps using Deno

Home Page: https://deno.land/x/deno_slack_hub

License: MIT License

TypeScript 99.88% Shell 0.12%
deno slack

deno-slack-hub's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deno-slack-hub's Issues

Missing function definition

Hi,

I'm trying to use these connectors to quickly integrate a Slack app with some apis, however I'm getting the following error:

๐Ÿšซ The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues (invalid_manifest)

Error Details:

1: Workflow function `knal_input_workflow` step `3` is referring to an unknown function `A04U5QUE5EX#/functions/get_random_gif` (undefined_wf_function_step)
Source: /workflows/knal_input_workflow/steps/3

I followed the setup steps in the README, is there another step I still need to do to import this function into my code as well?

Update: this only happens when I try to test the code locally using the cli slack run , if I deploy the app it works fine. So presumably I need to make this function known to my local environment somehow?

Connector function Google Mail send email body type

Hi there,

This is a question about the expected format for email_body in the above-mentioned connector.

I'm adding https://api.slack.com/reference/connectors/google.mail/send_email to a workflow on Slack's next-gen platform. The documentation shows email_body as a rich_text input.

The code sample below generates an email body that resembles a stringified JSON output:

sampleWorkflow
  .addStep(Connectors.GoogleMail.functions.SendEmail, {
    google_access_token: {
      credential_source: "END_USER",
    },
    recipients: ["[email protected]"],
    subject: "Hi there",
    email_body: "Test",
})

The generated email body from Gmail:

[{"text":{"text":"Test","type":"mrkdwn","verbatim":false},"type":"section","block_id":"oltZm"}]

Surprisingly, if I use the same connector function in Workflow Builder, the email_body comes from a rich text form field, the formatting works as expected.

Tests for generation script

Improve the test for the generation script

In the deno-slack-sdk we have added an integration test that validates the behavior of the generation script.

This is the test in question

It would be nice to add this capability here as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.