n8n-nodes-base
Version:
Base nodes of n8n
71 lines (67 loc) • 2.07 kB
text/typescript
/**
* Zammad Node - Version 1
* Discriminator: resource=organization, operation=update
*/
interface Credentials {
zammadBasicAuthApi: CredentialReference;
zammadTokenAuthApi: CredentialReference;
}
/** Update a group */
export type ZammadV1OrganizationUpdateParams = {
resource: 'organization';
operation: 'update';
authentication?: 'basicAuth' | 'tokenAuth' | Expression<string>;
/**
* Organization to update. Specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
id?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** 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 ZammadV1OrganizationUpdateNode = {
type: 'n8n-nodes-base.zammad';
version: 1;
credentials?: Credentials;
config: NodeConfig<ZammadV1OrganizationUpdateParams>;
};