mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(core): Optionally return full rows from Data Table inserts (no-changelog) (#18657)
This commit is contained in:
@@ -74,6 +74,7 @@ export type DataStoreColumnJsType = string | number | boolean | Date;
|
||||
|
||||
export type DataStoreRow = Record<string, DataStoreColumnJsType | null>;
|
||||
export type DataStoreRows = DataStoreRow[];
|
||||
export type DataStoreRowWithId = DataStoreRow & { id: number };
|
||||
|
||||
// APIs for a data store service operating on a specific projectId
|
||||
export interface IDataStoreProjectAggregateService {
|
||||
@@ -101,7 +102,7 @@ export interface IDataStoreProjectService {
|
||||
dto: Partial<ListDataStoreRowsOptions>,
|
||||
): Promise<{ count: number; data: DataStoreRows }>;
|
||||
|
||||
insertRows(rows: DataStoreRows): Promise<number[]>;
|
||||
insertRows(rows: DataStoreRows): Promise<Array<{ id: number }>>;
|
||||
|
||||
upsertRows(options: UpsertDataStoreRowsOptions): Promise<boolean>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user