n8n-nodes-base
Version:
Base nodes of n8n
86 lines (82 loc) • 2.35 kB
text/typescript
/**
* 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 <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
owner?: string | Expression<string>;
/**
* 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<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 <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
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>;
};