n8n-nodes-base
Version:
Base nodes of n8n
72 lines (68 loc) • 1.76 kB
text/typescript
/**
* Agile CRM Node - Version 1
* Discriminator: resource=deal, operation=update
*/
interface Credentials {
agileCrmApi: CredentialReference;
}
/** Update contact properties */
export type AgileCrmV1DealUpdateParams = {
resource: 'deal';
operation: 'update';
/**
* ID of deal to update
*/
dealId?: string | Expression<string> | PlaceholderValue;
/**
* JSON Parameters
* @default false
*/
jsonParameters?: boolean | Expression<boolean>;
/**
* Object of values to set as described <a href="https://github.com/agilecrm/rest-api#1-deals---companies-api">here</a>
* @displayOptions.show { jsonParameters: [true] }
*/
additionalFieldsJson?: IDataObject | string | Expression<string>;
/**
* Additional Fields
* @displayOptions.show { jsonParameters: [false] }
* @default {}
*/
additionalFields?: {
/** Expected Value of deal
*/
expectedValue?: number | Expression<number>;
/** Name of deal
*/
name?: string | Expression<string> | PlaceholderValue;
/** Expected Value of deal
* @default 50
*/
probability?: number | Expression<number>;
/** Unique contact identifiers
* @default []
*/
contactIds?: string | Expression<string> | PlaceholderValue;
/** Custom Data
* @default {}
*/
customData?: {
/** Property
*/
customProperty?: Array<{
/** Property name
*/
name?: string | Expression<string> | PlaceholderValue;
/** Property value
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
};
};
export type AgileCrmV1DealUpdateNode = {
type: 'n8n-nodes-base.agileCrm';
version: 1;
credentials?: Credentials;
config: NodeConfig<AgileCrmV1DealUpdateParams>;
};