n8n-nodes-base
Version:
Base nodes of n8n
50 lines (46 loc) • 1.26 kB
text/typescript
/**
* Freshservice Node - Version 1
* Discriminator: resource=product, operation=create
*/
interface Credentials {
freshserviceApi: CredentialReference;
}
/** Create an agent */
export type FreshserviceV1ProductCreateParams = {
resource: 'product';
operation: 'create';
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
assetTypeId?: string | Expression<string>;
/**
* Name
*/
name?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** HTML supported
*/
description?: string | Expression<string> | PlaceholderValue;
/** Manufacturer
*/
manufacturer?: string | Expression<string> | PlaceholderValue;
/** Mode of Procurement
* @default Buy
*/
mode_of_procurement?: 'Buy' | 'Lease' | 'Both' | Expression<string>;
/** Status
* @default In Production
*/
status?: 'In Production' | 'In Pipeline' | 'Retired' | Expression<string>;
};
};
export type FreshserviceV1ProductCreateNode = {
type: 'n8n-nodes-base.freshservice';
version: 1;
credentials?: Credentials;
config: NodeConfig<FreshserviceV1ProductCreateParams>;
};