@pescheckit/pescheck-client 0.0.5

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 (285) hide show
  1. package/.openapi-generator/FILES +97 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +200 -0
  5. package/dist/apis/AuthenticationApi.d.ts +131 -0
  6. package/dist/apis/AuthenticationApi.js +168 -0
  7. package/dist/apis/ChecksApi.d.ts +91 -0
  8. package/dist/apis/ChecksApi.js +116 -0
  9. package/dist/apis/DivisionsApi.d.ts +211 -0
  10. package/dist/apis/DivisionsApi.js +264 -0
  11. package/dist/apis/OAuthApi.d.ts +124 -0
  12. package/dist/apis/OAuthApi.js +159 -0
  13. package/dist/apis/ProfilesApi.d.ts +270 -0
  14. package/dist/apis/ProfilesApi.js +334 -0
  15. package/dist/apis/ScreeningsApi.d.ts +172 -0
  16. package/dist/apis/ScreeningsApi.js +216 -0
  17. package/dist/apis/WebhooksApi.d.ts +168 -0
  18. package/dist/apis/WebhooksApi.js +213 -0
  19. package/dist/apis/index.d.ts +7 -0
  20. package/dist/apis/index.js +25 -0
  21. package/dist/esm/apis/AuthenticationApi.d.ts +131 -0
  22. package/dist/esm/apis/AuthenticationApi.js +164 -0
  23. package/dist/esm/apis/ChecksApi.d.ts +91 -0
  24. package/dist/esm/apis/ChecksApi.js +112 -0
  25. package/dist/esm/apis/DivisionsApi.d.ts +211 -0
  26. package/dist/esm/apis/DivisionsApi.js +260 -0
  27. package/dist/esm/apis/OAuthApi.d.ts +124 -0
  28. package/dist/esm/apis/OAuthApi.js +155 -0
  29. package/dist/esm/apis/ProfilesApi.d.ts +270 -0
  30. package/dist/esm/apis/ProfilesApi.js +330 -0
  31. package/dist/esm/apis/ScreeningsApi.d.ts +172 -0
  32. package/dist/esm/apis/ScreeningsApi.js +212 -0
  33. package/dist/esm/apis/WebhooksApi.d.ts +168 -0
  34. package/dist/esm/apis/WebhooksApi.js +209 -0
  35. package/dist/esm/apis/index.d.ts +7 -0
  36. package/dist/esm/apis/index.js +9 -0
  37. package/dist/esm/index.d.ts +3 -0
  38. package/dist/esm/index.js +5 -0
  39. package/dist/esm/models/CustomTokenObtainPair.d.ts +38 -0
  40. package/dist/esm/models/CustomTokenObtainPair.js +47 -0
  41. package/dist/esm/models/DivisionReadOnly.d.ts +116 -0
  42. package/dist/esm/models/DivisionReadOnly.js +73 -0
  43. package/dist/esm/models/DivisionWrite.d.ts +98 -0
  44. package/dist/esm/models/DivisionWrite.js +78 -0
  45. package/dist/esm/models/JWTGeneration.d.ts +50 -0
  46. package/dist/esm/models/JWTGeneration.js +51 -0
  47. package/dist/esm/models/JWTResponse.d.ts +62 -0
  48. package/dist/esm/models/JWTResponse.js +61 -0
  49. package/dist/esm/models/OAuthApplication.d.ts +84 -0
  50. package/dist/esm/models/OAuthApplication.js +68 -0
  51. package/dist/esm/models/OAuthApplicationResponse.d.ts +98 -0
  52. package/dist/esm/models/OAuthApplicationResponse.js +80 -0
  53. package/dist/esm/models/PaginatedDivisionReadOnlyList.d.ts +51 -0
  54. package/dist/esm/models/PaginatedDivisionReadOnlyList.js +56 -0
  55. package/dist/esm/models/PaginatedV2ProfileListItemList.d.ts +51 -0
  56. package/dist/esm/models/PaginatedV2ProfileListItemList.js +56 -0
  57. package/dist/esm/models/PaginatedV2ScreeningListItemList.d.ts +51 -0
  58. package/dist/esm/models/PaginatedV2ScreeningListItemList.js +56 -0
  59. package/dist/esm/models/PatchedDivisionWrite.d.ts +98 -0
  60. package/dist/esm/models/PatchedDivisionWrite.js +62 -0
  61. package/dist/esm/models/PatchedV2ProfilePartialUpdate.d.ts +39 -0
  62. package/dist/esm/models/PatchedV2ProfilePartialUpdate.js +43 -0
  63. package/dist/esm/models/TokenRefresh.d.ts +38 -0
  64. package/dist/esm/models/TokenRefresh.js +44 -0
  65. package/dist/esm/models/V2Candidate.d.ts +592 -0
  66. package/dist/esm/models/V2Candidate.js +318 -0
  67. package/dist/esm/models/V2CheckField.d.ts +56 -0
  68. package/dist/esm/models/V2CheckField.js +53 -0
  69. package/dist/esm/models/V2CheckInfo.d.ts +100 -0
  70. package/dist/esm/models/V2CheckInfo.js +76 -0
  71. package/dist/esm/models/V2Document.d.ts +115 -0
  72. package/dist/esm/models/V2Document.js +84 -0
  73. package/dist/esm/models/V2DocumentContent.d.ts +40 -0
  74. package/dist/esm/models/V2DocumentContent.js +45 -0
  75. package/dist/esm/models/V2Money.d.ts +38 -0
  76. package/dist/esm/models/V2Money.js +47 -0
  77. package/dist/esm/models/V2ProfileCheck.d.ts +85 -0
  78. package/dist/esm/models/V2ProfileCheck.js +68 -0
  79. package/dist/esm/models/V2ProfileCheckEntry.d.ts +120 -0
  80. package/dist/esm/models/V2ProfileCheckEntry.js +87 -0
  81. package/dist/esm/models/V2ProfileCreate.d.ts +45 -0
  82. package/dist/esm/models/V2ProfileCreate.js +50 -0
  83. package/dist/esm/models/V2ProfileDetail.d.ts +94 -0
  84. package/dist/esm/models/V2ProfileDetail.js +75 -0
  85. package/dist/esm/models/V2ProfileListItem.d.ts +68 -0
  86. package/dist/esm/models/V2ProfileListItem.js +61 -0
  87. package/dist/esm/models/V2ProfileUpdate.d.ts +47 -0
  88. package/dist/esm/models/V2ProfileUpdate.js +50 -0
  89. package/dist/esm/models/V2ProfileUpdateCheck.d.ts +96 -0
  90. package/dist/esm/models/V2ProfileUpdateCheck.js +74 -0
  91. package/dist/esm/models/V2ScreeningCheck.d.ts +95 -0
  92. package/dist/esm/models/V2ScreeningCheck.js +72 -0
  93. package/dist/esm/models/V2ScreeningCheckEntry.d.ts +135 -0
  94. package/dist/esm/models/V2ScreeningCheckEntry.js +92 -0
  95. package/dist/esm/models/V2ScreeningCheckListItem.d.ts +93 -0
  96. package/dist/esm/models/V2ScreeningCheckListItem.js +74 -0
  97. package/dist/esm/models/V2ScreeningCreate.d.ts +46 -0
  98. package/dist/esm/models/V2ScreeningCreate.js +51 -0
  99. package/dist/esm/models/V2ScreeningDetail.d.ts +83 -0
  100. package/dist/esm/models/V2ScreeningDetail.js +70 -0
  101. package/dist/esm/models/V2ScreeningDetailProfile.d.ts +38 -0
  102. package/dist/esm/models/V2ScreeningDetailProfile.js +43 -0
  103. package/dist/esm/models/V2ScreeningListItem.d.ts +85 -0
  104. package/dist/esm/models/V2ScreeningListItem.js +69 -0
  105. package/dist/esm/models/VerifyWebhook.d.ts +34 -0
  106. package/dist/esm/models/VerifyWebhook.js +43 -0
  107. package/dist/esm/models/Webhook.d.ts +71 -0
  108. package/dist/esm/models/Webhook.js +69 -0
  109. package/dist/esm/models/WebhookResponse.d.ts +87 -0
  110. package/dist/esm/models/WebhookResponse.js +51 -0
  111. package/dist/esm/models/index.d.ts +36 -0
  112. package/dist/esm/models/index.js +38 -0
  113. package/dist/esm/runtime.d.ts +184 -0
  114. package/dist/esm/runtime.js +349 -0
  115. package/dist/index.d.ts +3 -0
  116. package/dist/index.js +21 -0
  117. package/dist/models/CustomTokenObtainPair.d.ts +38 -0
  118. package/dist/models/CustomTokenObtainPair.js +54 -0
  119. package/dist/models/DivisionReadOnly.d.ts +116 -0
  120. package/dist/models/DivisionReadOnly.js +80 -0
  121. package/dist/models/DivisionWrite.d.ts +98 -0
  122. package/dist/models/DivisionWrite.js +85 -0
  123. package/dist/models/JWTGeneration.d.ts +50 -0
  124. package/dist/models/JWTGeneration.js +58 -0
  125. package/dist/models/JWTResponse.d.ts +62 -0
  126. package/dist/models/JWTResponse.js +68 -0
  127. package/dist/models/OAuthApplication.d.ts +84 -0
  128. package/dist/models/OAuthApplication.js +76 -0
  129. package/dist/models/OAuthApplicationResponse.d.ts +98 -0
  130. package/dist/models/OAuthApplicationResponse.js +88 -0
  131. package/dist/models/PaginatedDivisionReadOnlyList.d.ts +51 -0
  132. package/dist/models/PaginatedDivisionReadOnlyList.js +63 -0
  133. package/dist/models/PaginatedV2ProfileListItemList.d.ts +51 -0
  134. package/dist/models/PaginatedV2ProfileListItemList.js +63 -0
  135. package/dist/models/PaginatedV2ScreeningListItemList.d.ts +51 -0
  136. package/dist/models/PaginatedV2ScreeningListItemList.js +63 -0
  137. package/dist/models/PatchedDivisionWrite.d.ts +98 -0
  138. package/dist/models/PatchedDivisionWrite.js +69 -0
  139. package/dist/models/PatchedV2ProfilePartialUpdate.d.ts +39 -0
  140. package/dist/models/PatchedV2ProfilePartialUpdate.js +50 -0
  141. package/dist/models/TokenRefresh.d.ts +38 -0
  142. package/dist/models/TokenRefresh.js +51 -0
  143. package/dist/models/V2Candidate.d.ts +592 -0
  144. package/dist/models/V2Candidate.js +326 -0
  145. package/dist/models/V2CheckField.d.ts +56 -0
  146. package/dist/models/V2CheckField.js +60 -0
  147. package/dist/models/V2CheckInfo.d.ts +100 -0
  148. package/dist/models/V2CheckInfo.js +83 -0
  149. package/dist/models/V2Document.d.ts +115 -0
  150. package/dist/models/V2Document.js +92 -0
  151. package/dist/models/V2DocumentContent.d.ts +40 -0
  152. package/dist/models/V2DocumentContent.js +52 -0
  153. package/dist/models/V2Money.d.ts +38 -0
  154. package/dist/models/V2Money.js +54 -0
  155. package/dist/models/V2ProfileCheck.d.ts +85 -0
  156. package/dist/models/V2ProfileCheck.js +76 -0
  157. package/dist/models/V2ProfileCheckEntry.d.ts +120 -0
  158. package/dist/models/V2ProfileCheckEntry.js +95 -0
  159. package/dist/models/V2ProfileCreate.d.ts +45 -0
  160. package/dist/models/V2ProfileCreate.js +57 -0
  161. package/dist/models/V2ProfileDetail.d.ts +94 -0
  162. package/dist/models/V2ProfileDetail.js +82 -0
  163. package/dist/models/V2ProfileListItem.d.ts +68 -0
  164. package/dist/models/V2ProfileListItem.js +68 -0
  165. package/dist/models/V2ProfileUpdate.d.ts +47 -0
  166. package/dist/models/V2ProfileUpdate.js +57 -0
  167. package/dist/models/V2ProfileUpdateCheck.d.ts +96 -0
  168. package/dist/models/V2ProfileUpdateCheck.js +82 -0
  169. package/dist/models/V2ScreeningCheck.d.ts +95 -0
  170. package/dist/models/V2ScreeningCheck.js +80 -0
  171. package/dist/models/V2ScreeningCheckEntry.d.ts +135 -0
  172. package/dist/models/V2ScreeningCheckEntry.js +100 -0
  173. package/dist/models/V2ScreeningCheckListItem.d.ts +93 -0
  174. package/dist/models/V2ScreeningCheckListItem.js +82 -0
  175. package/dist/models/V2ScreeningCreate.d.ts +46 -0
  176. package/dist/models/V2ScreeningCreate.js +58 -0
  177. package/dist/models/V2ScreeningDetail.d.ts +83 -0
  178. package/dist/models/V2ScreeningDetail.js +77 -0
  179. package/dist/models/V2ScreeningDetailProfile.d.ts +38 -0
  180. package/dist/models/V2ScreeningDetailProfile.js +50 -0
  181. package/dist/models/V2ScreeningListItem.d.ts +85 -0
  182. package/dist/models/V2ScreeningListItem.js +76 -0
  183. package/dist/models/VerifyWebhook.d.ts +34 -0
  184. package/dist/models/VerifyWebhook.js +50 -0
  185. package/dist/models/Webhook.d.ts +71 -0
  186. package/dist/models/Webhook.js +77 -0
  187. package/dist/models/WebhookResponse.d.ts +87 -0
  188. package/dist/models/WebhookResponse.js +58 -0
  189. package/dist/models/index.d.ts +36 -0
  190. package/dist/models/index.js +54 -0
  191. package/dist/runtime.d.ts +184 -0
  192. package/dist/runtime.js +365 -0
  193. package/docs/AuthenticationApi.md +227 -0
  194. package/docs/ChecksApi.md +150 -0
  195. package/docs/CustomTokenObtainPair.md +37 -0
  196. package/docs/DivisionReadOnly.md +62 -0
  197. package/docs/DivisionWrite.md +56 -0
  198. package/docs/DivisionsApi.md +380 -0
  199. package/docs/JWTGeneration.md +41 -0
  200. package/docs/JWTResponse.md +45 -0
  201. package/docs/OAuthApi.md +222 -0
  202. package/docs/OAuthApplication.md +43 -0
  203. package/docs/OAuthApplicationResponse.md +49 -0
  204. package/docs/PaginatedDivisionReadOnlyList.md +40 -0
  205. package/docs/PaginatedV2ProfileListItemList.md +40 -0
  206. package/docs/PaginatedV2ScreeningListItemList.md +40 -0
  207. package/docs/PatchedDivisionWrite.md +56 -0
  208. package/docs/PatchedV2ProfilePartialUpdate.md +37 -0
  209. package/docs/ProfilesApi.md +456 -0
  210. package/docs/ScreeningsApi.md +302 -0
  211. package/docs/TokenRefresh.md +36 -0
  212. package/docs/V2Candidate.md +53 -0
  213. package/docs/V2CheckField.md +43 -0
  214. package/docs/V2CheckInfo.md +57 -0
  215. package/docs/V2Document.md +45 -0
  216. package/docs/V2DocumentContent.md +37 -0
  217. package/docs/V2Money.md +36 -0
  218. package/docs/V2ProfileCheck.md +37 -0
  219. package/docs/V2ProfileCheckEntry.md +46 -0
  220. package/docs/V2ProfileCreate.md +38 -0
  221. package/docs/V2ProfileDetail.md +54 -0
  222. package/docs/V2ProfileListItem.md +46 -0
  223. package/docs/V2ProfileUpdate.md +39 -0
  224. package/docs/V2ProfileUpdateCheck.md +39 -0
  225. package/docs/V2ScreeningCheck.md +41 -0
  226. package/docs/V2ScreeningCheckEntry.md +50 -0
  227. package/docs/V2ScreeningCheckListItem.md +39 -0
  228. package/docs/V2ScreeningCreate.md +38 -0
  229. package/docs/V2ScreeningDetail.md +50 -0
  230. package/docs/V2ScreeningDetailProfile.md +36 -0
  231. package/docs/V2ScreeningListItem.md +51 -0
  232. package/docs/VerifyWebhook.md +35 -0
  233. package/docs/Webhook.md +43 -0
  234. package/docs/WebhookResponse.md +53 -0
  235. package/docs/WebhooksApi.md +305 -0
  236. package/package.json +25 -0
  237. package/src/apis/AuthenticationApi.ts +285 -0
  238. package/src/apis/ChecksApi.ts +181 -0
  239. package/src/apis/DivisionsApi.ts +462 -0
  240. package/src/apis/OAuthApi.ts +256 -0
  241. package/src/apis/ProfilesApi.ts +583 -0
  242. package/src/apis/ScreeningsApi.ts +376 -0
  243. package/src/apis/WebhooksApi.ts +363 -0
  244. package/src/apis/index.ts +9 -0
  245. package/src/index.ts +5 -0
  246. package/src/models/CustomTokenObtainPair.ts +75 -0
  247. package/src/models/DivisionReadOnly.ts +177 -0
  248. package/src/models/DivisionWrite.ts +160 -0
  249. package/src/models/JWTGeneration.ts +91 -0
  250. package/src/models/JWTResponse.ts +110 -0
  251. package/src/models/OAuthApplication.ts +130 -0
  252. package/src/models/OAuthApplicationResponse.ts +151 -0
  253. package/src/models/PaginatedDivisionReadOnlyList.ts +101 -0
  254. package/src/models/PaginatedV2ProfileListItemList.ts +101 -0
  255. package/src/models/PaginatedV2ScreeningListItemList.ts +101 -0
  256. package/src/models/PatchedDivisionWrite.ts +152 -0
  257. package/src/models/PatchedV2ProfilePartialUpdate.ts +74 -0
  258. package/src/models/TokenRefresh.ts +73 -0
  259. package/src/models/V2Candidate.ts +649 -0
  260. package/src/models/V2CheckField.ts +97 -0
  261. package/src/models/V2CheckInfo.ts +168 -0
  262. package/src/models/V2Document.ts +166 -0
  263. package/src/models/V2DocumentContent.ts +76 -0
  264. package/src/models/V2Money.ts +75 -0
  265. package/src/models/V2ProfileCheck.ts +122 -0
  266. package/src/models/V2ProfileCheckEntry.ts +173 -0
  267. package/src/models/V2ProfileCreate.ts +91 -0
  268. package/src/models/V2ProfileDetail.ts +162 -0
  269. package/src/models/V2ProfileListItem.ts +115 -0
  270. package/src/models/V2ProfileUpdate.ts +93 -0
  271. package/src/models/V2ProfileUpdateCheck.ts +135 -0
  272. package/src/models/V2ScreeningCheck.ts +136 -0
  273. package/src/models/V2ScreeningCheckEntry.ts +181 -0
  274. package/src/models/V2ScreeningCheckListItem.ts +133 -0
  275. package/src/models/V2ScreeningCreate.ts +98 -0
  276. package/src/models/V2ScreeningDetail.ts +152 -0
  277. package/src/models/V2ScreeningDetailProfile.ts +73 -0
  278. package/src/models/V2ScreeningListItem.ts +154 -0
  279. package/src/models/VerifyWebhook.ts +68 -0
  280. package/src/models/Webhook.ts +118 -0
  281. package/src/models/WebhookResponse.ts +140 -0
  282. package/src/models/index.ts +38 -0
  283. package/src/runtime.ts +449 -0
  284. package/tsconfig.esm.json +7 -0
  285. package/tsconfig.json +16 -0
