/** * Salesmate Node - Version 1 * Discriminator: resource=deal, operation=create */ interface Credentials { salesmateApi: CredentialReference; } /** Create a company */ export type SalesmateV1DealCreateParams = { resource: 'deal'; operation: 'create'; /** * 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; /** * Primary contact for the deal. 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?: 'New (Untouched)' | 'Contacted' | 'Qualified' | 'In Negotiation' | 'Proposal Presented' | Expression; /** * Currency */ currency?: string | Expression | PlaceholderValue; /** * Whether the data should include the fields details * @default false */ rawData?: boolean | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** 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 SalesmateV1DealCreateNode = { type: 'n8n-nodes-base.salesmate'; version: 1; credentials?: Credentials; config: NodeConfig; };