biketag-vue
Version:
<h1 align=center>BikeTag-Vue</h1> <div align="center"> <img alt="biketag-vue logo" src="https://raw.githubusercontent.com/keneucker/biketag-website/production/public/img/Tag-Logo-Stacked-V2-medium.png" height="auto" width="200" style="border-radius:25%;">
63 lines (62 loc) • 4.24 kB
TypeScript
import { Game, Tag } from 'biketag/dist/common/schema';
import { BikeTagProfile, BiketagQueueFormSteps, DomainInfo } from '.';
export declare const stringifyNumber: (n: number) => string;
export declare const ordinalSuffixOf: (n: number) => string;
export declare const getImageSized: (imageSourceOrUrl?: "aws" | "imgur" | "sanity" | string, imageUrlOrSize?: string, size?: "s" | "m" | "l" | "o" | undefined) => string;
export declare const getS3ImageSized: (imageUrl?: string, size?: "small" | "medium" | "original") => string;
export declare const getImgurImageSized: (imgurUrl?: string, size?: string) => string;
export declare const getDomainInfo: (req: any) => DomainInfo;
export declare const getTagDate: (time: number) => Date;
export declare const getTagDateISOPlusOffset: (time: number, offset?: string) => string;
export declare const getTagDateISOFromTimezone: (time: number, tz?: string) => string;
export declare const getBikeTagClientOpts: (win?: Window, withToken?: boolean) => {
game: string | null;
clientKey: string | null;
imgur: {
clientId: string | null;
accessToken: string | null;
rapidApiKey: string | null;
refreshToken: string | null | undefined;
};
sanity: {
projectId: string;
dataset: string;
};
aws: {
accessKeyId: string | null;
secretAccessKey: string | null;
};
};
export declare const setRegionPolygonInCookie: (regionPolygon: any, regionPolygonCookieKey?: string) => any;
export declare const getRegionPolygonFromCookie: (regionPolygonCookieKey?: string) => any;
export declare const getTokenFromCookie: (tokenCookieKey?: string) => string;
export declare const setTokenInCookie: (token: string, tokenCookieKey?: string) => string;
export declare const getProfileFromCookie: (profileCookieKey?: string) => BikeTagProfile;
export declare const setProfileCookie: (profile?: BikeTagProfile, profileCookieKey?: string) => boolean;
export declare const getQueuedTagFromCookie: (queuedTagCookieKey?: string) => Tag | undefined;
export declare const setQueuedTagInCookie: (queuedTag?: Tag, queuedTagCookieKey?: string) => boolean;
export declare const encodeBikeTagString: (basic: string) => string;
export declare const decodeBikeTagString: (encoded: string) => any;
export declare const getMostRecentlyViewedBikeTagTagnumber: (currentTagnumber: number, mostRecentCookieKey?: string) => number;
export declare const sendNetlifyError: (message: any, then?: (value: Response) => Response | PromiseLike<Response>, action?: string) => Promise<Response>;
export declare const sendNetlifyForm: (action: string, body: any, then: (value: Response) => Response | PromiseLike<Response>, error?: (message: any, then?: (value: Response) => Response | PromiseLike<Response>, action?: string) => Promise<Response>) => Promise<Response>;
export declare const GetQueryString: (win: Window, name: string) => string | null;
export declare const getQueryParam: (win: Window, param: string) => string | null;
export declare const getQueuedTagState: (queuedTag: Tag) => BiketagQueueFormSteps;
export declare const getSupportedGames: (games: Game[]) => Game[];
export declare const getSanityImageActualSize: (logo: string) => string;
export declare const getSanityImageResizedSize: (logo: string) => string;
export declare const getSanityImageUrl: (logo: string, size?: string, sanityBaseCDNUrl?: string, squared?: boolean) => string;
export declare const getApiUrl: (path?: string) => string;
export declare const exportHtmlToDownload: (filename: string, node?: any, selector?: string) => any;
export declare const debug: (message: string, context?: any, level?: "log" | "info" | "warn" | "error") => void;
export declare const feetToKm: (feets: number) => number;
export declare const isPointInPolygon: (geojson: any, gps: {
lng: number;
lat: number;
}, distanceOffInFeet: number) => boolean;
export declare const isOnline: (checkExternally?: boolean) => Promise<boolean>;
export declare const isAuthenticationEnabled: () => boolean;
export declare const isGmapsEnabled: () => boolean;
export declare const dequeueErrorNotify: (toast: any) => (error: string) => any;
export declare const getBannedIPs: () => Promise<any>;