feat(web): timeline bucket for albums (4) (#3604)

* feat: server changes for album timeline

* feat(web): album timeline view

* chore: open api

* chore: remove archive action

* fix: favorite for non-owners
This commit is contained in:
Jason Rasmussen 2023-08-11 12:00:51 -04:00 committed by GitHub
parent 36dc7bd924
commit 5cd13227ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 1014 additions and 757 deletions

View file

@ -216,6 +216,18 @@ export interface AlbumResponseDto {
* @memberof AlbumResponseDto
*/
'description': string;
/**
*
* @type {string}
* @memberof AlbumResponseDto
*/
'endDate'?: string;
/**
*
* @type {boolean}
* @memberof AlbumResponseDto
*/
'hasSharedLink': boolean;
/**
*
* @type {string}
@ -252,6 +264,12 @@ export interface AlbumResponseDto {
* @memberof AlbumResponseDto
*/
'sharedUsers': Array<UserResponseDto>;
/**
*
* @type {string}
* @memberof AlbumResponseDto
*/
'startDate'?: string;
/**
*
* @type {string}
@ -3899,11 +3917,12 @@ export const AlbumApiAxiosParamCreator = function (configuration?: Configuration
/**
*
* @param {string} id
* @param {boolean} [withoutAssets]
* @param {string} [key]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAlbumInfo: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('getAlbumInfo', 'id', id)
const localVarPath = `/album/{id}`
@ -3928,6 +3947,10 @@ export const AlbumApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
if (withoutAssets !== undefined) {
localVarQueryParameter['withoutAssets'] = withoutAssets;
}
if (key !== undefined) {
localVarQueryParameter['key'] = key;
}
@ -4198,12 +4221,13 @@ export const AlbumApiFp = function(configuration?: Configuration) {
/**
*
* @param {string} id
* @param {boolean} [withoutAssets]
* @param {string} [key]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getAlbumInfo(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, key, options);
async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@ -4311,7 +4335,7 @@ export const AlbumApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
@ -4442,6 +4466,13 @@ export interface AlbumApiGetAlbumInfoRequest {
*/
readonly id: string
/**
*
* @type {boolean}
* @memberof AlbumApiGetAlbumInfo
*/
readonly withoutAssets?: boolean
/**
*
* @type {string}
@ -4603,7 +4634,7 @@ export class AlbumApi extends BaseAPI {
* @memberof AlbumApi
*/
public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
}
/**