2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-12-06 09:04:50 -08:00
|
|
|
|
|
|
|
export class FlowApi implements ICredentialType {
|
|
|
|
name = 'flowApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2019-12-06 09:04:50 -08:00
|
|
|
displayName = 'Flow API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'flow';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-12-09 03:07:48 -08:00
|
|
|
{
|
|
|
|
displayName: 'Organization ID',
|
|
|
|
name: 'organizationId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2019-12-09 03:07:48 -08:00
|
|
|
default: 0,
|
|
|
|
},
|
2019-12-06 09:04:50 -08:00
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2019-12-06 09:04:50 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|