@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,648 +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 { Group } from '../models';
25
- // @ts-ignore
26
- import { GroupPage } from '../models';
27
- // @ts-ignore
28
- import { GroupToCreate } from '../models';
29
- // @ts-ignore
30
- import { OperationLog } from '../models';
31
- // @ts-ignore
32
- import { PersonsPage } from '../models';
33
- // @ts-ignore
34
- import { UpdateGroup } from '../models';
35
- /**
36
- * GroupApi - axios parameter creator
37
- * @export
38
- */
39
- export const GroupApiAxiosParamCreator = function (configuration?: Configuration) {
40
- return {
41
- /**
42
- *
43
- * @summary Create group
44
- * @param {GroupToCreate} groupToCreate Request body for the group to create.
45
- * @param {string} [xRequestID] Request header label.
46
- * @param {*} [options] Override http request option.
47
- * @throws {RequiredError}
48
- */
49
- createGroup: async (groupToCreate: GroupToCreate, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
- // verify required parameter 'groupToCreate' is not null or undefined
51
- assertParamExists('createGroup', 'groupToCreate', groupToCreate)
52
- const localVarPath = `/api/groups`;
53
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
- let baseOptions;
56
- if (configuration) {
57
- baseOptions = configuration.baseOptions;
58
- }
59
-
60
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
- const localVarHeaderParameter = {} as any;
62
- const localVarQueryParameter = {} as any;
63
-
64
- if (xRequestID !== undefined && xRequestID !== null) {
65
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
66
- }
67
-
68
-
69
-
70
- localVarHeaderParameter['Content-Type'] = 'application/json';
71
-
72
- setSearchParams(localVarUrlObj, localVarQueryParameter);
73
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
- localVarRequestOptions.data = serializeDataIfNeeded(groupToCreate, localVarRequestOptions, configuration)
76
-
77
- return {
78
- url: toPathString(localVarUrlObj),
79
- options: localVarRequestOptions,
80
- };
81
- },
82
- /**
83
- *
84
- * @summary Delete group
85
- * @param {string} groupId Group ID.
86
- * @param {string} [xRequestID] Request header label.
87
- * @param {*} [options] Override http request option.
88
- * @throws {RequiredError}
89
- */
90
- deleteGroup: async (groupId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
91
- // verify required parameter 'groupId' is not null or undefined
92
- assertParamExists('deleteGroup', 'groupId', groupId)
93
- const localVarPath = `/api/groups/{groupId}`
94
- .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
95
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
- let baseOptions;
98
- if (configuration) {
99
- baseOptions = configuration.baseOptions;
100
- }
101
-
102
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
103
- const localVarHeaderParameter = {} as any;
104
- const localVarQueryParameter = {} as any;
105
-
106
- if (xRequestID !== undefined && xRequestID !== null) {
107
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
108
- }
109
-
110
-
111
-
112
- setSearchParams(localVarUrlObj, localVarQueryParameter);
113
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
115
-
116
- return {
117
- url: toPathString(localVarUrlObj),
118
- options: localVarRequestOptions,
119
- };
120
- },
121
- /**
122
- *
123
- * @summary Get groups
124
- * @param {number} page The page number to get a list of persons or groups.
125
- * @param {number} size The page size with a list of persons or groups, items.
126
- * @param {string} [xRequestID] Request header label.
127
- * @param {*} [options] Override http request option.
128
- * @throws {RequiredError}
129
- */
130
- getAllGroups: async (page: number, size: number, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
131
- // verify required parameter 'page' is not null or undefined
132
- assertParamExists('getAllGroups', 'page', page)
133
- // verify required parameter 'size' is not null or undefined
134
- assertParamExists('getAllGroups', 'size', size)
135
- const localVarPath = `/api/groups`;
136
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
- let baseOptions;
139
- if (configuration) {
140
- baseOptions = configuration.baseOptions;
141
- }
142
-
143
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
144
- const localVarHeaderParameter = {} as any;
145
- const localVarQueryParameter = {} as any;
146
-
147
- if (page !== undefined) {
148
- localVarQueryParameter['page'] = page;
149
- }
150
-
151
- if (size !== undefined) {
152
- localVarQueryParameter['size'] = size;
153
- }
154
-
155
- if (xRequestID !== undefined && xRequestID !== null) {
156
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
157
- }
158
-
159
-
160
-
161
- setSearchParams(localVarUrlObj, localVarQueryParameter);
162
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
163
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
164
-
165
- return {
166
- url: toPathString(localVarUrlObj),
167
- options: localVarRequestOptions,
168
- };
169
- },
170
- /**
171
- *
172
- * @summary Get group persons
173
- * @param {number} page The page number to get a list of persons or groups.
174
- * @param {number} size The page size with a list of persons or groups, items.
175
- * @param {string} groupId Group ID.
176
- * @param {string} [xRequestID] Request header label.
177
- * @param {*} [options] Override http request option.
178
- * @throws {RequiredError}
179
- */
180
- getAllPersonsByGroupId: async (page: number, size: number, groupId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
181
- // verify required parameter 'page' is not null or undefined
182
- assertParamExists('getAllPersonsByGroupId', 'page', page)
183
- // verify required parameter 'size' is not null or undefined
184
- assertParamExists('getAllPersonsByGroupId', 'size', size)
185
- // verify required parameter 'groupId' is not null or undefined
186
- assertParamExists('getAllPersonsByGroupId', 'groupId', groupId)
187
- const localVarPath = `/api/groups/{groupId}/persons`
188
- .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
189
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
- let baseOptions;
192
- if (configuration) {
193
- baseOptions = configuration.baseOptions;
194
- }
195
-
196
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
197
- const localVarHeaderParameter = {} as any;
198
- const localVarQueryParameter = {} as any;
199
-
200
- if (page !== undefined) {
201
- localVarQueryParameter['page'] = page;
202
- }
203
-
204
- if (size !== undefined) {
205
- localVarQueryParameter['size'] = size;
206
- }
207
-
208
- if (xRequestID !== undefined && xRequestID !== null) {
209
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
210
- }
211
-
212
-
213
-
214
- setSearchParams(localVarUrlObj, localVarQueryParameter);
215
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
217
-
218
- return {
219
- url: toPathString(localVarUrlObj),
220
- options: localVarRequestOptions,
221
- };
222
- },
223
- /**
224
- *
225
- * @summary Get group
226
- * @param {string} groupId Group ID.
227
- * @param {string} [xRequestID] Request header label.
228
- * @param {*} [options] Override http request option.
229
- * @throws {RequiredError}
230
- */
231
- getGroup: async (groupId: string, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
- // verify required parameter 'groupId' is not null or undefined
233
- assertParamExists('getGroup', 'groupId', groupId)
234
- const localVarPath = `/api/groups/{groupId}`
235
- .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
236
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
238
- let baseOptions;
239
- if (configuration) {
240
- baseOptions = configuration.baseOptions;
241
- }
242
-
243
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
244
- const localVarHeaderParameter = {} as any;
245
- const localVarQueryParameter = {} as any;
246
-
247
- if (xRequestID !== undefined && xRequestID !== null) {
248
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
249
- }
250
-
251
-
252
-
253
- setSearchParams(localVarUrlObj, localVarQueryParameter);
254
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
256
-
257
- return {
258
- url: toPathString(localVarUrlObj),
259
- options: localVarRequestOptions,
260
- };
261
- },
262
- /**
263
- *
264
- * @summary Update group
265
- * @param {string} groupId Group ID.
266
- * @param {GroupToCreate} groupToCreate Request body for the group to update.
267
- * @param {string} [xRequestID] Request header label.
268
- * @param {*} [options] Override http request option.
269
- * @throws {RequiredError}
270
- */
271
- updateGroup: async (groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
- // verify required parameter 'groupId' is not null or undefined
273
- assertParamExists('updateGroup', 'groupId', groupId)
274
- // verify required parameter 'groupToCreate' is not null or undefined
275
- assertParamExists('updateGroup', 'groupToCreate', groupToCreate)
276
- const localVarPath = `/api/groups/{groupId}`
277
- .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
278
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
280
- let baseOptions;
281
- if (configuration) {
282
- baseOptions = configuration.baseOptions;
283
- }
284
-
285
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
286
- const localVarHeaderParameter = {} as any;
287
- const localVarQueryParameter = {} as any;
288
-
289
- if (xRequestID !== undefined && xRequestID !== null) {
290
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
291
- }
292
-
293
-
294
-
295
- localVarHeaderParameter['Content-Type'] = 'application/json';
296
-
297
- setSearchParams(localVarUrlObj, localVarQueryParameter);
298
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
300
- localVarRequestOptions.data = serializeDataIfNeeded(groupToCreate, localVarRequestOptions, configuration)
301
-
302
- return {
303
- url: toPathString(localVarUrlObj),
304
- options: localVarRequestOptions,
305
- };
306
- },
307
- /**
308
- *
309
- * @summary Add/remove persons to group
310
- * @param {string} groupId Group ID.
311
- * @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
312
- * @param {string} [xRequestID] Request header label.
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- updatePersonsInGroup: async (groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
317
- // verify required parameter 'groupId' is not null or undefined
318
- assertParamExists('updatePersonsInGroup', 'groupId', groupId)
319
- // verify required parameter 'updateGroup' is not null or undefined
320
- assertParamExists('updatePersonsInGroup', 'updateGroup', updateGroup)
321
- const localVarPath = `/api/groups/{groupId}/persons`
322
- .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
323
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
324
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
325
- let baseOptions;
326
- if (configuration) {
327
- baseOptions = configuration.baseOptions;
328
- }
329
-
330
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
331
- const localVarHeaderParameter = {} as any;
332
- const localVarQueryParameter = {} as any;
333
-
334
- if (xRequestID !== undefined && xRequestID !== null) {
335
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
336
- }
337
-
338
-
339
-
340
- localVarHeaderParameter['Content-Type'] = 'application/json';
341
-
342
- setSearchParams(localVarUrlObj, localVarQueryParameter);
343
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
344
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
345
- localVarRequestOptions.data = serializeDataIfNeeded(updateGroup, localVarRequestOptions, configuration)
346
-
347
- return {
348
- url: toPathString(localVarUrlObj),
349
- options: localVarRequestOptions,
350
- };
351
- },
352
- }
353
- };
354
-
355
- /**
356
- * GroupApi - functional programming interface
357
- * @export
358
- */
359
- export const GroupApiFp = function(configuration?: Configuration) {
360
- const localVarAxiosParamCreator = GroupApiAxiosParamCreator(configuration)
361
- return {
362
- /**
363
- *
364
- * @summary Create group
365
- * @param {GroupToCreate} groupToCreate Request body for the group to create.
366
- * @param {string} [xRequestID] Request header label.
367
- * @param {*} [options] Override http request option.
368
- * @throws {RequiredError}
369
- */
370
- async createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>> {
371
- const localVarAxiosArgs = await localVarAxiosParamCreator.createGroup(groupToCreate, xRequestID, options);
372
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
- },
374
- /**
375
- *
376
- * @summary Delete group
377
- * @param {string} groupId Group ID.
378
- * @param {string} [xRequestID] Request header label.
379
- * @param {*} [options] Override http request option.
380
- * @throws {RequiredError}
381
- */
382
- async deleteGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
383
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroup(groupId, xRequestID, options);
384
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
- },
386
- /**
387
- *
388
- * @summary Get groups
389
- * @param {number} page The page number to get a list of persons or groups.
390
- * @param {number} size The page size with a list of persons or groups, items.
391
- * @param {string} [xRequestID] Request header label.
392
- * @param {*} [options] Override http request option.
393
- * @throws {RequiredError}
394
- */
395
- async getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPage>> {
396
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGroups(page, size, xRequestID, options);
397
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
398
- },
399
- /**
400
- *
401
- * @summary Get group persons
402
- * @param {number} page The page number to get a list of persons or groups.
403
- * @param {number} size The page size with a list of persons or groups, items.
404
- * @param {string} groupId Group ID.
405
- * @param {string} [xRequestID] Request header label.
406
- * @param {*} [options] Override http request option.
407
- * @throws {RequiredError}
408
- */
409
- async getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonsPage>> {
410
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPersonsByGroupId(page, size, groupId, xRequestID, options);
411
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
412
- },
413
- /**
414
- *
415
- * @summary Get group
416
- * @param {string} groupId Group ID.
417
- * @param {string} [xRequestID] Request header label.
418
- * @param {*} [options] Override http request option.
419
- * @throws {RequiredError}
420
- */
421
- async getGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>> {
422
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGroup(groupId, xRequestID, options);
423
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
424
- },
425
- /**
426
- *
427
- * @summary Update group
428
- * @param {string} groupId Group ID.
429
- * @param {GroupToCreate} groupToCreate Request body for the group to update.
430
- * @param {string} [xRequestID] Request header label.
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- */
434
- async updateGroup(groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
435
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateGroup(groupId, groupToCreate, xRequestID, options);
436
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
437
- },
438
- /**
439
- *
440
- * @summary Add/remove persons to group
441
- * @param {string} groupId Group ID.
442
- * @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
443
- * @param {string} [xRequestID] Request header label.
444
- * @param {*} [options] Override http request option.
445
- * @throws {RequiredError}
446
- */
447
- async updatePersonsInGroup(groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
448
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePersonsInGroup(groupId, updateGroup, xRequestID, options);
449
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
450
- },
451
- }
452
- };
453
-
454
- /**
455
- * GroupApi - factory interface
456
- * @export
457
- */
458
- export const GroupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
459
- const localVarFp = GroupApiFp(configuration)
460
- return {
461
- /**
462
- *
463
- * @summary Create group
464
- * @param {GroupToCreate} groupToCreate Request body for the group to create.
465
- * @param {string} [xRequestID] Request header label.
466
- * @param {*} [options] Override http request option.
467
- * @throws {RequiredError}
468
- */
469
- createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: any): AxiosPromise<Group> {
470
- return localVarFp.createGroup(groupToCreate, xRequestID, options).then((request) => request(axios, basePath));
471
- },
472
- /**
473
- *
474
- * @summary Delete group
475
- * @param {string} groupId Group ID.
476
- * @param {string} [xRequestID] Request header label.
477
- * @param {*} [options] Override http request option.
478
- * @throws {RequiredError}
479
- */
480
- deleteGroup(groupId: string, xRequestID?: string, options?: any): AxiosPromise<void> {
481
- return localVarFp.deleteGroup(groupId, xRequestID, options).then((request) => request(axios, basePath));
482
- },
483
- /**
484
- *
485
- * @summary Get groups
486
- * @param {number} page The page number to get a list of persons or groups.
487
- * @param {number} size The page size with a list of persons or groups, items.
488
- * @param {string} [xRequestID] Request header label.
489
- * @param {*} [options] Override http request option.
490
- * @throws {RequiredError}
491
- */
492
- getAllGroups(page: number, size: number, xRequestID?: string, options?: any): AxiosPromise<GroupPage> {
493
- return localVarFp.getAllGroups(page, size, xRequestID, options).then((request) => request(axios, basePath));
494
- },
495
- /**
496
- *
497
- * @summary Get group persons
498
- * @param {number} page The page number to get a list of persons or groups.
499
- * @param {number} size The page size with a list of persons or groups, items.
500
- * @param {string} groupId Group ID.
501
- * @param {string} [xRequestID] Request header label.
502
- * @param {*} [options] Override http request option.
503
- * @throws {RequiredError}
504
- */
505
- getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: any): AxiosPromise<PersonsPage> {
506
- return localVarFp.getAllPersonsByGroupId(page, size, groupId, xRequestID, options).then((request) => request(axios, basePath));
507
- },
508
- /**
509
- *
510
- * @summary Get group
511
- * @param {string} groupId Group ID.
512
- * @param {string} [xRequestID] Request header label.
513
- * @param {*} [options] Override http request option.
514
- * @throws {RequiredError}
515
- */
516
- getGroup(groupId: string, xRequestID?: string, options?: any): AxiosPromise<Group> {
517
- return localVarFp.getGroup(groupId, xRequestID, options).then((request) => request(axios, basePath));
518
- },
519
- /**
520
- *
521
- * @summary Update group
522
- * @param {string} groupId Group ID.
523
- * @param {GroupToCreate} groupToCreate Request body for the group to update.
524
- * @param {string} [xRequestID] Request header label.
525
- * @param {*} [options] Override http request option.
526
- * @throws {RequiredError}
527
- */
528
- updateGroup(groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options?: any): AxiosPromise<void> {
529
- return localVarFp.updateGroup(groupId, groupToCreate, xRequestID, options).then((request) => request(axios, basePath));
530
- },
531
- /**
532
- *
533
- * @summary Add/remove persons to group
534
- * @param {string} groupId Group ID.
535
- * @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
536
- * @param {string} [xRequestID] Request header label.
537
- * @param {*} [options] Override http request option.
538
- * @throws {RequiredError}
539
- */
540
- updatePersonsInGroup(groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options?: any): AxiosPromise<void> {
541
- return localVarFp.updatePersonsInGroup(groupId, updateGroup, xRequestID, options).then((request) => request(axios, basePath));
542
- },
543
- };
544
- };
545
-
546
- /**
547
- * GroupApi - object-oriented interface
548
- * @export
549
- * @class GroupApi
550
- * @extends {BaseAPI}
551
- */
552
- export class GroupApi extends BaseAPI {
553
- /**
554
- *
555
- * @summary Create group
556
- * @param {GroupToCreate} groupToCreate Request body for the group to create.
557
- * @param {string} [xRequestID] Request header label.
558
- * @param {*} [options] Override http request option.
559
- * @throws {RequiredError}
560
- * @memberof GroupApi
561
- */
562
- public createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig) {
563
- return GroupApiFp(this.configuration).createGroup(groupToCreate, xRequestID, options).then((request) => request(this.axios, this.basePath));
564
- }
565
-
566
- /**
567
- *
568
- * @summary Delete group
569
- * @param {string} groupId Group ID.
570
- * @param {string} [xRequestID] Request header label.
571
- * @param {*} [options] Override http request option.
572
- * @throws {RequiredError}
573
- * @memberof GroupApi
574
- */
575
- public deleteGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig) {
576
- return GroupApiFp(this.configuration).deleteGroup(groupId, xRequestID, options).then((request) => request(this.axios, this.basePath));
577
- }
578
-
579
- /**
580
- *
581
- * @summary Get groups
582
- * @param {number} page The page number to get a list of persons or groups.
583
- * @param {number} size The page size with a list of persons or groups, items.
584
- * @param {string} [xRequestID] Request header label.
585
- * @param {*} [options] Override http request option.
586
- * @throws {RequiredError}
587
- * @memberof GroupApi
588
- */
589
- public getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig) {
590
- return GroupApiFp(this.configuration).getAllGroups(page, size, xRequestID, options).then((request) => request(this.axios, this.basePath));
591
- }
592
-
593
- /**
594
- *
595
- * @summary Get group persons
596
- * @param {number} page The page number to get a list of persons or groups.
597
- * @param {number} size The page size with a list of persons or groups, items.
598
- * @param {string} groupId Group ID.
599
- * @param {string} [xRequestID] Request header label.
600
- * @param {*} [options] Override http request option.
601
- * @throws {RequiredError}
602
- * @memberof GroupApi
603
- */
604
- public getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig) {
605
- return GroupApiFp(this.configuration).getAllPersonsByGroupId(page, size, groupId, xRequestID, options).then((request) => request(this.axios, this.basePath));
606
- }
607
-
608
- /**
609
- *
610
- * @summary Get group
611
- * @param {string} groupId Group ID.
612
- * @param {string} [xRequestID] Request header label.
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- * @memberof GroupApi
616
- */
617
- public getGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig) {
618
- return GroupApiFp(this.configuration).getGroup(groupId, xRequestID, options).then((request) => request(this.axios, this.basePath));
619
- }
620
-
621
- /**
622
- *
623
- * @summary Update group
624
- * @param {string} groupId Group ID.
625
- * @param {GroupToCreate} groupToCreate Request body for the group to update.
626
- * @param {string} [xRequestID] Request header label.
627
- * @param {*} [options] Override http request option.
628
- * @throws {RequiredError}
629
- * @memberof GroupApi
630
- */
631
- public updateGroup(groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig) {
632
- return GroupApiFp(this.configuration).updateGroup(groupId, groupToCreate, xRequestID, options).then((request) => request(this.axios, this.basePath));
633
- }
634
-
635
- /**
636
- *
637
- * @summary Add/remove persons to group
638
- * @param {string} groupId Group ID.
639
- * @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
640
- * @param {string} [xRequestID] Request header label.
641
- * @param {*} [options] Override http request option.
642
- * @throws {RequiredError}
643
- * @memberof GroupApi
644
- */
645
- public updatePersonsInGroup(groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options?: AxiosRequestConfig) {
646
- return GroupApiFp(this.configuration).updatePersonsInGroup(groupId, updateGroup, xRequestID, options).then((request) => request(this.axios, this.basePath));
647
- }
648
- }