n8n/packages/nodes-base/nodes/Airtable/v2/helpers/interfaces.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
415 B
TypeScript
Raw Normal View History

2023-07-17 09:42:30 -07:00
import type { IDataObject } from 'n8n-workflow';
export interface IAttachment {
url: string;
filename: string;
type: string;
}
export interface IRecord {
fields: {
[key: string]: string | IAttachment[];
};
}
export type UpdateRecord = {
fields: IDataObject;
id?: string;
};
export type UpdateBody = {
records: UpdateRecord[];
performUpsert?: {
fieldsToMergeOn: string[];
};
typecast?: boolean;
};