From c79bdb25a13276e6b6f7234a7e4a348e6338ccf9 Mon Sep 17 00:00:00 2001 From: Brad Harris Date: Wed, 27 Apr 2022 15:33:46 -0600 Subject: [PATCH] removing deprecated methods (#11) --- scripts/src/public-api-methods.ts | 15 --------------- .../method-types/api_method_types_test.ts | 15 --------------- src/generated/method-types/channels.ts | 8 -------- src/generated/method-types/groups.ts | 9 --------- src/generated/method-types/im.ts | 7 ------- src/generated/method-types/mod.ts | 8 -------- src/generated/method-types/mpim.ts | 7 ------- 7 files changed, 69 deletions(-) delete mode 100644 src/generated/method-types/channels.ts delete mode 100644 src/generated/method-types/groups.ts delete mode 100644 src/generated/method-types/im.ts delete mode 100644 src/generated/method-types/mpim.ts diff --git a/scripts/src/public-api-methods.ts b/scripts/src/public-api-methods.ts index 7d6439e..bc8fc8c 100644 --- a/scripts/src/public-api-methods.ts +++ b/scripts/src/public-api-methods.ts @@ -219,21 +219,6 @@ export const getPublicAPIMethods = () => { "workflows.stepCompleted", "workflows.stepFailed", "workflows.updateStep", - "channels.create", - "channels.info", - "channels.invite", - "channels.mark", - "groups.create", - "groups.info", - "groups.invite", - "groups.mark", - "groups.open", - "im.list", - "im.mark", - "im.open", - "mpim.list", - "mpim.mark", - "mpim.open", ]; // upcoming platform 2.0 methods we want available but aren't listed quite yet diff --git a/src/generated/method-types/api_method_types_test.ts b/src/generated/method-types/api_method_types_test.ts index 8df3553..c5070fe 100644 --- a/src/generated/method-types/api_method_types_test.ts +++ b/src/generated/method-types/api_method_types_test.ts @@ -143,10 +143,6 @@ Deno.test("SlackAPIMethodsType generated types", () => { assertEquals(typeof client.calls.participants.add, "function"); assertEquals(typeof client.calls.participants.remove, "function"); assertEquals(typeof client.calls.update, "function"); - assertEquals(typeof client.channels.create, "function"); - assertEquals(typeof client.channels.info, "function"); - assertEquals(typeof client.channels.invite, "function"); - assertEquals(typeof client.channels.mark, "function"); assertEquals(typeof client.chat.delete, "function"); assertEquals(typeof client.chat.deleteScheduledMessage, "function"); assertEquals(typeof client.chat.getPermalink, "function"); @@ -207,18 +203,7 @@ Deno.test("SlackAPIMethodsType generated types", () => { assertEquals(typeof client.files.upload, "function"); assertEquals(typeof client.functions.completeError, "function"); assertEquals(typeof client.functions.completeSuccess, "function"); - assertEquals(typeof client.groups.create, "function"); - assertEquals(typeof client.groups.info, "function"); - assertEquals(typeof client.groups.invite, "function"); - assertEquals(typeof client.groups.mark, "function"); - assertEquals(typeof client.groups.open, "function"); - assertEquals(typeof client.im.list, "function"); - assertEquals(typeof client.im.mark, "function"); - assertEquals(typeof client.im.open, "function"); assertEquals(typeof client.migration.exchange, "function"); - assertEquals(typeof client.mpim.list, "function"); - assertEquals(typeof client.mpim.mark, "function"); - assertEquals(typeof client.mpim.open, "function"); assertEquals(typeof client.oauth.access, "function"); assertEquals(typeof client.oauth.v2.access, "function"); assertEquals(typeof client.oauth.v2.exchange, "function"); diff --git a/src/generated/method-types/channels.ts b/src/generated/method-types/channels.ts deleted file mode 100644 index 51748d2..0000000 --- a/src/generated/method-types/channels.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SlackAPIMethod } from "../../types.ts"; - -export type ChannelsAPIType = { - create: SlackAPIMethod; - info: SlackAPIMethod; - invite: SlackAPIMethod; - mark: SlackAPIMethod; -}; diff --git a/src/generated/method-types/groups.ts b/src/generated/method-types/groups.ts deleted file mode 100644 index f0bb9c0..0000000 --- a/src/generated/method-types/groups.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { SlackAPIMethod } from "../../types.ts"; - -export type GroupsAPIType = { - create: SlackAPIMethod; - info: SlackAPIMethod; - invite: SlackAPIMethod; - mark: SlackAPIMethod; - open: SlackAPIMethod; -}; diff --git a/src/generated/method-types/im.ts b/src/generated/method-types/im.ts deleted file mode 100644 index 092040e..0000000 --- a/src/generated/method-types/im.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SlackAPIMethod } from "../../types.ts"; - -export type ImAPIType = { - list: SlackAPIMethod; - mark: SlackAPIMethod; - open: SlackAPIMethod; -}; diff --git a/src/generated/method-types/mod.ts b/src/generated/method-types/mod.ts index b5d07ca..e945369 100644 --- a/src/generated/method-types/mod.ts +++ b/src/generated/method-types/mod.ts @@ -5,7 +5,6 @@ import { type AuthAPIType } from "./auth.ts"; import { type BookmarksAPIType } from "./bookmarks.ts"; import { type BotsAPIType } from "./bots.ts"; import { type CallsAPIType } from "./calls.ts"; -import { type ChannelsAPIType } from "./channels.ts"; import { type ChatAPIType } from "./chat.ts"; import { type ConversationsAPIType } from "./conversations.ts"; import { type DialogAPIType } from "./dialog.ts"; @@ -14,10 +13,7 @@ import { type EmojiAPIType } from "./emoji.ts"; import { type EnterpriseAPIType } from "./enterprise.ts"; import { type FilesAPIType } from "./files.ts"; import { type FunctionsAPIType } from "./functions.ts"; -import { type GroupsAPIType } from "./groups.ts"; -import { type ImAPIType } from "./im.ts"; import { type MigrationAPIType } from "./migration.ts"; -import { type MpimAPIType } from "./mpim.ts"; import { type OauthAPIType } from "./oauth.ts"; import { type OpenidAPIType } from "./openid.ts"; import { type PinsAPIType } from "./pins.ts"; @@ -41,7 +37,6 @@ export type SlackAPIMethodsType = { bookmarks: BookmarksAPIType; bots: BotsAPIType; calls: CallsAPIType; - channels: ChannelsAPIType; chat: ChatAPIType; conversations: ConversationsAPIType; dialog: DialogAPIType; @@ -50,10 +45,7 @@ export type SlackAPIMethodsType = { enterprise: EnterpriseAPIType; files: FilesAPIType; functions: FunctionsAPIType; - groups: GroupsAPIType; - im: ImAPIType; migration: MigrationAPIType; - mpim: MpimAPIType; oauth: OauthAPIType; openid: OpenidAPIType; pins: PinsAPIType; diff --git a/src/generated/method-types/mpim.ts b/src/generated/method-types/mpim.ts deleted file mode 100644 index 11e9e31..0000000 --- a/src/generated/method-types/mpim.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SlackAPIMethod } from "../../types.ts"; - -export type MpimAPIType = { - list: SlackAPIMethod; - mark: SlackAPIMethod; - open: SlackAPIMethod; -};