diff --git a/datastores/survey_datastore.ts b/datastores/survey_datastore.ts index 557bea4..a7d040f 100644 --- a/datastores/survey_datastore.ts +++ b/datastores/survey_datastore.ts @@ -1,4 +1,4 @@ -import { DefineDatastore, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineDatastore, Schema } from "@slack/sdk"; /** * Datastores are a Slack-hosted location to store diff --git a/deno.jsonc b/deno.jsonc index 946fa9b..5b299c6 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -30,8 +30,9 @@ "test": "deno fmt --check && deno lint && deno test --permit-no-files --allow-read" }, "imports": { - "deno-slack-sdk/": "https://deno.land/x/deno_slack_sdk@2.15.1/", - "deno-slack-api/": "https://deno.land/x/deno_slack_api@2.8.0/", + "@slack/api": "jsr:@slack/api@2.9.0", + "@slack/sdk": "jsr:@slack/sdk@2.15.2", + "@slack/api-event-trigger": "https://raw.githubusercontent.com/slackapi/deno-slack-api/main/src/typed-method-types/workflows/triggers/event.ts", "@std/dotenv": "jsr:@std/dotenv@^0.225.5" } } diff --git a/external_auth/google_provider.ts b/external_auth/google_provider.ts index 30b75f9..72cb42a 100644 --- a/external_auth/google_provider.ts +++ b/external_auth/google_provider.ts @@ -1,4 +1,4 @@ -import { DefineOAuth2Provider, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineOAuth2Provider, Schema } from "@slack/sdk"; import "@std/dotenv/load"; /** diff --git a/functions/configure_events.ts b/functions/configure_events.ts index 9fb7a97..b0265bd 100644 --- a/functions/configure_events.ts +++ b/functions/configure_events.ts @@ -1,4 +1,4 @@ -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, Schema, SlackFunction } from "@slack/sdk"; import { createReactionTriggers, diff --git a/functions/create_google_sheet.ts b/functions/create_google_sheet.ts index 95a1096..8ff4738 100644 --- a/functions/create_google_sheet.ts +++ b/functions/create_google_sheet.ts @@ -1,4 +1,4 @@ -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, Schema, SlackFunction } from "@slack/sdk"; /** * Custom functions can gather OAuth access tokens from external diff --git a/functions/create_prompt_trigger.ts b/functions/create_prompt_trigger.ts index 2e5529e..c3f9822 100644 --- a/functions/create_prompt_trigger.ts +++ b/functions/create_prompt_trigger.ts @@ -1,4 +1,4 @@ -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, Schema, SlackFunction } from "@slack/sdk"; import CreateSurveyWorkflow from "../workflows/create_survey.ts"; export const CreatePromptTriggerFunctionDefinition = DefineFunction({ diff --git a/functions/create_survey_trigger.ts b/functions/create_survey_trigger.ts index 937e12f..18def17 100644 --- a/functions/create_survey_trigger.ts +++ b/functions/create_survey_trigger.ts @@ -1,4 +1,4 @@ -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, Schema, SlackFunction } from "@slack/sdk"; import AnswerSurveyWorkflow from "../workflows/answer_survey.ts"; export const CreateTriggerFunctionDefinition = DefineFunction({ diff --git a/functions/get_message_permalink.ts b/functions/get_message_permalink.ts index 7d517ea..5fac9e9 100644 --- a/functions/get_message_permalink.ts +++ b/functions/get_message_permalink.ts @@ -1,4 +1,4 @@ -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, Schema, SlackFunction } from "@slack/sdk"; export const GetMessagePermalinkFunctionDefinition = DefineFunction({ callback_id: "get_message_permalink", diff --git a/functions/maintain_membership.ts b/functions/maintain_membership.ts index 0b3618b..8444957 100644 --- a/functions/maintain_membership.ts +++ b/functions/maintain_membership.ts @@ -1,4 +1,4 @@ -import { DefineFunction, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, SlackFunction } from "@slack/sdk"; import { findReactionTriggers, getReactionTriggerChannelIds, diff --git a/functions/remove_thread_trigger.ts b/functions/remove_thread_trigger.ts index 97f1dc1..6340753 100644 --- a/functions/remove_thread_trigger.ts +++ b/functions/remove_thread_trigger.ts @@ -1,4 +1,4 @@ -import { DefineFunction, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, SlackFunction } from "@slack/sdk"; import SurveyDatastore, { SurveyDatastoreSchema, } from "../datastores/survey_datastore.ts"; diff --git a/functions/save_response.ts b/functions/save_response.ts index 0fa712a..36d0254 100644 --- a/functions/save_response.ts +++ b/functions/save_response.ts @@ -1,4 +1,4 @@ -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, Schema, SlackFunction } from "@slack/sdk"; // Configuration information for the storing spreadsheet const GOOGLE_SPREADSHEET_RANGE = "Responses!A2:C2"; diff --git a/functions/save_survey.ts b/functions/save_survey.ts index c380906..09c6cf2 100644 --- a/functions/save_survey.ts +++ b/functions/save_survey.ts @@ -1,4 +1,4 @@ -import { DefineFunction, SlackFunction } from "deno-slack-sdk/mod.ts"; +import { DefineFunction, SlackFunction } from "@slack/sdk"; import SurveyDatastore, { SurveyDatastoreSchema, } from "../datastores/survey_datastore.ts"; diff --git a/functions/triggers/prompt_survey_trigger.ts b/functions/triggers/prompt_survey_trigger.ts index ae7aaad..4d0bc6b 100644 --- a/functions/triggers/prompt_survey_trigger.ts +++ b/functions/triggers/prompt_survey_trigger.ts @@ -1,4 +1,4 @@ -import type { Trigger } from "deno-slack-sdk/types.ts"; +import type { Trigger } from "@slack/sdk/types.ts"; import PromptSurveyWorkflow from "../../workflows/prompt_survey.ts"; /** diff --git a/functions/triggers/remove_survey_trigger.ts b/functions/triggers/remove_survey_trigger.ts index c0c4a3d..a38669f 100644 --- a/functions/triggers/remove_survey_trigger.ts +++ b/functions/triggers/remove_survey_trigger.ts @@ -1,4 +1,4 @@ -import type { Trigger } from "deno-slack-sdk/types.ts"; +import type { Trigger } from "@slack/sdk/types.ts"; import RemoveSurveyWorkflow from "../../workflows/remove_survey.ts"; const removeSurveyTrigger: Trigger = { diff --git a/functions/utils/trigger_operations.ts b/functions/utils/trigger_operations.ts index 8fa1187..5883088 100644 --- a/functions/utils/trigger_operations.ts +++ b/functions/utils/trigger_operations.ts @@ -1,5 +1,5 @@ -import type { SlackAPIClient } from "deno-slack-sdk/types.ts"; -import type { EventTriggerResponseObject } from "deno-slack-api/typed-method-types/workflows/triggers/event.ts"; +import type { SlackAPIClient } from "@slack/sdk/types.ts"; +import type { EventTriggerResponseObject } from "@slack/api-event-trigger"; import PromptSurveyWorkflow from "../../workflows/prompt_survey.ts"; import RemoveSurveyWorkflow from "../../workflows/remove_survey.ts"; diff --git a/manifest.ts b/manifest.ts index b1a08ed..984a515 100644 --- a/manifest.ts +++ b/manifest.ts @@ -1,4 +1,4 @@ -import { Manifest } from "deno-slack-sdk/mod.ts"; +import { Manifest } from "@slack/sdk"; import GoogleProvider from "./external_auth/google_provider.ts"; import SurveyDatastore from "./datastores/survey_datastore.ts"; diff --git a/triggers/configurator.ts b/triggers/configurator.ts index 4879434..f8c825e 100644 --- a/triggers/configurator.ts +++ b/triggers/configurator.ts @@ -1,5 +1,5 @@ -import type { Trigger } from "deno-slack-sdk/types.ts"; -import { TriggerContextData, TriggerTypes } from "deno-slack-api/mod.ts"; +import type { Trigger } from "@slack/sdk/types.ts"; +import { TriggerContextData, TriggerTypes } from "@slack/api"; import ConfiguratorWorkflow from "../workflows/configurator.ts"; /** diff --git a/triggers/daily_maintenance_job.ts b/triggers/daily_maintenance_job.ts index d97171b..f7368d0 100644 --- a/triggers/daily_maintenance_job.ts +++ b/triggers/daily_maintenance_job.ts @@ -1,5 +1,5 @@ -import type { Trigger } from "deno-slack-sdk/types.ts"; -import { TriggerTypes } from "deno-slack-api/mod.ts"; +import type { Trigger } from "@slack/sdk/types.ts"; +import { TriggerTypes } from "@slack/api"; import MaintenanceJobWorkflow from "../workflows/maintenance_job.ts"; /** diff --git a/workflows/answer_survey.ts b/workflows/answer_survey.ts index 4782a8b..ba27886 100644 --- a/workflows/answer_survey.ts +++ b/workflows/answer_survey.ts @@ -1,4 +1,4 @@ -import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineWorkflow, Schema } from "@slack/sdk"; import { SaveResponseFunctionDefinition } from "../functions/save_response.ts"; /** diff --git a/workflows/configurator.ts b/workflows/configurator.ts index 1d71202..aeccc11 100644 --- a/workflows/configurator.ts +++ b/workflows/configurator.ts @@ -1,4 +1,4 @@ -import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineWorkflow, Schema } from "@slack/sdk"; import { ConfigureEventsFunctionDefinition } from "../functions/configure_events.ts"; /** diff --git a/workflows/create_survey.ts b/workflows/create_survey.ts index a76aba9..ae62317 100644 --- a/workflows/create_survey.ts +++ b/workflows/create_survey.ts @@ -1,4 +1,4 @@ -import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineWorkflow, Schema } from "@slack/sdk"; import { CreateGoogleSheetFunctionDefinition } from "../functions/create_google_sheet.ts"; import { CreateTriggerFunctionDefinition } from "../functions/create_survey_trigger.ts"; diff --git a/workflows/maintenance_job.ts b/workflows/maintenance_job.ts index 3f05c4f..d1b4d3f 100644 --- a/workflows/maintenance_job.ts +++ b/workflows/maintenance_job.ts @@ -1,4 +1,4 @@ -import { DefineWorkflow } from "deno-slack-sdk/mod.ts"; +import { DefineWorkflow } from "@slack/sdk"; import { MaintainMembershipFunctionDefinition } from "../functions/maintain_membership.ts"; const MaintenanceJobWorkflow = DefineWorkflow({ diff --git a/workflows/prompt_survey.ts b/workflows/prompt_survey.ts index ea7d2c1..c156e14 100644 --- a/workflows/prompt_survey.ts +++ b/workflows/prompt_survey.ts @@ -1,4 +1,4 @@ -import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineWorkflow, Schema } from "@slack/sdk"; import { CreatePromptTriggerFunctionDefinition } from "../functions/create_prompt_trigger.ts"; import { GetMessagePermalinkFunctionDefinition } from "../functions/get_message_permalink.ts"; import { SaveSurveyFunctionDefinition } from "../functions/save_survey.ts"; diff --git a/workflows/remove_survey.ts b/workflows/remove_survey.ts index 39c3f5d..84f2931 100644 --- a/workflows/remove_survey.ts +++ b/workflows/remove_survey.ts @@ -1,4 +1,4 @@ -import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts"; +import { DefineWorkflow, Schema } from "@slack/sdk"; import { RemoveThreadTriggerFunctionDefinition } from "../functions/remove_thread_trigger.ts"; const RemoveSurveyWorkflow = DefineWorkflow({