@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,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.V2ProfileCheckEntryCheckTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfV2ProfileCheckEntry = instanceOfV2ProfileCheckEntry;
|
|
18
|
+
exports.V2ProfileCheckEntryFromJSON = V2ProfileCheckEntryFromJSON;
|
|
19
|
+
exports.V2ProfileCheckEntryFromJSONTyped = V2ProfileCheckEntryFromJSONTyped;
|
|
20
|
+
exports.V2ProfileCheckEntryToJSON = V2ProfileCheckEntryToJSON;
|
|
21
|
+
exports.V2ProfileCheckEntryToJSONTyped = V2ProfileCheckEntryToJSONTyped;
|
|
22
|
+
const V2Money_1 = require("./V2Money");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.V2ProfileCheckEntryCheckTypeEnum = {
|
|
27
|
+
Addresscheck: 'addresscheck',
|
|
28
|
+
Adversemediacheck: 'adversemediacheck',
|
|
29
|
+
Bigcheck: 'bigcheck',
|
|
30
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
31
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
32
|
+
Customintegritycheck: 'customintegritycheck',
|
|
33
|
+
Cvcheck: 'cvcheck',
|
|
34
|
+
Edrcheck: 'edrcheck',
|
|
35
|
+
Focumcheck: 'focumcheck',
|
|
36
|
+
Id2check: 'id2check',
|
|
37
|
+
Idcheck: 'idcheck',
|
|
38
|
+
Integritycheck: 'integritycheck',
|
|
39
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
40
|
+
Permissioncheck: 'permissioncheck',
|
|
41
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
42
|
+
Qualificationcheck: 'qualificationcheck',
|
|
43
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
44
|
+
Vogcheck: 'vogcheck',
|
|
45
|
+
Watchlist2check: 'watchlist2check',
|
|
46
|
+
Watchlistcheck: 'watchlistcheck',
|
|
47
|
+
Workreferencecheck: 'workreferencecheck',
|
|
48
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the V2ProfileCheckEntry interface.
|
|
52
|
+
*/
|
|
53
|
+
function instanceOfV2ProfileCheckEntry(value) {
|
|
54
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined))
|
|
57
|
+
return false;
|
|
58
|
+
if ((!('displayName' in value) && !('display_name' in value)) || (value['displayName'] === undefined && value['display_name'] === undefined))
|
|
59
|
+
return false;
|
|
60
|
+
if ((!('configuredPrice' in value) && !('configured_price' in value)) || (value['configuredPrice'] === undefined && value['configured_price'] === undefined))
|
|
61
|
+
return false;
|
|
62
|
+
if (!('config' in value) || value['config'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if ((!('inputFields' in value) && !('input_fields' in value)) || (value['inputFields'] === undefined && value['input_fields'] === undefined))
|
|
65
|
+
return false;
|
|
66
|
+
if ((!('isSystemManaged' in value) && !('is_system_managed' in value)) || (value['isSystemManaged'] === undefined && value['is_system_managed'] === undefined))
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
function V2ProfileCheckEntryFromJSON(json) {
|
|
71
|
+
return V2ProfileCheckEntryFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function V2ProfileCheckEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'checkType': json['check_type'],
|
|
80
|
+
'displayName': json['display_name'],
|
|
81
|
+
'configuredPrice': (0, V2Money_1.V2MoneyFromJSON)(json['configured_price']),
|
|
82
|
+
'config': json['config'],
|
|
83
|
+
'inputFields': json['input_fields'],
|
|
84
|
+
'isSystemManaged': json['is_system_managed'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function V2ProfileCheckEntryToJSON(json) {
|
|
88
|
+
return V2ProfileCheckEntryToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
function V2ProfileCheckEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
@@ -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,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfV2ProfileCreate = instanceOfV2ProfileCreate;
|
|
17
|
+
exports.V2ProfileCreateFromJSON = V2ProfileCreateFromJSON;
|
|
18
|
+
exports.V2ProfileCreateFromJSONTyped = V2ProfileCreateFromJSONTyped;
|
|
19
|
+
exports.V2ProfileCreateToJSON = V2ProfileCreateToJSON;
|
|
20
|
+
exports.V2ProfileCreateToJSONTyped = V2ProfileCreateToJSONTyped;
|
|
21
|
+
const V2ProfileCheck_1 = require("./V2ProfileCheck");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the V2ProfileCreate interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfV2ProfileCreate(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('checks' in value) || value['checks'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function V2ProfileCreateFromJSON(json) {
|
|
33
|
+
return V2ProfileCreateFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function V2ProfileCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
'checks': (json['checks'].map(V2ProfileCheck_1.V2ProfileCheckFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function V2ProfileCreateToJSON(json) {
|
|
46
|
+
return V2ProfileCreateToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function V2ProfileCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'description': value['description'],
|
|
55
|
+
'checks': (value['checks'].map(V2ProfileCheck_1.V2ProfileCheckToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfV2ProfileDetail = instanceOfV2ProfileDetail;
|
|
17
|
+
exports.V2ProfileDetailFromJSON = V2ProfileDetailFromJSON;
|
|
18
|
+
exports.V2ProfileDetailFromJSONTyped = V2ProfileDetailFromJSONTyped;
|
|
19
|
+
exports.V2ProfileDetailToJSON = V2ProfileDetailToJSON;
|
|
20
|
+
exports.V2ProfileDetailToJSONTyped = V2ProfileDetailToJSONTyped;
|
|
21
|
+
const V2ProfileCheckEntry_1 = require("./V2ProfileCheckEntry");
|
|
22
|
+
const V2Money_1 = require("./V2Money");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the V2ProfileDetail interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfV2ProfileDetail(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('checks' in value) || value['checks'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('totalPrice' in value) && !('total_price' in value)) || (value['totalPrice'] === undefined && value['total_price'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if ((!('supportedCountriesOfWork' in value) && !('supported_countries_of_work' in value)) || (value['supportedCountriesOfWork'] === undefined && value['supported_countries_of_work'] === undefined))
|
|
38
|
+
return false;
|
|
39
|
+
if ((!('supportedCountriesOfResidence' in value) && !('supported_countries_of_residence' in value)) || (value['supportedCountriesOfResidence'] === undefined && value['supported_countries_of_residence'] === undefined))
|
|
40
|
+
return false;
|
|
41
|
+
if ((!('candidateFields' in value) && !('candidate_fields' in value)) || (value['candidateFields'] === undefined && value['candidate_fields'] === undefined))
|
|
42
|
+
return false;
|
|
43
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
44
|
+
return false;
|
|
45
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function V2ProfileDetailFromJSON(json) {
|
|
50
|
+
return V2ProfileDetailFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function V2ProfileDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'name': json['name'],
|
|
59
|
+
'description': json['description'],
|
|
60
|
+
'isCustom': json['is_custom'] == null ? undefined : json['is_custom'],
|
|
61
|
+
'checks': (json['checks'].map(V2ProfileCheckEntry_1.V2ProfileCheckEntryFromJSON)),
|
|
62
|
+
'totalPrice': (0, V2Money_1.V2MoneyFromJSON)(json['total_price']),
|
|
63
|
+
'supportedCountriesOfWork': json['supported_countries_of_work'],
|
|
64
|
+
'supportedCountriesOfResidence': json['supported_countries_of_residence'],
|
|
65
|
+
'candidateFields': json['candidate_fields'],
|
|
66
|
+
'createdAt': (new Date(json['created_at'])),
|
|
67
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function V2ProfileDetailToJSON(json) {
|
|
71
|
+
return V2ProfileDetailToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function V2ProfileDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
'description': value['description'],
|
|
80
|
+
'is_custom': value['isCustom'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -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,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfV2ProfileListItem = instanceOfV2ProfileListItem;
|
|
17
|
+
exports.V2ProfileListItemFromJSON = V2ProfileListItemFromJSON;
|
|
18
|
+
exports.V2ProfileListItemFromJSONTyped = V2ProfileListItemFromJSONTyped;
|
|
19
|
+
exports.V2ProfileListItemToJSON = V2ProfileListItemToJSON;
|
|
20
|
+
exports.V2ProfileListItemToJSONTyped = V2ProfileListItemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the V2ProfileListItem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfV2ProfileListItem(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('checkTypes' in value) && !('check_types' in value)) || (value['checkTypes'] === undefined && value['check_types'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function V2ProfileListItemFromJSON(json) {
|
|
40
|
+
return V2ProfileListItemFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function V2ProfileListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'description': json['description'],
|
|
50
|
+
'isCustom': json['is_custom'] == null ? undefined : json['is_custom'],
|
|
51
|
+
'checkTypes': json['check_types'],
|
|
52
|
+
'createdAt': (new Date(json['created_at'])),
|
|
53
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function V2ProfileListItemToJSON(json) {
|
|
57
|
+
return V2ProfileListItemToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function V2ProfileListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'is_custom': value['isCustom'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfV2ProfileUpdate = instanceOfV2ProfileUpdate;
|
|
17
|
+
exports.V2ProfileUpdateFromJSON = V2ProfileUpdateFromJSON;
|
|
18
|
+
exports.V2ProfileUpdateFromJSONTyped = V2ProfileUpdateFromJSONTyped;
|
|
19
|
+
exports.V2ProfileUpdateToJSON = V2ProfileUpdateToJSON;
|
|
20
|
+
exports.V2ProfileUpdateToJSONTyped = V2ProfileUpdateToJSONTyped;
|
|
21
|
+
const V2ProfileUpdateCheck_1 = require("./V2ProfileUpdateCheck");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the V2ProfileUpdate interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfV2ProfileUpdate(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('checks' in value) || value['checks'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function V2ProfileUpdateFromJSON(json) {
|
|
33
|
+
return V2ProfileUpdateFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function V2ProfileUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
'checks': (json['checks'].map(V2ProfileUpdateCheck_1.V2ProfileUpdateCheckFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function V2ProfileUpdateToJSON(json) {
|
|
46
|
+
return V2ProfileUpdateToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function V2ProfileUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'description': value['description'],
|
|
55
|
+
'checks': (value['checks'].map(V2ProfileUpdateCheck_1.V2ProfileUpdateCheckToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|