n8n/packages/nodes-base/nodes/Google/BigQuery/v2/helpers/interfaces.ts

32 lines
525 B
TypeScript
Raw Normal View History

import type { IDataObject } from 'n8n-workflow';
export type SchemaField = {
name: string;
type: string;
mode: string;
fields?: SchemaField[];
};
export type TableSchema = {
fields: SchemaField[];
};
export type TableRawData = {
f: Array<{ v: IDataObject | TableRawData }>;
};
export type JobReference = {
projectId: string;
jobId: string;
location: string;
};
export type JobInsertResponse = {
kind: string;
id: string;
jobReference: JobReference;
status: {
state: 'PENDING' | 'RUNNING' | 'DONE';
};
};