/** * Salesmate Node - Version 1 * Discriminator: resource=deal, operation=update */ interface Credentials { salesmateApi: CredentialReference; } /** Update a company */ export type SalesmateV1DealUpdateParams = { resource: 'deal'; operation: 'update'; /** * Deal ID */ id?: string | Expression | PlaceholderValue; /** * Whether the data should include the fields details * @default false */ rawData?: boolean | Expression; /** * Update Fields * @default {} */ updateFields?: { /** Title */ title?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ owner?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ primaryContact?: string | Expression; /** Pipeline */ pipeline?: 'Sales' | Expression; /** Status * @default Open */ status?: 'Open' | 'Close' | 'Lost' | Expression; /** Stage */ stage?: 'Contacted' | 'In Negotiation' | 'New (Untouched)' | 'Proposal Presented' | 'Qualified' | Expression; /** Currency */ currency?: string | Expression | PlaceholderValue; /** This field contains details related to the deal */ description?: string | Expression | PlaceholderValue; /** This field contains tags associated with an deal */ tags?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ primaryCompany?: string | Expression; /** Source * @default Ads */ source?: 'Ads' | 'Referrals' | 'Website' | 'Word of mouth' | Expression; /** Estimated Close Date */ estimatedCloseDate?: string | Expression; /** Deal Value * @default 0 */ dealValue?: number | Expression; /** Priority * @default Medium */ priority?: 'High' | 'Medium' | 'Low' | Expression; }; }; export type SalesmateV1DealUpdateNode = { type: 'n8n-nodes-base.salesmate'; version: 1; credentials?: Credentials; config: NodeConfig; };