From cf795d68454fa09174209aac9df2ec0126ad8a77 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 20 Feb 2024 10:20:09 +0000 Subject: [PATCH] relese-update --- src/.openapi-generator/FILES | 6 +- src/api/group-api.ts | 62 ++++---- src/api/person-api.ts | 132 +++++++++--------- .../add-image-to-person-request-image.ts | 50 +++++++ src/models/add-image-to-person-request.ts | 49 +++++++ src/models/add-image-to-person-response.ts | 60 ++++++++ src/models/group-response.ts | 36 +++++ src/models/group-to-create.ts | 4 +- src/models/group.ts | 4 +- src/models/image-fields.ts | 6 +- src/models/index.ts | 6 +- src/models/match-and-search-request-all-of.ts | 6 + src/models/match-and-search-request.ts | 4 +- src/models/match-response-all-of.ts | 6 + src/models/operation-log.ts | 6 + src/models/person-fields.ts | 2 +- src/models/person-to-update-fields.ts | 42 ++++++ src/models/search-request.ts | 2 +- src/models/transaction-info.ts | 4 +- 19 files changed, 367 insertions(+), 120 deletions(-) create mode 100644 src/models/add-image-to-person-request-image.ts create mode 100644 src/models/add-image-to-person-request.ts create mode 100644 src/models/add-image-to-person-response.ts create mode 100644 src/models/group-response.ts create mode 100644 src/models/person-to-update-fields.ts diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index 665e8fa..baae464 100755 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -8,6 +8,9 @@ api/search-api.ts base.ts common.ts configuration.ts +models/add-image-to-person-request-image.ts +models/add-image-to-person-request.ts +models/add-image-to-person-response.ts models/attribute-config.ts models/crop.ts models/detect-request.ts @@ -32,9 +35,9 @@ models/faces-response.ts models/group-all-of.ts models/group-page-all-of.ts models/group-page.ts +models/group-response.ts models/group-to-create.ts models/group.ts -models/image-fields-image.ts models/image-fields.ts models/image-page-all-of.ts models/image-page.ts @@ -60,6 +63,7 @@ models/output-image-params.ts models/page.ts models/person-all-of.ts models/person-fields.ts +models/person-to-update-fields.ts models/person-with-images-all-of.ts models/person-with-images.ts models/person.ts diff --git a/src/api/group-api.ts b/src/api/group-api.ts index b9d1caa..f34dd30 100644 --- a/src/api/group-api.ts +++ b/src/api/group-api.ts @@ -121,17 +121,13 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration /** * * @summary Get groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllGroups: async (page: number, size: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'page' is not null or undefined - assertParamExists('getAllGroups', 'page', page) - // verify required parameter 'size' is not null or undefined - assertParamExists('getAllGroups', 'size', size) + getAllGroups: async (page?: number, size?: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/groups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -170,18 +166,14 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration /** * * @summary Get group persons - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} groupId Group ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllPersonsByGroupId: async (page: number, size: number, groupId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'page' is not null or undefined - assertParamExists('getAllPersonsByGroupId', 'page', page) - // verify required parameter 'size' is not null or undefined - assertParamExists('getAllPersonsByGroupId', 'size', size) + getAllPersonsByGroupId: async (groupId: string, page?: number, size?: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'groupId' is not null or undefined assertParamExists('getAllPersonsByGroupId', 'groupId', groupId) const localVarPath = `/api/groups/{groupId}/persons` @@ -386,28 +378,28 @@ export const GroupApiFp = function(configuration?: Configuration) { /** * * @summary Get groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAllGroups(page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroups(page, size, xRequestID, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @summary Get group persons - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} groupId Group ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersonsByGroupId(page, size, groupId, xRequestID, options); + async getAllPersonsByGroupId(groupId: string, page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersonsByGroupId(groupId, page, size, xRequestID, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -483,27 +475,27 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath /** * * @summary Get groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllGroups(page: number, size: number, xRequestID?: string, options?: any): AxiosPromise { + getAllGroups(page?: number, size?: number, xRequestID?: string, options?: any): AxiosPromise { return localVarFp.getAllGroups(page, size, xRequestID, options).then((request) => request(axios, basePath)); }, /** * * @summary Get group persons - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} groupId Group ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: any): AxiosPromise { - return localVarFp.getAllPersonsByGroupId(page, size, groupId, xRequestID, options).then((request) => request(axios, basePath)); + getAllPersonsByGroupId(groupId: string, page?: number, size?: number, xRequestID?: string, options?: any): AxiosPromise { + return localVarFp.getAllPersonsByGroupId(groupId, page, size, xRequestID, options).then((request) => request(axios, basePath)); }, /** * @@ -579,30 +571,30 @@ export class GroupApi extends BaseAPI { /** * * @summary Get groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig) { + public getAllGroups(page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig) { return GroupApiFp(this.configuration).getAllGroups(page, size, xRequestID, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get group persons - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} groupId Group ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig) { - return GroupApiFp(this.configuration).getAllPersonsByGroupId(page, size, groupId, xRequestID, options).then((request) => request(this.axios, this.basePath)); + public getAllPersonsByGroupId(groupId: string, page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig) { + return GroupApiFp(this.configuration).getAllPersonsByGroupId(groupId, page, size, xRequestID, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/src/api/person-api.ts b/src/api/person-api.ts index c95a22e..7000ed4 100644 --- a/src/api/person-api.ts +++ b/src/api/person-api.ts @@ -21,11 +21,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore -import { GroupPage } from '../models'; +import { AddImageToPersonRequest } from '../models'; // @ts-ignore -import { Image } from '../models'; +import { AddImageToPersonResponse } from '../models'; // @ts-ignore -import { ImageFields } from '../models'; +import { GroupPage } from '../models'; // @ts-ignore import { ImagePage } from '../models'; // @ts-ignore @@ -34,6 +34,8 @@ import { OperationLog } from '../models'; import { Person } from '../models'; // @ts-ignore import { PersonFields } from '../models'; +// @ts-ignore +import { PersonToUpdateFields } from '../models'; /** * PersonApi - axios parameter creator * @export @@ -44,16 +46,16 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio * * @summary Add person image * @param {string} personId Person ID. - * @param {ImageFields} imageFields Image to add. + * @param {AddImageToPersonRequest} addImageToPersonRequest Image to add. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addImageToPerson: async (personId: string, imageFields: ImageFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { + addImageToPerson: async (personId: string, addImageToPersonRequest: AddImageToPersonRequest, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'personId' is not null or undefined assertParamExists('addImageToPerson', 'personId', personId) - // verify required parameter 'imageFields' is not null or undefined - assertParamExists('addImageToPerson', 'imageFields', imageFields) + // verify required parameter 'addImageToPersonRequest' is not null or undefined + assertParamExists('addImageToPerson', 'addImageToPersonRequest', addImageToPersonRequest) const localVarPath = `/api/persons/{personId}/images` .replace(`{${"personId"}}`, encodeURIComponent(String(personId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -78,7 +80,7 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(imageFields, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(addImageToPersonRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -211,18 +213,14 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio /** * * @summary Get person groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllGroupsByPersonId: async (page: number, size: number, personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'page' is not null or undefined - assertParamExists('getAllGroupsByPersonId', 'page', page) - // verify required parameter 'size' is not null or undefined - assertParamExists('getAllGroupsByPersonId', 'size', size) + getAllGroupsByPersonId: async (personId: string, page?: number, size?: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'personId' is not null or undefined assertParamExists('getAllGroupsByPersonId', 'personId', personId) const localVarPath = `/api/persons/{personId}/groups` @@ -264,18 +262,14 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio /** * * @summary Get person images - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllImagesByPersonId: async (page: number, size: number, personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'page' is not null or undefined - assertParamExists('getAllImagesByPersonId', 'page', page) - // verify required parameter 'size' is not null or undefined - assertParamExists('getAllImagesByPersonId', 'size', size) + getAllImagesByPersonId: async (personId: string, page?: number, size?: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'personId' is not null or undefined assertParamExists('getAllImagesByPersonId', 'personId', personId) const localVarPath = `/api/persons/{personId}/images` @@ -400,16 +394,16 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio * * @summary Update person * @param {string} personId Person ID. - * @param {PersonFields} personFields Request body for the Person to update. + * @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePerson: async (personId: string, personFields: PersonFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { + updatePerson: async (personId: string, personToUpdateFields: PersonToUpdateFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'personId' is not null or undefined assertParamExists('updatePerson', 'personId', personId) - // verify required parameter 'personFields' is not null or undefined - assertParamExists('updatePerson', 'personFields', personFields) + // verify required parameter 'personToUpdateFields' is not null or undefined + assertParamExists('updatePerson', 'personToUpdateFields', personToUpdateFields) const localVarPath = `/api/persons/{personId}` .replace(`{${"personId"}}`, encodeURIComponent(String(personId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -434,7 +428,7 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(personFields, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(personToUpdateFields, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -455,13 +449,13 @@ export const PersonApiFp = function(configuration?: Configuration) { * * @summary Add person image * @param {string} personId Person ID. - * @param {ImageFields} imageFields Image to add. + * @param {AddImageToPersonRequest} addImageToPersonRequest Image to add. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addImageToPerson(personId, imageFields, xRequestID, options); + async addImageToPerson(personId: string, addImageToPersonRequest: AddImageToPersonRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addImageToPerson(personId, addImageToPersonRequest, xRequestID, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -504,29 +498,29 @@ export const PersonApiFp = function(configuration?: Configuration) { /** * * @summary Get person groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroupsByPersonId(page, size, personId, xRequestID, options); + async getAllGroupsByPersonId(personId: string, page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroupsByPersonId(personId, page, size, xRequestID, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @summary Get person images - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImagesByPersonId(page, size, personId, xRequestID, options); + async getAllImagesByPersonId(personId: string, page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImagesByPersonId(personId, page, size, xRequestID, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -558,13 +552,13 @@ export const PersonApiFp = function(configuration?: Configuration) { * * @summary Update person * @param {string} personId Person ID. - * @param {PersonFields} personFields Request body for the Person to update. + * @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(personId, personFields, xRequestID, options); + async updatePerson(personId: string, personToUpdateFields: PersonToUpdateFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(personId, personToUpdateFields, xRequestID, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -581,13 +575,13 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat * * @summary Add person image * @param {string} personId Person ID. - * @param {ImageFields} imageFields Image to add. + * @param {AddImageToPersonRequest} addImageToPersonRequest Image to add. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: any): AxiosPromise { - return localVarFp.addImageToPerson(personId, imageFields, xRequestID, options).then((request) => request(axios, basePath)); + addImageToPerson(personId: string, addImageToPersonRequest: AddImageToPersonRequest, xRequestID?: string, options?: any): AxiosPromise { + return localVarFp.addImageToPerson(personId, addImageToPersonRequest, xRequestID, options).then((request) => request(axios, basePath)); }, /** * @@ -626,28 +620,28 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat /** * * @summary Get person groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: any): AxiosPromise { - return localVarFp.getAllGroupsByPersonId(page, size, personId, xRequestID, options).then((request) => request(axios, basePath)); + getAllGroupsByPersonId(personId: string, page?: number, size?: number, xRequestID?: string, options?: any): AxiosPromise { + return localVarFp.getAllGroupsByPersonId(personId, page, size, xRequestID, options).then((request) => request(axios, basePath)); }, /** * * @summary Get person images - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: any): AxiosPromise { - return localVarFp.getAllImagesByPersonId(page, size, personId, xRequestID, options).then((request) => request(axios, basePath)); + getAllImagesByPersonId(personId: string, page?: number, size?: number, xRequestID?: string, options?: any): AxiosPromise { + return localVarFp.getAllImagesByPersonId(personId, page, size, xRequestID, options).then((request) => request(axios, basePath)); }, /** * @@ -676,13 +670,13 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat * * @summary Update person * @param {string} personId Person ID. - * @param {PersonFields} personFields Request body for the Person to update. + * @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: any): AxiosPromise { - return localVarFp.updatePerson(personId, personFields, xRequestID, options).then((request) => request(axios, basePath)); + updatePerson(personId: string, personToUpdateFields: PersonToUpdateFields, xRequestID?: string, options?: any): AxiosPromise { + return localVarFp.updatePerson(personId, personToUpdateFields, xRequestID, options).then((request) => request(axios, basePath)); }, }; }; @@ -698,14 +692,14 @@ export class PersonApi extends BaseAPI { * * @summary Add person image * @param {string} personId Person ID. - * @param {ImageFields} imageFields Image to add. + * @param {AddImageToPersonRequest} addImageToPersonRequest Image to add. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PersonApi */ - public addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig) { - return PersonApiFp(this.configuration).addImageToPerson(personId, imageFields, xRequestID, options).then((request) => request(this.axios, this.basePath)); + public addImageToPerson(personId: string, addImageToPersonRequest: AddImageToPersonRequest, xRequestID?: string, options?: AxiosRequestConfig) { + return PersonApiFp(this.configuration).addImageToPerson(personId, addImageToPersonRequest, xRequestID, options).then((request) => request(this.axios, this.basePath)); } /** @@ -751,31 +745,31 @@ export class PersonApi extends BaseAPI { /** * * @summary Get person groups - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PersonApi */ - public getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig) { - return PersonApiFp(this.configuration).getAllGroupsByPersonId(page, size, personId, xRequestID, options).then((request) => request(this.axios, this.basePath)); + public getAllGroupsByPersonId(personId: string, page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig) { + return PersonApiFp(this.configuration).getAllGroupsByPersonId(personId, page, size, xRequestID, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get person images - * @param {number} page The page number to get a list of persons or groups. - * @param {number} size The page size with a list of persons or groups, items. * @param {string} personId Person ID. + * @param {number} [page] The page number to get a list of persons or groups. + * @param {number} [size] The page size with a list of persons or groups, items. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PersonApi */ - public getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig) { - return PersonApiFp(this.configuration).getAllImagesByPersonId(page, size, personId, xRequestID, options).then((request) => request(this.axios, this.basePath)); + public getAllImagesByPersonId(personId: string, page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig) { + return PersonApiFp(this.configuration).getAllImagesByPersonId(personId, page, size, xRequestID, options).then((request) => request(this.axios, this.basePath)); } /** @@ -809,13 +803,13 @@ export class PersonApi extends BaseAPI { * * @summary Update person * @param {string} personId Person ID. - * @param {PersonFields} personFields Request body for the Person to update. + * @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update. * @param {string} [xRequestID] Request header label. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PersonApi */ - public updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig) { - return PersonApiFp(this.configuration).updatePerson(personId, personFields, xRequestID, options).then((request) => request(this.axios, this.basePath)); + public updatePerson(personId: string, personToUpdateFields: PersonToUpdateFields, xRequestID?: string, options?: AxiosRequestConfig) { + return PersonApiFp(this.configuration).updatePerson(personId, personToUpdateFields, xRequestID, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/models/add-image-to-person-request-image.ts b/src/models/add-image-to-person-request-image.ts new file mode 100644 index 0000000..e7d1955 --- /dev/null +++ b/src/models/add-image-to-person-request-image.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula FaceSDK Web API + * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 6.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { ResizeOptions } from './resize-options'; +import { ImageData } from './image-data'; + +/** + * Uploaded image. + * @export + * @interface AddImageToPersonRequestImage + */ +export interface AddImageToPersonRequestImage { + /** + * Original media type of the uploaded image. + * @type {string} + * @memberof AddImageToPersonRequestImage + */ + 'contentType'?: string; + /** + * + * @type {ImageData} + * @memberof AddImageToPersonRequestImage + */ + 'content'?: ImageData; + /** + * Image URL. + * @type {string} + * @memberof AddImageToPersonRequestImage + */ + 'imageUrl'?: string; + /** + * + * @type {ResizeOptions} + * @memberof AddImageToPersonRequestImage + */ + 'resizeOptions'?: ResizeOptions; +} + diff --git a/src/models/add-image-to-person-request.ts b/src/models/add-image-to-person-request.ts new file mode 100644 index 0000000..5ab6e3d --- /dev/null +++ b/src/models/add-image-to-person-request.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula FaceSDK Web API + * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 6.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { AddImageToPersonRequestImage } from './add-image-to-person-request-image'; + +/** + * Image in the request data, includes image and contentType. + * @export + * @interface AddImageToPersonRequest + */ +export interface AddImageToPersonRequest { + /** + * Session identificator. + * @type {string} + * @memberof AddImageToPersonRequest + */ + 'tag'?: string; + /** + * + * @type {AddImageToPersonRequestImage} + * @memberof AddImageToPersonRequest + */ + 'image': AddImageToPersonRequestImage; + /** + * The similarity threshold. + * @type {number} + * @memberof AddImageToPersonRequest + */ + 'threshold'?: number; + /** + * The maximum number of results to be returned. + * @type {number} + * @memberof AddImageToPersonRequest + */ + 'limit'?: number; +} + diff --git a/src/models/add-image-to-person-response.ts b/src/models/add-image-to-person-response.ts new file mode 100644 index 0000000..14d224d --- /dev/null +++ b/src/models/add-image-to-person-response.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula FaceSDK Web API + * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 6.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Image in the response. + * @export + * @interface AddImageToPersonResponse + */ +export interface AddImageToPersonResponse { + /** + * Response image ID. The list is sorted by decreasing ID value. + * @type {string} + * @memberof AddImageToPersonResponse + */ + 'id'?: string; + /** + * Original media type of the returned image. + * @type {string} + * @memberof AddImageToPersonResponse + */ + 'contentType'?: string; + /** + * Returned image creation date. + * @type {string} + * @memberof AddImageToPersonResponse + */ + 'createdAt'?: string; + /** + * Returned image path. + * @type {string} + * @memberof AddImageToPersonResponse + */ + 'path'?: string; + /** + * Returned image URL. + * @type {string} + * @memberof AddImageToPersonResponse + */ + 'url'?: string; + /** + * A free-form object containing person\'s extended attributes. + * @type {{ [key: string]: object; }} + * @memberof AddImageToPersonResponse + */ + 'metadata'?: { [key: string]: object; }; +} + diff --git a/src/models/group-response.ts b/src/models/group-response.ts new file mode 100644 index 0000000..870114c --- /dev/null +++ b/src/models/group-response.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula FaceSDK Web API + * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 6.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Response group create data, includes name and metadata. + * @export + * @interface GroupResponse + */ +export interface GroupResponse { + /** + * Group to create name. + * @type {string} + * @memberof GroupResponse + */ + 'name'?: string; + /** + * A free-form object containing group\'s extended attributes. + * @type {{ [key: string]: object; }} + * @memberof GroupResponse + */ + 'metadata'?: { [key: string]: object; }; +} + diff --git a/src/models/group-to-create.ts b/src/models/group-to-create.ts index ca55a3a..3d9108b 100644 --- a/src/models/group-to-create.ts +++ b/src/models/group-to-create.ts @@ -31,12 +31,12 @@ export interface GroupToCreate { * @type {string} * @memberof GroupToCreate */ - 'name'?: string; + 'name': string; /** * A free-form object containing group\'s extended attributes. * @type {{ [key: string]: object; }} * @memberof GroupToCreate */ - 'metadata'?: { [key: string]: object; }; + 'metadata': { [key: string]: object; }; } diff --git a/src/models/group.ts b/src/models/group.ts index 2d94e8b..848df1b 100644 --- a/src/models/group.ts +++ b/src/models/group.ts @@ -14,12 +14,12 @@ import { GroupAllOf } from './group-all-of'; -import { GroupToCreate } from './group-to-create'; +import { GroupResponse } from './group-response'; /** * @type Group * @export */ -export type Group = GroupAllOf & GroupToCreate; +export type Group = GroupAllOf & GroupResponse; diff --git a/src/models/image-fields.ts b/src/models/image-fields.ts index b4a9d33..33e000e 100644 --- a/src/models/image-fields.ts +++ b/src/models/image-fields.ts @@ -13,7 +13,7 @@ */ -import { ImageFieldsImage } from './image-fields-image'; +import { AddImageToPersonRequestImage } from './add-image-to-person-request-image'; import { OutputImageParams } from './output-image-params'; /** @@ -30,10 +30,10 @@ export interface ImageFields { 'tag'?: string; /** * - * @type {ImageFieldsImage} + * @type {AddImageToPersonRequestImage} * @memberof ImageFields */ - 'image'?: ImageFieldsImage; + 'image'?: AddImageToPersonRequestImage; /** * * @type {OutputImageParams} diff --git a/src/models/index.ts b/src/models/index.ts index da8e929..e384c31 100755 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,3 +1,6 @@ +export * from './add-image-to-person-request'; +export * from './add-image-to-person-request-image'; +export * from './add-image-to-person-response'; export * from './attribute-config'; export * from './crop'; export * from './detect-request'; @@ -23,10 +26,10 @@ export * from './group'; export * from './group-all-of'; export * from './group-page'; export * from './group-page-all-of'; +export * from './group-response'; export * from './group-to-create'; export * from './image'; export * from './image-fields'; -export * from './image-fields-image'; export * from './image-page'; export * from './image-page-all-of'; export * from './image-source'; @@ -50,6 +53,7 @@ export * from './page'; export * from './person'; export * from './person-all-of'; export * from './person-fields'; +export * from './person-to-update-fields'; export * from './person-with-images'; export * from './person-with-images-all-of'; export * from './persons-page'; diff --git a/src/models/match-and-search-request-all-of.ts b/src/models/match-and-search-request-all-of.ts index 01b06e7..7546f0f 100644 --- a/src/models/match-and-search-request-all-of.ts +++ b/src/models/match-and-search-request-all-of.ts @@ -33,5 +33,11 @@ export interface MatchAndSearchRequestAllOf { * @memberof MatchAndSearchRequestAllOf */ 'images'?: Array; + /** + * IDs of the groups in which the search is performed. + * @type {Array} + * @memberof MatchAndSearchRequestAllOf + */ + 'groupIds'?: Array; } diff --git a/src/models/match-and-search-request.ts b/src/models/match-and-search-request.ts index 0584ba1..562b6e4 100644 --- a/src/models/match-and-search-request.ts +++ b/src/models/match-and-search-request.ts @@ -15,13 +15,11 @@ import { MatchAndSearchRequestAllOf } from './match-and-search-request-all-of'; import { MatchAndSearchRequestAllOfImages } from './match-and-search-request-all-of-images'; -import { SearchParameters } from './search-parameters'; -import { SearchParametersCreatePerson } from './search-parameters-create-person'; /** * @type MatchAndSearchRequest * @export */ -export type MatchAndSearchRequest = MatchAndSearchRequestAllOf & SearchParameters; +export type MatchAndSearchRequest = MatchAndSearchRequestAllOf; diff --git a/src/models/match-response-all-of.ts b/src/models/match-response-all-of.ts index 3be3a09..b1bd8b1 100644 --- a/src/models/match-response-all-of.ts +++ b/src/models/match-response-all-of.ts @@ -34,5 +34,11 @@ export interface MatchResponseAllOf { * @memberof MatchResponseAllOf */ 'results'?: Array; + /** + * A free-form object containing person\'s extended attributes. + * @type {{ [key: string]: object; }} + * @memberof MatchResponseAllOf + */ + 'metadata'?: { [key: string]: object; }; } diff --git a/src/models/operation-log.ts b/src/models/operation-log.ts index 42ba64c..f52180a 100644 --- a/src/models/operation-log.ts +++ b/src/models/operation-log.ts @@ -38,5 +38,11 @@ export interface OperationLog { * @memberof OperationLog */ 'msg'?: string; + /** + * A free-form object containing group\'s extended attributes. + * @type {{ [key: string]: object; }} + * @memberof OperationLog + */ + 'metadata'?: { [key: string]: object; }; } diff --git a/src/models/person-fields.ts b/src/models/person-fields.ts index 59a79d8..1afacb4 100644 --- a/src/models/person-fields.ts +++ b/src/models/person-fields.ts @@ -25,7 +25,7 @@ export interface PersonFields { * @type {string} * @memberof PersonFields */ - 'name'?: string; + 'name': string; /** * A free-form object containing person\'s extended attributes. * @type {{ [key: string]: object; }} diff --git a/src/models/person-to-update-fields.ts b/src/models/person-to-update-fields.ts new file mode 100644 index 0000000..ad1bb59 --- /dev/null +++ b/src/models/person-to-update-fields.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula FaceSDK Web API + * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 6.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Person Request body: name and metadata. + * @export + * @interface PersonToUpdateFields + */ +export interface PersonToUpdateFields { + /** + * Person name. + * @type {string} + * @memberof PersonToUpdateFields + */ + 'name'?: string; + /** + * A free-form object containing person\'s extended attributes. + * @type {{ [key: string]: object; }} + * @memberof PersonToUpdateFields + */ + 'metadata'?: { [key: string]: object; }; + /** + * Groups a person should be placed to. If no group is specified in request, a Default group is created and the person is placed to it. + * @type {Array} + * @memberof PersonToUpdateFields + */ + 'groups'?: Array; +} + diff --git a/src/models/search-request.ts b/src/models/search-request.ts index 04368d8..b695fd2 100644 --- a/src/models/search-request.ts +++ b/src/models/search-request.ts @@ -13,8 +13,8 @@ */ +import { AddImageToPersonRequestImage } from './add-image-to-person-request-image'; import { ImageFields } from './image-fields'; -import { ImageFieldsImage } from './image-fields-image'; import { OutputImageParams } from './output-image-params'; import { SearchParameters } from './search-parameters'; import { SearchParametersCreatePerson } from './search-parameters-create-person'; diff --git a/src/models/transaction-info.ts b/src/models/transaction-info.ts index 2c471a0..1e5dcf1 100644 --- a/src/models/transaction-info.ts +++ b/src/models/transaction-info.ts @@ -52,10 +52,10 @@ export interface TransactionInfo { 'video'?: string; /** * Approximate age with an accuracy of +/-3 years. - * @type {number} + * @type {Array<{ [key: string]: object; }>} * @memberof TransactionInfo */ - 'age'?: number; + 'age'?: Array<{ [key: string]: object; }>; /** * Link to the portrait, depends on the selected storage type. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/storage/) * @type {string}