@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
|
@@ -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 Add {
|
|
15
|
+
status: "ok";
|
|
16
|
+
rejected: RejectedLocalIdsOld;
|
|
17
|
+
}
|
|
@@ -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 interface Get {
|
|
10
|
+
_phone_number?: string;
|
|
11
|
+
_internal_id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* This interface was referenced by `Get`'s JSON-Schema definition
|
|
14
|
+
* via the `patternProperty` "^.*$".
|
|
15
|
+
*/
|
|
16
|
+
[k: string]: string | number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 List {
|
|
10
|
+
rows?: {
|
|
11
|
+
from?: number;
|
|
12
|
+
to?: number;
|
|
13
|
+
};
|
|
14
|
+
count?: number;
|
|
15
|
+
notes?: {
|
|
16
|
+
local_organization_id?: LocalOrganizationId;
|
|
17
|
+
data?: Get;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export interface LocalOrganizationId {
|
|
21
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
22
|
+
id: string | null;
|
|
23
|
+
hash?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface Get {
|
|
26
|
+
_phone_number?: string;
|
|
27
|
+
_internal_id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* This interface was referenced by `Get`'s JSON-Schema definition
|
|
30
|
+
* via the `patternProperty` "^.*$".
|
|
31
|
+
*/
|
|
32
|
+
[k: string]: string | number;
|
|
33
|
+
}
|
|
@@ -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 Remove {
|
|
10
|
+
status: "ok";
|
|
11
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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 Status {
|
|
10
|
+
caps: {
|
|
11
|
+
credit_policy: {
|
|
12
|
+
exclude_companies: number;
|
|
13
|
+
exclude_persons: number;
|
|
14
|
+
};
|
|
15
|
+
credit_ratings: number;
|
|
16
|
+
credit_reports: number;
|
|
17
|
+
lookups: number;
|
|
18
|
+
monitoring_count: number;
|
|
19
|
+
monitoring_exports: number;
|
|
20
|
+
search_exports: number;
|
|
21
|
+
};
|
|
22
|
+
counters: RestrictionCounters;
|
|
23
|
+
legacy_rights: {
|
|
24
|
+
allow_api: boolean;
|
|
25
|
+
allow_basic: boolean;
|
|
26
|
+
allow_browser_extension: boolean;
|
|
27
|
+
allow_company_export: boolean;
|
|
28
|
+
allow_company_search: boolean;
|
|
29
|
+
allow_countries: (
|
|
30
|
+
| "DK"
|
|
31
|
+
| "SE"
|
|
32
|
+
| "NO"
|
|
33
|
+
| "FI"
|
|
34
|
+
| "FO"
|
|
35
|
+
| "DE"
|
|
36
|
+
| "UK"
|
|
37
|
+
| "dk"
|
|
38
|
+
| "se"
|
|
39
|
+
| "no"
|
|
40
|
+
| "fi"
|
|
41
|
+
| "fo"
|
|
42
|
+
| "de"
|
|
43
|
+
| "uk"
|
|
44
|
+
)[];
|
|
45
|
+
allow_credit: boolean;
|
|
46
|
+
allow_credit_policy: (
|
|
47
|
+
| "exclude_risika_scores"
|
|
48
|
+
| "exclude_company_types"
|
|
49
|
+
| "exclude_level_of_auditor_assistances"
|
|
50
|
+
| "exclude_industries"
|
|
51
|
+
| "exclude_companies"
|
|
52
|
+
| "exclude_persons"
|
|
53
|
+
| "exclude_vat"
|
|
54
|
+
| "bankruptcy_limit"
|
|
55
|
+
| "bankruptcy_limit_long"
|
|
56
|
+
| "age_limit"
|
|
57
|
+
| "negative_equity_limit"
|
|
58
|
+
| "prepaid_phone_number"
|
|
59
|
+
| "phone_number_registry"
|
|
60
|
+
| "distance_to_ceo"
|
|
61
|
+
| "auditor_has_id"
|
|
62
|
+
| "payment_remarks_count"
|
|
63
|
+
| "payment_remarks_creditors"
|
|
64
|
+
| "payment_remarks_total_amount"
|
|
65
|
+
| "payment_remarks_max_repayment_time"
|
|
66
|
+
| "debt"
|
|
67
|
+
| "short_term_debt"
|
|
68
|
+
| "profit_loss"
|
|
69
|
+
| "number_of_employees"
|
|
70
|
+
)[];
|
|
71
|
+
allow_ean: boolean;
|
|
72
|
+
allow_financial: boolean;
|
|
73
|
+
allow_hierarchy: boolean;
|
|
74
|
+
allow_highlights: boolean;
|
|
75
|
+
allow_monitoring: boolean;
|
|
76
|
+
allow_monitoring_export: boolean;
|
|
77
|
+
allow_notes: boolean;
|
|
78
|
+
allow_pdf_reports: boolean;
|
|
79
|
+
allow_person_export: boolean;
|
|
80
|
+
allow_person_search: boolean;
|
|
81
|
+
allow_relations: boolean;
|
|
82
|
+
search_exports_limit: number;
|
|
83
|
+
tier: number;
|
|
84
|
+
};
|
|
85
|
+
max_users: number;
|
|
86
|
+
rights: RestrictionRights;
|
|
87
|
+
subscription_plan: "PRO" | "ENTERPRISE" | "TRIAl" | "FREEMIUM" | "TRIAL_V2" | "BASIC" | "STANDARD";
|
|
88
|
+
}
|
|
89
|
+
export interface RestrictionCounters {
|
|
90
|
+
credit_policy: {
|
|
91
|
+
DK?: ExclusionObject;
|
|
92
|
+
FI?: ExclusionObject;
|
|
93
|
+
NO?: ExclusionObject;
|
|
94
|
+
SE?: ExclusionObject;
|
|
95
|
+
UK?: ExclusionObject;
|
|
96
|
+
DE?: ExclusionObject;
|
|
97
|
+
};
|
|
98
|
+
credit_ratings: number;
|
|
99
|
+
credit_reports: number;
|
|
100
|
+
lookups: number;
|
|
101
|
+
monitoring_count: number;
|
|
102
|
+
monitoring_exports: number;
|
|
103
|
+
search_exports: number;
|
|
104
|
+
}
|
|
105
|
+
export interface ExclusionObject {
|
|
106
|
+
exclude_companies: number;
|
|
107
|
+
exclude_persons: number;
|
|
108
|
+
}
|
|
109
|
+
export interface RestrictionRights {
|
|
110
|
+
DE: ScoreModels;
|
|
111
|
+
DK: ScoreModels;
|
|
112
|
+
FI: ScoreModels;
|
|
113
|
+
NO: ScoreModels;
|
|
114
|
+
SE: ScoreModels;
|
|
115
|
+
UK: ScoreModels;
|
|
116
|
+
global: {
|
|
117
|
+
enterprise_credit_policy: boolean;
|
|
118
|
+
observational_lists: boolean;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export interface ScoreModels {
|
|
122
|
+
score_models: (
|
|
123
|
+
| {
|
|
124
|
+
explanation: boolean;
|
|
125
|
+
model: "BOHR";
|
|
126
|
+
}
|
|
127
|
+
| {
|
|
128
|
+
model: "NEWTON";
|
|
129
|
+
}
|
|
130
|
+
)[];
|
|
131
|
+
}
|
package/company/alike.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
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 Basics = (
|
|
10
|
+
| {
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
| {
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
) & {
|
|
17
|
+
address?: {
|
|
18
|
+
city: string | null;
|
|
19
|
+
coname?: string | null;
|
|
20
|
+
coordinates: {
|
|
21
|
+
lat: number | null;
|
|
22
|
+
lng: number | null;
|
|
23
|
+
} | null;
|
|
24
|
+
country: string | null;
|
|
25
|
+
local_region: string | null;
|
|
26
|
+
municipality: string | null;
|
|
27
|
+
number: string | null;
|
|
28
|
+
postdistrict: string | null;
|
|
29
|
+
street: string | null;
|
|
30
|
+
zipcode: number | string | null;
|
|
31
|
+
};
|
|
32
|
+
advertisement_protection?: boolean | null;
|
|
33
|
+
audit_selected?: boolean | null;
|
|
34
|
+
bank?: {
|
|
35
|
+
company_name: string | null;
|
|
36
|
+
local_organization_id: LocalOrganizationId;
|
|
37
|
+
};
|
|
38
|
+
company_name?: string;
|
|
39
|
+
company_registers?:
|
|
40
|
+
| {
|
|
41
|
+
register: string;
|
|
42
|
+
valid_to: string | null;
|
|
43
|
+
valid_from: string;
|
|
44
|
+
}[]
|
|
45
|
+
| null;
|
|
46
|
+
company_secondary_names?:
|
|
47
|
+
| {
|
|
48
|
+
name: string | null;
|
|
49
|
+
valid_from: string;
|
|
50
|
+
valid_to: string | null;
|
|
51
|
+
}[]
|
|
52
|
+
| null;
|
|
53
|
+
company_name_changes_count?: number | null;
|
|
54
|
+
address_changes_count?: number | null;
|
|
55
|
+
company_type?: {
|
|
56
|
+
short: string | null;
|
|
57
|
+
long: string | null;
|
|
58
|
+
};
|
|
59
|
+
credit_policy?: null | CreditPolicyTrue | CreditPolicyFalse;
|
|
60
|
+
date_of_incorporation?: string | null;
|
|
61
|
+
email?: {
|
|
62
|
+
email: string | null;
|
|
63
|
+
hidden: boolean | null;
|
|
64
|
+
};
|
|
65
|
+
enterprise_credit_policy?: null;
|
|
66
|
+
financial_reports?: boolean;
|
|
67
|
+
financial_year?: {
|
|
68
|
+
start: string | null;
|
|
69
|
+
end: string | null;
|
|
70
|
+
};
|
|
71
|
+
holding_company?: boolean | null;
|
|
72
|
+
internal_id?: string | null;
|
|
73
|
+
last_report_date?: string | null;
|
|
74
|
+
listed?: boolean | null;
|
|
75
|
+
local_organization_id?: LocalOrganizationId;
|
|
76
|
+
main_industry_code?: IndustryObject;
|
|
77
|
+
number_of_employees?: {
|
|
78
|
+
interval: string | null;
|
|
79
|
+
specific: number | null;
|
|
80
|
+
};
|
|
81
|
+
phone?: {
|
|
82
|
+
phone_number: string | null;
|
|
83
|
+
hidden: boolean | null;
|
|
84
|
+
};
|
|
85
|
+
powers_to_bind?: string | null;
|
|
86
|
+
purpose?: string | null;
|
|
87
|
+
registered_capital?: {
|
|
88
|
+
value: number | null;
|
|
89
|
+
currency: null | string;
|
|
90
|
+
};
|
|
91
|
+
risk_assessment?: string | null;
|
|
92
|
+
risk_assessment_code?: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
93
|
+
score?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
94
|
+
score_data?: {
|
|
95
|
+
BOHR: ScoreModel;
|
|
96
|
+
NEWTON: ScoreModel;
|
|
97
|
+
};
|
|
98
|
+
secondary_industry_codes?: null | SecondaryIndustryObject;
|
|
99
|
+
status?: string | null;
|
|
100
|
+
status_code?: string | null;
|
|
101
|
+
active_not_distress?: boolean | null;
|
|
102
|
+
status_valid_from?: string | null;
|
|
103
|
+
ts?: string | null;
|
|
104
|
+
vat?: boolean | null;
|
|
105
|
+
webpage?: string | null;
|
|
106
|
+
};
|
|
107
|
+
export type SecondaryIndustryObject = {
|
|
108
|
+
group_name: string | null;
|
|
109
|
+
industry_code: string | null;
|
|
110
|
+
industry_description: string | null;
|
|
111
|
+
isic: NaseOrIsic;
|
|
112
|
+
nace: NaseOrIsic;
|
|
113
|
+
priority: number;
|
|
114
|
+
section: string | null;
|
|
115
|
+
}[];
|
|
116
|
+
export type Alike = Basics[];
|
|
117
|
+
|
|
118
|
+
export interface LocalOrganizationId {
|
|
119
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
120
|
+
id: string | null;
|
|
121
|
+
hash?: string | null;
|
|
122
|
+
}
|
|
123
|
+
export interface CreditPolicyTrue {
|
|
124
|
+
allowed: true;
|
|
125
|
+
/**
|
|
126
|
+
* @maxItems 0
|
|
127
|
+
*/
|
|
128
|
+
conflicts: [];
|
|
129
|
+
}
|
|
130
|
+
export interface CreditPolicyFalse {
|
|
131
|
+
allowed: false;
|
|
132
|
+
/**
|
|
133
|
+
* @minItems 1
|
|
134
|
+
*/
|
|
135
|
+
conflicts: [
|
|
136
|
+
{
|
|
137
|
+
code:
|
|
138
|
+
| "POLICY_RISIKA_SCORE"
|
|
139
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
140
|
+
| "POLICY_COMPANY_TYPE"
|
|
141
|
+
| "POLICY_INDUSTRY"
|
|
142
|
+
| "POLICY_BANKRUPTCIES"
|
|
143
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
144
|
+
| "POLICY_AGE"
|
|
145
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
146
|
+
| "POLICY_LOCAL_ID"
|
|
147
|
+
| "POLICY_ENTITY_ID"
|
|
148
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
149
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
150
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
151
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
152
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
153
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
154
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
155
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
156
|
+
| "POLICY_DEBT"
|
|
157
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
158
|
+
| "POLICY_PROFIT_LOSS"
|
|
159
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
160
|
+
text: string;
|
|
161
|
+
},
|
|
162
|
+
...{
|
|
163
|
+
code:
|
|
164
|
+
| "POLICY_RISIKA_SCORE"
|
|
165
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
166
|
+
| "POLICY_COMPANY_TYPE"
|
|
167
|
+
| "POLICY_INDUSTRY"
|
|
168
|
+
| "POLICY_BANKRUPTCIES"
|
|
169
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
170
|
+
| "POLICY_AGE"
|
|
171
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
172
|
+
| "POLICY_LOCAL_ID"
|
|
173
|
+
| "POLICY_ENTITY_ID"
|
|
174
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
175
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
176
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
177
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
178
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
179
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
180
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
181
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
182
|
+
| "POLICY_DEBT"
|
|
183
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
184
|
+
| "POLICY_PROFIT_LOSS"
|
|
185
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
186
|
+
text: string;
|
|
187
|
+
}[]
|
|
188
|
+
];
|
|
189
|
+
}
|
|
190
|
+
export interface IndustryObject {
|
|
191
|
+
code: string | null;
|
|
192
|
+
description: string | null;
|
|
193
|
+
isic: NaseOrIsic;
|
|
194
|
+
nace: NaseOrIsic;
|
|
195
|
+
section: string | null;
|
|
196
|
+
}
|
|
197
|
+
export interface NaseOrIsic {
|
|
198
|
+
code: string | null;
|
|
199
|
+
section: string | null;
|
|
200
|
+
description: string | null;
|
|
201
|
+
}
|
|
202
|
+
export interface ScoreModel {
|
|
203
|
+
date?: string | null;
|
|
204
|
+
probability_of_distress: number | null;
|
|
205
|
+
risk_assessment: string | null;
|
|
206
|
+
risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
207
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
208
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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 Basics = {
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
} & {
|
|
12
|
+
address?: {
|
|
13
|
+
city: string | null;
|
|
14
|
+
coname?: string | null;
|
|
15
|
+
coordinates: {
|
|
16
|
+
lat: number | null;
|
|
17
|
+
lng: number | null;
|
|
18
|
+
} | null;
|
|
19
|
+
country: string | null;
|
|
20
|
+
local_region: string | null;
|
|
21
|
+
municipality: string | null;
|
|
22
|
+
number: string | null;
|
|
23
|
+
postdistrict: string | null;
|
|
24
|
+
street: string | null;
|
|
25
|
+
zipcode: number | string | null;
|
|
26
|
+
};
|
|
27
|
+
advertisement_protection?: boolean | null;
|
|
28
|
+
audit_selected?: boolean | null;
|
|
29
|
+
bank?: {
|
|
30
|
+
company_name: string | null;
|
|
31
|
+
local_organization_id: LocalOrganizationId;
|
|
32
|
+
};
|
|
33
|
+
company_name?: string;
|
|
34
|
+
company_registers?:
|
|
35
|
+
| {
|
|
36
|
+
register: string;
|
|
37
|
+
valid_to: string | null;
|
|
38
|
+
valid_from: string;
|
|
39
|
+
}[]
|
|
40
|
+
| null;
|
|
41
|
+
company_secondary_names?:
|
|
42
|
+
| {
|
|
43
|
+
name: string | null;
|
|
44
|
+
valid_from: string;
|
|
45
|
+
valid_to: string | null;
|
|
46
|
+
}[]
|
|
47
|
+
| null;
|
|
48
|
+
company_name_changes_count?: number | null;
|
|
49
|
+
address_changes_count?: number | null;
|
|
50
|
+
company_type?: {
|
|
51
|
+
short: string | null;
|
|
52
|
+
long: string | null;
|
|
53
|
+
};
|
|
54
|
+
credit_policy?: null | CreditPolicyTrue | CreditPolicyFalse;
|
|
55
|
+
date_of_incorporation?: string | null;
|
|
56
|
+
email?: {
|
|
57
|
+
email: string | null;
|
|
58
|
+
hidden: boolean | null;
|
|
59
|
+
};
|
|
60
|
+
enterprise_credit_policy?: null;
|
|
61
|
+
financial_reports?: boolean;
|
|
62
|
+
financial_year?: {
|
|
63
|
+
start: string | null;
|
|
64
|
+
end: string | null;
|
|
65
|
+
};
|
|
66
|
+
holding_company?: boolean | null;
|
|
67
|
+
internal_id?: string | null;
|
|
68
|
+
last_report_date?: string | null;
|
|
69
|
+
listed?: boolean | null;
|
|
70
|
+
local_organization_id?: LocalOrganizationId;
|
|
71
|
+
main_industry_code?: IndustryObject;
|
|
72
|
+
number_of_employees?: {
|
|
73
|
+
interval: string | null;
|
|
74
|
+
specific: number | null;
|
|
75
|
+
};
|
|
76
|
+
phone?: {
|
|
77
|
+
phone_number: string | null;
|
|
78
|
+
hidden: boolean | null;
|
|
79
|
+
};
|
|
80
|
+
powers_to_bind?: string | null;
|
|
81
|
+
purpose?: string | null;
|
|
82
|
+
registered_capital?: {
|
|
83
|
+
value: number | null;
|
|
84
|
+
currency: null | string;
|
|
85
|
+
};
|
|
86
|
+
risk_assessment?: string | null;
|
|
87
|
+
risk_assessment_code?: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
88
|
+
score?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
89
|
+
score_data?: {
|
|
90
|
+
BOHR: ScoreModel;
|
|
91
|
+
NEWTON: ScoreModel;
|
|
92
|
+
};
|
|
93
|
+
secondary_industry_codes?: null | SecondaryIndustryObject;
|
|
94
|
+
status?: string | null;
|
|
95
|
+
status_code?: string | null;
|
|
96
|
+
active_not_distress?: boolean | null;
|
|
97
|
+
status_valid_from?: string | null;
|
|
98
|
+
ts?: string | null;
|
|
99
|
+
vat?: boolean | null;
|
|
100
|
+
webpage?: string | null;
|
|
101
|
+
};
|
|
102
|
+
export type SecondaryIndustryObject = {
|
|
103
|
+
group_name: string | null;
|
|
104
|
+
industry_code: string | null;
|
|
105
|
+
industry_description: string | null;
|
|
106
|
+
isic: NaseOrIsic;
|
|
107
|
+
nace: NaseOrIsic;
|
|
108
|
+
priority: number;
|
|
109
|
+
section: string | null;
|
|
110
|
+
}[];
|
|
111
|
+
|
|
112
|
+
export interface LocalOrganizationId {
|
|
113
|
+
country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
|
|
114
|
+
id: string | null;
|
|
115
|
+
hash?: string | null;
|
|
116
|
+
}
|
|
117
|
+
export interface CreditPolicyTrue {
|
|
118
|
+
allowed: true;
|
|
119
|
+
/**
|
|
120
|
+
* @maxItems 0
|
|
121
|
+
*/
|
|
122
|
+
conflicts: [];
|
|
123
|
+
}
|
|
124
|
+
export interface CreditPolicyFalse {
|
|
125
|
+
allowed: false;
|
|
126
|
+
/**
|
|
127
|
+
* @minItems 1
|
|
128
|
+
*/
|
|
129
|
+
conflicts: [
|
|
130
|
+
{
|
|
131
|
+
code:
|
|
132
|
+
| "POLICY_RISIKA_SCORE"
|
|
133
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
134
|
+
| "POLICY_COMPANY_TYPE"
|
|
135
|
+
| "POLICY_INDUSTRY"
|
|
136
|
+
| "POLICY_BANKRUPTCIES"
|
|
137
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
138
|
+
| "POLICY_AGE"
|
|
139
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
140
|
+
| "POLICY_LOCAL_ID"
|
|
141
|
+
| "POLICY_ENTITY_ID"
|
|
142
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
143
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
144
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
145
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
146
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
147
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
148
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
149
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
150
|
+
| "POLICY_DEBT"
|
|
151
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
152
|
+
| "POLICY_PROFIT_LOSS"
|
|
153
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
154
|
+
text: string;
|
|
155
|
+
},
|
|
156
|
+
...{
|
|
157
|
+
code:
|
|
158
|
+
| "POLICY_RISIKA_SCORE"
|
|
159
|
+
| "POLICY_AUDITOR_ASSISTANCE"
|
|
160
|
+
| "POLICY_COMPANY_TYPE"
|
|
161
|
+
| "POLICY_INDUSTRY"
|
|
162
|
+
| "POLICY_BANKRUPTCIES"
|
|
163
|
+
| "POLICY_BANKRUPTCIES_LONG"
|
|
164
|
+
| "POLICY_AGE"
|
|
165
|
+
| "POLICY_NEGATIVE_EQUITY"
|
|
166
|
+
| "POLICY_LOCAL_ID"
|
|
167
|
+
| "POLICY_ENTITY_ID"
|
|
168
|
+
| "POLICY_PREPAID_PHONE_NUMBER"
|
|
169
|
+
| "POLICY_PHONE_NUMBER_REGISTRY"
|
|
170
|
+
| "POLICY_DISTANCE_TO_CEO"
|
|
171
|
+
| "POLICY_AUDITOR_HAS_ID"
|
|
172
|
+
| "POLICY_PAYMENT_REMARKS_COUNT"
|
|
173
|
+
| "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
|
|
174
|
+
| "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
|
|
175
|
+
| "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
|
|
176
|
+
| "POLICY_DEBT"
|
|
177
|
+
| "POLICY_SHORT_TERM_DEBT"
|
|
178
|
+
| "POLICY_PROFIT_LOSS"
|
|
179
|
+
| "POLICY_NUMBER_OF_EMPLOYEES";
|
|
180
|
+
text: string;
|
|
181
|
+
}[]
|
|
182
|
+
];
|
|
183
|
+
}
|
|
184
|
+
export interface IndustryObject {
|
|
185
|
+
code: string | null;
|
|
186
|
+
description: string | null;
|
|
187
|
+
isic: NaseOrIsic;
|
|
188
|
+
nace: NaseOrIsic;
|
|
189
|
+
section: string | null;
|
|
190
|
+
}
|
|
191
|
+
export interface NaseOrIsic {
|
|
192
|
+
code: string | null;
|
|
193
|
+
section: string | null;
|
|
194
|
+
description: string | null;
|
|
195
|
+
}
|
|
196
|
+
export interface ScoreModel {
|
|
197
|
+
date?: string | null;
|
|
198
|
+
probability_of_distress: number | null;
|
|
199
|
+
risk_assessment: string | null;
|
|
200
|
+
risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
|
|
201
|
+
score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
|
|
202
|
+
}
|