Files
update_field_api/node_modules/@arco/clarizen-lib/dist/objects.d.ts
T

18 lines
769 B
TypeScript
Raw Normal View History

2026-06-09 18:35:55 -03:00
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