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