n8n-nodes-base
Version:
Base nodes of n8n
44 lines (39 loc) • 1.29 kB
text/typescript
/**
* Microsoft Teams Node - Version 2
* Discriminator: resource=channel, operation=get
*/
interface Credentials {
microsoftTeamsOAuth2Api: CredentialReference;
}
/** Get a channel */
export type MicrosoftTeamsV2ChannelGetParams = {
resource: 'channel';
operation: 'get';
/**
* Select the team from the list, by URL, or by ID (the ID is the "groupId" parameter in the URL you get from "Get a link to the team")
* @default {"mode":"list","value":""}
*/
teamId?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
/**
* Select the channel from the list, by URL, or by ID (the ID is the "threadId" in the URL)
* @default {"mode":"list","value":""}
*/
channelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
};
export type MicrosoftTeamsV2ChannelGetOutput = {
'@odata.context'?: string;
createdDateTime?: string;
displayName?: string;
id?: string;
isArchived?: boolean;
membershipType?: string;
tenantId?: string;
webUrl?: string;
};
export type MicrosoftTeamsV2ChannelGetNode = {
type: 'n8n-nodes-base.microsoftTeams';
version: 2;
credentials?: Credentials;
config: NodeConfig<MicrosoftTeamsV2ChannelGetParams>;
output?: Items<MicrosoftTeamsV2ChannelGetOutput>;
};