taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit c4827255fc86253a8924dea560926fcac01ab0fe
parent 17243f70f959428c03c63f5524e9e4a2bf552e4d
Author: Florian Dold <florian@dold.me>
Date:   Thu, 24 Apr 2025 17:01:30 +0200

util: fix import order

Diffstat:
Mpackages/taler-util/src/aml/aml-properties.ts | 19++++++++++++++-----
Mpackages/taler-util/src/taler-account-properties.ts | 214+++++++++++++++++++++++++++++++++++++++----------------------------------------
2 files changed, 120 insertions(+), 113 deletions(-)

diff --git a/packages/taler-util/src/aml/aml-properties.ts b/packages/taler-util/src/aml/aml-properties.ts @@ -1,6 +1,9 @@ -import { AccountProperties, TalerAmlProperties } from "@gnu-taler/taler-util"; +import { TalerAmlProperties } from "../taler-account-properties.js"; import { TalerFormAttributes } from "../taler-form-attributes.js"; -import { LegitimizationRuleSet } from "../types-taler-kyc-aml.js"; +import { + AccountProperties, + LegitimizationRuleSet, +} from "../types-taler-kyc-aml.js"; /** * List of account properties required by TOPS @@ -63,7 +66,7 @@ export const TOPS_AML_PROPERTIES: PropertiesMapInfo< if (formId === "vqf_902_1_officer") { return !!attributes[TalerFormAttributes.PEP_DOMESTIC]; } - return undefined + return undefined; }, }, PEP_FOREIGN: { @@ -78,12 +81,18 @@ export const TOPS_AML_PROPERTIES: PropertiesMapInfo< }, HIGH_RISK_CUSTOMER: { deriveProperty(formId, limits, state, attributes) { - return attributes[TalerFormAttributes.RISK_CLASSIFICATION_LEVEL] === "HIGH_RISK"; + return ( + attributes[TalerFormAttributes.RISK_CLASSIFICATION_LEVEL] === + "HIGH_RISK" + ); }, }, HIGH_RISK_COUNTRY: { deriveProperty(formId, limits, state, attributes) { - return attributes[TalerFormAttributes.COUNTRY_RISK_NATIONALITY_LEVEL] === "HIGH"; + return ( + attributes[TalerFormAttributes.COUNTRY_RISK_NATIONALITY_LEVEL] === + "HIGH" + ); }, }, ACCOUNT_IDLE: { diff --git a/packages/taler-util/src/taler-account-properties.ts b/packages/taler-util/src/taler-account-properties.ts @@ -26,111 +26,109 @@ */ export const TalerAmlProperties = { - /** - * Description: Current note on the GWG file. - * - * GANA Type: String - * Deployment: TOPS - */ - FILE_NOTE: "FILE_NOTE" as const, - /** - * Description: Customer name or internal alias. - * - * GANA Type: String - * Deployment: TOPS - */ - CUSTOMER_LABEL: "CUSTOMER_LABEL" as const, - /** - * Description: Boolean flag indicating whether the account has been opened. The definition of opening an account is deployment-specific. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - ACCOUNT_OPEN: "ACCOUNT_OPEN" as const, - /** - * Description: True if the customer is a domestic PEP. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - PEP_DOMESTIC: "PEP_DOMESTIC" as const, - /** - * Description: True if the customer is a foreign PEP. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - PEP_FOREIGN: "PEP_FOREIGN" as const, - /** - * Description: True if the customer is a international organization PEP. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - PEP_INTERNATIONAL_ORGANIZATION: "PEP_INTERNATIONAL_ORGANIZATION" as const, - /** - * Description: True if the customer is a high-risk business. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - HIGH_RISK_CUSTOMER: "HIGH_RISK_CUSTOMER" as const, - /** - * Description: True if the customer is associated with a high-risk country. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - HIGH_RISK_COUNTRY: "HIGH_RISK_COUNTRY" as const, - /** - * Description: The account has been marked as idle. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - ACCOUNT_IDLE: "ACCOUNT_IDLE" as const, - /** - * Description: The MROS reporting state for the account. - * - * GANA Type: 'NONE' | 'INVESTIGATION_PENDING' | 'INVESTIGATION_COMPLETED_WITHOUT_SUSPICION' | 'REPORTED_SUSPICION_SIMPLE' | 'REPORTED_SUSPICION_SUBSTANTIATED' - * Deployment: TOPS - */ - INVESTIGATION_STATE: "INVESTIGATION_STATE" as const, - /** - * Description: Informal reason why the AML investigation was triggered. Examples include suspicious transaction or (automated) sanction list match - * - * GANA Type: String - * Deployment: TOPS - */ - INVESTIGATION_TRIGGER: "INVESTIGATION_TRIGGER" as const, - /** - * Description: Identifies the sanction list entry that the account matched against (best match, does not mean it was a good match) - * - * GANA Type: String - * Deployment: TOPS - */ - SANCTION_LIST_BEST_MATCH: "SANCTION_LIST_BEST_MATCH" as const, - /** - * Description: Score for how good the sanction list match was (0: none, 10**9: perfect match) - * - * GANA Type: Integer - * Deployment: TOPS - */ - SANCTION_LIST_RATING: "SANCTION_LIST_RATING" as const, - /** - * Description: Score for how much supporting data we had for the sanction list match (0: none, 10**9: all fields available) - * - * GANA Type: Integer - * Deployment: TOPS - */ - SANCTION_LIST_CONFIDENCE: "SANCTION_LIST_CONFIDENCE" as const, - /** - * Description: Suppress flagging this account when it creates a hit on a sanctions list, this is a false-positive. - * - * GANA Type: Boolean - * Deployment: TOPS - */ - SANCTION_LIST_SUPPRESS: "SANCTION_LIST_SUPPRESS" as const, - - -} + /** + * Description: Current note on the GWG file. + * + * GANA Type: String + * Deployment: TOPS + */ + FILE_NOTE: "FILE_NOTE" as const, + /** + * Description: Customer name or internal alias. + * + * GANA Type: String + * Deployment: TOPS + */ + CUSTOMER_LABEL: "CUSTOMER_LABEL" as const, + /** + * Description: Boolean flag indicating whether the account has been opened. The definition of opening an account is deployment-specific. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + ACCOUNT_OPEN: "ACCOUNT_OPEN" as const, + /** + * Description: True if the customer is a domestic PEP. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + PEP_DOMESTIC: "PEP_DOMESTIC" as const, + /** + * Description: True if the customer is a foreign PEP. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + PEP_FOREIGN: "PEP_FOREIGN" as const, + /** + * Description: True if the customer is a international organization PEP. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + PEP_INTERNATIONAL_ORGANIZATION: "PEP_INTERNATIONAL_ORGANIZATION" as const, + /** + * Description: True if the customer is a high-risk business. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + HIGH_RISK_CUSTOMER: "HIGH_RISK_CUSTOMER" as const, + /** + * Description: True if the customer is associated with a high-risk country. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + HIGH_RISK_COUNTRY: "HIGH_RISK_COUNTRY" as const, + /** + * Description: The account has been marked as idle. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + ACCOUNT_IDLE: "ACCOUNT_IDLE" as const, + /** + * Description: The MROS reporting state for the account. + * + * GANA Type: 'NONE' | 'INVESTIGATION_PENDING' | 'INVESTIGATION_COMPLETED_WITHOUT_SUSPICION' | 'REPORTED_SUSPICION_SIMPLE' | 'REPORTED_SUSPICION_SUBSTANTIATED' + * Deployment: TOPS + */ + INVESTIGATION_STATE: "INVESTIGATION_STATE" as const, + /** + * Description: Informal reason why the AML investigation was triggered. Examples include suspicious transaction or (automated) sanction list match + * + * GANA Type: String + * Deployment: TOPS + */ + INVESTIGATION_TRIGGER: "INVESTIGATION_TRIGGER" as const, + /** + * Description: Identifies the sanction list entry that the account matched against (best match, does not mean it was a good match) + * + * GANA Type: String + * Deployment: TOPS + */ + SANCTION_LIST_BEST_MATCH: "SANCTION_LIST_BEST_MATCH" as const, + /** + * Description: Score for how good the sanction list match was (0: none, 10**9: perfect match) + * + * GANA Type: Integer + * Deployment: TOPS + */ + SANCTION_LIST_RATING: "SANCTION_LIST_RATING" as const, + /** + * Description: Score for how much supporting data we had for the sanction list match (0: none, 10**9: all fields available) + * + * GANA Type: Integer + * Deployment: TOPS + */ + SANCTION_LIST_CONFIDENCE: "SANCTION_LIST_CONFIDENCE" as const, + /** + * Description: Suppress flagging this account when it creates a hit on a sanctions list, this is a false-positive. + * + * GANA Type: Boolean + * Deployment: TOPS + */ + SANCTION_LIST_SUPPRESS: "SANCTION_LIST_SUPPRESS" as const, +};