2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-08-04 08:23:06 -07:00
|
|
|
|
|
|
|
export class TwakeServerApi implements ICredentialType {
|
|
|
|
name = 'twakeServerApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-08-21 05:22:42 -07:00
|
|
|
displayName = 'Twake Server API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2023-11-13 03:11:16 -08:00
|
|
|
icon = 'file:icons/Twake.png';
|
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'twake';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2023-11-13 03:11:16 -08:00
|
|
|
httpRequestNode = {
|
|
|
|
name: 'Twake Server',
|
|
|
|
docsUrl: 'https://doc.twake.app/developers-api/home',
|
|
|
|
apiBaseUrl: '',
|
|
|
|
};
|
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-08-04 08:23:06 -07:00
|
|
|
{
|
|
|
|
displayName: 'Host URL',
|
|
|
|
name: 'hostUrl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-04 08:23:06 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Public ID',
|
|
|
|
name: 'publicId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-04 08:23:06 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Private API Key',
|
|
|
|
name: 'privateApiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2023-08-01 04:08:25 -07:00
|
|
|
typeOptions: { password: true },
|
2020-08-04 08:23:06 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|