@adventurelabs/scout-core
Version:
Core utilities and helpers for Adventure Labs Scout applications
19 lines (18 loc) • 942 B
TypeScript
import { IZoneWithActions } from "../types/db";
import { IWebResponseCompatible } from "../types/requests";
/**
* Get more zones and actions for a herd
* @param herd_id - The ID of the herd to get zones and actions for
* @param offset - The offset to start the query from
* @param page_count - The number of zones and actions to return
* @returns A list of zones and actions
* @throws An error if the zones or actions are not fetched
*/
export declare function server_get_more_zones_and_actions_for_herd(herd_id: number, offset: number, page_count?: number): Promise<IWebResponseCompatible<IZoneWithActions[]>>;
/**
* Create zones and actions for a herd
* @param zones - The zones to create
* @returns A list of zones and actions
* @throws An error if the zones or actions are not created
*/
export declare function server_create_zones_with_actions(zones: IZoneWithActions[]): Promise<IWebResponseCompatible<IZoneWithActions[]>>;