n8n-nodes-base
Version:
Base nodes of n8n
65 lines (61 loc) • 2.28 kB
text/typescript
/**
* Harvest Node - Version 1
* Discriminator: resource=estimate, operation=create
*/
interface Credentials {
harvestApi: CredentialReference;
harvestOAuth2Api: CredentialReference;
}
/** Create a client */
export type HarvestV1EstimateCreateParams = {
resource: 'estimate';
operation: 'create';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
accountId?: string | Expression<string>;
/**
* The ID of the client this estimate belongs to
*/
clientId?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies
*/
currency?: string | Expression<string> | PlaceholderValue;
/** This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.
*/
over_budget_notification_percentage?: string | Expression<string> | PlaceholderValue;
/** Date the invoice was issued. Defaults to today’s date.
*/
issue_date?: string | Expression<string>;
/** Any additional notes to include on the estimate
*/
notes?: string | Expression<string> | PlaceholderValue;
/** If no value is set, the number will be automatically generated
*/
number?: string | Expression<string> | PlaceholderValue;
/** The purchase order number
*/
purchase_order?: string | Expression<string> | PlaceholderValue;
/** The estimate subject
*/
subject?: string | Expression<string> | PlaceholderValue;
/** This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.
*/
tax?: string | Expression<string> | PlaceholderValue;
/** This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.
*/
tax2?: string | Expression<string> | PlaceholderValue;
};
};
export type HarvestV1EstimateCreateNode = {
type: 'n8n-nodes-base.harvest';
version: 1;
credentials?: Credentials;
config: NodeConfig<HarvestV1EstimateCreateParams>;
};