/** * Freshworks CRM Node - Version 1 * Discriminator: resource=deal, operation=update */ interface Credentials { freshworksCrmApi: CredentialReference; } /** Update an account */ export type FreshworksCrmV1DealUpdateParams = { resource: 'deal'; operation: 'update'; /** * ID of the deal to update */ dealId?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** Value of the deal * @default 0 */ amount?: number | Expression; /** Value of the deal in base currency * @default 0 */ base_currency_amount?: number | Expression; /** ID of the campaign that landed this deal. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ campaign_id?: string | Expression; /** ID of the currency that the deal belongs to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ currency_id?: string | Expression; /** ID of the mode of payment for the deal. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ deal_payment_status_id?: string | Expression; /** ID of the deal pipeline that it belongs to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ deal_pipeline_id?: string | Expression; /** ID of the product that the deal belongs to (in a multi-product company). Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ deal_product_id?: string | Expression; /** ID of the reason for losing the deal. Can only be set if the deal is in 'Lost' stage. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ deal_reason_id?: string | Expression; /** ID of the deal stage that the deal belongs to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ deal_stage_id?: string | Expression; /** ID of the deal type that the deal belongs to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ deal_type_id?: string | Expression; /** ID of the source where deal came from */ lead_source_id?: string | Expression | PlaceholderValue; /** Name of the deal */ name?: string | Expression | PlaceholderValue; /** ID of the user to whom the deal is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ owner_id?: string | Expression; /** Probability of winning the deal as a number between 0 and 100 * @default 0 */ probability?: number | Expression; /** ID of the account that the deal belongs to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ sales_account_id?: string | Expression; /** ID of the territory that the deal belongs to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ territory_id?: string | Expression; }; }; export type FreshworksCrmV1DealUpdateNode = { type: 'n8n-nodes-base.freshworksCrm'; version: 1; credentials?: Credentials; config: NodeConfig; };