@risika/api-response-types-python-3.14 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 +216 -0
  24. package/company/basics.ts +210 -0
  25. package/company/basics_list.ts +216 -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 +88 -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 +222 -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 +222 -0
  92. package/monitor/listpaged.ts +229 -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 +82 -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,222 @@
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
+ upfront?: number | null;
49
+ credit_days?: number;
50
+ address: Address;
51
+ financial_key_figures: FinancialKeyFigures;
52
+ industry_code: string | null;
53
+ industries?: Industries;
54
+ employee_interval: string | null;
55
+ employees_number?: number | number | null;
56
+ company_type: string | null;
57
+ date_of_incorporation: string | null;
58
+ email?: string | null;
59
+ phone_number?: string | null;
60
+ webpage?: string | null;
61
+ capital?: number | null;
62
+ changes: ListOfMonitoringEvents | null;
63
+ credit_policy: null | CreditPolicyTrue | CreditPolicyFalse;
64
+ risk_assessment: string | null;
65
+ risk_assessment_code: null | (("LOW" | "MEDIUM" | "HIGH") | null);
66
+ highlights?: Highlights;
67
+ employment_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
68
+ equity_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
69
+ profit_loss_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
70
+ fraud_indicators_count?: number | null;
71
+ }[];
72
+ count?: number;
73
+ }
74
+ export interface LocalOrganizationId {
75
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
76
+ id: string | null;
77
+ hash?: string | null;
78
+ }
79
+ export interface Address {
80
+ city: string | null;
81
+ coname: null | string;
82
+ number: string | null;
83
+ street: string | null;
84
+ country: string | null;
85
+ zipcode: number | string | null;
86
+ municipality: string | null;
87
+ postdistrict: string | null;
88
+ }
89
+ export interface FinancialKeyFigures {
90
+ currency: string;
91
+ equity: number | number | null;
92
+ profit_loss: number | number | null;
93
+ solidity: number | number | null;
94
+ short_term_debt: number | number | null;
95
+ long_term_debt: number | number | null;
96
+ ebitda: number | number | null;
97
+ ebit: number | number | null;
98
+ ordinary_profit: number | number | null;
99
+ short_term_trade_payables: number | number | null;
100
+ short_term_receivables_from_sales_and_services: number | number | null;
101
+ }
102
+ export interface Industries {
103
+ main_industry?: null | IndustryObject;
104
+ secondary_industry_codes?: null | SecondaryIndustryObject;
105
+ }
106
+ export interface IndustryObject {
107
+ code: string | null;
108
+ description: string | null;
109
+ isic: NaseOrIsic;
110
+ nace: NaseOrIsic;
111
+ section: string | null;
112
+ }
113
+ export interface NaseOrIsic {
114
+ code: string | null;
115
+ section: string | null;
116
+ description: string | null;
117
+ }
118
+ export interface MonitorEvent {
119
+ new: Event;
120
+ old?: Event;
121
+ date?: string | string;
122
+ registration_date?: string;
123
+ sentence: string;
124
+ type: string;
125
+ weight: number;
126
+ }
127
+ export interface Event {
128
+ valid_from?: string | null;
129
+ valid_to?: string | null;
130
+ value?:
131
+ | ScoreModel
132
+ | string
133
+ | number
134
+ | null
135
+ | {
136
+ entity_id?: string;
137
+ function?: string;
138
+ name?: string;
139
+ };
140
+ }
141
+ export interface ScoreModel {
142
+ date?: string | null;
143
+ probability_of_distress: number | null;
144
+ risk_assessment: string | null;
145
+ risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
146
+ score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
147
+ }
148
+ export interface CreditPolicyTrue {
149
+ allowed: true;
150
+ /**
151
+ * @maxItems 0
152
+ */
153
+ conflicts: [];
154
+ }
155
+ export interface CreditPolicyFalse {
156
+ allowed: false;
157
+ /**
158
+ * @minItems 1
159
+ */
160
+ conflicts: [
161
+ {
162
+ code:
163
+ | "POLICY_RISIKA_SCORE"
164
+ | "POLICY_AUDITOR_ASSISTANCE"
165
+ | "POLICY_COMPANY_TYPE"
166
+ | "POLICY_INDUSTRY"
167
+ | "POLICY_BANKRUPTCIES"
168
+ | "POLICY_BANKRUPTCIES_LONG"
169
+ | "POLICY_AGE"
170
+ | "POLICY_NEGATIVE_EQUITY"
171
+ | "POLICY_LOCAL_ID"
172
+ | "POLICY_ENTITY_ID"
173
+ | "POLICY_PREPAID_PHONE_NUMBER"
174
+ | "POLICY_PHONE_NUMBER_REGISTRY"
175
+ | "POLICY_DISTANCE_TO_CEO"
176
+ | "POLICY_AUDITOR_HAS_ID"
177
+ | "POLICY_PAYMENT_REMARKS_COUNT"
178
+ | "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
179
+ | "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
180
+ | "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
181
+ | "POLICY_DEBT"
182
+ | "POLICY_SHORT_TERM_DEBT"
183
+ | "POLICY_PROFIT_LOSS"
184
+ | "POLICY_NUMBER_OF_EMPLOYEES";
185
+ text: string;
186
+ matched_persons?: {
187
+ entity_id: string;
188
+ name: string | null;
189
+ }[];
190
+ },
191
+ ...{
192
+ code:
193
+ | "POLICY_RISIKA_SCORE"
194
+ | "POLICY_AUDITOR_ASSISTANCE"
195
+ | "POLICY_COMPANY_TYPE"
196
+ | "POLICY_INDUSTRY"
197
+ | "POLICY_BANKRUPTCIES"
198
+ | "POLICY_BANKRUPTCIES_LONG"
199
+ | "POLICY_AGE"
200
+ | "POLICY_NEGATIVE_EQUITY"
201
+ | "POLICY_LOCAL_ID"
202
+ | "POLICY_ENTITY_ID"
203
+ | "POLICY_PREPAID_PHONE_NUMBER"
204
+ | "POLICY_PHONE_NUMBER_REGISTRY"
205
+ | "POLICY_DISTANCE_TO_CEO"
206
+ | "POLICY_AUDITOR_HAS_ID"
207
+ | "POLICY_PAYMENT_REMARKS_COUNT"
208
+ | "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
209
+ | "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
210
+ | "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
211
+ | "POLICY_DEBT"
212
+ | "POLICY_SHORT_TERM_DEBT"
213
+ | "POLICY_PROFIT_LOSS"
214
+ | "POLICY_NUMBER_OF_EMPLOYEES";
215
+ text: string;
216
+ matched_persons?: {
217
+ entity_id: string;
218
+ name: string | null;
219
+ }[];
220
+ }[]
221
+ ];
222
+ }
@@ -0,0 +1,229 @@
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
+ upfront?: number | null;
49
+ credit_days?: number;
50
+ address: Address;
51
+ financial_key_figures: FinancialKeyFigures;
52
+ industry_code: string;
53
+ industries?: Industries;
54
+ employee_interval: string | null;
55
+ employees_number?: number | number | null;
56
+ company_type: string;
57
+ date_of_incorporation: string | null;
58
+ email?: string | null;
59
+ phone_number?: string | null;
60
+ webpage?: string | null;
61
+ capital?: number | null;
62
+ changes: null | ListOfMonitoringEvents;
63
+ credit_policy: null | CreditPolicyTrue | CreditPolicyFalse;
64
+ risk_assessment: string | null;
65
+ risk_assessment_code: null | (("LOW" | "MEDIUM" | "HIGH") | null);
66
+ highlights?: Highlights;
67
+ employment_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
68
+ equity_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
69
+ profit_loss_trend?: "UP" | "NEUTRAL" | "DOWN" | "UNKNOWN";
70
+ credit_policy_credit_max?: null | {
71
+ value?: null | number;
72
+ policy_currency?: string | null;
73
+ };
74
+ credit_automator_result?: ("no_policy_set" | "approved" | "manual_check" | "reject" | "do_not_evaluate") | null;
75
+ fraud_indicators_count?: number | null;
76
+ }[];
77
+ page_count?: number;
78
+ count?: number;
79
+ credit_policy_used?: "credit_automator" | "credit_policy";
80
+ }
81
+ export interface LocalOrganizationId {
82
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
83
+ id: string | null;
84
+ hash?: string | null;
85
+ }
86
+ export interface Address {
87
+ city: string | null;
88
+ coname: null | string;
89
+ number: string | null;
90
+ street: string | null;
91
+ country: string | null;
92
+ zipcode: number | string | null;
93
+ municipality: string | null;
94
+ postdistrict: string | null;
95
+ }
96
+ export interface FinancialKeyFigures {
97
+ currency: string;
98
+ equity: number | number | null;
99
+ profit_loss: number | number | null;
100
+ solidity: number | number | null;
101
+ short_term_debt: number | number | null;
102
+ long_term_debt: number | number | null;
103
+ ebitda: number | number | null;
104
+ ebit: number | number | null;
105
+ ordinary_profit: number | number | null;
106
+ short_term_trade_payables: number | number | null;
107
+ short_term_receivables_from_sales_and_services: number | number | null;
108
+ }
109
+ export interface Industries {
110
+ main_industry?: null | IndustryObject;
111
+ secondary_industry_codes?: null | SecondaryIndustryObject;
112
+ }
113
+ export interface IndustryObject {
114
+ code: string | null;
115
+ description: string | null;
116
+ isic: NaseOrIsic;
117
+ nace: NaseOrIsic;
118
+ section: string | null;
119
+ }
120
+ export interface NaseOrIsic {
121
+ code: string | null;
122
+ section: string | null;
123
+ description: string | null;
124
+ }
125
+ export interface MonitorEvent {
126
+ new: Event;
127
+ old?: Event;
128
+ date?: string | string;
129
+ registration_date?: string;
130
+ sentence: string;
131
+ type: string;
132
+ weight: number;
133
+ }
134
+ export interface Event {
135
+ valid_from?: string | null;
136
+ valid_to?: string | null;
137
+ value?:
138
+ | ScoreModel
139
+ | string
140
+ | number
141
+ | null
142
+ | {
143
+ entity_id?: string;
144
+ function?: string;
145
+ name?: string;
146
+ };
147
+ }
148
+ export interface ScoreModel {
149
+ date?: string | null;
150
+ probability_of_distress: number | null;
151
+ risk_assessment: string | null;
152
+ risk_assessment_code: ("LOW" | "MEDIUM" | "HIGH") | null;
153
+ score: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
154
+ }
155
+ export interface CreditPolicyTrue {
156
+ allowed: true;
157
+ /**
158
+ * @maxItems 0
159
+ */
160
+ conflicts: [];
161
+ }
162
+ export interface CreditPolicyFalse {
163
+ allowed: false;
164
+ /**
165
+ * @minItems 1
166
+ */
167
+ conflicts: [
168
+ {
169
+ code:
170
+ | "POLICY_RISIKA_SCORE"
171
+ | "POLICY_AUDITOR_ASSISTANCE"
172
+ | "POLICY_COMPANY_TYPE"
173
+ | "POLICY_INDUSTRY"
174
+ | "POLICY_BANKRUPTCIES"
175
+ | "POLICY_BANKRUPTCIES_LONG"
176
+ | "POLICY_AGE"
177
+ | "POLICY_NEGATIVE_EQUITY"
178
+ | "POLICY_LOCAL_ID"
179
+ | "POLICY_ENTITY_ID"
180
+ | "POLICY_PREPAID_PHONE_NUMBER"
181
+ | "POLICY_PHONE_NUMBER_REGISTRY"
182
+ | "POLICY_DISTANCE_TO_CEO"
183
+ | "POLICY_AUDITOR_HAS_ID"
184
+ | "POLICY_PAYMENT_REMARKS_COUNT"
185
+ | "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
186
+ | "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
187
+ | "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
188
+ | "POLICY_DEBT"
189
+ | "POLICY_SHORT_TERM_DEBT"
190
+ | "POLICY_PROFIT_LOSS"
191
+ | "POLICY_NUMBER_OF_EMPLOYEES";
192
+ text: string;
193
+ matched_persons?: {
194
+ entity_id: string;
195
+ name: string | null;
196
+ }[];
197
+ },
198
+ ...{
199
+ code:
200
+ | "POLICY_RISIKA_SCORE"
201
+ | "POLICY_AUDITOR_ASSISTANCE"
202
+ | "POLICY_COMPANY_TYPE"
203
+ | "POLICY_INDUSTRY"
204
+ | "POLICY_BANKRUPTCIES"
205
+ | "POLICY_BANKRUPTCIES_LONG"
206
+ | "POLICY_AGE"
207
+ | "POLICY_NEGATIVE_EQUITY"
208
+ | "POLICY_LOCAL_ID"
209
+ | "POLICY_ENTITY_ID"
210
+ | "POLICY_PREPAID_PHONE_NUMBER"
211
+ | "POLICY_PHONE_NUMBER_REGISTRY"
212
+ | "POLICY_DISTANCE_TO_CEO"
213
+ | "POLICY_AUDITOR_HAS_ID"
214
+ | "POLICY_PAYMENT_REMARKS_COUNT"
215
+ | "POLICY_PAYMENT_REMARKS_CREDITORS_COUNT"
216
+ | "POLICY_PAYMENT_REMARKS_TOTAL_AMOUNT"
217
+ | "POLICY_PAYMENT_REMARKS_MAX_REPAYMENT_TIME"
218
+ | "POLICY_DEBT"
219
+ | "POLICY_SHORT_TERM_DEBT"
220
+ | "POLICY_PROFIT_LOSS"
221
+ | "POLICY_NUMBER_OF_EMPLOYEES";
222
+ text: string;
223
+ matched_persons?: {
224
+ entity_id: string;
225
+ name: string | null;
226
+ }[];
227
+ }[]
228
+ ];
229
+ }
@@ -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-python-3.14","version":"1.1.0","main":"index.js","license":"MIT","type":"module"}
@@ -0,0 +1,3 @@
1
+ // @ts-nocheck
2
+ export type { Relations as Relations } from "./relations"
3
+ export type { RelationsList as RelationsList } from "./relations_list"
@@ -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
+ }
@@ -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
+ }[];
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ export type { Override as CreditOverride } from "./credit/override"
3
+ export type { Credit as Credit } from "./credit"
4
+ export type { Scores as Scores } from "./scores"
@@ -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
+ }