Skip to content

Commit

Permalink
Merge pull request #95 from regulaforensics/79d7e04b
Browse files Browse the repository at this point in the history
relese-update
  • Loading branch information
GubinAlexander authored Feb 20, 2024
2 parents 0951dd7 + cf795d6 commit cb4bd25
Show file tree
Hide file tree
Showing 19 changed files with 367 additions and 120 deletions.
6 changes: 5 additions & 1 deletion src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
62 changes: 27 additions & 35 deletions src/api/group-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RequestArgs> => {
// 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<RequestArgs> => {
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);
Expand Down Expand Up @@ -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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'groupId' is not null or undefined
assertParamExists('getAllPersonsByGroupId', 'groupId', groupId)
const localVarPath = `/api/groups/{groupId}/persons`
Expand Down Expand Up @@ -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<GroupPage>> {
async getAllGroups(page?: number, size?: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPage>> {
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<PersonsPage>> {
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<PersonsPage>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersonsByGroupId(groupId, page, size, xRequestID, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -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<GroupPage> {
getAllGroups(page?: number, size?: number, xRequestID?: string, options?: any): AxiosPromise<GroupPage> {
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<PersonsPage> {
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<PersonsPage> {
return localVarFp.getAllPersonsByGroupId(groupId, page, size, xRequestID, options).then((request) => request(axios, basePath));
},
/**
*
Expand Down Expand Up @@ -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));
}

/**
Expand Down
Loading

0 comments on commit cb4bd25

Please sign in to comment.