@regulaforensics/facesdk-webclient 5.1.1 → 5.2.0
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/.github/workflows/run-smoke-test.yml +0 -3
- package/.github/workflows/trivy-scan.yaml +24 -0
- package/dist/cjs-es5/api/diagnostics-api.js +199 -0
- package/dist/cjs-es5/api/group-api.js +60 -60
- package/dist/cjs-es5/api/liveness20-api.js +5 -5
- package/dist/cjs-es5/api/matching-api.js +21 -21
- package/dist/cjs-es5/api/person-api.js +96 -189
- package/dist/cjs-es5/api/search-api.js +10 -10
- package/dist/cjs-es5/api.js +3 -2
- package/dist/cjs-es5/base.js +1 -1
- package/dist/cjs-es5/common.js +1 -1
- package/dist/cjs-es5/configuration.js +1 -1
- package/dist/cjs-es5/ext/person-api.js +1 -4
- package/dist/cjs-es5/models/crop.js +1 -1
- package/dist/cjs-es5/models/detect-request-attributes.js +16 -0
- package/dist/cjs-es5/models/detect-request.js +1 -1
- package/dist/cjs-es5/models/detect-response-all-of.js +1 -1
- package/dist/cjs-es5/models/detect-response.js +1 -1
- package/dist/cjs-es5/models/detect-result.js +1 -1
- package/dist/cjs-es5/models/detection-face.js +1 -1
- package/dist/cjs-es5/models/detection-quality.js +1 -1
- package/dist/cjs-es5/models/detection.js +1 -1
- package/dist/cjs-es5/models/face-attribute.js +37 -0
- package/dist/cjs-es5/models/face-image-quality-align-type.js +1 -1
- package/dist/cjs-es5/models/face-image-quality-groups.js +1 -1
- package/dist/cjs-es5/models/face-image-quality-status.js +1 -1
- package/dist/cjs-es5/models/face-quality-config-name.js +5 -4
- package/dist/cjs-es5/models/face-quality-scenarios.js +2 -2
- package/dist/cjs-es5/models/face-sdkresult-code.js +27 -26
- package/dist/cjs-es5/models/face-sdkresult.js +1 -1
- package/dist/cjs-es5/models/faces-response-all-of.js +1 -1
- package/dist/cjs-es5/models/faces-response.js +1 -1
- package/dist/cjs-es5/models/group-all-of.js +1 -1
- package/dist/cjs-es5/models/group-page-all-of.js +1 -1
- package/dist/cjs-es5/models/group-page.js +1 -1
- package/dist/cjs-es5/models/group-to-create.js +1 -1
- package/dist/cjs-es5/models/group.js +1 -1
- package/dist/cjs-es5/models/image-fields-image.js +1 -1
- package/dist/cjs-es5/models/image-fields.js +1 -1
- package/dist/cjs-es5/models/image-page-all-of.js +1 -1
- package/dist/cjs-es5/models/image-page.js +1 -1
- package/dist/cjs-es5/models/image-source.js +2 -2
- package/dist/cjs-es5/models/image.js +1 -1
- package/dist/cjs-es5/models/index.js +8 -1
- package/dist/cjs-es5/models/match-and-search-request-all-of-images.js +1 -1
- package/dist/cjs-es5/models/match-and-search-request-all-of.js +1 -1
- package/dist/cjs-es5/models/match-and-search-request.js +1 -1
- package/dist/cjs-es5/models/match-and-search-response-all-of-detections.js +1 -1
- package/dist/cjs-es5/models/match-and-search-response-all-of.js +1 -1
- package/dist/cjs-es5/models/match-and-search-response.js +1 -1
- package/dist/cjs-es5/models/match-image-detection.js +1 -1
- package/dist/cjs-es5/models/match-image-result.js +1 -1
- package/dist/cjs-es5/models/match-image.js +1 -1
- package/dist/cjs-es5/models/match-request.js +1 -1
- package/dist/cjs-es5/models/match-response-all-of.js +1 -1
- package/dist/cjs-es5/models/match-response.js +1 -1
- package/dist/cjs-es5/models/operation-log.js +1 -1
- package/dist/cjs-es5/models/output-image-params.js +1 -1
- package/dist/cjs-es5/models/page.js +1 -1
- package/dist/cjs-es5/models/person-all-of.js +1 -1
- package/dist/cjs-es5/models/person-created-response.js +16 -0
- package/dist/cjs-es5/models/person-fields.js +1 -1
- package/dist/cjs-es5/models/person-with-images-all-of.js +1 -1
- package/dist/cjs-es5/models/person-with-images.js +1 -1
- package/dist/cjs-es5/models/person.js +1 -1
- package/dist/cjs-es5/models/persons-page-all-of.js +1 -1
- package/dist/cjs-es5/models/persons-page.js +1 -1
- package/dist/cjs-es5/models/process-param.js +1 -1
- package/dist/cjs-es5/models/quality-config.js +1 -1
- package/dist/cjs-es5/models/quality-detail.js +1 -1
- package/dist/cjs-es5/models/quality-details-groups.js +1 -1
- package/dist/cjs-es5/models/quality-request.js +1 -1
- package/dist/cjs-es5/models/recognize-image-all-of.js +1 -1
- package/dist/cjs-es5/models/recognize-image.js +1 -1
- package/dist/cjs-es5/models/resize-options.js +16 -0
- package/dist/cjs-es5/models/search-bad-params.js +16 -0
- package/dist/cjs-es5/models/search-detection.js +16 -0
- package/dist/cjs-es5/models/search-parameters-create-person.js +16 -0
- package/dist/cjs-es5/models/search-parameters.js +1 -1
- package/dist/cjs-es5/models/search-person-all-of.js +1 -1
- package/dist/cjs-es5/models/search-person.js +1 -1
- package/dist/cjs-es5/models/search-request.js +1 -1
- package/dist/cjs-es5/models/search-result.js +1 -1
- package/dist/cjs-es5/models/transaction-info.js +1 -1
- package/dist/cjs-es5/models/update-group.js +1 -1
- package/dist/esm-es5/api/diagnostics-api.js +196 -0
- package/dist/esm-es5/api/group-api.js +60 -60
- package/dist/esm-es5/api/liveness20-api.js +5 -5
- package/dist/esm-es5/api/matching-api.js +21 -21
- package/dist/esm-es5/api/person-api.js +96 -189
- package/dist/esm-es5/api/search-api.js +10 -10
- package/dist/esm-es5/api.js +3 -2
- package/dist/esm-es5/base.js +1 -1
- package/dist/esm-es5/common.js +1 -1
- package/dist/esm-es5/configuration.js +1 -1
- package/dist/esm-es5/ext/person-api.js +1 -4
- package/dist/esm-es5/models/crop.js +1 -1
- package/dist/esm-es5/models/detect-request-attributes.js +14 -0
- package/dist/esm-es5/models/detect-request.js +1 -1
- package/dist/esm-es5/models/detect-response-all-of.js +1 -1
- package/dist/esm-es5/models/detect-response.js +1 -1
- package/dist/esm-es5/models/detect-result.js +1 -1
- package/dist/esm-es5/models/detection-face.js +1 -1
- package/dist/esm-es5/models/detection-quality.js +1 -1
- package/dist/esm-es5/models/detection.js +1 -1
- package/dist/esm-es5/models/face-attribute.js +34 -0
- package/dist/esm-es5/models/face-image-quality-align-type.js +1 -1
- package/dist/esm-es5/models/face-image-quality-groups.js +1 -1
- package/dist/esm-es5/models/face-image-quality-status.js +1 -1
- package/dist/esm-es5/models/face-quality-config-name.js +5 -4
- package/dist/esm-es5/models/face-quality-scenarios.js +2 -2
- package/dist/esm-es5/models/face-sdkresult-code.js +27 -26
- package/dist/esm-es5/models/face-sdkresult.js +1 -1
- package/dist/esm-es5/models/faces-response-all-of.js +1 -1
- package/dist/esm-es5/models/faces-response.js +1 -1
- package/dist/esm-es5/models/group-all-of.js +1 -1
- package/dist/esm-es5/models/group-page-all-of.js +1 -1
- package/dist/esm-es5/models/group-page.js +1 -1
- package/dist/esm-es5/models/group-to-create.js +1 -1
- package/dist/esm-es5/models/group.js +1 -1
- package/dist/esm-es5/models/image-fields-image.js +1 -1
- package/dist/esm-es5/models/image-fields.js +1 -1
- package/dist/esm-es5/models/image-page-all-of.js +1 -1
- package/dist/esm-es5/models/image-page.js +1 -1
- package/dist/esm-es5/models/image-source.js +2 -2
- package/dist/esm-es5/models/image.js +1 -1
- package/dist/esm-es5/models/index.js +8 -1
- package/dist/esm-es5/models/match-and-search-request-all-of-images.js +1 -1
- package/dist/esm-es5/models/match-and-search-request-all-of.js +1 -1
- package/dist/esm-es5/models/match-and-search-request.js +1 -1
- package/dist/esm-es5/models/match-and-search-response-all-of-detections.js +1 -1
- package/dist/esm-es5/models/match-and-search-response-all-of.js +1 -1
- package/dist/esm-es5/models/match-and-search-response.js +1 -1
- package/dist/esm-es5/models/match-image-detection.js +1 -1
- package/dist/esm-es5/models/match-image-result.js +1 -1
- package/dist/esm-es5/models/match-image.js +1 -1
- package/dist/esm-es5/models/match-request.js +1 -1
- package/dist/esm-es5/models/match-response-all-of.js +1 -1
- package/dist/esm-es5/models/match-response.js +1 -1
- package/dist/esm-es5/models/operation-log.js +1 -1
- package/dist/esm-es5/models/output-image-params.js +1 -1
- package/dist/esm-es5/models/page.js +1 -1
- package/dist/esm-es5/models/person-all-of.js +1 -1
- package/dist/esm-es5/models/person-created-response.js +14 -0
- package/dist/esm-es5/models/person-fields.js +1 -1
- package/dist/esm-es5/models/person-with-images-all-of.js +1 -1
- package/dist/esm-es5/models/person-with-images.js +1 -1
- package/dist/esm-es5/models/person.js +1 -1
- package/dist/esm-es5/models/persons-page-all-of.js +1 -1
- package/dist/esm-es5/models/persons-page.js +1 -1
- package/dist/esm-es5/models/process-param.js +1 -1
- package/dist/esm-es5/models/quality-config.js +1 -1
- package/dist/esm-es5/models/quality-detail.js +1 -1
- package/dist/esm-es5/models/quality-details-groups.js +1 -1
- package/dist/esm-es5/models/quality-request.js +1 -1
- package/dist/esm-es5/models/recognize-image-all-of.js +1 -1
- package/dist/esm-es5/models/recognize-image.js +1 -1
- package/dist/esm-es5/models/resize-options.js +14 -0
- package/dist/esm-es5/models/search-bad-params.js +14 -0
- package/dist/esm-es5/models/search-detection.js +14 -0
- package/dist/esm-es5/models/search-parameters-create-person.js +14 -0
- package/dist/esm-es5/models/search-parameters.js +1 -1
- package/dist/esm-es5/models/search-person-all-of.js +1 -1
- package/dist/esm-es5/models/search-person.js +1 -1
- package/dist/esm-es5/models/search-request.js +1 -1
- package/dist/esm-es5/models/search-result.js +1 -1
- package/dist/esm-es5/models/transaction-info.js +1 -1
- package/dist/esm-es5/models/update-group.js +1 -1
- package/package.json +1 -1
- package/src/api/diagnostics-api.ts +126 -0
- package/src/api/group-api.ts +79 -79
- package/src/api/liveness20-api.ts +5 -5
- package/src/api/matching-api.ts +21 -21
- package/src/api/person-api.ts +127 -217
- package/src/api/search-api.ts +12 -10
- package/src/api.ts +2 -1
- package/src/base.ts +1 -1
- package/src/common.ts +1 -1
- package/src/configuration.ts +1 -1
- package/src/ext/group-api.ts +5 -5
- package/src/ext/person-api.ts +8 -11
- package/src/models/crop.ts +3 -3
- package/src/models/detect-request-attributes.ts +31 -0
- package/src/models/detect-request.ts +5 -4
- package/src/models/detect-response-all-of.ts +1 -1
- package/src/models/detect-response.ts +1 -1
- package/src/models/detect-result.ts +1 -1
- package/src/models/detection-face.ts +9 -3
- package/src/models/detection-quality.ts +1 -1
- package/src/models/detection.ts +2 -2
- package/src/models/face-attribute.ts +42 -0
- package/src/models/face-image-quality-align-type.ts +1 -1
- package/src/models/face-image-quality-groups.ts +1 -1
- package/src/models/face-image-quality-status.ts +1 -1
- package/src/models/face-quality-config-name.ts +4 -3
- package/src/models/face-quality-scenarios.ts +2 -2
- package/src/models/face-sdkresult-code.ts +26 -25
- package/src/models/face-sdkresult.ts +1 -1
- package/src/models/faces-response-all-of.ts +1 -1
- package/src/models/faces-response.ts +1 -1
- package/src/models/group-all-of.ts +5 -5
- package/src/models/group-page-all-of.ts +2 -2
- package/src/models/group-page.ts +1 -1
- package/src/models/group-to-create.ts +7 -1
- package/src/models/group.ts +1 -1
- package/src/models/image-fields-image.ts +17 -4
- package/src/models/image-fields.ts +33 -2
- package/src/models/image-page-all-of.ts +1 -1
- package/src/models/image-page.ts +1 -1
- package/src/models/image-source.ts +2 -2
- package/src/models/image.ts +10 -10
- package/src/models/index.ts +7 -0
- package/src/models/match-and-search-request-all-of-images.ts +1 -1
- package/src/models/match-and-search-request-all-of.ts +8 -2
- package/src/models/match-and-search-request.ts +2 -1
- package/src/models/match-and-search-response-all-of-detections.ts +2 -2
- package/src/models/match-and-search-response-all-of.ts +1 -1
- package/src/models/match-and-search-response.ts +1 -1
- package/src/models/match-image-detection.ts +3 -3
- package/src/models/match-image-result.ts +20 -20
- package/src/models/match-image.ts +8 -2
- package/src/models/match-request.ts +3 -3
- package/src/models/match-response-all-of.ts +7 -7
- package/src/models/match-response.ts +1 -1
- package/src/models/operation-log.ts +2 -2
- package/src/models/output-image-params.ts +2 -2
- package/src/models/page.ts +2 -2
- package/src/models/person-all-of.ts +12 -6
- package/src/models/person-created-response.ts +43 -0
- package/src/models/person-fields.ts +13 -1
- package/src/models/person-with-images-all-of.ts +1 -1
- package/src/models/person-with-images.ts +1 -1
- package/src/models/person.ts +1 -1
- package/src/models/persons-page-all-of.ts +1 -1
- package/src/models/persons-page.ts +1 -1
- package/src/models/process-param.ts +1 -1
- package/src/models/quality-config.ts +5 -5
- package/src/models/quality-detail.ts +1 -1
- package/src/models/quality-details-groups.ts +3 -4
- package/src/models/quality-request.ts +2 -2
- package/src/models/recognize-image-all-of.ts +3 -3
- package/src/models/recognize-image.ts +1 -1
- package/src/models/resize-options.ts +42 -0
- package/src/models/search-bad-params.ts +42 -0
- package/src/models/search-detection.ts +90 -0
- package/src/models/search-parameters-create-person.ts +36 -0
- package/src/models/search-parameters.ts +7 -12
- package/src/models/search-person-all-of.ts +9 -2
- package/src/models/search-person.ts +2 -1
- package/src/models/search-request.ts +3 -1
- package/src/models/search-result.ts +3 -3
- package/src/models/transaction-info.ts +18 -6
- package/src/models/update-group.ts +5 -5
package/src/api/person-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Regula FaceSDK Web API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.2.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,8 +34,6 @@ import { OperationLog } from '../models';
|
|
|
34
34
|
import { Person } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { PersonFields } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
import { PersonsPage } from '../models';
|
|
39
37
|
/**
|
|
40
38
|
* PersonApi - axios parameter creator
|
|
41
39
|
* @export
|
|
@@ -45,19 +43,19 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
45
43
|
/**
|
|
46
44
|
*
|
|
47
45
|
* @summary Add person image
|
|
48
|
-
* @param {
|
|
46
|
+
* @param {string} personId Person ID.
|
|
49
47
|
* @param {ImageFields} imageFields Image to add.
|
|
50
|
-
* @param {string} [xRequestID]
|
|
48
|
+
* @param {string} [xRequestID] Request header label.
|
|
51
49
|
* @param {*} [options] Override http request option.
|
|
52
50
|
* @throws {RequiredError}
|
|
53
51
|
*/
|
|
54
|
-
addImageToPerson: async (personId:
|
|
52
|
+
addImageToPerson: async (personId: string, imageFields: ImageFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
53
|
// verify required parameter 'personId' is not null or undefined
|
|
56
54
|
assertParamExists('addImageToPerson', 'personId', personId)
|
|
57
55
|
// verify required parameter 'imageFields' is not null or undefined
|
|
58
56
|
assertParamExists('addImageToPerson', 'imageFields', imageFields)
|
|
59
|
-
const localVarPath = `/api/persons/{
|
|
60
|
-
.replace(`{${"
|
|
57
|
+
const localVarPath = `/api/persons/{personId}/images`
|
|
58
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
61
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
63
61
|
let baseOptions;
|
|
@@ -91,7 +89,7 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
91
89
|
*
|
|
92
90
|
* @summary Create person
|
|
93
91
|
* @param {PersonFields} personFields
|
|
94
|
-
* @param {string} [xRequestID]
|
|
92
|
+
* @param {string} [xRequestID] Request header label.
|
|
95
93
|
* @param {*} [options] Override http request option.
|
|
96
94
|
* @throws {RequiredError}
|
|
97
95
|
*/
|
|
@@ -131,20 +129,20 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
131
129
|
/**
|
|
132
130
|
*
|
|
133
131
|
* @summary Delete image of person
|
|
134
|
-
* @param {
|
|
135
|
-
* @param {
|
|
136
|
-
* @param {string} [xRequestID]
|
|
132
|
+
* @param {string} imageId Image ID.
|
|
133
|
+
* @param {string} personId Person ID.
|
|
134
|
+
* @param {string} [xRequestID] Request header label.
|
|
137
135
|
* @param {*} [options] Override http request option.
|
|
138
136
|
* @throws {RequiredError}
|
|
139
137
|
*/
|
|
140
|
-
deleteImageOfPerson: async (imageId:
|
|
138
|
+
deleteImageOfPerson: async (imageId: string, personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
139
|
// verify required parameter 'imageId' is not null or undefined
|
|
142
140
|
assertParamExists('deleteImageOfPerson', 'imageId', imageId)
|
|
143
141
|
// verify required parameter 'personId' is not null or undefined
|
|
144
142
|
assertParamExists('deleteImageOfPerson', 'personId', personId)
|
|
145
|
-
const localVarPath = `/api/persons/{
|
|
146
|
-
.replace(`{${"
|
|
147
|
-
.replace(`{${"
|
|
143
|
+
const localVarPath = `/api/persons/{personId}/images/{imageId}`
|
|
144
|
+
.replace(`{${"imageId"}}`, encodeURIComponent(String(imageId)))
|
|
145
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
148
146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
148
|
let baseOptions;
|
|
@@ -174,16 +172,16 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
174
172
|
/**
|
|
175
173
|
*
|
|
176
174
|
* @summary Delete person
|
|
177
|
-
* @param {
|
|
178
|
-
* @param {string} [xRequestID]
|
|
175
|
+
* @param {string} personId Person ID.
|
|
176
|
+
* @param {string} [xRequestID] Request header label.
|
|
179
177
|
* @param {*} [options] Override http request option.
|
|
180
178
|
* @throws {RequiredError}
|
|
181
179
|
*/
|
|
182
|
-
deletePerson: async (personId:
|
|
180
|
+
deletePerson: async (personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
183
181
|
// verify required parameter 'personId' is not null or undefined
|
|
184
182
|
assertParamExists('deletePerson', 'personId', personId)
|
|
185
|
-
const localVarPath = `/api/persons/{
|
|
186
|
-
.replace(`{${"
|
|
183
|
+
const localVarPath = `/api/persons/{personId}`
|
|
184
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
187
185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
189
187
|
let baseOptions;
|
|
@@ -215,20 +213,20 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
215
213
|
* @summary Get person groups
|
|
216
214
|
* @param {number} page The page number to get a list of persons or groups.
|
|
217
215
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
218
|
-
* @param {
|
|
219
|
-
* @param {string} [xRequestID]
|
|
216
|
+
* @param {string} personId Person ID.
|
|
217
|
+
* @param {string} [xRequestID] Request header label.
|
|
220
218
|
* @param {*} [options] Override http request option.
|
|
221
219
|
* @throws {RequiredError}
|
|
222
220
|
*/
|
|
223
|
-
getAllGroupsByPersonId: async (page: number, size: number, personId:
|
|
221
|
+
getAllGroupsByPersonId: async (page: number, size: number, personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
224
222
|
// verify required parameter 'page' is not null or undefined
|
|
225
223
|
assertParamExists('getAllGroupsByPersonId', 'page', page)
|
|
226
224
|
// verify required parameter 'size' is not null or undefined
|
|
227
225
|
assertParamExists('getAllGroupsByPersonId', 'size', size)
|
|
228
226
|
// verify required parameter 'personId' is not null or undefined
|
|
229
227
|
assertParamExists('getAllGroupsByPersonId', 'personId', personId)
|
|
230
|
-
const localVarPath = `/api/persons/{
|
|
231
|
-
.replace(`{${"
|
|
228
|
+
const localVarPath = `/api/persons/{personId}/groups`
|
|
229
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
232
230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
233
231
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
234
232
|
let baseOptions;
|
|
@@ -268,69 +266,20 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
268
266
|
* @summary Get person images
|
|
269
267
|
* @param {number} page The page number to get a list of persons or groups.
|
|
270
268
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
271
|
-
* @param {
|
|
272
|
-
* @param {string} [xRequestID]
|
|
269
|
+
* @param {string} personId Person ID.
|
|
270
|
+
* @param {string} [xRequestID] Request header label.
|
|
273
271
|
* @param {*} [options] Override http request option.
|
|
274
272
|
* @throws {RequiredError}
|
|
275
273
|
*/
|
|
276
|
-
getAllImagesByPersonId: async (page: number, size: number, personId:
|
|
274
|
+
getAllImagesByPersonId: async (page: number, size: number, personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
277
275
|
// verify required parameter 'page' is not null or undefined
|
|
278
276
|
assertParamExists('getAllImagesByPersonId', 'page', page)
|
|
279
277
|
// verify required parameter 'size' is not null or undefined
|
|
280
278
|
assertParamExists('getAllImagesByPersonId', 'size', size)
|
|
281
279
|
// verify required parameter 'personId' is not null or undefined
|
|
282
280
|
assertParamExists('getAllImagesByPersonId', 'personId', personId)
|
|
283
|
-
const localVarPath = `/api/persons/{
|
|
284
|
-
.replace(`{${"
|
|
285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
-
let baseOptions;
|
|
288
|
-
if (configuration) {
|
|
289
|
-
baseOptions = configuration.baseOptions;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
293
|
-
const localVarHeaderParameter = {} as any;
|
|
294
|
-
const localVarQueryParameter = {} as any;
|
|
295
|
-
|
|
296
|
-
if (page !== undefined) {
|
|
297
|
-
localVarQueryParameter['page'] = page;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if (size !== undefined) {
|
|
301
|
-
localVarQueryParameter['size'] = size;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
if (xRequestID !== undefined && xRequestID !== null) {
|
|
305
|
-
localVarHeaderParameter['X-RequestID'] = String(xRequestID);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
313
|
-
|
|
314
|
-
return {
|
|
315
|
-
url: toPathString(localVarUrlObj),
|
|
316
|
-
options: localVarRequestOptions,
|
|
317
|
-
};
|
|
318
|
-
},
|
|
319
|
-
/**
|
|
320
|
-
*
|
|
321
|
-
* @summary Get persons
|
|
322
|
-
* @param {number} page The page number to get a list of persons or groups.
|
|
323
|
-
* @param {number} size The page size with a list of persons or groups, items.
|
|
324
|
-
* @param {string} [xRequestID]
|
|
325
|
-
* @param {*} [options] Override http request option.
|
|
326
|
-
* @throws {RequiredError}
|
|
327
|
-
*/
|
|
328
|
-
getAllPersons: async (page: number, size: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
329
|
-
// verify required parameter 'page' is not null or undefined
|
|
330
|
-
assertParamExists('getAllPersons', 'page', page)
|
|
331
|
-
// verify required parameter 'size' is not null or undefined
|
|
332
|
-
assertParamExists('getAllPersons', 'size', size)
|
|
333
|
-
const localVarPath = `/api/persons`;
|
|
281
|
+
const localVarPath = `/api/persons/{personId}/images`
|
|
282
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
334
283
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
335
284
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
336
285
|
let baseOptions;
|
|
@@ -368,20 +317,20 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
368
317
|
/**
|
|
369
318
|
*
|
|
370
319
|
* @summary Get person image by id
|
|
371
|
-
* @param {
|
|
372
|
-
* @param {
|
|
373
|
-
* @param {string} [xRequestID]
|
|
320
|
+
* @param {string} imageId Image ID.
|
|
321
|
+
* @param {string} personId Person ID.
|
|
322
|
+
* @param {string} [xRequestID] Request header label.
|
|
374
323
|
* @param {*} [options] Override http request option.
|
|
375
324
|
* @throws {RequiredError}
|
|
376
325
|
*/
|
|
377
|
-
getImageOfPerson: async (imageId:
|
|
326
|
+
getImageOfPerson: async (imageId: string, personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
378
327
|
// verify required parameter 'imageId' is not null or undefined
|
|
379
328
|
assertParamExists('getImageOfPerson', 'imageId', imageId)
|
|
380
329
|
// verify required parameter 'personId' is not null or undefined
|
|
381
330
|
assertParamExists('getImageOfPerson', 'personId', personId)
|
|
382
|
-
const localVarPath = `/api/persons/{
|
|
383
|
-
.replace(`{${"
|
|
384
|
-
.replace(`{${"
|
|
331
|
+
const localVarPath = `/api/persons/{personId}/images/{imageId}`
|
|
332
|
+
.replace(`{${"imageId"}}`, encodeURIComponent(String(imageId)))
|
|
333
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
385
334
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
386
335
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
387
336
|
let baseOptions;
|
|
@@ -411,16 +360,16 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
411
360
|
/**
|
|
412
361
|
*
|
|
413
362
|
* @summary Get person
|
|
414
|
-
* @param {
|
|
415
|
-
* @param {string} [xRequestID]
|
|
363
|
+
* @param {string} personId Person ID.
|
|
364
|
+
* @param {string} [xRequestID] Request header label.
|
|
416
365
|
* @param {*} [options] Override http request option.
|
|
417
366
|
* @throws {RequiredError}
|
|
418
367
|
*/
|
|
419
|
-
getPerson: async (personId:
|
|
368
|
+
getPerson: async (personId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
420
369
|
// verify required parameter 'personId' is not null or undefined
|
|
421
370
|
assertParamExists('getPerson', 'personId', personId)
|
|
422
|
-
const localVarPath = `/api/persons/{
|
|
423
|
-
.replace(`{${"
|
|
371
|
+
const localVarPath = `/api/persons/{personId}`
|
|
372
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
424
373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
425
374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
426
375
|
let baseOptions;
|
|
@@ -450,19 +399,19 @@ export const PersonApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
450
399
|
/**
|
|
451
400
|
*
|
|
452
401
|
* @summary Update person
|
|
453
|
-
* @param {
|
|
402
|
+
* @param {string} personId Person ID.
|
|
454
403
|
* @param {PersonFields} personFields Request body for the Person to update.
|
|
455
|
-
* @param {string} [xRequestID]
|
|
404
|
+
* @param {string} [xRequestID] Request header label.
|
|
456
405
|
* @param {*} [options] Override http request option.
|
|
457
406
|
* @throws {RequiredError}
|
|
458
407
|
*/
|
|
459
|
-
updatePerson: async (personId:
|
|
408
|
+
updatePerson: async (personId: string, personFields: PersonFields, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
460
409
|
// verify required parameter 'personId' is not null or undefined
|
|
461
410
|
assertParamExists('updatePerson', 'personId', personId)
|
|
462
411
|
// verify required parameter 'personFields' is not null or undefined
|
|
463
412
|
assertParamExists('updatePerson', 'personFields', personFields)
|
|
464
|
-
const localVarPath = `/api/persons/{
|
|
465
|
-
.replace(`{${"
|
|
413
|
+
const localVarPath = `/api/persons/{personId}`
|
|
414
|
+
.replace(`{${"personId"}}`, encodeURIComponent(String(personId)));
|
|
466
415
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
467
416
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
417
|
let baseOptions;
|
|
@@ -505,13 +454,13 @@ export const PersonApiFp = function(configuration?: Configuration) {
|
|
|
505
454
|
/**
|
|
506
455
|
*
|
|
507
456
|
* @summary Add person image
|
|
508
|
-
* @param {
|
|
457
|
+
* @param {string} personId Person ID.
|
|
509
458
|
* @param {ImageFields} imageFields Image to add.
|
|
510
|
-
* @param {string} [xRequestID]
|
|
459
|
+
* @param {string} [xRequestID] Request header label.
|
|
511
460
|
* @param {*} [options] Override http request option.
|
|
512
461
|
* @throws {RequiredError}
|
|
513
462
|
*/
|
|
514
|
-
async addImageToPerson(personId:
|
|
463
|
+
async addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Image>> {
|
|
515
464
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addImageToPerson(personId, imageFields, xRequestID, options);
|
|
516
465
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
517
466
|
},
|
|
@@ -519,7 +468,7 @@ export const PersonApiFp = function(configuration?: Configuration) {
|
|
|
519
468
|
*
|
|
520
469
|
* @summary Create person
|
|
521
470
|
* @param {PersonFields} personFields
|
|
522
|
-
* @param {string} [xRequestID]
|
|
471
|
+
* @param {string} [xRequestID] Request header label.
|
|
523
472
|
* @param {*} [options] Override http request option.
|
|
524
473
|
* @throws {RequiredError}
|
|
525
474
|
*/
|
|
@@ -530,25 +479,25 @@ export const PersonApiFp = function(configuration?: Configuration) {
|
|
|
530
479
|
/**
|
|
531
480
|
*
|
|
532
481
|
* @summary Delete image of person
|
|
533
|
-
* @param {
|
|
534
|
-
* @param {
|
|
535
|
-
* @param {string} [xRequestID]
|
|
482
|
+
* @param {string} imageId Image ID.
|
|
483
|
+
* @param {string} personId Person ID.
|
|
484
|
+
* @param {string} [xRequestID] Request header label.
|
|
536
485
|
* @param {*} [options] Override http request option.
|
|
537
486
|
* @throws {RequiredError}
|
|
538
487
|
*/
|
|
539
|
-
async deleteImageOfPerson(imageId:
|
|
488
|
+
async deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
540
489
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImageOfPerson(imageId, personId, xRequestID, options);
|
|
541
490
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
542
491
|
},
|
|
543
492
|
/**
|
|
544
493
|
*
|
|
545
494
|
* @summary Delete person
|
|
546
|
-
* @param {
|
|
547
|
-
* @param {string} [xRequestID]
|
|
495
|
+
* @param {string} personId Person ID.
|
|
496
|
+
* @param {string} [xRequestID] Request header label.
|
|
548
497
|
* @param {*} [options] Override http request option.
|
|
549
498
|
* @throws {RequiredError}
|
|
550
499
|
*/
|
|
551
|
-
async deletePerson(personId:
|
|
500
|
+
async deletePerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
552
501
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(personId, xRequestID, options);
|
|
553
502
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
554
503
|
},
|
|
@@ -557,12 +506,12 @@ export const PersonApiFp = function(configuration?: Configuration) {
|
|
|
557
506
|
* @summary Get person groups
|
|
558
507
|
* @param {number} page The page number to get a list of persons or groups.
|
|
559
508
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
560
|
-
* @param {
|
|
561
|
-
* @param {string} [xRequestID]
|
|
509
|
+
* @param {string} personId Person ID.
|
|
510
|
+
* @param {string} [xRequestID] Request header label.
|
|
562
511
|
* @param {*} [options] Override http request option.
|
|
563
512
|
* @throws {RequiredError}
|
|
564
513
|
*/
|
|
565
|
-
async getAllGroupsByPersonId(page: number, size: number, personId:
|
|
514
|
+
async getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPage>> {
|
|
566
515
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroupsByPersonId(page, size, personId, xRequestID, options);
|
|
567
516
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
568
517
|
},
|
|
@@ -571,63 +520,50 @@ export const PersonApiFp = function(configuration?: Configuration) {
|
|
|
571
520
|
* @summary Get person images
|
|
572
521
|
* @param {number} page The page number to get a list of persons or groups.
|
|
573
522
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
574
|
-
* @param {
|
|
575
|
-
* @param {string} [xRequestID]
|
|
523
|
+
* @param {string} personId Person ID.
|
|
524
|
+
* @param {string} [xRequestID] Request header label.
|
|
576
525
|
* @param {*} [options] Override http request option.
|
|
577
526
|
* @throws {RequiredError}
|
|
578
527
|
*/
|
|
579
|
-
async getAllImagesByPersonId(page: number, size: number, personId:
|
|
528
|
+
async getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImagePage>> {
|
|
580
529
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImagesByPersonId(page, size, personId, xRequestID, options);
|
|
581
530
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
531
|
},
|
|
583
|
-
/**
|
|
584
|
-
*
|
|
585
|
-
* @summary Get persons
|
|
586
|
-
* @param {number} page The page number to get a list of persons or groups.
|
|
587
|
-
* @param {number} size The page size with a list of persons or groups, items.
|
|
588
|
-
* @param {string} [xRequestID]
|
|
589
|
-
* @param {*} [options] Override http request option.
|
|
590
|
-
* @throws {RequiredError}
|
|
591
|
-
*/
|
|
592
|
-
async getAllPersons(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonsPage>> {
|
|
593
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersons(page, size, xRequestID, options);
|
|
594
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
595
|
-
},
|
|
596
532
|
/**
|
|
597
533
|
*
|
|
598
534
|
* @summary Get person image by id
|
|
599
|
-
* @param {
|
|
600
|
-
* @param {
|
|
601
|
-
* @param {string} [xRequestID]
|
|
535
|
+
* @param {string} imageId Image ID.
|
|
536
|
+
* @param {string} personId Person ID.
|
|
537
|
+
* @param {string} [xRequestID] Request header label.
|
|
602
538
|
* @param {*} [options] Override http request option.
|
|
603
539
|
* @throws {RequiredError}
|
|
604
540
|
*/
|
|
605
|
-
async getImageOfPerson(imageId:
|
|
541
|
+
async getImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
606
542
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getImageOfPerson(imageId, personId, xRequestID, options);
|
|
607
543
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
608
544
|
},
|
|
609
545
|
/**
|
|
610
546
|
*
|
|
611
547
|
* @summary Get person
|
|
612
|
-
* @param {
|
|
613
|
-
* @param {string} [xRequestID]
|
|
548
|
+
* @param {string} personId Person ID.
|
|
549
|
+
* @param {string} [xRequestID] Request header label.
|
|
614
550
|
* @param {*} [options] Override http request option.
|
|
615
551
|
* @throws {RequiredError}
|
|
616
552
|
*/
|
|
617
|
-
async getPerson(personId:
|
|
553
|
+
async getPerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Person>> {
|
|
618
554
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(personId, xRequestID, options);
|
|
619
555
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
620
556
|
},
|
|
621
557
|
/**
|
|
622
558
|
*
|
|
623
559
|
* @summary Update person
|
|
624
|
-
* @param {
|
|
560
|
+
* @param {string} personId Person ID.
|
|
625
561
|
* @param {PersonFields} personFields Request body for the Person to update.
|
|
626
|
-
* @param {string} [xRequestID]
|
|
562
|
+
* @param {string} [xRequestID] Request header label.
|
|
627
563
|
* @param {*} [options] Override http request option.
|
|
628
564
|
* @throws {RequiredError}
|
|
629
565
|
*/
|
|
630
|
-
async updatePerson(personId:
|
|
566
|
+
async updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
631
567
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(personId, personFields, xRequestID, options);
|
|
632
568
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
633
569
|
},
|
|
@@ -644,20 +580,20 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
|
|
|
644
580
|
/**
|
|
645
581
|
*
|
|
646
582
|
* @summary Add person image
|
|
647
|
-
* @param {
|
|
583
|
+
* @param {string} personId Person ID.
|
|
648
584
|
* @param {ImageFields} imageFields Image to add.
|
|
649
|
-
* @param {string} [xRequestID]
|
|
585
|
+
* @param {string} [xRequestID] Request header label.
|
|
650
586
|
* @param {*} [options] Override http request option.
|
|
651
587
|
* @throws {RequiredError}
|
|
652
588
|
*/
|
|
653
|
-
addImageToPerson(personId:
|
|
589
|
+
addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: any): AxiosPromise<Image> {
|
|
654
590
|
return localVarFp.addImageToPerson(personId, imageFields, xRequestID, options).then((request) => request(axios, basePath));
|
|
655
591
|
},
|
|
656
592
|
/**
|
|
657
593
|
*
|
|
658
594
|
* @summary Create person
|
|
659
595
|
* @param {PersonFields} personFields
|
|
660
|
-
* @param {string} [xRequestID]
|
|
596
|
+
* @param {string} [xRequestID] Request header label.
|
|
661
597
|
* @param {*} [options] Override http request option.
|
|
662
598
|
* @throws {RequiredError}
|
|
663
599
|
*/
|
|
@@ -667,24 +603,24 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
|
|
|
667
603
|
/**
|
|
668
604
|
*
|
|
669
605
|
* @summary Delete image of person
|
|
670
|
-
* @param {
|
|
671
|
-
* @param {
|
|
672
|
-
* @param {string} [xRequestID]
|
|
606
|
+
* @param {string} imageId Image ID.
|
|
607
|
+
* @param {string} personId Person ID.
|
|
608
|
+
* @param {string} [xRequestID] Request header label.
|
|
673
609
|
* @param {*} [options] Override http request option.
|
|
674
610
|
* @throws {RequiredError}
|
|
675
611
|
*/
|
|
676
|
-
deleteImageOfPerson(imageId:
|
|
612
|
+
deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: any): AxiosPromise<void> {
|
|
677
613
|
return localVarFp.deleteImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(axios, basePath));
|
|
678
614
|
},
|
|
679
615
|
/**
|
|
680
616
|
*
|
|
681
617
|
* @summary Delete person
|
|
682
|
-
* @param {
|
|
683
|
-
* @param {string} [xRequestID]
|
|
618
|
+
* @param {string} personId Person ID.
|
|
619
|
+
* @param {string} [xRequestID] Request header label.
|
|
684
620
|
* @param {*} [options] Override http request option.
|
|
685
621
|
* @throws {RequiredError}
|
|
686
622
|
*/
|
|
687
|
-
deletePerson(personId:
|
|
623
|
+
deletePerson(personId: string, xRequestID?: string, options?: any): AxiosPromise<void> {
|
|
688
624
|
return localVarFp.deletePerson(personId, xRequestID, options).then((request) => request(axios, basePath));
|
|
689
625
|
},
|
|
690
626
|
/**
|
|
@@ -692,12 +628,12 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
|
|
|
692
628
|
* @summary Get person groups
|
|
693
629
|
* @param {number} page The page number to get a list of persons or groups.
|
|
694
630
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {string} [xRequestID]
|
|
631
|
+
* @param {string} personId Person ID.
|
|
632
|
+
* @param {string} [xRequestID] Request header label.
|
|
697
633
|
* @param {*} [options] Override http request option.
|
|
698
634
|
* @throws {RequiredError}
|
|
699
635
|
*/
|
|
700
|
-
getAllGroupsByPersonId(page: number, size: number, personId:
|
|
636
|
+
getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: any): AxiosPromise<GroupPage> {
|
|
701
637
|
return localVarFp.getAllGroupsByPersonId(page, size, personId, xRequestID, options).then((request) => request(axios, basePath));
|
|
702
638
|
},
|
|
703
639
|
/**
|
|
@@ -705,59 +641,47 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
|
|
|
705
641
|
* @summary Get person images
|
|
706
642
|
* @param {number} page The page number to get a list of persons or groups.
|
|
707
643
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
708
|
-
* @param {
|
|
709
|
-
* @param {string} [xRequestID]
|
|
644
|
+
* @param {string} personId Person ID.
|
|
645
|
+
* @param {string} [xRequestID] Request header label.
|
|
710
646
|
* @param {*} [options] Override http request option.
|
|
711
647
|
* @throws {RequiredError}
|
|
712
648
|
*/
|
|
713
|
-
getAllImagesByPersonId(page: number, size: number, personId:
|
|
649
|
+
getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: any): AxiosPromise<ImagePage> {
|
|
714
650
|
return localVarFp.getAllImagesByPersonId(page, size, personId, xRequestID, options).then((request) => request(axios, basePath));
|
|
715
651
|
},
|
|
716
|
-
/**
|
|
717
|
-
*
|
|
718
|
-
* @summary Get persons
|
|
719
|
-
* @param {number} page The page number to get a list of persons or groups.
|
|
720
|
-
* @param {number} size The page size with a list of persons or groups, items.
|
|
721
|
-
* @param {string} [xRequestID]
|
|
722
|
-
* @param {*} [options] Override http request option.
|
|
723
|
-
* @throws {RequiredError}
|
|
724
|
-
*/
|
|
725
|
-
getAllPersons(page: number, size: number, xRequestID?: string, options?: any): AxiosPromise<PersonsPage> {
|
|
726
|
-
return localVarFp.getAllPersons(page, size, xRequestID, options).then((request) => request(axios, basePath));
|
|
727
|
-
},
|
|
728
652
|
/**
|
|
729
653
|
*
|
|
730
654
|
* @summary Get person image by id
|
|
731
|
-
* @param {
|
|
732
|
-
* @param {
|
|
733
|
-
* @param {string} [xRequestID]
|
|
655
|
+
* @param {string} imageId Image ID.
|
|
656
|
+
* @param {string} personId Person ID.
|
|
657
|
+
* @param {string} [xRequestID] Request header label.
|
|
734
658
|
* @param {*} [options] Override http request option.
|
|
735
659
|
* @throws {RequiredError}
|
|
736
660
|
*/
|
|
737
|
-
getImageOfPerson(imageId:
|
|
661
|
+
getImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: any): AxiosPromise<any> {
|
|
738
662
|
return localVarFp.getImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(axios, basePath));
|
|
739
663
|
},
|
|
740
664
|
/**
|
|
741
665
|
*
|
|
742
666
|
* @summary Get person
|
|
743
|
-
* @param {
|
|
744
|
-
* @param {string} [xRequestID]
|
|
667
|
+
* @param {string} personId Person ID.
|
|
668
|
+
* @param {string} [xRequestID] Request header label.
|
|
745
669
|
* @param {*} [options] Override http request option.
|
|
746
670
|
* @throws {RequiredError}
|
|
747
671
|
*/
|
|
748
|
-
getPerson(personId:
|
|
672
|
+
getPerson(personId: string, xRequestID?: string, options?: any): AxiosPromise<Person> {
|
|
749
673
|
return localVarFp.getPerson(personId, xRequestID, options).then((request) => request(axios, basePath));
|
|
750
674
|
},
|
|
751
675
|
/**
|
|
752
676
|
*
|
|
753
677
|
* @summary Update person
|
|
754
|
-
* @param {
|
|
678
|
+
* @param {string} personId Person ID.
|
|
755
679
|
* @param {PersonFields} personFields Request body for the Person to update.
|
|
756
|
-
* @param {string} [xRequestID]
|
|
680
|
+
* @param {string} [xRequestID] Request header label.
|
|
757
681
|
* @param {*} [options] Override http request option.
|
|
758
682
|
* @throws {RequiredError}
|
|
759
683
|
*/
|
|
760
|
-
updatePerson(personId:
|
|
684
|
+
updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: any): AxiosPromise<void> {
|
|
761
685
|
return localVarFp.updatePerson(personId, personFields, xRequestID, options).then((request) => request(axios, basePath));
|
|
762
686
|
},
|
|
763
687
|
};
|
|
@@ -773,14 +697,14 @@ export class PersonApi extends BaseAPI {
|
|
|
773
697
|
/**
|
|
774
698
|
*
|
|
775
699
|
* @summary Add person image
|
|
776
|
-
* @param {
|
|
700
|
+
* @param {string} personId Person ID.
|
|
777
701
|
* @param {ImageFields} imageFields Image to add.
|
|
778
|
-
* @param {string} [xRequestID]
|
|
702
|
+
* @param {string} [xRequestID] Request header label.
|
|
779
703
|
* @param {*} [options] Override http request option.
|
|
780
704
|
* @throws {RequiredError}
|
|
781
705
|
* @memberof PersonApi
|
|
782
706
|
*/
|
|
783
|
-
public addImageToPerson(personId:
|
|
707
|
+
public addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
784
708
|
return PersonApiFp(this.configuration).addImageToPerson(personId, imageFields, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
785
709
|
}
|
|
786
710
|
|
|
@@ -788,7 +712,7 @@ export class PersonApi extends BaseAPI {
|
|
|
788
712
|
*
|
|
789
713
|
* @summary Create person
|
|
790
714
|
* @param {PersonFields} personFields
|
|
791
|
-
* @param {string} [xRequestID]
|
|
715
|
+
* @param {string} [xRequestID] Request header label.
|
|
792
716
|
* @param {*} [options] Override http request option.
|
|
793
717
|
* @throws {RequiredError}
|
|
794
718
|
* @memberof PersonApi
|
|
@@ -800,27 +724,27 @@ export class PersonApi extends BaseAPI {
|
|
|
800
724
|
/**
|
|
801
725
|
*
|
|
802
726
|
* @summary Delete image of person
|
|
803
|
-
* @param {
|
|
804
|
-
* @param {
|
|
805
|
-
* @param {string} [xRequestID]
|
|
727
|
+
* @param {string} imageId Image ID.
|
|
728
|
+
* @param {string} personId Person ID.
|
|
729
|
+
* @param {string} [xRequestID] Request header label.
|
|
806
730
|
* @param {*} [options] Override http request option.
|
|
807
731
|
* @throws {RequiredError}
|
|
808
732
|
* @memberof PersonApi
|
|
809
733
|
*/
|
|
810
|
-
public deleteImageOfPerson(imageId:
|
|
734
|
+
public deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
811
735
|
return PersonApiFp(this.configuration).deleteImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
812
736
|
}
|
|
813
737
|
|
|
814
738
|
/**
|
|
815
739
|
*
|
|
816
740
|
* @summary Delete person
|
|
817
|
-
* @param {
|
|
818
|
-
* @param {string} [xRequestID]
|
|
741
|
+
* @param {string} personId Person ID.
|
|
742
|
+
* @param {string} [xRequestID] Request header label.
|
|
819
743
|
* @param {*} [options] Override http request option.
|
|
820
744
|
* @throws {RequiredError}
|
|
821
745
|
* @memberof PersonApi
|
|
822
746
|
*/
|
|
823
|
-
public deletePerson(personId:
|
|
747
|
+
public deletePerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
824
748
|
return PersonApiFp(this.configuration).deletePerson(personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
825
749
|
}
|
|
826
750
|
|
|
@@ -829,13 +753,13 @@ export class PersonApi extends BaseAPI {
|
|
|
829
753
|
* @summary Get person groups
|
|
830
754
|
* @param {number} page The page number to get a list of persons or groups.
|
|
831
755
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
832
|
-
* @param {
|
|
833
|
-
* @param {string} [xRequestID]
|
|
756
|
+
* @param {string} personId Person ID.
|
|
757
|
+
* @param {string} [xRequestID] Request header label.
|
|
834
758
|
* @param {*} [options] Override http request option.
|
|
835
759
|
* @throws {RequiredError}
|
|
836
760
|
* @memberof PersonApi
|
|
837
761
|
*/
|
|
838
|
-
public getAllGroupsByPersonId(page: number, size: number, personId:
|
|
762
|
+
public getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
839
763
|
return PersonApiFp(this.configuration).getAllGroupsByPersonId(page, size, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
840
764
|
}
|
|
841
765
|
|
|
@@ -844,68 +768,54 @@ export class PersonApi extends BaseAPI {
|
|
|
844
768
|
* @summary Get person images
|
|
845
769
|
* @param {number} page The page number to get a list of persons or groups.
|
|
846
770
|
* @param {number} size The page size with a list of persons or groups, items.
|
|
847
|
-
* @param {
|
|
848
|
-
* @param {string} [xRequestID]
|
|
771
|
+
* @param {string} personId Person ID.
|
|
772
|
+
* @param {string} [xRequestID] Request header label.
|
|
849
773
|
* @param {*} [options] Override http request option.
|
|
850
774
|
* @throws {RequiredError}
|
|
851
775
|
* @memberof PersonApi
|
|
852
776
|
*/
|
|
853
|
-
public getAllImagesByPersonId(page: number, size: number, personId:
|
|
777
|
+
public getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
854
778
|
return PersonApiFp(this.configuration).getAllImagesByPersonId(page, size, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
855
779
|
}
|
|
856
780
|
|
|
857
|
-
/**
|
|
858
|
-
*
|
|
859
|
-
* @summary Get persons
|
|
860
|
-
* @param {number} page The page number to get a list of persons or groups.
|
|
861
|
-
* @param {number} size The page size with a list of persons or groups, items.
|
|
862
|
-
* @param {string} [xRequestID]
|
|
863
|
-
* @param {*} [options] Override http request option.
|
|
864
|
-
* @throws {RequiredError}
|
|
865
|
-
* @memberof PersonApi
|
|
866
|
-
*/
|
|
867
|
-
public getAllPersons(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
868
|
-
return PersonApiFp(this.configuration).getAllPersons(page, size, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
869
|
-
}
|
|
870
|
-
|
|
871
781
|
/**
|
|
872
782
|
*
|
|
873
783
|
* @summary Get person image by id
|
|
874
|
-
* @param {
|
|
875
|
-
* @param {
|
|
876
|
-
* @param {string} [xRequestID]
|
|
784
|
+
* @param {string} imageId Image ID.
|
|
785
|
+
* @param {string} personId Person ID.
|
|
786
|
+
* @param {string} [xRequestID] Request header label.
|
|
877
787
|
* @param {*} [options] Override http request option.
|
|
878
788
|
* @throws {RequiredError}
|
|
879
789
|
* @memberof PersonApi
|
|
880
790
|
*/
|
|
881
|
-
public getImageOfPerson(imageId:
|
|
791
|
+
public getImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
882
792
|
return PersonApiFp(this.configuration).getImageOfPerson(imageId, personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
883
793
|
}
|
|
884
794
|
|
|
885
795
|
/**
|
|
886
796
|
*
|
|
887
797
|
* @summary Get person
|
|
888
|
-
* @param {
|
|
889
|
-
* @param {string} [xRequestID]
|
|
798
|
+
* @param {string} personId Person ID.
|
|
799
|
+
* @param {string} [xRequestID] Request header label.
|
|
890
800
|
* @param {*} [options] Override http request option.
|
|
891
801
|
* @throws {RequiredError}
|
|
892
802
|
* @memberof PersonApi
|
|
893
803
|
*/
|
|
894
|
-
public getPerson(personId:
|
|
804
|
+
public getPerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
895
805
|
return PersonApiFp(this.configuration).getPerson(personId, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
896
806
|
}
|
|
897
807
|
|
|
898
808
|
/**
|
|
899
809
|
*
|
|
900
810
|
* @summary Update person
|
|
901
|
-
* @param {
|
|
811
|
+
* @param {string} personId Person ID.
|
|
902
812
|
* @param {PersonFields} personFields Request body for the Person to update.
|
|
903
|
-
* @param {string} [xRequestID]
|
|
813
|
+
* @param {string} [xRequestID] Request header label.
|
|
904
814
|
* @param {*} [options] Override http request option.
|
|
905
815
|
* @throws {RequiredError}
|
|
906
816
|
* @memberof PersonApi
|
|
907
817
|
*/
|
|
908
|
-
public updatePerson(personId:
|
|
818
|
+
public updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
909
819
|
return PersonApiFp(this.configuration).updatePerson(personId, personFields, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
910
820
|
}
|
|
911
821
|
}
|