@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.
Files changed (121) hide show
  1. package/README.md +20 -0
  2. package/account/counter/decrement.ts +11 -0
  3. package/account/credit_policy/get.ts +62 -0
  4. package/account/credit_policy/get_active_countries.ts +11 -0
  5. package/account/credit_policy/set.ts +11 -0
  6. package/account/enterprise_credit_policies/create.ts +12 -0
  7. package/account/enterprise_credit_policies/evaluate.ts +106 -0
  8. package/account/enterprise_credit_policies/evaluate_monitoring_list.ts +96 -0
  9. package/account/enterprise_credit_policies/remove.ts +11 -0
  10. package/account/enterprise_credit_policies/schema/policy.ts +142 -0
  11. package/account/enterprise_credit_policies/support/outputs_table.ts +13 -0
  12. package/account/enterprise_credit_policies/support/rules_table.ts +14 -0
  13. package/account/enterprise_credit_policies/support/variables.ts +72 -0
  14. package/account/enterprise_credit_policies/update.ts +19 -0
  15. package/account/enterprise_credit_policies/validate.ts +17 -0
  16. package/account/enterprise_credit_policies.ts +35 -0
  17. package/account/index.ts +21 -0
  18. package/account/notes/add.ts +17 -0
  19. package/account/notes/get.ts +17 -0
  20. package/account/notes/list.ts +33 -0
  21. package/account/notes/remove.ts +11 -0
  22. package/account/status.ts +131 -0
  23. package/company/alike.ts +208 -0
  24. package/company/basics.ts +202 -0
  25. package/company/basics_list.ts +208 -0
  26. package/company/ean.ts +14 -0
  27. package/company/employees.ts +15 -0
  28. package/company/events/payment_remarks.ts +25 -0
  29. package/company/events.ts +46 -0
  30. package/company/hierarchy/child.ts +67 -0
  31. package/company/hierarchy/node.ts +97 -0
  32. package/company/hierarchy/parent.ts +67 -0
  33. package/company/hierarchy/single.ts +37 -0
  34. package/company/hierarchy/summary.ts +25 -0
  35. package/company/hierarchy/walkdown.ts +101 -0
  36. package/company/hierarchy/walkup.ts +101 -0
  37. package/company/history.ts +39 -0
  38. package/company/index.ts +20 -0
  39. package/company/operating.ts +29 -0
  40. package/company/owners.ts +20 -0
  41. package/company/production_unit.ts +39 -0
  42. package/company/relations.ts +65 -0
  43. package/convert_currency.ts +11 -0
  44. package/export/company.ts +85 -0
  45. package/export/index.ts +2 -0
  46. package/financial/index.ts +5 -0
  47. package/financial/numbers.ts +87 -0
  48. package/financial/performance.ts +35 -0
  49. package/financial/ratios.ts +37 -0
  50. package/financial/stats.ts +35 -0
  51. package/fraud_policy/fraud_indicators_get.ts +24 -0
  52. package/fraud_policy/get.ts +25 -0
  53. package/fraud_policy/index.ts +5 -0
  54. package/fraud_policy/set.ts +11 -0
  55. package/fraud_policy/set_request.ts +14 -0
  56. package/highlights.ts +67 -0
  57. package/index.ts +21 -0
  58. package/last_update.ts +44 -0
  59. package/list/api_versions.ts +9 -0
  60. package/list/auditors.ts +13 -0
  61. package/list/cities.ts +13 -0
  62. package/list/company_statuses.ts +13 -0
  63. package/list/company_types.ts +13 -0
  64. package/list/currencies.ts +11 -0
  65. package/list/employee_interval.ts +13 -0
  66. package/list/highlights.ts +16 -0
  67. package/list/index.ts +15 -0
  68. package/list/industries.ts +25 -0
  69. package/list/municipalities.ts +13 -0
  70. package/list/policy_outcomes.ts +14 -0
  71. package/list/policy_violations.ts +14 -0
  72. package/list/regions.ts +19 -0
  73. package/list/zipcodes.ts +13 -0
  74. package/liveness.ts +11 -0
  75. package/monitor/add.ts +17 -0
  76. package/monitor/export.ts +212 -0
  77. package/monitor/extract.ts +46 -0
  78. package/monitor/index.ts +20 -0
  79. package/monitor/list/add.ts +11 -0
  80. package/monitor/list/most_relevant.ts +51 -0
  81. package/monitor/list/most_relevant_list.ts +9 -0
  82. package/monitor/list/policy_violations.ts +32 -0
  83. package/monitor/list/remove.ts +11 -0
  84. package/monitor/list/rename.ts +11 -0
  85. package/monitor/list/show.ts +20 -0
  86. package/monitor/list/statistics/aggregated_highlights.ts +16 -0
  87. package/monitor/list/statistics/category.ts +50 -0
  88. package/monitor/list/statistics/compliance.ts +49 -0
  89. package/monitor/list/statistics/timeline.ts +43 -0
  90. package/monitor/list/visibility.ts +11 -0
  91. package/monitor/list.ts +212 -0
  92. package/monitor/listpaged.ts +219 -0
  93. package/monitor/remove.ts +17 -0
  94. package/monitor/verify.ts +12 -0
  95. package/package.json +1 -0
  96. package/person/index.ts +3 -0
  97. package/person/relations.ts +68 -0
  98. package/person/relations_list.ts +20 -0
  99. package/phone_numbers.ts +23 -0
  100. package/rating/credit/override.ts +17 -0
  101. package/rating/credit.ts +13 -0
  102. package/rating/index.ts +4 -0
  103. package/rating/scores.ts +26 -0
  104. package/readiness.ts +11 -0
  105. package/registration/debt.ts +54 -0
  106. package/registration/index.ts +3 -0
  107. package/registration/properties.ts +91 -0
  108. package/search/company.ts +74 -0
  109. package/search/index.ts +4 -0
  110. package/search/person.ts +22 -0
  111. package/search/production_units.ts +38 -0
  112. package/statistics/company_visits/list.ts +29 -0
  113. package/statistics/company_visits/register.ts +11 -0
  114. package/statistics/company_visits/summary.ts +18 -0
  115. package/statistics/index.ts +6 -0
  116. package/statistics/person_visits/list.ts +20 -0
  117. package/statistics/person_visits/register.ts +11 -0
  118. package/test/exception.ts +11 -0
  119. package/test/index.ts +2 -0
  120. package/validate/index.ts +2 -0
  121. package/validate/local_id.ts +21 -0
