@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,122 @@
|
|
|
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
|
+
* Input serializer for one `{check_type, config}` profile-check entry.
|
|
18
|
+
*
|
|
19
|
+
* Used by profile create directly. Subclass with `PARTIAL_CONFIG = True` for
|
|
20
|
+
* screening overrides where only the fields actually being changed should be
|
|
21
|
+
* validated.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface V2ProfileCheck
|
|
24
|
+
*/
|
|
25
|
+
export interface V2ProfileCheck {
|
|
26
|
+
/**
|
|
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
|
+
* * `id2check` - id2check
|
|
36
|
+
* * `integritycheck` - integritycheck
|
|
37
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
38
|
+
* * `qualificationcheck` - qualificationcheck
|
|
39
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
40
|
+
* * `vogcheck` - vogcheck
|
|
41
|
+
* * `watchlist2check` - watchlist2check
|
|
42
|
+
* * `watchlistcheck` - watchlistcheck
|
|
43
|
+
* * `workreferencecheck` - workreferencecheck
|
|
44
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
45
|
+
* @type {V2ProfileCheckCheckTypeEnum}
|
|
46
|
+
* @memberof V2ProfileCheck
|
|
47
|
+
*/
|
|
48
|
+
checkType: V2ProfileCheckCheckTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: any; }}
|
|
52
|
+
* @memberof V2ProfileCheck
|
|
53
|
+
*/
|
|
54
|
+
config?: { [key: string]: any; };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const V2ProfileCheckCheckTypeEnum = {
|
|
62
|
+
Addresscheck: 'addresscheck',
|
|
63
|
+
Adversemediacheck: 'adversemediacheck',
|
|
64
|
+
Bigcheck: 'bigcheck',
|
|
65
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
66
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
67
|
+
Customintegritycheck: 'customintegritycheck',
|
|
68
|
+
Cvcheck: 'cvcheck',
|
|
69
|
+
Edrcheck: 'edrcheck',
|
|
70
|
+
Id2check: 'id2check',
|
|
71
|
+
Integritycheck: 'integritycheck',
|
|
72
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
73
|
+
Qualificationcheck: 'qualificationcheck',
|
|
74
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
75
|
+
Vogcheck: 'vogcheck',
|
|
76
|
+
Watchlist2check: 'watchlist2check',
|
|
77
|
+
Watchlistcheck: 'watchlistcheck',
|
|
78
|
+
Workreferencecheck: 'workreferencecheck',
|
|
79
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
80
|
+
} as const;
|
|
81
|
+
export type V2ProfileCheckCheckTypeEnum = typeof V2ProfileCheckCheckTypeEnum[keyof typeof V2ProfileCheckCheckTypeEnum];
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the V2ProfileCheck interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfV2ProfileCheck(value: any): value is V2ProfileCheck {
|
|
88
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function V2ProfileCheckFromJSON(json: any): V2ProfileCheck {
|
|
93
|
+
return V2ProfileCheckFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function V2ProfileCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileCheck {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'checkType': json['check_type'],
|
|
103
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function V2ProfileCheckToJSON(json: any): V2ProfileCheck {
|
|
108
|
+
return V2ProfileCheckToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function V2ProfileCheckToJSONTyped(value?: V2ProfileCheck | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'check_type': value['checkType'],
|
|
119
|
+
'config': value['config'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,173 @@
|
|
|
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 { V2Money } from './V2Money';
|
|
17
|
+
import {
|
|
18
|
+
V2MoneyFromJSON,
|
|
19
|
+
V2MoneyFromJSONTyped,
|
|
20
|
+
V2MoneyToJSON,
|
|
21
|
+
V2MoneyToJSONTyped,
|
|
22
|
+
} from './V2Money';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface V2ProfileCheckEntry
|
|
28
|
+
*/
|
|
29
|
+
export interface V2ProfileCheckEntry {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V2ProfileCheckEntry
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* * `addresscheck` - addresscheck
|
|
38
|
+
* * `adversemediacheck` - adversemediacheck
|
|
39
|
+
* * `bigcheck` - bigcheck
|
|
40
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
41
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
42
|
+
* * `customintegritycheck` - customintegritycheck
|
|
43
|
+
* * `cvcheck` - cvcheck
|
|
44
|
+
* * `edrcheck` - edrcheck
|
|
45
|
+
* * `focumcheck` - focumcheck
|
|
46
|
+
* * `id2check` - id2check
|
|
47
|
+
* * `idcheck` - idcheck
|
|
48
|
+
* * `integritycheck` - integritycheck
|
|
49
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
50
|
+
* * `permissioncheck` - permissioncheck
|
|
51
|
+
* * `pescheckadversemediacheck` - pescheckadversemediacheck
|
|
52
|
+
* * `qualificationcheck` - qualificationcheck
|
|
53
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
54
|
+
* * `vogcheck` - vogcheck
|
|
55
|
+
* * `watchlist2check` - watchlist2check
|
|
56
|
+
* * `watchlistcheck` - watchlistcheck
|
|
57
|
+
* * `workreferencecheck` - workreferencecheck
|
|
58
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
59
|
+
* @type {V2ProfileCheckEntryCheckTypeEnum}
|
|
60
|
+
* @memberof V2ProfileCheckEntry
|
|
61
|
+
*/
|
|
62
|
+
readonly checkType: V2ProfileCheckEntryCheckTypeEnum;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof V2ProfileCheckEntry
|
|
67
|
+
*/
|
|
68
|
+
readonly displayName: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {V2Money}
|
|
72
|
+
* @memberof V2ProfileCheckEntry
|
|
73
|
+
*/
|
|
74
|
+
readonly configuredPrice: V2Money;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {{ [key: string]: any; }}
|
|
78
|
+
* @memberof V2ProfileCheckEntry
|
|
79
|
+
*/
|
|
80
|
+
readonly config: { [key: string]: any; };
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Array<object>}
|
|
84
|
+
* @memberof V2ProfileCheckEntry
|
|
85
|
+
*/
|
|
86
|
+
readonly inputFields: Array<object>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof V2ProfileCheckEntry
|
|
91
|
+
*/
|
|
92
|
+
readonly isSystemManaged: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export const V2ProfileCheckEntryCheckTypeEnum = {
|
|
100
|
+
Addresscheck: 'addresscheck',
|
|
101
|
+
Adversemediacheck: 'adversemediacheck',
|
|
102
|
+
Bigcheck: 'bigcheck',
|
|
103
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
104
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
105
|
+
Customintegritycheck: 'customintegritycheck',
|
|
106
|
+
Cvcheck: 'cvcheck',
|
|
107
|
+
Edrcheck: 'edrcheck',
|
|
108
|
+
Focumcheck: 'focumcheck',
|
|
109
|
+
Id2check: 'id2check',
|
|
110
|
+
Idcheck: 'idcheck',
|
|
111
|
+
Integritycheck: 'integritycheck',
|
|
112
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
113
|
+
Permissioncheck: 'permissioncheck',
|
|
114
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
115
|
+
Qualificationcheck: 'qualificationcheck',
|
|
116
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
117
|
+
Vogcheck: 'vogcheck',
|
|
118
|
+
Watchlist2check: 'watchlist2check',
|
|
119
|
+
Watchlistcheck: 'watchlistcheck',
|
|
120
|
+
Workreferencecheck: 'workreferencecheck',
|
|
121
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
122
|
+
} as const;
|
|
123
|
+
export type V2ProfileCheckEntryCheckTypeEnum = typeof V2ProfileCheckEntryCheckTypeEnum[keyof typeof V2ProfileCheckEntryCheckTypeEnum];
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Check if a given object implements the V2ProfileCheckEntry interface.
|
|
128
|
+
*/
|
|
129
|
+
export function instanceOfV2ProfileCheckEntry(value: any): value is V2ProfileCheckEntry {
|
|
130
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
131
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
132
|
+
if ((!('displayName' in value) && !('display_name' in value)) || (value['displayName'] === undefined && value['display_name'] === undefined)) return false;
|
|
133
|
+
if ((!('configuredPrice' in value) && !('configured_price' in value)) || (value['configuredPrice'] === undefined && value['configured_price'] === undefined)) return false;
|
|
134
|
+
if (!('config' in value) || value['config'] === undefined) return false;
|
|
135
|
+
if ((!('inputFields' in value) && !('input_fields' in value)) || (value['inputFields'] === undefined && value['input_fields'] === undefined)) return false;
|
|
136
|
+
if ((!('isSystemManaged' in value) && !('is_system_managed' in value)) || (value['isSystemManaged'] === undefined && value['is_system_managed'] === undefined)) return false;
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function V2ProfileCheckEntryFromJSON(json: any): V2ProfileCheckEntry {
|
|
141
|
+
return V2ProfileCheckEntryFromJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function V2ProfileCheckEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileCheckEntry {
|
|
145
|
+
if (json == null) {
|
|
146
|
+
return json;
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'id': json['id'],
|
|
151
|
+
'checkType': json['check_type'],
|
|
152
|
+
'displayName': json['display_name'],
|
|
153
|
+
'configuredPrice': V2MoneyFromJSON(json['configured_price']),
|
|
154
|
+
'config': json['config'],
|
|
155
|
+
'inputFields': json['input_fields'],
|
|
156
|
+
'isSystemManaged': json['is_system_managed'],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function V2ProfileCheckEntryToJSON(json: any): V2ProfileCheckEntry {
|
|
161
|
+
return V2ProfileCheckEntryToJSONTyped(json, false);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function V2ProfileCheckEntryToJSONTyped(value?: Omit<V2ProfileCheckEntry, 'id'|'check_type'|'display_name'|'configured_price'|'config'|'input_fields'|'is_system_managed'> | null, ignoreDiscriminator: boolean = false): any {
|
|
165
|
+
if (value == null) {
|
|
166
|
+
return value;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { V2ProfileCheck } from './V2ProfileCheck';
|
|
17
|
+
import {
|
|
18
|
+
V2ProfileCheckFromJSON,
|
|
19
|
+
V2ProfileCheckFromJSONTyped,
|
|
20
|
+
V2ProfileCheckToJSON,
|
|
21
|
+
V2ProfileCheckToJSONTyped,
|
|
22
|
+
} from './V2ProfileCheck';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface V2ProfileCreate
|
|
28
|
+
*/
|
|
29
|
+
export interface V2ProfileCreate {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V2ProfileCreate
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof V2ProfileCreate
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<V2ProfileCheck>}
|
|
45
|
+
* @memberof V2ProfileCreate
|
|
46
|
+
*/
|
|
47
|
+
checks: Array<V2ProfileCheck>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the V2ProfileCreate interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfV2ProfileCreate(value: any): value is V2ProfileCreate {
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
|
+
if (!('checks' in value) || value['checks'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function V2ProfileCreateFromJSON(json: any): V2ProfileCreate {
|
|
60
|
+
return V2ProfileCreateFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function V2ProfileCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileCreate {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
71
|
+
'checks': ((json['checks'] as Array<any>).map(V2ProfileCheckFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function V2ProfileCreateToJSON(json: any): V2ProfileCreate {
|
|
76
|
+
return V2ProfileCreateToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function V2ProfileCreateToJSONTyped(value?: V2ProfileCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'name': value['name'],
|
|
87
|
+
'description': value['description'],
|
|
88
|
+
'checks': ((value['checks'] as Array<any>).map(V2ProfileCheckToJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
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 { V2ProfileCheckEntry } from './V2ProfileCheckEntry';
|
|
17
|
+
import {
|
|
18
|
+
V2ProfileCheckEntryFromJSON,
|
|
19
|
+
V2ProfileCheckEntryFromJSONTyped,
|
|
20
|
+
V2ProfileCheckEntryToJSON,
|
|
21
|
+
V2ProfileCheckEntryToJSONTyped,
|
|
22
|
+
} from './V2ProfileCheckEntry';
|
|
23
|
+
import type { V2Money } from './V2Money';
|
|
24
|
+
import {
|
|
25
|
+
V2MoneyFromJSON,
|
|
26
|
+
V2MoneyFromJSONTyped,
|
|
27
|
+
V2MoneyToJSON,
|
|
28
|
+
V2MoneyToJSONTyped,
|
|
29
|
+
} from './V2Money';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface V2ProfileDetail
|
|
35
|
+
*/
|
|
36
|
+
export interface V2ProfileDetail {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof V2ProfileDetail
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof V2ProfileDetail
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof V2ProfileDetail
|
|
53
|
+
*/
|
|
54
|
+
description: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof V2ProfileDetail
|
|
59
|
+
*/
|
|
60
|
+
isCustom?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<V2ProfileCheckEntry>}
|
|
64
|
+
* @memberof V2ProfileDetail
|
|
65
|
+
*/
|
|
66
|
+
readonly checks: Array<V2ProfileCheckEntry>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {V2Money}
|
|
70
|
+
* @memberof V2ProfileDetail
|
|
71
|
+
*/
|
|
72
|
+
readonly totalPrice: V2Money;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof V2ProfileDetail
|
|
77
|
+
*/
|
|
78
|
+
readonly supportedCountriesOfWork: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<string>}
|
|
82
|
+
* @memberof V2ProfileDetail
|
|
83
|
+
*/
|
|
84
|
+
readonly supportedCountriesOfResidence: Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<object>}
|
|
88
|
+
* @memberof V2ProfileDetail
|
|
89
|
+
*/
|
|
90
|
+
readonly candidateFields: Array<object>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof V2ProfileDetail
|
|
95
|
+
*/
|
|
96
|
+
readonly createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof V2ProfileDetail
|
|
101
|
+
*/
|
|
102
|
+
readonly updatedAt: Date;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the V2ProfileDetail interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfV2ProfileDetail(value: any): value is V2ProfileDetail {
|
|
109
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
110
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
111
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
112
|
+
if (!('checks' in value) || value['checks'] === undefined) return false;
|
|
113
|
+
if ((!('totalPrice' in value) && !('total_price' in value)) || (value['totalPrice'] === undefined && value['total_price'] === undefined)) return false;
|
|
114
|
+
if ((!('supportedCountriesOfWork' in value) && !('supported_countries_of_work' in value)) || (value['supportedCountriesOfWork'] === undefined && value['supported_countries_of_work'] === undefined)) return false;
|
|
115
|
+
if ((!('supportedCountriesOfResidence' in value) && !('supported_countries_of_residence' in value)) || (value['supportedCountriesOfResidence'] === undefined && value['supported_countries_of_residence'] === undefined)) return false;
|
|
116
|
+
if ((!('candidateFields' in value) && !('candidate_fields' in value)) || (value['candidateFields'] === undefined && value['candidate_fields'] === undefined)) return false;
|
|
117
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined)) return false;
|
|
118
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined)) return false;
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function V2ProfileDetailFromJSON(json: any): V2ProfileDetail {
|
|
123
|
+
return V2ProfileDetailFromJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function V2ProfileDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileDetail {
|
|
127
|
+
if (json == null) {
|
|
128
|
+
return json;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'id': json['id'],
|
|
133
|
+
'name': json['name'],
|
|
134
|
+
'description': json['description'],
|
|
135
|
+
'isCustom': json['is_custom'] == null ? undefined : json['is_custom'],
|
|
136
|
+
'checks': ((json['checks'] as Array<any>).map(V2ProfileCheckEntryFromJSON)),
|
|
137
|
+
'totalPrice': V2MoneyFromJSON(json['total_price']),
|
|
138
|
+
'supportedCountriesOfWork': json['supported_countries_of_work'],
|
|
139
|
+
'supportedCountriesOfResidence': json['supported_countries_of_residence'],
|
|
140
|
+
'candidateFields': json['candidate_fields'],
|
|
141
|
+
'createdAt': (new Date(json['created_at'])),
|
|
142
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function V2ProfileDetailToJSON(json: any): V2ProfileDetail {
|
|
147
|
+
return V2ProfileDetailToJSONTyped(json, false);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export 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 = false): any {
|
|
151
|
+
if (value == null) {
|
|
152
|
+
return value;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
|
|
157
|
+
'name': value['name'],
|
|
158
|
+
'description': value['description'],
|
|
159
|
+
'is_custom': value['isCustom'],
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
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 V2ProfileListItem
|
|
20
|
+
*/
|
|
21
|
+
export interface V2ProfileListItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V2ProfileListItem
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof V2ProfileListItem
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof V2ProfileListItem
|
|
38
|
+
*/
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof V2ProfileListItem
|
|
44
|
+
*/
|
|
45
|
+
isCustom?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof V2ProfileListItem
|
|
50
|
+
*/
|
|
51
|
+
readonly checkTypes: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof V2ProfileListItem
|
|
56
|
+
*/
|
|
57
|
+
readonly createdAt: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof V2ProfileListItem
|
|
62
|
+
*/
|
|
63
|
+
readonly updatedAt: Date;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the V2ProfileListItem interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfV2ProfileListItem(value: any): value is V2ProfileListItem {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
73
|
+
if ((!('checkTypes' in value) && !('check_types' in value)) || (value['checkTypes'] === undefined && value['check_types'] === undefined)) return false;
|
|
74
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined)) return false;
|
|
75
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined)) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function V2ProfileListItemFromJSON(json: any): V2ProfileListItem {
|
|
80
|
+
return V2ProfileListItemFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function V2ProfileListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProfileListItem {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': json['id'],
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'description': json['description'],
|
|
92
|
+
'isCustom': json['is_custom'] == null ? undefined : json['is_custom'],
|
|
93
|
+
'checkTypes': json['check_types'],
|
|
94
|
+
'createdAt': (new Date(json['created_at'])),
|
|
95
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function V2ProfileListItemToJSON(json: any): V2ProfileListItem {
|
|
100
|
+
return V2ProfileListItemToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function V2ProfileListItemToJSONTyped(value?: Omit<V2ProfileListItem, 'id'|'check_types'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'name': value['name'],
|
|
111
|
+
'description': value['description'],
|
|
112
|
+
'is_custom': value['isCustom'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|