UNPKG

sf-i-events

Version:
62 lines 3.29 kB
declare function createDiagonalPattern1(color: string): CanvasPattern | null; declare function createDiagonalPattern2(color: string): CanvasPattern | null; declare function createDiagonalPattern3(color: string): CanvasPattern | null; declare function readCookie(key: string): string; declare function callApi(url: string, data: string, authorization: any): Promise<unknown>; declare function callApiPresignedDelete(url: string): Promise<unknown>; declare function callApiPresignedGet(url: string): Promise<unknown>; declare function callApiPresigned(url: string, data: string): Promise<unknown>; declare function getRandomColor(): string; declare function isInteger(value: string): boolean; declare function clearListeners(old_element: HTMLElement): Node; declare function jsonObjectToHtml(json: any): string; declare function convertToCSV(arr: any[]): string; declare function parseCsv(csv: string): any; declare function titleCase(str: string): string; declare function alphabeticalSort(arr: string[]): string[]; declare function percentageString(val: number, valTotal: number): string; declare function getCurrentFiscal(): number; declare function getDateTimeStrings(unixTimestamp: number): string; declare function getUsermap(): any; declare function getProjectConfigHome(): any; declare function getProjectUsermap(): any; declare function setFeatures(features: any): void; declare function getFeatures(): any; export declare const downloadExcelFromCSV: (csvString: string, fileName: string | undefined, title: string, projectname: string) => void; declare function isJSONParsable(str: unknown): boolean; declare function isVisible(el: HTMLElement): boolean; declare function compareObjects(obj1: any, obj2: any): any; declare const exportFunctions: { callApiPresignedDelete: typeof callApiPresignedDelete; callApiPresignedGet: typeof callApiPresignedGet; callApiPresigned: typeof callApiPresigned; jsonObjectToHtml: typeof jsonObjectToHtml; clearListeners: typeof clearListeners; isInteger: typeof isInteger; callApi: typeof callApi; validateName: (name: string) => boolean; readCookie: typeof readCookie; timeSince: (date: number) => string; createDiagonalPattern1: typeof createDiagonalPattern1; createDiagonalPattern2: typeof createDiagonalPattern2; createDiagonalPattern3: typeof createDiagonalPattern3; getRandomColor: typeof getRandomColor; convertToCSV: typeof convertToCSV; parseCsv: typeof parseCsv; titleCase: typeof titleCase; alphabeticalSort: typeof alphabeticalSort; percentageString: typeof percentageString; getCurrentFiscal: typeof getCurrentFiscal; getDateTimeStrings: typeof getDateTimeStrings; getUsermap: typeof getUsermap; getProjectConfigHome: typeof getProjectConfigHome; setFeatures: typeof setFeatures; getFeatures: typeof getFeatures; getProjectUsermap: typeof getProjectUsermap; downloadExcelFromCSV: (csvString: string, fileName: string | undefined, title: string, projectname: string) => void; isJSONParsable: typeof isJSONParsable; isVisible: typeof isVisible; compareObjects: typeof compareObjects; }; export default exportFunctions; //# sourceMappingURL=util.d.ts.map