diff --git a/.github/maintainers_guide.md b/.github/maintainers_guide.md index 5600417e..63b6c194 100644 --- a/.github/maintainers_guide.md +++ b/.github/maintainers_guide.md @@ -56,15 +56,15 @@ of your local `deno-slack-sdk` repo: { "imports": { "deno-slack-sdk/": "../../tools/deno-slack-sdk/src/", - "deno-slack-api/": "jsr:@slack/api@2.9.0/" + "deno-slack-api/": "https://deno.land/x/deno_slack_api@1.5.0/" } } ``` #### With remote changes -To test with unreleased changes on a remote repo, commit your intended history -to a remote branch and note the full commit SHA. (e.g. +To test with changes on a remote repo, commit your intended history to a remote +branch and note the full commit SHA. (e.g. `fc0a0a1f0722e28fecb7782513d045522d7c0d6f`). Then in your sample app's `import_map.json` file, replace the `deno-slack-sdk` @@ -74,7 +74,7 @@ import url with: { "imports": { "deno-slack-sdk/": "https://raw.githubusercontent.com/slackapi/deno-slack-sdk//src/", - "deno-slack-api/": "jsr:@slack/api@2.9.0/" + "deno-slack-api/": "https://deno.land/x/deno_slack_api@1.5.0/" } } ``` @@ -109,36 +109,16 @@ resemble the default values. Releases for this library are automatically generated off of git tags. Before creating a new release, ensure that everything on the `main` branch since the last tag is in a releasable state! At a minimum, -[run the tests](#testing-with-deno) and validate that the package meets JSR -publishing requirements by doing a dry run of the publish command: - -```zsh -deno task publish:dry-run -``` +[run the tests](#testing-with-deno). To create a new release: -1. Determine the new release version. You can start off by incrementing the - version to reflect a patch (i.e. 1.0.0 -> 1.0.1). - - Review the pull request labels of the changes since the last release (i.e. - `semver:minor`, `semver:patch`, `semver:major`). Tip: Your release version - should be based on the tag of the largest change, so if the changes include - a `semver:minor`, the release version should be upgraded to reflect a - minor. - - Ensure that this version adheres to [semantic versioning][semver]. See - [Versioning](#versioning-and-tags) for correct version format. Version tags - should match the following pattern: `1.0.1` (no `v` preceding the number). -2. Create a new branch from `main` named after the release version (e.g. - `1.0.1`). -3. Bump the `version` field in `deno.jsonc` to the new release version. -4. Open a pull request from the version branch into `main` and get it - approved/merged. - 1. `git commit -m 'chore(release): version 1.0.1'` - 2. `git push -u origin 1.0.1` -5. Create a new GitHub Release from the +1. Create a new GitHub Release from the [Releases page](https://github.com/slackapi/deno-slack-sdk/releases) by clicking the "Draft a new release" button. -6. Input a new version manually into the "Choose a tag" input. +2. Input a new version manually into the "Choose a tag" input. You can start off + by incrementing the version to reflect a patch. (i.e. 1.16.0 -> 1.16.1) + - After you input the new version, click the "Create a new tag: x.x.x on publish" button. This won't create your tag immediately. - Auto-generate the release notes by clicking the "Auto-generate release @@ -147,14 +127,23 @@ To create a new release: - Edit the resulting notes to ensure they have decent messaging that are understandable by non-contributors, but each commit should still have it's own line. -7. Set the "Target" input to the "main" branch. -8. Name the release title after the version tag. -9. Make any adjustments to generated release notes to make sure they are + - Flip to the preview mode and review the pull request labels of the changes + included in this release (i.e. `semver:minor` `semver:patch`, + `semver:major`). Tip: Your release version should be based on the tag of + the largest change, so if this release includes a `semver:minor`, the + release version in your tag should be upgraded to reflect a minor. + - Ensure that this version adheres to [semantic versioning][semver]. See + [Versioning](#versioning-and-tags) for correct version format. Version tags + should match the following pattern: `1.0.1` (no `v` preceding the number). + +3. Set the "Target" input to the "main" branch. +4. Name the release title after the version tag. +5. Make any adjustments to generated release notes to make sure they are accessible and approachable and that an end-user with little context about this project could still understand. -10. Publish the release by clicking the "Publish release" button! -11. After a few minutes, the corresponding version will be available on - and . +6. Publish the release by clicking the "Publish release" button! +7. After a few minutes, the corresponding version will be available on + . ## Workflow diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index b4893895..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Publish - -on: - push: - tags: - - '[0-9]+.[0-9]+.[0-9]+' - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write # The OIDC ID token is used for authentication with JSR. - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - run: npx jsr publish --allow-slow-types diff --git a/README.md b/README.md deleted file mode 100644 index 0384d4e8..00000000 --- a/README.md +++ /dev/null @@ -1,220 +0,0 @@ -

- Deno Slack SDK -
-

- -

- deno.land version - deno dependencies - Samples Integration Type-checking - -

- -A Deno SDK to build Slack apps with the latest platform features. Read the -[quickstart guide](https://api.slack.com/automation/quickstart) and look at our -[code samples](https://api.slack.com/automation/samples) to learn how to build -apps. - -## Versioning - -Releases for this repository follow the [SemVer](https://semver.org/) versioning -scheme. The SDK's contract is determined by the top-level exports from -`src/mod.ts` and `src/types.ts`. Exports not included in these files are deemed -internal and any modifications will not be treated as breaking changes. As such, -internal exports should be treated as unstable and used at your own risk. - -## Setup - -Make sure you have a development workspace where you have permission to install -apps. **Please note that the features in this project require that the workspace -be part of [a Slack paid plan](https://slack.com/pricing).** - -### Install the Slack CLI - -You need to install and configure the Slack CLI. Step-by-step instructions can -be found on our -[install & authorize page](https://api.slack.com/automation/cli/install). - -## Creating an app - -Create a blank project by executing the following command: - -```zsh -slack create my-app --template slack-samples/deno-blank-template - -cd my-app/ -``` - -The `manifest.ts` file contains the app's configuration. This file defines -attributes like app name, description and functions. - -### Create a [function](https://api.slack.com/automation/functions/custom) - -```zsh -mkdir ./functions && touch ./functions/hello_world.ts -``` - -```ts -// Contents of ./functions/hello_world.ts -import { DefineFunction, Schema, SlackFunction } from "deno-slack-sdk/mod.ts"; - -export const HelloWorldFunctionDef = DefineFunction({ - callback_id: "hello_world_function", - title: "Hello World", - source_file: "functions/hello_world.ts", - input_parameters: { - properties: {}, - required: [], - }, - output_parameters: { - properties: { - message: { - type: Schema.types.string, - description: "Hello world message", - }, - }, - required: ["message"], - }, -}); - -export default SlackFunction( - HelloWorldFunctionDef, - () => { - return { - outputs: { message: "Hello World!" }, - }; - }, -); -``` - -`DefineFunction` is used to define a custom function and provide Slack with the -information required to use it. - -`SlackFunction` uses the definition returned by `DefineFunction` and your custom -executable code to export a Slack-usable custom function. - -### Create a [workflow](https://api.slack.com/automation/workflows) - -```zsh -mkdir ./workflows && touch ./workflows/hello_world.ts -``` - -```ts -// Contents of ./workflows/hello_world.ts -import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts"; -import { HelloWorldFunctionDef } from "../functions/hello_world.ts"; - -const HelloWorldWorkflowDef = DefineWorkflow({ - callback_id: "hello_world_workflow", - title: "Hello World Workflow", - input_parameters: { - properties: { - channel: { - type: Schema.slack.types.channel_id, - }, - }, - required: ["channel"], - }, -}); - -const helloWorldStep = HelloWorldWorkflowDef.addStep(HelloWorldFunctionDef, {}); - -HelloWorldWorkflowDef.addStep(Schema.slack.functions.SendMessage, { - channel_id: HelloWorldWorkflowDef.inputs.channel, - message: helloWorldStep.outputs.message, -}); - -export default HelloWorldWorkflowDef; -``` - -`DefineWorkflow` is used to define a workflow and provide Slack with the -information required to use it. - -`HelloWorldWorkflow.addStep` is used to add a step to the workflow; here we add -the `HelloWorldFunction` and then the `SendMessage` Slack Function that will -post the `message` to a Slack channel. - -### Update the [manifest](https://api.slack.com/automation/manifest) - -```ts -// Contents of manifest.ts -import { Manifest } from "deno-slack-sdk/mod.ts"; -import HelloWorldWorkflow from "./workflows/hello_world.ts"; - -export default Manifest({ - name: "my-app", - description: "A Hello World app", - icon: "assets/default_new_app_icon.png", - workflows: [HelloWorldWorkflow], - outgoingDomains: [], - botScopes: ["chat:write", "chat:write.public"], -}); -``` - -`Manifest` is used to define your apps -[manifest](https://api.slack.com/automation/manifest) and provides Slack with -the information required to manage it. - -### Create a [trigger](https://api.slack.com/automation/triggers) - -```zsh -mkdir ./triggers && touch ./triggers/hello_world.ts -``` - -```ts -// Contents of ./triggers/hello_world.ts -import { Trigger } from "deno-slack-sdk/types.ts"; -import { TriggerContextData, TriggerTypes } from "deno-slack-api/mod.ts"; -import HelloWorldWorkflow from "../workflows/hello_world.ts"; - -const trigger: Trigger = { - type: TriggerTypes.Shortcut, - name: "Reverse a string", - description: "Starts the workflow to reverse a string", - workflow: `#/workflows/${HelloWorldWorkflow.definition.callback_id}`, - inputs: { - channel: { - value: TriggerContextData.Shortcut.channel_id, - }, - }, -}; - -export default trigger; -``` - -The `Trigger` object is used to define a trigger that will invoke the -`HelloWorldWorkflow`. The Slack CLI will detect this file and prompt you for its -creation. - -## Running an app - -```zsh -slack run -``` - -When prompted, create the `triggers/hello_world.ts` trigger. This will send your -trigger configuration to Slack. - -Post the `Hello world shortcut trigger` in a slack message and **use it** - -## Getting Help - -[This documentation](https://api.slack.com/automation) has more information on -basic and advanced concepts of the SDK. - -Information on how to get started developing with Deno can be found in -[this documentation](https://api.slack.com/automation/deno/develop). - -If you get stuck, we're here to help. The following are the best ways to get -assistance working through your issue: - -- [Issue Tracker](https://github.com/slackapi/deno-slack-sdk/issues?q=is%3Aissue) - for questions, bug reports, feature requests, and general discussion. **Try - searching for an existing issue before creating a new one.** -- Email our developer support team: `support@slack.com` - -## Contributing - -Contributions are more than welcome. Please look at the -[contributing guidelines](https://github.com/slackapi/deno-slack-sdk/blob/main/.github/CONTRIBUTING.md) -for more info! diff --git a/README.md b/README.md new file mode 120000 index 00000000..351df1da --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +src/README.md \ No newline at end of file diff --git a/deno.jsonc b/deno.jsonc index 369d6da7..5cf9670c 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,23 +1,15 @@ { "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@slack/sdk", - "version": "2.15.2", - "exports": { - ".": "./src/mod.ts", - "./mod.ts": "./src/mod.ts", - "./types.ts": "./src/types.ts" - }, - "publish": { - "exclude": ["**/*_test.ts", "**/fixtures"], + "fmt": { "include": [ + "src", + "tests", + "docs", "README.md", - "LICENSE", - "deno.jsonc", - "src/**" - ] - }, - "fmt": { - "include": ["src", "tests", "docs", "README.md", "scripts", ".github/maintainers_guide.md", ".github/CONTRIBUTING.md"], + "scripts", + ".github/maintainers_guide.md", + ".github/CONTRIBUTING.md" + ], "exclude": ["src/schema/slack/functions/_scripts/functions.json"], "semiColons": true, "indentWidth": 2, @@ -28,13 +20,17 @@ }, "lint": { "include": ["src", "tests", "scripts"], - "exclude": ["src/schema/slack/functions/_scripts/functions.json", "**/*.md"], - "rules": { "exclude": ["no-import-prefix", "no-slow-types"] } + "exclude": [ + "src/schema/slack/functions/_scripts/functions.json", + "**/*.md" + ], + "rules": { + "exclude": ["no-import-prefix"] + } }, "tasks": { "test": "deno fmt --check && deno lint && deno run --allow-run --allow-env --allow-read scripts/bundle.ts && deno test --allow-read --allow-run --parallel src/ tests/", - "coverage": "rm -rf .coverage && deno test --reporter=dot --parallel --allow-read --coverage=.coverage src/ && deno coverage --exclude=fixtures --exclude=_test --lcov --output=lcov.info .coverage", - "publish:dry-run": "deno publish --allow-slow-types --dry-run" + "coverage": "rm -rf .coverage && deno test --reporter=dot --parallel --allow-read --coverage=.coverage src/ && deno coverage --exclude=fixtures --exclude=_test --lcov --output=lcov.info .coverage" }, "lock": false } diff --git a/src/README.md b/src/README.md index 84f250b8..14c541e5 100644 --- a/src/README.md +++ b/src/README.md @@ -18,8 +18,8 @@ apps. ## 📢 Important We recommend importing this package from -[JSR](https://jsr.io/@slack/sdk/versions), but new releases are currently still -published to `deno.land/x` as well. +[JSR](https://jsr.io/@slack/sdk/versions). New releases will no longer be +published to `deno.land/x`. ## Versioning diff --git a/src/datastore/mod.ts b/src/datastore/mod.ts index 35bd9beb..6ee8fedd 100644 --- a/src/datastore/mod.ts +++ b/src/datastore/mod.ts @@ -1,6 +1,6 @@ -import type { SlackManifest } from "../manifest/mod.ts"; -import type { ManifestDatastoreSchema } from "../manifest/manifest_schema.ts"; -import type { +import { SlackManifest } from "../manifest/mod.ts"; +import { ManifestDatastoreSchema } from "../manifest/manifest_schema.ts"; +import { ISlackDatastore, SlackDatastoreAttributes, SlackDatastoreDefinition, diff --git a/src/datastore/types.ts b/src/datastore/types.ts index 0ca82c58..5a6edda5 100644 --- a/src/datastore/types.ts +++ b/src/datastore/types.ts @@ -1,7 +1,7 @@ -import type { ICustomType } from "../types/types.ts"; -import type { ManifestDatastoreSchema } from "../manifest/manifest_schema.ts"; -import type { SlackManifest } from "../manifest/mod.ts"; -import type { SlackPrimitiveTypes } from "../schema/slack/types/mod.ts"; +import { ICustomType } from "../types/types.ts"; +import { ManifestDatastoreSchema } from "../manifest/manifest_schema.ts"; +import { SlackManifest } from "../manifest/mod.ts"; +import { SlackPrimitiveTypes } from "../schema/slack/types/mod.ts"; import type { ValidSchemaTypes } from "../schema/schema_types.ts"; import type { ValidSlackPrimitiveTypes } from "../schema/slack/types/mod.ts"; import type { LooseStringAutocomplete } from "../type_utils.ts"; diff --git a/src/deps.ts b/src/deps.ts index 72b02f29..3353dd98 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -1,2 +1,5 @@ -export { SlackAPI } from "jsr:@slack/api@2.9.0"; -export type { SlackAPIClient, Trigger } from "jsr:@slack/api@2.9.0/types"; +export { SlackAPI } from "https://deno.land/x/deno_slack_api@2.8.0/mod.ts"; +export type { + SlackAPIClient, + Trigger, +} from "https://deno.land/x/deno_slack_api@2.8.0/types.ts"; diff --git a/src/dev_deps.ts b/src/dev_deps.ts index 7d4a3b6c..16496106 100644 --- a/src/dev_deps.ts +++ b/src/dev_deps.ts @@ -9,10 +9,13 @@ export { assertStrictEquals, assertStringIncludes, fail, -} from "jsr:@std/assert@^1.0.0"; -export * as mock from "jsr:@std/testing@^1.0.0/mock"; +} from "https://deno.land/std@0.152.0/testing/asserts.ts"; +export * as mock from "https://deno.land/std@0.152.0/testing/mock.ts"; -export { assertType as assert } from "jsr:@std/testing@^1.0.0/types"; -export type { IsAny, IsExact } from "jsr:@std/testing@^1.0.0/types"; +export { assert } from "https://deno.land/x/conditional_type_checks@1.0.6/mod.ts"; +export type { + IsAny, + IsExact, +} from "https://deno.land/x/conditional_type_checks@1.0.6/mod.ts"; -export { toPascalCase } from "jsr:@std/text@^1.0.0"; +export { pascalCase } from "https://deno.land/x/case@v2.1.0/mod.ts"; diff --git a/src/events/mod.ts b/src/events/mod.ts index cd79382c..e6458c6a 100644 --- a/src/events/mod.ts +++ b/src/events/mod.ts @@ -1,6 +1,6 @@ -import type { SlackManifest } from "../manifest/mod.ts"; -import type { ManifestCustomEventSchema } from "../manifest/manifest_schema.ts"; -import type { +import { SlackManifest } from "../manifest/mod.ts"; +import { ManifestCustomEventSchema } from "../manifest/manifest_schema.ts"; +import { CustomEventDefinition, DefineEventSignature, ICustomEvent, diff --git a/src/events/types.ts b/src/events/types.ts index f7997cd1..f37d0a87 100644 --- a/src/events/types.ts +++ b/src/events/types.ts @@ -1,10 +1,10 @@ -import type { +import { CustomTypeParameterDefinition, TypedObjectParameter, } from "../parameters/definition_types.ts"; -import type { ManifestCustomEventSchema } from "../manifest/manifest_schema.ts"; -import type { CustomEvent } from "./mod.ts"; -import type { SlackManifest } from "../manifest/mod.ts"; +import { ManifestCustomEventSchema } from "../manifest/manifest_schema.ts"; +import { CustomEvent } from "./mod.ts"; +import { SlackManifest } from "../manifest/mod.ts"; type AcceptedEventTypes = | TypedObjectParameter diff --git a/src/functions/definitions/connector-function.ts b/src/functions/definitions/connector-function.ts index d6de6f75..96d965a2 100644 --- a/src/functions/definitions/connector-function.ts +++ b/src/functions/definitions/connector-function.ts @@ -1,12 +1,9 @@ -import type { ManifestFunctionType } from "../../manifest/manifest_schema.ts"; -import type { +import { ManifestFunctionType } from "../../manifest/manifest_schema.ts"; +import { ParameterSetDefinition, PossibleParameterKeys, } from "../../parameters/types.ts"; -import type { - FunctionDefinitionArgs, - ISlackFunctionDefinition, -} from "../types.ts"; +import { FunctionDefinitionArgs, ISlackFunctionDefinition } from "../types.ts"; /** * Define a connector and its input and output parameters for use in a Slack application. diff --git a/src/functions/definitions/connector-function_test.ts b/src/functions/definitions/connector-function_test.ts index eff714b2..f2ef0ffe 100644 --- a/src/functions/definitions/connector-function_test.ts +++ b/src/functions/definitions/connector-function_test.ts @@ -3,7 +3,7 @@ import { assertInstanceOf, assertStrictEquals, } from "../../dev_deps.ts"; -import type { PossibleParameterKeys } from "../../parameters/types.ts"; +import { PossibleParameterKeys } from "../../parameters/types.ts"; import Schema from "../../schema/mod.ts"; import { ConnectorFunctionDefinition, diff --git a/src/functions/definitions/slack-function.ts b/src/functions/definitions/slack-function.ts index 289f0f0e..4d6892ce 100644 --- a/src/functions/definitions/slack-function.ts +++ b/src/functions/definitions/slack-function.ts @@ -1,13 +1,13 @@ -import type { +import { ManifestFunctionSchema, ManifestFunctionType, } from "../../manifest/manifest_schema.ts"; -import type { SlackManifest } from "../../mod.ts"; -import type { +import { SlackManifest } from "../../mod.ts"; +import { ParameterSetDefinition, PossibleParameterKeys, } from "../../parameters/types.ts"; -import type { +import { ISlackFunctionDefinition, SlackFunctionDefinitionArgs, } from "../types.ts"; diff --git a/src/functions/definitions/slack-function_test.ts b/src/functions/definitions/slack-function_test.ts index 9e049098..be3dc47c 100644 --- a/src/functions/definitions/slack-function_test.ts +++ b/src/functions/definitions/slack-function_test.ts @@ -4,13 +4,13 @@ import { assertStrictEquals, } from "../../dev_deps.ts"; import Schema from "../../schema/mod.ts"; -import type { PossibleParameterKeys } from "../../parameters/types.ts"; +import { PossibleParameterKeys } from "../../parameters/types.ts"; import { DefineFunction, isCustomFunctionDefinition, SlackFunctionDefinition, } from "./slack-function.ts"; -import type { ISlackFunctionDefinition } from "../types.ts"; +import { ISlackFunctionDefinition } from "../types.ts"; // TODO: Re-add tests to validate function execution when we've determined how to execute functions locally diff --git a/src/functions/enrich-context.ts b/src/functions/enrich-context.ts index 172733dd..275048e0 100644 --- a/src/functions/enrich-context.ts +++ b/src/functions/enrich-context.ts @@ -1,5 +1,5 @@ import { SlackAPI } from "../deps.ts"; -import type { +import { BaseRuntimeFunctionContext, FunctionContextEnrichment, } from "./types.ts"; diff --git a/src/functions/enrich-context_test.ts b/src/functions/enrich-context_test.ts index 7412e652..e06d7dfe 100644 --- a/src/functions/enrich-context_test.ts +++ b/src/functions/enrich-context_test.ts @@ -1,6 +1,6 @@ import { assertExists } from "../dev_deps.ts"; import { enrichContext } from "./enrich-context.ts"; -import type { BaseRuntimeFunctionContext } from "./types.ts"; +import { BaseRuntimeFunctionContext } from "./types.ts"; Deno.test("enrichContext with no env.SLACK_API_URL", () => { // deno-lint-ignore no-explicit-any diff --git a/src/functions/interactivity/block_actions_router.ts b/src/functions/interactivity/block_actions_router.ts index a78217f6..c0538a7b 100644 --- a/src/functions/interactivity/block_actions_router.ts +++ b/src/functions/interactivity/block_actions_router.ts @@ -1,21 +1,18 @@ -import type { +import { ParameterSetDefinition, PossibleParameterKeys, } from "../../parameters/types.ts"; -import type { SlackFunctionDefinition } from "../definitions/mod.ts"; +import { SlackFunctionDefinition } from "../definitions/mod.ts"; import { UnhandledEventError } from "../unhandled-event-error.ts"; import { enrichContext } from "../enrich-context.ts"; -import type { - FunctionDefinitionArgs, - FunctionRuntimeParameters, -} from "../types.ts"; +import { FunctionDefinitionArgs, FunctionRuntimeParameters } from "../types.ts"; import type { ActionContext, BlockActionConstraint, BlockActionHandler, RuntimeActionContext, } from "./types.ts"; -import type { BlockAction } from "./block_kit_types.ts"; +import { BlockAction } from "./block_kit_types.ts"; import { matchBasicConstraintField, normalizeConstraintToArray, diff --git a/src/functions/interactivity/block_suggestion_router.ts b/src/functions/interactivity/block_suggestion_router.ts index 4653aaa7..43e930ec 100644 --- a/src/functions/interactivity/block_suggestion_router.ts +++ b/src/functions/interactivity/block_suggestion_router.ts @@ -1,21 +1,18 @@ -import type { +import { ParameterSetDefinition, PossibleParameterKeys, } from "../../parameters/types.ts"; -import type { SlackFunctionDefinition } from "../definitions/mod.ts"; +import { SlackFunctionDefinition } from "../definitions/mod.ts"; import { UnhandledEventError } from "../unhandled-event-error.ts"; import { enrichContext } from "../enrich-context.ts"; -import type { - FunctionDefinitionArgs, - FunctionRuntimeParameters, -} from "../types.ts"; +import { FunctionDefinitionArgs, FunctionRuntimeParameters } from "../types.ts"; import type { BlockActionConstraint, BlockSuggestionHandler, RuntimeSuggestionContext, SuggestionContext, } from "./types.ts"; -import type { BlockAction } from "./block_kit_types.ts"; +import { BlockAction } from "./block_kit_types.ts"; import { matchBasicConstraintField, normalizeConstraintToArray, diff --git a/src/functions/interactivity/types.ts b/src/functions/interactivity/types.ts index 2c5b167a..795c2edb 100644 --- a/src/functions/interactivity/types.ts +++ b/src/functions/interactivity/types.ts @@ -1,14 +1,14 @@ -import type { +import { BaseRuntimeFunctionContext, FunctionContextEnrichment, FunctionDefinitionArgs, FunctionParameters, FunctionRuntimeParameters, } from "../types.ts"; -import type { BlockActionsBody } from "./block_actions_types.ts"; -import type { BlockSuggestionBody } from "./block_suggestion_types.ts"; -import type { BlockAction } from "./block_kit_types.ts"; -import type { +import { BlockActionsBody } from "./block_actions_types.ts"; +import { BlockSuggestionBody } from "./block_suggestion_types.ts"; +import { BlockAction } from "./block_kit_types.ts"; +import { View, ViewClosedBody, ViewEvents, diff --git a/src/functions/interactivity/view_router.ts b/src/functions/interactivity/view_router.ts index b34ebfe7..30006b48 100644 --- a/src/functions/interactivity/view_router.ts +++ b/src/functions/interactivity/view_router.ts @@ -1,14 +1,11 @@ -import type { +import { ParameterSetDefinition, PossibleParameterKeys, } from "../../parameters/types.ts"; -import type { SlackFunctionDefinition } from "../definitions/mod.ts"; +import { SlackFunctionDefinition } from "../definitions/mod.ts"; import { UnhandledEventError } from "../unhandled-event-error.ts"; import { enrichContext } from "../enrich-context.ts"; -import type { - FunctionDefinitionArgs, - FunctionRuntimeParameters, -} from "../types.ts"; +import { FunctionDefinitionArgs, FunctionRuntimeParameters } from "../types.ts"; import { matchBasicConstraintField, normalizeConstraintToArray, @@ -21,7 +18,7 @@ import type { ViewConstraintObject, ViewSubmissionHandler, } from "./types.ts"; -import type { View, ViewEvents } from "./view_types.ts"; +import { View, ViewEvents } from "./view_types.ts"; export const ViewsRouter = < InputParameters extends ParameterSetDefinition, diff --git a/src/functions/slack-function.ts b/src/functions/slack-function.ts index de10f977..f6096ebb 100644 --- a/src/functions/slack-function.ts +++ b/src/functions/slack-function.ts @@ -1,14 +1,14 @@ -import type { +import { ParameterSetDefinition, PossibleParameterKeys, } from "../parameters/types.ts"; -import type { +import { EnrichedSlackFunctionHandler, RuntimeFunctionContext, RuntimeUnhandledEventContext, SlackFunctionType, } from "./types.ts"; -import type { SlackFunctionDefinition } from "./definitions/mod.ts"; +import { SlackFunctionDefinition } from "./definitions/mod.ts"; import { enrichContext } from "./enrich-context.ts"; import { BlockActionsRouter } from "./interactivity/block_actions_router.ts"; import { BlockSuggestionRouter } from "./interactivity/block_suggestion_router.ts"; diff --git a/src/functions/tester/mod.ts b/src/functions/tester/mod.ts index 6d0f79ca..78e20344 100644 --- a/src/functions/tester/mod.ts +++ b/src/functions/tester/mod.ts @@ -1,11 +1,11 @@ import { SlackAPI } from "../../deps.ts"; -import type { +import { ParameterSetDefinition, PossibleParameterKeys, } from "../../parameters/types.ts"; -import type { SlackFunctionDefinition } from "../definitions/mod.ts"; +import { SlackFunctionDefinition } from "../definitions/mod.ts"; import type { FunctionRuntimeParameters } from "../types.ts"; -import type { +import { CreateFunctionContext, SlackFunctionTesterSignature, } from "./types.ts"; diff --git a/src/functions/types.ts b/src/functions/types.ts index 77ee3029..1baa7fdb 100644 --- a/src/functions/types.ts +++ b/src/functions/types.ts @@ -1,15 +1,15 @@ -import type { SlackAPIClient } from "../deps.ts"; -import type { Env } from "../types.ts"; -import type { +import { SlackAPIClient } from "../deps.ts"; +import { Env } from "../types.ts"; +import { ManifestFunctionSchema, ManifestFunctionType, } from "../manifest/manifest_schema.ts"; -import type { +import { ParameterPropertiesDefinition, ParameterSetDefinition, PossibleParameterKeys, } from "../parameters/types.ts"; -import type { +import { CustomTypeParameterDefinition, ParameterDefinition, TypedArrayParameterDefinition, @@ -19,8 +19,8 @@ import type { } from "../parameters/definition_types.ts"; import type SchemaTypes from "../schema/schema_types.ts"; import type SlackSchemaTypes from "../schema/slack/schema_types.ts"; -import type { SlackManifest } from "../manifest/mod.ts"; -import type { +import { SlackManifest } from "../manifest/mod.ts"; +import { BasicConstraintField, BlockActionConstraint, BlockActionHandler, @@ -29,8 +29,8 @@ import type { ViewClosedHandler, ViewSubmissionHandler, } from "./interactivity/types.ts"; -import type { ICustomType } from "../types/types.ts"; -import type { +import { ICustomType } from "../types/types.ts"; +import { IncreaseDepth, MaxRecursionDepth, RecursionDepthLevel, diff --git a/src/functions/types_base_runtime_function_handler_test.ts b/src/functions/types_base_runtime_function_handler_test.ts index dadce8f2..084fadf4 100644 --- a/src/functions/types_base_runtime_function_handler_test.ts +++ b/src/functions/types_base_runtime_function_handler_test.ts @@ -1,6 +1,6 @@ import { assertEquals } from "../dev_deps.ts"; import { SlackFunctionTester } from "./tester/mod.ts"; -import type { BaseRuntimeSlackFunctionHandler } from "./types.ts"; +import { BaseRuntimeSlackFunctionHandler } from "./types.ts"; // These tests are to ensure our Function Handler types are supporting the use cases we want to // Any "failures" here will most likely be reflected in Type errors diff --git a/src/functions/types_runtime_slack_function_handler_test.ts b/src/functions/types_runtime_slack_function_handler_test.ts index 7c3b5970..ae2f140e 100644 --- a/src/functions/types_runtime_slack_function_handler_test.ts +++ b/src/functions/types_runtime_slack_function_handler_test.ts @@ -2,7 +2,7 @@ import { assertExists } from "../dev_deps.ts"; import { assertEqualsTypedValues } from "../test_utils.ts"; import { SlackFunctionTester } from "./tester/mod.ts"; import { DefineFunction } from "./mod.ts"; -import type { RuntimeSlackFunctionHandler } from "./types.ts"; +import { RuntimeSlackFunctionHandler } from "./types.ts"; Deno.test("RuntimeSlackFunctionHandler type should not include a client property", () => { const TestFn = DefineFunction({ diff --git a/src/manifest/manifest_schema.ts b/src/manifest/manifest_schema.ts index dff484e1..66450c04 100644 --- a/src/manifest/manifest_schema.ts +++ b/src/manifest/manifest_schema.ts @@ -1,11 +1,11 @@ -import type { ISlackDatastore } from "../datastore/types.ts"; -import type { ISlackFunctionDefinition } from "../functions/types.ts"; +import { ISlackDatastore } from "../datastore/types.ts"; +import { ISlackFunctionDefinition } from "../functions/types.ts"; import type { ParameterSetDefinition } from "../parameters/types.ts"; import type { ParameterDefinition } from "../parameters/definition_types.ts"; -import type { OAuth2ProviderTypeValues } from "../schema/providers/oauth2/types.ts"; +import { OAuth2ProviderTypeValues } from "../schema/providers/oauth2/types.ts"; import type { ICustomType } from "../types/types.ts"; -import type { ISlackWorkflow } from "../workflows/types.ts"; -import type { OAuth2ProviderOptions } from "../providers/oauth2/types.ts"; +import { ISlackWorkflow } from "../workflows/types.ts"; +import { OAuth2ProviderOptions } from "../providers/oauth2/types.ts"; // ---------------------------------------------------------------------------- // Manifest Schema Types diff --git a/src/manifest/manifest_test.ts b/src/manifest/manifest_test.ts index 2a7eca39..6dbbfa62 100644 --- a/src/manifest/manifest_test.ts +++ b/src/manifest/manifest_test.ts @@ -1,4 +1,4 @@ -import type { +import { ISlackManifestRemote, ISlackManifestRunOnSlack, SlackManifestType, @@ -20,7 +20,7 @@ import { assertStrictEquals, assertStringIncludes, fail, - type IsExact, + IsExact, mock, } from "../dev_deps.ts"; import { DefineConnector } from "../functions/mod.ts"; diff --git a/src/manifest/mod.ts b/src/manifest/mod.ts index 0ed0d3b3..5677e7f7 100644 --- a/src/manifest/mod.ts +++ b/src/manifest/mod.ts @@ -1,11 +1,11 @@ -import type { +import { ISlackManifestRemote, ISlackManifestRunOnSlack, SlackManifestType, } from "./types.ts"; -import type { ICustomType } from "../types/types.ts"; -import type { ParameterSetDefinition } from "../parameters/types.ts"; -import type { +import { ICustomType } from "../types/types.ts"; +import { ParameterSetDefinition } from "../parameters/types.ts"; +import { ManifestAppHomeMessagesTabSchema, ManifestAppHomeSchema, ManifestCustomEventsSchema, diff --git a/src/manifest/types.ts b/src/manifest/types.ts index 27b458ba..afd5002b 100644 --- a/src/manifest/types.ts +++ b/src/manifest/types.ts @@ -1,4 +1,4 @@ -import type { +import { ManifestAppDirectorySchema, ManifestAppHomeMessagesTabSchema, ManifestAppHomeSchema, @@ -13,10 +13,10 @@ import type { ManifestWorkflow, ManifestWorkflowStepsSchemaLegacy, } from "./manifest_schema.ts"; -import type { OAuth2Provider } from "../providers/oauth2/mod.ts"; -import type { ICustomType } from "../types/types.ts"; -import type { CamelCasedPropertiesDeep } from "./types_util.ts"; -import type { ICustomEvent } from "../events/types.ts"; +import { OAuth2Provider } from "../providers/oauth2/mod.ts"; +import { ICustomType } from "../types/types.ts"; +import { CamelCasedPropertiesDeep } from "./types_util.ts"; +import { ICustomEvent } from "../events/types.ts"; /** Manifest definition. * diff --git a/src/parameters/define_property.ts b/src/parameters/define_property.ts index 9464479f..247f50d1 100644 --- a/src/parameters/define_property.ts +++ b/src/parameters/define_property.ts @@ -1,4 +1,4 @@ -import type { +import { TypedObjectParameterDefinition, TypedObjectProperties, TypedObjectRequiredProperties, diff --git a/src/parameters/define_property_test.ts b/src/parameters/define_property_test.ts index 70a06a19..5cf02322 100644 --- a/src/parameters/define_property_test.ts +++ b/src/parameters/define_property_test.ts @@ -1,6 +1,6 @@ import { DefineProperty } from "./define_property.ts"; import SchemaTypes from "../schema/schema_types.ts"; -import { assert, type IsExact } from "../dev_deps.ts"; +import { assert, IsExact } from "../dev_deps.ts"; Deno.test("DefineProperty should allow for object property names to be specified in the required field", () => { const obj = DefineProperty({ diff --git a/src/parameters/definition_types.ts b/src/parameters/definition_types.ts index 89ba405a..3775d1a9 100644 --- a/src/parameters/definition_types.ts +++ b/src/parameters/definition_types.ts @@ -1,11 +1,10 @@ -import type SchemaTypes from "../schema/schema_types.ts"; -import type { ValidSchemaTypes } from "../schema/schema_types.ts"; -import type { +import SchemaTypes, { ValidSchemaTypes } from "../schema/schema_types.ts"; +import { SlackPrimitiveTypes, ValidSlackPrimitiveTypes, } from "../schema/slack/types/mod.ts"; -import type { LooseStringAutocomplete } from "../type_utils.ts"; -import type { ICustomType } from "../types/types.ts"; +import { LooseStringAutocomplete } from "../type_utils.ts"; +import { ICustomType } from "../types/types.ts"; export type ParameterDefinition = TypedParameterDefinition; diff --git a/src/parameters/parameter-variable_test.ts b/src/parameters/parameter-variable_test.ts index 12cbee79..1901a5df 100644 --- a/src/parameters/parameter-variable_test.ts +++ b/src/parameters/parameter-variable_test.ts @@ -1,13 +1,8 @@ import SchemaTypes from "../schema/schema_types.ts"; import { ParameterVariable } from "./mod.ts"; -import type { SingleParameterVariable } from "./types.ts"; -import { - assert, - assertStrictEquals, - type IsAny, - type IsExact, -} from "../dev_deps.ts"; -import type { CannotBeUndefined } from "../test_utils.ts"; +import { SingleParameterVariable } from "./types.ts"; +import { assert, assertStrictEquals, IsAny, IsExact } from "../dev_deps.ts"; +import { CannotBeUndefined } from "../test_utils.ts"; /** * ParameterVariable-wrapped parameters should yield particular types */ diff --git a/src/parameters/types.ts b/src/parameters/types.ts index a2f2463b..d5a52675 100644 --- a/src/parameters/types.ts +++ b/src/parameters/types.ts @@ -1,9 +1,9 @@ -import type { +import { IncreaseDepth, MaxRecursionDepth, RecursionDepthLevel, } from "../type_utils.ts"; -import type { +import { CustomTypeParameterDefinition, ParameterDefinition, TypedObjectParameter, diff --git a/src/providers/oauth2/mod.ts b/src/providers/oauth2/mod.ts index 5aea64cb..e15b177b 100644 --- a/src/providers/oauth2/mod.ts +++ b/src/providers/oauth2/mod.ts @@ -1,10 +1,10 @@ -import type { +import { OAuth2ProviderDefinitionArgs, OAuth2ProviderOptions, } from "./types.ts"; -import type { OAuth2ProviderTypeValues } from "../../schema/providers/oauth2/types.ts"; -import type { ManifestOAuth2ProviderSchema } from "../../manifest/manifest_schema.ts"; +import { OAuth2ProviderTypeValues } from "../../schema/providers/oauth2/types.ts"; +import { ManifestOAuth2ProviderSchema } from "../../manifest/manifest_schema.ts"; export const DefineOAuth2Provider = ( definition: OAuth2ProviderDefinitionArgs, diff --git a/src/providers/oauth2/oauth2_test.ts b/src/providers/oauth2/oauth2_test.ts index 5537a99a..f694d255 100644 --- a/src/providers/oauth2/oauth2_test.ts +++ b/src/providers/oauth2/oauth2_test.ts @@ -1,4 +1,4 @@ -import type { SlackManifestType } from "../../manifest/types.ts"; +import { SlackManifestType } from "../../manifest/types.ts"; import { Manifest, SlackManifest } from "../../manifest/mod.ts"; import { DefineOAuth2Provider, Schema } from "../../mod.ts"; import { diff --git a/src/providers/oauth2/types.ts b/src/providers/oauth2/types.ts index 07987a6c..7afaa543 100644 --- a/src/providers/oauth2/types.ts +++ b/src/providers/oauth2/types.ts @@ -1,4 +1,4 @@ -import type { +import { OAuth2ProviderTypeValues, } from "../../schema/providers/oauth2/types.ts"; diff --git a/src/schema/providers/oauth2/types.ts b/src/schema/providers/oauth2/types.ts index 1f61ad5e..e090ff1f 100644 --- a/src/schema/providers/oauth2/types.ts +++ b/src/schema/providers/oauth2/types.ts @@ -1,4 +1,4 @@ -import type OAuth2ProviderTypes from "./mod.ts"; +import OAuth2ProviderTypes from "./mod.ts"; export type OAuth2ProviderTypeValues = typeof OAuth2ProviderTypes[keyof typeof OAuth2ProviderTypes]; diff --git a/src/schema/slack/functions/_scripts/src/templates/template_function.ts b/src/schema/slack/functions/_scripts/src/templates/template_function.ts index 4e954f0f..ccc1f00a 100644 --- a/src/schema/slack/functions/_scripts/src/templates/template_function.ts +++ b/src/schema/slack/functions/_scripts/src/templates/template_function.ts @@ -2,7 +2,7 @@ import { isCustomType } from "../../../../../../types/mod.ts"; import SchemaTypes from "../../../../../schema_types.ts"; import SlackSchemaTypes from "../../../../schema_types.ts"; import { InternalSlackTypes } from "../../../../types/custom/mod.ts"; -import type { +import { FunctionParameter, FunctionProperties, FunctionProperty, @@ -15,7 +15,7 @@ import { renderTypeImports, sanitize, } from "./utils.ts"; -import type { AllowedTypeValue, AllowedTypeValueObject } from "./types.ts"; +import { AllowedTypeValue, AllowedTypeValueObject } from "./types.ts"; type AllowedHiddenParamsMap = Record< string, diff --git a/src/schema/slack/functions/_scripts/src/templates/template_mod.ts b/src/schema/slack/functions/_scripts/src/templates/template_mod.ts index 66bbac00..dffebd60 100644 --- a/src/schema/slack/functions/_scripts/src/templates/template_mod.ts +++ b/src/schema/slack/functions/_scripts/src/templates/template_mod.ts @@ -3,7 +3,7 @@ import { getFunctionName, renderFunctionImport, } from "./utils.ts"; -import type { FunctionRecord } from "../types.ts"; +import { FunctionRecord } from "../types.ts"; export const SlackFunctionModTemplate = ( functionRecords: FunctionRecord[], diff --git a/src/schema/slack/functions/_scripts/src/templates/test_template.ts b/src/schema/slack/functions/_scripts/src/templates/test_template.ts index 7cb4019d..6e3e2a07 100644 --- a/src/schema/slack/functions/_scripts/src/templates/test_template.ts +++ b/src/schema/slack/functions/_scripts/src/templates/test_template.ts @@ -5,7 +5,7 @@ import { renderFunctionImport, renderTypeImports, } from "./utils.ts"; -import type { FunctionParameter, FunctionRecord } from "../types.ts"; +import { FunctionParameter, FunctionRecord } from "../types.ts"; import { allowedHiddenParams, manifestFunctionFieldsToTypeScript, diff --git a/src/schema/slack/functions/_scripts/src/templates/types.ts b/src/schema/slack/functions/_scripts/src/templates/types.ts index 5f29fd4c..66614a92 100644 --- a/src/schema/slack/functions/_scripts/src/templates/types.ts +++ b/src/schema/slack/functions/_scripts/src/templates/types.ts @@ -1,4 +1,4 @@ -import type { ICustomType } from "../../../../../../types/types.ts"; +import { ICustomType } from "../../../../../../types/types.ts"; export type AllowedTypeValue = ICustomType | string; export type AllowedTypeValueObject = Record; diff --git a/src/schema/slack/functions/_scripts/src/templates/utils.ts b/src/schema/slack/functions/_scripts/src/templates/utils.ts index c9f01ff0..ae6255a1 100644 --- a/src/schema/slack/functions/_scripts/src/templates/utils.ts +++ b/src/schema/slack/functions/_scripts/src/templates/utils.ts @@ -1,9 +1,9 @@ -import { toPascalCase } from "../../../../../../dev_deps.ts"; -import type { FunctionProperty, FunctionRecord } from "../types.ts"; +import { pascalCase } from "../../../../../../dev_deps.ts"; +import { FunctionProperty, FunctionRecord } from "../types.ts"; import SchemaTypes from "../../../../../schema_types.ts"; import SlackTypes from "../../../../schema_types.ts"; import { InternalSlackTypes } from "../../../../types/custom/mod.ts"; -import type { AllowedTypeValue, AllowedTypeValueObject } from "./types.ts"; +import { AllowedTypeValue, AllowedTypeValueObject } from "./types.ts"; import { isCustomType } from "../../../../../../types/mod.ts"; import { isArrayFunctionProperty, isObjectFunctionProperty } from "../utils.ts"; @@ -17,7 +17,7 @@ export function renderFunctionImport(callbackId: string): string { } export function getFunctionName(callbackId: string): string { - return toPascalCase(callbackId); + return pascalCase(callbackId); } export function getSlackCallbackId( diff --git a/src/schema/slack/functions/_scripts/src/templates/utils_test.ts b/src/schema/slack/functions/_scripts/src/templates/utils_test.ts index 28b70919..3077e69f 100644 --- a/src/schema/slack/functions/_scripts/src/templates/utils_test.ts +++ b/src/schema/slack/functions/_scripts/src/templates/utils_test.ts @@ -10,7 +10,7 @@ import { assertEquals, assertStringIncludes, } from "../../../../../../dev_deps.ts"; -import type { FunctionRecord } from "../types.ts"; +import { FunctionRecord } from "../types.ts"; import SchemaTypes from "../../../../../schema_types.ts"; import SlackTypes from "../../../../schema_types.ts"; import { InternalSlackTypes } from "../../../../types/custom/mod.ts"; diff --git a/src/schema/slack/functions/_scripts/src/utils.ts b/src/schema/slack/functions/_scripts/src/utils.ts index b7ea3e4c..de05e950 100644 --- a/src/schema/slack/functions/_scripts/src/utils.ts +++ b/src/schema/slack/functions/_scripts/src/utils.ts @@ -1,4 +1,4 @@ -import type { +import { ArrayFunctionProperty, FunctionProperty, FunctionRecord, diff --git a/src/schema/slack/functions/_scripts/src/utils_test.ts b/src/schema/slack/functions/_scripts/src/utils_test.ts index 7e48d985..7ebc6b84 100644 --- a/src/schema/slack/functions/_scripts/src/utils_test.ts +++ b/src/schema/slack/functions/_scripts/src/utils_test.ts @@ -6,8 +6,8 @@ import { redText, yellowText, } from "./utils.ts"; -import { assert, assertEquals, type IsExact } from "../../../../../dev_deps.ts"; -import type { +import { assert, assertEquals, IsExact } from "../../../../../dev_deps.ts"; +import { ArrayFunctionProperty, FunctionProperty, ObjectFunctionProperty, diff --git a/src/schema/slack/functions/_scripts/src/write_function_files.ts b/src/schema/slack/functions/_scripts/src/write_function_files.ts index 8f9f1780..946928f3 100644 --- a/src/schema/slack/functions/_scripts/src/write_function_files.ts +++ b/src/schema/slack/functions/_scripts/src/write_function_files.ts @@ -4,7 +4,7 @@ import { SlackTestFunctionTemplate, } from "./templates/mod.ts"; import { getSlackFunctions, greenText, redText } from "./utils.ts"; -import type { FunctionRecord } from "./types.ts"; +import { FunctionRecord } from "./types.ts"; const VALID_FILENAME_REGEX = /^[0-9a-zA-Z_\-]+$/; diff --git a/src/schema/slack/functions/add_bookmark_test.ts b/src/schema/slack/functions/add_bookmark_test.ts index 6ce95251..932782f9 100644 --- a/src/schema/slack/functions/add_bookmark_test.ts +++ b/src/schema/slack/functions/add_bookmark_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import AddBookmark from "./add_bookmark.ts"; diff --git a/src/schema/slack/functions/add_pin_test.ts b/src/schema/slack/functions/add_pin_test.ts index 844f9bdd..9674c7a1 100644 --- a/src/schema/slack/functions/add_pin_test.ts +++ b/src/schema/slack/functions/add_pin_test.ts @@ -1,7 +1,7 @@ /** This file was autogenerated. Follow the steps in src/schema/slack/functions/_scripts/README.md to rebuild **/ import { assertEquals, assertNotStrictEquals } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import AddPin from "./add_pin.ts"; diff --git a/src/schema/slack/functions/add_reaction_test.ts b/src/schema/slack/functions/add_reaction_test.ts index 29bde409..9de1eff1 100644 --- a/src/schema/slack/functions/add_reaction_test.ts +++ b/src/schema/slack/functions/add_reaction_test.ts @@ -1,7 +1,7 @@ /** This file was autogenerated. Follow the steps in src/schema/slack/functions/_scripts/README.md to rebuild **/ import { assertEquals, assertNotStrictEquals } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import AddReaction from "./add_reaction.ts"; diff --git a/src/schema/slack/functions/add_user_to_usergroup_test.ts b/src/schema/slack/functions/add_user_to_usergroup_test.ts index 78b7402c..6d190a39 100644 --- a/src/schema/slack/functions/add_user_to_usergroup_test.ts +++ b/src/schema/slack/functions/add_user_to_usergroup_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import AddUserToUsergroup from "./add_user_to_usergroup.ts"; diff --git a/src/schema/slack/functions/archive_channel_test.ts b/src/schema/slack/functions/archive_channel_test.ts index 419ef87f..9d4fbc92 100644 --- a/src/schema/slack/functions/archive_channel_test.ts +++ b/src/schema/slack/functions/archive_channel_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SlackTypes from "../schema_types.ts"; import ArchiveChannel from "./archive_channel.ts"; diff --git a/src/schema/slack/functions/canvas_copy_test.ts b/src/schema/slack/functions/canvas_copy_test.ts index 9dcd33ca..79df3bdb 100644 --- a/src/schema/slack/functions/canvas_copy_test.ts +++ b/src/schema/slack/functions/canvas_copy_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import CanvasCopy from "./canvas_copy.ts"; diff --git a/src/schema/slack/functions/canvas_create_test.ts b/src/schema/slack/functions/canvas_create_test.ts index 4b9bc53e..c33cc925 100644 --- a/src/schema/slack/functions/canvas_create_test.ts +++ b/src/schema/slack/functions/canvas_create_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import CanvasCreate from "./canvas_create.ts"; diff --git a/src/schema/slack/functions/canvas_update_content_test.ts b/src/schema/slack/functions/canvas_update_content_test.ts index 0b50f4fa..63d679a7 100644 --- a/src/schema/slack/functions/canvas_update_content_test.ts +++ b/src/schema/slack/functions/canvas_update_content_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import CanvasUpdateContent from "./canvas_update_content.ts"; diff --git a/src/schema/slack/functions/channel_canvas_create_test.ts b/src/schema/slack/functions/channel_canvas_create_test.ts index 2af5bae5..6074d45c 100644 --- a/src/schema/slack/functions/channel_canvas_create_test.ts +++ b/src/schema/slack/functions/channel_canvas_create_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import ChannelCanvasCreate from "./channel_canvas_create.ts"; diff --git a/src/schema/slack/functions/create_channel_test.ts b/src/schema/slack/functions/create_channel_test.ts index bb5f46cd..9634d6c8 100644 --- a/src/schema/slack/functions/create_channel_test.ts +++ b/src/schema/slack/functions/create_channel_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import CreateChannel from "./create_channel.ts"; diff --git a/src/schema/slack/functions/create_usergroup_test.ts b/src/schema/slack/functions/create_usergroup_test.ts index ffa4e63f..d9f20ccf 100644 --- a/src/schema/slack/functions/create_usergroup_test.ts +++ b/src/schema/slack/functions/create_usergroup_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import CreateUsergroup from "./create_usergroup.ts"; diff --git a/src/schema/slack/functions/delay_test.ts b/src/schema/slack/functions/delay_test.ts index d5b0aa2b..c2ab0497 100644 --- a/src/schema/slack/functions/delay_test.ts +++ b/src/schema/slack/functions/delay_test.ts @@ -1,7 +1,7 @@ /** This file was autogenerated. Follow the steps in src/schema/slack/functions/_scripts/README.md to rebuild **/ import { assertEquals, assertNotStrictEquals } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import Delay from "./delay.ts"; diff --git a/src/schema/slack/functions/invite_user_to_channel_test.ts b/src/schema/slack/functions/invite_user_to_channel_test.ts index e3943c13..fe7aab1e 100644 --- a/src/schema/slack/functions/invite_user_to_channel_test.ts +++ b/src/schema/slack/functions/invite_user_to_channel_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import InviteUserToChannel from "./invite_user_to_channel.ts"; diff --git a/src/schema/slack/functions/open_form_test.ts b/src/schema/slack/functions/open_form_test.ts index 39f5b340..e4ecebe3 100644 --- a/src/schema/slack/functions/open_form_test.ts +++ b/src/schema/slack/functions/open_form_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import { InternalSlackTypes } from "../types/custom/mod.ts"; diff --git a/src/schema/slack/functions/remove_reaction_test.ts b/src/schema/slack/functions/remove_reaction_test.ts index 842780a3..aed35e0f 100644 --- a/src/schema/slack/functions/remove_reaction_test.ts +++ b/src/schema/slack/functions/remove_reaction_test.ts @@ -1,7 +1,7 @@ /** This file was autogenerated. Follow the steps in src/schema/slack/functions/_scripts/README.md to rebuild **/ import { assertEquals, assertNotStrictEquals } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import RemoveReaction from "./remove_reaction.ts"; diff --git a/src/schema/slack/functions/remove_user_from_usergroup_test.ts b/src/schema/slack/functions/remove_user_from_usergroup_test.ts index 28eb8be0..e66c38b6 100644 --- a/src/schema/slack/functions/remove_user_from_usergroup_test.ts +++ b/src/schema/slack/functions/remove_user_from_usergroup_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import RemoveUserFromUsergroup from "./remove_user_from_usergroup.ts"; diff --git a/src/schema/slack/functions/reply_in_thread_test.ts b/src/schema/slack/functions/reply_in_thread_test.ts index 397c7d66..ebe70ba8 100644 --- a/src/schema/slack/functions/reply_in_thread_test.ts +++ b/src/schema/slack/functions/reply_in_thread_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import ReplyInThread from "./reply_in_thread.ts"; diff --git a/src/schema/slack/functions/send_dm_test.ts b/src/schema/slack/functions/send_dm_test.ts index 9b294b93..a9a1edac 100644 --- a/src/schema/slack/functions/send_dm_test.ts +++ b/src/schema/slack/functions/send_dm_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import SendDm from "./send_dm.ts"; diff --git a/src/schema/slack/functions/send_ephemeral_message_test.ts b/src/schema/slack/functions/send_ephemeral_message_test.ts index f2ab88da..06c791e8 100644 --- a/src/schema/slack/functions/send_ephemeral_message_test.ts +++ b/src/schema/slack/functions/send_ephemeral_message_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import SendEphemeralMessage from "./send_ephemeral_message.ts"; diff --git a/src/schema/slack/functions/send_message_test.ts b/src/schema/slack/functions/send_message_test.ts index 6737b246..e2ff6532 100644 --- a/src/schema/slack/functions/send_message_test.ts +++ b/src/schema/slack/functions/send_message_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import SendMessage from "./send_message.ts"; diff --git a/src/schema/slack/functions/share_canvas_in_thread_test.ts b/src/schema/slack/functions/share_canvas_in_thread_test.ts index f8b506fd..c733ab9b 100644 --- a/src/schema/slack/functions/share_canvas_in_thread_test.ts +++ b/src/schema/slack/functions/share_canvas_in_thread_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import ShareCanvasInThread from "./share_canvas_in_thread.ts"; diff --git a/src/schema/slack/functions/share_canvas_test.ts b/src/schema/slack/functions/share_canvas_test.ts index 39a0e1de..6f2f066c 100644 --- a/src/schema/slack/functions/share_canvas_test.ts +++ b/src/schema/slack/functions/share_canvas_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import ShareCanvas from "./share_canvas.ts"; diff --git a/src/schema/slack/functions/update_channel_topic_test.ts b/src/schema/slack/functions/update_channel_topic_test.ts index 43e1047f..824c833a 100644 --- a/src/schema/slack/functions/update_channel_topic_test.ts +++ b/src/schema/slack/functions/update_channel_topic_test.ts @@ -5,7 +5,7 @@ import { assertNotStrictEquals, } from "../../../dev_deps.ts"; import { DefineWorkflow } from "../../../workflows/mod.ts"; -import type { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; +import { ManifestFunctionSchema } from "../../../manifest/manifest_schema.ts"; import SchemaTypes from "../../schema_types.ts"; import SlackTypes from "../schema_types.ts"; import UpdateChannelTopic from "./update_channel_topic.ts"; diff --git a/src/test_utils_test.ts b/src/test_utils_test.ts index 08f6441e..9e53eb8c 100644 --- a/src/test_utils_test.ts +++ b/src/test_utils_test.ts @@ -2,10 +2,10 @@ import { assertExists } from "https://deno.land/std@0.152.0/testing/asserts.ts"; import { assert, fail } from "./dev_deps.ts"; import { assertEqualsTypedValues, - type CanBe, - type CanBeUndefined, - type CannotBe, - type CannotBeUndefined, + CanBe, + CanBeUndefined, + CannotBe, + CannotBeUndefined, } from "./test_utils.ts"; Deno.test("CanBe", async (t) => { diff --git a/src/types/mod.ts b/src/types/mod.ts index fcc40261..9c0208ed 100644 --- a/src/types/mod.ts +++ b/src/types/mod.ts @@ -1,8 +1,8 @@ -import type { SlackManifest } from "../manifest/mod.ts"; -import type { ManifestCustomTypeSchema } from "../manifest/manifest_schema.ts"; -import type { CustomTypeDefinition, ICustomType } from "./types.ts"; +import { SlackManifest } from "../manifest/mod.ts"; +import { ManifestCustomTypeSchema } from "../manifest/manifest_schema.ts"; +import { CustomTypeDefinition, ICustomType } from "./types.ts"; import { isTypedArray, isTypedObject } from "../parameters/mod.ts"; -import type { +import { TypedObjectProperties, TypedObjectRequiredProperties, } from "../parameters/definition_types.ts"; diff --git a/src/types/types.ts b/src/types/types.ts index 31de9ed6..eb5633e6 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -1,10 +1,10 @@ -import type { +import { ParameterDefinitionWithGenerics, TypedObjectProperties, TypedObjectRequiredProperties, } from "../parameters/definition_types.ts"; -import type { SlackManifest } from "../manifest/mod.ts"; -import type { ManifestCustomTypeSchema } from "../manifest/manifest_schema.ts"; +import { SlackManifest } from "../manifest/mod.ts"; +import { ManifestCustomTypeSchema } from "../manifest/manifest_schema.ts"; export type CustomTypeDefinition< Props extends TypedObjectProperties, diff --git a/src/workflows/mod.ts b/src/workflows/mod.ts index 23271fb7..904ca824 100644 --- a/src/workflows/mod.ts +++ b/src/workflows/mod.ts @@ -1,7 +1,7 @@ -import type { SlackManifest } from "../manifest/mod.ts"; -import type { ManifestWorkflowSchema } from "../manifest/manifest_schema.ts"; -import type { ISlackFunctionDefinition } from "../functions/types.ts"; -import type { +import { SlackManifest } from "../manifest/mod.ts"; +import { ManifestWorkflowSchema } from "../manifest/manifest_schema.ts"; +import { ISlackFunctionDefinition } from "../functions/types.ts"; +import { ParameterSetDefinition, ParameterVariableType, PossibleParameterKeys, @@ -10,9 +10,9 @@ import { ParameterVariable } from "../parameters/mod.ts"; import { TypedWorkflowStepDefinition, UntypedWorkflowStepDefinition, - type WorkflowStepDefinition, + WorkflowStepDefinition, } from "./workflow-step.ts"; -import type { +import { ISlackWorkflow, SlackWorkflowDefinitionArgs, WorkflowInputs, diff --git a/src/workflows/types.ts b/src/workflows/types.ts index 185a757e..922075b0 100644 --- a/src/workflows/types.ts +++ b/src/workflows/types.ts @@ -1,6 +1,6 @@ -import type { SlackManifest } from "../manifest/mod.ts"; +import { SlackManifest } from "../manifest/mod.ts"; import type { ManifestWorkflowSchema } from "../manifest/manifest_schema.ts"; -import type { +import { ParameterPropertiesDefinition, ParameterSetDefinition, ParameterVariableType, diff --git a/src/workflows/workflow-step.ts b/src/workflows/workflow-step.ts index 91744cdf..06ccf05a 100644 --- a/src/workflows/workflow-step.ts +++ b/src/workflows/workflow-step.ts @@ -1,19 +1,19 @@ -import type { SlackManifest } from "../manifest/mod.ts"; -import type { +import { SlackManifest } from "../manifest/mod.ts"; +import { ManifestFunction, ManifestWorkflowStepSchema, } from "../manifest/manifest_schema.ts"; -import type { ISlackFunctionDefinition } from "../functions/types.ts"; +import { ISlackFunctionDefinition } from "../functions/types.ts"; import { CreateUntypedObjectParameterVariable, ParameterVariable, } from "../parameters/mod.ts"; -import type { +import { ParameterSetDefinition, ParameterVariableType, PossibleParameterKeys, } from "../parameters/types.ts"; -import type { WorkflowStepInputs, WorkflowStepOutputs } from "./types.ts"; +import { WorkflowStepInputs, WorkflowStepOutputs } from "./types.ts"; const localFnPrefix = "#/functions/"; diff --git a/tests/integration/functions/runtime_context/array_parameters_test.ts b/tests/integration/functions/runtime_context/array_parameters_test.ts index 1d3c05bc..e026d79c 100644 --- a/tests/integration/functions/runtime_context/array_parameters_test.ts +++ b/tests/integration/functions/runtime_context/array_parameters_test.ts @@ -1,11 +1,11 @@ -import { assert, assertEquals, type IsAny } from "../../../../src/dev_deps.ts"; -import type { +import { assert, assertEquals, IsAny } from "../../../../src/dev_deps.ts"; +import { CanBeUndefined, CannotBeUndefined, } from "../../../../src/test_utils.ts"; import { DefineFunction, DefineType, Schema } from "../../../../src/mod.ts"; import { DefineProperty } from "../../../../src/parameters/define_property.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/custom_type_parameters_test.ts b/tests/integration/functions/runtime_context/custom_type_parameters_test.ts index 8fd7e1f9..8b9c0c54 100644 --- a/tests/integration/functions/runtime_context/custom_type_parameters_test.ts +++ b/tests/integration/functions/runtime_context/custom_type_parameters_test.ts @@ -1,11 +1,11 @@ -import { assert, type IsAny, type IsExact } from "../../../../src/dev_deps.ts"; -import type { +import { assert, IsAny, IsExact } from "../../../../src/dev_deps.ts"; +import { CanBe, CanBeUndefined, CannotBeUndefined, } from "../../../../src/test_utils.ts"; import { DefineFunction, DefineType, Schema } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/empty_undefined_parameters_test.ts b/tests/integration/functions/runtime_context/empty_undefined_parameters_test.ts index b026ce6c..ba5c0f59 100644 --- a/tests/integration/functions/runtime_context/empty_undefined_parameters_test.ts +++ b/tests/integration/functions/runtime_context/empty_undefined_parameters_test.ts @@ -1,5 +1,5 @@ import { DefineFunction } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/incomplete_error_status_test.ts b/tests/integration/functions/runtime_context/incomplete_error_status_test.ts index a32a94d5..8c0251d5 100644 --- a/tests/integration/functions/runtime_context/incomplete_error_status_test.ts +++ b/tests/integration/functions/runtime_context/incomplete_error_status_test.ts @@ -1,5 +1,5 @@ import { DefineFunction } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/input_parameter_optionality_test.ts b/tests/integration/functions/runtime_context/input_parameter_optionality_test.ts index 4283a999..0cd2b420 100644 --- a/tests/integration/functions/runtime_context/input_parameter_optionality_test.ts +++ b/tests/integration/functions/runtime_context/input_parameter_optionality_test.ts @@ -1,7 +1,7 @@ import { assert } from "../../../../src/dev_deps.ts"; -import type { CanBe, CanBeUndefined } from "../../../../src/test_utils.ts"; +import { CanBe, CanBeUndefined } from "../../../../src/test_utils.ts"; import { DefineFunction, Schema } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/input_parameters_test.ts b/tests/integration/functions/runtime_context/input_parameters_test.ts index cafd02c2..9f6b957c 100644 --- a/tests/integration/functions/runtime_context/input_parameters_test.ts +++ b/tests/integration/functions/runtime_context/input_parameters_test.ts @@ -1,6 +1,6 @@ -import { assert, type IsExact } from "../../../../src/dev_deps.ts"; +import { assert, IsExact } from "../../../../src/dev_deps.ts"; import { DefineFunction, Schema } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/output_parameter_optionality_test.ts b/tests/integration/functions/runtime_context/output_parameter_optionality_test.ts index 741d0455..6e27542f 100644 --- a/tests/integration/functions/runtime_context/output_parameter_optionality_test.ts +++ b/tests/integration/functions/runtime_context/output_parameter_optionality_test.ts @@ -1,7 +1,7 @@ import { assert } from "../../../../src/dev_deps.ts"; -import type { CanBe, CanBeUndefined } from "../../../../src/test_utils.ts"; +import { CanBe, CanBeUndefined } from "../../../../src/test_utils.ts"; import { DefineFunction, Schema } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/output_parameters_test.ts b/tests/integration/functions/runtime_context/output_parameters_test.ts index caaa0be4..79a3f227 100644 --- a/tests/integration/functions/runtime_context/output_parameters_test.ts +++ b/tests/integration/functions/runtime_context/output_parameters_test.ts @@ -1,5 +1,5 @@ import { DefineFunction, Schema } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/typed_object_property_test.ts b/tests/integration/functions/runtime_context/typed_object_property_test.ts index 1fb38525..dd7c262a 100644 --- a/tests/integration/functions/runtime_context/typed_object_property_test.ts +++ b/tests/integration/functions/runtime_context/typed_object_property_test.ts @@ -2,17 +2,17 @@ import { assert, assertEquals, assertExists, - type IsAny, - type IsExact, + IsAny, + IsExact, } from "../../../../src/dev_deps.ts"; -import type { +import { CanBe, CanBeUndefined, CannotBeUndefined, } from "../../../../src/test_utils.ts"; import { DefineFunction, Schema } from "../../../../src/mod.ts"; import { DefineProperty } from "../../../../src/parameters/define_property.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/functions/runtime_context/untyped_object_property_test.ts b/tests/integration/functions/runtime_context/untyped_object_property_test.ts index 83f34a51..31b4d4dc 100644 --- a/tests/integration/functions/runtime_context/untyped_object_property_test.ts +++ b/tests/integration/functions/runtime_context/untyped_object_property_test.ts @@ -1,6 +1,6 @@ -import { assert, assertExists, type IsAny } from "../../../../src/dev_deps.ts"; +import { assert, assertExists, IsAny } from "../../../../src/dev_deps.ts"; import { DefineFunction, Schema } from "../../../../src/mod.ts"; -import type { +import { EnrichedSlackFunctionHandler, } from "../../../../src/functions/types.ts"; import { SlackFunctionTester } from "../../../../src/functions/tester/mod.ts"; diff --git a/tests/integration/parameters/parameter_variable_test.ts b/tests/integration/parameters/parameter_variable_test.ts index 73aa1d14..1e8b0187 100644 --- a/tests/integration/parameters/parameter_variable_test.ts +++ b/tests/integration/parameters/parameter_variable_test.ts @@ -1,15 +1,15 @@ import { DefineProperty } from "../../../src/parameters/define_property.ts"; import { ParameterVariable } from "../../../src/parameters/mod.ts"; -import type { SingleParameterVariable } from "../../../src/parameters/types.ts"; +import { SingleParameterVariable } from "../../../src/parameters/types.ts"; import { DefineType } from "../../../src/types/mod.ts"; import SchemaTypes from "../../../src/schema/schema_types.ts"; import { assert, assertStrictEquals, - type IsAny, - type IsExact, + IsAny, + IsExact, } from "../../../src/dev_deps.ts"; -import type { CannotBeUndefined } from "../../../src/test_utils.ts"; +import { CannotBeUndefined } from "../../../src/test_utils.ts"; /** * Typed Object required/optional property definitions should never yield undefined ParameterVariable properties */ diff --git a/tests/integration/parameters/parameter_variable_unwrapped_test.ts b/tests/integration/parameters/parameter_variable_unwrapped_test.ts index 74cdc05b..393f0206 100644 --- a/tests/integration/parameters/parameter_variable_unwrapped_test.ts +++ b/tests/integration/parameters/parameter_variable_unwrapped_test.ts @@ -1,12 +1,8 @@ import { DefineType } from "../../../src/types/mod.ts"; import SchemaTypes from "../../../src/schema/schema_types.ts"; import { ParameterVariable } from "../../../src/parameters/mod.ts"; -import { - assert, - assertStrictEquals, - type IsAny, -} from "../../../src/dev_deps.ts"; -import type { CannotBeUndefined } from "../../../src/test_utils.ts"; +import { assert, assertStrictEquals, IsAny } from "../../../src/dev_deps.ts"; +import { CannotBeUndefined } from "../../../src/test_utils.ts"; Deno.test("ParameterVariable with unwrapped typed object with an optional Custom Type property should yield an object with a definite value for its sub-properties", () => { const StringType = DefineType({