UNPKG

@hokuto/jam-node

Version:

JAM Node TS, guardians and utils

24 lines (23 loc) 1.72 kB
import { PinResponse, MapCreateRequest, MapUpdateRequest, MapViewBoxRequest, MapShapeResponse, ImportMapDataRequest, MapRequest, Boundaries, MapPinRequest } from "@hokuto/jam-core"; import { SearchViewBoxApi } from "./fetch.js"; export declare const MapApi: { Search: SearchViewBoxApi<MapRequest, Partial<import("@hokuto/jam-core").MapSchema>, Partial<import("@hokuto/jam-core").MapFeatureSchema>>; Create: (args: MapCreateRequest) => Promise<Partial<import("@hokuto/jam-core").MapSchema>>; Read: (args: MapRequest) => Promise<Partial<import("@hokuto/jam-core").MapSchema>>; Update: (args: MapUpdateRequest) => Promise<Partial<import("@hokuto/jam-core").MapSchema>>; Delete: (args: MapRequest) => Promise<unknown>; Clone: (args: MapRequest) => Promise<Partial<import("@hokuto/jam-core").MapSchema>>; Export: (args: MapRequest) => Promise<Blob>; Import: (args: ImportMapDataRequest) => Promise<{ mapId: string; }>; Centroid: (args: MapViewBoxRequest) => Promise<import("@hokuto/jam-core").MapCentroidSchema>; Image: (args: MapViewBoxRequest, body?: Partial<import("@hokuto/jam-core").RequestOptions> | undefined) => Promise<Blob>; ImageUrl: (args: MapViewBoxRequest) => string; Label: (args: MapViewBoxRequest, body?: Partial<import("@hokuto/jam-core").RequestOptions> | undefined) => Promise<Blob>; LabelUrl: (args: MapViewBoxRequest) => string; Pin: (args: MapPinRequest) => Promise<PinResponse>; ViewBox: (args: MapViewBoxRequest) => Promise<Boundaries>; Shape: (args: MapViewBoxRequest) => Promise<MapShapeResponse>; Svg: (args: MapViewBoxRequest, body?: Partial<import("@hokuto/jam-core").RequestOptions> | undefined) => Promise<Blob>; };