first commit
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user