refactor: Enable cred-class-field-properties-assertion (no-changelog) (#6908)

This commit is contained in:
Iván Ovejero
2023-08-10 15:28:03 +02:00
committed by GitHub
parent 7f0db60f15
commit 6f48593134
8 changed files with 31 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
NodePropertyTypes,
INodeProperties,
} from 'n8n-workflow';
export class KoBoToolboxApi implements ICredentialType {
@@ -13,17 +13,18 @@ export class KoBoToolboxApi implements ICredentialType {
// See https://support.kobotoolbox.org/api.html
documentationUrl = 'koBoToolbox';
properties = [
properties: INodeProperties[] = [
{
displayName: 'API Root URL',
name: 'URL',
type: 'string' as NodePropertyTypes,
type: 'string',
default: 'https://kf.kobotoolbox.org/',
},
{
displayName: 'API Token',
name: 'token',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: { password: true },
default: '',
hint: 'You can get your API token at https://[api-root]/token/?format=json (for a logged in user)',
},