@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,456 @@
|
|
|
1
|
+
# ProfilesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.pescheck.io*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**v2ProfilesCreate**](ProfilesApi.md#v2profilescreate) | **POST** /api/v2/profiles/ | |
|
|
8
|
+
| [**v2ProfilesDestroy**](ProfilesApi.md#v2profilesdestroy) | **DELETE** /api/v2/profiles/{id}/ | |
|
|
9
|
+
| [**v2ProfilesList**](ProfilesApi.md#v2profileslist) | **GET** /api/v2/profiles/ | |
|
|
10
|
+
| [**v2ProfilesPartialUpdate**](ProfilesApi.md#v2profilespartialupdate) | **PATCH** /api/v2/profiles/{id}/ | |
|
|
11
|
+
| [**v2ProfilesRetrieve**](ProfilesApi.md#v2profilesretrieve) | **GET** /api/v2/profiles/{id}/ | |
|
|
12
|
+
| [**v2ProfilesUpdate**](ProfilesApi.md#v2profilesupdate) | **PUT** /api/v2/profiles/{id}/ | |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## v2ProfilesCreate
|
|
17
|
+
|
|
18
|
+
> V2ProfileDetail v2ProfilesCreate(v2ProfileCreate)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
ProfilesApi,
|
|
28
|
+
} from '@pescheckit/pescheck-client';
|
|
29
|
+
import type { V2ProfilesCreateRequest } from '@pescheckit/pescheck-client';
|
|
30
|
+
|
|
31
|
+
async function example() {
|
|
32
|
+
console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
|
|
33
|
+
const config = new Configuration({
|
|
34
|
+
// To configure OAuth2 access token for authorization: oauth2 application
|
|
35
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
36
|
+
});
|
|
37
|
+
const api = new ProfilesApi(config);
|
|
38
|
+
|
|
39
|
+
const body = {
|
|
40
|
+
// V2ProfileCreate
|
|
41
|
+
v2ProfileCreate: {"name":"VOG + Watchlist Screening","description":"Dutch certificate of good behavior plus international watchlist check.","checks":[{"check_type":"vogcheck","config":{"org_name":"Pescheck","function":"Senior Accountant","profiles":["11","12"]}},{"check_type":"watchlist2check","config":{"threshold":80,"cutoff":50,"topics":["sanctions","pep"]}}]},
|
|
42
|
+
} satisfies V2ProfilesCreateRequest;
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
const data = await api.v2ProfilesCreate(body);
|
|
46
|
+
console.log(data);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(error);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Run the test
|
|
53
|
+
example().catch(console.error);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
|------------- | ------------- | ------------- | -------------|
|
|
61
|
+
| **v2ProfileCreate** | [V2ProfileCreate](V2ProfileCreate.md) | | |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**V2ProfileDetail**](V2ProfileDetail.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[oauth2 application](../README.md#oauth2-application)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: `application/json`, `multipart/form-data`
|
|
74
|
+
- **Accept**: `application/json`
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### HTTP response details
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
| **201** | | - |
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## v2ProfilesDestroy
|
|
86
|
+
|
|
87
|
+
> v2ProfilesDestroy(id)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import {
|
|
95
|
+
Configuration,
|
|
96
|
+
ProfilesApi,
|
|
97
|
+
} from '@pescheckit/pescheck-client';
|
|
98
|
+
import type { V2ProfilesDestroyRequest } from '@pescheckit/pescheck-client';
|
|
99
|
+
|
|
100
|
+
async function example() {
|
|
101
|
+
console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
|
|
102
|
+
const config = new Configuration({
|
|
103
|
+
// To configure OAuth2 access token for authorization: oauth2 application
|
|
104
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
105
|
+
});
|
|
106
|
+
const api = new ProfilesApi(config);
|
|
107
|
+
|
|
108
|
+
const body = {
|
|
109
|
+
// string | A UUID string identifying this profile.
|
|
110
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
111
|
+
} satisfies V2ProfilesDestroyRequest;
|
|
112
|
+
|
|
113
|
+
try {
|
|
114
|
+
const data = await api.v2ProfilesDestroy(body);
|
|
115
|
+
console.log(data);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Run the test
|
|
122
|
+
example().catch(console.error);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
| Name | Type | Description | Notes |
|
|
129
|
+
|------------- | ------------- | ------------- | -------------|
|
|
130
|
+
| **id** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
`void` (Empty response body)
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
[oauth2 application](../README.md#oauth2-application)
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: Not defined
|
|
143
|
+
- **Accept**: Not defined
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### HTTP response details
|
|
147
|
+
| Status code | Description | Response headers |
|
|
148
|
+
|-------------|-------------|------------------|
|
|
149
|
+
| **204** | No response body | - |
|
|
150
|
+
|
|
151
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## v2ProfilesList
|
|
155
|
+
|
|
156
|
+
> PaginatedV2ProfileListItemList v2ProfilesList(checkType, isCustom, name, page, pageSize, paginate, sort)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Example
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
import {
|
|
164
|
+
Configuration,
|
|
165
|
+
ProfilesApi,
|
|
166
|
+
} from '@pescheckit/pescheck-client';
|
|
167
|
+
import type { V2ProfilesListRequest } from '@pescheckit/pescheck-client';
|
|
168
|
+
|
|
169
|
+
async function example() {
|
|
170
|
+
console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
|
|
171
|
+
const config = new Configuration({
|
|
172
|
+
// To configure OAuth2 access token for authorization: oauth2 application
|
|
173
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
174
|
+
});
|
|
175
|
+
const api = new ProfilesApi(config);
|
|
176
|
+
|
|
177
|
+
const body = {
|
|
178
|
+
// 'addresscheck' | 'adversemediacheck' | 'bigcheck' | 'criminalrecordscheck' | 'criminalrecordsuploadcheck' | 'customintegritycheck' | 'cvcheck' | 'edrcheck' | 'id2check' | 'integritycheck' | 'openhealthcarecheck' | 'qualificationcheck' | 'righttoworkcheck' | 'vogcheck' | 'watchlist2check' | 'watchlistcheck' | 'workreferencecheck' | 'worldwidecreditcheck' | Restrict to profiles containing at least one check of this type. (optional)
|
|
179
|
+
checkType: checkType_example,
|
|
180
|
+
// boolean | Restrict to custom (true) or system (false) profiles. (optional)
|
|
181
|
+
isCustom: true,
|
|
182
|
+
// string | Restrict to profiles whose name contains this value (case-insensitive). (optional)
|
|
183
|
+
name: name_example,
|
|
184
|
+
// number | A page number within the paginated result set. (optional)
|
|
185
|
+
page: 1,
|
|
186
|
+
// number | Number of results to return per page. (optional)
|
|
187
|
+
pageSize: 50,
|
|
188
|
+
// boolean | Enable/disable pagination. When false, max 500 records returned. (optional)
|
|
189
|
+
paginate: true,
|
|
190
|
+
// string | Which field to use when ordering the results. (optional)
|
|
191
|
+
sort: sort_example,
|
|
192
|
+
} satisfies V2ProfilesListRequest;
|
|
193
|
+
|
|
194
|
+
try {
|
|
195
|
+
const data = await api.v2ProfilesList(body);
|
|
196
|
+
console.log(data);
|
|
197
|
+
} catch (error) {
|
|
198
|
+
console.error(error);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Run the test
|
|
203
|
+
example().catch(console.error);
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Parameters
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
| Name | Type | Description | Notes |
|
|
210
|
+
|------------- | ------------- | ------------- | -------------|
|
|
211
|
+
| **checkType** | `addresscheck`, `adversemediacheck`, `bigcheck`, `criminalrecordscheck`, `criminalrecordsuploadcheck`, `customintegritycheck`, `cvcheck`, `edrcheck`, `id2check`, `integritycheck`, `openhealthcarecheck`, `qualificationcheck`, `righttoworkcheck`, `vogcheck`, `watchlist2check`, `watchlistcheck`, `workreferencecheck`, `worldwidecreditcheck` | Restrict to profiles containing at least one check of this type. | [Optional] [Defaults to `undefined`] [Enum: addresscheck, adversemediacheck, bigcheck, criminalrecordscheck, criminalrecordsuploadcheck, customintegritycheck, cvcheck, edrcheck, id2check, integritycheck, openhealthcarecheck, qualificationcheck, righttoworkcheck, vogcheck, watchlist2check, watchlistcheck, workreferencecheck, worldwidecreditcheck] |
|
|
212
|
+
| **isCustom** | `boolean` | Restrict to custom (true) or system (false) profiles. | [Optional] [Defaults to `undefined`] |
|
|
213
|
+
| **name** | `string` | Restrict to profiles whose name contains this value (case-insensitive). | [Optional] [Defaults to `undefined`] |
|
|
214
|
+
| **page** | `number` | A page number within the paginated result set. | [Optional] [Defaults to `1`] |
|
|
215
|
+
| **pageSize** | `number` | Number of results to return per page. | [Optional] [Defaults to `50`] |
|
|
216
|
+
| **paginate** | `boolean` | Enable/disable pagination. When false, max 500 records returned. | [Optional] [Defaults to `true`] |
|
|
217
|
+
| **sort** | `string` | Which field to use when ordering the results. | [Optional] [Defaults to `undefined`] |
|
|
218
|
+
|
|
219
|
+
### Return type
|
|
220
|
+
|
|
221
|
+
[**PaginatedV2ProfileListItemList**](PaginatedV2ProfileListItemList.md)
|
|
222
|
+
|
|
223
|
+
### Authorization
|
|
224
|
+
|
|
225
|
+
[oauth2 application](../README.md#oauth2-application)
|
|
226
|
+
|
|
227
|
+
### HTTP request headers
|
|
228
|
+
|
|
229
|
+
- **Content-Type**: Not defined
|
|
230
|
+
- **Accept**: `application/json`
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### HTTP response details
|
|
234
|
+
| Status code | Description | Response headers |
|
|
235
|
+
|-------------|-------------|------------------|
|
|
236
|
+
| **200** | | - |
|
|
237
|
+
|
|
238
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
## v2ProfilesPartialUpdate
|
|
242
|
+
|
|
243
|
+
> V2ProfileDetail v2ProfilesPartialUpdate(id, patchedV2ProfilePartialUpdate)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
Update name and/or description only. Use PUT to change the check list.
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
|
|
251
|
+
```ts
|
|
252
|
+
import {
|
|
253
|
+
Configuration,
|
|
254
|
+
ProfilesApi,
|
|
255
|
+
} from '@pescheckit/pescheck-client';
|
|
256
|
+
import type { V2ProfilesPartialUpdateRequest } from '@pescheckit/pescheck-client';
|
|
257
|
+
|
|
258
|
+
async function example() {
|
|
259
|
+
console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
|
|
260
|
+
const config = new Configuration({
|
|
261
|
+
// To configure OAuth2 access token for authorization: oauth2 application
|
|
262
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
263
|
+
});
|
|
264
|
+
const api = new ProfilesApi(config);
|
|
265
|
+
|
|
266
|
+
const body = {
|
|
267
|
+
// string | A UUID string identifying this profile.
|
|
268
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
269
|
+
// PatchedV2ProfilePartialUpdate (optional)
|
|
270
|
+
patchedV2ProfilePartialUpdate: {"name":"VOG + Watchlist Screening (NL)","description":"Adjusted description for the Dutch market."},
|
|
271
|
+
} satisfies V2ProfilesPartialUpdateRequest;
|
|
272
|
+
|
|
273
|
+
try {
|
|
274
|
+
const data = await api.v2ProfilesPartialUpdate(body);
|
|
275
|
+
console.log(data);
|
|
276
|
+
} catch (error) {
|
|
277
|
+
console.error(error);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Run the test
|
|
282
|
+
example().catch(console.error);
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
| Name | Type | Description | Notes |
|
|
289
|
+
|------------- | ------------- | ------------- | -------------|
|
|
290
|
+
| **id** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
|
|
291
|
+
| **patchedV2ProfilePartialUpdate** | [PatchedV2ProfilePartialUpdate](PatchedV2ProfilePartialUpdate.md) | | [Optional] |
|
|
292
|
+
|
|
293
|
+
### Return type
|
|
294
|
+
|
|
295
|
+
[**V2ProfileDetail**](V2ProfileDetail.md)
|
|
296
|
+
|
|
297
|
+
### Authorization
|
|
298
|
+
|
|
299
|
+
[oauth2 application](../README.md#oauth2-application)
|
|
300
|
+
|
|
301
|
+
### HTTP request headers
|
|
302
|
+
|
|
303
|
+
- **Content-Type**: `application/json`, `multipart/form-data`
|
|
304
|
+
- **Accept**: `application/json`
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### HTTP response details
|
|
308
|
+
| Status code | Description | Response headers |
|
|
309
|
+
|-------------|-------------|------------------|
|
|
310
|
+
| **200** | | - |
|
|
311
|
+
|
|
312
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## v2ProfilesRetrieve
|
|
316
|
+
|
|
317
|
+
> V2ProfileDetail v2ProfilesRetrieve(id)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### Example
|
|
322
|
+
|
|
323
|
+
```ts
|
|
324
|
+
import {
|
|
325
|
+
Configuration,
|
|
326
|
+
ProfilesApi,
|
|
327
|
+
} from '@pescheckit/pescheck-client';
|
|
328
|
+
import type { V2ProfilesRetrieveRequest } from '@pescheckit/pescheck-client';
|
|
329
|
+
|
|
330
|
+
async function example() {
|
|
331
|
+
console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
|
|
332
|
+
const config = new Configuration({
|
|
333
|
+
// To configure OAuth2 access token for authorization: oauth2 application
|
|
334
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
335
|
+
});
|
|
336
|
+
const api = new ProfilesApi(config);
|
|
337
|
+
|
|
338
|
+
const body = {
|
|
339
|
+
// string | A UUID string identifying this profile.
|
|
340
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
341
|
+
} satisfies V2ProfilesRetrieveRequest;
|
|
342
|
+
|
|
343
|
+
try {
|
|
344
|
+
const data = await api.v2ProfilesRetrieve(body);
|
|
345
|
+
console.log(data);
|
|
346
|
+
} catch (error) {
|
|
347
|
+
console.error(error);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Run the test
|
|
352
|
+
example().catch(console.error);
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Parameters
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
| Name | Type | Description | Notes |
|
|
359
|
+
|------------- | ------------- | ------------- | -------------|
|
|
360
|
+
| **id** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
|
|
361
|
+
|
|
362
|
+
### Return type
|
|
363
|
+
|
|
364
|
+
[**V2ProfileDetail**](V2ProfileDetail.md)
|
|
365
|
+
|
|
366
|
+
### Authorization
|
|
367
|
+
|
|
368
|
+
[oauth2 application](../README.md#oauth2-application)
|
|
369
|
+
|
|
370
|
+
### HTTP request headers
|
|
371
|
+
|
|
372
|
+
- **Content-Type**: Not defined
|
|
373
|
+
- **Accept**: `application/json`
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
### HTTP response details
|
|
377
|
+
| Status code | Description | Response headers |
|
|
378
|
+
|-------------|-------------|------------------|
|
|
379
|
+
| **200** | | - |
|
|
380
|
+
|
|
381
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
## v2ProfilesUpdate
|
|
385
|
+
|
|
386
|
+
> V2ProfileDetail v2ProfilesUpdate(id, v2ProfileUpdate)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
Replace the profile. Checks matched by profile_check_id are updated in place; entries without one are added; existing checks not referenced in the request are removed.
|
|
391
|
+
|
|
392
|
+
### Example
|
|
393
|
+
|
|
394
|
+
```ts
|
|
395
|
+
import {
|
|
396
|
+
Configuration,
|
|
397
|
+
ProfilesApi,
|
|
398
|
+
} from '@pescheckit/pescheck-client';
|
|
399
|
+
import type { V2ProfilesUpdateRequest } from '@pescheckit/pescheck-client';
|
|
400
|
+
|
|
401
|
+
async function example() {
|
|
402
|
+
console.log("🚀 Testing @pescheckit/pescheck-client SDK...");
|
|
403
|
+
const config = new Configuration({
|
|
404
|
+
// To configure OAuth2 access token for authorization: oauth2 application
|
|
405
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
406
|
+
});
|
|
407
|
+
const api = new ProfilesApi(config);
|
|
408
|
+
|
|
409
|
+
const body = {
|
|
410
|
+
// string | A UUID string identifying this profile.
|
|
411
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
412
|
+
// V2ProfileUpdate
|
|
413
|
+
v2ProfileUpdate: {"name":"VOG + Watchlist Screening","description":"Dutch certificate of good behavior plus international watchlist check.","checks":[{"profile_check_id":"018e9f1e-3a85-7f50-a4f3-d4f6e7b9c1d2","check_type":"vogcheck","config":{"org_name":"Pescheck","function":"Lead Engineer","profiles":["11","12","13"]}},{"check_type":"watchlist2check","config":{"threshold":85,"topics":["sanctions","pep","crime"]}}]},
|
|
414
|
+
} satisfies V2ProfilesUpdateRequest;
|
|
415
|
+
|
|
416
|
+
try {
|
|
417
|
+
const data = await api.v2ProfilesUpdate(body);
|
|
418
|
+
console.log(data);
|
|
419
|
+
} catch (error) {
|
|
420
|
+
console.error(error);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// Run the test
|
|
425
|
+
example().catch(console.error);
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### Parameters
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
| Name | Type | Description | Notes |
|
|
432
|
+
|------------- | ------------- | ------------- | -------------|
|
|
433
|
+
| **id** | `string` | A UUID string identifying this profile. | [Defaults to `undefined`] |
|
|
434
|
+
| **v2ProfileUpdate** | [V2ProfileUpdate](V2ProfileUpdate.md) | | |
|
|
435
|
+
|
|
436
|
+
### Return type
|
|
437
|
+
|
|
438
|
+
[**V2ProfileDetail**](V2ProfileDetail.md)
|
|
439
|
+
|
|
440
|
+
### Authorization
|
|
441
|
+
|
|
442
|
+
[oauth2 application](../README.md#oauth2-application)
|
|
443
|
+
|
|
444
|
+
### HTTP request headers
|
|
445
|
+
|
|
446
|
+
- **Content-Type**: `application/json`, `multipart/form-data`
|
|
447
|
+
- **Accept**: `application/json`
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### HTTP response details
|
|
451
|
+
| Status code | Description | Response headers |
|
|
452
|
+
|-------------|-------------|------------------|
|
|
453
|
+
| **200** | | - |
|
|
454
|
+
|
|
455
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
456
|
+
|