@hokuto/jam-node
Version:
JAM Node TS, guardians and utils
80 lines (79 loc) • 3.04 kB
TypeScript
import { CoreApi, MapViewBoxRequest, AtlasViewBoxRequest, RequestOptions, OptionsType } from "@hokuto/jam-core";
import { ApiMethod } from "../types.js";
export declare function getImageParams<T extends OptionsType>(args: T, body?: Partial<RequestOptions>): {
headers: {
"Content-Type": string;
pin?: string | undefined;
projection?: string | undefined;
search?: string | undefined;
token?: string | undefined;
cacheControl?: string | undefined;
serverUrl?: string | undefined;
defaultStyle?: string | undefined;
featureStyle?: string | undefined;
labels?: string | undefined;
bgColor?: string | undefined;
alpha?: string | undefined;
styleId?: string | undefined;
margin?: string | undefined;
point?: string | undefined;
area?: string | undefined;
group?: string | undefined;
precision?: string | undefined;
atlas?: string | undefined;
};
method: ApiMethod;
params: Partial<RequestOptions> | undefined;
};
export declare function getMapImageParams<T extends MapViewBoxRequest>(urlFn: typeof CoreApi.Map.Image, args: T, body?: Partial<RequestOptions>): {
headers: {
"Content-Type": string;
pin?: string | undefined;
projection?: string | undefined;
search?: string | undefined;
token?: string | undefined;
cacheControl?: string | undefined;
serverUrl?: string | undefined;
defaultStyle?: string | undefined;
featureStyle?: string | undefined;
labels?: string | undefined;
bgColor?: string | undefined;
alpha?: string | undefined;
styleId?: string | undefined;
margin?: string | undefined;
point?: string | undefined;
area?: string | undefined;
group?: string | undefined;
precision?: string | undefined;
atlas?: string | undefined;
};
method: ApiMethod;
params: Partial<RequestOptions> | undefined;
url: string;
};
export declare function getAtlasImageParams<T extends AtlasViewBoxRequest>(urlFn: typeof CoreApi.Atlas.Image, args: T, body?: Partial<RequestOptions>): {
headers: {
"Content-Type": string;
pin?: string | undefined;
projection?: string | undefined;
search?: string | undefined;
token?: string | undefined;
cacheControl?: string | undefined;
serverUrl?: string | undefined;
defaultStyle?: string | undefined;
featureStyle?: string | undefined;
labels?: string | undefined;
bgColor?: string | undefined;
alpha?: string | undefined;
styleId?: string | undefined;
margin?: string | undefined;
point?: string | undefined;
area?: string | undefined;
group?: string | undefined;
precision?: string | undefined;
atlas?: string | undefined;
};
method: ApiMethod;
params: Partial<RequestOptions> | undefined;
url: string;
};