@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,583 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type PaginatedV2ProfileListItemList,
|
|
18
|
+
PaginatedV2ProfileListItemListFromJSON,
|
|
19
|
+
PaginatedV2ProfileListItemListToJSON,
|
|
20
|
+
} from '../models/PaginatedV2ProfileListItemList';
|
|
21
|
+
import {
|
|
22
|
+
type PatchedV2ProfilePartialUpdate,
|
|
23
|
+
PatchedV2ProfilePartialUpdateFromJSON,
|
|
24
|
+
PatchedV2ProfilePartialUpdateToJSON,
|
|
25
|
+
} from '../models/PatchedV2ProfilePartialUpdate';
|
|
26
|
+
import {
|
|
27
|
+
type V2ProfileCreate,
|
|
28
|
+
V2ProfileCreateFromJSON,
|
|
29
|
+
V2ProfileCreateToJSON,
|
|
30
|
+
} from '../models/V2ProfileCreate';
|
|
31
|
+
import {
|
|
32
|
+
type V2ProfileDetail,
|
|
33
|
+
V2ProfileDetailFromJSON,
|
|
34
|
+
V2ProfileDetailToJSON,
|
|
35
|
+
} from '../models/V2ProfileDetail';
|
|
36
|
+
import {
|
|
37
|
+
type V2ProfileUpdate,
|
|
38
|
+
V2ProfileUpdateFromJSON,
|
|
39
|
+
V2ProfileUpdateToJSON,
|
|
40
|
+
} from '../models/V2ProfileUpdate';
|
|
41
|
+
|
|
42
|
+
export interface V2ProfilesCreateRequest {
|
|
43
|
+
v2ProfileCreate: V2ProfileCreate;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface V2ProfilesDestroyRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface V2ProfilesListRequest {
|
|
51
|
+
checkType?: V2ProfilesListCheckTypeEnum;
|
|
52
|
+
isCustom?: boolean;
|
|
53
|
+
name?: string;
|
|
54
|
+
page?: number;
|
|
55
|
+
pageSize?: number;
|
|
56
|
+
paginate?: boolean;
|
|
57
|
+
sort?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface V2ProfilesPartialUpdateRequest {
|
|
61
|
+
id: string;
|
|
62
|
+
patchedV2ProfilePartialUpdate?: PatchedV2ProfilePartialUpdate;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface V2ProfilesRetrieveRequest {
|
|
66
|
+
id: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface V2ProfilesUpdateRequest {
|
|
70
|
+
id: string;
|
|
71
|
+
v2ProfileUpdate: V2ProfileUpdate;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* ProfilesApi - interface
|
|
76
|
+
*
|
|
77
|
+
* @export
|
|
78
|
+
* @interface ProfilesApiInterface
|
|
79
|
+
*/
|
|
80
|
+
export interface ProfilesApiInterface {
|
|
81
|
+
/**
|
|
82
|
+
* Creates request options for v2ProfilesCreate without sending the request
|
|
83
|
+
* @param {V2ProfileCreate} v2ProfileCreate
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
* @memberof ProfilesApiInterface
|
|
86
|
+
*/
|
|
87
|
+
v2ProfilesCreateRequestOpts(requestParameters: V2ProfilesCreateRequest): Promise<runtime.RequestOpts>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @param {V2ProfileCreate} v2ProfileCreate
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
* @memberof ProfilesApiInterface
|
|
95
|
+
*/
|
|
96
|
+
v2ProfilesCreateRaw(requestParameters: V2ProfilesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
*/
|
|
100
|
+
v2ProfilesCreate(requestParameters: V2ProfilesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Creates request options for v2ProfilesDestroy without sending the request
|
|
104
|
+
* @param {string} id A UUID string identifying this profile.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
* @memberof ProfilesApiInterface
|
|
107
|
+
*/
|
|
108
|
+
v2ProfilesDestroyRequestOpts(requestParameters: V2ProfilesDestroyRequest): Promise<runtime.RequestOpts>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @param {string} id A UUID string identifying this profile.
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
* @memberof ProfilesApiInterface
|
|
116
|
+
*/
|
|
117
|
+
v2ProfilesDestroyRaw(requestParameters: V2ProfilesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*/
|
|
121
|
+
v2ProfilesDestroy(requestParameters: V2ProfilesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Creates request options for v2ProfilesList without sending the request
|
|
125
|
+
* @param {'addresscheck' | 'adversemediacheck' | 'bigcheck' | 'criminalrecordscheck' | 'criminalrecordsuploadcheck' | 'customintegritycheck' | 'cvcheck' | 'edrcheck' | 'id2check' | 'integritycheck' | 'openhealthcarecheck' | 'qualificationcheck' | 'righttoworkcheck' | 'vogcheck' | 'watchlist2check' | 'watchlistcheck' | 'workreferencecheck' | 'worldwidecreditcheck'} [checkType] Restrict to profiles containing at least one check of this type.
|
|
126
|
+
* @param {boolean} [isCustom] Restrict to custom (true) or system (false) profiles.
|
|
127
|
+
* @param {string} [name] Restrict to profiles whose name contains this value (case-insensitive).
|
|
128
|
+
* @param {number} [page] A page number within the paginated result set.
|
|
129
|
+
* @param {number} [pageSize] Number of results to return per page.
|
|
130
|
+
* @param {boolean} [paginate] Enable/disable pagination. When false, max 500 records returned.
|
|
131
|
+
* @param {string} [sort] Which field to use when ordering the results.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
* @memberof ProfilesApiInterface
|
|
134
|
+
*/
|
|
135
|
+
v2ProfilesListRequestOpts(requestParameters: V2ProfilesListRequest): Promise<runtime.RequestOpts>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @param {'addresscheck' | 'adversemediacheck' | 'bigcheck' | 'criminalrecordscheck' | 'criminalrecordsuploadcheck' | 'customintegritycheck' | 'cvcheck' | 'edrcheck' | 'id2check' | 'integritycheck' | 'openhealthcarecheck' | 'qualificationcheck' | 'righttoworkcheck' | 'vogcheck' | 'watchlist2check' | 'watchlistcheck' | 'workreferencecheck' | 'worldwidecreditcheck'} [checkType] Restrict to profiles containing at least one check of this type.
|
|
140
|
+
* @param {boolean} [isCustom] Restrict to custom (true) or system (false) profiles.
|
|
141
|
+
* @param {string} [name] Restrict to profiles whose name contains this value (case-insensitive).
|
|
142
|
+
* @param {number} [page] A page number within the paginated result set.
|
|
143
|
+
* @param {number} [pageSize] Number of results to return per page.
|
|
144
|
+
* @param {boolean} [paginate] Enable/disable pagination. When false, max 500 records returned.
|
|
145
|
+
* @param {string} [sort] Which field to use when ordering the results.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof ProfilesApiInterface
|
|
149
|
+
*/
|
|
150
|
+
v2ProfilesListRaw(requestParameters: V2ProfilesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedV2ProfileListItemList>>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
*/
|
|
154
|
+
v2ProfilesList(requestParameters: V2ProfilesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedV2ProfileListItemList>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Creates request options for v2ProfilesPartialUpdate without sending the request
|
|
158
|
+
* @param {string} id A UUID string identifying this profile.
|
|
159
|
+
* @param {PatchedV2ProfilePartialUpdate} [patchedV2ProfilePartialUpdate]
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
* @memberof ProfilesApiInterface
|
|
162
|
+
*/
|
|
163
|
+
v2ProfilesPartialUpdateRequestOpts(requestParameters: V2ProfilesPartialUpdateRequest): Promise<runtime.RequestOpts>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Update name and/or description only. Use PUT to change the check list.
|
|
167
|
+
* @param {string} id A UUID string identifying this profile.
|
|
168
|
+
* @param {PatchedV2ProfilePartialUpdate} [patchedV2ProfilePartialUpdate]
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof ProfilesApiInterface
|
|
172
|
+
*/
|
|
173
|
+
v2ProfilesPartialUpdateRaw(requestParameters: V2ProfilesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Update name and/or description only. Use PUT to change the check list.
|
|
177
|
+
*/
|
|
178
|
+
v2ProfilesPartialUpdate(requestParameters: V2ProfilesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Creates request options for v2ProfilesRetrieve without sending the request
|
|
182
|
+
* @param {string} id A UUID string identifying this profile.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof ProfilesApiInterface
|
|
185
|
+
*/
|
|
186
|
+
v2ProfilesRetrieveRequestOpts(requestParameters: V2ProfilesRetrieveRequest): Promise<runtime.RequestOpts>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @param {string} id A UUID string identifying this profile.
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
* @memberof ProfilesApiInterface
|
|
194
|
+
*/
|
|
195
|
+
v2ProfilesRetrieveRaw(requestParameters: V2ProfilesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
*/
|
|
199
|
+
v2ProfilesRetrieve(requestParameters: V2ProfilesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Creates request options for v2ProfilesUpdate without sending the request
|
|
203
|
+
* @param {string} id A UUID string identifying this profile.
|
|
204
|
+
* @param {V2ProfileUpdate} v2ProfileUpdate
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
* @memberof ProfilesApiInterface
|
|
207
|
+
*/
|
|
208
|
+
v2ProfilesUpdateRequestOpts(requestParameters: V2ProfilesUpdateRequest): Promise<runtime.RequestOpts>;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* 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.
|
|
212
|
+
* @param {string} id A UUID string identifying this profile.
|
|
213
|
+
* @param {V2ProfileUpdate} v2ProfileUpdate
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
* @memberof ProfilesApiInterface
|
|
217
|
+
*/
|
|
218
|
+
v2ProfilesUpdateRaw(requestParameters: V2ProfilesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* 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.
|
|
222
|
+
*/
|
|
223
|
+
v2ProfilesUpdate(requestParameters: V2ProfilesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail>;
|
|
224
|
+
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
230
|
+
export class ProfilesApi extends runtime.BaseAPI implements ProfilesApiInterface {
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Creates request options for v2ProfilesCreate without sending the request
|
|
234
|
+
*/
|
|
235
|
+
async v2ProfilesCreateRequestOpts(requestParameters: V2ProfilesCreateRequest): Promise<runtime.RequestOpts> {
|
|
236
|
+
if (requestParameters['v2ProfileCreate'] == null) {
|
|
237
|
+
throw new runtime.RequiredError(
|
|
238
|
+
'v2ProfileCreate',
|
|
239
|
+
'Required parameter "v2ProfileCreate" was null or undefined when calling v2ProfilesCreate().'
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const queryParameters: any = {};
|
|
244
|
+
|
|
245
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
246
|
+
|
|
247
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
248
|
+
|
|
249
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
250
|
+
// oauth required
|
|
251
|
+
headerParameters["Authorization"] = `Bearer ${await this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
let urlPath = `/api/v2/profiles/`;
|
|
256
|
+
|
|
257
|
+
return {
|
|
258
|
+
path: urlPath,
|
|
259
|
+
method: 'POST',
|
|
260
|
+
headers: headerParameters,
|
|
261
|
+
query: queryParameters,
|
|
262
|
+
body: V2ProfileCreateToJSON(requestParameters['v2ProfileCreate']),
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
*/
|
|
268
|
+
async v2ProfilesCreateRaw(requestParameters: V2ProfilesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>> {
|
|
269
|
+
const requestOptions = await this.v2ProfilesCreateRequestOpts(requestParameters);
|
|
270
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
271
|
+
|
|
272
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V2ProfileDetailFromJSON(jsonValue));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
*/
|
|
277
|
+
async v2ProfilesCreate(requestParameters: V2ProfilesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail> {
|
|
278
|
+
const response = await this.v2ProfilesCreateRaw(requestParameters, initOverrides);
|
|
279
|
+
return await response.value();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Creates request options for v2ProfilesDestroy without sending the request
|
|
284
|
+
*/
|
|
285
|
+
async v2ProfilesDestroyRequestOpts(requestParameters: V2ProfilesDestroyRequest): Promise<runtime.RequestOpts> {
|
|
286
|
+
if (requestParameters['id'] == null) {
|
|
287
|
+
throw new runtime.RequiredError(
|
|
288
|
+
'id',
|
|
289
|
+
'Required parameter "id" was null or undefined when calling v2ProfilesDestroy().'
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const queryParameters: any = {};
|
|
294
|
+
|
|
295
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
296
|
+
|
|
297
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
298
|
+
// oauth required
|
|
299
|
+
headerParameters["Authorization"] = `Bearer ${await this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
let urlPath = `/api/v2/profiles/{id}/`;
|
|
304
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'DELETE',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
*/
|
|
316
|
+
async v2ProfilesDestroyRaw(requestParameters: V2ProfilesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
317
|
+
const requestOptions = await this.v2ProfilesDestroyRequestOpts(requestParameters);
|
|
318
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
319
|
+
|
|
320
|
+
return new runtime.VoidApiResponse(response);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
*/
|
|
325
|
+
async v2ProfilesDestroy(requestParameters: V2ProfilesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
326
|
+
await this.v2ProfilesDestroyRaw(requestParameters, initOverrides);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Creates request options for v2ProfilesList without sending the request
|
|
331
|
+
*/
|
|
332
|
+
async v2ProfilesListRequestOpts(requestParameters: V2ProfilesListRequest): Promise<runtime.RequestOpts> {
|
|
333
|
+
const queryParameters: any = {};
|
|
334
|
+
|
|
335
|
+
if (requestParameters['checkType'] != null) {
|
|
336
|
+
queryParameters['check_type'] = requestParameters['checkType'];
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (requestParameters['isCustom'] != null) {
|
|
340
|
+
queryParameters['is_custom'] = requestParameters['isCustom'];
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (requestParameters['name'] != null) {
|
|
344
|
+
queryParameters['name'] = requestParameters['name'];
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (requestParameters['page'] != null) {
|
|
348
|
+
queryParameters['page'] = requestParameters['page'];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
if (requestParameters['pageSize'] != null) {
|
|
352
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (requestParameters['paginate'] != null) {
|
|
356
|
+
queryParameters['paginate'] = requestParameters['paginate'];
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (requestParameters['sort'] != null) {
|
|
360
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
364
|
+
|
|
365
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
366
|
+
// oauth required
|
|
367
|
+
headerParameters["Authorization"] = `Bearer ${await this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
let urlPath = `/api/v2/profiles/`;
|
|
372
|
+
|
|
373
|
+
return {
|
|
374
|
+
path: urlPath,
|
|
375
|
+
method: 'GET',
|
|
376
|
+
headers: headerParameters,
|
|
377
|
+
query: queryParameters,
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
*/
|
|
383
|
+
async v2ProfilesListRaw(requestParameters: V2ProfilesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedV2ProfileListItemList>> {
|
|
384
|
+
const requestOptions = await this.v2ProfilesListRequestOpts(requestParameters);
|
|
385
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
386
|
+
|
|
387
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedV2ProfileListItemListFromJSON(jsonValue));
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
*/
|
|
392
|
+
async v2ProfilesList(requestParameters: V2ProfilesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedV2ProfileListItemList> {
|
|
393
|
+
const response = await this.v2ProfilesListRaw(requestParameters, initOverrides);
|
|
394
|
+
return await response.value();
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Creates request options for v2ProfilesPartialUpdate without sending the request
|
|
399
|
+
*/
|
|
400
|
+
async v2ProfilesPartialUpdateRequestOpts(requestParameters: V2ProfilesPartialUpdateRequest): Promise<runtime.RequestOpts> {
|
|
401
|
+
if (requestParameters['id'] == null) {
|
|
402
|
+
throw new runtime.RequiredError(
|
|
403
|
+
'id',
|
|
404
|
+
'Required parameter "id" was null or undefined when calling v2ProfilesPartialUpdate().'
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
const queryParameters: any = {};
|
|
409
|
+
|
|
410
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
411
|
+
|
|
412
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
413
|
+
|
|
414
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
415
|
+
// oauth required
|
|
416
|
+
headerParameters["Authorization"] = `Bearer ${await this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
let urlPath = `/api/v2/profiles/{id}/`;
|
|
421
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
422
|
+
|
|
423
|
+
return {
|
|
424
|
+
path: urlPath,
|
|
425
|
+
method: 'PATCH',
|
|
426
|
+
headers: headerParameters,
|
|
427
|
+
query: queryParameters,
|
|
428
|
+
body: PatchedV2ProfilePartialUpdateToJSON(requestParameters['patchedV2ProfilePartialUpdate']),
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Update name and/or description only. Use PUT to change the check list.
|
|
434
|
+
*/
|
|
435
|
+
async v2ProfilesPartialUpdateRaw(requestParameters: V2ProfilesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>> {
|
|
436
|
+
const requestOptions = await this.v2ProfilesPartialUpdateRequestOpts(requestParameters);
|
|
437
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
438
|
+
|
|
439
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V2ProfileDetailFromJSON(jsonValue));
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Update name and/or description only. Use PUT to change the check list.
|
|
444
|
+
*/
|
|
445
|
+
async v2ProfilesPartialUpdate(requestParameters: V2ProfilesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail> {
|
|
446
|
+
const response = await this.v2ProfilesPartialUpdateRaw(requestParameters, initOverrides);
|
|
447
|
+
return await response.value();
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Creates request options for v2ProfilesRetrieve without sending the request
|
|
452
|
+
*/
|
|
453
|
+
async v2ProfilesRetrieveRequestOpts(requestParameters: V2ProfilesRetrieveRequest): Promise<runtime.RequestOpts> {
|
|
454
|
+
if (requestParameters['id'] == null) {
|
|
455
|
+
throw new runtime.RequiredError(
|
|
456
|
+
'id',
|
|
457
|
+
'Required parameter "id" was null or undefined when calling v2ProfilesRetrieve().'
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
const queryParameters: any = {};
|
|
462
|
+
|
|
463
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
464
|
+
|
|
465
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
466
|
+
// oauth required
|
|
467
|
+
headerParameters["Authorization"] = `Bearer ${await this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
let urlPath = `/api/v2/profiles/{id}/`;
|
|
472
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
473
|
+
|
|
474
|
+
return {
|
|
475
|
+
path: urlPath,
|
|
476
|
+
method: 'GET',
|
|
477
|
+
headers: headerParameters,
|
|
478
|
+
query: queryParameters,
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
*/
|
|
484
|
+
async v2ProfilesRetrieveRaw(requestParameters: V2ProfilesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>> {
|
|
485
|
+
const requestOptions = await this.v2ProfilesRetrieveRequestOpts(requestParameters);
|
|
486
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
487
|
+
|
|
488
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V2ProfileDetailFromJSON(jsonValue));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
*/
|
|
493
|
+
async v2ProfilesRetrieve(requestParameters: V2ProfilesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail> {
|
|
494
|
+
const response = await this.v2ProfilesRetrieveRaw(requestParameters, initOverrides);
|
|
495
|
+
return await response.value();
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Creates request options for v2ProfilesUpdate without sending the request
|
|
500
|
+
*/
|
|
501
|
+
async v2ProfilesUpdateRequestOpts(requestParameters: V2ProfilesUpdateRequest): Promise<runtime.RequestOpts> {
|
|
502
|
+
if (requestParameters['id'] == null) {
|
|
503
|
+
throw new runtime.RequiredError(
|
|
504
|
+
'id',
|
|
505
|
+
'Required parameter "id" was null or undefined when calling v2ProfilesUpdate().'
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
if (requestParameters['v2ProfileUpdate'] == null) {
|
|
510
|
+
throw new runtime.RequiredError(
|
|
511
|
+
'v2ProfileUpdate',
|
|
512
|
+
'Required parameter "v2ProfileUpdate" was null or undefined when calling v2ProfilesUpdate().'
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
const queryParameters: any = {};
|
|
517
|
+
|
|
518
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
519
|
+
|
|
520
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
521
|
+
|
|
522
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
523
|
+
// oauth required
|
|
524
|
+
headerParameters["Authorization"] = `Bearer ${await this.configuration.accessToken("oauth2", ["read:api", "create:api", "update:api"])}`;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
let urlPath = `/api/v2/profiles/{id}/`;
|
|
529
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
530
|
+
|
|
531
|
+
return {
|
|
532
|
+
path: urlPath,
|
|
533
|
+
method: 'PUT',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
body: V2ProfileUpdateToJSON(requestParameters['v2ProfileUpdate']),
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* 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.
|
|
542
|
+
*/
|
|
543
|
+
async v2ProfilesUpdateRaw(requestParameters: V2ProfilesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V2ProfileDetail>> {
|
|
544
|
+
const requestOptions = await this.v2ProfilesUpdateRequestOpts(requestParameters);
|
|
545
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
546
|
+
|
|
547
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V2ProfileDetailFromJSON(jsonValue));
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* 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.
|
|
552
|
+
*/
|
|
553
|
+
async v2ProfilesUpdate(requestParameters: V2ProfilesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V2ProfileDetail> {
|
|
554
|
+
const response = await this.v2ProfilesUpdateRaw(requestParameters, initOverrides);
|
|
555
|
+
return await response.value();
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @export
|
|
562
|
+
*/
|
|
563
|
+
export const V2ProfilesListCheckTypeEnum = {
|
|
564
|
+
Addresscheck: 'addresscheck',
|
|
565
|
+
Adversemediacheck: 'adversemediacheck',
|
|
566
|
+
Bigcheck: 'bigcheck',
|
|
567
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
568
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
569
|
+
Customintegritycheck: 'customintegritycheck',
|
|
570
|
+
Cvcheck: 'cvcheck',
|
|
571
|
+
Edrcheck: 'edrcheck',
|
|
572
|
+
Id2check: 'id2check',
|
|
573
|
+
Integritycheck: 'integritycheck',
|
|
574
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
575
|
+
Qualificationcheck: 'qualificationcheck',
|
|
576
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
577
|
+
Vogcheck: 'vogcheck',
|
|
578
|
+
Watchlist2check: 'watchlist2check',
|
|
579
|
+
Watchlistcheck: 'watchlistcheck',
|
|
580
|
+
Workreferencecheck: 'workreferencecheck',
|
|
581
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
582
|
+
} as const;
|
|
583
|
+
export type V2ProfilesListCheckTypeEnum = typeof V2ProfilesListCheckTypeEnum[keyof typeof V2ProfilesListCheckTypeEnum];
|