@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,87 @@
|
|
|
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
|
+
import { V2MoneyFromJSON, } from './V2Money';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const V2ProfileCheckEntryCheckTypeEnum = {
|
|
19
|
+
Addresscheck: 'addresscheck',
|
|
20
|
+
Adversemediacheck: 'adversemediacheck',
|
|
21
|
+
Bigcheck: 'bigcheck',
|
|
22
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
23
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
24
|
+
Customintegritycheck: 'customintegritycheck',
|
|
25
|
+
Cvcheck: 'cvcheck',
|
|
26
|
+
Edrcheck: 'edrcheck',
|
|
27
|
+
Focumcheck: 'focumcheck',
|
|
28
|
+
Id2check: 'id2check',
|
|
29
|
+
Idcheck: 'idcheck',
|
|
30
|
+
Integritycheck: 'integritycheck',
|
|
31
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
32
|
+
Permissioncheck: 'permissioncheck',
|
|
33
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
34
|
+
Qualificationcheck: 'qualificationcheck',
|
|
35
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
36
|
+
Vogcheck: 'vogcheck',
|
|
37
|
+
Watchlist2check: 'watchlist2check',
|
|
38
|
+
Watchlistcheck: 'watchlistcheck',
|
|
39
|
+
Workreferencecheck: 'workreferencecheck',
|
|
40
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the V2ProfileCheckEntry interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfV2ProfileCheckEntry(value) {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined))
|
|
49
|
+
return false;
|
|
50
|
+
if ((!('displayName' in value) && !('display_name' in value)) || (value['displayName'] === undefined && value['display_name'] === undefined))
|
|
51
|
+
return false;
|
|
52
|
+
if ((!('configuredPrice' in value) && !('configured_price' in value)) || (value['configuredPrice'] === undefined && value['configured_price'] === undefined))
|
|
53
|
+
return false;
|
|
54
|
+
if (!('config' in value) || value['config'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if ((!('inputFields' in value) && !('input_fields' in value)) || (value['inputFields'] === undefined && value['input_fields'] === undefined))
|
|
57
|
+
return false;
|
|
58
|
+
if ((!('isSystemManaged' in value) && !('is_system_managed' in value)) || (value['isSystemManaged'] === undefined && value['is_system_managed'] === undefined))
|
|
59
|
+
return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
export function V2ProfileCheckEntryFromJSON(json) {
|
|
63
|
+
return V2ProfileCheckEntryFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function V2ProfileCheckEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': json['id'],
|
|
71
|
+
'checkType': json['check_type'],
|
|
72
|
+
'displayName': json['display_name'],
|
|
73
|
+
'configuredPrice': V2MoneyFromJSON(json['configured_price']),
|
|
74
|
+
'config': json['config'],
|
|
75
|
+
'inputFields': json['input_fields'],
|
|
76
|
+
'isSystemManaged': json['is_system_managed'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export function V2ProfileCheckEntryToJSON(json) {
|
|
80
|
+
return V2ProfileCheckEntryToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
export function V2ProfileCheckEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {};
|
|
87
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 type { V2ProfileCheck } from './V2ProfileCheck';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface V2ProfileCreate
|
|
17
|
+
*/
|
|
18
|
+
export interface V2ProfileCreate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof V2ProfileCreate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof V2ProfileCreate
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<V2ProfileCheck>}
|
|
34
|
+
* @memberof V2ProfileCreate
|
|
35
|
+
*/
|
|
36
|
+
checks: Array<V2ProfileCheck>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the V2ProfileCreate interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfV2ProfileCreate(value: any): value is V2ProfileCreate;
|
|
42
|
+
export declare function V2ProfileCreateFromJSON(json: any): V2ProfileCreate;
|
|
43
|
+
export declare function V2ProfileCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileCreate;
|
|
44
|
+
export declare function V2ProfileCreateToJSON(json: any): V2ProfileCreate;
|
|
45
|
+
export declare function V2ProfileCreateToJSONTyped(value?: V2ProfileCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { V2ProfileCheckFromJSON, V2ProfileCheckToJSON, } from './V2ProfileCheck';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the V2ProfileCreate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfV2ProfileCreate(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('checks' in value) || value['checks'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function V2ProfileCreateFromJSON(json) {
|
|
26
|
+
return V2ProfileCreateFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function V2ProfileCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
35
|
+
'checks': (json['checks'].map(V2ProfileCheckFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function V2ProfileCreateToJSON(json) {
|
|
39
|
+
return V2ProfileCreateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function V2ProfileCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'description': value['description'],
|
|
48
|
+
'checks': (value['checks'].map(V2ProfileCheckToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 type { V2ProfileCheckEntry } from './V2ProfileCheckEntry';
|
|
13
|
+
import type { V2Money } from './V2Money';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface V2ProfileDetail
|
|
18
|
+
*/
|
|
19
|
+
export interface V2ProfileDetail {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof V2ProfileDetail
|
|
24
|
+
*/
|
|
25
|
+
readonly id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof V2ProfileDetail
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof V2ProfileDetail
|
|
36
|
+
*/
|
|
37
|
+
description: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof V2ProfileDetail
|
|
42
|
+
*/
|
|
43
|
+
isCustom?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<V2ProfileCheckEntry>}
|
|
47
|
+
* @memberof V2ProfileDetail
|
|
48
|
+
*/
|
|
49
|
+
readonly checks: Array<V2ProfileCheckEntry>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {V2Money}
|
|
53
|
+
* @memberof V2ProfileDetail
|
|
54
|
+
*/
|
|
55
|
+
readonly totalPrice: V2Money;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof V2ProfileDetail
|
|
60
|
+
*/
|
|
61
|
+
readonly supportedCountriesOfWork: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof V2ProfileDetail
|
|
66
|
+
*/
|
|
67
|
+
readonly supportedCountriesOfResidence: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<object>}
|
|
71
|
+
* @memberof V2ProfileDetail
|
|
72
|
+
*/
|
|
73
|
+
readonly candidateFields: Array<object>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof V2ProfileDetail
|
|
78
|
+
*/
|
|
79
|
+
readonly createdAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Date}
|
|
83
|
+
* @memberof V2ProfileDetail
|
|
84
|
+
*/
|
|
85
|
+
readonly updatedAt: Date;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the V2ProfileDetail interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfV2ProfileDetail(value: any): value is V2ProfileDetail;
|
|
91
|
+
export declare function V2ProfileDetailFromJSON(json: any): V2ProfileDetail;
|
|
92
|
+
export declare function V2ProfileDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileDetail;
|
|
93
|
+
export declare function V2ProfileDetailToJSON(json: any): V2ProfileDetail;
|
|
94
|
+
export declare function V2ProfileDetailToJSONTyped(value?: Omit<V2ProfileDetail, 'id' | 'checks' | 'total_price' | 'supported_countries_of_work' | 'supported_countries_of_residence' | 'candidate_fields' | 'created_at' | 'updated_at'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { V2ProfileCheckEntryFromJSON, } from './V2ProfileCheckEntry';
|
|
15
|
+
import { V2MoneyFromJSON, } from './V2Money';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the V2ProfileDetail interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfV2ProfileDetail(value) {
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('checks' in value) || value['checks'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('totalPrice' in value) && !('total_price' in value)) || (value['totalPrice'] === undefined && value['total_price'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if ((!('supportedCountriesOfWork' in value) && !('supported_countries_of_work' in value)) || (value['supportedCountriesOfWork'] === undefined && value['supported_countries_of_work'] === undefined))
|
|
31
|
+
return false;
|
|
32
|
+
if ((!('supportedCountriesOfResidence' in value) && !('supported_countries_of_residence' in value)) || (value['supportedCountriesOfResidence'] === undefined && value['supported_countries_of_residence'] === undefined))
|
|
33
|
+
return false;
|
|
34
|
+
if ((!('candidateFields' in value) && !('candidate_fields' in value)) || (value['candidateFields'] === undefined && value['candidate_fields'] === undefined))
|
|
35
|
+
return false;
|
|
36
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
37
|
+
return false;
|
|
38
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function V2ProfileDetailFromJSON(json) {
|
|
43
|
+
return V2ProfileDetailFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function V2ProfileDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'description': json['description'],
|
|
53
|
+
'isCustom': json['is_custom'] == null ? undefined : json['is_custom'],
|
|
54
|
+
'checks': (json['checks'].map(V2ProfileCheckEntryFromJSON)),
|
|
55
|
+
'totalPrice': V2MoneyFromJSON(json['total_price']),
|
|
56
|
+
'supportedCountriesOfWork': json['supported_countries_of_work'],
|
|
57
|
+
'supportedCountriesOfResidence': json['supported_countries_of_residence'],
|
|
58
|
+
'candidateFields': json['candidate_fields'],
|
|
59
|
+
'createdAt': (new Date(json['created_at'])),
|
|
60
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function V2ProfileDetailToJSON(json) {
|
|
64
|
+
return V2ProfileDetailToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function V2ProfileDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'description': value['description'],
|
|
73
|
+
'is_custom': value['isCustom'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface V2ProfileListItem
|
|
16
|
+
*/
|
|
17
|
+
export interface V2ProfileListItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V2ProfileListItem
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof V2ProfileListItem
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V2ProfileListItem
|
|
34
|
+
*/
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof V2ProfileListItem
|
|
40
|
+
*/
|
|
41
|
+
isCustom?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof V2ProfileListItem
|
|
46
|
+
*/
|
|
47
|
+
readonly checkTypes: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof V2ProfileListItem
|
|
52
|
+
*/
|
|
53
|
+
readonly createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof V2ProfileListItem
|
|
58
|
+
*/
|
|
59
|
+
readonly updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the V2ProfileListItem interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfV2ProfileListItem(value: any): value is V2ProfileListItem;
|
|
65
|
+
export declare function V2ProfileListItemFromJSON(json: any): V2ProfileListItem;
|
|
66
|
+
export declare function V2ProfileListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileListItem;
|
|
67
|
+
export declare function V2ProfileListItemToJSON(json: any): V2ProfileListItem;
|
|
68
|
+
export declare function V2ProfileListItemToJSONTyped(value?: Omit<V2ProfileListItem, 'id' | 'check_types' | 'created_at' | 'updated_at'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Check if a given object implements the V2ProfileListItem interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfV2ProfileListItem(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if ((!('checkTypes' in value) && !('check_types' in value)) || (value['checkTypes'] === undefined && value['check_types'] === undefined))
|
|
25
|
+
return false;
|
|
26
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function V2ProfileListItemFromJSON(json) {
|
|
33
|
+
return V2ProfileListItemFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function V2ProfileListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'description': json['description'],
|
|
43
|
+
'isCustom': json['is_custom'] == null ? undefined : json['is_custom'],
|
|
44
|
+
'checkTypes': json['check_types'],
|
|
45
|
+
'createdAt': (new Date(json['created_at'])),
|
|
46
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function V2ProfileListItemToJSON(json) {
|
|
50
|
+
return V2ProfileListItemToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function V2ProfileListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'description': value['description'],
|
|
59
|
+
'is_custom': value['isCustom'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 type { V2ProfileUpdateCheck } from './V2ProfileUpdateCheck';
|
|
13
|
+
/**
|
|
14
|
+
* Replaces the profile - name, description and full checks list. Entries
|
|
15
|
+
* matched by profile_check_id are updated in place; entries without one are
|
|
16
|
+
* added; existing checks not referenced in the request are removed.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface V2ProfileUpdate
|
|
19
|
+
*/
|
|
20
|
+
export interface V2ProfileUpdate {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof V2ProfileUpdate
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof V2ProfileUpdate
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<V2ProfileUpdateCheck>}
|
|
36
|
+
* @memberof V2ProfileUpdate
|
|
37
|
+
*/
|
|
38
|
+
checks: Array<V2ProfileUpdateCheck>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the V2ProfileUpdate interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfV2ProfileUpdate(value: any): value is V2ProfileUpdate;
|
|
44
|
+
export declare function V2ProfileUpdateFromJSON(json: any): V2ProfileUpdate;
|
|
45
|
+
export declare function V2ProfileUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileUpdate;
|
|
46
|
+
export declare function V2ProfileUpdateToJSON(json: any): V2ProfileUpdate;
|
|
47
|
+
export declare function V2ProfileUpdateToJSONTyped(value?: V2ProfileUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { V2ProfileUpdateCheckFromJSON, V2ProfileUpdateCheckToJSON, } from './V2ProfileUpdateCheck';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the V2ProfileUpdate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfV2ProfileUpdate(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('checks' in value) || value['checks'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function V2ProfileUpdateFromJSON(json) {
|
|
26
|
+
return V2ProfileUpdateFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function V2ProfileUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
35
|
+
'checks': (json['checks'].map(V2ProfileUpdateCheckFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function V2ProfileUpdateToJSON(json) {
|
|
39
|
+
return V2ProfileUpdateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function V2ProfileUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'description': value['description'],
|
|
48
|
+
'checks': (value['checks'].map(V2ProfileUpdateCheckToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Profile update entry. Same shape as create plus optional profile_check_id
|
|
14
|
+
* for in-place update of an existing check. Absent profile_check_id = add new.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface V2ProfileUpdateCheck
|
|
17
|
+
*/
|
|
18
|
+
export interface V2ProfileUpdateCheck {
|
|
19
|
+
/**
|
|
20
|
+
* * `addresscheck` - addresscheck
|
|
21
|
+
* * `adversemediacheck` - adversemediacheck
|
|
22
|
+
* * `bigcheck` - bigcheck
|
|
23
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
24
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
25
|
+
* * `customintegritycheck` - customintegritycheck
|
|
26
|
+
* * `cvcheck` - cvcheck
|
|
27
|
+
* * `edrcheck` - edrcheck
|
|
28
|
+
* * `focumcheck` - focumcheck
|
|
29
|
+
* * `id2check` - id2check
|
|
30
|
+
* * `idcheck` - idcheck
|
|
31
|
+
* * `integritycheck` - integritycheck
|
|
32
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
33
|
+
* * `permissioncheck` - permissioncheck
|
|
34
|
+
* * `pescheckadversemediacheck` - pescheckadversemediacheck
|
|
35
|
+
* * `qualificationcheck` - qualificationcheck
|
|
36
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
37
|
+
* * `vogcheck` - vogcheck
|
|
38
|
+
* * `watchlist2check` - watchlist2check
|
|
39
|
+
* * `watchlistcheck` - watchlistcheck
|
|
40
|
+
* * `workreferencecheck` - workreferencecheck
|
|
41
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
42
|
+
* @type {V2ProfileUpdateCheckCheckTypeEnum}
|
|
43
|
+
* @memberof V2ProfileUpdateCheck
|
|
44
|
+
*/
|
|
45
|
+
checkType: V2ProfileUpdateCheckCheckTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof V2ProfileUpdateCheck
|
|
50
|
+
*/
|
|
51
|
+
config?: {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof V2ProfileUpdateCheck
|
|
58
|
+
*/
|
|
59
|
+
profileCheckId?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const V2ProfileUpdateCheckCheckTypeEnum: {
|
|
65
|
+
readonly Addresscheck: "addresscheck";
|
|
66
|
+
readonly Adversemediacheck: "adversemediacheck";
|
|
67
|
+
readonly Bigcheck: "bigcheck";
|
|
68
|
+
readonly Criminalrecordscheck: "criminalrecordscheck";
|
|
69
|
+
readonly Criminalrecordsuploadcheck: "criminalrecordsuploadcheck";
|
|
70
|
+
readonly Customintegritycheck: "customintegritycheck";
|
|
71
|
+
readonly Cvcheck: "cvcheck";
|
|
72
|
+
readonly Edrcheck: "edrcheck";
|
|
73
|
+
readonly Focumcheck: "focumcheck";
|
|
74
|
+
readonly Id2check: "id2check";
|
|
75
|
+
readonly Idcheck: "idcheck";
|
|
76
|
+
readonly Integritycheck: "integritycheck";
|
|
77
|
+
readonly Openhealthcarecheck: "openhealthcarecheck";
|
|
78
|
+
readonly Permissioncheck: "permissioncheck";
|
|
79
|
+
readonly Pescheckadversemediacheck: "pescheckadversemediacheck";
|
|
80
|
+
readonly Qualificationcheck: "qualificationcheck";
|
|
81
|
+
readonly Righttoworkcheck: "righttoworkcheck";
|
|
82
|
+
readonly Vogcheck: "vogcheck";
|
|
83
|
+
readonly Watchlist2check: "watchlist2check";
|
|
84
|
+
readonly Watchlistcheck: "watchlistcheck";
|
|
85
|
+
readonly Workreferencecheck: "workreferencecheck";
|
|
86
|
+
readonly Worldwidecreditcheck: "worldwidecreditcheck";
|
|
87
|
+
};
|
|
88
|
+
export type V2ProfileUpdateCheckCheckTypeEnum = typeof V2ProfileUpdateCheckCheckTypeEnum[keyof typeof V2ProfileUpdateCheckCheckTypeEnum];
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the V2ProfileUpdateCheck interface.
|
|
91
|
+
*/
|
|
92
|
+
export declare function instanceOfV2ProfileUpdateCheck(value: any): value is V2ProfileUpdateCheck;
|
|
93
|
+
export declare function V2ProfileUpdateCheckFromJSON(json: any): V2ProfileUpdateCheck;
|
|
94
|
+
export declare function V2ProfileUpdateCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileUpdateCheck;
|
|
95
|
+
export declare function V2ProfileUpdateCheckToJSON(json: any): V2ProfileUpdateCheck;
|
|
96
|
+
export declare function V2ProfileUpdateCheckToJSONTyped(value?: V2ProfileUpdateCheck | null, ignoreDiscriminator?: boolean): any;
|