mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
5528698c31
* add zammad * ⚡ First pass * 👕 Fix lint * ⚡ Refactor user resource * ⚡ Refactor group resource * ⚡ Refactor ticket resource * ⚡ Minor improvements * ⚡ Set workaround for broken endpoints * 👕 Fix lint * ⚡ Fix credentials test * 📦 Update package-lock.json * ⚡ Change defaults for active * ⚡ Refactor creds * 👕 Fix lint * 📦 Update package-lock.json * ⚡ Make first and last name required * ⚡ Replace email with login * ⚡ Switch defaults to true * ⚡ Add custom fields to groups * ⚡ Add inactive entities to loaders * ⚡ Move email to optional fields * ⚡ Validate for empty article * 🔥 Remove `ticket:update` per feedback * 📦 Update package-lock.json * 🚚 Rename import * 👕 Fix lint * ⚡ Small improvements * ⚡ Improvements Co-authored-by: quansenB <inaki.breinbauer@gmail.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
37 lines
716 B
TypeScript
37 lines
716 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export class ZammadTokenAuthApi implements ICredentialType {
|
|
name = 'zammadTokenAuthApi';
|
|
displayName = 'Zammad Token Auth API';
|
|
documentationUrl = 'zammad';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Base URL',
|
|
name: 'baseUrl',
|
|
type: 'string',
|
|
default: '',
|
|
placeholder: 'https://n8n-helpdesk.zammad.com',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Access Token',
|
|
name: 'accessToken',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Ignore SSL Issues',
|
|
name: 'allowUnauthorizedCerts',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
];
|
|
}
|