@regulaforensics/facesdk-webclient 3.1.2 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs-es5/api/group-api.js +695 -0
- package/dist/cjs-es5/api/matching-api.js +101 -127
- package/dist/cjs-es5/api/person-api.js +952 -0
- package/dist/cjs-es5/api/search-api.js +200 -0
- package/dist/cjs-es5/api.js +6 -3
- package/dist/cjs-es5/base.js +3 -3
- package/dist/cjs-es5/common.js +235 -0
- package/dist/cjs-es5/configuration.js +18 -3
- package/dist/cjs-es5/ext/face-sdk.js +7 -1
- package/dist/cjs-es5/ext/group-api.js +47 -0
- package/dist/cjs-es5/ext/index.js +1 -2
- package/dist/cjs-es5/ext/matching-api.js +3 -7
- package/dist/cjs-es5/ext/person-api.js +61 -0
- package/dist/cjs-es5/ext/search-api.js +33 -0
- package/dist/cjs-es5/index.js +1 -2
- package/dist/cjs-es5/models/crop.js +16 -0
- package/dist/cjs-es5/models/detect-request.js +2 -2
- package/dist/cjs-es5/models/detect-response-all-of.js +2 -2
- package/dist/cjs-es5/models/detect-response.js +2 -2
- package/dist/cjs-es5/models/detect-result.js +2 -2
- package/dist/cjs-es5/models/detection-face.js +2 -2
- package/dist/cjs-es5/models/detection-quality.js +16 -0
- package/dist/cjs-es5/models/detection.js +2 -2
- package/dist/cjs-es5/models/face-align-type-quality.js +29 -0
- package/dist/cjs-es5/models/face-image-quality-groups.js +32 -0
- package/dist/cjs-es5/models/face-quality-config-name.js +70 -0
- package/dist/cjs-es5/models/face-quality-scenarios.js +31 -0
- package/dist/cjs-es5/models/face-quality-status.js +27 -0
- package/dist/cjs-es5/models/face-recognition-result-code.js +1 -6
- package/dist/cjs-es5/models/face-sdkresult-code.js +36 -37
- package/dist/cjs-es5/models/face-sdkresult.js +2 -2
- package/dist/cjs-es5/models/group-all-of.js +16 -0
- package/dist/cjs-es5/models/group-page-all-of.js +16 -0
- package/dist/cjs-es5/models/group-page.js +16 -0
- package/dist/cjs-es5/models/group-to-create.js +16 -0
- package/dist/cjs-es5/models/group.js +16 -0
- package/dist/cjs-es5/models/image-fields-image.js +16 -0
- package/dist/cjs-es5/models/image-fields.js +16 -0
- package/dist/cjs-es5/models/image-page-all-of.js +16 -0
- package/dist/cjs-es5/models/image-page.js +16 -0
- package/dist/cjs-es5/models/image-source.js +11 -12
- package/dist/cjs-es5/models/image.js +16 -0
- package/dist/cjs-es5/models/index.js +54 -16
- package/dist/cjs-es5/models/match-image-detection.js +2 -2
- package/dist/cjs-es5/models/match-image-result.js +2 -2
- package/dist/cjs-es5/models/match-image.js +2 -2
- package/dist/cjs-es5/models/match-request.js +2 -2
- package/dist/cjs-es5/models/match-response-all-of.js +2 -2
- package/dist/cjs-es5/models/match-response.js +2 -2
- package/dist/cjs-es5/models/operation-log.js +16 -0
- package/dist/cjs-es5/models/output-image-params.js +16 -0
- package/dist/cjs-es5/models/page.js +16 -0
- package/dist/cjs-es5/models/person-all-of.js +16 -0
- package/dist/cjs-es5/models/person-fields.js +16 -0
- package/dist/cjs-es5/models/person.js +16 -0
- package/dist/cjs-es5/models/persons-page-all-of.js +16 -0
- package/dist/cjs-es5/models/persons-page.js +16 -0
- package/dist/cjs-es5/models/process-param.js +16 -0
- package/dist/cjs-es5/models/quality-config.js +16 -0
- package/dist/cjs-es5/models/quality-detail.js +16 -0
- package/dist/cjs-es5/models/quality-details-groups.js +16 -0
- package/dist/cjs-es5/models/quality-request.js +16 -0
- package/dist/cjs-es5/models/recognize-image-all-of.js +16 -0
- package/dist/cjs-es5/models/recognize-image.js +16 -0
- package/dist/cjs-es5/models/search-person-all-of.js +16 -0
- package/dist/cjs-es5/models/search-person.js +16 -0
- package/dist/cjs-es5/models/search-request-all-of.js +16 -0
- package/dist/cjs-es5/models/search-request.js +16 -0
- package/dist/cjs-es5/models/search-result-all-of.js +16 -0
- package/dist/cjs-es5/models/search-result.js +16 -0
- package/dist/cjs-es5/models/update-group.js +16 -0
- package/dist/esm-es5/api/group-api.js +692 -0
- package/dist/esm-es5/api/matching-api.js +100 -126
- package/dist/esm-es5/api/person-api.js +949 -0
- package/dist/esm-es5/api/search-api.js +197 -0
- package/dist/esm-es5/api.js +6 -3
- package/dist/esm-es5/base.js +3 -3
- package/dist/esm-es5/common.js +232 -0
- package/dist/esm-es5/configuration.js +18 -3
- package/dist/esm-es5/ext/face-sdk.js +7 -1
- package/dist/esm-es5/ext/group-api.js +44 -0
- package/dist/esm-es5/ext/index.js +1 -2
- package/dist/esm-es5/ext/matching-api.js +3 -7
- package/dist/esm-es5/ext/person-api.js +58 -0
- package/dist/esm-es5/ext/search-api.js +30 -0
- package/dist/esm-es5/index.js +1 -2
- package/dist/esm-es5/models/crop.js +14 -0
- package/dist/esm-es5/models/detect-request.js +2 -2
- package/dist/esm-es5/models/detect-response-all-of.js +2 -2
- package/dist/esm-es5/models/detect-response.js +2 -2
- package/dist/esm-es5/models/detect-result.js +2 -2
- package/dist/esm-es5/models/detection-face.js +2 -2
- package/dist/esm-es5/models/detection-quality.js +14 -0
- package/dist/esm-es5/models/detection.js +2 -2
- package/dist/esm-es5/models/face-align-type-quality.js +26 -0
- package/dist/esm-es5/models/face-image-quality-groups.js +29 -0
- package/dist/esm-es5/models/face-quality-config-name.js +67 -0
- package/dist/esm-es5/models/face-quality-scenarios.js +28 -0
- package/dist/esm-es5/models/face-quality-status.js +24 -0
- package/dist/esm-es5/models/face-recognition-result-code.js +1 -3
- package/dist/esm-es5/models/face-sdkresult-code.js +36 -37
- package/dist/esm-es5/models/face-sdkresult.js +2 -2
- package/dist/esm-es5/models/group-all-of.js +14 -0
- package/dist/esm-es5/models/group-page-all-of.js +14 -0
- package/dist/esm-es5/models/group-page.js +14 -0
- package/dist/esm-es5/models/group-to-create.js +14 -0
- package/dist/esm-es5/models/group.js +14 -0
- package/dist/esm-es5/models/image-fields-image.js +14 -0
- package/dist/esm-es5/models/image-fields.js +14 -0
- package/dist/esm-es5/models/image-page-all-of.js +14 -0
- package/dist/esm-es5/models/image-page.js +14 -0
- package/dist/esm-es5/models/image-source.js +11 -12
- package/dist/esm-es5/models/image.js +14 -0
- package/dist/esm-es5/models/index.js +54 -16
- package/dist/esm-es5/models/match-image-detection.js +2 -2
- package/dist/esm-es5/models/match-image-result.js +2 -2
- package/dist/esm-es5/models/match-image.js +2 -2
- package/dist/esm-es5/models/match-request.js +2 -2
- package/dist/esm-es5/models/match-response-all-of.js +2 -2
- package/dist/esm-es5/models/match-response.js +2 -2
- package/dist/esm-es5/models/operation-log.js +14 -0
- package/dist/esm-es5/models/output-image-params.js +14 -0
- package/dist/esm-es5/models/page.js +14 -0
- package/dist/esm-es5/models/person-all-of.js +14 -0
- package/dist/esm-es5/models/person-fields.js +14 -0
- package/dist/esm-es5/models/person.js +14 -0
- package/dist/esm-es5/models/persons-page-all-of.js +14 -0
- package/dist/esm-es5/models/persons-page.js +14 -0
- package/dist/esm-es5/models/process-param.js +14 -0
- package/dist/esm-es5/models/quality-config.js +14 -0
- package/dist/esm-es5/models/quality-detail.js +14 -0
- package/dist/esm-es5/models/quality-details-groups.js +14 -0
- package/dist/esm-es5/models/quality-request.js +14 -0
- package/dist/esm-es5/models/recognize-image-all-of.js +14 -0
- package/dist/esm-es5/models/recognize-image.js +14 -0
- package/dist/esm-es5/models/search-person-all-of.js +14 -0
- package/dist/esm-es5/models/search-person.js +14 -0
- package/dist/esm-es5/models/search-request-all-of.js +14 -0
- package/dist/esm-es5/models/search-request.js +14 -0
- package/dist/esm-es5/models/search-result-all-of.js +14 -0
- package/dist/esm-es5/models/search-result.js +14 -0
- package/dist/esm-es5/models/update-group.js +14 -0
- package/package.json +1 -1
- package/src/api/group-api.ts +592 -0
- package/src/api/matching-api.ts +152 -172
- package/src/api/person-api.ts +831 -0
- package/src/api/search-api.ts +133 -0
- package/src/api.ts +5 -2
- package/src/base.ts +4 -4
- package/src/common.ts +138 -0
- package/src/configuration.ts +27 -2
- package/src/ext/face-sdk.ts +10 -0
- package/src/ext/group-api.ts +34 -0
- package/src/ext/index.ts +0 -1
- package/src/ext/matching-api.ts +5 -9
- package/src/ext/person-api.ts +51 -0
- package/src/ext/search-api.ts +14 -0
- package/src/index.ts +0 -1
- package/src/models/crop.ts +49 -0
- package/src/models/detect-request.ts +18 -12
- package/src/models/detect-response-all-of.ts +3 -4
- package/src/models/detect-response.ts +2 -3
- package/src/models/detect-result.ts +18 -6
- package/src/models/detection-face.ts +8 -9
- package/src/models/detection-quality.ts +57 -0
- package/src/models/detection.ts +22 -9
- package/src/models/face-align-type-quality.ts +34 -0
- package/src/models/face-image-quality-groups.ts +37 -0
- package/src/models/face-quality-config-name.ts +75 -0
- package/src/models/face-quality-scenarios.ts +36 -0
- package/src/models/face-quality-status.ts +32 -0
- package/src/models/face-recognition-result-code.ts +0 -4
- package/src/models/face-sdkresult-code.ts +38 -35
- package/src/models/face-sdkresult.ts +3 -4
- package/src/models/group-all-of.ts +36 -0
- package/src/models/group-page-all-of.ts +31 -0
- package/src/models/group-page.ts +26 -0
- package/src/models/group-to-create.ts +36 -0
- package/src/models/group.ts +25 -0
- package/src/models/image-fields-image.ts +37 -0
- package/src/models/image-fields.ts +31 -0
- package/src/models/image-page-all-of.ts +31 -0
- package/src/models/image-page.ts +26 -0
- package/src/models/image-source.ts +13 -10
- package/src/models/image.ts +54 -0
- package/src/models/index.ts +53 -15
- package/src/models/match-image-detection.ts +6 -7
- package/src/models/match-image-result.ts +15 -16
- package/src/models/match-image.ts +6 -7
- package/src/models/match-request.ts +8 -9
- package/src/models/match-response-all-of.ts +5 -6
- package/src/models/match-response.ts +2 -3
- package/src/models/operation-log.ts +42 -0
- package/src/models/output-image-params.ts +37 -0
- package/src/models/page.ts +36 -0
- package/src/models/person-all-of.ts +42 -0
- package/src/models/person-fields.ts +36 -0
- package/src/models/person.ts +26 -0
- package/src/models/persons-page-all-of.ts +31 -0
- package/src/models/persons-page.ts +26 -0
- package/src/models/process-param.ts +51 -0
- package/src/models/quality-config.ts +37 -0
- package/src/models/quality-detail.ts +57 -0
- package/src/models/quality-details-groups.ts +50 -0
- package/src/models/quality-request.ts +37 -0
- package/src/models/recognize-image-all-of.ts +30 -0
- package/src/models/recognize-image.ts +25 -0
- package/src/models/search-person-all-of.ts +31 -0
- package/src/models/search-person.ts +26 -0
- package/src/models/search-request-all-of.ts +42 -0
- package/src/models/search-request.ts +26 -0
- package/src/models/search-result-all-of.ts +30 -0
- package/src/models/search-result.ts +37 -0
- package/src/models/update-group.ts +36 -0
- package/update-models.sh +2 -3
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* Regula FaceSDK Web API # 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GroupPage } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { Image } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ImageFields } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ImagePage } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { OperationLog } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { Person } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { PersonFields } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { PersonsPage } from '../models';
|
|
39
|
+
/**
|
|
40
|
+
* PersonApi - axios parameter creator
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Add person image
|
|
48
|
+
* @param {number} personId Person ID.
|
|
49
|
+
* @param {ImageFields} imageFields Image to add.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
addImageToPerson: async (personId: number, imageFields: ImageFields, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'personId' is not null or undefined
|
|
55
|
+
assertParamExists('addImageToPerson', 'personId', personId)
|
|
56
|
+
// verify required parameter 'imageFields' is not null or undefined
|
|
57
|
+
assertParamExists('addImageToPerson', 'imageFields', imageFields)
|
|
58
|
+
const localVarPath = `/api/persons/{person_id}/images`
|
|
59
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
60
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62
|
+
let baseOptions;
|
|
63
|
+
if (configuration) {
|
|
64
|
+
baseOptions = configuration.baseOptions;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
68
|
+
const localVarHeaderParameter = {} as any;
|
|
69
|
+
const localVarQueryParameter = {} as any;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
74
|
+
|
|
75
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
|
+
localVarRequestOptions.data = serializeDataIfNeeded(imageFields, localVarRequestOptions, configuration)
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
url: toPathString(localVarUrlObj),
|
|
82
|
+
options: localVarRequestOptions,
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Create person
|
|
88
|
+
* @param {PersonFields} personFields
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
createPerson: async (personFields: PersonFields, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
+
// verify required parameter 'personFields' is not null or undefined
|
|
94
|
+
assertParamExists('createPerson', 'personFields', personFields)
|
|
95
|
+
const localVarPath = `/api/persons`;
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
+
|
|
111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
114
|
+
localVarRequestOptions.data = serializeDataIfNeeded(personFields, localVarRequestOptions, configuration)
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
url: toPathString(localVarUrlObj),
|
|
118
|
+
options: localVarRequestOptions,
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Delete image of person
|
|
124
|
+
* @param {number} imageId Image ID.
|
|
125
|
+
* @param {number} personId Person ID.
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
deleteImageOfPerson: async (imageId: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
130
|
+
// verify required parameter 'imageId' is not null or undefined
|
|
131
|
+
assertParamExists('deleteImageOfPerson', 'imageId', imageId)
|
|
132
|
+
// verify required parameter 'personId' is not null or undefined
|
|
133
|
+
assertParamExists('deleteImageOfPerson', 'personId', personId)
|
|
134
|
+
const localVarPath = `/api/persons/{person_id}/images/{image_id}`
|
|
135
|
+
.replace(`{${"image_id"}}`, encodeURIComponent(String(imageId)))
|
|
136
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
139
|
+
let baseOptions;
|
|
140
|
+
if (configuration) {
|
|
141
|
+
baseOptions = configuration.baseOptions;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
145
|
+
const localVarHeaderParameter = {} as any;
|
|
146
|
+
const localVarQueryParameter = {} as any;
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary Delete person
|
|
162
|
+
* @param {number} personId Person ID.
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
deletePerson: async (personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
167
|
+
// verify required parameter 'personId' is not null or undefined
|
|
168
|
+
assertParamExists('deletePerson', 'personId', personId)
|
|
169
|
+
const localVarPath = `/api/persons/{person_id}`
|
|
170
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
173
|
+
let baseOptions;
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
179
|
+
const localVarHeaderParameter = {} as any;
|
|
180
|
+
const localVarQueryParameter = {} as any;
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @summary Get person groups
|
|
196
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
197
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
198
|
+
* @param {number} personId Person ID.
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
getAllGroupsByPersonId: async (page: number, size: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
203
|
+
// verify required parameter 'page' is not null or undefined
|
|
204
|
+
assertParamExists('getAllGroupsByPersonId', 'page', page)
|
|
205
|
+
// verify required parameter 'size' is not null or undefined
|
|
206
|
+
assertParamExists('getAllGroupsByPersonId', 'size', size)
|
|
207
|
+
// verify required parameter 'personId' is not null or undefined
|
|
208
|
+
assertParamExists('getAllGroupsByPersonId', 'personId', personId)
|
|
209
|
+
const localVarPath = `/api/persons/{person_id}/groups`
|
|
210
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
219
|
+
const localVarHeaderParameter = {} as any;
|
|
220
|
+
const localVarQueryParameter = {} as any;
|
|
221
|
+
|
|
222
|
+
if (page !== undefined) {
|
|
223
|
+
localVarQueryParameter['page'] = page;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (size !== undefined) {
|
|
227
|
+
localVarQueryParameter['size'] = size;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
235
|
+
|
|
236
|
+
return {
|
|
237
|
+
url: toPathString(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions,
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @summary Get person images
|
|
244
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
245
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
246
|
+
* @param {number} personId Person ID.
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
getAllImagesByPersonId: async (page: number, size: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
251
|
+
// verify required parameter 'page' is not null or undefined
|
|
252
|
+
assertParamExists('getAllImagesByPersonId', 'page', page)
|
|
253
|
+
// verify required parameter 'size' is not null or undefined
|
|
254
|
+
assertParamExists('getAllImagesByPersonId', 'size', size)
|
|
255
|
+
// verify required parameter 'personId' is not null or undefined
|
|
256
|
+
assertParamExists('getAllImagesByPersonId', 'personId', personId)
|
|
257
|
+
const localVarPath = `/api/persons/{person_id}/images`
|
|
258
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
260
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
261
|
+
let baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
267
|
+
const localVarHeaderParameter = {} as any;
|
|
268
|
+
const localVarQueryParameter = {} as any;
|
|
269
|
+
|
|
270
|
+
if (page !== undefined) {
|
|
271
|
+
localVarQueryParameter['page'] = page;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (size !== undefined) {
|
|
275
|
+
localVarQueryParameter['size'] = size;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
282
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
283
|
+
|
|
284
|
+
return {
|
|
285
|
+
url: toPathString(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions,
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @summary Get persons
|
|
292
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
293
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
getAllPersons: async (page: number, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
298
|
+
// verify required parameter 'page' is not null or undefined
|
|
299
|
+
assertParamExists('getAllPersons', 'page', page)
|
|
300
|
+
// verify required parameter 'size' is not null or undefined
|
|
301
|
+
assertParamExists('getAllPersons', 'size', size)
|
|
302
|
+
const localVarPath = `/api/persons`;
|
|
303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
311
|
+
const localVarHeaderParameter = {} as any;
|
|
312
|
+
const localVarQueryParameter = {} as any;
|
|
313
|
+
|
|
314
|
+
if (page !== undefined) {
|
|
315
|
+
localVarQueryParameter['page'] = page;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (size !== undefined) {
|
|
319
|
+
localVarQueryParameter['size'] = size;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
327
|
+
|
|
328
|
+
return {
|
|
329
|
+
url: toPathString(localVarUrlObj),
|
|
330
|
+
options: localVarRequestOptions,
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @summary Get person image by id
|
|
336
|
+
* @param {number} imageId Image ID.
|
|
337
|
+
* @param {number} personId Person ID.
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
getImageOfPerson: async (imageId: number, personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
342
|
+
// verify required parameter 'imageId' is not null or undefined
|
|
343
|
+
assertParamExists('getImageOfPerson', 'imageId', imageId)
|
|
344
|
+
// verify required parameter 'personId' is not null or undefined
|
|
345
|
+
assertParamExists('getImageOfPerson', 'personId', personId)
|
|
346
|
+
const localVarPath = `/api/persons/{person_id}/images/{image_id}`
|
|
347
|
+
.replace(`{${"image_id"}}`, encodeURIComponent(String(imageId)))
|
|
348
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
349
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
350
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
351
|
+
let baseOptions;
|
|
352
|
+
if (configuration) {
|
|
353
|
+
baseOptions = configuration.baseOptions;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
357
|
+
const localVarHeaderParameter = {} as any;
|
|
358
|
+
const localVarQueryParameter = {} as any;
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
365
|
+
|
|
366
|
+
return {
|
|
367
|
+
url: toPathString(localVarUrlObj),
|
|
368
|
+
options: localVarRequestOptions,
|
|
369
|
+
};
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @summary Get person
|
|
374
|
+
* @param {number} personId Person ID.
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
getPerson: async (personId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
379
|
+
// verify required parameter 'personId' is not null or undefined
|
|
380
|
+
assertParamExists('getPerson', 'personId', personId)
|
|
381
|
+
const localVarPath = `/api/persons/{person_id}`
|
|
382
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
385
|
+
let baseOptions;
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
391
|
+
const localVarHeaderParameter = {} as any;
|
|
392
|
+
const localVarQueryParameter = {} as any;
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
397
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
399
|
+
|
|
400
|
+
return {
|
|
401
|
+
url: toPathString(localVarUrlObj),
|
|
402
|
+
options: localVarRequestOptions,
|
|
403
|
+
};
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @summary Update person
|
|
408
|
+
* @param {number} personId Person ID.
|
|
409
|
+
* @param {PersonFields} personFields Request body for the Person to update.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
updatePerson: async (personId: number, personFields: PersonFields, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
414
|
+
// verify required parameter 'personId' is not null or undefined
|
|
415
|
+
assertParamExists('updatePerson', 'personId', personId)
|
|
416
|
+
// verify required parameter 'personFields' is not null or undefined
|
|
417
|
+
assertParamExists('updatePerson', 'personFields', personFields)
|
|
418
|
+
const localVarPath = `/api/persons/{person_id}`
|
|
419
|
+
.replace(`{${"person_id"}}`, encodeURIComponent(String(personId)));
|
|
420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
422
|
+
let baseOptions;
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
428
|
+
const localVarHeaderParameter = {} as any;
|
|
429
|
+
const localVarQueryParameter = {} as any;
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
434
|
+
|
|
435
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
438
|
+
localVarRequestOptions.data = serializeDataIfNeeded(personFields, localVarRequestOptions, configuration)
|
|
439
|
+
|
|
440
|
+
return {
|
|
441
|
+
url: toPathString(localVarUrlObj),
|
|
442
|
+
options: localVarRequestOptions,
|
|
443
|
+
};
|
|
444
|
+
},
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* PersonApi - functional programming interface
|
|
450
|
+
* @export
|
|
451
|
+
*/
|
|
452
|
+
export const PersonApiFp = function(configuration?: Configuration) {
|
|
453
|
+
const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
|
|
454
|
+
return {
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @summary Add person image
|
|
458
|
+
* @param {number} personId Person ID.
|
|
459
|
+
* @param {ImageFields} imageFields Image to add.
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
async addImageToPerson(personId: number, imageFields: ImageFields, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Image>> {
|
|
464
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addImageToPerson(personId, imageFields, options);
|
|
465
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
466
|
+
},
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @summary Create person
|
|
470
|
+
* @param {PersonFields} personFields
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
async createPerson(personFields: PersonFields, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
|
|
475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPerson(personFields, options);
|
|
476
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
477
|
+
},
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* @summary Delete image of person
|
|
481
|
+
* @param {number} imageId Image ID.
|
|
482
|
+
* @param {number} personId Person ID.
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
async deleteImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImageOfPerson(imageId, personId, options);
|
|
488
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @summary Delete person
|
|
493
|
+
* @param {number} personId Person ID.
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
async deletePerson(personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(personId, options);
|
|
499
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
500
|
+
},
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
* @summary Get person groups
|
|
504
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
505
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
506
|
+
* @param {number} personId Person ID.
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
async getAllGroupsByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPage>> {
|
|
511
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroupsByPersonId(page, size, personId, options);
|
|
512
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @summary Get person images
|
|
517
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
518
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
519
|
+
* @param {number} personId Person ID.
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
async getAllImagesByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImagePage>> {
|
|
524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImagesByPersonId(page, size, personId, options);
|
|
525
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
526
|
+
},
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary Get persons
|
|
530
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
531
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
async getAllPersons(page: number, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonsPage>> {
|
|
536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersons(page, size, options);
|
|
537
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @summary Get person image by id
|
|
542
|
+
* @param {number} imageId Image ID.
|
|
543
|
+
* @param {number} personId Person ID.
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
async getImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getImageOfPerson(imageId, personId, options);
|
|
549
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @summary Get person
|
|
554
|
+
* @param {number} personId Person ID.
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
async getPerson(personId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
|
|
559
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(personId, options);
|
|
560
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
561
|
+
},
|
|
562
|
+
/**
|
|
563
|
+
*
|
|
564
|
+
* @summary Update person
|
|
565
|
+
* @param {number} personId Person ID.
|
|
566
|
+
* @param {PersonFields} personFields Request body for the Person to update.
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
async updatePerson(personId: number, personFields: PersonFields, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
571
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(personId, personFields, options);
|
|
572
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
573
|
+
},
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* PersonApi - factory interface
|
|
579
|
+
* @export
|
|
580
|
+
*/
|
|
581
|
+
export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
582
|
+
const localVarFp = PersonApiFp(configuration)
|
|
583
|
+
return {
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @summary Add person image
|
|
587
|
+
* @param {number} personId Person ID.
|
|
588
|
+
* @param {ImageFields} imageFields Image to add.
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
addImageToPerson(personId: number, imageFields: ImageFields, options?: any): AxiosPromise<Image> {
|
|
593
|
+
return localVarFp.addImageToPerson(personId, imageFields, options).then((request) => request(axios, basePath));
|
|
594
|
+
},
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
* @summary Create person
|
|
598
|
+
* @param {PersonFields} personFields
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
createPerson(personFields: PersonFields, options?: any): AxiosPromise<Person> {
|
|
603
|
+
return localVarFp.createPerson(personFields, options).then((request) => request(axios, basePath));
|
|
604
|
+
},
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @summary Delete image of person
|
|
608
|
+
* @param {number} imageId Image ID.
|
|
609
|
+
* @param {number} personId Person ID.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
deleteImageOfPerson(imageId: number, personId: number, options?: any): AxiosPromise<void> {
|
|
614
|
+
return localVarFp.deleteImageOfPerson(imageId, personId, options).then((request) => request(axios, basePath));
|
|
615
|
+
},
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @summary Delete person
|
|
619
|
+
* @param {number} personId Person ID.
|
|
620
|
+
* @param {*} [options] Override http request option.
|
|
621
|
+
* @throws {RequiredError}
|
|
622
|
+
*/
|
|
623
|
+
deletePerson(personId: number, options?: any): AxiosPromise<void> {
|
|
624
|
+
return localVarFp.deletePerson(personId, options).then((request) => request(axios, basePath));
|
|
625
|
+
},
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @summary Get person groups
|
|
629
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
630
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
631
|
+
* @param {number} personId Person ID.
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
getAllGroupsByPersonId(page: number, size: number, personId: number, options?: any): AxiosPromise<GroupPage> {
|
|
636
|
+
return localVarFp.getAllGroupsByPersonId(page, size, personId, options).then((request) => request(axios, basePath));
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @summary Get person images
|
|
641
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
642
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
643
|
+
* @param {number} personId Person ID.
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
getAllImagesByPersonId(page: number, size: number, personId: number, options?: any): AxiosPromise<ImagePage> {
|
|
648
|
+
return localVarFp.getAllImagesByPersonId(page, size, personId, options).then((request) => request(axios, basePath));
|
|
649
|
+
},
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @summary Get persons
|
|
653
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
654
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
getAllPersons(page: number, size: number, options?: any): AxiosPromise<PersonsPage> {
|
|
659
|
+
return localVarFp.getAllPersons(page, size, options).then((request) => request(axios, basePath));
|
|
660
|
+
},
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @summary Get person image by id
|
|
664
|
+
* @param {number} imageId Image ID.
|
|
665
|
+
* @param {number} personId Person ID.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
*/
|
|
669
|
+
getImageOfPerson(imageId: number, personId: number, options?: any): AxiosPromise<any> {
|
|
670
|
+
return localVarFp.getImageOfPerson(imageId, personId, options).then((request) => request(axios, basePath));
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @summary Get person
|
|
675
|
+
* @param {number} personId Person ID.
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
getPerson(personId: number, options?: any): AxiosPromise<Person> {
|
|
680
|
+
return localVarFp.getPerson(personId, options).then((request) => request(axios, basePath));
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @summary Update person
|
|
685
|
+
* @param {number} personId Person ID.
|
|
686
|
+
* @param {PersonFields} personFields Request body for the Person to update.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
updatePerson(personId: number, personFields: PersonFields, options?: any): AxiosPromise<void> {
|
|
691
|
+
return localVarFp.updatePerson(personId, personFields, options).then((request) => request(axios, basePath));
|
|
692
|
+
},
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* PersonApi - object-oriented interface
|
|
698
|
+
* @export
|
|
699
|
+
* @class PersonApi
|
|
700
|
+
* @extends {BaseAPI}
|
|
701
|
+
*/
|
|
702
|
+
export class PersonApi extends BaseAPI {
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @summary Add person image
|
|
706
|
+
* @param {number} personId Person ID.
|
|
707
|
+
* @param {ImageFields} imageFields Image to add.
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
* @memberof PersonApi
|
|
711
|
+
*/
|
|
712
|
+
public addImageToPerson(personId: number, imageFields: ImageFields, options?: AxiosRequestConfig) {
|
|
713
|
+
return PersonApiFp(this.configuration).addImageToPerson(personId, imageFields, options).then((request) => request(this.axios, this.basePath));
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @summary Create person
|
|
719
|
+
* @param {PersonFields} personFields
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
* @memberof PersonApi
|
|
723
|
+
*/
|
|
724
|
+
public createPerson(personFields: PersonFields, options?: AxiosRequestConfig) {
|
|
725
|
+
return PersonApiFp(this.configuration).createPerson(personFields, options).then((request) => request(this.axios, this.basePath));
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @summary Delete image of person
|
|
731
|
+
* @param {number} imageId Image ID.
|
|
732
|
+
* @param {number} personId Person ID.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
* @memberof PersonApi
|
|
736
|
+
*/
|
|
737
|
+
public deleteImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig) {
|
|
738
|
+
return PersonApiFp(this.configuration).deleteImageOfPerson(imageId, personId, options).then((request) => request(this.axios, this.basePath));
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @summary Delete person
|
|
744
|
+
* @param {number} personId Person ID.
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
* @memberof PersonApi
|
|
748
|
+
*/
|
|
749
|
+
public deletePerson(personId: number, options?: AxiosRequestConfig) {
|
|
750
|
+
return PersonApiFp(this.configuration).deletePerson(personId, options).then((request) => request(this.axios, this.basePath));
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @summary Get person groups
|
|
756
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
757
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
758
|
+
* @param {number} personId Person ID.
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
* @memberof PersonApi
|
|
762
|
+
*/
|
|
763
|
+
public getAllGroupsByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig) {
|
|
764
|
+
return PersonApiFp(this.configuration).getAllGroupsByPersonId(page, size, personId, options).then((request) => request(this.axios, this.basePath));
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @summary Get person images
|
|
770
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
771
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
772
|
+
* @param {number} personId Person ID.
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
* @memberof PersonApi
|
|
776
|
+
*/
|
|
777
|
+
public getAllImagesByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig) {
|
|
778
|
+
return PersonApiFp(this.configuration).getAllImagesByPersonId(page, size, personId, options).then((request) => request(this.axios, this.basePath));
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @summary Get persons
|
|
784
|
+
* @param {number} page The page number to get a list of persons or groups.
|
|
785
|
+
* @param {number} size The page size with a list of persons or groups, items.
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
* @memberof PersonApi
|
|
789
|
+
*/
|
|
790
|
+
public getAllPersons(page: number, size: number, options?: AxiosRequestConfig) {
|
|
791
|
+
return PersonApiFp(this.configuration).getAllPersons(page, size, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @summary Get person image by id
|
|
797
|
+
* @param {number} imageId Image ID.
|
|
798
|
+
* @param {number} personId Person ID.
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
* @memberof PersonApi
|
|
802
|
+
*/
|
|
803
|
+
public getImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig) {
|
|
804
|
+
return PersonApiFp(this.configuration).getImageOfPerson(imageId, personId, options).then((request) => request(this.axios, this.basePath));
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @summary Get person
|
|
810
|
+
* @param {number} personId Person ID.
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
* @memberof PersonApi
|
|
814
|
+
*/
|
|
815
|
+
public getPerson(personId: number, options?: AxiosRequestConfig) {
|
|
816
|
+
return PersonApiFp(this.configuration).getPerson(personId, options).then((request) => request(this.axios, this.basePath));
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @summary Update person
|
|
822
|
+
* @param {number} personId Person ID.
|
|
823
|
+
* @param {PersonFields} personFields Request body for the Person to update.
|
|
824
|
+
* @param {*} [options] Override http request option.
|
|
825
|
+
* @throws {RequiredError}
|
|
826
|
+
* @memberof PersonApi
|
|
827
|
+
*/
|
|
828
|
+
public updatePerson(personId: number, personFields: PersonFields, options?: AxiosRequestConfig) {
|
|
829
|
+
return PersonApiFp(this.configuration).updatePerson(personId, personFields, options).then((request) => request(this.axios, this.basePath));
|
|
830
|
+
}
|
|
831
|
+
}
|