AIDK API Reference / aidk-server / ExecutionRepository
Interface: ExecutionRepository ​
Defined in: packages/server/src/types.ts:100
Methods ​
create() ​
ts
create(data: Omit<ExecutionEntity, "startedAt"> & {
startedAt?: Date;
}): Promise<ExecutionEntity>;Defined in: packages/server/src/types.ts:101
Parameters ​
| Parameter | Type |
|---|---|
data | Omit<ExecutionEntity, "startedAt"> & { startedAt?: Date; } |
Returns ​
Promise<ExecutionEntity>
findAll() ​
ts
findAll(params?: {
limit?: number;
offset?: number;
tenant_id?: string;
thread_id?: string;
user_id?: string;
}): Promise<ExecutionEntity[]>;Defined in: packages/server/src/types.ts:107
Parameters ​
| Parameter | Type |
|---|---|
params? | { limit?: number; offset?: number; tenant_id?: string; thread_id?: string; user_id?: string; } |
params.limit? | number |
params.offset? | number |
params.tenant_id? | string |
params.thread_id? | string |
params.user_id? | string |
Returns ​
Promise<ExecutionEntity[]>
findById() ​
ts
findById(id: string): Promise<ExecutionEntity | null>;Defined in: packages/server/src/types.ts:103
Parameters ​
| Parameter | Type |
|---|---|
id | string |
Returns ​
Promise<ExecutionEntity | null>
findByRootId() ​
ts
findByRootId(rootId: string): Promise<ExecutionEntity[]>;Defined in: packages/server/src/types.ts:106
Parameters ​
| Parameter | Type |
|---|---|
rootId | string |
Returns ​
Promise<ExecutionEntity[]>
findByThreadId() ​
ts
findByThreadId(threadId: string, limit?: number): Promise<ExecutionEntity[]>;Defined in: packages/server/src/types.ts:104
Parameters ​
| Parameter | Type |
|---|---|
threadId | string |
limit? | number |
Returns ​
Promise<ExecutionEntity[]>
findByUserId() ​
ts
findByUserId(userId: string, limit?: number): Promise<ExecutionEntity[]>;Defined in: packages/server/src/types.ts:105
Parameters ​
| Parameter | Type |
|---|---|
userId | string |
limit? | number |
Returns ​
Promise<ExecutionEntity[]>
update() ​
ts
update(id: string, updates: Partial<ExecutionEntity>): Promise<ExecutionEntity | null>;Defined in: packages/server/src/types.ts:102
Parameters ​
| Parameter | Type |
|---|---|
id | string |
updates | Partial<ExecutionEntity> |
Returns ​
Promise<ExecutionEntity | null>