/** * Gong Node - Version 1 * Discriminator: resource=call, operation=getAll */ interface Credentials { gongApi: CredentialReference; gongOAuth2Api: CredentialReference; } /** Retrieve a list of calls */ export type GongV1CallGetAllParams = { resource: 'call'; operation: 'getAll'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * Filters * @default {} */ filters?: { /** Returns calls that started on or after the specified date and time. If not provided, list starts with earliest call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. */ fromDateTime?: string | Expression; /** Returns calls that started up to but excluding specified date and time. If not provided, list ends with most recent call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. */ toDateTime?: string | Expression; /** Return only the calls belonging to this workspace */ workspaceId?: string | Expression | PlaceholderValue; /** List of calls IDs to be filtered * @hint Comma separated list of IDs, array of strings can be set in expression */ callIds?: string | Expression | PlaceholderValue; /** Return only the calls hosted by the specified user * @default {"mode":"list","value":""} */ primaryUserIds?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; }; /** * Options * @default {} */ options?: { /** The Call properties to include in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. * @default [] */ properties?: Array<'parties' | 'topics'>; }; requestOptions?: { /** Batching * @default {"batch":{}} */ batching?: { /** Batching */ batch?: { /** Input will be split in batches to throttle requests. -1 for disabled. 0 will be treated as 1. * @default 50 */ batchSize?: number | Expression; /** Time (in milliseconds) between each batch of requests. 0 for disabled. * @default 1000 */ batchInterval?: number | Expression; }; }; /** Whether to accept the response even if SSL certificate validation is not possible * @default false */ allowUnauthorizedCerts?: boolean; /** HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128 */ proxy?: string | Expression | PlaceholderValue; /** Time in ms to wait for the server to send response headers (and start the response body) before aborting the request * @default 10000 */ timeout?: number | Expression; }; }; export type GongV1CallGetAllOutput = { customData?: null; direction?: string; duration?: number; id?: string; isPrivate?: boolean; language?: string; media?: string; meetingUrl?: string; primaryUserId?: string; purpose?: null; scheduled?: string; scope?: string; started?: string; system?: string; title?: string; url?: string; workspaceId?: string; }; export type GongV1CallGetAllNode = { type: 'n8n-nodes-base.gong'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };