@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
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # Risika API Response Types
2
+
3
+ This package contains all the types generated from the JSON schemas of the Risika API.
4
+
5
+ ## Usage
6
+
7
+ You can use the [Swagger API](https://api.risika.com/swagger/pc007-moneypennies/#/) for reference.
8
+
9
+ The import system works based on the general microservices names in the API.
10
+ So if you want to get something from Account you can import it like this:
11
+
12
+
13
+ ```ts
14
+ import { Account } from '@risika/api-response-types';
15
+ ```
16
+ then the Account object will contain all types related to the Account microservice.
17
+ for example:
18
+ ```ts
19
+ const creditPolicyReturnType: Account.EnterpriseCreditPoliciesCreate
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 Decrement {
10
+ status: "ok";
11
+ }
@@ -0,0 +1,62 @@
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
+ created: string;
11
+ enabled: boolean;
12
+ policy: {
13
+ age_limit: number | null;
14
+ auditor_has_id: boolean | null;
15
+ bankruptcy_limit: number | null;
16
+ bankruptcy_limit_long: number | null;
17
+ debt: null | number;
18
+ distance_to_ceo: number | null;
19
+ exclude_companies:
20
+ | {
21
+ local_organization_id: {
22
+ country: string;
23
+ id: string;
24
+ name: string;
25
+ };
26
+ }[]
27
+ | null;
28
+ exclude_company_types: string[] | null;
29
+ exclude_industries: null | string[];
30
+ exclude_level_of_auditor_assistances: null | string[];
31
+ exclude_persons:
32
+ | {
33
+ local_person_id: {
34
+ country: string;
35
+ id: string;
36
+ name: string;
37
+ };
38
+ }[]
39
+ | null;
40
+ exclude_risika_scores:
41
+ | null
42
+ | {
43
+ BOHR?: ((1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null)[];
44
+ }
45
+ | {
46
+ BOHR: ((1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | null)[];
47
+ };
48
+ exclude_vat: string[] | null;
49
+ negative_equity_limit: number | null;
50
+ number_of_employees: number | null;
51
+ payment_remarks_count: number | null;
52
+ payment_remarks_creditors: number | null;
53
+ payment_remarks_max_repayment_time: number | null;
54
+ payment_remarks_total_amount: number | null;
55
+ phone_number_registry: boolean | null;
56
+ prepaid_phone_number: boolean | null;
57
+ profit_loss: number | null;
58
+ short_term_debt: number | null;
59
+ };
60
+ product?: "BOHR" | "NEWTON";
61
+ updated: string;
62
+ }
@@ -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 GetActiveCountries {
10
+ countries: string[];
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 Set {
10
+ status: "ok";
11
+ }
@@ -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 Create {
10
+ status: "ok";
11
+ policy_id: number;
12
+ }
@@ -0,0 +1,106 @@
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 CreditAutomatorData = {
10
+ local_id: string;
11
+ credit_policy_action:
12
+ | "approve_with_value"
13
+ | "reject"
14
+ | "manual_check"
15
+ | "undefined"
16
+ | "approve"
17
+ | "adjust_credit_max";
18
+ credit_policy_limit: number | null;
19
+ credit_rules_applied: string[];
20
+ currency:
21
+ | (
22
+ | "SEK"
23
+ | "QAR"
24
+ | "JPY"
25
+ | "AUD"
26
+ | "NOK"
27
+ | "INR"
28
+ | "GBP"
29
+ | "CHF"
30
+ | "ARS"
31
+ | "CZK"
32
+ | "RUB"
33
+ | "CAD"
34
+ | "DKK"
35
+ | "EUR"
36
+ | "USD"
37
+ | "PLN"
38
+ )
39
+ | null;
40
+ company_type?: string;
41
+ name?: string;
42
+ notes: null | string;
43
+ details: {
44
+ outcome_name: string;
45
+ outcome_description: string;
46
+ steps: {
47
+ title: string;
48
+ truth_value: string;
49
+ short_description: boolean | string;
50
+ }[];
51
+ policy_name: string;
52
+ policy_id: number;
53
+ variables_with_null: unknown[];
54
+ };
55
+ stopper?: null | string;
56
+ }[];
57
+ export type LocalOrganizationIdList = LocalOrganizationId[];
58
+
59
+ export interface Evaluate {
60
+ count: number;
61
+ currency:
62
+ | "SEK"
63
+ | "QAR"
64
+ | "JPY"
65
+ | "AUD"
66
+ | "NOK"
67
+ | "INR"
68
+ | "GBP"
69
+ | "CHF"
70
+ | "ARS"
71
+ | "CZK"
72
+ | "RUB"
73
+ | "CAD"
74
+ | "DKK"
75
+ | "EUR"
76
+ | "USD"
77
+ | "PLN";
78
+ data: CreditAutomatorData;
79
+ output_currency:
80
+ | "SEK"
81
+ | "QAR"
82
+ | "JPY"
83
+ | "AUD"
84
+ | "NOK"
85
+ | "INR"
86
+ | "GBP"
87
+ | "CHF"
88
+ | "ARS"
89
+ | "CZK"
90
+ | "RUB"
91
+ | "CAD"
92
+ | "DKK"
93
+ | "EUR"
94
+ | "USD"
95
+ | "PLN";
96
+ page_count: number;
97
+ rejected_ids: {
98
+ count: number;
99
+ local_ids: LocalOrganizationIdList;
100
+ };
101
+ }
102
+ export interface LocalOrganizationId {
103
+ country: ("DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk") | null;
104
+ id: string | null;
105
+ hash?: string | null;
106
+ }
@@ -0,0 +1,96 @@
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 CreditAutomatorData = {
10
+ local_id: string;
11
+ credit_policy_action:
12
+ | "approve_with_value"
13
+ | "reject"
14
+ | "manual_check"
15
+ | "undefined"
16
+ | "approve"
17
+ | "adjust_credit_max";
18
+ credit_policy_limit: number | null;
19
+ credit_rules_applied: string[];
20
+ currency:
21
+ | (
22
+ | "SEK"
23
+ | "QAR"
24
+ | "JPY"
25
+ | "AUD"
26
+ | "NOK"
27
+ | "INR"
28
+ | "GBP"
29
+ | "CHF"
30
+ | "ARS"
31
+ | "CZK"
32
+ | "RUB"
33
+ | "CAD"
34
+ | "DKK"
35
+ | "EUR"
36
+ | "USD"
37
+ | "PLN"
38
+ )
39
+ | null;
40
+ company_type?: string;
41
+ name?: string;
42
+ notes: null | string;
43
+ details: {
44
+ outcome_name: string;
45
+ outcome_description: string;
46
+ steps: {
47
+ title: string;
48
+ truth_value: string;
49
+ short_description: boolean | string;
50
+ }[];
51
+ policy_name: string;
52
+ policy_id: number;
53
+ variables_with_null: unknown[];
54
+ };
55
+ stopper?: null | string;
56
+ }[];
57
+
58
+ export interface EvaluateMonitoringList {
59
+ count?: number;
60
+ currency?:
61
+ | "SEK"
62
+ | "QAR"
63
+ | "JPY"
64
+ | "AUD"
65
+ | "NOK"
66
+ | "INR"
67
+ | "GBP"
68
+ | "CHF"
69
+ | "ARS"
70
+ | "CZK"
71
+ | "RUB"
72
+ | "CAD"
73
+ | "DKK"
74
+ | "EUR"
75
+ | "USD"
76
+ | "PLN";
77
+ data?: CreditAutomatorData;
78
+ output_currency?:
79
+ | "SEK"
80
+ | "QAR"
81
+ | "JPY"
82
+ | "AUD"
83
+ | "NOK"
84
+ | "INR"
85
+ | "GBP"
86
+ | "CHF"
87
+ | "ARS"
88
+ | "CZK"
89
+ | "RUB"
90
+ | "CAD"
91
+ | "DKK"
92
+ | "EUR"
93
+ | "USD"
94
+ | "PLN";
95
+ page_count?: number;
96
+ }
@@ -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,142 @@
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 DefaultOnNull = ("if_true" | "if_false" | "reject") | null;
10
+ export type EnterprisePolicyIncludeRule = EnterprisePolicyIncludeRule1 & {
11
+ category:
12
+ | "company_type"
13
+ | "industry_code"
14
+ | "local_id"
15
+ | "risk_assessment"
16
+ | "status"
17
+ | "type_of_auditor_assistance"
18
+ | "entity_id";
19
+ default_on_null?: DefaultOnNull;
20
+ /**
21
+ * @minItems 1
22
+ */
23
+ exclude?: [string, ...string[]];
24
+ /**
25
+ * @minItems 1
26
+ */
27
+ include?: [string, ...string[]];
28
+ };
29
+ export type EnterprisePolicyIncludeRule1 =
30
+ | {
31
+ [k: string]: unknown;
32
+ }
33
+ | {
34
+ [k: string]: unknown;
35
+ };
36
+ export type SchemaEnterprisePolicyMinMaxRule =
37
+ | {
38
+ category:
39
+ | "equity"
40
+ | "equity_without_dividend"
41
+ | "distance_to_ceo"
42
+ | "risika_score"
43
+ | "employees_number"
44
+ | "employees_interval_last_value"
45
+ | "age"
46
+ | "bankrupt_connections"
47
+ | "bankrupt_connections_long";
48
+ default_on_null?: DefaultOnNull;
49
+ value_a: string | number | null;
50
+ value_b?: null;
51
+ tolerance: "greater_than" | "equals" | "less_than";
52
+ }
53
+ | {
54
+ category:
55
+ | "equity"
56
+ | "equity_without_dividend"
57
+ | "distance_to_ceo"
58
+ | "risika_score"
59
+ | "employees_number"
60
+ | "employees_interval_last_value"
61
+ | "age"
62
+ | "bankrupt_connections"
63
+ | "bankrupt_connections_long";
64
+ default_on_null?: DefaultOnNull;
65
+ value_a: string | number | null;
66
+ value_b: string | number | null;
67
+ tolerance: "between";
68
+ };
69
+
70
+ export interface Policy {
71
+ currency?:
72
+ | "SEK"
73
+ | "QAR"
74
+ | "JPY"
75
+ | "AUD"
76
+ | "NOK"
77
+ | "INR"
78
+ | "GBP"
79
+ | "CHF"
80
+ | "ARS"
81
+ | "CZK"
82
+ | "RUB"
83
+ | "CAD"
84
+ | "DKK"
85
+ | "EUR"
86
+ | "USD"
87
+ | "PLN";
88
+ nodes: (
89
+ | {
90
+ condition:
91
+ | EnterprisePolicyEqualsRule
92
+ | EnterprisePolicyIncludeRule
93
+ | SchemaEnterprisePolicyMinMaxRule
94
+ | {
95
+ category: "local_id_in_monitoring_list";
96
+ default_on_null?: DefaultOnNull;
97
+ list_id: number;
98
+ };
99
+ id: string;
100
+ node_type: "rule";
101
+ }
102
+ | {
103
+ action:
104
+ | {
105
+ lower_limit?: number | null;
106
+ outcome: "adjust_credit_max";
107
+ percentage: number | null;
108
+ upper_limit?: number | null;
109
+ }
110
+ | {
111
+ notes?: string | null;
112
+ outcome: "reject";
113
+ }
114
+ | {
115
+ notes?: string | null;
116
+ outcome: "manual_check";
117
+ }
118
+ | {
119
+ outcome: "approve_credit_max";
120
+ }
121
+ | {
122
+ outcome: "approve_with_value";
123
+ value: number;
124
+ }
125
+ | {
126
+ outcome: "do_not_evaluate";
127
+ };
128
+ id: string;
129
+ node_type: "action";
130
+ }
131
+ )[];
132
+ edges: {
133
+ relation_type: "if_true" | "if_false";
134
+ source_id: string;
135
+ target_id: string;
136
+ }[];
137
+ }
138
+ export interface EnterprisePolicyEqualsRule {
139
+ category: "prepaid_phone" | "is_not_active" | "audit_selected" | "has_auditor_comments";
140
+ default_on_null?: DefaultOnNull;
141
+ equals: boolean;
142
+ }
@@ -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 type OutputsTable = {
10
+ Column: string;
11
+ Countries: string;
12
+ Description: string | null;
13
+ }[];
@@ -0,0 +1,14 @@
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 RulesTable = {
10
+ Countries: string;
11
+ Description: string | null;
12
+ Examples: string;
13
+ Rule: string;
14
+ }[];
@@ -0,0 +1,72 @@
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 TemplateData = null | {
10
+ api_key: string;
11
+ variant: string | null;
12
+ placeholder?: string;
13
+ unit?: null;
14
+ input_data: InputData;
15
+ };
16
+ export type InputData =
17
+ | null
18
+ | {
19
+ field_type?: string | null;
20
+ unit?: null;
21
+ min_value?: null | number;
22
+ max_value?: null | number;
23
+ }
24
+ | {
25
+ field_type?: string | null;
26
+ unit?: string | null;
27
+ };
28
+
29
+ export interface Variables {
30
+ prepaid_phone?: Template;
31
+ is_not_active?: Template;
32
+ company_type?: Template;
33
+ industry_code?: Template;
34
+ distance_to_ceo?: Template;
35
+ employees_number?: Template;
36
+ local_id_in_monitoring_list?: Template;
37
+ local_id?: Template;
38
+ type_of_auditor_assistance?: Template;
39
+ age?: Template;
40
+ entity_id?: Template;
41
+ equity_dk_group?: Template;
42
+ bankrupt_connections_group?: Template;
43
+ credit_rating_group?: Template;
44
+ has_unsettled_payment_remarks?: Template;
45
+ assets?: Template;
46
+ debt?: Template;
47
+ employees_interval_last_value?: Template;
48
+ equity?: Template;
49
+ profit_loss?: Template;
50
+ reject?: Template;
51
+ approve?: Template;
52
+ manual_check?: Template;
53
+ }
54
+ export interface Template {
55
+ label: string;
56
+ pro_tips: string;
57
+ data: {
58
+ variable_category: string;
59
+ variable_category_key: string;
60
+ type: string;
61
+ customization: null | string;
62
+ };
63
+ template: {
64
+ title: string;
65
+ template_data: TemplateData;
66
+ options?: {
67
+ label?: string;
68
+ value?: string | number;
69
+ node_text?: string | number;
70
+ }[];
71
+ }[];
72
+ }
@@ -0,0 +1,19 @@
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 Update {
10
+ status: "ok";
11
+ updated_columns: {
12
+ /**
13
+ * This interface was referenced by `undefined`'s JSON-Schema definition
14
+ * via the `patternProperty` "^.*$".
15
+ */
16
+ [k: string]: number | string | boolean | CreditAutomatorPolicy;
17
+ };
18
+ }
19
+ export interface CreditAutomatorPolicy {}
@@ -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 Validate {
10
+ status: "ok";
11
+ warnings: {
12
+ error_code: string;
13
+ node_id: string;
14
+ type: string;
15
+ error_message: string;
16
+ }[];
17
+ }
@@ -0,0 +1,35 @@
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 EnterpriseCreditPolicies =
10
+ | {
11
+ policy_count: number;
12
+ policies: {
13
+ id?: number;
14
+ country?: "DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk";
15
+ description?: string;
16
+ enabled?: boolean;
17
+ created?: string;
18
+ updated?: string;
19
+ name?: string;
20
+ owner_id?: number;
21
+ }[];
22
+ }
23
+ | {
24
+ id?: number;
25
+ country?: "DK" | "SE" | "NO" | "FI" | "FO" | "DE" | "UK" | "dk" | "se" | "no" | "fi" | "fo" | "de" | "uk";
26
+ description?: string;
27
+ enabled?: boolean;
28
+ created?: string;
29
+ updated?: string;
30
+ name?: string;
31
+ owner_id?: number;
32
+ policy?: CreditAutomatorPolicy;
33
+ };
34
+
35
+ export interface CreditAutomatorPolicy {}
@@ -0,0 +1,21 @@
1
+ // @ts-nocheck
2
+ export type { Decrement as CounterDecrement } from "./counter/decrement"
3
+ export type { Get as CreditPolicyGet } from "./credit_policy/get"
4
+ export type { GetActiveCountries as CreditPolicyGetActiveCountries } from "./credit_policy/get_active_countries"
5
+ export type { Set as CreditPolicySet } from "./credit_policy/set"
6
+ export type { Create as EnterpriseCreditPoliciesCreate } from "./enterprise_credit_policies/create"
7
+ export type { Evaluate as EnterpriseCreditPoliciesEvaluate } from "./enterprise_credit_policies/evaluate"
8
+ export type { EvaluateMonitoringList as EnterpriseCreditPoliciesEvaluateMonitoringList } from "./enterprise_credit_policies/evaluate_monitoring_list"
9
+ export type { Remove as EnterpriseCreditPoliciesRemove } from "./enterprise_credit_policies/remove"
10
+ export type { Policy as EnterpriseCreditPoliciesSchemaPolicy } from "./enterprise_credit_policies/schema/policy"
11
+ export type { OutputsTable as EnterpriseCreditPoliciesSupportOutputsTable } from "./enterprise_credit_policies/support/outputs_table"
12
+ export type { RulesTable as EnterpriseCreditPoliciesSupportRulesTable } from "./enterprise_credit_policies/support/rules_table"
13
+ export type { Variables as EnterpriseCreditPoliciesSupportVariables } from "./enterprise_credit_policies/support/variables"
14
+ export type { Update as EnterpriseCreditPoliciesUpdate } from "./enterprise_credit_policies/update"
15
+ export type { Validate as EnterpriseCreditPoliciesValidate } from "./enterprise_credit_policies/validate"
16
+ export type { EnterpriseCreditPolicies as EnterpriseCreditPolicies } from "./enterprise_credit_policies"
17
+ export type { Add as NotesAdd } from "./notes/add"
18
+ export type { Get as NotesGet } from "./notes/get"
19
+ export type { List as NotesList } from "./notes/list"
20
+ export type { Remove as NotesRemove } from "./notes/remove"
21
+ export type { Status as Status } from "./status"