n8n-nodes-base
Version:
Base nodes of n8n
71 lines (67 loc) • 1.97 kB
text/typescript
/**
* Zammad Node - Version 1
* Discriminator: resource=organization, operation=create
*/
interface Credentials {
zammadBasicAuthApi: CredentialReference;
zammadTokenAuthApi: CredentialReference;
}
/** Create a group */
export type ZammadV1OrganizationCreateParams = {
resource: 'organization';
operation: 'create';
authentication?: 'basicAuth' | 'tokenAuth' | Expression<string>;
/**
* Organization Name
*/
name?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Whether the organization is shared with other instances
* @default false
*/
shared?: boolean | Expression<boolean>;
/** The domain associated with the organization
*/
domain?: string | Expression<string> | PlaceholderValue;
/** Whether to assign users based on their email domain
* @default true
*/
domain_assignment?: boolean | Expression<boolean>;
/** Whether the organization is active
* @default true
*/
active?: boolean | Expression<boolean>;
/** Whether the organization is marked as VIP
* @default false
*/
vip?: boolean | Expression<boolean>;
/** A note about the organization
*/
note?: string | Expression<string> | PlaceholderValue;
/** Custom Fields
* @default {}
*/
customFieldsUi?: {
/** Custom Field
*/
customFieldPairs?: Array<{
/** Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
name?: string | Expression<string>;
/** Value to set on the custom field
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
};
};
export type ZammadV1OrganizationCreateNode = {
type: 'n8n-nodes-base.zammad';
version: 1;
credentials?: Credentials;
config: NodeConfig<ZammadV1OrganizationCreateParams>;
};