Skip to content

Commit

Permalink
Add the workflows.triggers.create method to the client without typi…
Browse files Browse the repository at this point in the history
…ng (#14)
  • Loading branch information
shapirone authored Jun 10, 2022
1 parent 38baccd commit 5f480bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/src/public-api-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export const getPublicAPIMethods = () => {

// upcoming platform 2.0 methods we want available but aren't listed quite yet
const platform2Methods = [
"workflows.triggers.create",
"functions.completeError",
"functions.completeSuccess",
"apps.datastore.delete",
Expand Down
1 change: 1 addition & 0 deletions src/generated/method-types/api_method_types_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,6 @@ Deno.test("SlackAPIMethodsType generated types", () => {
assertEquals(typeof client.views.update, "function");
assertEquals(typeof client.workflows.stepCompleted, "function");
assertEquals(typeof client.workflows.stepFailed, "function");
assertEquals(typeof client.workflows.triggers.create, "function");
assertEquals(typeof client.workflows.updateStep, "function");
});
3 changes: 3 additions & 0 deletions src/generated/method-types/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import { SlackAPIMethod } from "../../types.ts";
export type WorkflowsAPIType = {
stepCompleted: SlackAPIMethod;
stepFailed: SlackAPIMethod;
triggers: {
create: SlackAPIMethod;
};
updateStep: SlackAPIMethod;
};

0 comments on commit 5f480bf

Please sign in to comment.