18 lines
769 B
TypeScript
18 lines
769 B
TypeScript
|
|
import type { Entity, EntityId } from "./clarizen-api-types.js";
|
||
|
|
import type { HttpClient } from "./http.js";
|
||
|
|
import type { JsonObject } from "./types.js";
|
||
|
|
export declare function entityObjectPath(typeName: string, id?: string): string;
|
||
|
|
export interface EntityGetOptions {
|
||
|
|
fields?: string[];
|
||
|
|
}
|
||
|
|
export declare class EntityObjectsService {
|
||
|
|
private readonly http;
|
||
|
|
constructor(http: HttpClient);
|
||
|
|
get(typeName: string, id: EntityId, options?: EntityGetOptions): Promise<Entity>;
|
||
|
|
create(typeName: string, fields: JsonObject): Promise<{
|
||
|
|
id: EntityId;
|
||
|
|
}>;
|
||
|
|
update(typeName: string, id: EntityId, fields: JsonObject): Promise<JsonObject>;
|
||
|
|
delete(typeName: string, id: EntityId): Promise<JsonObject>;
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=objects.d.ts.map
|