@regulaforensics/facesdk-webclient 5.2.2 → 5.2.4

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