@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,97 @@
|
|
|
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
|
+
* One config or input field a check accepts via the API.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface V2CheckField
|
|
20
|
+
*/
|
|
21
|
+
export interface V2CheckField {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V2CheckField
|
|
26
|
+
*/
|
|
27
|
+
readonly name: string;
|
|
28
|
+
/**
|
|
29
|
+
* "string" | "integer" | "number" | "boolean" | "array" | "object"
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof V2CheckField
|
|
32
|
+
*/
|
|
33
|
+
readonly type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the request body must include this field.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof V2CheckField
|
|
38
|
+
*/
|
|
39
|
+
readonly required: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Allowed values, or null if the field isn't constrained to a set.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof V2CheckField
|
|
44
|
+
*/
|
|
45
|
+
readonly choices: Array<string> | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof V2CheckField
|
|
50
|
+
*/
|
|
51
|
+
readonly helpText: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the V2CheckField interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfV2CheckField(value: any): value is V2CheckField {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
60
|
+
if (!('required' in value) || value['required'] === undefined) return false;
|
|
61
|
+
if (!('choices' in value) || value['choices'] === undefined) return false;
|
|
62
|
+
if ((!('helpText' in value) && !('help_text' in value)) || (value['helpText'] === undefined && value['help_text'] === undefined)) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function V2CheckFieldFromJSON(json: any): V2CheckField {
|
|
67
|
+
return V2CheckFieldFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function V2CheckFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CheckField {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': json['name'],
|
|
77
|
+
'type': json['type'],
|
|
78
|
+
'required': json['required'],
|
|
79
|
+
'choices': json['choices'] == null ? null : json['choices'],
|
|
80
|
+
'helpText': json['help_text'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function V2CheckFieldToJSON(json: any): V2CheckField {
|
|
85
|
+
return V2CheckFieldToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function V2CheckFieldToJSONTyped(value?: Omit<V2CheckField, 'name'|'type'|'required'|'choices'|'help_text'> | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pescheck API
|
|
5
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { V2CheckField } from './V2CheckField';
|
|
17
|
+
import {
|
|
18
|
+
V2CheckFieldFromJSON,
|
|
19
|
+
V2CheckFieldFromJSONTyped,
|
|
20
|
+
V2CheckFieldToJSON,
|
|
21
|
+
V2CheckFieldToJSONTyped,
|
|
22
|
+
} from './V2CheckField';
|
|
23
|
+
import type { V2Money } from './V2Money';
|
|
24
|
+
import {
|
|
25
|
+
V2MoneyFromJSON,
|
|
26
|
+
V2MoneyFromJSONTyped,
|
|
27
|
+
V2MoneyToJSON,
|
|
28
|
+
V2MoneyToJSONTyped,
|
|
29
|
+
} from './V2Money';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Everything a client needs to know to use a check type via the API.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface V2CheckInfo
|
|
35
|
+
*/
|
|
36
|
+
export interface V2CheckInfo {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof V2CheckInfo
|
|
41
|
+
*/
|
|
42
|
+
readonly checkType: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof V2CheckInfo
|
|
47
|
+
*/
|
|
48
|
+
readonly displayName: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof V2CheckInfo
|
|
53
|
+
*/
|
|
54
|
+
readonly description: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof V2CheckInfo
|
|
59
|
+
*/
|
|
60
|
+
readonly hasConfig: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* True for checks added automatically (e.g. as a dependency) - clients neither add nor configure these.
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof V2CheckInfo
|
|
65
|
+
*/
|
|
66
|
+
readonly isSystemManaged: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Other check types this check pulls in automatically when added.
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof V2CheckInfo
|
|
71
|
+
*/
|
|
72
|
+
readonly requiresChecks: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof V2CheckInfo
|
|
77
|
+
*/
|
|
78
|
+
readonly supportedCountriesOfWork: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<string>}
|
|
82
|
+
* @memberof V2CheckInfo
|
|
83
|
+
*/
|
|
84
|
+
readonly supportedCountriesOfResidence: Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {V2Money}
|
|
88
|
+
* @memberof V2CheckInfo
|
|
89
|
+
*/
|
|
90
|
+
readonly defaultPrice: V2Money | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Array<V2CheckField>}
|
|
94
|
+
* @memberof V2CheckInfo
|
|
95
|
+
*/
|
|
96
|
+
readonly configFields: Array<V2CheckField>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<V2CheckField>}
|
|
100
|
+
* @memberof V2CheckInfo
|
|
101
|
+
*/
|
|
102
|
+
readonly inputFields: Array<V2CheckField>;
|
|
103
|
+
/**
|
|
104
|
+
* Screening-level candidate facts this check needs (name, email, sometimes date of birth, etc.).
|
|
105
|
+
* @type {Array<V2CheckField>}
|
|
106
|
+
* @memberof V2CheckInfo
|
|
107
|
+
*/
|
|
108
|
+
readonly candidateFields: Array<V2CheckField>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the V2CheckInfo interface.
|
|
113
|
+
*/
|
|
114
|
+
export function instanceOfV2CheckInfo(value: any): value is V2CheckInfo {
|
|
115
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
116
|
+
if ((!('displayName' in value) && !('display_name' in value)) || (value['displayName'] === undefined && value['display_name'] === undefined)) return false;
|
|
117
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
118
|
+
if ((!('hasConfig' in value) && !('has_config' in value)) || (value['hasConfig'] === undefined && value['has_config'] === undefined)) return false;
|
|
119
|
+
if ((!('isSystemManaged' in value) && !('is_system_managed' in value)) || (value['isSystemManaged'] === undefined && value['is_system_managed'] === undefined)) return false;
|
|
120
|
+
if ((!('requiresChecks' in value) && !('requires_checks' in value)) || (value['requiresChecks'] === undefined && value['requires_checks'] === undefined)) return false;
|
|
121
|
+
if ((!('supportedCountriesOfWork' in value) && !('supported_countries_of_work' in value)) || (value['supportedCountriesOfWork'] === undefined && value['supported_countries_of_work'] === undefined)) return false;
|
|
122
|
+
if ((!('supportedCountriesOfResidence' in value) && !('supported_countries_of_residence' in value)) || (value['supportedCountriesOfResidence'] === undefined && value['supported_countries_of_residence'] === undefined)) return false;
|
|
123
|
+
if ((!('defaultPrice' in value) && !('default_price' in value)) || (value['defaultPrice'] === undefined && value['default_price'] === undefined)) return false;
|
|
124
|
+
if ((!('configFields' in value) && !('config_fields' in value)) || (value['configFields'] === undefined && value['config_fields'] === undefined)) return false;
|
|
125
|
+
if ((!('inputFields' in value) && !('input_fields' in value)) || (value['inputFields'] === undefined && value['input_fields'] === undefined)) return false;
|
|
126
|
+
if ((!('candidateFields' in value) && !('candidate_fields' in value)) || (value['candidateFields'] === undefined && value['candidate_fields'] === undefined)) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function V2CheckInfoFromJSON(json: any): V2CheckInfo {
|
|
131
|
+
return V2CheckInfoFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function V2CheckInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CheckInfo {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'checkType': json['check_type'],
|
|
141
|
+
'displayName': json['display_name'],
|
|
142
|
+
'description': json['description'],
|
|
143
|
+
'hasConfig': json['has_config'],
|
|
144
|
+
'isSystemManaged': json['is_system_managed'],
|
|
145
|
+
'requiresChecks': json['requires_checks'],
|
|
146
|
+
'supportedCountriesOfWork': json['supported_countries_of_work'],
|
|
147
|
+
'supportedCountriesOfResidence': json['supported_countries_of_residence'],
|
|
148
|
+
'defaultPrice': V2MoneyFromJSON(json['default_price']),
|
|
149
|
+
'configFields': ((json['config_fields'] as Array<any>).map(V2CheckFieldFromJSON)),
|
|
150
|
+
'inputFields': ((json['input_fields'] as Array<any>).map(V2CheckFieldFromJSON)),
|
|
151
|
+
'candidateFields': ((json['candidate_fields'] as Array<any>).map(V2CheckFieldFromJSON)),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function V2CheckInfoToJSON(json: any): V2CheckInfo {
|
|
156
|
+
return V2CheckInfoToJSONTyped(json, false);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function V2CheckInfoToJSONTyped(value?: Omit<V2CheckInfo, 'check_type'|'display_name'|'description'|'has_config'|'is_system_managed'|'requires_checks'|'supported_countries_of_work'|'supported_countries_of_residence'|'default_price'|'config_fields'|'input_fields'|'candidate_fields'> | null, ignoreDiscriminator: boolean = false): any {
|
|
160
|
+
if (value == null) {
|
|
161
|
+
return value;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return {
|
|
165
|
+
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pescheck API
|
|
5
|
+
* Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { V2DocumentContent } from './V2DocumentContent';
|
|
17
|
+
import {
|
|
18
|
+
V2DocumentContentFromJSON,
|
|
19
|
+
V2DocumentContentFromJSONTyped,
|
|
20
|
+
V2DocumentContentToJSON,
|
|
21
|
+
V2DocumentContentToJSONTyped,
|
|
22
|
+
} from './V2DocumentContent';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* One document attached to a screening's check. `metadata` carries
|
|
26
|
+
* check-specific extras and may be empty.
|
|
27
|
+
* @export
|
|
28
|
+
* @interface V2Document
|
|
29
|
+
*/
|
|
30
|
+
export interface V2Document {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof V2Document
|
|
35
|
+
*/
|
|
36
|
+
readonly checkId: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* * `addresscheck` - addresscheck
|
|
39
|
+
* * `adversemediacheck` - adversemediacheck
|
|
40
|
+
* * `bigcheck` - bigcheck
|
|
41
|
+
* * `criminalrecordscheck` - criminalrecordscheck
|
|
42
|
+
* * `criminalrecordsuploadcheck` - criminalrecordsuploadcheck
|
|
43
|
+
* * `customintegritycheck` - customintegritycheck
|
|
44
|
+
* * `cvcheck` - cvcheck
|
|
45
|
+
* * `edrcheck` - edrcheck
|
|
46
|
+
* * `focumcheck` - focumcheck
|
|
47
|
+
* * `id2check` - id2check
|
|
48
|
+
* * `idcheck` - idcheck
|
|
49
|
+
* * `integritycheck` - integritycheck
|
|
50
|
+
* * `openhealthcarecheck` - openhealthcarecheck
|
|
51
|
+
* * `permissioncheck` - permissioncheck
|
|
52
|
+
* * `pescheckadversemediacheck` - pescheckadversemediacheck
|
|
53
|
+
* * `qualificationcheck` - qualificationcheck
|
|
54
|
+
* * `righttoworkcheck` - righttoworkcheck
|
|
55
|
+
* * `vogcheck` - vogcheck
|
|
56
|
+
* * `watchlist2check` - watchlist2check
|
|
57
|
+
* * `watchlistcheck` - watchlistcheck
|
|
58
|
+
* * `workreferencecheck` - workreferencecheck
|
|
59
|
+
* * `worldwidecreditcheck` - worldwidecreditcheck
|
|
60
|
+
* @type {V2DocumentCheckTypeEnum}
|
|
61
|
+
* @memberof V2Document
|
|
62
|
+
*/
|
|
63
|
+
readonly checkType: V2DocumentCheckTypeEnum;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof V2Document
|
|
68
|
+
*/
|
|
69
|
+
readonly filename: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof V2Document
|
|
74
|
+
*/
|
|
75
|
+
readonly extension: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {V2DocumentContent}
|
|
79
|
+
* @memberof V2Document
|
|
80
|
+
*/
|
|
81
|
+
readonly content: V2DocumentContent;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {{ [key: string]: any; }}
|
|
85
|
+
* @memberof V2Document
|
|
86
|
+
*/
|
|
87
|
+
readonly metadata: { [key: string]: any; };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const V2DocumentCheckTypeEnum = {
|
|
95
|
+
Addresscheck: 'addresscheck',
|
|
96
|
+
Adversemediacheck: 'adversemediacheck',
|
|
97
|
+
Bigcheck: 'bigcheck',
|
|
98
|
+
Criminalrecordscheck: 'criminalrecordscheck',
|
|
99
|
+
Criminalrecordsuploadcheck: 'criminalrecordsuploadcheck',
|
|
100
|
+
Customintegritycheck: 'customintegritycheck',
|
|
101
|
+
Cvcheck: 'cvcheck',
|
|
102
|
+
Edrcheck: 'edrcheck',
|
|
103
|
+
Focumcheck: 'focumcheck',
|
|
104
|
+
Id2check: 'id2check',
|
|
105
|
+
Idcheck: 'idcheck',
|
|
106
|
+
Integritycheck: 'integritycheck',
|
|
107
|
+
Openhealthcarecheck: 'openhealthcarecheck',
|
|
108
|
+
Permissioncheck: 'permissioncheck',
|
|
109
|
+
Pescheckadversemediacheck: 'pescheckadversemediacheck',
|
|
110
|
+
Qualificationcheck: 'qualificationcheck',
|
|
111
|
+
Righttoworkcheck: 'righttoworkcheck',
|
|
112
|
+
Vogcheck: 'vogcheck',
|
|
113
|
+
Watchlist2check: 'watchlist2check',
|
|
114
|
+
Watchlistcheck: 'watchlistcheck',
|
|
115
|
+
Workreferencecheck: 'workreferencecheck',
|
|
116
|
+
Worldwidecreditcheck: 'worldwidecreditcheck'
|
|
117
|
+
} as const;
|
|
118
|
+
export type V2DocumentCheckTypeEnum = typeof V2DocumentCheckTypeEnum[keyof typeof V2DocumentCheckTypeEnum];
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the V2Document interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfV2Document(value: any): value is V2Document {
|
|
125
|
+
if ((!('checkId' in value) && !('check_id' in value)) || (value['checkId'] === undefined && value['check_id'] === undefined)) return false;
|
|
126
|
+
if ((!('checkType' in value) && !('check_type' in value)) || (value['checkType'] === undefined && value['check_type'] === undefined)) return false;
|
|
127
|
+
if (!('filename' in value) || value['filename'] === undefined) return false;
|
|
128
|
+
if (!('extension' in value) || value['extension'] === undefined) return false;
|
|
129
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
130
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function V2DocumentFromJSON(json: any): V2Document {
|
|
135
|
+
return V2DocumentFromJSONTyped(json, false);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function V2DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2Document {
|
|
139
|
+
if (json == null) {
|
|
140
|
+
return json;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'checkId': json['check_id'],
|
|
145
|
+
'checkType': json['check_type'],
|
|
146
|
+
'filename': json['filename'],
|
|
147
|
+
'extension': json['extension'],
|
|
148
|
+
'content': V2DocumentContentFromJSON(json['content']),
|
|
149
|
+
'metadata': json['metadata'],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function V2DocumentToJSON(json: any): V2Document {
|
|
154
|
+
return V2DocumentToJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function V2DocumentToJSONTyped(value?: Omit<V2Document, 'check_id'|'check_type'|'filename'|'extension'|'content'|'metadata'> | null, ignoreDiscriminator: boolean = false): any {
|
|
158
|
+
if (value == null) {
|
|
159
|
+
return value;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
* How the file is delivered. `type` is the discriminator; today it is always
|
|
18
|
+
* `"base64"` and `data` holds the encoded bytes. Other delivery types may be
|
|
19
|
+
* added later without breaking this contract.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface V2DocumentContent
|
|
22
|
+
*/
|
|
23
|
+
export interface V2DocumentContent {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof V2DocumentContent
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* Base64-encoded file contents (type == base64).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V2DocumentContent
|
|
34
|
+
*/
|
|
35
|
+
data?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the V2DocumentContent interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfV2DocumentContent(value: any): value is V2DocumentContent {
|
|
42
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function V2DocumentContentFromJSON(json: any): V2DocumentContent {
|
|
47
|
+
return V2DocumentContentFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function V2DocumentContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DocumentContent {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'type': json['type'],
|
|
57
|
+
'data': json['data'] == null ? undefined : json['data'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function V2DocumentContentToJSON(json: any): V2DocumentContent {
|
|
62
|
+
return V2DocumentContentToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function V2DocumentContentToJSONTyped(value?: V2DocumentContent | null, ignoreDiscriminator: boolean = false): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'type': value['type'],
|
|
73
|
+
'data': value['data'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 V2Money
|
|
20
|
+
*/
|
|
21
|
+
export interface V2Money {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V2Money
|
|
26
|
+
*/
|
|
27
|
+
amount: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof V2Money
|
|
32
|
+
*/
|
|
33
|
+
currency: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the V2Money interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfV2Money(value: any): value is V2Money {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function V2MoneyFromJSON(json: any): V2Money {
|
|
46
|
+
return V2MoneyFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function V2MoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2Money {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currency': json['currency'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function V2MoneyToJSON(json: any): V2Money {
|
|
61
|
+
return V2MoneyToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function V2MoneyToJSONTyped(value?: V2Money | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'amount': value['amount'],
|
|
72
|
+
'currency': value['currency'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|