@webitel/api-services 0.0.85 → 0.0.86
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/package.json
CHANGED
|
@@ -79,7 +79,7 @@ export const downloadFile = (id) => {
|
|
|
79
79
|
document.body.removeChild(link);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export const
|
|
82
|
+
export const getMediaUrl = (id, isThumb = false) => {
|
|
83
83
|
const accessToken = localStorage.getItem('access-token'); // after auth token variable is null
|
|
84
84
|
const url = `${baseUrl}/storage/file/${id}/stream?access_token=${accessToken}&fetch_thumbnail=${isThumb}`;
|
|
85
85
|
return url;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const downloadMedia: (id: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2
2
|
export declare const downloadFile: (id: any) => void;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const getMediaUrl: (id: any, isThumb?: boolean) => string;
|
|
4
4
|
export declare const MediaAPI: {
|
|
5
5
|
getList: (params: any) => Promise<{
|
|
6
6
|
items: any;
|