mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
refactor(server): shared links (#1385)
* refactor(server): shared links * chore: tests * fix: bugs and tests * fix: missed one expired at * fix: standardize file upload checks * test: lower flutter version Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
f64db3a2f9
commit
8f304b8157
70 changed files with 1481 additions and 1057 deletions
16
web/src/api/open-api/api.ts
generated
16
web/src/api/open-api/api.ts
generated
|
|
@ -658,7 +658,7 @@ export interface CreateAlbumShareLinkDto {
|
|||
* @type {string}
|
||||
* @memberof CreateAlbumShareLinkDto
|
||||
*/
|
||||
'expiredAt'?: string;
|
||||
'expiresAt'?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
|
@ -701,7 +701,7 @@ export interface CreateAssetsShareLinkDto {
|
|||
* @type {string}
|
||||
* @memberof CreateAssetsShareLinkDto
|
||||
*/
|
||||
'expiredAt'?: string;
|
||||
'expiresAt'?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
|
@ -1004,7 +1004,7 @@ export interface EditSharedLinkDto {
|
|||
* @type {string}
|
||||
* @memberof EditSharedLinkDto
|
||||
*/
|
||||
'expiredAt'?: string;
|
||||
'expiresAt'?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
|
@ -1023,12 +1023,6 @@ export interface EditSharedLinkDto {
|
|||
* @memberof EditSharedLinkDto
|
||||
*/
|
||||
'showExif'?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof EditSharedLinkDto
|
||||
*/
|
||||
'isEditExpireTime'?: boolean;
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
|
@ -6745,7 +6739,7 @@ export const ShareApiFp = function(configuration?: Configuration) {
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
||||
async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
|
|
@ -6800,7 +6794,7 @@ export const ShareApiFactory = function (configuration?: Configuration, basePath
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
removeSharedLink(id: string, options?: any): AxiosPromise<string> {
|
||||
removeSharedLink(id: string, options?: any): AxiosPromise<void> {
|
||||
return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue