@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,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pescheck API
|
|
3
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DivisionWrite
|
|
16
|
+
*/
|
|
17
|
+
export interface DivisionWrite {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DivisionWrite
|
|
22
|
+
*/
|
|
23
|
+
readonly id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DivisionWrite
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DivisionWrite
|
|
34
|
+
*/
|
|
35
|
+
city: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DivisionWrite
|
|
40
|
+
*/
|
|
41
|
+
address: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DivisionWrite
|
|
46
|
+
*/
|
|
47
|
+
postal: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof DivisionWrite
|
|
52
|
+
*/
|
|
53
|
+
phone: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DivisionWrite
|
|
58
|
+
*/
|
|
59
|
+
contactName: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DivisionWrite
|
|
64
|
+
*/
|
|
65
|
+
contactEmail: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof DivisionWrite
|
|
70
|
+
*/
|
|
71
|
+
invoiceEmail: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof DivisionWrite
|
|
76
|
+
*/
|
|
77
|
+
useParentOnEmail?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof DivisionWrite
|
|
82
|
+
*/
|
|
83
|
+
useParentOnBilling?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof DivisionWrite
|
|
88
|
+
*/
|
|
89
|
+
useParentOnReport?: boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the DivisionWrite interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfDivisionWrite(value: any): value is DivisionWrite;
|
|
95
|
+
export declare function DivisionWriteFromJSON(json: any): DivisionWrite;
|
|
96
|
+
export declare function DivisionWriteFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionWrite;
|
|
97
|
+
export declare function DivisionWriteToJSON(json: any): DivisionWrite;
|
|
98
|
+
export declare function DivisionWriteToJSONTyped(value?: Omit<DivisionWrite, 'id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDivisionWrite = instanceOfDivisionWrite;
|
|
17
|
+
exports.DivisionWriteFromJSON = DivisionWriteFromJSON;
|
|
18
|
+
exports.DivisionWriteFromJSONTyped = DivisionWriteFromJSONTyped;
|
|
19
|
+
exports.DivisionWriteToJSON = DivisionWriteToJSON;
|
|
20
|
+
exports.DivisionWriteToJSONTyped = DivisionWriteToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DivisionWrite interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDivisionWrite(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('postal' in value) || value['postal'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('contactName' in value) && !('contact_name' in value)) || (value['contactName'] === undefined && value['contact_name'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if ((!('contactEmail' in value) && !('contact_email' in value)) || (value['contactEmail'] === undefined && value['contact_email'] === undefined))
|
|
38
|
+
return false;
|
|
39
|
+
if ((!('invoiceEmail' in value) && !('invoice_email' in value)) || (value['invoiceEmail'] === undefined && value['invoice_email'] === undefined))
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function DivisionWriteFromJSON(json) {
|
|
44
|
+
return DivisionWriteFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DivisionWriteFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'city': json['city'],
|
|
54
|
+
'address': json['address'],
|
|
55
|
+
'postal': json['postal'],
|
|
56
|
+
'phone': json['phone'],
|
|
57
|
+
'contactName': json['contact_name'],
|
|
58
|
+
'contactEmail': json['contact_email'],
|
|
59
|
+
'invoiceEmail': json['invoice_email'],
|
|
60
|
+
'useParentOnEmail': json['use_parent_on_email'] == null ? undefined : json['use_parent_on_email'],
|
|
61
|
+
'useParentOnBilling': json['use_parent_on_billing'] == null ? undefined : json['use_parent_on_billing'],
|
|
62
|
+
'useParentOnReport': json['use_parent_on_report'] == null ? undefined : json['use_parent_on_report'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function DivisionWriteToJSON(json) {
|
|
66
|
+
return DivisionWriteToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function DivisionWriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'city': value['city'],
|
|
75
|
+
'address': value['address'],
|
|
76
|
+
'postal': value['postal'],
|
|
77
|
+
'phone': value['phone'],
|
|
78
|
+
'contact_name': value['contactName'],
|
|
79
|
+
'contact_email': value['contactEmail'],
|
|
80
|
+
'invoice_email': value['invoiceEmail'],
|
|
81
|
+
'use_parent_on_email': value['useParentOnEmail'],
|
|
82
|
+
'use_parent_on_billing': value['useParentOnBilling'],
|
|
83
|
+
'use_parent_on_report': value['useParentOnReport'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pescheck API
|
|
3
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for JWT token generation for API users
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JWTGeneration
|
|
16
|
+
*/
|
|
17
|
+
export interface JWTGeneration {
|
|
18
|
+
/**
|
|
19
|
+
* Email address of the API user
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof JWTGeneration
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
* Password for the API user
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JWTGeneration
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
/**
|
|
31
|
+
* Organization ID to generate token for
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof JWTGeneration
|
|
34
|
+
*/
|
|
35
|
+
organisationId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Division ID to generate token for (optional)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof JWTGeneration
|
|
40
|
+
*/
|
|
41
|
+
divisionId?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the JWTGeneration interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfJWTGeneration(value: any): value is JWTGeneration;
|
|
47
|
+
export declare function JWTGenerationFromJSON(json: any): JWTGeneration;
|
|
48
|
+
export declare function JWTGenerationFromJSONTyped(json: any, ignoreDiscriminator: boolean): JWTGeneration;
|
|
49
|
+
export declare function JWTGenerationToJSON(json: any): JWTGeneration;
|
|
50
|
+
export declare function JWTGenerationToJSONTyped(value?: JWTGeneration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfJWTGeneration = instanceOfJWTGeneration;
|
|
17
|
+
exports.JWTGenerationFromJSON = JWTGenerationFromJSON;
|
|
18
|
+
exports.JWTGenerationFromJSONTyped = JWTGenerationFromJSONTyped;
|
|
19
|
+
exports.JWTGenerationToJSON = JWTGenerationToJSON;
|
|
20
|
+
exports.JWTGenerationToJSONTyped = JWTGenerationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the JWTGeneration interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfJWTGeneration(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function JWTGenerationFromJSON(json) {
|
|
32
|
+
return JWTGenerationFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function JWTGenerationFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'password': json['password'],
|
|
41
|
+
'organisationId': json['organisation_id'] == null ? undefined : json['organisation_id'],
|
|
42
|
+
'divisionId': json['division_id'] == null ? undefined : json['division_id'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function JWTGenerationToJSON(json) {
|
|
46
|
+
return JWTGenerationToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function JWTGenerationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'email': value['email'],
|
|
54
|
+
'password': value['password'],
|
|
55
|
+
'organisation_id': value['organisationId'],
|
|
56
|
+
'division_id': value['divisionId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pescheck API
|
|
3
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for JWT token response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JWTResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface JWTResponse {
|
|
18
|
+
/**
|
|
19
|
+
* JWT access token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof JWTResponse
|
|
22
|
+
*/
|
|
23
|
+
accessToken: string;
|
|
24
|
+
/**
|
|
25
|
+
* JWT refresh token
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JWTResponse
|
|
28
|
+
*/
|
|
29
|
+
refreshToken: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof JWTResponse
|
|
34
|
+
*/
|
|
35
|
+
tokenType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Access token expiration in seconds
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof JWTResponse
|
|
40
|
+
*/
|
|
41
|
+
expiresIn: number;
|
|
42
|
+
/**
|
|
43
|
+
* Organization name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof JWTResponse
|
|
46
|
+
*/
|
|
47
|
+
organisation: string;
|
|
48
|
+
/**
|
|
49
|
+
* Organization ID
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof JWTResponse
|
|
52
|
+
*/
|
|
53
|
+
organisationId: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the JWTResponse interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfJWTResponse(value: any): value is JWTResponse;
|
|
59
|
+
export declare function JWTResponseFromJSON(json: any): JWTResponse;
|
|
60
|
+
export declare function JWTResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JWTResponse;
|
|
61
|
+
export declare function JWTResponseToJSON(json: any): JWTResponse;
|
|
62
|
+
export declare function JWTResponseToJSONTyped(value?: JWTResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfJWTResponse = instanceOfJWTResponse;
|
|
17
|
+
exports.JWTResponseFromJSON = JWTResponseFromJSON;
|
|
18
|
+
exports.JWTResponseFromJSONTyped = JWTResponseFromJSONTyped;
|
|
19
|
+
exports.JWTResponseToJSON = JWTResponseToJSON;
|
|
20
|
+
exports.JWTResponseToJSONTyped = JWTResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the JWTResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfJWTResponse(value) {
|
|
25
|
+
if ((!('accessToken' in value) && !('access_token' in value)) || (value['accessToken'] === undefined && value['access_token'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('refreshToken' in value) && !('refresh_token' in value)) || (value['refreshToken'] === undefined && value['refresh_token'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('expiresIn' in value) && !('expires_in' in value)) || (value['expiresIn'] === undefined && value['expires_in'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('organisation' in value) || value['organisation'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('organisationId' in value) && !('organisation_id' in value)) || (value['organisationId'] === undefined && value['organisation_id'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function JWTResponseFromJSON(json) {
|
|
38
|
+
return JWTResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function JWTResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'accessToken': json['access_token'],
|
|
46
|
+
'refreshToken': json['refresh_token'],
|
|
47
|
+
'tokenType': json['token_type'] == null ? undefined : json['token_type'],
|
|
48
|
+
'expiresIn': json['expires_in'],
|
|
49
|
+
'organisation': json['organisation'],
|
|
50
|
+
'organisationId': json['organisation_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function JWTResponseToJSON(json) {
|
|
54
|
+
return JWTResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function JWTResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'access_token': value['accessToken'],
|
|
62
|
+
'refresh_token': value['refreshToken'],
|
|
63
|
+
'token_type': value['tokenType'],
|
|
64
|
+
'expires_in': value['expiresIn'],
|
|
65
|
+
'organisation': value['organisation'],
|
|
66
|
+
'organisation_id': value['organisationId'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pescheck API
|
|
3
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for OAuth application creation requests
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthApplication
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthApplication {
|
|
18
|
+
/**
|
|
19
|
+
* Name for the OAuth application
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthApplication
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Client type (confidential recommended for server-to-server)
|
|
26
|
+
*
|
|
27
|
+
* * `confidential` - Confidential
|
|
28
|
+
* * `public` - Public
|
|
29
|
+
* @type {OAuthApplicationClientTypeEnum}
|
|
30
|
+
* @memberof OAuthApplication
|
|
31
|
+
*/
|
|
32
|
+
clientType?: OAuthApplicationClientTypeEnum;
|
|
33
|
+
/**
|
|
34
|
+
* Grant type (client_credentials for API access)
|
|
35
|
+
*
|
|
36
|
+
* * `authorization-code` - Authorization code
|
|
37
|
+
* * `implicit` - Implicit
|
|
38
|
+
* * `password` - Resource owner password-based
|
|
39
|
+
* * `client-credentials` - Client credentials
|
|
40
|
+
* * `openid-hybrid` - OpenID connect hybrid
|
|
41
|
+
* @type {OAuthApplicationAuthorizationGrantTypeEnum}
|
|
42
|
+
* @memberof OAuthApplication
|
|
43
|
+
*/
|
|
44
|
+
authorizationGrantType?: OAuthApplicationAuthorizationGrantTypeEnum;
|
|
45
|
+
/**
|
|
46
|
+
* Space-separated redirect URIs (optional for client_credentials)
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof OAuthApplication
|
|
49
|
+
*/
|
|
50
|
+
redirectUris?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Division ID to create application for (optional)
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof OAuthApplication
|
|
55
|
+
*/
|
|
56
|
+
divisionId?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const OAuthApplicationClientTypeEnum: {
|
|
62
|
+
readonly Confidential: "confidential";
|
|
63
|
+
readonly Public: "public";
|
|
64
|
+
};
|
|
65
|
+
export type OAuthApplicationClientTypeEnum = typeof OAuthApplicationClientTypeEnum[keyof typeof OAuthApplicationClientTypeEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const OAuthApplicationAuthorizationGrantTypeEnum: {
|
|
70
|
+
readonly AuthorizationCode: "authorization-code";
|
|
71
|
+
readonly Implicit: "implicit";
|
|
72
|
+
readonly Password: "password";
|
|
73
|
+
readonly ClientCredentials: "client-credentials";
|
|
74
|
+
readonly OpenidHybrid: "openid-hybrid";
|
|
75
|
+
};
|
|
76
|
+
export type OAuthApplicationAuthorizationGrantTypeEnum = typeof OAuthApplicationAuthorizationGrantTypeEnum[keyof typeof OAuthApplicationAuthorizationGrantTypeEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the OAuthApplication interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfOAuthApplication(value: any): value is OAuthApplication;
|
|
81
|
+
export declare function OAuthApplicationFromJSON(json: any): OAuthApplication;
|
|
82
|
+
export declare function OAuthApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthApplication;
|
|
83
|
+
export declare function OAuthApplicationToJSON(json: any): OAuthApplication;
|
|
84
|
+
export declare function OAuthApplicationToJSONTyped(value?: OAuthApplication | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pescheck API
|
|
6
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OAuthApplicationAuthorizationGrantTypeEnum = exports.OAuthApplicationClientTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfOAuthApplication = instanceOfOAuthApplication;
|
|
18
|
+
exports.OAuthApplicationFromJSON = OAuthApplicationFromJSON;
|
|
19
|
+
exports.OAuthApplicationFromJSONTyped = OAuthApplicationFromJSONTyped;
|
|
20
|
+
exports.OAuthApplicationToJSON = OAuthApplicationToJSON;
|
|
21
|
+
exports.OAuthApplicationToJSONTyped = OAuthApplicationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OAuthApplicationClientTypeEnum = {
|
|
26
|
+
Confidential: 'confidential',
|
|
27
|
+
Public: 'public'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.OAuthApplicationAuthorizationGrantTypeEnum = {
|
|
33
|
+
AuthorizationCode: 'authorization-code',
|
|
34
|
+
Implicit: 'implicit',
|
|
35
|
+
Password: 'password',
|
|
36
|
+
ClientCredentials: 'client-credentials',
|
|
37
|
+
OpenidHybrid: 'openid-hybrid'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the OAuthApplication interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfOAuthApplication(value) {
|
|
43
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function OAuthApplicationFromJSON(json) {
|
|
48
|
+
return OAuthApplicationFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function OAuthApplicationFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'clientType': json['client_type'] == null ? undefined : json['client_type'],
|
|
57
|
+
'authorizationGrantType': json['authorization_grant_type'] == null ? undefined : json['authorization_grant_type'],
|
|
58
|
+
'redirectUris': json['redirect_uris'] == null ? undefined : json['redirect_uris'],
|
|
59
|
+
'divisionId': json['division_id'] == null ? undefined : json['division_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function OAuthApplicationToJSON(json) {
|
|
63
|
+
return OAuthApplicationToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function OAuthApplicationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'client_type': value['clientType'],
|
|
72
|
+
'authorization_grant_type': value['authorizationGrantType'],
|
|
73
|
+
'redirect_uris': value['redirectUris'],
|
|
74
|
+
'division_id': value['divisionId'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pescheck API
|
|
3
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for OAuth application responses
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthApplicationResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthApplicationResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthApplicationResponse
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OAuthApplicationResponse
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OAuthApplicationResponse
|
|
34
|
+
*/
|
|
35
|
+
clientId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OAuthApplicationResponse
|
|
40
|
+
*/
|
|
41
|
+
readonly clientSecret: string;
|
|
42
|
+
/**
|
|
43
|
+
* * `confidential` - Confidential
|
|
44
|
+
* * `public` - Public
|
|
45
|
+
* @type {OAuthApplicationResponseClientTypeEnum}
|
|
46
|
+
* @memberof OAuthApplicationResponse
|
|
47
|
+
*/
|
|
48
|
+
clientType: OAuthApplicationResponseClientTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
* * `authorization-code` - Authorization code
|
|
51
|
+
* * `implicit` - Implicit
|
|
52
|
+
* * `password` - Resource owner password-based
|
|
53
|
+
* * `client-credentials` - Client credentials
|
|
54
|
+
* * `openid-hybrid` - OpenID connect hybrid
|
|
55
|
+
* @type {OAuthApplicationResponseAuthorizationGrantTypeEnum}
|
|
56
|
+
* @memberof OAuthApplicationResponse
|
|
57
|
+
*/
|
|
58
|
+
authorizationGrantType: OAuthApplicationResponseAuthorizationGrantTypeEnum;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof OAuthApplicationResponse
|
|
63
|
+
*/
|
|
64
|
+
readonly created: Date;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof OAuthApplicationResponse
|
|
69
|
+
*/
|
|
70
|
+
readonly updated: Date;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export declare const OAuthApplicationResponseClientTypeEnum: {
|
|
76
|
+
readonly Confidential: "confidential";
|
|
77
|
+
readonly Public: "public";
|
|
78
|
+
};
|
|
79
|
+
export type OAuthApplicationResponseClientTypeEnum = typeof OAuthApplicationResponseClientTypeEnum[keyof typeof OAuthApplicationResponseClientTypeEnum];
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const OAuthApplicationResponseAuthorizationGrantTypeEnum: {
|
|
84
|
+
readonly AuthorizationCode: "authorization-code";
|
|
85
|
+
readonly Implicit: "implicit";
|
|
86
|
+
readonly Password: "password";
|
|
87
|
+
readonly ClientCredentials: "client-credentials";
|
|
88
|
+
readonly OpenidHybrid: "openid-hybrid";
|
|
89
|
+
};
|
|
90
|
+
export type OAuthApplicationResponseAuthorizationGrantTypeEnum = typeof OAuthApplicationResponseAuthorizationGrantTypeEnum[keyof typeof OAuthApplicationResponseAuthorizationGrantTypeEnum];
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the OAuthApplicationResponse interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfOAuthApplicationResponse(value: any): value is OAuthApplicationResponse;
|
|
95
|
+
export declare function OAuthApplicationResponseFromJSON(json: any): OAuthApplicationResponse;
|
|
96
|
+
export declare function OAuthApplicationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthApplicationResponse;
|
|
97
|
+
export declare function OAuthApplicationResponseToJSON(json: any): OAuthApplicationResponse;
|
|
98
|
+
export declare function OAuthApplicationResponseToJSONTyped(value?: Omit<OAuthApplicationResponse, 'id' | 'client_secret' | 'created' | 'updated'> | null, ignoreDiscriminator?: boolean): any;
|