@slack/web-api
Advanced tools
Comparing version 5.9.0 to 5.10.0
/// <reference types="node" /> | ||
import { Stream } from 'stream'; | ||
import { Dialog, View, KnownBlock, Block, MessageAttachment, LinkUnfurls } from '@slack/types'; | ||
import { Dialog, View, KnownBlock, Block, MessageAttachment, LinkUnfurls, CallUser } from '@slack/types'; | ||
import { WebAPICallOptions, WebAPICallResult } from './WebClient'; | ||
@@ -188,2 +188,29 @@ /** | ||
} | ||
export interface CallsAddArguments extends WebAPICallOptions, TokenOverridable { | ||
external_unique_id: string; | ||
join_url: string; | ||
created_by?: string; | ||
date_start?: number; | ||
desktop_app_join_url?: string; | ||
external_display_id?: string; | ||
title?: string; | ||
users?: CallUser[]; | ||
} | ||
export interface CallsEndArguments extends WebAPICallOptions, TokenOverridable { | ||
id: string; | ||
duration?: number; | ||
} | ||
export interface CallsInfoArguments extends WebAPICallOptions, TokenOverridable { | ||
id: string; | ||
} | ||
export interface CallsUpdateArguments extends WebAPICallOptions, TokenOverridable { | ||
id: string; | ||
join_url?: string; | ||
desktop_app_join_url?: string; | ||
title?: string; | ||
} | ||
export interface CallsParticipantsAddArguments extends WebAPICallOptions, TokenOverridable { | ||
id: string; | ||
users: CallUser[]; | ||
} | ||
export interface ChannelsArchiveArguments extends WebAPICallOptions, TokenOverridable { | ||
@@ -190,0 +217,0 @@ channel: string; |
@@ -175,2 +175,14 @@ /// <reference types="node" /> | ||
/** | ||
* calls method family | ||
*/ | ||
readonly calls: { | ||
add: Method<methods.CallsAddArguments>; | ||
end: Method<methods.CallsEndArguments>; | ||
info: Method<methods.CallsInfoArguments>; | ||
update: Method<methods.CallsUpdateArguments>; | ||
participants: { | ||
add: Method<methods.CallsParticipantsAddArguments>; | ||
}; | ||
}; | ||
/** | ||
* channels method family | ||
@@ -177,0 +189,0 @@ */ |
@@ -152,2 +152,14 @@ "use strict"; | ||
/** | ||
* calls method family | ||
*/ | ||
this.calls = { | ||
add: (this.apiCall.bind(this, 'calls.add')), | ||
end: (this.apiCall.bind(this, 'calls.end')), | ||
info: (this.apiCall.bind(this, 'calls.info')), | ||
update: (this.apiCall.bind(this, 'calls.update')), | ||
participants: { | ||
add: (this.apiCall.bind(this, 'calls.participants.add')), | ||
}, | ||
}; | ||
/** | ||
* channels method family | ||
@@ -154,0 +166,0 @@ */ |
{ | ||
"name": "@slack/web-api", | ||
"version": "5.9.0", | ||
"version": "5.10.0", | ||
"description": "Official library for using the Slack Platform's Web API", | ||
@@ -45,3 +45,3 @@ "author": "Slack Technologies, Inc.", | ||
"@slack/logger": ">=1.0.0 <3.0.0", | ||
"@slack/types": "^1.2.1", | ||
"@slack/types": "^1.7.0", | ||
"@types/is-stream": "^1.1.0", | ||
@@ -48,0 +48,0 @@ "@types/node": ">=8.9.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184088
2479
Updated@slack/types@^1.7.0