@@ -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,46 @@
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 Extract = {
10
+ country?: "DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk";
11
+ id?: string;
12
+ package?: {
13
+ date?: string;
14
+ package?: {
15
+ new?: Event;
16
+ old?: Event;
17
+ sentence_id?: number;
18
+ type?: string;
19
+ weight?: number;
20
+ }[];
21
+ tag?: string;
22
+ ts?: string;
23
+ }[];
24
+ }[];
25
+
26
+ export interface Event {
27
+ valid_from?: string | null;
28
+ valid_to?: string | null;
29
+ value?:
30
+ | ScoreModel
31
+ | string
32
+ | number
33
+ | null
34
+ | {
35
+ entity_id?: string;
36
+ function?: string;
37
+ name?: string;
38
+ };
39
+ }
40
+ export interface ScoreModel {
41
+ date?: string | null;
42
+ probability_of_distress: number | null;
43
+ risk_assessment: string | null;
44
+ risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
45
+ score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
46
+ }
@@ -0,0 +1,20 @@
1
+ // @ts-nocheck
2
+ export type { Add as Add } from "./add"
3
+ export type { Export as Export } from "./export"
4
+ export type { Extract as Extract } from "./extract"
5
+ export type { Add as ListAdd } from "./list/add"
6
+ export type { MostRelevant as ListMostRelevant } from "./list/most_relevant"
7
+ export type { MostRelevantList as ListMostRelevantList } from "./list/most_relevant_list"
8
+ export type { PolicyViolations as ListPolicyViolations } from "./list/policy_violations"
9
+ export type { Remove as ListRemove } from "./list/remove"
10
+ export type { Rename as ListRename } from "./list/rename"
11
+ export type { Show as ListShow } from "./list/show"
12
+ export type { AggregatedHighlights as ListStatisticsAggregatedHighlights } from "./list/statistics/aggregated_highlights"
13
+ export type { Category as ListStatisticsCategory } from "./list/statistics/category"
14
+ export type { Compliance as ListStatisticsCompliance } from "./list/statistics/compliance"
15
+ export type { Timeline as ListStatisticsTimeline } from "./list/statistics/timeline"
16
+ export type { Visibility as ListVisibility } from "./list/visibility"
17
+ export type { List as List } from "./list"
18
+ export type { Listpaged as Listpaged } from "./listpaged"
19
+ export type { Remove as Remove } from "./remove"
20
+ export type { Verify as Verify } from "./verify"
@@ -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 Add {
10
+ list_id: number;
11
+ }
@@ -0,0 +1,51 @@
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 MostRelevant = {
10
+ local_organization_id?: LocalOrganizationId;
11
+ name?: string;
12
+ weight?: string;
13
+ date?: string;
14
+ changes?: MonitorEvent[];
15
+ }[];
16
+
17
+ export interface LocalOrganizationId {
18
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
19
+ id: string | null;
20
+ hash?: string | null;
21
+ }
22
+ export interface MonitorEvent {
23
+ new: Event;
24
+ old?: Event;
25
+ date?: string | string;
26
+ registration_date?: string;
27
+ sentence: string;
28
+ type: string;
29
+ weight: number;
30
+ }
31
+ export interface Event {
32
+ valid_from?: string | null;
33
+ valid_to?: string | null;
34
+ value?:
35
+ | ScoreModel
36
+ | string
37
+ | number
38
+ | null
39
+ | {
40
+ entity_id?: string;
41
+ function?: string;
42
+ name?: string;
43
+ };
44
+ }
45
+ export interface ScoreModel {
46
+ date?: string | null;
47
+ probability_of_distress: number | null;
48
+ risk_assessment: string | null;
49
+ risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
50
+ score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
51
+ }
@@ -0,0 +1,9 @@
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 MostRelevantList {}
@@ -0,0 +1,32 @@
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 PolicyViolations {
10
+ POLICY_RISIKA_SCORE?: string;
11
+ POLICY_AUDITOR_ASSISTANCE?: string;
12
+ POLICY_COMPANY_TYPE?: string;
13
+ POLICY_INDUSTRY?: string;
14
+ POLICY_BANKRUPTCIES?: string;
15
+ POLICY_BANKRUPTCIES_LONG?: string;
16
+ POLICY_AGE?: string;
17
+ POLICY_NEGATIVE_EQUITY?: string;
18
+ POLICY_LOCAL_ID?: string;
19
+ POLICY_ENTITY_ID?: string;
20
+ POLICY_PREPAID_PHONE_NUMBER?: string;
21
+ POLICY_PHONE_NUMBER_REGISTRY?: string;
22
+ POLICY_DISTANCE_TO_CEO?: string;
23
+ POLICY_AUDITOR_HAS_ID?: string;
24
+ POLICY_PAYMENT_REMARKS_COUNT?: string;
25
+ POLICY_PAYMENT_REMARKS_CREDITORS_COUNT?: string;
26
+ POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT?: string;
27
+ POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME?: string;
28
+ POLICY_DEBT?: string;
29
+ POLICY_SHORT_TERM_DEBT?: string;
30
+ POLICY_PROFIT_LOSS?: string;
31
+ POLICY_NUMBER_OF_EMPLOYEES?: string;
32
+ }
@@ -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,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 Rename {
10
+ status: "ok";
11
+ }
@@ -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 Show = {
10
+ list_id?: number;
11
+ name?: string;
12
+ owner_id?: number | null;
13
+ list_users?: number[] | null;
14
+ risk_assessment?: {
15
+ HIGH?: number;
16
+ MEDIUM?: number;
17
+ LOW?: number;
18
+ NONE?: number;
19
+ };
20
+ }[];
@@ -0,0 +1,16 @@
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 AggregatedHighlights = {
10
+ category: string;
11
+ count: number;
12
+ header: string;
13
+ message: string;
14
+ title: string;
15
+ value: string;
16
+ }[];
@@ -0,0 +1,50 @@
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 GroupCategories =
10
+ | "SCORE"
11
+ | "RISK_ASSESSMENT"
12
+ | "COMPANY_TYPE"
13
+ | "COMPANY_TYPE_INTL"
14
+ | "EMPLOYEES"
15
+ | "EMPLOYEES_NUMBER"
16
+ | "REGION"
17
+ | "NACE"
18
+ | "GROSS_RESULT"
19
+ | "NONCURRENT_ASSETS"
20
+ | "CURRENT_ASSETS"
21
+ | "ASSETS"
22
+ | "LONG_TERM_DEBT"
23
+ | "SHORT_TERM_DEBT"
24
+ | "DEBT"
25
+ | "CURRENT_RATIO"
26
+ | "RETURN_ON_ASSETS"
27
+ | "RETURN_ON_EQUITY"
28
+ | "SOLIDITY_RATIO"
29
+ | "COUNTRY";
30
+ export type Category = (InnerCategory | OuterCategory)[];
31
+
32
+ export interface InnerCategory {
33
+ category_type?: GroupCategories;
34
+ function?: "COUNT" | "PERCENTAGE" | "AVERAGE" | "MEDIAN";
35
+ category?: string;
36
+ value?: number;
37
+ }
38
+ export interface OuterCategory {
39
+ group?:
40
+ | string
41
+ | number
42
+ | {
43
+ geoname?: string;
44
+ lat?: number;
45
+ long?: number;
46
+ };
47
+ group_code?: string | number;
48
+ group_type?: GroupCategories;
49
+ values?: InnerCategory | OuterCategory;
50
+ }
@@ -0,0 +1,49 @@
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 Compliance =
10
+ | {
11
+ allowed: number;
12
+ rejected: number;
13
+ manual_check: number;
14
+ do_not_evaluate: number;
15
+ allowed_list: CountryLocalIdLists;
16
+ rejected_list: CountryLocalIdLists;
17
+ manual_check_list: CountryLocalIdLists;
18
+ do_not_evaluate_list: CountryLocalIdLists;
19
+ credit_policy_used: "credit_automator";
20
+ rejected_explanations: {};
21
+ }
22
+ | {
23
+ allowed: number;
24
+ rejected: number;
25
+ allowed_list: CountryLocalIdLists;
26
+ rejected_list: CountryLocalIdLists;
27
+ credit_policy_used: "credit_policy";
28
+ rejected_explanations: {
29
+ /**
30
+ * This interface was referenced by `undefined`'s JSON-Schema definition
31
+ * via the `patternProperty` "^.*$".
32
+ */
33
+ [k: string]: {
34
+ count?: number;
35
+ text?: string;
36
+ title?: string;
37
+ };
38
+ };
39
+ };
40
+ export type LocalIdList = string[];
41
+
42
+ export interface CountryLocalIdLists {
43
+ DK?: LocalIdList;
44
+ NO?: LocalIdList;
45
+ SE?: LocalIdList;
46
+ FI?: LocalIdList;
47
+ UK?: LocalIdList;
48
+ DE?: LocalIdList;
49
+ }
@@ -0,0 +1,43 @@
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 Values = {
10
+ date: string;
11
+ value: number;
12
+ }[];
13
+ export type Timeline = (
14
+ | {
15
+ group: string;
16
+ group_code: string | null;
17
+ group_type: "RISK_ASSESSMENT" | "CREDIT_COMPLIANCE";
18
+ function: "COUNT";
19
+ values: Values;
20
+ }
21
+ | {
22
+ group: string;
23
+ group_code: string | null;
24
+ group_type:
25
+ | "SCORE"
26
+ | "EMPLOYEES_NUMBER"
27
+ | "GROSS_RESULT"
28
+ | "NONCURRENT_ASSETS"
29
+ | "CURRENT_ASSETS"
30
+ | "ASSETS"
31
+ | "LONG_TERM_DEBT"
32
+ | "SHORT_TERM_DEBT"
33
+ | "DEBT"
34
+ | "CURRENT_RATIO"
35
+ | "RETURN_ON_ASSETS"
36
+ | "RETURN_ON_EQUITY"
37
+ | "SOLIDITY_RATIO"
38
+ | "EQUITY"
39
+ | "PROFIT_LOSS";
40
+ function: "AVERAGE" | "MEDIAN";
41
+ values: Values;
42
+ }
43
+ )[];
@@ -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 Visibility {
10
+ status: "ok";
11
+ }