2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-11-10 10:15:56 -08:00
|
|
|
|
|
|
|
export class GotifyApi implements ICredentialType {
|
|
|
|
name = 'gotifyApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-11-10 10:15:56 -08:00
|
|
|
displayName = 'Gotify API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-11-11 06:46:52 -08:00
|
|
|
documentationUrl = 'gotify';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-11-10 10:15:56 -08:00
|
|
|
{
|
2020-11-10 10:16:35 -08:00
|
|
|
displayName: 'App API Token',
|
2020-11-10 10:15:56 -08:00
|
|
|
name: 'appApiToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-11-10 10:15:56 -08:00
|
|
|
default: '',
|
2022-04-13 23:32:27 -07:00
|
|
|
description: '(Optional) Needed for message creation',
|
2020-11-10 10:15:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Client API Token',
|
|
|
|
name: 'clientApiToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-11-10 10:15:56 -08:00
|
|
|
default: '',
|
2022-04-13 23:32:27 -07:00
|
|
|
description: '(Optional) Needed for everything (delete, getAll) but message creation',
|
2020-11-10 10:15:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'URL',
|
|
|
|
name: 'url',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-11-10 10:16:35 -08:00
|
|
|
default: '',
|
2022-04-13 23:32:27 -07:00
|
|
|
description: 'The URL of the Gotify host',
|
2020-11-10 10:15:56 -08:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|