@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.
- package/.openapi-generator/FILES +97 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +200 -0
- package/dist/apis/AuthenticationApi.d.ts +131 -0
- package/dist/apis/AuthenticationApi.js +168 -0
- package/dist/apis/ChecksApi.d.ts +91 -0
- package/dist/apis/ChecksApi.js +116 -0
- package/dist/apis/DivisionsApi.d.ts +211 -0
- package/dist/apis/DivisionsApi.js +264 -0
- package/dist/apis/OAuthApi.d.ts +124 -0
- package/dist/apis/OAuthApi.js +159 -0
- package/dist/apis/ProfilesApi.d.ts +270 -0
- package/dist/apis/ProfilesApi.js +334 -0
- package/dist/apis/ScreeningsApi.d.ts +172 -0
- package/dist/apis/ScreeningsApi.js +216 -0
- package/dist/apis/WebhooksApi.d.ts +168 -0
- package/dist/apis/WebhooksApi.js +213 -0
- package/dist/apis/index.d.ts +7 -0
- package/dist/apis/index.js +25 -0
- package/dist/esm/apis/AuthenticationApi.d.ts +131 -0
- package/dist/esm/apis/AuthenticationApi.js +164 -0
- package/dist/esm/apis/ChecksApi.d.ts +91 -0
- package/dist/esm/apis/ChecksApi.js +112 -0
- package/dist/esm/apis/DivisionsApi.d.ts +211 -0
- package/dist/esm/apis/DivisionsApi.js +260 -0
- package/dist/esm/apis/OAuthApi.d.ts +124 -0
- package/dist/esm/apis/OAuthApi.js +155 -0
- package/dist/esm/apis/ProfilesApi.d.ts +270 -0
- package/dist/esm/apis/ProfilesApi.js +330 -0
- package/dist/esm/apis/ScreeningsApi.d.ts +172 -0
- package/dist/esm/apis/ScreeningsApi.js +212 -0
- package/dist/esm/apis/WebhooksApi.d.ts +168 -0
- package/dist/esm/apis/WebhooksApi.js +209 -0
- package/dist/esm/apis/index.d.ts +7 -0
- package/dist/esm/apis/index.js +9 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/CustomTokenObtainPair.d.ts +38 -0
- package/dist/esm/models/CustomTokenObtainPair.js +47 -0
- package/dist/esm/models/DivisionReadOnly.d.ts +116 -0
- package/dist/esm/models/DivisionReadOnly.js +73 -0
- package/dist/esm/models/DivisionWrite.d.ts +98 -0
- package/dist/esm/models/DivisionWrite.js +78 -0
- package/dist/esm/models/JWTGeneration.d.ts +50 -0
- package/dist/esm/models/JWTGeneration.js +51 -0
- package/dist/esm/models/JWTResponse.d.ts +62 -0
- package/dist/esm/models/JWTResponse.js +61 -0
- package/dist/esm/models/OAuthApplication.d.ts +84 -0
- package/dist/esm/models/OAuthApplication.js +68 -0
- package/dist/esm/models/OAuthApplicationResponse.d.ts +98 -0
- package/dist/esm/models/OAuthApplicationResponse.js +80 -0
- package/dist/esm/models/PaginatedDivisionReadOnlyList.d.ts +51 -0
- package/dist/esm/models/PaginatedDivisionReadOnlyList.js +56 -0
- package/dist/esm/models/PaginatedV2ProfileListItemList.d.ts +51 -0
- package/dist/esm/models/PaginatedV2ProfileListItemList.js +56 -0
- package/dist/esm/models/PaginatedV2ScreeningListItemList.d.ts +51 -0
- package/dist/esm/models/PaginatedV2ScreeningListItemList.js +56 -0
- package/dist/esm/models/PatchedDivisionWrite.d.ts +98 -0
- package/dist/esm/models/PatchedDivisionWrite.js +62 -0
- package/dist/esm/models/PatchedV2ProfilePartialUpdate.d.ts +39 -0
- package/dist/esm/models/PatchedV2ProfilePartialUpdate.js +43 -0
- package/dist/esm/models/TokenRefresh.d.ts +38 -0
- package/dist/esm/models/TokenRefresh.js +44 -0
- package/dist/esm/models/V2Candidate.d.ts +592 -0
- package/dist/esm/models/V2Candidate.js +318 -0
- package/dist/esm/models/V2CheckField.d.ts +56 -0
- package/dist/esm/models/V2CheckField.js +53 -0
- package/dist/esm/models/V2CheckInfo.d.ts +100 -0
- package/dist/esm/models/V2CheckInfo.js +76 -0
- package/dist/esm/models/V2Document.d.ts +115 -0
- package/dist/esm/models/V2Document.js +84 -0
- package/dist/esm/models/V2DocumentContent.d.ts +40 -0
- package/dist/esm/models/V2DocumentContent.js +45 -0
- package/dist/esm/models/V2Money.d.ts +38 -0
- package/dist/esm/models/V2Money.js +47 -0
- package/dist/esm/models/V2ProfileCheck.d.ts +85 -0
- package/dist/esm/models/V2ProfileCheck.js +68 -0
- package/dist/esm/models/V2ProfileCheckEntry.d.ts +120 -0
- package/dist/esm/models/V2ProfileCheckEntry.js +87 -0
- package/dist/esm/models/V2ProfileCreate.d.ts +45 -0
- package/dist/esm/models/V2ProfileCreate.js +50 -0
- package/dist/esm/models/V2ProfileDetail.d.ts +94 -0
- package/dist/esm/models/V2ProfileDetail.js +75 -0
- package/dist/esm/models/V2ProfileListItem.d.ts +68 -0
- package/dist/esm/models/V2ProfileListItem.js +61 -0
- package/dist/esm/models/V2ProfileUpdate.d.ts +47 -0
- package/dist/esm/models/V2ProfileUpdate.js +50 -0
- package/dist/esm/models/V2ProfileUpdateCheck.d.ts +96 -0
- package/dist/esm/models/V2ProfileUpdateCheck.js +74 -0
- package/dist/esm/models/V2ScreeningCheck.d.ts +95 -0
- package/dist/esm/models/V2ScreeningCheck.js +72 -0
- package/dist/esm/models/V2ScreeningCheckEntry.d.ts +135 -0
- package/dist/esm/models/V2ScreeningCheckEntry.js +92 -0
- package/dist/esm/models/V2ScreeningCheckListItem.d.ts +93 -0
- package/dist/esm/models/V2ScreeningCheckListItem.js +74 -0
- package/dist/esm/models/V2ScreeningCreate.d.ts +46 -0
- package/dist/esm/models/V2ScreeningCreate.js +51 -0
- package/dist/esm/models/V2ScreeningDetail.d.ts +83 -0
- package/dist/esm/models/V2ScreeningDetail.js +70 -0
- package/dist/esm/models/V2ScreeningDetailProfile.d.ts +38 -0
- package/dist/esm/models/V2ScreeningDetailProfile.js +43 -0
- package/dist/esm/models/V2ScreeningListItem.d.ts +85 -0
- package/dist/esm/models/V2ScreeningListItem.js +69 -0
- package/dist/esm/models/VerifyWebhook.d.ts +34 -0
- package/dist/esm/models/VerifyWebhook.js +43 -0
- package/dist/esm/models/Webhook.d.ts +71 -0
- package/dist/esm/models/Webhook.js +69 -0
- package/dist/esm/models/WebhookResponse.d.ts +87 -0
- package/dist/esm/models/WebhookResponse.js +51 -0
- package/dist/esm/models/index.d.ts +36 -0
- package/dist/esm/models/index.js +38 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +349 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/CustomTokenObtainPair.d.ts +38 -0
- package/dist/models/CustomTokenObtainPair.js +54 -0
- package/dist/models/DivisionReadOnly.d.ts +116 -0
- package/dist/models/DivisionReadOnly.js +80 -0
- package/dist/models/DivisionWrite.d.ts +98 -0
- package/dist/models/DivisionWrite.js +85 -0
- package/dist/models/JWTGeneration.d.ts +50 -0
- package/dist/models/JWTGeneration.js +58 -0
- package/dist/models/JWTResponse.d.ts +62 -0
- package/dist/models/JWTResponse.js +68 -0
- package/dist/models/OAuthApplication.d.ts +84 -0
- package/dist/models/OAuthApplication.js +76 -0
- package/dist/models/OAuthApplicationResponse.d.ts +98 -0
- package/dist/models/OAuthApplicationResponse.js +88 -0
- package/dist/models/PaginatedDivisionReadOnlyList.d.ts +51 -0
- package/dist/models/PaginatedDivisionReadOnlyList.js +63 -0
- package/dist/models/PaginatedV2ProfileListItemList.d.ts +51 -0
- package/dist/models/PaginatedV2ProfileListItemList.js +63 -0
- package/dist/models/PaginatedV2ScreeningListItemList.d.ts +51 -0
- package/dist/models/PaginatedV2ScreeningListItemList.js +63 -0
- package/dist/models/PatchedDivisionWrite.d.ts +98 -0
- package/dist/models/PatchedDivisionWrite.js +69 -0
- package/dist/models/PatchedV2ProfilePartialUpdate.d.ts +39 -0
- package/dist/models/PatchedV2ProfilePartialUpdate.js +50 -0
- package/dist/models/TokenRefresh.d.ts +38 -0
- package/dist/models/TokenRefresh.js +51 -0
- package/dist/models/V2Candidate.d.ts +592 -0
- package/dist/models/V2Candidate.js +326 -0
- package/dist/models/V2CheckField.d.ts +56 -0
- package/dist/models/V2CheckField.js +60 -0
- package/dist/models/V2CheckInfo.d.ts +100 -0
- package/dist/models/V2CheckInfo.js +83 -0
- package/dist/models/V2Document.d.ts +115 -0
- package/dist/models/V2Document.js +92 -0
- package/dist/models/V2DocumentContent.d.ts +40 -0
- package/dist/models/V2DocumentContent.js +52 -0
- package/dist/models/V2Money.d.ts +38 -0
- package/dist/models/V2Money.js +54 -0
- package/dist/models/V2ProfileCheck.d.ts +85 -0
- package/dist/models/V2ProfileCheck.js +76 -0
- package/dist/models/V2ProfileCheckEntry.d.ts +120 -0
- package/dist/models/V2ProfileCheckEntry.js +95 -0
- package/dist/models/V2ProfileCreate.d.ts +45 -0
- package/dist/models/V2ProfileCreate.js +57 -0
- package/dist/models/V2ProfileDetail.d.ts +94 -0
- package/dist/models/V2ProfileDetail.js +82 -0
- package/dist/models/V2ProfileListItem.d.ts +68 -0
- package/dist/models/V2ProfileListItem.js +68 -0
- package/dist/models/V2ProfileUpdate.d.ts +47 -0
- package/dist/models/V2ProfileUpdate.js +57 -0
- package/dist/models/V2ProfileUpdateCheck.d.ts +96 -0
- package/dist/models/V2ProfileUpdateCheck.js +82 -0
- package/dist/models/V2ScreeningCheck.d.ts +95 -0
- package/dist/models/V2ScreeningCheck.js +80 -0
- package/dist/models/V2ScreeningCheckEntry.d.ts +135 -0
- package/dist/models/V2ScreeningCheckEntry.js +100 -0
- package/dist/models/V2ScreeningCheckListItem.d.ts +93 -0
- package/dist/models/V2ScreeningCheckListItem.js +82 -0
- package/dist/models/V2ScreeningCreate.d.ts +46 -0
- package/dist/models/V2ScreeningCreate.js +58 -0
- package/dist/models/V2ScreeningDetail.d.ts +83 -0
- package/dist/models/V2ScreeningDetail.js +77 -0
- package/dist/models/V2ScreeningDetailProfile.d.ts +38 -0
- package/dist/models/V2ScreeningDetailProfile.js +50 -0
- package/dist/models/V2ScreeningListItem.d.ts +85 -0
- package/dist/models/V2ScreeningListItem.js +76 -0
- package/dist/models/VerifyWebhook.d.ts +34 -0
- package/dist/models/VerifyWebhook.js +50 -0
- package/dist/models/Webhook.d.ts +71 -0
- package/dist/models/Webhook.js +77 -0
- package/dist/models/WebhookResponse.d.ts +87 -0
- package/dist/models/WebhookResponse.js +58 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.js +54 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +365 -0
- package/docs/AuthenticationApi.md +227 -0
- package/docs/ChecksApi.md +150 -0
- package/docs/CustomTokenObtainPair.md +37 -0
- package/docs/DivisionReadOnly.md +62 -0
- package/docs/DivisionWrite.md +56 -0
- package/docs/DivisionsApi.md +380 -0
- package/docs/JWTGeneration.md +41 -0
- package/docs/JWTResponse.md +45 -0
- package/docs/OAuthApi.md +222 -0
- package/docs/OAuthApplication.md +43 -0
- package/docs/OAuthApplicationResponse.md +49 -0
- package/docs/PaginatedDivisionReadOnlyList.md +40 -0
- package/docs/PaginatedV2ProfileListItemList.md +40 -0
- package/docs/PaginatedV2ScreeningListItemList.md +40 -0
- package/docs/PatchedDivisionWrite.md +56 -0
- package/docs/PatchedV2ProfilePartialUpdate.md +37 -0
- package/docs/ProfilesApi.md +456 -0
- package/docs/ScreeningsApi.md +302 -0
- package/docs/TokenRefresh.md +36 -0
- package/docs/V2Candidate.md +53 -0
- package/docs/V2CheckField.md +43 -0
- package/docs/V2CheckInfo.md +57 -0
- package/docs/V2Document.md +45 -0
- package/docs/V2DocumentContent.md +37 -0
- package/docs/V2Money.md +36 -0
- package/docs/V2ProfileCheck.md +37 -0
- package/docs/V2ProfileCheckEntry.md +46 -0
- package/docs/V2ProfileCreate.md +38 -0
- package/docs/V2ProfileDetail.md +54 -0
- package/docs/V2ProfileListItem.md +46 -0
- package/docs/V2ProfileUpdate.md +39 -0
- package/docs/V2ProfileUpdateCheck.md +39 -0
- package/docs/V2ScreeningCheck.md +41 -0
- package/docs/V2ScreeningCheckEntry.md +50 -0
- package/docs/V2ScreeningCheckListItem.md +39 -0
- package/docs/V2ScreeningCreate.md +38 -0
- package/docs/V2ScreeningDetail.md +50 -0
- package/docs/V2ScreeningDetailProfile.md +36 -0
- package/docs/V2ScreeningListItem.md +51 -0
- package/docs/VerifyWebhook.md +35 -0
- package/docs/Webhook.md +43 -0
- package/docs/WebhookResponse.md +53 -0
- package/docs/WebhooksApi.md +305 -0
- package/package.json +25 -0
- package/src/apis/AuthenticationApi.ts +285 -0
- package/src/apis/ChecksApi.ts +181 -0
- package/src/apis/DivisionsApi.ts +462 -0
- package/src/apis/OAuthApi.ts +256 -0
- package/src/apis/ProfilesApi.ts +583 -0
- package/src/apis/ScreeningsApi.ts +376 -0
- package/src/apis/WebhooksApi.ts +363 -0
- package/src/apis/index.ts +9 -0
- package/src/index.ts +5 -0
- package/src/models/CustomTokenObtainPair.ts +75 -0
- package/src/models/DivisionReadOnly.ts +177 -0
- package/src/models/DivisionWrite.ts +160 -0
- package/src/models/JWTGeneration.ts +91 -0
- package/src/models/JWTResponse.ts +110 -0
- package/src/models/OAuthApplication.ts +130 -0
- package/src/models/OAuthApplicationResponse.ts +151 -0
- package/src/models/PaginatedDivisionReadOnlyList.ts +101 -0
- package/src/models/PaginatedV2ProfileListItemList.ts +101 -0
- package/src/models/PaginatedV2ScreeningListItemList.ts +101 -0
- package/src/models/PatchedDivisionWrite.ts +152 -0
- package/src/models/PatchedV2ProfilePartialUpdate.ts +74 -0
- package/src/models/TokenRefresh.ts +73 -0
- package/src/models/V2Candidate.ts +649 -0
- package/src/models/V2CheckField.ts +97 -0
- package/src/models/V2CheckInfo.ts +168 -0
- package/src/models/V2Document.ts +166 -0
- package/src/models/V2DocumentContent.ts +76 -0
- package/src/models/V2Money.ts +75 -0
- package/src/models/V2ProfileCheck.ts +122 -0
- package/src/models/V2ProfileCheckEntry.ts +173 -0
- package/src/models/V2ProfileCreate.ts +91 -0
- package/src/models/V2ProfileDetail.ts +162 -0
- package/src/models/V2ProfileListItem.ts +115 -0
- package/src/models/V2ProfileUpdate.ts +93 -0
- package/src/models/V2ProfileUpdateCheck.ts +135 -0
- package/src/models/V2ScreeningCheck.ts +136 -0
- package/src/models/V2ScreeningCheckEntry.ts +181 -0
- package/src/models/V2ScreeningCheckListItem.ts +133 -0
- package/src/models/V2ScreeningCreate.ts +98 -0
- package/src/models/V2ScreeningDetail.ts +152 -0
- package/src/models/V2ScreeningDetailProfile.ts +73 -0
- package/src/models/V2ScreeningListItem.ts +154 -0
- package/src/models/VerifyWebhook.ts +68 -0
- package/src/models/Webhook.ts +118 -0
- package/src/models/WebhookResponse.ts +140 -0
- package/src/models/index.ts +38 -0
- package/src/runtime.ts +449 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,93 @@
|
|
|
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 { V2ProfileUpdateCheck } from './V2ProfileUpdateCheck';
|
|
17
|
+
import {
|
|
18
|
+
V2ProfileUpdateCheckFromJSON,
|
|
19
|
+
V2ProfileUpdateCheckFromJSONTyped,
|
|
20
|
+
V2ProfileUpdateCheckToJSON,
|
|
21
|
+
V2ProfileUpdateCheckToJSONTyped,
|
|
22
|
+
} from './V2ProfileUpdateCheck';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the profile - name, description and full checks list. Entries
|
|
26
|
+
* matched by profile_check_id are updated in place; entries without one are
|
|
27
|
+
* added; existing checks not referenced in the request are removed.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface V2ProfileUpdate
|
|
30
|
+
*/
|
|
31
|
+
export interface V2ProfileUpdate {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof V2ProfileUpdate
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof V2ProfileUpdate
|
|
42
|
+
*/
|
|
43
|
+
description?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<V2ProfileUpdateCheck>}
|
|
47
|
+
* @memberof V2ProfileUpdate
|
|
48
|
+
*/
|
|
49
|
+
checks: Array<V2ProfileUpdateCheck>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the V2ProfileUpdate interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfV2ProfileUpdate(value: any): value is V2ProfileUpdate {
|
|
56
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
57
|
+
if (!('checks' in value) || value['checks'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function V2ProfileUpdateFromJSON(json: any): V2ProfileUpdate {
|
|
62
|
+
return V2ProfileUpdateFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function V2ProfileUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileUpdate {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
73
|
+
'checks': ((json['checks'] as Array<any>).map(V2ProfileUpdateCheckFromJSON)),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function V2ProfileUpdateToJSON(json: any): V2ProfileUpdate {
|
|
78
|
+
return V2ProfileUpdateToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function V2ProfileUpdateToJSONTyped(value?: V2ProfileUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
'checks': ((value['checks'] as Array<any>).map(V2ProfileUpdateCheckToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
* Profile update entry. Same shape as create plus optional profile_check_id
|
|
18
|
+
* for in-place update of an existing check. Absent profile_check_id = add new.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface V2ProfileUpdateCheck
|
|
21
|
+
*/
|
|
22
|
+
export interface V2ProfileUpdateCheck {
|
|
23
|
+
/**
|
|
24
|
+
* * `addresscheck` - addresscheck
|
|
25
|
+
* * `adversemediacheck` - adversemediacheck
|
|
26
|
+
* * `bigcheck` - bigcheck
|
|
27
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
28
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
29
|
+
* * `customintegritycheck` - customintegritycheck
|
|
30
|
+
* * `cvcheck` - cvcheck
|
|
31
|
+
* * `edrcheck` - edrcheck
|
|
32
|
+
* * `focumcheck` - focumcheck
|
|
33
|
+
* * `id2check` - id2check
|
|
34
|
+
* * `idcheck` - idcheck
|
|
35
|
+
* * `integritycheck` - integritycheck
|
|
36
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
37
|
+
* * `permissioncheck` - permissioncheck
|
|
38
|
+
* * `pescheckadversemediacheck` - pescheckadversemediacheck
|
|
39
|
+
* * `qualificationcheck` - qualificationcheck
|
|
40
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
41
|
+
* * `vogcheck` - vogcheck
|
|
42
|
+
* * `watchlist2check` - watchlist2check
|
|
43
|
+
* * `watchlistcheck` - watchlistcheck
|
|
44
|
+
* * `workreferencecheck` - workreferencecheck
|
|
45
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
46
|
+
* @type {V2ProfileUpdateCheckCheckTypeEnum}
|
|
47
|
+
* @memberof V2ProfileUpdateCheck
|
|
48
|
+
*/
|
|
49
|
+
checkType: V2ProfileUpdateCheckCheckTypeEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {{ [key: string]: any; }}
|
|
53
|
+
* @memberof V2ProfileUpdateCheck
|
|
54
|
+
*/
|
|
55
|
+
config?: { [key: string]: any; };
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof V2ProfileUpdateCheck
|
|
60
|
+
*/
|
|
61
|
+
profileCheckId?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const V2ProfileUpdateCheckCheckTypeEnum = {
|
|
69
|
+
Addresscheck: 'addresscheck',
|
|
70
|
+
Adversemediacheck: 'adversemediacheck',
|
|
71
|
+
Bigcheck: 'bigcheck',
|
|
72
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
73
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
74
|
+
Customintegritycheck: 'customintegritycheck',
|
|
75
|
+
Cvcheck: 'cvcheck',
|
|
76
|
+
Edrcheck: 'edrcheck',
|
|
77
|
+
Focumcheck: 'focumcheck',
|
|
78
|
+
Id2check: 'id2check',
|
|
79
|
+
Idcheck: 'idcheck',
|
|
80
|
+
Integritycheck: 'integritycheck',
|
|
81
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
82
|
+
Permissioncheck: 'permissioncheck',
|
|
83
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
84
|
+
Qualificationcheck: 'qualificationcheck',
|
|
85
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
86
|
+
Vogcheck: 'vogcheck',
|
|
87
|
+
Watchlist2check: 'watchlist2check',
|
|
88
|
+
Watchlistcheck: 'watchlistcheck',
|
|
89
|
+
Workreferencecheck: 'workreferencecheck',
|
|
90
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
91
|
+
} as const;
|
|
92
|
+
export type V2ProfileUpdateCheckCheckTypeEnum = typeof V2ProfileUpdateCheckCheckTypeEnum[keyof typeof V2ProfileUpdateCheckCheckTypeEnum];
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the V2ProfileUpdateCheck interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfV2ProfileUpdateCheck(value: any): value is V2ProfileUpdateCheck {
|
|
99
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function V2ProfileUpdateCheckFromJSON(json: any): V2ProfileUpdateCheck {
|
|
104
|
+
return V2ProfileUpdateCheckFromJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function V2ProfileUpdateCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileUpdateCheck {
|
|
108
|
+
if (json == null) {
|
|
109
|
+
return json;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'checkType': json['check_type'],
|
|
114
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
115
|
+
'profileCheckId': json['profile_check_id'] == null ? undefined : json['profile_check_id'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function V2ProfileUpdateCheckToJSON(json: any): V2ProfileUpdateCheck {
|
|
120
|
+
return V2ProfileUpdateCheckToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function V2ProfileUpdateCheckToJSONTyped(value?: V2ProfileUpdateCheck | null, ignoreDiscriminator: boolean = false): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'check_type': value['checkType'],
|
|
131
|
+
'config': value['config'],
|
|
132
|
+
'profile_check_id': value['profileCheckId'],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
* Per-screening entry: identifies a target ProfileCheck (by check_type when
|
|
18
|
+
* unambiguous, or via profile_check_id when the profile has multiple ProfileChecks
|
|
19
|
+
* of the same type) and supplies optional `config` patch + per-check `input`.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface V2ScreeningCheck
|
|
22
|
+
*/
|
|
23
|
+
export interface V2ScreeningCheck {
|
|
24
|
+
/**
|
|
25
|
+
* * `addresscheck` - addresscheck
|
|
26
|
+
* * `adversemediacheck` - adversemediacheck
|
|
27
|
+
* * `bigcheck` - bigcheck
|
|
28
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
29
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
30
|
+
* * `customintegritycheck` - customintegritycheck
|
|
31
|
+
* * `cvcheck` - cvcheck
|
|
32
|
+
* * `edrcheck` - edrcheck
|
|
33
|
+
* * `id2check` - id2check
|
|
34
|
+
* * `integritycheck` - integritycheck
|
|
35
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
36
|
+
* * `qualificationcheck` - qualificationcheck
|
|
37
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
38
|
+
* * `vogcheck` - vogcheck
|
|
39
|
+
* * `watchlist2check` - watchlist2check
|
|
40
|
+
* * `watchlistcheck` - watchlistcheck
|
|
41
|
+
* * `workreferencecheck` - workreferencecheck
|
|
42
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
43
|
+
* @type {V2ScreeningCheckCheckTypeEnum}
|
|
44
|
+
* @memberof V2ScreeningCheck
|
|
45
|
+
*/
|
|
46
|
+
checkType: V2ScreeningCheckCheckTypeEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
|
+
* @memberof V2ScreeningCheck
|
|
51
|
+
*/
|
|
52
|
+
config?: { [key: string]: any; };
|
|
53
|
+
/**
|
|
54
|
+
* Disambiguator. Use when the profile has multiple ProfileChecks of the same check_type.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof V2ScreeningCheck
|
|
57
|
+
*/
|
|
58
|
+
profileCheckId?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {any}
|
|
62
|
+
* @memberof V2ScreeningCheck
|
|
63
|
+
*/
|
|
64
|
+
input?: any | null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const V2ScreeningCheckCheckTypeEnum = {
|
|
72
|
+
Addresscheck: 'addresscheck',
|
|
73
|
+
Adversemediacheck: 'adversemediacheck',
|
|
74
|
+
Bigcheck: 'bigcheck',
|
|
75
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
76
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
77
|
+
Customintegritycheck: 'customintegritycheck',
|
|
78
|
+
Cvcheck: 'cvcheck',
|
|
79
|
+
Edrcheck: 'edrcheck',
|
|
80
|
+
Id2check: 'id2check',
|
|
81
|
+
Integritycheck: 'integritycheck',
|
|
82
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
83
|
+
Qualificationcheck: 'qualificationcheck',
|
|
84
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
85
|
+
Vogcheck: 'vogcheck',
|
|
86
|
+
Watchlist2check: 'watchlist2check',
|
|
87
|
+
Watchlistcheck: 'watchlistcheck',
|
|
88
|
+
Workreferencecheck: 'workreferencecheck',
|
|
89
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
90
|
+
} as const;
|
|
91
|
+
export type V2ScreeningCheckCheckTypeEnum = typeof V2ScreeningCheckCheckTypeEnum[keyof typeof V2ScreeningCheckCheckTypeEnum];
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the V2ScreeningCheck interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfV2ScreeningCheck(value: any): value is V2ScreeningCheck {
|
|
98
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function V2ScreeningCheckFromJSON(json: any): V2ScreeningCheck {
|
|
103
|
+
return V2ScreeningCheckFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function V2ScreeningCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningCheck {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'checkType': json['check_type'],
|
|
113
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
114
|
+
'profileCheckId': json['profile_check_id'] == null ? undefined : json['profile_check_id'],
|
|
115
|
+
'input': json['input'] == null ? undefined : json['input'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function V2ScreeningCheckToJSON(json: any): V2ScreeningCheck {
|
|
120
|
+
return V2ScreeningCheckToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function V2ScreeningCheckToJSONTyped(value?: V2ScreeningCheck | null, ignoreDiscriminator: boolean = false): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'check_type': value['checkType'],
|
|
131
|
+
'config': value['config'],
|
|
132
|
+
'profile_check_id': value['profileCheckId'],
|
|
133
|
+
'input': value['input'],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,181 @@
|
|
|
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 V2ScreeningCheckEntry
|
|
20
|
+
*/
|
|
21
|
+
export interface V2ScreeningCheckEntry {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V2ScreeningCheckEntry
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof V2ScreeningCheckEntry
|
|
32
|
+
*/
|
|
33
|
+
readonly profileCheckId: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* * `addresscheck` - addresscheck
|
|
36
|
+
* * `adversemediacheck` - adversemediacheck
|
|
37
|
+
* * `bigcheck` - bigcheck
|
|
38
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
39
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
40
|
+
* * `customintegritycheck` - customintegritycheck
|
|
41
|
+
* * `cvcheck` - cvcheck
|
|
42
|
+
* * `edrcheck` - edrcheck
|
|
43
|
+
* * `focumcheck` - focumcheck
|
|
44
|
+
* * `id2check` - id2check
|
|
45
|
+
* * `idcheck` - idcheck
|
|
46
|
+
* * `integritycheck` - integritycheck
|
|
47
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
48
|
+
* * `permissioncheck` - permissioncheck
|
|
49
|
+
* * `pescheckadversemediacheck` - pescheckadversemediacheck
|
|
50
|
+
* * `qualificationcheck` - qualificationcheck
|
|
51
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
52
|
+
* * `vogcheck` - vogcheck
|
|
53
|
+
* * `watchlist2check` - watchlist2check
|
|
54
|
+
* * `watchlistcheck` - watchlistcheck
|
|
55
|
+
* * `workreferencecheck` - workreferencecheck
|
|
56
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
57
|
+
* @type {V2ScreeningCheckEntryCheckTypeEnum}
|
|
58
|
+
* @memberof V2ScreeningCheckEntry
|
|
59
|
+
*/
|
|
60
|
+
readonly checkType: V2ScreeningCheckEntryCheckTypeEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof V2ScreeningCheckEntry
|
|
65
|
+
*/
|
|
66
|
+
readonly displayName: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof V2ScreeningCheckEntry
|
|
71
|
+
*/
|
|
72
|
+
readonly status: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {{ [key: string]: any; }}
|
|
76
|
+
* @memberof V2ScreeningCheckEntry
|
|
77
|
+
*/
|
|
78
|
+
readonly config: { [key: string]: any; };
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {{ [key: string]: any; }}
|
|
82
|
+
* @memberof V2ScreeningCheckEntry
|
|
83
|
+
*/
|
|
84
|
+
readonly input: { [key: string]: any; };
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {{ [key: string]: any; }}
|
|
88
|
+
* @memberof V2ScreeningCheckEntry
|
|
89
|
+
*/
|
|
90
|
+
readonly output: { [key: string]: any; };
|
|
91
|
+
/**
|
|
92
|
+
* Deep link to this check's candidate wizard step. Null when the check has no dedicated candidate step.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof V2ScreeningCheckEntry
|
|
95
|
+
*/
|
|
96
|
+
readonly candidateWizardUrl: string | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const V2ScreeningCheckEntryCheckTypeEnum = {
|
|
104
|
+
Addresscheck: 'addresscheck',
|
|
105
|
+
Adversemediacheck: 'adversemediacheck',
|
|
106
|
+
Bigcheck: 'bigcheck',
|
|
107
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
108
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
109
|
+
Customintegritycheck: 'customintegritycheck',
|
|
110
|
+
Cvcheck: 'cvcheck',
|
|
111
|
+
Edrcheck: 'edrcheck',
|
|
112
|
+
Focumcheck: 'focumcheck',
|
|
113
|
+
Id2check: 'id2check',
|
|
114
|
+
Idcheck: 'idcheck',
|
|
115
|
+
Integritycheck: 'integritycheck',
|
|
116
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
117
|
+
Permissioncheck: 'permissioncheck',
|
|
118
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
119
|
+
Qualificationcheck: 'qualificationcheck',
|
|
120
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
121
|
+
Vogcheck: 'vogcheck',
|
|
122
|
+
Watchlist2check: 'watchlist2check',
|
|
123
|
+
Watchlistcheck: 'watchlistcheck',
|
|
124
|
+
Workreferencecheck: 'workreferencecheck',
|
|
125
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
126
|
+
} as const;
|
|
127
|
+
export type V2ScreeningCheckEntryCheckTypeEnum = typeof V2ScreeningCheckEntryCheckTypeEnum[keyof typeof V2ScreeningCheckEntryCheckTypeEnum];
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Check if a given object implements the V2ScreeningCheckEntry interface.
|
|
132
|
+
*/
|
|
133
|
+
export function instanceOfV2ScreeningCheckEntry(value: any): value is V2ScreeningCheckEntry {
|
|
134
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
135
|
+
if ((!('profileCheckId' in value) && !('profile_check_id' in value)) || (value['profileCheckId'] === undefined && value['profile_check_id'] === undefined)) return false;
|
|
136
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
137
|
+
if ((!('displayName' in value) && !('display_name' in value)) || (value['displayName'] === undefined && value['display_name'] === undefined)) return false;
|
|
138
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
139
|
+
if (!('config' in value) || value['config'] === undefined) return false;
|
|
140
|
+
if (!('input' in value) || value['input'] === undefined) return false;
|
|
141
|
+
if (!('output' in value) || value['output'] === undefined) return false;
|
|
142
|
+
if ((!('candidateWizardUrl' in value) && !('candidate_wizard_url' in value)) || (value['candidateWizardUrl'] === undefined && value['candidate_wizard_url'] === undefined)) return false;
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function V2ScreeningCheckEntryFromJSON(json: any): V2ScreeningCheckEntry {
|
|
147
|
+
return V2ScreeningCheckEntryFromJSONTyped(json, false);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function V2ScreeningCheckEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningCheckEntry {
|
|
151
|
+
if (json == null) {
|
|
152
|
+
return json;
|
|
153
|
+
}
|
|
154
|
+
return {
|
|
155
|
+
|
|
156
|
+
'id': json['id'],
|
|
157
|
+
'profileCheckId': json['profile_check_id'],
|
|
158
|
+
'checkType': json['check_type'],
|
|
159
|
+
'displayName': json['display_name'],
|
|
160
|
+
'status': json['status'],
|
|
161
|
+
'config': json['config'],
|
|
162
|
+
'input': json['input'],
|
|
163
|
+
'output': json['output'],
|
|
164
|
+
'candidateWizardUrl': json['candidate_wizard_url'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function V2ScreeningCheckEntryToJSON(json: any): V2ScreeningCheckEntry {
|
|
169
|
+
return V2ScreeningCheckEntryToJSONTyped(json, false);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function V2ScreeningCheckEntryToJSONTyped(value?: Omit<V2ScreeningCheckEntry, 'id'|'profile_check_id'|'check_type'|'display_name'|'status'|'config'|'input'|'output'|'candidate_wizard_url'> | null, ignoreDiscriminator: boolean = false): any {
|
|
173
|
+
if (value == null) {
|
|
174
|
+
return value;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
* Minimal check entry shape for screening list items. No config/input/etc.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface V2ScreeningCheckListItem
|
|
20
|
+
*/
|
|
21
|
+
export interface V2ScreeningCheckListItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V2ScreeningCheckListItem
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
* * `addresscheck` - addresscheck
|
|
30
|
+
* * `adversemediacheck` - adversemediacheck
|
|
31
|
+
* * `bigcheck` - bigcheck
|
|
32
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
33
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
34
|
+
* * `customintegritycheck` - customintegritycheck
|
|
35
|
+
* * `cvcheck` - cvcheck
|
|
36
|
+
* * `edrcheck` - edrcheck
|
|
37
|
+
* * `focumcheck` - focumcheck
|
|
38
|
+
* * `id2check` - id2check
|
|
39
|
+
* * `idcheck` - idcheck
|
|
40
|
+
* * `integritycheck` - integritycheck
|
|
41
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
42
|
+
* * `permissioncheck` - permissioncheck
|
|
43
|
+
* * `pescheckadversemediacheck` - pescheckadversemediacheck
|
|
44
|
+
* * `qualificationcheck` - qualificationcheck
|
|
45
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
46
|
+
* * `vogcheck` - vogcheck
|
|
47
|
+
* * `watchlist2check` - watchlist2check
|
|
48
|
+
* * `watchlistcheck` - watchlistcheck
|
|
49
|
+
* * `workreferencecheck` - workreferencecheck
|
|
50
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
51
|
+
* @type {V2ScreeningCheckListItemCheckTypeEnum}
|
|
52
|
+
* @memberof V2ScreeningCheckListItem
|
|
53
|
+
*/
|
|
54
|
+
readonly checkType: V2ScreeningCheckListItemCheckTypeEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof V2ScreeningCheckListItem
|
|
59
|
+
*/
|
|
60
|
+
readonly status: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const V2ScreeningCheckListItemCheckTypeEnum = {
|
|
68
|
+
Addresscheck: 'addresscheck',
|
|
69
|
+
Adversemediacheck: 'adversemediacheck',
|
|
70
|
+
Bigcheck: 'bigcheck',
|
|
71
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
72
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
73
|
+
Customintegritycheck: 'customintegritycheck',
|
|
74
|
+
Cvcheck: 'cvcheck',
|
|
75
|
+
Edrcheck: 'edrcheck',
|
|
76
|
+
Focumcheck: 'focumcheck',
|
|
77
|
+
Id2check: 'id2check',
|
|
78
|
+
Idcheck: 'idcheck',
|
|
79
|
+
Integritycheck: 'integritycheck',
|
|
80
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
81
|
+
Permissioncheck: 'permissioncheck',
|
|
82
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
83
|
+
Qualificationcheck: 'qualificationcheck',
|
|
84
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
85
|
+
Vogcheck: 'vogcheck',
|
|
86
|
+
Watchlist2check: 'watchlist2check',
|
|
87
|
+
Watchlistcheck: 'watchlistcheck',
|
|
88
|
+
Workreferencecheck: 'workreferencecheck',
|
|
89
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
90
|
+
} as const;
|
|
91
|
+
export type V2ScreeningCheckListItemCheckTypeEnum = typeof V2ScreeningCheckListItemCheckTypeEnum[keyof typeof V2ScreeningCheckListItemCheckTypeEnum];
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the V2ScreeningCheckListItem interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfV2ScreeningCheckListItem(value: any): value is V2ScreeningCheckListItem {
|
|
98
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
99
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
100
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function V2ScreeningCheckListItemFromJSON(json: any): V2ScreeningCheckListItem {
|
|
105
|
+
return V2ScreeningCheckListItemFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function V2ScreeningCheckListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ScreeningCheckListItem {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'id': json['id'],
|
|
115
|
+
'checkType': json['check_type'],
|
|
116
|
+
'status': json['status'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function V2ScreeningCheckListItemToJSON(json: any): V2ScreeningCheckListItem {
|
|
121
|
+
return V2ScreeningCheckListItemToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function V2ScreeningCheckListItemToJSONTyped(value?: Omit<V2ScreeningCheckListItem, 'id'|'check_type'|'status'> | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|