@@ -0,0 +1,97 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ docs/AuthenticationApi.md
6
+ docs/ChecksApi.md
7
+ docs/CustomTokenObtainPair.md
8
+ docs/DivisionReadOnly.md
9
+ docs/DivisionWrite.md
10
+ docs/DivisionsApi.md
11
+ docs/JWTGeneration.md
12
+ docs/JWTResponse.md
13
+ docs/OAuthApi.md
14
+ docs/OAuthApplication.md
15
+ docs/OAuthApplicationResponse.md
16
+ docs/PaginatedDivisionReadOnlyList.md
17
+ docs/PaginatedV2ProfileListItemList.md
18
+ docs/PaginatedV2ScreeningListItemList.md
19
+ docs/PatchedDivisionWrite.md
20
+ docs/PatchedV2ProfilePartialUpdate.md
21
+ docs/ProfilesApi.md
22
+ docs/ScreeningsApi.md
23
+ docs/TokenRefresh.md
24
+ docs/V2Candidate.md
25
+ docs/V2CheckField.md
26
+ docs/V2CheckInfo.md
27
+ docs/V2Document.md
28
+ docs/V2DocumentContent.md
29
+ docs/V2Money.md
30
+ docs/V2ProfileCheck.md
31
+ docs/V2ProfileCheckEntry.md
32
+ docs/V2ProfileCreate.md
33
+ docs/V2ProfileDetail.md
34
+ docs/V2ProfileListItem.md
35
+ docs/V2ProfileUpdate.md
36
+ docs/V2ProfileUpdateCheck.md
37
+ docs/V2ScreeningCheck.md
38
+ docs/V2ScreeningCheckEntry.md
39
+ docs/V2ScreeningCheckListItem.md
40
+ docs/V2ScreeningCreate.md
41
+ docs/V2ScreeningDetail.md
42
+ docs/V2ScreeningDetailProfile.md
43
+ docs/V2ScreeningListItem.md
44
+ docs/VerifyWebhook.md
45
+ docs/Webhook.md
46
+ docs/WebhookResponse.md
47
+ docs/WebhooksApi.md
48
+ package.json
49
+ src/apis/AuthenticationApi.ts
50
+ src/apis/ChecksApi.ts
51
+ src/apis/DivisionsApi.ts
52
+ src/apis/OAuthApi.ts
53
+ src/apis/ProfilesApi.ts
54
+ src/apis/ScreeningsApi.ts
55
+ src/apis/WebhooksApi.ts
56
+ src/apis/index.ts
57
+ src/index.ts
58
+ src/models/CustomTokenObtainPair.ts
59
+ src/models/DivisionReadOnly.ts
60
+ src/models/DivisionWrite.ts
61
+ src/models/JWTGeneration.ts
62
+ src/models/JWTResponse.ts
63
+ src/models/OAuthApplication.ts
64
+ src/models/OAuthApplicationResponse.ts
65
+ src/models/PaginatedDivisionReadOnlyList.ts
66
+ src/models/PaginatedV2ProfileListItemList.ts
67
+ src/models/PaginatedV2ScreeningListItemList.ts
68
+ src/models/PatchedDivisionWrite.ts
69
+ src/models/PatchedV2ProfilePartialUpdate.ts
70
+ src/models/TokenRefresh.ts
71
+ src/models/V2Candidate.ts
72
+ src/models/V2CheckField.ts
73
+ src/models/V2CheckInfo.ts
74
+ src/models/V2Document.ts
75
+ src/models/V2DocumentContent.ts
76
+ src/models/V2Money.ts
77
+ src/models/V2ProfileCheck.ts
78
+ src/models/V2ProfileCheckEntry.ts
79
+ src/models/V2ProfileCreate.ts
80
+ src/models/V2ProfileDetail.ts
81
+ src/models/V2ProfileListItem.ts
82
+ src/models/V2ProfileUpdate.ts
83
+ src/models/V2ProfileUpdateCheck.ts
84
+ src/models/V2ScreeningCheck.ts
85
+ src/models/V2ScreeningCheckEntry.ts
86
+ src/models/V2ScreeningCheckListItem.ts
87
+ src/models/V2ScreeningCreate.ts
88
+ src/models/V2ScreeningDetail.ts
89
+ src/models/V2ScreeningDetailProfile.ts
90
+ src/models/V2ScreeningListItem.ts
91
+ src/models/VerifyWebhook.ts
92
+ src/models/Webhook.ts
93
+ src/models/WebhookResponse.ts
94
+ src/models/index.ts
95
+ src/runtime.ts
96
+ tsconfig.esm.json
97
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.23.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,200 @@
1
+ # @pescheckit/pescheck-client@0.0.5
2
+
3
+ A TypeScript SDK client for the api.pescheck.io API.
4
+
5
+ ## Usage
6
+
7
+ First, install the SDK from npm.
8
+
9
+ ```bash
10
+ npm install @pescheckit/pescheck-client --save
11
+ ```
12
+
13
+ Next, try it out.
14
+
15
+
16
+ ```ts
17
+ import {
18
+ Configuration,
19
+ AuthenticationApi,
20
+ } from '@pescheckit/pescheck-client';
21
+ import type { GenerateJWTToken2Request } from '@pescheckit/pescheck-client';
22
+
23
+ async function example() {
24
+ console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
25
+ const config = new Configuration({
26
+ // To configure OAuth2 access token for authorization: oauth2 application
27
+ accessToken: "YOUR ACCESS TOKEN",
28
+ });
29
+ const api = new AuthenticationApi(config);
30
+
31
+ const body = {
32
+ // JWTGeneration
33
+ jWTGeneration: ...,
34
+ } satisfies GenerateJWTToken2Request;
35
+
36
+ try {
37
+ const data = await api.generateJWTToken2(body);
38
+ console.log(data);
39
+ } catch (error) {
40
+ console.error(error);
41
+ }
42
+ }
43
+
44
+ // Run the test
45
+ example().catch(console.error);
46
+ ```
47
+
48
+
49
+ ## Documentation
50
+
51
+ ### API Endpoints
52
+
53
+ All URIs are relative to *https://api.pescheck.io*
54
+
55
+ | Class | Method | HTTP request | Description
56
+ | ----- | ------ | ------------ | -------------
57
+ *AuthenticationApi* | [**generateJWTToken2**](docs/AuthenticationApi.md#generatejwttoken2) | **POST** /api/v2/jwt/generate/ |
58
+ *AuthenticationApi* | [**jwtCreate**](docs/AuthenticationApi.md#jwtcreate) | **POST** /api/jwt/ |
59
+ *AuthenticationApi* | [**jwtRefreshCreate**](docs/AuthenticationApi.md#jwtrefreshcreate) | **POST** /api/jwt/refresh/ |
60
+ *ChecksApi* | [**v2ChecksList**](docs/ChecksApi.md#v2checkslist) | **GET** /api/v2/checks/ |
61
+ *ChecksApi* | [**v2ChecksRetrieve**](docs/ChecksApi.md#v2checksretrieve) | **GET** /api/v2/checks/{check_type}/ |
62
+ *DivisionsApi* | [**v2OrganisationsDivisionsCreate**](docs/DivisionsApi.md#v2organisationsdivisionscreate) | **POST** /api/v2/organisations/divisions/ |
63
+ *DivisionsApi* | [**v2OrganisationsDivisionsList**](docs/DivisionsApi.md#v2organisationsdivisionslist) | **GET** /api/v2/organisations/divisions/ |
64
+ *DivisionsApi* | [**v2OrganisationsDivisionsPartialUpdate**](docs/DivisionsApi.md#v2organisationsdivisionspartialupdate) | **PATCH** /api/v2/organisations/divisions/{id}/ |
65
+ *DivisionsApi* | [**v2OrganisationsDivisionsRetrieve**](docs/DivisionsApi.md#v2organisationsdivisionsretrieve) | **GET** /api/v2/organisations/divisions/{id}/ |
66
+ *DivisionsApi* | [**v2OrganisationsDivisionsUpdate**](docs/DivisionsApi.md#v2organisationsdivisionsupdate) | **PUT** /api/v2/organisations/divisions/{id}/ |
67
+ *OAuthApi* | [**createOAuthApplication2**](docs/OAuthApi.md#createoauthapplication2) | **POST** /api/v2/oauth/applications/ |
68
+ *OAuthApi* | [**deleteOAuthApplication2**](docs/OAuthApi.md#deleteoauthapplication2) | **DELETE** /api/v2/oauth/applications/{application_id}/ |
69
+ *OAuthApi* | [**listOAuthApplications2**](docs/OAuthApi.md#listoauthapplications2) | **GET** /api/v2/oauth/applications/list/ |
70
+ *ProfilesApi* | [**v2ProfilesCreate**](docs/ProfilesApi.md#v2profilescreate) | **POST** /api/v2/profiles/ |
71
+ *ProfilesApi* | [**v2ProfilesDestroy**](docs/ProfilesApi.md#v2profilesdestroy) | **DELETE** /api/v2/profiles/{id}/ |
72
+ *ProfilesApi* | [**v2ProfilesList**](docs/ProfilesApi.md#v2profileslist) | **GET** /api/v2/profiles/ |
73
+ *ProfilesApi* | [**v2ProfilesPartialUpdate**](docs/ProfilesApi.md#v2profilespartialupdate) | **PATCH** /api/v2/profiles/{id}/ |
74
+ *ProfilesApi* | [**v2ProfilesRetrieve**](docs/ProfilesApi.md#v2profilesretrieve) | **GET** /api/v2/profiles/{id}/ |
75
+ *ProfilesApi* | [**v2ProfilesUpdate**](docs/ProfilesApi.md#v2profilesupdate) | **PUT** /api/v2/profiles/{id}/ |
76
+ *ScreeningsApi* | [**v2ScreeningsCreate**](docs/ScreeningsApi.md#v2screeningscreate) | **POST** /api/v2/screenings/ |
77
+ *ScreeningsApi* | [**v2ScreeningsDocumentsList**](docs/ScreeningsApi.md#v2screeningsdocumentslist) | **GET** /api/v2/screenings/{id}/documents/ | Retrieve screening documents
78
+ *ScreeningsApi* | [**v2ScreeningsList**](docs/ScreeningsApi.md#v2screeningslist) | **GET** /api/v2/screenings/ |
79
+ *ScreeningsApi* | [**v2ScreeningsRetrieve**](docs/ScreeningsApi.md#v2screeningsretrieve) | **GET** /api/v2/screenings/{id}/ |
80
+ *WebhooksApi* | [**createWebhook2**](docs/WebhooksApi.md#createwebhook2) | **POST** /api/v2/webhooks/ |
81
+ *WebhooksApi* | [**deleteWebhook2**](docs/WebhooksApi.md#deletewebhook2) | **DELETE** /api/v2/webhooks/{webhook_id}/ |
82
+ *WebhooksApi* | [**listWebhooks2**](docs/WebhooksApi.md#listwebhooks2) | **GET** /api/v2/webhooks/list/ |
83
+ *WebhooksApi* | [**verifyWebhook2**](docs/WebhooksApi.md#verifywebhook2) | **POST** /api/v2/webhooks/{webhook_id}/verify/ |
84
+
85
+
86
+ ### Models
87
+
88
+ - [CustomTokenObtainPair](docs/CustomTokenObtainPair.md)
89
+ - [DivisionReadOnly](docs/DivisionReadOnly.md)
90
+ - [DivisionWrite](docs/DivisionWrite.md)
91
+ - [JWTGeneration](docs/JWTGeneration.md)
92
+ - [JWTResponse](docs/JWTResponse.md)
93
+ - [OAuthApplication](docs/OAuthApplication.md)
94
+ - [OAuthApplicationResponse](docs/OAuthApplicationResponse.md)
95
+ - [PaginatedDivisionReadOnlyList](docs/PaginatedDivisionReadOnlyList.md)
96
+ - [PaginatedV2ProfileListItemList](docs/PaginatedV2ProfileListItemList.md)
97
+ - [PaginatedV2ScreeningListItemList](docs/PaginatedV2ScreeningListItemList.md)
98
+ - [PatchedDivisionWrite](docs/PatchedDivisionWrite.md)
99
+ - [PatchedV2ProfilePartialUpdate](docs/PatchedV2ProfilePartialUpdate.md)
100
+ - [TokenRefresh](docs/TokenRefresh.md)
101
+ - [V2Candidate](docs/V2Candidate.md)
102
+ - [V2CheckField](docs/V2CheckField.md)
103
+ - [V2CheckInfo](docs/V2CheckInfo.md)
104
+ - [V2Document](docs/V2Document.md)
105
+ - [V2DocumentContent](docs/V2DocumentContent.md)
106
+ - [V2Money](docs/V2Money.md)
107
+ - [V2ProfileCheck](docs/V2ProfileCheck.md)
108
+ - [V2ProfileCheckEntry](docs/V2ProfileCheckEntry.md)
109
+ - [V2ProfileCreate](docs/V2ProfileCreate.md)
110
+ - [V2ProfileDetail](docs/V2ProfileDetail.md)
111
+ - [V2ProfileListItem](docs/V2ProfileListItem.md)
112
+ - [V2ProfileUpdate](docs/V2ProfileUpdate.md)
113
+ - [V2ProfileUpdateCheck](docs/V2ProfileUpdateCheck.md)
114
+ - [V2ScreeningCheck](docs/V2ScreeningCheck.md)
115
+ - [V2ScreeningCheckEntry](docs/V2ScreeningCheckEntry.md)
116
+ - [V2ScreeningCheckListItem](docs/V2ScreeningCheckListItem.md)
117
+ - [V2ScreeningCreate](docs/V2ScreeningCreate.md)
118
+ - [V2ScreeningDetail](docs/V2ScreeningDetail.md)
119
+ - [V2ScreeningDetailProfile](docs/V2ScreeningDetailProfile.md)
120
+ - [V2ScreeningListItem](docs/V2ScreeningListItem.md)
121
+ - [VerifyWebhook](docs/VerifyWebhook.md)
122
+ - [Webhook](docs/Webhook.md)
123
+ - [WebhookResponse](docs/WebhookResponse.md)
124
+
125
+ ### Authorization
126
+
127
+
128
+ Authentication schemes defined for the API:
129
+ <a id="cookieAuth"></a>
130
+ #### cookieAuth
131
+
132
+
133
+ - **Type**: API key
134
+ - **API key parameter name**: `__Secure-sessionid`
135
+ - **Location**:
136
+ <a id="jwtAuth"></a>
137
+ #### jwtAuth
138
+
139
+
140
+ - **Type**: HTTP Bearer Token authentication (JWT)
141
+ <a id="oauth2-application"></a>
142
+ #### oauth2 application
143
+
144
+
145
+ - **Type**: OAuth
146
+ - **Flow**: application
147
+ - **Authorization URL**:
148
+ - **Scopes**:
149
+ - `read:api`: read groups
150
+ - `create:api`: create groups
151
+ - `update:api`: update groups
152
+
153
+ ## About
154
+
155
+ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
156
+ and is automatically generated by the
157
+ [OpenAPI Generator](https://openapi-generator.tech) project:
158
+
159
+ - API version: `2.0.0`
160
+ - Package version: `0.0.5`
161
+ - Generator version: `7.23.0`
162
+ - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
163
+
164
+ The generated npm module supports the following:
165
+
166
+ - Environments
167
+ * Node.js
168
+ * Webpack
169
+ * Browserify
170
+ - Language levels
171
+ * ES5 - you must have a Promises/A+ library installed
172
+ * ES6
173
+ - Module systems
174
+ * CommonJS
175
+ * ES6 module system
176
+
177
+
178
+ ## Development
179
+
180
+ ### Building
181
+
182
+ To build the TypeScript source code, you need to have Node.js and npm installed.
183
+ After cloning the repository, navigate to the project directory and run:
184
+
185
+ ```bash
186
+ npm install
187
+ npm run build
188
+ ```
189
+
190
+ ### Publishing
191
+
192
+ Once you've built the package, you can publish it to npm:
193
+
194
+ ```bash
195
+ npm publish
196
+ ```
197
+
198
+ ## License
199
+
200
+ []()
@@ -0,0 +1,131 @@
1
+ /**
2
+ * Pescheck API
3
+ * Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type CustomTokenObtainPair } from '../models/CustomTokenObtainPair';
14
+ import { type JWTGeneration } from '../models/JWTGeneration';
15
+ import { type JWTResponse } from '../models/JWTResponse';
16
+ import { type TokenRefresh } from '../models/TokenRefresh';
17
+ export interface GenerateJWTToken2Request {
18
+ jWTGeneration: JWTGeneration;
19
+ }
20
+ export interface JwtCreateRequest {
21
+ customTokenObtainPair: CustomTokenObtainPair;
22
+ }
23
+ export interface JwtRefreshCreateRequest {
24
+ tokenRefresh: Omit<TokenRefresh, 'access'>;
25
+ }
26
+ /**
27
+ * AuthenticationApi - interface
28
+ *
29
+ * @export
30
+ * @interface AuthenticationApiInterface
31
+ */
32
+ export interface AuthenticationApiInterface {
33
+ /**
34
+ * Creates request options for generateJWTToken2 without sending the request
35
+ * @param {JWTGeneration} jWTGeneration
36
+ * @throws {RequiredError}
37
+ * @memberof AuthenticationApiInterface
38
+ */
39
+ generateJWTToken2RequestOpts(requestParameters: GenerateJWTToken2Request): Promise<runtime.RequestOpts>;
40
+ /**
41
+ * Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id (defaults to your current org). For a plain login, use POST /api/jwt/.
42
+ * @param {JWTGeneration} jWTGeneration
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ * @memberof AuthenticationApiInterface
46
+ */
47
+ generateJWTToken2Raw(requestParameters: GenerateJWTToken2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JWTResponse>>;
48
+ /**
49
+ * Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id (defaults to your current org). For a plain login, use POST /api/jwt/.
50
+ */
51
+ generateJWTToken2(requestParameters: GenerateJWTToken2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JWTResponse>;
52
+ /**
53
+ * Creates request options for jwtCreate without sending the request
54
+ * @param {CustomTokenObtainPair} customTokenObtainPair
55
+ * @throws {RequiredError}
56
+ * @memberof AuthenticationApiInterface
57
+ */
58
+ jwtCreateRequestOpts(requestParameters: JwtCreateRequest): Promise<runtime.RequestOpts>;
59
+ /**
60
+ * Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
61
+ * @param {CustomTokenObtainPair} customTokenObtainPair
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ * @memberof AuthenticationApiInterface
65
+ */
66
+ jwtCreateRaw(requestParameters: JwtCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomTokenObtainPair>>;
67
+ /**
68
+ * Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
69
+ */
70
+ jwtCreate(requestParameters: JwtCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomTokenObtainPair>;
71
+ /**
72
+ * Creates request options for jwtRefreshCreate without sending the request
73
+ * @param {TokenRefresh} tokenRefresh
74
+ * @throws {RequiredError}
75
+ * @memberof AuthenticationApiInterface
76
+ */
77
+ jwtRefreshCreateRequestOpts(requestParameters: JwtRefreshCreateRequest): Promise<runtime.RequestOpts>;
78
+ /**
79
+ * Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
80
+ * @param {TokenRefresh} tokenRefresh
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ * @memberof AuthenticationApiInterface
84
+ */
85
+ jwtRefreshCreateRaw(requestParameters: JwtRefreshCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenRefresh>>;
86
+ /**
87
+ * Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
88
+ */
89
+ jwtRefreshCreate(requestParameters: JwtRefreshCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenRefresh>;
90
+ }
91
+ /**
92
+ *
93
+ */
94
+ export declare class AuthenticationApi extends runtime.BaseAPI implements AuthenticationApiInterface {
95
+ /**
96
+ * Creates request options for generateJWTToken2 without sending the request
97
+ */
98
+ generateJWTToken2RequestOpts(requestParameters: GenerateJWTToken2Request): Promise<runtime.RequestOpts>;
99
+ /**
100
+ * Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id (defaults to your current org). For a plain login, use POST /api/jwt/.
101
+ */
102
+ generateJWTToken2Raw(requestParameters: GenerateJWTToken2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JWTResponse>>;
103
+ /**
104
+ * Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id (defaults to your current org). For a plain login, use POST /api/jwt/.
105
+ */
106
+ generateJWTToken2(requestParameters: GenerateJWTToken2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JWTResponse>;
107
+ /**
108
+ * Creates request options for jwtCreate without sending the request
109
+ */
110
+ jwtCreateRequestOpts(requestParameters: JwtCreateRequest): Promise<runtime.RequestOpts>;
111
+ /**
112
+ * Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
113
+ */
114
+ jwtCreateRaw(requestParameters: JwtCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomTokenObtainPair>>;
115
+ /**
116
+ * Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
117
+ */
118
+ jwtCreate(requestParameters: JwtCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomTokenObtainPair>;
119
+ /**
120
+ * Creates request options for jwtRefreshCreate without sending the request
121
+ */
122
+ jwtRefreshCreateRequestOpts(requestParameters: JwtRefreshCreateRequest): Promise<runtime.RequestOpts>;
123
+ /**
124
+ * Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
125
+ */
126
+ jwtRefreshCreateRaw(requestParameters: JwtRefreshCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenRefresh>>;
127
+ /**
128
+ * Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
129
+ */
130
+ jwtRefreshCreate(requestParameters: JwtRefreshCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenRefresh>;
131
+ }
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pescheck API
6
+ * Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.AuthenticationApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const CustomTokenObtainPair_1 = require("../models/CustomTokenObtainPair");
28
+ const JWTGeneration_1 = require("../models/JWTGeneration");
29
+ const JWTResponse_1 = require("../models/JWTResponse");
30
+ const TokenRefresh_1 = require("../models/TokenRefresh");
31
+ /**
32
+ *
33
+ */
34
+ class AuthenticationApi extends runtime.BaseAPI {
35
+ /**
36
+ * Creates request options for generateJWTToken2 without sending the request
37
+ */
38
+ generateJWTToken2RequestOpts(requestParameters) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (requestParameters['jWTGeneration'] == null) {
41
+ throw new runtime.RequiredError('jWTGeneration', 'Required parameter "jWTGeneration" was null or undefined when calling generateJWTToken2().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ headerParameters['Content-Type'] = 'application/json';
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ // oauth required
48
+ headerParameters["Authorization"] = `Bearer ${yield this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
49
+ }
50
+ let urlPath = `/api/v2/jwt/generate/`;
51
+ return {
52
+ path: urlPath,
53
+ method: 'POST',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ body: (0, JWTGeneration_1.JWTGenerationToJSON)(requestParameters['jWTGeneration']),
57
+ };
58
+ });
59
+ }
60
+ /**
61
+ * Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id (defaults to your current org). For a plain login, use POST /api/jwt/.
62
+ */
63
+ generateJWTToken2Raw(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const requestOptions = yield this.generateJWTToken2RequestOpts(requestParameters);
66
+ const response = yield this.request(requestOptions, initOverrides);
67
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, JWTResponse_1.JWTResponseFromJSON)(jsonValue));
68
+ });
69
+ }
70
+ /**
71
+ * Log in with email + password. Returns a JWT pair scoped to the organization or division specified by organisation_id/division_id (defaults to your current org). For a plain login, use POST /api/jwt/.
72
+ */
73
+ generateJWTToken2(requestParameters, initOverrides) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const response = yield this.generateJWTToken2Raw(requestParameters, initOverrides);
76
+ return yield response.value();
77
+ });
78
+ }
79
+ /**
80
+ * Creates request options for jwtCreate without sending the request
81
+ */
82
+ jwtCreateRequestOpts(requestParameters) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ if (requestParameters['customTokenObtainPair'] == null) {
85
+ throw new runtime.RequiredError('customTokenObtainPair', 'Required parameter "customTokenObtainPair" was null or undefined when calling jwtCreate().');
86
+ }
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ headerParameters['Content-Type'] = 'application/json';
90
+ if (this.configuration && this.configuration.accessToken) {
91
+ // oauth required
92
+ headerParameters["Authorization"] = `Bearer ${yield this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
93
+ }
94
+ let urlPath = `/api/jwt/`;
95
+ return {
96
+ path: urlPath,
97
+ method: 'POST',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ body: (0, CustomTokenObtainPair_1.CustomTokenObtainPairToJSON)(requestParameters['customTokenObtainPair']),
101
+ };
102
+ });
103
+ }
104
+ /**
105
+ * Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
106
+ */
107
+ jwtCreateRaw(requestParameters, initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const requestOptions = yield this.jwtCreateRequestOpts(requestParameters);
110
+ const response = yield this.request(requestOptions, initOverrides);
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CustomTokenObtainPair_1.CustomTokenObtainPairFromJSON)(jsonValue));
112
+ });
113
+ }
114
+ /**
115
+ * Log in with email + password. Returns a JWT pair scoped to your current organization (last viewed, or first available). For a token scoped to a specific org or division, use POST /api/v2/jwt/generate/.
116
+ */
117
+ jwtCreate(requestParameters, initOverrides) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const response = yield this.jwtCreateRaw(requestParameters, initOverrides);
120
+ return yield response.value();
121
+ });
122
+ }
123
+ /**
124
+ * Creates request options for jwtRefreshCreate without sending the request
125
+ */
126
+ jwtRefreshCreateRequestOpts(requestParameters) {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ if (requestParameters['tokenRefresh'] == null) {
129
+ throw new runtime.RequiredError('tokenRefresh', 'Required parameter "tokenRefresh" was null or undefined when calling jwtRefreshCreate().');
130
+ }
131
+ const queryParameters = {};
132
+ const headerParameters = {};
133
+ headerParameters['Content-Type'] = 'application/json';
134
+ if (this.configuration && this.configuration.accessToken) {
135
+ // oauth required
136
+ headerParameters["Authorization"] = `Bearer ${yield this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
137
+ }
138
+ let urlPath = `/api/jwt/refresh/`;
139
+ return {
140
+ path: urlPath,
141
+ method: 'POST',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ body: (0, TokenRefresh_1.TokenRefreshToJSON)(requestParameters['tokenRefresh']),
145
+ };
146
+ });
147
+ }
148
+ /**
149
+ * Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
150
+ */
151
+ jwtRefreshCreateRaw(requestParameters, initOverrides) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ const requestOptions = yield this.jwtRefreshCreateRequestOpts(requestParameters);
154
+ const response = yield this.request(requestOptions, initOverrides);
155
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, TokenRefresh_1.TokenRefreshFromJSON)(jsonValue));
156
+ });
157
+ }
158
+ /**
159
+ * Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
160
+ */
161
+ jwtRefreshCreate(requestParameters, initOverrides) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ const response = yield this.jwtRefreshCreateRaw(requestParameters, initOverrides);
164
+ return yield response.value();
165
+ });
166
+ }
167
+ }
168
+ exports.AuthenticationApi = AuthenticationApi;