-
Notifications
You must be signed in to change notification settings - Fork 680
feat(web-api): add slacklists.create method #2421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
srtaalej
wants to merge
9
commits into
main
Choose a base branch
from
ale-feat-webapi-slacklists
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
344a6f7
feat: add slacklists.create method
srtaalej 978d804
Update packages/web-api/src/methods.ts
srtaalej a9b6e48
Update packages/web-api/src/methods.ts
srtaalej a0a0cd6
Update packages/web-api/src/types/request/slacklists.ts
srtaalej 03cbe0c
Update packages/web-api/src/types/request/slacklists.ts
srtaalej 1b533e4
Update packages/web-api/src/types/request/slacklists.ts
srtaalej df7fd7c
fix: type errors on description block and match method name to docs
srtaalej eb931b1
feat: remaining slack lists methods
srtaalej a2657f5
fix: linter errors
srtaalej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| import type { RichTextBlock } from '@slack/types'; | ||
|
|
||
| import type { TokenOverridable } from './common'; | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.access.delete | ||
| export interface SlackListsAccessDeleteArguments extends TokenOverridable { | ||
| list_id: string; | ||
| channel_ids?: string[]; | ||
| user_ids?: string[]; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.access.set | ||
| export interface SlackListsAccessSetArguments extends TokenOverridable { | ||
| list_id: string; | ||
| access_level: string; | ||
| channel_ids?: string[]; | ||
| user_ids?: string[]; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.create | ||
| export interface SlackListsCreateArguments extends TokenOverridable { | ||
| name: string; | ||
| description_blocks?: Array<RichTextBlock>; | ||
| schema?: Array<Record<string, unknown>>; | ||
| copy_from_list_id?: string; | ||
| include_copied_list_records?: boolean; | ||
| todo_mode?: boolean; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.download.get | ||
| export interface SlackListsDownloadGetArguments extends TokenOverridable { | ||
| list_id: string; | ||
| job_id: string; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.download.start | ||
| export interface SlackListsDownloadStartArguments extends TokenOverridable { | ||
| list_id: string; | ||
| include_archived?: boolean; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.items.create | ||
| export interface SlackListsItemsCreateArguments extends TokenOverridable { | ||
| list_id: string; | ||
| duplicated_item_id?: string; | ||
| parent_item_id?: string; | ||
| initial_fields?: Array<Record<string, unknown>>; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.items.delete | ||
| export interface SlackListsItemsDeleteArguments extends TokenOverridable { | ||
| list_id: string; | ||
| id: string; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.items.deletemultiple | ||
| export interface SlackListsItemsDeleteMultipleArguments extends TokenOverridable { | ||
| list_id: string; | ||
| ids: string[]; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.items.info | ||
| export interface SlackListsItemsInfoArguments extends TokenOverridable { | ||
| list_id: string; | ||
| id: string; | ||
| include_is_subscribed?: boolean; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.items.list | ||
| export interface SlackListsItemsListArguments extends TokenOverridable { | ||
| list_id: string; | ||
| limit?: number; | ||
| cursor?: string; | ||
| archived?: boolean; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.items.update | ||
| export interface SlackListsItemsUpdateArguments extends TokenOverridable { | ||
| list_id: string; | ||
| cells: Array<Record<string, unknown>>; | ||
| } | ||
|
|
||
| // https://docs.slack.dev/reference/methods/slackLists.update | ||
| export interface SlackListsUpdateArguments extends TokenOverridable { | ||
| id: string; | ||
| name?: string; | ||
| description_blocks?: Array<RichTextBlock>; | ||
| todo_mode?: boolean; | ||
| } | ||
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsAccessDeleteResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsAccessDeleteResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsAccessSetResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsAccessSetResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsCreateResponse.ts
srtaalej marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsCreateResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsDownloadGetResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsDownloadGetResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsDownloadStartResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsDownloadStartResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsItemsCreateResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsItemsCreateResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsItemsDeleteMultipleResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsItemsDeleteMultipleResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsItemsDeleteResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsItemsDeleteResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsItemsInfoResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsItemsInfoResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsItemsListResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsItemsListResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsItemsUpdateResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsItemsUpdateResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
10 changes: 10 additions & 0 deletions
10
packages/web-api/src/types/response/SlackListsUpdateResponse.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { WebAPICallResult } from '../../WebClient'; | ||
|
|
||
| export type SlackListsUpdateResponse = WebAPICallResult & { | ||
| channel?: string; | ||
| error?: string; | ||
| needed?: string; | ||
| ok?: boolean; | ||
| provided?: string; | ||
| ts?: string; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.