@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,98 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pescheck API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.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
+ import { mapValues } from '../runtime';
16
+ import type { V2Candidate } from './V2Candidate';
17
+ import {
18
+ V2CandidateFromJSON,
19
+ V2CandidateFromJSONTyped,
20
+ V2CandidateToJSON,
21
+ V2CandidateToJSONTyped,
22
+ } from './V2Candidate';
23
+ import type { V2ScreeningCheck } from './V2ScreeningCheck';
24
+ import {
25
+ V2ScreeningCheckFromJSON,
26
+ V2ScreeningCheckFromJSONTyped,
27
+ V2ScreeningCheckToJSON,
28
+ V2ScreeningCheckToJSONTyped,
29
+ } from './V2ScreeningCheck';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface V2ScreeningCreate
35
+ */
36
+ export interface V2ScreeningCreate {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof V2ScreeningCreate
41
+ */
42
+ profileId: string;
43
+ /**
44
+ *
45
+ * @type {V2Candidate}
46
+ * @memberof V2ScreeningCreate
47
+ */
48
+ candidate: V2Candidate;
49
+ /**
50
+ *
51
+ * @type {Array<V2ScreeningCheck>}
52
+ * @memberof V2ScreeningCreate
53
+ */
54
+ checks?: Array<V2ScreeningCheck>;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the V2ScreeningCreate interface.
59
+ */
60
+ export function instanceOfV2ScreeningCreate(value: any): value is V2ScreeningCreate {
61
+ if ((!('profileId' in value) && !('profile_id' in value)) || (value['profileId'] === undefined && value['profile_id'] === undefined)) return false;
62
+ if (!('candidate' in value) || value['candidate'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function V2ScreeningCreateFromJSON(json: any): V2ScreeningCreate {
67
+ return V2ScreeningCreateFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function V2ScreeningCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningCreate {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'profileId': json['profile_id'],
77
+ 'candidate': V2CandidateFromJSON(json['candidate']),
78
+ 'checks': json['checks'] == null ? undefined : ((json['checks'] as Array<any>).map(V2ScreeningCheckFromJSON)),
79
+ };
80
+ }
81
+
82
+ export function V2ScreeningCreateToJSON(json: any): V2ScreeningCreate {
83
+ return V2ScreeningCreateToJSONTyped(json, false);
84
+ }
85
+
86
+ export function V2ScreeningCreateToJSONTyped(value?: V2ScreeningCreate | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'profile_id': value['profileId'],
94
+ 'candidate': V2CandidateToJSON(value['candidate']),
95
+ 'checks': value['checks'] == null ? undefined : ((value['checks'] as Array<any>).map(V2ScreeningCheckToJSON)),
96
+ };
97
+ }
98
+
@@ -0,0 +1,152 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pescheck API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.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
+ import { mapValues } from '../runtime';
16
+ import type { V2Candidate } from './V2Candidate';
17
+ import {
18
+ V2CandidateFromJSON,
19
+ V2CandidateFromJSONTyped,
20
+ V2CandidateToJSON,
21
+ V2CandidateToJSONTyped,
22
+ } from './V2Candidate';
23
+ import type { V2ScreeningDetailProfile } from './V2ScreeningDetailProfile';
24
+ import {
25
+ V2ScreeningDetailProfileFromJSON,
26
+ V2ScreeningDetailProfileFromJSONTyped,
27
+ V2ScreeningDetailProfileToJSON,
28
+ V2ScreeningDetailProfileToJSONTyped,
29
+ } from './V2ScreeningDetailProfile';
30
+ import type { V2ScreeningCheckEntry } from './V2ScreeningCheckEntry';
31
+ import {
32
+ V2ScreeningCheckEntryFromJSON,
33
+ V2ScreeningCheckEntryFromJSONTyped,
34
+ V2ScreeningCheckEntryToJSON,
35
+ V2ScreeningCheckEntryToJSONTyped,
36
+ } from './V2ScreeningCheckEntry';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface V2ScreeningDetail
42
+ */
43
+ export interface V2ScreeningDetail {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof V2ScreeningDetail
48
+ */
49
+ readonly id: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof V2ScreeningDetail
54
+ */
55
+ readonly status: string;
56
+ /**
57
+ *
58
+ * @type {V2ScreeningDetailProfile}
59
+ * @memberof V2ScreeningDetail
60
+ */
61
+ profile: V2ScreeningDetailProfile | null;
62
+ /**
63
+ *
64
+ * @type {V2Candidate}
65
+ * @memberof V2ScreeningDetail
66
+ */
67
+ readonly candidate: V2Candidate;
68
+ /**
69
+ *
70
+ * @type {Array<V2ScreeningCheckEntry>}
71
+ * @memberof V2ScreeningDetail
72
+ */
73
+ readonly checks: Array<V2ScreeningCheckEntry>;
74
+ /**
75
+ * Public wizard URL for the candidate. Null when no check needs candidate input.
76
+ * @type {string}
77
+ * @memberof V2ScreeningDetail
78
+ */
79
+ readonly candidateWizardUrl: string | null;
80
+ /**
81
+ * Dashboard URL for this screening.
82
+ * @type {string}
83
+ * @memberof V2ScreeningDetail
84
+ */
85
+ readonly dashboardUrl: string;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof V2ScreeningDetail
90
+ */
91
+ readonly createdAt: Date;
92
+ /**
93
+ *
94
+ * @type {Date}
95
+ * @memberof V2ScreeningDetail
96
+ */
97
+ readonly updatedAt: Date;
98
+ }
99
+
100
+ /**
101
+ * Check if a given object implements the V2ScreeningDetail interface.
102
+ */
103
+ export function instanceOfV2ScreeningDetail(value: any): value is V2ScreeningDetail {
104
+ if (!('id' in value) || value['id'] === undefined) return false;
105
+ if (!('status' in value) || value['status'] === undefined) return false;
106
+ if (!('profile' in value) || value['profile'] === undefined) return false;
107
+ if (!('candidate' in value) || value['candidate'] === undefined) return false;
108
+ if (!('checks' in value) || value['checks'] === undefined) return false;
109
+ if ((!('candidateWizardUrl' in value) && !('candidate_wizard_url' in value)) || (value['candidateWizardUrl'] === undefined && value['candidate_wizard_url'] === undefined)) return false;
110
+ if ((!('dashboardUrl' in value) && !('dashboard_url' in value)) || (value['dashboardUrl'] === undefined && value['dashboard_url'] === undefined)) return false;
111
+ if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined)) return false;
112
+ if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined)) return false;
113
+ return true;
114
+ }
115
+
116
+ export function V2ScreeningDetailFromJSON(json: any): V2ScreeningDetail {
117
+ return V2ScreeningDetailFromJSONTyped(json, false);
118
+ }
119
+
120
+ export function V2ScreeningDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningDetail {
121
+ if (json == null) {
122
+ return json;
123
+ }
124
+ return {
125
+
126
+ 'id': json['id'],
127
+ 'status': json['status'],
128
+ 'profile': V2ScreeningDetailProfileFromJSON(json['profile']),
129
+ 'candidate': V2CandidateFromJSON(json['candidate']),
130
+ 'checks': ((json['checks'] as Array<any>).map(V2ScreeningCheckEntryFromJSON)),
131
+ 'candidateWizardUrl': json['candidate_wizard_url'],
132
+ 'dashboardUrl': json['dashboard_url'],
133
+ 'createdAt': (new Date(json['created_at'])),
134
+ 'updatedAt': (new Date(json['updated_at'])),
135
+ };
136
+ }
137
+
138
+ export function V2ScreeningDetailToJSON(json: any): V2ScreeningDetail {
139
+ return V2ScreeningDetailToJSONTyped(json, false);
140
+ }
141
+
142
+ export function V2ScreeningDetailToJSONTyped(value?: Omit<V2ScreeningDetail, 'id'|'status'|'candidate'|'checks'|'candidate_wizard_url'|'dashboard_url'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
143
+ if (value == null) {
144
+ return value;
145
+ }
146
+
147
+ return {
148
+
149
+ 'profile': V2ScreeningDetailProfileToJSON(value['profile']),
150
+ };
151
+ }
152
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pescheck API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface V2ScreeningDetailProfile
20
+ */
21
+ export interface V2ScreeningDetailProfile {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof V2ScreeningDetailProfile
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof V2ScreeningDetailProfile
32
+ */
33
+ name?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the V2ScreeningDetailProfile interface.
38
+ */
39
+ export function instanceOfV2ScreeningDetailProfile(value: any): value is V2ScreeningDetailProfile {
40
+ return true;
41
+ }
42
+
43
+ export function V2ScreeningDetailProfileFromJSON(json: any): V2ScreeningDetailProfile {
44
+ return V2ScreeningDetailProfileFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function V2ScreeningDetailProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningDetailProfile {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'id': json['id'] == null ? undefined : json['id'],
54
+ 'name': json['name'] == null ? undefined : json['name'],
55
+ };
56
+ }
57
+
58
+ export function V2ScreeningDetailProfileToJSON(json: any): V2ScreeningDetailProfile {
59
+ return V2ScreeningDetailProfileToJSONTyped(json, false);
60
+ }
61
+
62
+ export function V2ScreeningDetailProfileToJSONTyped(value?: V2ScreeningDetailProfile | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'id': value['id'],
70
+ 'name': value['name'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,154 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pescheck API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.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
+ import { mapValues } from '../runtime';
16
+ import type { V2Candidate } from './V2Candidate';
17
+ import {
18
+ V2CandidateFromJSON,
19
+ V2CandidateFromJSONTyped,
20
+ V2CandidateToJSON,
21
+ V2CandidateToJSONTyped,
22
+ } from './V2Candidate';
23
+ import type { V2ScreeningDetailProfile } from './V2ScreeningDetailProfile';
24
+ import {
25
+ V2ScreeningDetailProfileFromJSON,
26
+ V2ScreeningDetailProfileFromJSONTyped,
27
+ V2ScreeningDetailProfileToJSON,
28
+ V2ScreeningDetailProfileToJSONTyped,
29
+ } from './V2ScreeningDetailProfile';
30
+ import type { V2ScreeningCheckListItem } from './V2ScreeningCheckListItem';
31
+ import {
32
+ V2ScreeningCheckListItemFromJSON,
33
+ V2ScreeningCheckListItemFromJSONTyped,
34
+ V2ScreeningCheckListItemToJSON,
35
+ V2ScreeningCheckListItemToJSONTyped,
36
+ } from './V2ScreeningCheckListItem';
37
+
38
+ /**
39
+ * List shape for GET /screenings/. Same candidate as detail; the only thing
40
+ * we slim here is per-check info (status only), since config/input/output are
41
+ * heavy and rarely needed at list time.
42
+ * @export
43
+ * @interface V2ScreeningListItem
44
+ */
45
+ export interface V2ScreeningListItem {
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof V2ScreeningListItem
50
+ */
51
+ readonly id: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof V2ScreeningListItem
56
+ */
57
+ status?: string;
58
+ /**
59
+ *
60
+ * @type {V2ScreeningDetailProfile}
61
+ * @memberof V2ScreeningListItem
62
+ */
63
+ profile: V2ScreeningDetailProfile | null;
64
+ /**
65
+ *
66
+ * @type {V2Candidate}
67
+ * @memberof V2ScreeningListItem
68
+ */
69
+ readonly candidate: V2Candidate;
70
+ /**
71
+ *
72
+ * @type {Array<V2ScreeningCheckListItem>}
73
+ * @memberof V2ScreeningListItem
74
+ */
75
+ readonly checks: Array<V2ScreeningCheckListItem>;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof V2ScreeningListItem
80
+ */
81
+ readonly candidateWizardUrl: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof V2ScreeningListItem
86
+ */
87
+ readonly dashboardUrl: string;
88
+ /**
89
+ *
90
+ * @type {Date}
91
+ * @memberof V2ScreeningListItem
92
+ */
93
+ readonly createdAt: Date;
94
+ /**
95
+ *
96
+ * @type {Date}
97
+ * @memberof V2ScreeningListItem
98
+ */
99
+ readonly updatedAt: Date;
100
+ }
101
+
102
+ /**
103
+ * Check if a given object implements the V2ScreeningListItem interface.
104
+ */
105
+ export function instanceOfV2ScreeningListItem(value: any): value is V2ScreeningListItem {
106
+ if (!('id' in value) || value['id'] === undefined) return false;
107
+ if (!('profile' in value) || value['profile'] === undefined) return false;
108
+ if (!('candidate' in value) || value['candidate'] === undefined) return false;
109
+ if (!('checks' in value) || value['checks'] === undefined) return false;
110
+ if ((!('candidateWizardUrl' in value) && !('candidate_wizard_url' in value)) || (value['candidateWizardUrl'] === undefined && value['candidate_wizard_url'] === undefined)) return false;
111
+ if ((!('dashboardUrl' in value) && !('dashboard_url' in value)) || (value['dashboardUrl'] === undefined && value['dashboard_url'] === undefined)) return false;
112
+ if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined)) return false;
113
+ if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined)) return false;
114
+ return true;
115
+ }
116
+
117
+ export function V2ScreeningListItemFromJSON(json: any): V2ScreeningListItem {
118
+ return V2ScreeningListItemFromJSONTyped(json, false);
119
+ }
120
+
121
+ export function V2ScreeningListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningListItem {
122
+ if (json == null) {
123
+ return json;
124
+ }
125
+ return {
126
+
127
+ 'id': json['id'],
128
+ 'status': json['status'] == null ? undefined : json['status'],
129
+ 'profile': V2ScreeningDetailProfileFromJSON(json['profile']),
130
+ 'candidate': V2CandidateFromJSON(json['candidate']),
131
+ 'checks': ((json['checks'] as Array<any>).map(V2ScreeningCheckListItemFromJSON)),
132
+ 'candidateWizardUrl': json['candidate_wizard_url'],
133
+ 'dashboardUrl': json['dashboard_url'],
134
+ 'createdAt': (new Date(json['created_at'])),
135
+ 'updatedAt': (new Date(json['updated_at'])),
136
+ };
137
+ }
138
+
139
+ export function V2ScreeningListItemToJSON(json: any): V2ScreeningListItem {
140
+ return V2ScreeningListItemToJSONTyped(json, false);
141
+ }
142
+
143
+ export function V2ScreeningListItemToJSONTyped(value?: Omit<V2ScreeningListItem, 'id'|'candidate'|'checks'|'candidate_wizard_url'|'dashboard_url'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
144
+ if (value == null) {
145
+ return value;
146
+ }
147
+
148
+ return {
149
+
150
+ 'status': value['status'],
151
+ 'profile': V2ScreeningDetailProfileToJSON(value['profile']),
152
+ };
153
+ }
154
+
@@ -0,0 +1,68 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pescheck API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Body shape for POST /webhooks/{id}/verify/. The verification code is the
18
+ * one sent to the webhook URL when the webhook was created; the receiver POSTs
19
+ * it back here to confirm ownership.
20
+ * @export
21
+ * @interface VerifyWebhook
22
+ */
23
+ export interface VerifyWebhook {
24
+ /**
25
+ * The verification code delivered to the webhook URL on creation.
26
+ * @type {string}
27
+ * @memberof VerifyWebhook
28
+ */
29
+ verificationCode: string;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the VerifyWebhook interface.
34
+ */
35
+ export function instanceOfVerifyWebhook(value: any): value is VerifyWebhook {
36
+ if ((!('verificationCode' in value) && !('verification_code' in value)) || (value['verificationCode'] === undefined && value['verification_code'] === undefined)) return false;
37
+ return true;
38
+ }
39
+
40
+ export function VerifyWebhookFromJSON(json: any): VerifyWebhook {
41
+ return VerifyWebhookFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function VerifyWebhookFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyWebhook {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'verificationCode': json['verification_code'],
51
+ };
52
+ }
53
+
54
+ export function VerifyWebhookToJSON(json: any): VerifyWebhook {
55
+ return VerifyWebhookToJSONTyped(json, false);
56
+ }
57
+
58
+ export function VerifyWebhookToJSONTyped(value?: VerifyWebhook | null, ignoreDiscriminator: boolean = false): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+
63
+ return {
64
+
65
+ 'verification_code': value['verificationCode'],
66
+ };
67
+ }
68
+
@@ -0,0 +1,118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Pescheck API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Serializer for webhook creation/update requests
18
+ * @export
19
+ * @interface Webhook
20
+ */
21
+ export interface Webhook {
22
+ /**
23
+ * Descriptive name for this webhook
24
+ * @type {string}
25
+ * @memberof Webhook
26
+ */
27
+ name: string;
28
+ /**
29
+ * HTTPS URL where webhook events will be sent
30
+ * @type {string}
31
+ * @memberof Webhook
32
+ */
33
+ url: string;
34
+ /**
35
+ * List of events to subscribe to. Valid events: check.status_changed, screening.status_changed, screening.archived, package.created, package.updated, profile.created, profile.updated, division.created, division.updated
36
+ * @type {Array<WebhookEventsEnum>}
37
+ * @memberof Webhook
38
+ */
39
+ events: Array<WebhookEventsEnum>;
40
+ /**
41
+ * Whether the webhook is active
42
+ * @type {boolean}
43
+ * @memberof Webhook
44
+ */
45
+ active?: boolean;
46
+ /**
47
+ * Division ID to create webhook for (optional)
48
+ * @type {string}
49
+ * @memberof Webhook
50
+ */
51
+ divisionId?: string;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const WebhookEventsEnum = {
59
+ CheckStatusChanged: 'check.status_changed',
60
+ ScreeningStatusChanged: 'screening.status_changed',
61
+ ScreeningArchived: 'screening.archived',
62
+ PackageCreated: 'package.created',
63
+ PackageUpdated: 'package.updated',
64
+ ProfileCreated: 'profile.created',
65
+ ProfileUpdated: 'profile.updated',
66
+ DivisionCreated: 'division.created',
67
+ DivisionUpdated: 'division.updated'
68
+ } as const;
69
+ export type WebhookEventsEnum = typeof WebhookEventsEnum[keyof typeof WebhookEventsEnum];
70
+
71
+
72
+ /**
73
+ * Check if a given object implements the Webhook interface.
74
+ */
75
+ export function instanceOfWebhook(value: any): value is Webhook {
76
+ if (!('name' in value) || value['name'] === undefined) return false;
77
+ if (!('url' in value) || value['url'] === undefined) return false;
78
+ if (!('events' in value) || value['events'] === undefined) return false;
79
+ return true;
80
+ }
81
+
82
+ export function WebhookFromJSON(json: any): Webhook {
83
+ return WebhookFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function WebhookFromJSONTyped(json: any, ignoreDiscriminator: boolean): Webhook {
87
+ if (json == null) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'name': json['name'],
93
+ 'url': json['url'],
94
+ 'events': json['events'],
95
+ 'active': json['active'] == null ? undefined : json['active'],
96
+ 'divisionId': json['division_id'] == null ? undefined : json['division_id'],
97
+ };
98
+ }
99
+
100
+ export function WebhookToJSON(json: any): Webhook {
101
+ return WebhookToJSONTyped(json, false);
102
+ }
103
+
104
+ export function WebhookToJSONTyped(value?: Webhook | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'name': value['name'],
112
+ 'url': value['url'],
113
+ 'events': value['events'],
114
+ 'active': value['active'],
115
+ 'division_id': value['divisionId'],
116
+ };
117
+ }
118
+