tsv2-library 1.0.61-alpha.13 → 1.0.61-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/utils/getImageURL.util.d.ts +11 -2
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/tsv2-library.es.js +1947 -1912
- package/dist/tsv2-library.umd.js +62 -62
- package/package.json +1 -1
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export
|
|
1
|
+
export declare const buildFileURL: (name: string, width?: number, height?: number) => string;
|
|
2
|
+
export declare const fetchBlobFile: (url: string, token: string) => Promise<Blob>;
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param fileUrl The full URL
|
|
6
|
+
* @param fileName Custom File name
|
|
7
|
+
* @param immediateRevoke Immediately revoke the object URL after download - default to true
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const downloadFile: (fileUrl: string, fileName: string, immediateRevoke?: boolean) => Promise<string>;
|
|
11
|
+
export declare const getImageURL: (name?: string | null, width?: number, height?: number, returnURLOnly?: boolean) => Promise<string | undefined>;
|
|
@@ -3,7 +3,7 @@ import handleTokenExpiration from './handleTokenExpiration.util';
|
|
|
3
3
|
import exportToExcel from './exportToExcel.util';
|
|
4
4
|
import { formatGoDate, formatDate, formatDateReadable, getUserLocale } from './date.util';
|
|
5
5
|
import useToast from './toast.util';
|
|
6
|
-
import getImageURL from './getImageURL.util';
|
|
6
|
+
import { getImageURL } from './getImageURL.util';
|
|
7
7
|
import { getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasAnyMonitoringReportRole, hasMonitoringReportRole, hasStaffRole } from './role.util';
|
|
8
8
|
import { getCurrency, formatCurrency } from './currency.util';
|
|
9
9
|
import { unListenSidebarChanges, listenSidebarChanges } from './listenSidebarChanges.util';
|