rename PulbicAccessURL to PublicURL
This commit is contained in:
parent
90643627aa
commit
826f9a1b0f
|
@ -21,7 +21,7 @@ import {
|
||||||
EncryptedFileKey,
|
EncryptedFileKey,
|
||||||
RemoveFromCollectionRequest,
|
RemoveFromCollectionRequest,
|
||||||
CreatePublicAccessTokenRequest,
|
CreatePublicAccessTokenRequest,
|
||||||
PublicAccessURL,
|
PublicURL,
|
||||||
} from 'types/collection';
|
} from 'types/collection';
|
||||||
import {
|
import {
|
||||||
COLLECTION_SORT_BY,
|
COLLECTION_SORT_BY,
|
||||||
|
@ -600,7 +600,7 @@ export const createShareableURL = async (collection: Collection) => {
|
||||||
'X-Auth-Token': token,
|
'X-Auth-Token': token,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
return resp.data as PublicAccessURL;
|
return resp.data.result as PublicURL;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError(e, 'createShareableURL failed ');
|
logError(e, 'createShareableURL failed ');
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -17,10 +17,10 @@ export interface Collection {
|
||||||
keyDecryptionNonce: string;
|
keyDecryptionNonce: string;
|
||||||
isDeleted: boolean;
|
isDeleted: boolean;
|
||||||
isSharedCollection?: boolean;
|
isSharedCollection?: boolean;
|
||||||
publicURLs?: PublicAccessURL[];
|
publicURLs?: PublicURL[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PublicAccessURL {
|
export interface PublicURL {
|
||||||
url: string;
|
url: string;
|
||||||
deviceLimit: number;
|
deviceLimit: number;
|
||||||
validTill: number;
|
validTill: number;
|
||||||
|
|
Loading…
Reference in a new issue