|
@@ -4,7 +4,7 @@
|
|
|
* Immich
|
|
|
* Immich API
|
|
|
*
|
|
|
- * The version of the OpenAPI document: 1.84.0
|
|
|
+ * The version of the OpenAPI document: 1.85.0
|
|
|
*
|
|
|
*
|
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -209,43 +209,6 @@ export interface AddUsersDto {
|
|
|
*/
|
|
|
'sharedUserIds': Array<string>;
|
|
|
}
|
|
|
-/**
|
|
|
- *
|
|
|
- * @export
|
|
|
- * @interface AdminSignupResponseDto
|
|
|
- */
|
|
|
-export interface AdminSignupResponseDto {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'createdAt': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'email': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'firstName': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'id': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'lastName': string;
|
|
|
-}
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -331,6 +294,12 @@ export interface AlbumResponseDto {
|
|
|
* @memberof AlbumResponseDto
|
|
|
*/
|
|
|
'id': string;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {boolean}
|
|
|
+ * @memberof AlbumResponseDto
|
|
|
+ */
|
|
|
+ 'isActivityEnabled': boolean;
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -1855,7 +1824,7 @@ export interface ImportAssetDto {
|
|
|
* @type {boolean}
|
|
|
* @memberof ImportAssetDto
|
|
|
*/
|
|
|
- 'isFavorite': boolean;
|
|
|
+ 'isFavorite'?: boolean;
|
|
|
/**
|
|
|
*
|
|
|
* @type {boolean}
|
|
@@ -2255,6 +2224,20 @@ export interface MapMarkerResponseDto {
|
|
|
*/
|
|
|
'lon': number;
|
|
|
}
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @export
|
|
|
+ * @enum {string}
|
|
|
+ */
|
|
|
+
|
|
|
+export const MapTheme = {
|
|
|
+ Light: 'light',
|
|
|
+ Dark: 'dark'
|
|
|
+} as const;
|
|
|
+
|
|
|
+export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -2587,6 +2570,20 @@ export interface QueueStatusDto {
|
|
|
*/
|
|
|
'isPaused': boolean;
|
|
|
}
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @export
|
|
|
+ * @enum {string}
|
|
|
+ */
|
|
|
+
|
|
|
+export const ReactionLevel = {
|
|
|
+ Album: 'album',
|
|
|
+ Asset: 'asset'
|
|
|
+} as const;
|
|
|
+
|
|
|
+export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -2853,12 +2850,6 @@ export interface ServerConfigDto {
|
|
|
* @memberof ServerConfigDto
|
|
|
*/
|
|
|
'loginPageMessage': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof ServerConfigDto
|
|
|
- */
|
|
|
- 'mapTileUrl': string;
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -3726,6 +3717,12 @@ export interface SystemConfigMachineLearningDto {
|
|
|
* @interface SystemConfigMapDto
|
|
|
*/
|
|
|
export interface SystemConfigMapDto {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof SystemConfigMapDto
|
|
|
+ */
|
|
|
+ 'darkStyle': string;
|
|
|
/**
|
|
|
*
|
|
|
* @type {boolean}
|
|
@@ -3737,7 +3734,7 @@ export interface SystemConfigMapDto {
|
|
|
* @type {string}
|
|
|
* @memberof SystemConfigMapDto
|
|
|
*/
|
|
|
- 'tileUrl': string;
|
|
|
+ 'lightStyle': string;
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
@@ -4160,6 +4157,12 @@ export interface UpdateAlbumDto {
|
|
|
* @memberof UpdateAlbumDto
|
|
|
*/
|
|
|
'description'?: string;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {boolean}
|
|
|
+ * @memberof UpdateAlbumDto
|
|
|
+ */
|
|
|
+ 'isActivityEnabled'?: boolean;
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
@@ -5076,11 +5079,12 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
* @param {string} albumId
|
|
|
* @param {string} [assetId]
|
|
|
* @param {ReactionType} [type]
|
|
|
+ * @param {ReactionLevel} [level]
|
|
|
* @param {string} [userId]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getActivities: async (albumId: string, assetId?: string, type?: ReactionType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
// verify required parameter 'albumId' is not null or undefined
|
|
|
assertParamExists('getActivities', 'albumId', albumId)
|
|
|
const localVarPath = `/activity`;
|
|
@@ -5116,6 +5120,10 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
localVarQueryParameter['type'] = type;
|
|
|
}
|
|
|
|
|
|
+ if (level !== undefined) {
|
|
|
+ localVarQueryParameter['level'] = level;
|
|
|
+ }
|
|
|
+
|
|
|
if (userId !== undefined) {
|
|
|
localVarQueryParameter['userId'] = userId;
|
|
|
}
|
|
@@ -5216,12 +5224,13 @@ export const ActivityApiFp = function(configuration?: Configuration) {
|
|
|
* @param {string} albumId
|
|
|
* @param {string} [assetId]
|
|
|
* @param {ReactionType} [type]
|
|
|
+ * @param {ReactionLevel} [level]
|
|
|
* @param {string} [userId]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async getActivities(albumId: string, assetId?: string, type?: ReactionType, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, userId, options);
|
|
|
+ async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
/**
|
|
@@ -5270,7 +5279,7 @@ export const ActivityApiFactory = function (configuration?: Configuration, baseP
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
|
|
|
- return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
|
+ return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
@@ -5339,6 +5348,13 @@ export interface ActivityApiGetActivitiesRequest {
|
|
|
*/
|
|
|
readonly type?: ReactionType
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {ReactionLevel}
|
|
|
+ * @memberof ActivityApiGetActivities
|
|
|
+ */
|
|
|
+ readonly level?: ReactionLevel
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -5405,7 +5421,7 @@ export class ActivityApi extends BaseAPI {
|
|
|
* @memberof ActivityApi
|
|
|
*/
|
|
|
public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
|
|
|
- return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -6695,16 +6711,18 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
},
|
|
|
/**
|
|
|
* Get all AssetEntity belong to the user
|
|
|
+ * @param {number} [skip]
|
|
|
+ * @param {number} [take]
|
|
|
* @param {string} [userId]
|
|
|
* @param {boolean} [isFavorite]
|
|
|
* @param {boolean} [isArchived]
|
|
|
- * @param {number} [skip]
|
|
|
* @param {string} [updatedAfter]
|
|
|
+ * @param {string} [updatedBefore]
|
|
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
const localVarPath = `/asset`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6726,6 +6744,14 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
// http bearer authentication required
|
|
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
|
|
+ if (skip !== undefined) {
|
|
|
+ localVarQueryParameter['skip'] = skip;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (take !== undefined) {
|
|
|
+ localVarQueryParameter['take'] = take;
|
|
|
+ }
|
|
|
+
|
|
|
if (userId !== undefined) {
|
|
|
localVarQueryParameter['userId'] = userId;
|
|
|
}
|
|
@@ -6738,16 +6764,18 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
localVarQueryParameter['isArchived'] = isArchived;
|
|
|
}
|
|
|
|
|
|
- if (skip !== undefined) {
|
|
|
- localVarQueryParameter['skip'] = skip;
|
|
|
- }
|
|
|
-
|
|
|
if (updatedAfter !== undefined) {
|
|
|
localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
|
|
|
(updatedAfter as any).toISOString() :
|
|
|
updatedAfter;
|
|
|
}
|
|
|
|
|
|
+ if (updatedBefore !== undefined) {
|
|
|
+ localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
|
|
|
+ (updatedBefore as any).toISOString() :
|
|
|
+ updatedBefore;
|
|
|
+ }
|
|
|
+
|
|
|
if (ifNoneMatch != null) {
|
|
|
localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
|
|
|
}
|
|
@@ -7868,11 +7896,11 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
* @param {string} deviceId
|
|
|
* @param {string} fileCreatedAt
|
|
|
* @param {string} fileModifiedAt
|
|
|
- * @param {boolean} isFavorite
|
|
|
* @param {string} [key]
|
|
|
* @param {string} [duration]
|
|
|
* @param {boolean} [isArchived]
|
|
|
* @param {boolean} [isExternal]
|
|
|
+ * @param {boolean} [isFavorite]
|
|
|
* @param {boolean} [isOffline]
|
|
|
* @param {boolean} [isReadOnly]
|
|
|
* @param {boolean} [isVisible]
|
|
@@ -7882,7 +7910,7 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
// verify required parameter 'assetData' is not null or undefined
|
|
|
assertParamExists('uploadFile', 'assetData', assetData)
|
|
|
// verify required parameter 'deviceAssetId' is not null or undefined
|
|
@@ -7893,8 +7921,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
|
|
|
// verify required parameter 'fileModifiedAt' is not null or undefined
|
|
|
assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
|
|
|
- // verify required parameter 'isFavorite' is not null or undefined
|
|
|
- assertParamExists('uploadFile', 'isFavorite', isFavorite)
|
|
|
const localVarPath = `/asset/upload`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8068,17 +8094,19 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|
|
},
|
|
|
/**
|
|
|
* Get all AssetEntity belong to the user
|
|
|
+ * @param {number} [skip]
|
|
|
+ * @param {number} [take]
|
|
|
* @param {string} [userId]
|
|
|
* @param {boolean} [isFavorite]
|
|
|
* @param {boolean} [isArchived]
|
|
|
- * @param {number} [skip]
|
|
|
* @param {string} [updatedAfter]
|
|
|
+ * @param {string} [updatedBefore]
|
|
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
|
|
|
+ async getAllAssets(skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
/**
|
|
@@ -8335,11 +8363,11 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|
|
* @param {string} deviceId
|
|
|
* @param {string} fileCreatedAt
|
|
|
* @param {string} fileModifiedAt
|
|
|
- * @param {boolean} isFavorite
|
|
|
* @param {string} [key]
|
|
|
* @param {string} [duration]
|
|
|
* @param {boolean} [isArchived]
|
|
|
* @param {boolean} [isExternal]
|
|
|
+ * @param {boolean} [isFavorite]
|
|
|
* @param {boolean} [isOffline]
|
|
|
* @param {boolean} [isReadOnly]
|
|
|
* @param {boolean} [isVisible]
|
|
@@ -8349,8 +8377,8 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
|
|
|
+ async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
}
|
|
@@ -8423,7 +8451,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
|
|
|
- return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
|
|
|
+ return localVarFp.getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
|
* Get a single asset\'s information
|
|
@@ -8626,7 +8654,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
|
|
|
- return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
|
|
|
+ return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
};
|
|
|
};
|
|
@@ -8721,6 +8749,20 @@ export interface AssetApiDownloadFileRequest {
|
|
|
* @interface AssetApiGetAllAssetsRequest
|
|
|
*/
|
|
|
export interface AssetApiGetAllAssetsRequest {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {number}
|
|
|
+ * @memberof AssetApiGetAllAssets
|
|
|
+ */
|
|
|
+ readonly skip?: number
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {number}
|
|
|
+ * @memberof AssetApiGetAllAssets
|
|
|
+ */
|
|
|
+ readonly take?: number
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -8744,17 +8786,17 @@ export interface AssetApiGetAllAssetsRequest {
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @type {number}
|
|
|
+ * @type {string}
|
|
|
* @memberof AssetApiGetAllAssets
|
|
|
*/
|
|
|
- readonly skip?: number
|
|
|
+ readonly updatedAfter?: string
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
|
* @memberof AssetApiGetAllAssets
|
|
|
*/
|
|
|
- readonly updatedAfter?: string
|
|
|
+ readonly updatedBefore?: string
|
|
|
|
|
|
/**
|
|
|
* ETag of data already cached on the client
|
|
@@ -9274,13 +9316,6 @@ export interface AssetApiUploadFileRequest {
|
|
|
*/
|
|
|
readonly fileModifiedAt: string
|
|
|
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {boolean}
|
|
|
- * @memberof AssetApiUploadFile
|
|
|
- */
|
|
|
- readonly isFavorite: boolean
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -9309,6 +9344,13 @@ export interface AssetApiUploadFileRequest {
|
|
|
*/
|
|
|
readonly isExternal?: boolean
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {boolean}
|
|
|
+ * @memberof AssetApiUploadFile
|
|
|
+ */
|
|
|
+ readonly isFavorite?: boolean
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @type {boolean}
|
|
@@ -9432,7 +9474,7 @@ export class AssetApi extends BaseAPI {
|
|
|
* @memberof AssetApi
|
|
|
*/
|
|
|
public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
|
|
|
- return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ return AssetApiFp(this.configuration).getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -9681,7 +9723,7 @@ export class AssetApi extends BaseAPI {
|
|
|
* @memberof AssetApi
|
|
|
*/
|
|
|
public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
|
|
|
- return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -10471,7 +10513,7 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
|
|
|
+ async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
|
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
@@ -10551,7 +10593,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
|
|
|
+ signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
|
|
|
return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
@@ -15062,6 +15104,51 @@ export const SystemConfigApiAxiosParamCreator = function (configuration?: Config
|
|
|
|
|
|
|
|
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {MapTheme} theme
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'theme' is not null or undefined
|
|
|
+ assertParamExists('getMapStyle', 'theme', theme)
|
|
|
+ const localVarPath = `/system-config/map/style.json`;
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+ if (theme !== undefined) {
|
|
|
+ localVarQueryParameter['theme'] = theme;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15181,6 +15268,16 @@ export const SystemConfigApiFp = function(configuration?: Configuration) {
|
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {MapTheme} theme
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -15226,6 +15323,15 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
|
|
|
getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
|
|
|
return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
|
|
|
+ return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -15246,6 +15352,20 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
|
|
|
};
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * Request parameters for getMapStyle operation in SystemConfigApi.
|
|
|
+ * @export
|
|
|
+ * @interface SystemConfigApiGetMapStyleRequest
|
|
|
+ */
|
|
|
+export interface SystemConfigApiGetMapStyleRequest {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {MapTheme}
|
|
|
+ * @memberof SystemConfigApiGetMapStyle
|
|
|
+ */
|
|
|
+ readonly theme: MapTheme
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Request parameters for updateConfig operation in SystemConfigApi.
|
|
|
* @export
|
|
@@ -15287,6 +15407,17 @@ export class SystemConfigApi extends BaseAPI {
|
|
|
return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SystemConfigApi
|
|
|
+ */
|
|
|
+ public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
|
|
|
+ return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|