|
@@ -1438,6 +1438,47 @@ export interface LogoutResponseDto {
|
|
*/
|
|
*/
|
|
'redirectUri': string;
|
|
'redirectUri': string;
|
|
}
|
|
}
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @interface MapMarkerResponseDto
|
|
|
|
+ */
|
|
|
|
+export interface MapMarkerResponseDto {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof MapMarkerResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'id': string;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof MapMarkerResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'type': MapMarkerResponseDtoTypeEnum;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof MapMarkerResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'lat': number;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof MapMarkerResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'lon': number;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+export const MapMarkerResponseDtoTypeEnum = {
|
|
|
|
+ Image: 'IMAGE',
|
|
|
|
+ Video: 'VIDEO',
|
|
|
|
+ Audio: 'AUDIO',
|
|
|
|
+ Other: 'OTHER'
|
|
|
|
+} as const;
|
|
|
|
+
|
|
|
|
+export type MapMarkerResponseDtoTypeEnum = typeof MapMarkerResponseDtoTypeEnum[keyof typeof MapMarkerResponseDtoTypeEnum];
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @export
|
|
* @export
|
|
@@ -4647,6 +4688,56 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ * Get all assets that have GPS information embedded
|
|
|
|
+ * @param {boolean} [isFavorite]
|
|
|
|
+ * @param {boolean} [isArchived]
|
|
|
|
+ * @param {number} [skip]
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getMapMarkers: async (isFavorite?: boolean, isArchived?: boolean, skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ const localVarPath = `/asset/mapMarker`;
|
|
|
|
+ // 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 bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
+
|
|
|
|
+ if (isFavorite !== undefined) {
|
|
|
|
+ localVarQueryParameter['isFavorite'] = isFavorite;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (isArchived !== undefined) {
|
|
|
|
+ localVarQueryParameter['isArchived'] = isArchived;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (skip !== undefined) {
|
|
|
|
+ localVarQueryParameter['skip'] = skip;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -5198,6 +5289,18 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ * Get all assets that have GPS information embedded
|
|
|
|
+ * @param {boolean} [isFavorite]
|
|
|
|
+ * @param {boolean} [isArchived]
|
|
|
|
+ * @param {number} [skip]
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isFavorite, isArchived, skip, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* Get all asset of a device that are in the database, ID only.
|
|
* Get all asset of a device that are in the database, ID only.
|
|
* @param {string} deviceId
|
|
* @param {string} deviceId
|
|
@@ -5454,6 +5557,17 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|
getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
|
|
getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
|
|
return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
|
|
return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ * Get all assets that have GPS information embedded
|
|
|
|
+ * @param {boolean} [isFavorite]
|
|
|
|
+ * @param {boolean} [isArchived]
|
|
|
|
+ * @param {number} [skip]
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: any): AxiosPromise<Array<MapMarkerResponseDto>> {
|
|
|
|
+ return localVarFp.getMapMarkers(isFavorite, isArchived, skip, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* Get all asset of a device that are in the database, ID only.
|
|
* Get all asset of a device that are in the database, ID only.
|
|
* @param {string} deviceId
|
|
* @param {string} deviceId
|
|
@@ -5740,6 +5854,19 @@ export class AssetApi extends BaseAPI {
|
|
return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
|
|
return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Get all assets that have GPS information embedded
|
|
|
|
+ * @param {boolean} [isFavorite]
|
|
|
|
+ * @param {boolean} [isArchived]
|
|
|
|
+ * @param {number} [skip]
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof AssetApi
|
|
|
|
+ */
|
|
|
|
+ public getMapMarkers(isFavorite?: boolean, isArchived?: boolean, skip?: number, options?: AxiosRequestConfig) {
|
|
|
|
+ return AssetApiFp(this.configuration).getMapMarkers(isFavorite, isArchived, skip, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Get all asset of a device that are in the database, ID only.
|
|
* Get all asset of a device that are in the database, ID only.
|
|
* @param {string} deviceId
|
|
* @param {string} deviceId
|