2023-01-27 03:22:44 -08:00
|
|
|
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
|
2022-02-11 08:20:41 -08:00
|
|
|
|
|
|
|
export class LinearApi implements ICredentialType {
|
|
|
|
name = 'linearApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-02-11 08:20:41 -08:00
|
|
|
displayName = 'Linear API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-02-11 08:20:41 -08:00
|
|
|
documentationUrl = 'linear';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-02-11 08:20:41 -08:00
|
|
|
properties: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2022-02-11 08:20:41 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
2023-01-20 04:59:47 -08:00
|
|
|
|
|
|
|
authenticate: IAuthenticateGeneric = {
|
|
|
|
type: 'generic',
|
|
|
|
properties: {
|
|
|
|
headers: {
|
|
|
|
Authorization: '={{$credentials.apiKey}}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2022-02-11 08:20:41 -08:00
|
|
|
}
|