@risika/api-response-types 1.1.0
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/README.md +20 -0
- package/account/counter/decrement.ts +11 -0
- package/account/credit_policy/get.ts +62 -0
- package/account/credit_policy/get_active_countries.ts +11 -0
- package/account/credit_policy/set.ts +11 -0
- package/account/enterprise_credit_policies/create.ts +12 -0
- package/account/enterprise_credit_policies/evaluate.ts +106 -0
- package/account/enterprise_credit_policies/evaluate_monitoring_list.ts +96 -0
- package/account/enterprise_credit_policies/remove.ts +11 -0
- package/account/enterprise_credit_policies/schema/policy.ts +142 -0
- package/account/enterprise_credit_policies/support/outputs_table.ts +13 -0
- package/account/enterprise_credit_policies/support/rules_table.ts +14 -0
- package/account/enterprise_credit_policies/support/variables.ts +72 -0
- package/account/enterprise_credit_policies/update.ts +19 -0
- package/account/enterprise_credit_policies/validate.ts +17 -0
- package/account/enterprise_credit_policies.ts +35 -0
- package/account/index.ts +21 -0
- package/account/notes/add.ts +17 -0
- package/account/notes/get.ts +17 -0
- package/account/notes/list.ts +33 -0
- package/account/notes/remove.ts +11 -0
- package/account/status.ts +131 -0
- package/company/alike.ts +208 -0
- package/company/basics.ts +202 -0
- package/company/basics_list.ts +208 -0
- package/company/ean.ts +14 -0
- package/company/employees.ts +15 -0
- package/company/events/payment_remarks.ts +25 -0
- package/company/events.ts +46 -0
- package/company/hierarchy/child.ts +67 -0
- package/company/hierarchy/node.ts +97 -0
- package/company/hierarchy/parent.ts +67 -0
- package/company/hierarchy/single.ts +37 -0
- package/company/hierarchy/summary.ts +25 -0
- package/company/hierarchy/walkdown.ts +101 -0
- package/company/hierarchy/walkup.ts +101 -0
- package/company/history.ts +39 -0
- package/company/index.ts +20 -0
- package/company/operating.ts +29 -0
- package/company/owners.ts +20 -0
- package/company/production_unit.ts +39 -0
- package/company/relations.ts +65 -0
- package/convert_currency.ts +11 -0
- package/export/company.ts +85 -0
- package/export/index.ts +2 -0
- package/financial/index.ts +5 -0
- package/financial/numbers.ts +87 -0
- package/financial/performance.ts +35 -0
- package/financial/ratios.ts +37 -0
- package/financial/stats.ts +35 -0
- package/fraud_policy/fraud_indicators_get.ts +24 -0
- package/fraud_policy/get.ts +25 -0
- package/fraud_policy/index.ts +5 -0
- package/fraud_policy/set.ts +11 -0
- package/fraud_policy/set_request.ts +14 -0
- package/highlights.ts +67 -0
- package/index.ts +21 -0
- package/last_update.ts +44 -0
- package/list/api_versions.ts +9 -0
- package/list/auditors.ts +13 -0
- package/list/cities.ts +13 -0
- package/list/company_statuses.ts +13 -0
- package/list/company_types.ts +13 -0
- package/list/currencies.ts +11 -0
- package/list/employee_interval.ts +13 -0
- package/list/highlights.ts +16 -0
- package/list/index.ts +15 -0
- package/list/industries.ts +25 -0
- package/list/municipalities.ts +13 -0
- package/list/policy_outcomes.ts +14 -0
- package/list/policy_violations.ts +14 -0
- package/list/regions.ts +19 -0
- package/list/zipcodes.ts +13 -0
- package/liveness.ts +11 -0
- package/monitor/add.ts +17 -0
- package/monitor/export.ts +212 -0
- package/monitor/extract.ts +46 -0
- package/monitor/index.ts +20 -0
- package/monitor/list/add.ts +11 -0
- package/monitor/list/most_relevant.ts +51 -0
- package/monitor/list/most_relevant_list.ts +9 -0
- package/monitor/list/policy_violations.ts +32 -0
- package/monitor/list/remove.ts +11 -0
- package/monitor/list/rename.ts +11 -0
- package/monitor/list/show.ts +20 -0
- package/monitor/list/statistics/aggregated_highlights.ts +16 -0
- package/monitor/list/statistics/category.ts +50 -0
- package/monitor/list/statistics/compliance.ts +49 -0
- package/monitor/list/statistics/timeline.ts +43 -0
- package/monitor/list/visibility.ts +11 -0
- package/monitor/list.ts +212 -0
- package/monitor/listpaged.ts +219 -0
- package/monitor/remove.ts +17 -0
- package/monitor/verify.ts +12 -0
- package/package.json +1 -0
- package/person/index.ts +3 -0
- package/person/relations.ts +68 -0
- package/person/relations_list.ts +20 -0
- package/phone_numbers.ts +23 -0
- package/rating/credit/override.ts +17 -0
- package/rating/credit.ts +13 -0
- package/rating/index.ts +4 -0
- package/rating/scores.ts +26 -0
- package/readiness.ts +11 -0
- package/registration/debt.ts +54 -0
- package/registration/index.ts +3 -0
- package/registration/properties.ts +91 -0
- package/search/company.ts +74 -0
- package/search/index.ts +4 -0
- package/search/person.ts +22 -0
- package/search/production_units.ts +38 -0
- package/statistics/company_visits/list.ts +29 -0
- package/statistics/company_visits/register.ts +11 -0
- package/statistics/company_visits/summary.ts +18 -0
- package/statistics/index.ts +6 -0
- package/statistics/person_visits/list.ts +20 -0
- package/statistics/person_visits/register.ts +11 -0
- package/test/exception.ts +11 -0
- package/test/index.ts +2 -0
- package/validate/index.ts +2 -0
- package/validate/local_id.ts +21 -0
package/monitor/list.ts
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type SecondaryIndustryObject = {
|
|
10
|
+
group_name: string | null;
|
|
11
|
+
industry_code: string | null;
|
|
12
|
+
industry_description: string | null;
|
|
13
|
+
isic: NaseOrIsic;
|
|
14
|
+
nace: NaseOrIsic;
|
|
15
|
+
priority: number;
|
|
16
|
+
section: string | null;
|
|
17
|
+
}[];
|
|
18
|
+
export type ListOfMonitoringEvents = MonitorEvent[];
|
|
19
|
+
export type Highlights = (
|
|
20
|
+
| null
|
|
21
|
+
| {}
|
|
22
|
+
| {
|
|
23
|
+
url: string;
|
|
24
|
+
latest_control: number;
|
|
25
|
+
latest_control_date: string;
|
|
26
|
+
local_production_unit: {};
|
|
27
|
+
}[]
|
|
28
|
+
| {
|
|
29
|
+
personal_id: string;
|
|
30
|
+
local_id: string[];
|
|
31
|
+
}[]
|
|
32
|
+
| {
|
|
33
|
+
status: string | null;
|
|
34
|
+
valid_from: string | null;
|
|
35
|
+
valid_to: string | null;
|
|
36
|
+
}[]
|
|
37
|
+
)[];
|
|
38
|
+
|
|
39
|
+
export interface CompanyMonitorListAllSchema {
|
|
40
|
+
monitor_list: {
|
|
41
|
+
local_organization_id: LocalOrganizationId;
|
|
42
|
+
internal_id?: string | null;
|
|
43
|
+
company_name: string;
|
|
44
|
+
status: string | null;
|
|
45
|
+
status_code: string | null;
|
|
46
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
47
|
+
credit_max: number;
|
|
48
|
+
address: Address;
|
|
49
|
+
financial_key_figures: FinancialKeyFigures;
|
|
50
|
+
industry_code: string | null;
|
|
51
|
+
industries?: Industries;
|
|
52
|
+
employee_interval: string | null;
|
|
53
|
+
employees_number?: number | number | null;
|
|
54
|
+
company_type: string | null;
|
|
55
|
+
date_of_incorporation: string | null;
|
|
56
|
+
email?: string | null;
|
|
57
|
+
phone_number?: string | null;
|
|
58
|
+
webpage?: string | null;
|
|
59
|
+
capital?: number | null;
|
|
60
|
+
changes: ListOfMonitoringEvents | null;
|
|
61
|
+
credit_policy: null | CreditPolicyTrue | CreditPolicyFalse;
|
|
62
|
+
risk_assessment: string | null;
|
|
63
|
+
risk_assessment_code: null | (("LOW" | "MEDIUM" | "HIGH") | null);
|
|
64
|
+
highlights?: Highlights;
|
|
65
|
+
employment_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
|
|
66
|
+
equity_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
|
|
67
|
+
profit_loss_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
|
|
68
|
+
fraud_indicators_count?: number | null;
|
|
69
|
+
}[];
|
|
70
|
+
count?: number;
|
|
71
|
+
}
|
|
72
|
+
export interface LocalOrganizationId {
|
|
73
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
74
|
+
id: string | null;
|
|
75
|
+
hash?: string | null;
|
|
76
|
+
}
|
|
77
|
+
export interface Address {
|
|
78
|
+
city: string | null;
|
|
79
|
+
coname: null | string;
|
|
80
|
+
number: string | null;
|
|
81
|
+
street: string | null;
|
|
82
|
+
country: string | null;
|
|
83
|
+
zipcode: number | string | null;
|
|
84
|
+
municipality: string | null;
|
|
85
|
+
postdistrict: string | null;
|
|
86
|
+
}
|
|
87
|
+
export interface FinancialKeyFigures {
|
|
88
|
+
currency: string;
|
|
89
|
+
equity: number | number | null;
|
|
90
|
+
profit_loss: number | number | null;
|
|
91
|
+
solidity: number | number | null;
|
|
92
|
+
short_term_debt: number | number | null;
|
|
93
|
+
long_term_debt: number | number | null;
|
|
94
|
+
ebitda: number | number | null;
|
|
95
|
+
ebit: number | number | null;
|
|
96
|
+
ordinary_profit: number | number | null;
|
|
97
|
+
short_term_trade_payables: number | number | null;
|
|
98
|
+
short_term_receivables_from_sales_and_services: number | number | null;
|
|
99
|
+
}
|
|
100
|
+
export interface Industries {
|
|
101
|
+
main_industry?: null | IndustryObject;
|
|
102
|
+
secondary_industry_codes?: null | SecondaryIndustryObject;
|
|
103
|
+
}
|
|
104
|
+
export interface IndustryObject {
|
|
105
|
+
code: string | null;
|
|
106
|
+
description: string | null;
|
|
107
|
+
isic: NaseOrIsic;
|
|
108
|
+
nace: NaseOrIsic;
|
|
109
|
+
section: string | null;
|
|
110
|
+
}
|
|
111
|
+
export interface NaseOrIsic {
|
|
112
|
+
code: string | null;
|
|
113
|
+
section: string | null;
|
|
114
|
+
description: string | null;
|
|
115
|
+
}
|
|
116
|
+
export interface MonitorEvent {
|
|
117
|
+
new: Event;
|
|
118
|
+
old?: Event;
|
|
119
|
+
date?: string | string;
|
|
120
|
+
registration_date?: string;
|
|
121
|
+
sentence: string;
|
|
122
|
+
type: string;
|
|
123
|
+
weight: number;
|
|
124
|
+
}
|
|
125
|
+
export interface Event {
|
|
126
|
+
valid_from?: string | null;
|
|
127
|
+
valid_to?: string | null;
|
|
128
|
+
value?:
|
|
129
|
+
| ScoreModel
|
|
130
|
+
| string
|
|
131
|
+
| number
|
|
132
|
+
| null
|
|
133
|
+
| {
|
|
134
|
+
entity_id?: string;
|
|
135
|
+
function?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
export interface ScoreModel {
|
|
140
|
+
date?: string | null;
|
|
141
|
+
probability_of_distress: number | null;
|
|
142
|
+
risk_assessment: string | null;
|
|
143
|
+
risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
144
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
145
|
+
}
|
|
146
|
+
export interface CreditPolicyTrue {
|
|
147
|
+
allowed: true;
|
|
148
|
+
/**
|
|
149
|
+
* @maxItems 0
|
|
150
|
+
*/
|
|
151
|
+
conflicts: [];
|
|
152
|
+
}
|
|
153
|
+
export interface CreditPolicyFalse {
|
|
154
|
+
allowed: false;
|
|
155
|
+
/**
|
|
156
|
+
* @minItems 1
|
|
157
|
+
*/
|
|
158
|
+
conflicts: [
|
|
159
|
+
{
|
|
160
|
+
code:
|
|
161
|
+
| "POLICY_RISIKA_SCORE"
|
|
162
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
163
|
+
| "POLICY_COMPANY_TYPE"
|
|
164
|
+
| "POLICY_INDUSTRY"
|
|
165
|
+
| "POLICY_BANKRUPTCIES"
|
|
166
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
167
|
+
| "POLICY_AGE"
|
|
168
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
169
|
+
| "POLICY_LOCAL_ID"
|
|
170
|
+
| "POLICY_ENTITY_ID"
|
|
171
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
172
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
173
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
174
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
175
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
176
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
177
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
178
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
179
|
+
| "POLICY_DEBT"
|
|
180
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
181
|
+
| "POLICY_PROFIT_LOSS"
|
|
182
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
183
|
+
text: string;
|
|
184
|
+
},
|
|
185
|
+
...{
|
|
186
|
+
code:
|
|
187
|
+
| "POLICY_RISIKA_SCORE"
|
|
188
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
189
|
+
| "POLICY_COMPANY_TYPE"
|
|
190
|
+
| "POLICY_INDUSTRY"
|
|
191
|
+
| "POLICY_BANKRUPTCIES"
|
|
192
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
193
|
+
| "POLICY_AGE"
|
|
194
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
195
|
+
| "POLICY_LOCAL_ID"
|
|
196
|
+
| "POLICY_ENTITY_ID"
|
|
197
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
198
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
199
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
200
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
201
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
202
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
203
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
204
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
205
|
+
| "POLICY_DEBT"
|
|
206
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
207
|
+
| "POLICY_PROFIT_LOSS"
|
|
208
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
209
|
+
text: string;
|
|
210
|
+
}[]
|
|
211
|
+
];
|
|
212
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type SecondaryIndustryObject = {
|
|
10
|
+
group_name: string | null;
|
|
11
|
+
industry_code: string | null;
|
|
12
|
+
industry_description: string | null;
|
|
13
|
+
isic: NaseOrIsic;
|
|
14
|
+
nace: NaseOrIsic;
|
|
15
|
+
priority: number;
|
|
16
|
+
section: string | null;
|
|
17
|
+
}[];
|
|
18
|
+
export type ListOfMonitoringEvents = MonitorEvent[];
|
|
19
|
+
export type Highlights = (
|
|
20
|
+
| null
|
|
21
|
+
| {}
|
|
22
|
+
| {
|
|
23
|
+
url: string;
|
|
24
|
+
latest_control: number;
|
|
25
|
+
latest_control_date: string;
|
|
26
|
+
local_production_unit: {};
|
|
27
|
+
}[]
|
|
28
|
+
| {
|
|
29
|
+
personal_id: string;
|
|
30
|
+
local_id: string[];
|
|
31
|
+
}[]
|
|
32
|
+
| {
|
|
33
|
+
status: string | null;
|
|
34
|
+
valid_from: string | null;
|
|
35
|
+
valid_to: string | null;
|
|
36
|
+
}[]
|
|
37
|
+
)[];
|
|
38
|
+
|
|
39
|
+
export interface Listpaged {
|
|
40
|
+
data?: {
|
|
41
|
+
local_organization_id: LocalOrganizationId;
|
|
42
|
+
internal_id?: string | null;
|
|
43
|
+
company_name: string;
|
|
44
|
+
status: string;
|
|
45
|
+
status_code: string;
|
|
46
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
47
|
+
credit_max: number;
|
|
48
|
+
address: Address;
|
|
49
|
+
financial_key_figures: FinancialKeyFigures;
|
|
50
|
+
industry_code: string;
|
|
51
|
+
industries?: Industries;
|
|
52
|
+
employee_interval: string | null;
|
|
53
|
+
employees_number?: number | number | null;
|
|
54
|
+
company_type: string;
|
|
55
|
+
date_of_incorporation: string | null;
|
|
56
|
+
email?: string | null;
|
|
57
|
+
phone_number?: string | null;
|
|
58
|
+
webpage?: string | null;
|
|
59
|
+
capital?: number | null;
|
|
60
|
+
changes: null | ListOfMonitoringEvents;
|
|
61
|
+
credit_policy: null | CreditPolicyTrue | CreditPolicyFalse;
|
|
62
|
+
risk_assessment: string | null;
|
|
63
|
+
risk_assessment_code: null | (("LOW" | "MEDIUM" | "HIGH") | null);
|
|
64
|
+
highlights?: Highlights;
|
|
65
|
+
employment_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
|
|
66
|
+
equity_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
|
|
67
|
+
profit_loss_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
|
|
68
|
+
credit_policy_credit_max?: null | {
|
|
69
|
+
value?: null | number;
|
|
70
|
+
policy_currency?: string | null;
|
|
71
|
+
};
|
|
72
|
+
credit_automator_result?: ("no_policy_set" | "approved" | "manual_check" | "reject" | "do_not_evaluate") | null;
|
|
73
|
+
fraud_indicators_count?: number | null;
|
|
74
|
+
}[];
|
|
75
|
+
page_count?: number;
|
|
76
|
+
count?: number;
|
|
77
|
+
credit_policy_used?: "credit_automator" | "credit_policy";
|
|
78
|
+
}
|
|
79
|
+
export interface LocalOrganizationId {
|
|
80
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
81
|
+
id: string | null;
|
|
82
|
+
hash?: string | null;
|
|
83
|
+
}
|
|
84
|
+
export interface Address {
|
|
85
|
+
city: string | null;
|
|
86
|
+
coname: null | string;
|
|
87
|
+
number: string | null;
|
|
88
|
+
street: string | null;
|
|
89
|
+
country: string | null;
|
|
90
|
+
zipcode: number | string | null;
|
|
91
|
+
municipality: string | null;
|
|
92
|
+
postdistrict: string | null;
|
|
93
|
+
}
|
|
94
|
+
export interface FinancialKeyFigures {
|
|
95
|
+
currency: string;
|
|
96
|
+
equity: number | number | null;
|
|
97
|
+
profit_loss: number | number | null;
|
|
98
|
+
solidity: number | number | null;
|
|
99
|
+
short_term_debt: number | number | null;
|
|
100
|
+
long_term_debt: number | number | null;
|
|
101
|
+
ebitda: number | number | null;
|
|
102
|
+
ebit: number | number | null;
|
|
103
|
+
ordinary_profit: number | number | null;
|
|
104
|
+
short_term_trade_payables: number | number | null;
|
|
105
|
+
short_term_receivables_from_sales_and_services: number | number | null;
|
|
106
|
+
}
|
|
107
|
+
export interface Industries {
|
|
108
|
+
main_industry?: null | IndustryObject;
|
|
109
|
+
secondary_industry_codes?: null | SecondaryIndustryObject;
|
|
110
|
+
}
|
|
111
|
+
export interface IndustryObject {
|
|
112
|
+
code: string | null;
|
|
113
|
+
description: string | null;
|
|
114
|
+
isic: NaseOrIsic;
|
|
115
|
+
nace: NaseOrIsic;
|
|
116
|
+
section: string | null;
|
|
117
|
+
}
|
|
118
|
+
export interface NaseOrIsic {
|
|
119
|
+
code: string | null;
|
|
120
|
+
section: string | null;
|
|
121
|
+
description: string | null;
|
|
122
|
+
}
|
|
123
|
+
export interface MonitorEvent {
|
|
124
|
+
new: Event;
|
|
125
|
+
old?: Event;
|
|
126
|
+
date?: string | string;
|
|
127
|
+
registration_date?: string;
|
|
128
|
+
sentence: string;
|
|
129
|
+
type: string;
|
|
130
|
+
weight: number;
|
|
131
|
+
}
|
|
132
|
+
export interface Event {
|
|
133
|
+
valid_from?: string | null;
|
|
134
|
+
valid_to?: string | null;
|
|
135
|
+
value?:
|
|
136
|
+
| ScoreModel
|
|
137
|
+
| string
|
|
138
|
+
| number
|
|
139
|
+
| null
|
|
140
|
+
| {
|
|
141
|
+
entity_id?: string;
|
|
142
|
+
function?: string;
|
|
143
|
+
name?: string;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export interface ScoreModel {
|
|
147
|
+
date?: string | null;
|
|
148
|
+
probability_of_distress: number | null;
|
|
149
|
+
risk_assessment: string | null;
|
|
150
|
+
risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
151
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
152
|
+
}
|
|
153
|
+
export interface CreditPolicyTrue {
|
|
154
|
+
allowed: true;
|
|
155
|
+
/**
|
|
156
|
+
* @maxItems 0
|
|
157
|
+
*/
|
|
158
|
+
conflicts: [];
|
|
159
|
+
}
|
|
160
|
+
export interface CreditPolicyFalse {
|
|
161
|
+
allowed: false;
|
|
162
|
+
/**
|
|
163
|
+
* @minItems 1
|
|
164
|
+
*/
|
|
165
|
+
conflicts: [
|
|
166
|
+
{
|
|
167
|
+
code:
|
|
168
|
+
| "POLICY_RISIKA_SCORE"
|
|
169
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
170
|
+
| "POLICY_COMPANY_TYPE"
|
|
171
|
+
| "POLICY_INDUSTRY"
|
|
172
|
+
| "POLICY_BANKRUPTCIES"
|
|
173
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
174
|
+
| "POLICY_AGE"
|
|
175
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
176
|
+
| "POLICY_LOCAL_ID"
|
|
177
|
+
| "POLICY_ENTITY_ID"
|
|
178
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
179
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
180
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
181
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
182
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
183
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
184
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
185
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
186
|
+
| "POLICY_DEBT"
|
|
187
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
188
|
+
| "POLICY_PROFIT_LOSS"
|
|
189
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
190
|
+
text: string;
|
|
191
|
+
},
|
|
192
|
+
...{
|
|
193
|
+
code:
|
|
194
|
+
| "POLICY_RISIKA_SCORE"
|
|
195
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
196
|
+
| "POLICY_COMPANY_TYPE"
|
|
197
|
+
| "POLICY_INDUSTRY"
|
|
198
|
+
| "POLICY_BANKRUPTCIES"
|
|
199
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
200
|
+
| "POLICY_AGE"
|
|
201
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
202
|
+
| "POLICY_LOCAL_ID"
|
|
203
|
+
| "POLICY_ENTITY_ID"
|
|
204
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
205
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
206
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
207
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
208
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
209
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
210
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
211
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
212
|
+
| "POLICY_DEBT"
|
|
213
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
214
|
+
| "POLICY_PROFIT_LOSS"
|
|
215
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
216
|
+
text: string;
|
|
217
|
+
}[]
|
|
218
|
+
];
|
|
219
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type RejectedLocalIdsOld = (
|
|
10
|
+
| string
|
|
11
|
+
| ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk")
|
|
12
|
+
)[][];
|
|
13
|
+
|
|
14
|
+
export interface Remove {
|
|
15
|
+
status: "ok";
|
|
16
|
+
rejected: RejectedLocalIdsOld;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface Verify {
|
|
10
|
+
monitoring?: boolean;
|
|
11
|
+
list_id?: number[];
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@risika/api-response-types","version":"1.1.0","main":"index.js","license":"MIT","type":"module"}
|
package/person/index.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface Relations {
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
relations: {
|
|
13
|
+
local_organization_id: null | LocalOrganizationId;
|
|
14
|
+
company_type: {
|
|
15
|
+
short: null | string;
|
|
16
|
+
long: string;
|
|
17
|
+
};
|
|
18
|
+
company_status_code: string;
|
|
19
|
+
company_status: string;
|
|
20
|
+
company_name: string;
|
|
21
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
22
|
+
risk_assessment: string | null;
|
|
23
|
+
risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
24
|
+
functions: PersonFunction[];
|
|
25
|
+
}[];
|
|
26
|
+
address: {
|
|
27
|
+
city: string | null;
|
|
28
|
+
coname?: string | null;
|
|
29
|
+
number: string | null;
|
|
30
|
+
street: string | null;
|
|
31
|
+
country: string | null;
|
|
32
|
+
zipcode: number | null | string;
|
|
33
|
+
municipality: string | null;
|
|
34
|
+
postdistrict: string | null;
|
|
35
|
+
};
|
|
36
|
+
local_organization_id: null | LocalOrganizationId;
|
|
37
|
+
politically_exposed_persons: null | Pep;
|
|
38
|
+
}
|
|
39
|
+
export interface LocalOrganizationId {
|
|
40
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
41
|
+
id: string | null;
|
|
42
|
+
hash?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface PersonFunction {
|
|
45
|
+
function: string;
|
|
46
|
+
valid_from: string | null;
|
|
47
|
+
valid_to: string | null;
|
|
48
|
+
title: string;
|
|
49
|
+
shares_interval?: string | null;
|
|
50
|
+
shares?: number | null;
|
|
51
|
+
share_of_ownership_percentage?: string | number | null;
|
|
52
|
+
shares_owned?: number | null;
|
|
53
|
+
total_shares?: number | null;
|
|
54
|
+
voting_rights?: null | string;
|
|
55
|
+
voting_rights_interval?: null | string;
|
|
56
|
+
}
|
|
57
|
+
export interface Pep {
|
|
58
|
+
date_added_to_pep: string | null;
|
|
59
|
+
description: string;
|
|
60
|
+
description_code: string;
|
|
61
|
+
duties:
|
|
62
|
+
| []
|
|
63
|
+
| [
|
|
64
|
+
{
|
|
65
|
+
[k: string]: unknown;
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type RelationsList = {
|
|
10
|
+
entity_id: number | string;
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
local_organization_id: null | LocalOrganizationId;
|
|
14
|
+
}[];
|
|
15
|
+
|
|
16
|
+
export interface LocalOrganizationId {
|
|
17
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
18
|
+
id: string | null;
|
|
19
|
+
hash?: string | null;
|
|
20
|
+
}
|
package/phone_numbers.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface PhoneNumbers {
|
|
10
|
+
accepted: {
|
|
11
|
+
/**
|
|
12
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
13
|
+
* via the `patternProperty` "^.*$".
|
|
14
|
+
*/
|
|
15
|
+
[k: string]: {
|
|
16
|
+
business: null | boolean;
|
|
17
|
+
in_service: null | boolean;
|
|
18
|
+
phone_number: string;
|
|
19
|
+
prepaid: null | boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
rejected: string[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type Override = {
|
|
10
|
+
local_id?: string;
|
|
11
|
+
override_outcome?: string | null;
|
|
12
|
+
override_status?: string | null;
|
|
13
|
+
override_credit_limit?: string | null;
|
|
14
|
+
override_currency?: string | null;
|
|
15
|
+
feedback?: string | null;
|
|
16
|
+
override_review_date?: string | null;
|
|
17
|
+
}[];
|
package/rating/credit.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface Credit {
|
|
10
|
+
upfront: number | null;
|
|
11
|
+
credit_days: number | null;
|
|
12
|
+
credit_max: number | null;
|
|
13
|
+
}
|
package/rating/index.ts
ADDED
package/rating/scores.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export type FeatureList = {
|
|
10
|
+
feature: string;
|
|
11
|
+
}[];
|
|
12
|
+
export type Scores = {
|
|
13
|
+
date: string;
|
|
14
|
+
error: string | null;
|
|
15
|
+
probability_of_distress: number | null;
|
|
16
|
+
risk_assessment: string | null;
|
|
17
|
+
risk_assessment_code: null | (("LOW" | "MEDIUM" | "HIGH") | null);
|
|
18
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
19
|
+
score_information: null | {
|
|
20
|
+
high_positive_impact: FeatureList;
|
|
21
|
+
moderate_positive_impact: FeatureList;
|
|
22
|
+
minor_impact: FeatureList;
|
|
23
|
+
moderate_negative_impact: FeatureList;
|
|
24
|
+
high_negative_impact: FeatureList;
|
|
25
|
+
};
|
|
26
|
+
}[];
|
package/readiness.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface Readiness {
|
|
10
|
+
status: "OK";
|
|
11
|
+
}
|