n8n-nodes-base
Version:
Base nodes of n8n
77 lines (72 loc) • 2.33 kB
text/typescript
/**
* HubSpot Node - Version 2.1
* Discriminator: resource=ticket, operation=getAll
*/
interface Credentials {
hubspotApi: CredentialReference;
hubspotAppToken: CredentialReference;
hubspotOAuth2Api: CredentialReference;
}
/** Get many contacts */
export type HubspotV21TicketGetAllParams = {
resource: 'ticket';
operation: 'getAll';
authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression<string>;
/**
* Whether to return all results or only up to a given limit
* @default false
*/
returnAll?: boolean | Expression<boolean>;
/**
* Max number of results to return
* @displayOptions.show { returnAll: [false] }
* @default 100
*/
limit?: number | Expression<number>;
/**
* Options
* @default {}
*/
additionalFields?: {
/** Whether to include specific Ticket properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
properties?: string[];
/** Works similarly to properties=, but this parameter will include the history for the specified property, instead of just including the current value. Use this parameter when you need the full history of changes to a property's value.
*/
propertiesWithHistory?: string | Expression<string> | PlaceholderValue;
};
};
export type HubspotV21TicketGetAllOutput = {
isDeleted?: boolean;
objectId?: number;
objectType?: string;
portalId?: number;
properties?: {
subject?: {
isEncrypted?: boolean;
sensitivityLevel?: string;
source?: string;
timestamp?: number;
value?: string;
versions?: Array<{
name?: string;
requestId?: string;
source?: string;
sourceId?: string;
sourceUpstreamDeployable?: string;
timestamp?: number;
updatedByUserId?: number;
useTimestampAsPersistenceTimestamp?: boolean;
value?: string;
}>;
};
};
};
export type HubspotV21TicketGetAllNode = {
type: 'n8n-nodes-base.hubspot';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<HubspotV21TicketGetAllParams>;
output?: Items<HubspotV21TicketGetAllOutput>;
};