n8n-nodes-base
Version:
Base nodes of n8n
95 lines • 3.9 kB
TypeScript
import type { IExecuteFunctions, ICredentialsDecrypted, ICredentialTestFunctions, ILoadOptionsFunctions, INodeCredentialTestResult, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
export declare class Zammad implements INodeType {
description: INodeTypeDescription;
methods: {
loadOptions: {
loadGroupCustomFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadOrganizationCustomFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadUserCustomFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadTicketCustomFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadGroupFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadOrganizationFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadTicketFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
loadUserFields(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
/**
* POST /tickets requires group name instead of group ID.
*/
loadGroupNames(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
/**
* PUT /users requires organization name instead of organization ID.
*/
loadOrganizationNames(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
/**
* POST /tickets requires customer email instead of customer ID.
*/
loadCustomerEmails(this: ILoadOptionsFunctions): Promise<{
name: string;
value: string;
}[]>;
/**
* PUT /tickets requires customer ID instead of customer email.
* Zammad API constraint: Any listings will return users own information only. -> https://docs.zammad.org/en/latest/api/user.html
*/
loadCustomerIds(this: ILoadOptionsFunctions): Promise<{
name: string;
value: number;
}[]>;
loadGroups(this: ILoadOptionsFunctions): Promise<{
name: string;
value: number;
}[]>;
loadOrganizations(this: ILoadOptionsFunctions): Promise<{
name: string;
value: number;
}[]>;
loadUsers(this: ILoadOptionsFunctions): Promise<{
name: string;
value: number;
}[]>;
loadTicketStates(this: ILoadOptionsFunctions): Promise<{
name: string;
value: number;
}[]>;
loadTicketPriorities(this: ILoadOptionsFunctions): Promise<{
name: string;
value: number;
}[]>;
};
credentialTest: {
zammadBasicAuthApiTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult>;
zammadTokenAuthApiTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult>;
};
};
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
}
//# sourceMappingURL=Zammad.node.d.ts.map