/**
 * 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<string> | PlaceholderValue;
/**
 * Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;
 */
    owner?: string | Expression<string>;
/**
 * Primary contact for the deal. Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;.
 */
    primaryContact?: string | Expression<string>;
/**
 * Pipeline
 */
    pipeline?: 'Sales' | Expression<string>;
/**
 * Status
 * @default Open
 */
    status?: 'Open' | 'Close' | 'Lost' | Expression<string>;
/**
 * Stage
 */
    stage?: 'New (Untouched)' | 'Contacted' | 'Qualified' | 'In Negotiation' | 'Proposal Presented' | Expression<string>;
/**
 * Currency
 */
    currency?: string | Expression<string> | PlaceholderValue;
/**
 * Whether the data should include the fields details
 * @default false
 */
    rawData?: boolean | Expression<boolean>;
/**
 * Additional Fields
 * @default {}
 */
    additionalFields?: {
    /** This field contains details related to the deal
     */
    description?: string | Expression<string> | PlaceholderValue;
    /** This field contains tags associated with an deal
     */
    tags?: string | Expression<string> | PlaceholderValue;
    /** Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;
     */
    primaryCompany?: string | Expression<string>;
    /** Source
     * @default Ads
     */
    source?: 'Ads' | 'Referrals' | 'Website' | 'Word of mouth' | Expression<string>;
    /** Estimated Close Date
     */
    estimatedCloseDate?: string | Expression<string>;
    /** Deal Value
     * @default 0
     */
    dealValue?: number | Expression<number>;
    /** Priority
     * @default Medium
     */
    priority?: 'High' | 'Medium' | 'Low' | Expression<string>;
  };
};

export type SalesmateV1DealCreateNode = {
  type: 'n8n-nodes-base.salesmate';
  version: 1;
  credentials?: Credentials;
  config: NodeConfig<SalesmateV1DealCreateParams>;
};