|
@@ -12139,6 +12139,51 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} name
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ searchPerson: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'name' is not null or undefined
|
|
|
|
+ assertParamExists('searchPerson', 'name', name)
|
|
|
|
+ const localVarPath = `/search/person`;
|
|
|
|
+ // 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 (name !== undefined) {
|
|
|
|
+ localVarQueryParameter['name'] = name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
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};
|
|
@@ -12192,6 +12237,16 @@ export const SearchApiFp = function(configuration?: Configuration) {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} name
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async searchPerson(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -12219,6 +12274,15 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
|
|
search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
|
|
search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
|
|
return localVarFp.search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(axios, basePath));
|
|
return localVarFp.search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(axios, basePath));
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
|
|
|
|
+ return localVarFp.searchPerson(requestParameters.name, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
@@ -12341,6 +12405,20 @@ export interface SearchApiSearchRequest {
|
|
readonly motion?: boolean
|
|
readonly motion?: boolean
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for searchPerson operation in SearchApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface SearchApiSearchPersonRequest
|
|
|
|
+ */
|
|
|
|
+export interface SearchApiSearchPersonRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof SearchApiSearchPerson
|
|
|
|
+ */
|
|
|
|
+ readonly name: string
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* SearchApi - object-oriented interface
|
|
* SearchApi - object-oriented interface
|
|
* @export
|
|
* @export
|
|
@@ -12368,6 +12446,17 @@ export class SearchApi extends BaseAPI {
|
|
public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
|
|
public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
|
|
return SearchApiFp(this.configuration).search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(this.axios, this.basePath));
|
|
return SearchApiFp(this.configuration).search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof SearchApi
|
|
|
|
+ */
|
|
|
|
+ public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return SearchApiFp(this.configuration).searchPerson(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|