@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,54 @@
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 Debt = {
10
+ local_id?: string;
11
+ name?: string;
12
+ document_id?: string;
13
+ description?: string | null;
14
+ date?: string;
15
+ last_sign_date?: string | null;
16
+ corporate_mortgage?: string[] | null;
17
+ creditors?: {
18
+ name: string;
19
+ local_id: string;
20
+ }[];
21
+ sub_debt?: {
22
+ value: string;
23
+ currency: string;
24
+ priority: string;
25
+ creditors: {
26
+ name: string;
27
+ local_id: string;
28
+ }[];
29
+ document_id: string;
30
+ } | null;
31
+ currency?:
32
+ | "SEK"
33
+ | "QAR"
34
+ | "JPY"
35
+ | "AUD"
36
+ | "NOK"
37
+ | "INR"
38
+ | "GBP"
39
+ | "CHF"
40
+ | "ARS"
41
+ | "CZK"
42
+ | "RUB"
43
+ | "CAD"
44
+ | "DKK"
45
+ | "EUR"
46
+ | "USD"
47
+ | "PLN";
48
+ debt_value?: string;
49
+ registration_fee_paid?: string | null;
50
+ interest_rate?: string | null;
51
+ interest_type?: string | null;
52
+ priority?: string;
53
+ change_date?: string | null;
54
+ }[];
@@ -0,0 +1,3 @@
1
+ // @ts-nocheck
2
+ export type { Debt as Debt } from "./debt"
3
+ export type { Properties as Properties } from "./properties"
@@ -0,0 +1,91 @@
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 Properties = (
10
+ | {
11
+ building_number: string | null;
12
+ district: string | null;
13
+ floor: string | null;
14
+ land_value: number | null;
15
+ liability_available: boolean | null;
16
+ liability_data: {
17
+ document_id: string | null;
18
+ priority: string | null;
19
+ date: string | null;
20
+ type: string | null;
21
+ value: string | null;
22
+ currency: string | null;
23
+ interest_rate: string | null;
24
+ interest_type: string | null;
25
+ creditor_name: string | null;
26
+ creditor_local_id: string | null;
27
+ }[];
28
+ owners: OwnerObject;
29
+ property_id: string | null;
30
+ property_type: string | null;
31
+ property_value: number | null;
32
+ side_door: string | null;
33
+ street: string | null;
34
+ suite: string | null;
35
+ valuation_date: string | null;
36
+ zipcode: string | null;
37
+ }
38
+ | {
39
+ property_id: string | null;
40
+ property_type: string | null;
41
+ street: string | null;
42
+ building_number: string | null;
43
+ floor: string | null;
44
+ suite: string | null;
45
+ side_door: string | null;
46
+ zipcode: string | null;
47
+ district: string | null;
48
+ owners: OwnerObject;
49
+ property_value: number | null;
50
+ land_value: number | null;
51
+ valuation_date: string | null;
52
+ change_ts: string | null;
53
+ has_liability: boolean | null;
54
+ }
55
+ | {
56
+ from_date: string | null;
57
+ to_date: string | null;
58
+ changes: {
59
+ property_id?: string | null;
60
+ property_type?: string | null;
61
+ street?: string | null;
62
+ building_number?: string | null;
63
+ floor?: string | null;
64
+ suite?: string | null;
65
+ side_door?: string | null;
66
+ zipcode?: string | null;
67
+ district?: string | null;
68
+ change_date?: string | null;
69
+ }[];
70
+ }
71
+ )[];
72
+
73
+ export interface OwnerObject {
74
+ person: null | {
75
+ /**
76
+ * This interface was referenced by `undefined`'s JSON-Schema definition
77
+ * via the `patternProperty` "^.*$".
78
+ */
79
+ [k: string]: number;
80
+ };
81
+ company: null | {
82
+ /**
83
+ * This interface was referenced by `undefined`'s JSON-Schema definition
84
+ * via the `patternProperty` "^.*$".
85
+ */
86
+ [k: string]: {
87
+ local_id?: string | null;
88
+ percentage?: number | null;
89
+ };
90
+ };
91
+ }
@@ -0,0 +1,74 @@
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 Company {
10
+ search_result: {
11
+ local_organization_id: LocalOrganizationId;
12
+ active?: boolean | null;
13
+ company_name: string;
14
+ score?: (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null;
15
+ company_type?: string | null;
16
+ employees_interval?: null | string;
17
+ webpage?: null | string;
18
+ credit_policy?: null | CreditPolicyTrue | CreditPolicyFalse;
19
+ advertisement_protected?: boolean | null;
20
+ address?: {
21
+ city: string | null;
22
+ coname?: string | null;
23
+ number: string | null;
24
+ street: string | null;
25
+ country: string | null;
26
+ zipcode: string | number | null;
27
+ municipality: string | null;
28
+ postdistrict: string | null;
29
+ };
30
+ number_of_employees?: {
31
+ specific: number | null;
32
+ interval: string | null;
33
+ };
34
+ operating_company?: {
35
+ group_id: string | null;
36
+ primary_id: string | null;
37
+ primary_name: string | null;
38
+ };
39
+ }[];
40
+ rows?: {
41
+ from: number;
42
+ to: number;
43
+ };
44
+ count: number;
45
+ time_elapsed: number;
46
+ }
47
+ export interface LocalOrganizationId {
48
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
49
+ id: string | null;
50
+ hash?: string | null;
51
+ }
52
+ export interface CreditPolicyTrue {
53
+ allowed: true;
54
+ /**
55
+ * @maxItems 0
56
+ */
57
+ conflicts: [];
58
+ }
59
+ export interface CreditPolicyFalse {
60
+ allowed: false;
61
+ /**
62
+ * @minItems 1
63
+ */
64
+ conflicts: [
65
+ {
66
+ code: string;
67
+ text: string;
68
+ },
69
+ ...{
70
+ code: string;
71
+ text: string;
72
+ }[]
73
+ ];
74
+ }
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ export type { Company as Company } from "./company"
3
+ export type { Person as Person } from "./person"
4
+ export type { ProductionUnits as ProductionUnits } from "./production_units"
@@ -0,0 +1,22 @@
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 Person {
10
+ search_result: {
11
+ personal_id: number | string;
12
+ name: string;
13
+ aliases: string[];
14
+ functions: PersonSearchFunction[];
15
+ active_company_relations: string[];
16
+ }[];
17
+ count: number;
18
+ }
19
+ export interface PersonSearchFunction {
20
+ active: boolean;
21
+ function: null | string;
22
+ }
@@ -0,0 +1,38 @@
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 ProductionUnits {
10
+ search_result: {
11
+ unit_id: string;
12
+ local_organization_id: LocalOrganizationId;
13
+ active: boolean;
14
+ name: string;
15
+ valid_from: string;
16
+ valid_to: string | null;
17
+ employees_number: number | null;
18
+ industry_code: string;
19
+ industry_description: string;
20
+ advertisement_protection?: boolean | null;
21
+ address: {
22
+ city: string | null;
23
+ coname: string | null;
24
+ number: string | null;
25
+ street: string | null;
26
+ country?: string | null;
27
+ zipcode: string | number | null;
28
+ municipality: string | null;
29
+ postdistrict: string | null;
30
+ };
31
+ }[];
32
+ count: number;
33
+ }
34
+ export interface LocalOrganizationId {
35
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
36
+ id: string | null;
37
+ hash?: string | null;
38
+ }
@@ -0,0 +1,29 @@
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 List =
10
+ | []
11
+ | [
12
+ {
13
+ count: number;
14
+ date_of_incorporation: string;
15
+ local_organization_id: LocalOrganizationId;
16
+ risika_score: number | null;
17
+ status: string | null;
18
+ status_code: string;
19
+ name: string;
20
+ city: string;
21
+ company_type: string;
22
+ }
23
+ ];
24
+
25
+ export interface LocalOrganizationId {
26
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
27
+ id: string | null;
28
+ hash?: string | null;
29
+ }
@@ -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 Register {
10
+ status: "ok";
11
+ }
@@ -0,0 +1,18 @@
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 Summary =
10
+ | []
11
+ | [
12
+ {
13
+ name?: "view_count" | "average_credit_max" | "low_risk_companies";
14
+ count?: number | null;
15
+ direction?: string | null;
16
+ localized_name?: string;
17
+ }
18
+ ];
@@ -0,0 +1,6 @@
1
+ // @ts-nocheck
2
+ export type { List as CompanyVisitsList } from "./company_visits/list"
3
+ export type { Register as CompanyVisitsRegister } from "./company_visits/register"
4
+ export type { Summary as CompanyVisitsSummary } from "./company_visits/summary"
5
+ export type { List as PersonVisitsList } from "./person_visits/list"
6
+ export type { Register as PersonVisitsRegister } from "./person_visits/register"
@@ -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 List = {
10
+ personal_id: number | string;
11
+ name: string;
12
+ aliases: string[];
13
+ functions: PersonSearchFunction[];
14
+ active_company_relations: string[];
15
+ }[];
16
+
17
+ export interface PersonSearchFunction {
18
+ active: boolean;
19
+ function: null | string;
20
+ }
@@ -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 Register {
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 Exception {
10
+ status: "ok";
11
+ }
package/test/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ // @ts-nocheck
2
+ export type { Exception as Exception } from "./exception"
@@ -0,0 +1,2 @@
1
+ // @ts-nocheck
2
+ export type { LocalId as LocalId } from "./local_id"
@@ -0,0 +1,21 @@
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 LocalId {
10
+ matches?: {
11
+ /**
12
+ * This interface was referenced by `undefined`'s JSON-Schema definition
13
+ * via the `patternProperty` "^.*$".
14
+ */
15
+ [k: string]: {
16
+ country: string;
17
+ id: string;
18
+ name: string;
19
+ }[];
20
+ };
21
+ }