@artu-ai/compliance-sdk 0.0.6 → 0.3.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.
- package/dist/errors/api.d.ts +160 -0
- package/dist/errors/api.d.ts.map +1 -0
- package/dist/errors/api.js +255 -0
- package/dist/errors/base.d.ts +87 -0
- package/dist/errors/base.d.ts.map +1 -0
- package/dist/errors/base.js +84 -0
- package/dist/errors/index.d.ts +32 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +35 -0
- package/dist/errors/upload.d.ts +109 -0
- package/dist/errors/upload.d.ts.map +1 -0
- package/dist/errors/upload.js +163 -0
- package/dist/errors/validation.d.ts +98 -0
- package/dist/errors/validation.d.ts.map +1 -0
- package/dist/errors/validation.js +129 -0
- package/dist/exports/base.d.ts +12 -0
- package/dist/exports/base.d.ts.map +1 -0
- package/dist/exports/base.js +21 -0
- package/dist/exports/index.d.ts +40 -0
- package/dist/exports/index.d.ts.map +1 -0
- package/dist/exports/index.js +59 -0
- package/dist/{mexico → exports/mexico}/actividad-vulnerable/avi.d.ts +130 -138
- package/dist/exports/mexico/actividad-vulnerable/avi.d.ts.map +1 -0
- package/dist/exports/mexico/actividad-vulnerable/avi.js +108 -0
- package/dist/{mexico → exports/mexico}/actividad-vulnerable/jys.d.ts +147 -158
- package/dist/exports/mexico/actividad-vulnerable/jys.d.ts.map +1 -0
- package/dist/exports/mexico/actividad-vulnerable/jys.js +115 -0
- package/dist/{mexico → exports/mexico}/actividad-vulnerable/tsc.d.ts +118 -129
- package/dist/exports/mexico/actividad-vulnerable/tsc.d.ts.map +1 -0
- package/dist/exports/mexico/actividad-vulnerable/tsc.js +103 -0
- package/dist/exports/mexico/index.d.ts +48 -0
- package/dist/exports/mexico/index.d.ts.map +1 -0
- package/dist/exports/mexico/index.js +70 -0
- package/dist/models/Address.d.ts +118 -0
- package/dist/models/Address.d.ts.map +1 -0
- package/dist/models/Address.js +187 -0
- package/dist/models/BankAccount.d.ts +124 -0
- package/dist/models/BankAccount.d.ts.map +1 -0
- package/dist/models/BankAccount.js +190 -0
- package/dist/models/Client.d.ts +170 -0
- package/dist/models/Client.d.ts.map +1 -0
- package/dist/models/Client.js +275 -0
- package/dist/models/ContactMethod.d.ts +102 -0
- package/dist/models/ContactMethod.d.ts.map +1 -0
- package/dist/models/ContactMethod.js +152 -0
- package/dist/models/Document.d.ts +167 -0
- package/dist/models/Document.d.ts.map +1 -0
- package/dist/models/Document.js +295 -0
- package/dist/models/LinkedClient.d.ts +62 -0
- package/dist/models/LinkedClient.d.ts.map +1 -0
- package/dist/models/LinkedClient.js +70 -0
- package/dist/models/Report.d.ts +98 -0
- package/dist/models/Report.d.ts.map +1 -0
- package/dist/models/Report.js +156 -0
- package/dist/models/ReportItem.d.ts +106 -0
- package/dist/models/ReportItem.d.ts.map +1 -0
- package/dist/models/ReportItem.js +167 -0
- package/dist/models/Transaction.d.ts +108 -0
- package/dist/models/Transaction.d.ts.map +1 -0
- package/dist/models/Transaction.js +175 -0
- package/dist/models/base.d.ts +42 -0
- package/dist/models/base.d.ts.map +1 -0
- package/dist/models/base.js +51 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +34 -0
- package/dist/models/mex/MexAddress.d.ts +93 -0
- package/dist/models/mex/MexAddress.d.ts.map +1 -0
- package/dist/models/mex/MexAddress.js +148 -0
- package/dist/models/mex/MexBankAccount.d.ts +65 -0
- package/dist/models/mex/MexBankAccount.d.ts.map +1 -0
- package/dist/models/mex/MexBankAccount.js +90 -0
- package/dist/models/mex/MexClient.d.ts +88 -0
- package/dist/models/mex/MexClient.d.ts.map +1 -0
- package/dist/models/mex/MexClient.js +133 -0
- package/dist/models/mex/MexDocument.d.ts +415 -0
- package/dist/models/mex/MexDocument.d.ts.map +1 -0
- package/dist/models/mex/MexDocument.js +687 -0
- package/dist/models/mex/MexReport.d.ts +50 -0
- package/dist/models/mex/MexReport.d.ts.map +1 -0
- package/dist/models/mex/MexReport.js +73 -0
- package/dist/models/mex/MexReportItem.d.ts +39 -0
- package/dist/models/mex/MexReportItem.d.ts.map +1 -0
- package/dist/models/mex/MexReportItem.js +50 -0
- package/dist/models/mex/MexTransaction.d.ts +53 -0
- package/dist/models/mex/MexTransaction.d.ts.map +1 -0
- package/dist/models/mex/MexTransaction.js +78 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.d.ts +37 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.js +46 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts +38 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.js +39 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts +38 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.js +39 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.d.ts +29 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.js +37 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.d.ts +43 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.js +59 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.js +75 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.js +63 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.d.ts +67 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.js +136 -0
- package/dist/models/mex/actividad-vulnerable/index.d.ts +20 -0
- package/dist/models/mex/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/index.js +25 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.d.ts +39 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.js +53 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.js +75 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.js +63 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.d.ts +85 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.js +152 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.d.ts +39 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.js +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.js +75 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.js +63 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.js +82 -0
- package/dist/models/mex/index.d.ts +12 -0
- package/dist/models/mex/index.d.ts.map +1 -0
- package/dist/models/mex/index.js +20 -0
- package/dist/models/types.d.ts +81 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +6 -0
- package/dist/namespaces/index.d.ts +25 -0
- package/dist/namespaces/index.d.ts.map +1 -0
- package/dist/namespaces/index.js +27 -0
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts +322 -0
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.js +42 -0
- package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts +1361 -0
- package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/index.js +53 -0
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts +454 -0
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.js +52 -0
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts +162 -0
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.js +40 -0
- package/dist/namespaces/mexico/index.d.ts +2481 -0
- package/dist/namespaces/mexico/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/index.js +140 -0
- package/dist/resources/addresses.d.ts +171 -0
- package/dist/resources/addresses.d.ts.map +1 -0
- package/dist/resources/addresses.js +208 -0
- package/dist/resources/bank-accounts.d.ts +174 -0
- package/dist/resources/bank-accounts.d.ts.map +1 -0
- package/dist/resources/bank-accounts.js +220 -0
- package/dist/resources/base.d.ts +192 -0
- package/dist/resources/base.d.ts.map +1 -0
- package/dist/resources/base.js +205 -0
- package/dist/resources/clients.d.ts +446 -0
- package/dist/resources/clients.d.ts.map +1 -0
- package/dist/resources/clients.js +448 -0
- package/dist/resources/contact-methods.d.ts +176 -0
- package/dist/resources/contact-methods.d.ts.map +1 -0
- package/dist/resources/contact-methods.js +215 -0
- package/dist/resources/documents.d.ts +340 -0
- package/dist/resources/documents.d.ts.map +1 -0
- package/dist/resources/documents.js +447 -0
- package/dist/resources/index.d.ts +23 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +25 -0
- package/dist/resources/mex/actividad-vulnerable/avi/clients.d.ts +165 -0
- package/dist/resources/mex/actividad-vulnerable/avi/clients.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/clients.js +317 -0
- package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/index.js +6 -0
- package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts +152 -0
- package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/reports.js +401 -0
- package/dist/resources/mex/actividad-vulnerable/avi/transactions.d.ts +89 -0
- package/dist/resources/mex/actividad-vulnerable/avi/transactions.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/transactions.js +252 -0
- package/dist/resources/mex/actividad-vulnerable/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/index.js +9 -0
- package/dist/resources/mex/actividad-vulnerable/jys/clients.d.ts +119 -0
- package/dist/resources/mex/actividad-vulnerable/jys/clients.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/clients.js +231 -0
- package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/index.js +6 -0
- package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts +132 -0
- package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/reports.js +381 -0
- package/dist/resources/mex/actividad-vulnerable/jys/transactions.d.ts +93 -0
- package/dist/resources/mex/actividad-vulnerable/jys/transactions.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/transactions.js +253 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/clients.d.ts +119 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/clients.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/clients.js +231 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/index.js +6 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts +132 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.js +381 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/transactions.d.ts +90 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/transactions.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/transactions.js +259 -0
- package/dist/resources/mex/addresses.d.ts +143 -0
- package/dist/resources/mex/addresses.d.ts.map +1 -0
- package/dist/resources/mex/addresses.js +328 -0
- package/dist/resources/mex/bank-accounts.d.ts +107 -0
- package/dist/resources/mex/bank-accounts.d.ts.map +1 -0
- package/dist/resources/mex/bank-accounts.js +163 -0
- package/dist/resources/mex/clients.d.ts +195 -0
- package/dist/resources/mex/clients.d.ts.map +1 -0
- package/dist/resources/mex/clients.js +454 -0
- package/dist/resources/mex/ebr.d.ts +213 -0
- package/dist/resources/mex/ebr.d.ts.map +1 -0
- package/dist/resources/mex/ebr.js +417 -0
- package/dist/resources/mex/index.d.ts +11 -0
- package/dist/resources/mex/index.d.ts.map +1 -0
- package/dist/resources/mex/index.js +12 -0
- package/dist/resources/mex/reports.d.ts +226 -0
- package/dist/resources/mex/reports.d.ts.map +1 -0
- package/dist/resources/mex/reports.js +440 -0
- package/dist/resources/mex/transactions.d.ts +125 -0
- package/dist/resources/mex/transactions.d.ts.map +1 -0
- package/dist/resources/mex/transactions.js +274 -0
- package/dist/resources/reports.d.ts +211 -0
- package/dist/resources/reports.d.ts.map +1 -0
- package/dist/resources/reports.js +308 -0
- package/dist/resources/transactions.d.ts +142 -0
- package/dist/resources/transactions.d.ts.map +1 -0
- package/dist/resources/transactions.js +221 -0
- package/dist/sdk/ComplianceSDK.d.ts +459 -0
- package/dist/sdk/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/ComplianceSDK.js +528 -0
- package/dist/sdk/base.d.ts +17 -0
- package/dist/sdk/base.d.ts.map +1 -0
- package/dist/sdk/base.js +22 -0
- package/dist/sdk/index.d.ts +18 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +43 -0
- package/dist/{ComplianceSDK-BgzIwSsY.d.cts → sdk/mex/ComplianceSDK.d.ts} +16 -7
- package/dist/sdk/mex/ComplianceSDK.d.ts.map +1 -0
- package/dist/{ComplianceSDK-DoIZOSJq.d.ts → sdk/mex/ComplianceSDK.js} +26 -11
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts +44 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.js +39 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/index.d.ts +8 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/index.js +9 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts +35 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/types.js +20 -0
- package/dist/sdk/mex/actividad-vulnerable/index.d.ts +13 -0
- package/dist/sdk/mex/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/index.js +31 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts +44 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.js +39 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/index.d.ts +8 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/index.js +9 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts +35 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/types.js +20 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts +44 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.js +39 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/index.d.ts +8 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/index.js +9 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts +35 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.js +20 -0
- package/dist/sdk/mex/index.d.ts +13 -0
- package/dist/sdk/mex/index.d.ts.map +1 -0
- package/dist/sdk/mex/index.js +38 -0
- package/dist/sdk/mex/types.d.ts +57 -0
- package/dist/sdk/mex/types.d.ts.map +1 -0
- package/dist/sdk/mex/types.js +7 -0
- package/dist/sdk/resource-registry.d.ts +118 -0
- package/dist/sdk/resource-registry.d.ts.map +1 -0
- package/dist/sdk/resource-registry.js +145 -0
- package/dist/sdk/sdk-registry.d.ts +59 -0
- package/dist/sdk/sdk-registry.d.ts.map +1 -0
- package/dist/sdk/sdk-registry.js +82 -0
- package/dist/sdk/types.d.ts +232 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +42 -0
- package/dist/utils/environment.d.ts +126 -0
- package/dist/utils/environment.d.ts.map +1 -0
- package/dist/utils/environment.js +148 -0
- package/dist/utils/filters.d.ts +338 -0
- package/dist/utils/filters.d.ts.map +1 -0
- package/dist/utils/filters.js +373 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +43 -0
- package/dist/utils/pagination.d.ts +85 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +120 -0
- package/dist/utils/session.d.ts +173 -0
- package/dist/utils/session.d.ts.map +1 -0
- package/dist/utils/session.js +58 -0
- package/dist/utils/trpc-client.d.ts +19507 -0
- package/dist/utils/trpc-client.d.ts.map +1 -0
- package/dist/utils/trpc-client.js +129 -0
- package/dist/utils/upload.d.ts +81 -0
- package/dist/utils/upload.d.ts.map +1 -0
- package/dist/utils/upload.js +261 -0
- package/package.json +17 -27
- package/src/errors/api.ts +305 -0
- package/src/errors/base.ts +127 -0
- package/src/errors/index.ts +63 -0
- package/src/errors/upload.ts +204 -0
- package/src/errors/validation.ts +163 -0
- package/src/exports/base.ts +139 -0
- package/src/exports/index.ts +187 -0
- package/src/exports/mexico/actividad-vulnerable/avi.ts +207 -0
- package/src/exports/mexico/actividad-vulnerable/jys.ts +214 -0
- package/src/exports/mexico/actividad-vulnerable/tsc.ts +202 -0
- package/src/exports/mexico/index.ts +215 -0
- package/src/models/Address.ts +235 -0
- package/src/models/BankAccount.ts +235 -0
- package/src/models/Client.ts +363 -0
- package/src/models/ContactMethod.ts +197 -0
- package/src/models/Document.ts +355 -0
- package/src/models/LinkedClient.ts +84 -0
- package/src/models/Report.ts +193 -0
- package/src/models/ReportItem.ts +211 -0
- package/src/models/Transaction.ts +219 -0
- package/src/models/base.ts +56 -0
- package/src/models/index.ts +148 -0
- package/src/models/mex/MexAddress.ts +184 -0
- package/src/models/mex/MexBankAccount.ts +121 -0
- package/src/models/mex/MexClient.ts +177 -0
- package/src/models/mex/MexDocument.ts +890 -0
- package/src/models/mex/MexReport.ts +99 -0
- package/src/models/mex/MexReportItem.ts +79 -0
- package/src/models/mex/MexTransaction.ts +105 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableClient.ts +66 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableReport.ts +73 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.ts +74 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.ts +50 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVIClient.ts +80 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVIReport.ts +114 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVIReportItem.ts +105 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVITransaction.ts +157 -0
- package/src/models/mex/actividad-vulnerable/index.ts +78 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSClient.ts +73 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSReport.ts +114 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSReportItem.ts +105 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSTransaction.ts +178 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCClient.ts +73 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCReport.ts +114 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.ts +105 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.ts +104 -0
- package/src/models/mex/index.ts +57 -0
- package/src/models/types.ts +196 -0
- package/src/namespaces/index.ts +29 -0
- package/src/namespaces/mexico/actividad-vulnerable/avi/index.ts +62 -0
- package/src/namespaces/mexico/actividad-vulnerable/index.ts +79 -0
- package/src/namespaces/mexico/actividad-vulnerable/jys/index.ts +72 -0
- package/src/namespaces/mexico/actividad-vulnerable/tsc/index.ts +60 -0
- package/src/namespaces/mexico/index.ts +325 -0
- package/src/resources/addresses.ts +391 -0
- package/src/resources/bank-accounts.ts +417 -0
- package/src/resources/base.ts +327 -0
- package/src/resources/clients.ts +808 -0
- package/src/resources/contact-methods.ts +412 -0
- package/src/resources/documents.ts +688 -0
- package/src/resources/index.ts +40 -0
- package/src/resources/mex/actividad-vulnerable/avi/clients.ts +559 -0
- package/src/resources/mex/actividad-vulnerable/avi/index.ts +7 -0
- package/src/resources/mex/actividad-vulnerable/avi/reports.ts +609 -0
- package/src/resources/mex/actividad-vulnerable/avi/transactions.ts +404 -0
- package/src/resources/mex/actividad-vulnerable/index.ts +12 -0
- package/src/resources/mex/actividad-vulnerable/jys/clients.ts +445 -0
- package/src/resources/mex/actividad-vulnerable/jys/index.ts +7 -0
- package/src/resources/mex/actividad-vulnerable/jys/reports.ts +591 -0
- package/src/resources/mex/actividad-vulnerable/jys/transactions.ts +395 -0
- package/src/resources/mex/actividad-vulnerable/tsc/clients.ts +445 -0
- package/src/resources/mex/actividad-vulnerable/tsc/index.ts +7 -0
- package/src/resources/mex/actividad-vulnerable/tsc/reports.ts +591 -0
- package/src/resources/mex/actividad-vulnerable/tsc/transactions.ts +404 -0
- package/src/resources/mex/addresses.ts +493 -0
- package/src/resources/mex/bank-accounts.ts +283 -0
- package/src/resources/mex/clients.ts +758 -0
- package/src/resources/mex/ebr.ts +621 -0
- package/src/resources/mex/index.ts +23 -0
- package/src/resources/mex/reports.ts +643 -0
- package/src/resources/mex/transactions.ts +422 -0
- package/src/resources/reports.ts +515 -0
- package/src/resources/transactions.ts +358 -0
- package/src/sdk/ComplianceSDK.ts +812 -0
- package/src/sdk/base.ts +43 -0
- package/src/sdk/index.ts +98 -0
- package/src/sdk/mex/ComplianceSDK.ts +147 -0
- package/src/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.ts +55 -0
- package/src/sdk/mex/actividad-vulnerable/avi/index.ts +16 -0
- package/src/sdk/mex/actividad-vulnerable/avi/types.ts +86 -0
- package/src/sdk/mex/actividad-vulnerable/index.ts +58 -0
- package/src/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.ts +54 -0
- package/src/sdk/mex/actividad-vulnerable/jys/index.ts +16 -0
- package/src/sdk/mex/actividad-vulnerable/jys/types.ts +86 -0
- package/src/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.ts +54 -0
- package/src/sdk/mex/actividad-vulnerable/tsc/index.ts +16 -0
- package/src/sdk/mex/actividad-vulnerable/tsc/types.ts +86 -0
- package/src/sdk/mex/index.ts +66 -0
- package/src/sdk/mex/types.ts +88 -0
- package/src/sdk/resource-registry.ts +204 -0
- package/src/sdk/sdk-registry.ts +99 -0
- package/src/sdk/types.ts +304 -0
- package/src/utils/environment.ts +187 -0
- package/src/utils/filters.ts +412 -0
- package/src/utils/index.ts +134 -0
- package/src/utils/pagination.ts +143 -0
- package/src/utils/session.ts +303 -0
- package/src/utils/trpc-client.ts +242 -0
- package/src/utils/upload.ts +388 -0
- package/dist/chunk-2CIR32CT.cjs +0 -22972
- package/dist/chunk-2CIR32CT.cjs.map +0 -1
- package/dist/chunk-5FXVLHD3.js +0 -23
- package/dist/chunk-5FXVLHD3.js.map +0 -1
- package/dist/chunk-62M35I6I.js +0 -249
- package/dist/chunk-62M35I6I.js.map +0 -1
- package/dist/chunk-ARI5WM5X.js +0 -22819
- package/dist/chunk-ARI5WM5X.js.map +0 -1
- package/dist/chunk-B75YW6BN.cjs +0 -26
- package/dist/chunk-B75YW6BN.cjs.map +0 -1
- package/dist/chunk-F6THYYF5.cjs +0 -26
- package/dist/chunk-F6THYYF5.cjs.map +0 -1
- package/dist/chunk-HAEBRF5N.js +0 -23
- package/dist/chunk-HAEBRF5N.js.map +0 -1
- package/dist/chunk-HEGTPUIS.cjs +0 -26
- package/dist/chunk-HEGTPUIS.cjs.map +0 -1
- package/dist/chunk-TYXYZ3WV.js +0 -23
- package/dist/chunk-TYXYZ3WV.js.map +0 -1
- package/dist/chunk-ZFW24DFL.cjs +0 -261
- package/dist/chunk-ZFW24DFL.cjs.map +0 -1
- package/dist/filters-UX1_wF2Z.d.cts +0 -6460
- package/dist/filters-UX1_wF2Z.d.ts +0 -6460
- package/dist/index-6dNlw8uP.d.cts +0 -2866
- package/dist/index-CUIwWk-y.d.ts +0 -2866
- package/dist/index.cjs +0 -417
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -9
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -28
- package/dist/index.js.map +0 -1
- package/dist/mexico/actividad-vulnerable/avi.cjs +0 -320
- package/dist/mexico/actividad-vulnerable/avi.cjs.map +0 -1
- package/dist/mexico/actividad-vulnerable/avi.d.cts +0 -680
- package/dist/mexico/actividad-vulnerable/avi.js +0 -55
- package/dist/mexico/actividad-vulnerable/avi.js.map +0 -1
- package/dist/mexico/actividad-vulnerable/jys.cjs +0 -330
- package/dist/mexico/actividad-vulnerable/jys.cjs.map +0 -1
- package/dist/mexico/actividad-vulnerable/jys.d.cts +0 -746
- package/dist/mexico/actividad-vulnerable/jys.js +0 -65
- package/dist/mexico/actividad-vulnerable/jys.js.map +0 -1
- package/dist/mexico/actividad-vulnerable/tsc.cjs +0 -318
- package/dist/mexico/actividad-vulnerable/tsc.cjs.map +0 -1
- package/dist/mexico/actividad-vulnerable/tsc.d.cts +0 -600
- package/dist/mexico/actividad-vulnerable/tsc.js +0 -53
- package/dist/mexico/actividad-vulnerable/tsc.js.map +0 -1
- package/dist/mexico/index.cjs +0 -384
- package/dist/mexico/index.cjs.map +0 -1
- package/dist/mexico/index.d.cts +0 -1422
- package/dist/mexico/index.d.ts +0 -1422
- package/dist/mexico/index.js +0 -7
- package/dist/mexico/index.js.map +0 -1
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clients Resource
|
|
3
|
+
*
|
|
4
|
+
* CRUD operations, filtering, pagination, and batch operations for clients.
|
|
5
|
+
*
|
|
6
|
+
* This is the base (unscoped) resource. For jurisdiction-scoped SDKs, use:
|
|
7
|
+
* - MexClientsResource - Mexico-scoped with flattened MX fields
|
|
8
|
+
* - AVIClientsResource - Mexico AVI-scoped with flattened AVI fields
|
|
9
|
+
* - JYSClientsResource - Mexico JYS-scoped with flattened JYS fields
|
|
10
|
+
* - TSCClientsResource - Mexico TSC-scoped with flattened TSC fields
|
|
11
|
+
*/
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
import { createClientInputSchema, updateClientInputSchema, createAddressInputSchema, updateAddressInputSchema, createContactMethodInputSchema, updateContactMethodInputSchema, createBankAccountInputSchema, updateBankAccountInputSchema, linkedClientSchema, replaceSyncItemSchema, } from "@artu-ai/shared";
|
|
14
|
+
import { BaseResource } from "./base";
|
|
15
|
+
import { Client, Address, ContactMethod, BankAccount, LinkedClient, } from "../models";
|
|
16
|
+
// ===========================
|
|
17
|
+
// ClientsResource
|
|
18
|
+
// ===========================
|
|
19
|
+
/**
|
|
20
|
+
* Base resource manager for client operations.
|
|
21
|
+
*
|
|
22
|
+
* Provides:
|
|
23
|
+
* - CRUD operations (create, retrieve, update, delete)
|
|
24
|
+
* - Filtering and pagination
|
|
25
|
+
* - Batch operations (createMany, updateMany)
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* // Create a client with full nested format
|
|
30
|
+
* const client = await sdk.clients.create({
|
|
31
|
+
* type: "individual",
|
|
32
|
+
* name: "Juan García",
|
|
33
|
+
* primaryJurisdiction: "MX",
|
|
34
|
+
* jurisdictions: {
|
|
35
|
+
* MX: { rfc: "GAJL850101ABC" },
|
|
36
|
+
* },
|
|
37
|
+
* });
|
|
38
|
+
*
|
|
39
|
+
* // List with filtering
|
|
40
|
+
* const { data, pagination } = await sdk.clients.list({
|
|
41
|
+
* filter: { type: "individual", primaryJurisdiction: "MX" },
|
|
42
|
+
* limit: 20,
|
|
43
|
+
* });
|
|
44
|
+
*
|
|
45
|
+
* // Iterate all clients
|
|
46
|
+
* for await (const client of sdk.clients.iterate()) {
|
|
47
|
+
* console.log(client.name);
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export class ClientsResource extends BaseResource {
|
|
52
|
+
// ─────────────────────────────────────────────────────────────────
|
|
53
|
+
// CRUD Operations
|
|
54
|
+
// ─────────────────────────────────────────────────────────────────
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new client.
|
|
57
|
+
*
|
|
58
|
+
* @param data - Client creation data in nested format
|
|
59
|
+
* @returns The created client model
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* const client = await sdk.clients.create({
|
|
64
|
+
* type: ClientType.Person,
|
|
65
|
+
* name: "Juan García",
|
|
66
|
+
* primaryJurisdiction: Jurisdiction.Mexico,
|
|
67
|
+
* jurisdictions: {
|
|
68
|
+
* MX: { rfc: "GAJL850101ABC" },
|
|
69
|
+
* },
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
async create(data) {
|
|
74
|
+
const validated = this.validate(createClientInputSchema, data);
|
|
75
|
+
const response = await this.execute(() => this.trpc.clients.create.mutate(validated));
|
|
76
|
+
return this.instantiate(response);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves a client by ID.
|
|
80
|
+
*
|
|
81
|
+
* @param id - Client ID
|
|
82
|
+
* @param include - Optional includes (relations, primary contacts)
|
|
83
|
+
* @returns The client model (with optional fields populated if included)
|
|
84
|
+
*/
|
|
85
|
+
async retrieve(id, include) {
|
|
86
|
+
const response = await this.execute(() => this.trpc.clients.retrieve.query({ id, include }));
|
|
87
|
+
return this.instantiate(response);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves a client by metadata key/value.
|
|
91
|
+
*/
|
|
92
|
+
async retrieveByMetadata(key, value) {
|
|
93
|
+
const response = await this.execute(() => this.trpc.clients.retrieveByMetadata.query({ key, value }));
|
|
94
|
+
return this.instantiate(response);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Retrieves a client by externalId.
|
|
98
|
+
*
|
|
99
|
+
* @param externalId - External identifier assigned by your system
|
|
100
|
+
* @returns The client model
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```typescript
|
|
104
|
+
* const client = await sdk.clients.retrieveByExternalId("external-123");
|
|
105
|
+
* console.log(client.name);
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
async retrieveByExternalId(externalId) {
|
|
109
|
+
const response = await this.execute(() => this.trpc.clients.retrieveByExternalId.query({ externalId }));
|
|
110
|
+
return this.instantiate(response);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Updates a client.
|
|
114
|
+
*
|
|
115
|
+
* @param id - Client ID
|
|
116
|
+
* @param data - Update data (partial)
|
|
117
|
+
* @returns The updated client model
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```typescript
|
|
121
|
+
* const client = await sdk.clients.update("client_123", {
|
|
122
|
+
* email: "new@example.com",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
async update(id, data) {
|
|
127
|
+
const validated = this.validate(updateClientInputSchema, data);
|
|
128
|
+
const response = await this.execute(() => this.trpc.clients.update.mutate({ id, data: validated }));
|
|
129
|
+
return this.instantiate(response);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Deletes a client (soft delete).
|
|
133
|
+
*
|
|
134
|
+
* @param id - Client ID
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```typescript
|
|
138
|
+
* await sdk.clients.delete("client_123");
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
async delete(id) {
|
|
142
|
+
await this.execute(() => this.trpc.clients.delete.mutate({ id }));
|
|
143
|
+
}
|
|
144
|
+
// ─────────────────────────────────────────────────────────────────
|
|
145
|
+
// List & Pagination
|
|
146
|
+
// ─────────────────────────────────────────────────────────────────
|
|
147
|
+
/**
|
|
148
|
+
* Lists clients with optional filtering and pagination.
|
|
149
|
+
*
|
|
150
|
+
* @param options - List options (filter, cursor, limit)
|
|
151
|
+
* @param options.includePrimaryContacts - Include primary email/phone
|
|
152
|
+
* @returns Paginated response with client models
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```typescript
|
|
156
|
+
* const { data, pagination } = await sdk.clients.list({
|
|
157
|
+
* filter: { type: "individual" },
|
|
158
|
+
* limit: 20,
|
|
159
|
+
* });
|
|
160
|
+
*
|
|
161
|
+
* if (pagination.hasMore) {
|
|
162
|
+
* const nextPage = await sdk.clients.list({
|
|
163
|
+
* cursor: pagination.nextCursor,
|
|
164
|
+
* });
|
|
165
|
+
* }
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
async list(options) {
|
|
169
|
+
const response = await this.execute(() => this.trpc.clients.list.query(options));
|
|
170
|
+
return {
|
|
171
|
+
data: response.data.map((c) => this.instantiate(c)),
|
|
172
|
+
pagination: response.pagination,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Returns an async iterator over all clients matching the filter.
|
|
177
|
+
* Automatically fetches subsequent pages as you iterate.
|
|
178
|
+
*
|
|
179
|
+
* @param filter - Optional filter criteria
|
|
180
|
+
* @returns Async generator yielding client models
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```typescript
|
|
184
|
+
* for await (const client of sdk.clients.iterate({ type: "individual" })) {
|
|
185
|
+
* console.log(client.name);
|
|
186
|
+
* }
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
iterate(filter) {
|
|
190
|
+
return this.createIterator({ filter });
|
|
191
|
+
}
|
|
192
|
+
async createMany(clients, options = {}) {
|
|
193
|
+
const atomic = options.atomic ?? true;
|
|
194
|
+
const validated = this.validate(z.array(createClientInputSchema), clients);
|
|
195
|
+
const response = await this.execute(() => this.trpc.clients.createMany.mutate({ items: validated, atomic }));
|
|
196
|
+
if (response.atomic) {
|
|
197
|
+
return {
|
|
198
|
+
atomic: true,
|
|
199
|
+
data: response.data.map((c) => this.instantiate(c)),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
return {
|
|
204
|
+
atomic: false,
|
|
205
|
+
succeeded: response.succeeded.map((item) => ({
|
|
206
|
+
index: item.index,
|
|
207
|
+
data: this.instantiate(item.data),
|
|
208
|
+
})),
|
|
209
|
+
failed: response.failed,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
async updateMany(updates, options = {}) {
|
|
214
|
+
const atomic = options.atomic ?? true;
|
|
215
|
+
const updateItemSchema = z.object({
|
|
216
|
+
id: z.uuid(),
|
|
217
|
+
data: updateClientInputSchema,
|
|
218
|
+
});
|
|
219
|
+
const validated = this.validate(z.array(updateItemSchema), updates);
|
|
220
|
+
const response = await this.execute(() => this.trpc.clients.updateMany.mutate({ items: validated, atomic }));
|
|
221
|
+
if (response.atomic) {
|
|
222
|
+
return {
|
|
223
|
+
atomic: true,
|
|
224
|
+
data: response.data.map((c) => this.instantiate(c)),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
return {
|
|
229
|
+
atomic: false,
|
|
230
|
+
succeeded: response.succeeded.map((item) => ({
|
|
231
|
+
index: item.index,
|
|
232
|
+
data: this.instantiate(item.data),
|
|
233
|
+
})),
|
|
234
|
+
failed: response.failed,
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
// ─────────────────────────────────────────────────────────────────
|
|
239
|
+
// Client-to-Client Relationship Management
|
|
240
|
+
// ─────────────────────────────────────────────────────────────────
|
|
241
|
+
/**
|
|
242
|
+
* Links a client to another client with a relationship type.
|
|
243
|
+
*
|
|
244
|
+
* @param parentClientId - The ID of the parent client (e.g., a company)
|
|
245
|
+
* @param childClientId - The ID of the child client (e.g., a legal rep)
|
|
246
|
+
* @param relationshipType - The type of relationship
|
|
247
|
+
* @param metadata - Optional metadata for the relationship
|
|
248
|
+
* @returns The updated parent client
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```typescript
|
|
252
|
+
* // Link a legal representative to a company
|
|
253
|
+
* await sdk.clients.linkClient(
|
|
254
|
+
* companyId,
|
|
255
|
+
* legalRepId,
|
|
256
|
+
* ClientRelationshipType.LegalRepresentative
|
|
257
|
+
* );
|
|
258
|
+
*
|
|
259
|
+
* // Link a controlling beneficiary with metadata
|
|
260
|
+
* await sdk.clients.linkClient(
|
|
261
|
+
* companyId,
|
|
262
|
+
* beneficiaryId,
|
|
263
|
+
* ClientRelationshipType.ControllingBeneficiary,
|
|
264
|
+
* { ownershipPercentage: 51 }
|
|
265
|
+
* );
|
|
266
|
+
* ```
|
|
267
|
+
*/
|
|
268
|
+
async linkClient(parentClientId, childClientId, relationshipType, metadata) {
|
|
269
|
+
const response = await this.execute(() => this.trpc.clients.linkClient.mutate({
|
|
270
|
+
parentClientId,
|
|
271
|
+
childClientId,
|
|
272
|
+
relationshipType,
|
|
273
|
+
metadata,
|
|
274
|
+
}));
|
|
275
|
+
return this.instantiate(response);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Unlinks a client from another client.
|
|
279
|
+
*
|
|
280
|
+
* @param parentClientId - The ID of the parent client
|
|
281
|
+
* @param childClientId - The ID of the child client to unlink
|
|
282
|
+
* @param relationshipType - The type of relationship to remove
|
|
283
|
+
* @returns The updated parent client
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* ```typescript
|
|
287
|
+
* // Remove a legal representative
|
|
288
|
+
* await sdk.clients.unlinkClient(
|
|
289
|
+
* companyId,
|
|
290
|
+
* legalRepId,
|
|
291
|
+
* ClientRelationshipType.LegalRepresentative
|
|
292
|
+
* );
|
|
293
|
+
* ```
|
|
294
|
+
*/
|
|
295
|
+
async unlinkClient(parentClientId, childClientId, relationshipType) {
|
|
296
|
+
const response = await this.execute(() => this.trpc.clients.unlinkClient.mutate({
|
|
297
|
+
parentClientId,
|
|
298
|
+
childClientId,
|
|
299
|
+
relationshipType,
|
|
300
|
+
}));
|
|
301
|
+
return this.instantiate(response);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Lists all clients linked to a parent client.
|
|
305
|
+
*
|
|
306
|
+
* @param parentClientId - The ID of the parent client
|
|
307
|
+
* @param relationshipType - Optional filter by relationship type
|
|
308
|
+
* @returns Array of LinkedClient models
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* ```typescript
|
|
312
|
+
* // List all linked clients
|
|
313
|
+
* const links = await sdk.clients.listLinkedClients(companyId);
|
|
314
|
+
*
|
|
315
|
+
* // List only legal representatives
|
|
316
|
+
* const legalReps = await sdk.clients.listLinkedClients(
|
|
317
|
+
* companyId,
|
|
318
|
+
* ClientRelationshipType.LegalRepresentative
|
|
319
|
+
* );
|
|
320
|
+
*
|
|
321
|
+
* // Access relationship metadata
|
|
322
|
+
* for (const link of links) {
|
|
323
|
+
* console.log(link.id, link.relationshipType, link.metadata);
|
|
324
|
+
* }
|
|
325
|
+
* ```
|
|
326
|
+
*/
|
|
327
|
+
async listLinkedClients(parentClientId, relationshipType) {
|
|
328
|
+
const response = await this.execute(() => this.trpc.clients.listLinkedClients.query({
|
|
329
|
+
parentClientId,
|
|
330
|
+
relationshipType,
|
|
331
|
+
}));
|
|
332
|
+
return response.map((l) => new LinkedClient(l));
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Retrieves a single linked client relationship by ID.
|
|
336
|
+
*
|
|
337
|
+
* @param id - The ID of the relationship
|
|
338
|
+
* @returns The LinkedClient model
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```typescript
|
|
342
|
+
* const relationship = await sdk.clients.retrieveLinkedClient(relationshipId);
|
|
343
|
+
* console.log(relationship.relationshipType, relationship.metadata);
|
|
344
|
+
* ```
|
|
345
|
+
*/
|
|
346
|
+
async retrieveLinkedClient(id) {
|
|
347
|
+
const response = await this.execute(() => this.trpc.clients.retrieveLinkedClient.query({ id }));
|
|
348
|
+
return new LinkedClient(response);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Updates a linked client relationship's metadata.
|
|
352
|
+
*
|
|
353
|
+
* @param id - The ID of the relationship
|
|
354
|
+
* @param metadata - New metadata for the relationship
|
|
355
|
+
* @returns The updated LinkedClient model
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* ```typescript
|
|
359
|
+
* const updated = await sdk.clients.updateLinkedClient(relationshipId, {
|
|
360
|
+
* ownershipPercentage: 51,
|
|
361
|
+
* votingRights: true,
|
|
362
|
+
* });
|
|
363
|
+
* ```
|
|
364
|
+
*/
|
|
365
|
+
async updateLinkedClient(id, metadata) {
|
|
366
|
+
const response = await this.execute(() => this.trpc.clients.updateLinkedClient.mutate({ id, metadata }));
|
|
367
|
+
return new LinkedClient(response);
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Replaces all linked clients for a parent client.
|
|
371
|
+
*
|
|
372
|
+
* @param parentClientId - The ID of the parent client
|
|
373
|
+
* @param linkedClients - Array of linked client definitions
|
|
374
|
+
* @returns The updated parent client
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* ```typescript
|
|
378
|
+
* // Replace all linked clients
|
|
379
|
+
* await sdk.clients.setLinkedClients(companyId, [
|
|
380
|
+
* { clientId: legalRepId, relationshipType: "legal_representative" },
|
|
381
|
+
* { clientId: beneficiaryId, relationshipType: "controlling_beneficiary" },
|
|
382
|
+
* ]);
|
|
383
|
+
* ```
|
|
384
|
+
*/
|
|
385
|
+
async setLinkedClients(parentClientId, linkedClients) {
|
|
386
|
+
const validated = this.validate(z.array(linkedClientSchema), linkedClients);
|
|
387
|
+
const response = await this.execute(() => this.trpc.clients.setLinkedClients.mutate({
|
|
388
|
+
parentClientId,
|
|
389
|
+
linkedClients: validated,
|
|
390
|
+
}));
|
|
391
|
+
return this.instantiate(response);
|
|
392
|
+
}
|
|
393
|
+
async syncAll(clientId, data, options) {
|
|
394
|
+
// Validate inputs - use replaceSyncItemSchema which validates create vs update based on id presence
|
|
395
|
+
const validatedClient = data.client
|
|
396
|
+
? this.validate(updateClientInputSchema, data.client)
|
|
397
|
+
: undefined;
|
|
398
|
+
const validatedAddresses = data.addresses
|
|
399
|
+
? this.validate(z.array(replaceSyncItemSchema(createAddressInputSchema, updateAddressInputSchema)), data.addresses)
|
|
400
|
+
: undefined;
|
|
401
|
+
const validatedContactMethods = data.contactMethods
|
|
402
|
+
? this.validate(z.array(replaceSyncItemSchema(createContactMethodInputSchema, updateContactMethodInputSchema)), data.contactMethods)
|
|
403
|
+
: undefined;
|
|
404
|
+
const validatedBankAccounts = data.bankAccounts
|
|
405
|
+
? this.validate(z.array(replaceSyncItemSchema(createBankAccountInputSchema, updateBankAccountInputSchema)), data.bankAccounts)
|
|
406
|
+
: undefined;
|
|
407
|
+
const validatedLinkedClients = data.linkedClients
|
|
408
|
+
? this.validate(z.array(linkedClientSchema), data.linkedClients)
|
|
409
|
+
: undefined;
|
|
410
|
+
const response = await this.execute(() => this.trpc.clients.syncAll.mutate({
|
|
411
|
+
clientId,
|
|
412
|
+
client: validatedClient,
|
|
413
|
+
addresses: validatedAddresses,
|
|
414
|
+
contactMethods: validatedContactMethods,
|
|
415
|
+
bankAccounts: validatedBankAccounts,
|
|
416
|
+
linkedClients: validatedLinkedClients,
|
|
417
|
+
replaceMode: options?.replaceMode,
|
|
418
|
+
}));
|
|
419
|
+
return {
|
|
420
|
+
client: this.instantiate(response.client),
|
|
421
|
+
addresses: {
|
|
422
|
+
created: response.addresses.created.map((a) => new Address(a)),
|
|
423
|
+
updated: response.addresses.updated.map((a) => new Address(a)),
|
|
424
|
+
deleted: response.addresses.deleted,
|
|
425
|
+
},
|
|
426
|
+
contactMethods: {
|
|
427
|
+
created: response.contactMethods.created.map((c) => new ContactMethod(c)),
|
|
428
|
+
updated: response.contactMethods.updated.map((c) => new ContactMethod(c)),
|
|
429
|
+
deleted: response.contactMethods.deleted,
|
|
430
|
+
},
|
|
431
|
+
bankAccounts: {
|
|
432
|
+
created: response.bankAccounts.created.map((b) => new BankAccount(b)),
|
|
433
|
+
updated: response.bankAccounts.updated.map((b) => new BankAccount(b)),
|
|
434
|
+
deleted: response.bankAccounts.deleted,
|
|
435
|
+
},
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
// ─────────────────────────────────────────────────────────────────
|
|
439
|
+
// Instantiation (protected for subclasses to override)
|
|
440
|
+
// ─────────────────────────────────────────────────────────────────
|
|
441
|
+
/**
|
|
442
|
+
* Instantiates a Client model from API response data.
|
|
443
|
+
* Subclasses override this to return their specific model type.
|
|
444
|
+
*/
|
|
445
|
+
instantiate(data) {
|
|
446
|
+
return new Client(data);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contact Methods Resource
|
|
3
|
+
*
|
|
4
|
+
* Manages communication channels (email, phone, etc.) for clients.
|
|
5
|
+
*/
|
|
6
|
+
import type { CreateContactMethodInput, UpdateContactMethodInput, ContactMethodType, ContactMethodFilter, ContactMethodSort, ListOptions, PaginatedResponse, AtomicBatchResult, PartialBatchResult, SyncItem, SyncResult } from "@artu-ai/shared";
|
|
7
|
+
import { BaseResource } from "./base";
|
|
8
|
+
import { ContactMethod, type ContactMethodData } from "../models/ContactMethod";
|
|
9
|
+
/**
|
|
10
|
+
* Resource for managing client contact methods.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* // Create an email contact for a client
|
|
15
|
+
* const email = await sdk.contactMethods.create({
|
|
16
|
+
* clientId: "client_123",
|
|
17
|
+
* type: "email",
|
|
18
|
+
* value: "juan@example.com",
|
|
19
|
+
* label: "Personal",
|
|
20
|
+
* isPrimary: true,
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* // Get the primary email for a client
|
|
24
|
+
* const primary = await sdk.contactMethods.getPrimary("client_123", "email");
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class ContactMethodsResource extends BaseResource<ContactMethod, CreateContactMethodInput, UpdateContactMethodInput, ContactMethodFilter, ContactMethodSort> {
|
|
28
|
+
/**
|
|
29
|
+
* Creates a contact method for a client
|
|
30
|
+
*
|
|
31
|
+
* @param data - Contact method data including clientId
|
|
32
|
+
* @returns The created ContactMethod
|
|
33
|
+
*/
|
|
34
|
+
create(data: CreateContactMethodInput): Promise<ContactMethod>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves a contact method by ID
|
|
37
|
+
*
|
|
38
|
+
* @param id - The contact method ID
|
|
39
|
+
* @returns The ContactMethod
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id: string): Promise<ContactMethod>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a contact method by metadata key/value.
|
|
44
|
+
*/
|
|
45
|
+
retrieveByMetadata(key: string, value: string): Promise<ContactMethod>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves a contact method by externalId.
|
|
48
|
+
*/
|
|
49
|
+
retrieveByExternalId(externalId: string): Promise<ContactMethod>;
|
|
50
|
+
/**
|
|
51
|
+
* Updates a contact method
|
|
52
|
+
*
|
|
53
|
+
* @param id - The contact method ID
|
|
54
|
+
* @param data - Fields to update
|
|
55
|
+
* @returns The updated ContactMethod
|
|
56
|
+
*/
|
|
57
|
+
update(id: string, data: UpdateContactMethodInput): Promise<ContactMethod>;
|
|
58
|
+
/**
|
|
59
|
+
* Deletes a contact method
|
|
60
|
+
*
|
|
61
|
+
* @param id - The contact method ID
|
|
62
|
+
*/
|
|
63
|
+
delete(id: string): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Lists contact methods with optional filtering
|
|
66
|
+
*
|
|
67
|
+
* @param options - Filtering and pagination options
|
|
68
|
+
* @returns Paginated list of ContactMethods
|
|
69
|
+
*/
|
|
70
|
+
list(options?: ListOptions<ContactMethodFilter, ContactMethodSort>): Promise<PaginatedResponse<ContactMethod>>;
|
|
71
|
+
/**
|
|
72
|
+
* Lists all contact methods for a specific client
|
|
73
|
+
*
|
|
74
|
+
* @param clientId - The client ID
|
|
75
|
+
* @param options - Optional pagination options
|
|
76
|
+
* @returns Paginated list of ContactMethods
|
|
77
|
+
*/
|
|
78
|
+
listByClient(clientId: string, options?: {
|
|
79
|
+
cursor?: string;
|
|
80
|
+
limit?: number;
|
|
81
|
+
}): Promise<PaginatedResponse<ContactMethod>>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns an async iterator over all contact methods matching the filter.
|
|
84
|
+
*/
|
|
85
|
+
iterate(filter?: ContactMethodFilter): AsyncGenerator<ContactMethod, void, undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Creates multiple contact methods in a single request.
|
|
88
|
+
*
|
|
89
|
+
* @param contacts - Array of contact method data (each includes clientId)
|
|
90
|
+
* @param options - Batch options (atomic: true by default)
|
|
91
|
+
* @returns Atomic result with data array, or partial result with succeeded/failed
|
|
92
|
+
*/
|
|
93
|
+
createMany(contacts: CreateContactMethodInput[], options?: {
|
|
94
|
+
atomic?: true;
|
|
95
|
+
}): Promise<AtomicBatchResult<ContactMethod>>;
|
|
96
|
+
createMany(contacts: CreateContactMethodInput[], options: {
|
|
97
|
+
atomic: false;
|
|
98
|
+
}): Promise<PartialBatchResult<ContactMethod>>;
|
|
99
|
+
/**
|
|
100
|
+
* Updates multiple contact methods in a single request.
|
|
101
|
+
*
|
|
102
|
+
* @param updates - Array of { id, data } updates
|
|
103
|
+
* @param options - Batch options (atomic: true by default)
|
|
104
|
+
* @returns Atomic result with data array, or partial result with succeeded/failed
|
|
105
|
+
*/
|
|
106
|
+
updateMany(updates: {
|
|
107
|
+
id: string;
|
|
108
|
+
data: UpdateContactMethodInput;
|
|
109
|
+
}[], options?: {
|
|
110
|
+
atomic?: true;
|
|
111
|
+
}): Promise<AtomicBatchResult<ContactMethod>>;
|
|
112
|
+
updateMany(updates: {
|
|
113
|
+
id: string;
|
|
114
|
+
data: UpdateContactMethodInput;
|
|
115
|
+
}[], options: {
|
|
116
|
+
atomic: false;
|
|
117
|
+
}): Promise<PartialBatchResult<ContactMethod>>;
|
|
118
|
+
/**
|
|
119
|
+
* Syncs contact methods for a client - handles create, update, and delete in bulk.
|
|
120
|
+
*
|
|
121
|
+
* This is the most efficient way to reconcile a set of contact methods for a client.
|
|
122
|
+
* Primary contact methods are handled per-type (e.g., one primary email, one primary phone).
|
|
123
|
+
*
|
|
124
|
+
* @param clientId - The client ID
|
|
125
|
+
* @param items - Array of sync items:
|
|
126
|
+
* - Without `id`: create new contact method
|
|
127
|
+
* - With `id` and `_delete: true`: delete existing contact method
|
|
128
|
+
* - With `id` (no `_delete`): update existing contact method
|
|
129
|
+
* @param options - Sync options
|
|
130
|
+
* @param options.replaceMode - When true, items not in the array are deleted (default: false)
|
|
131
|
+
* @returns Sync result with created, updated, and deleted arrays
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* // Patch mode (default) - only mentioned items are affected
|
|
136
|
+
* const result = await sdk.contactMethods.sync("client_123", [
|
|
137
|
+
* // Create new email (no id)
|
|
138
|
+
* { type: "email", value: "new@example.com", isPrimary: true },
|
|
139
|
+
* // Update existing phone (has id)
|
|
140
|
+
* { id: "cm_456", value: "+52 555 123 4567" },
|
|
141
|
+
* // Delete contact method (has id and _delete: true)
|
|
142
|
+
* { id: "cm_789", _delete: true },
|
|
143
|
+
* ]);
|
|
144
|
+
*
|
|
145
|
+
* // Replace mode - provided array becomes the complete set (requires full create input for new items)
|
|
146
|
+
* const result = await sdk.contactMethods.sync("client_123", methods, { replaceMode: true });
|
|
147
|
+
*
|
|
148
|
+
* console.log(result.created); // newly created contact methods
|
|
149
|
+
* console.log(result.updated); // updated contact methods
|
|
150
|
+
* console.log(result.deleted); // array of deleted IDs
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
sync(clientId: string, items: SyncItem<CreateContactMethodInput>[], options: {
|
|
154
|
+
replaceMode: true;
|
|
155
|
+
}): Promise<SyncResult<ContactMethod>>;
|
|
156
|
+
sync(clientId: string, items: SyncItem<UpdateContactMethodInput>[], options?: {
|
|
157
|
+
replaceMode?: boolean;
|
|
158
|
+
}): Promise<SyncResult<ContactMethod>>;
|
|
159
|
+
/**
|
|
160
|
+
* Gets the primary contact method of a specific type for a client
|
|
161
|
+
*
|
|
162
|
+
* @param clientId - The client ID
|
|
163
|
+
* @param type - The contact method type
|
|
164
|
+
* @returns The primary ContactMethod or null
|
|
165
|
+
*/
|
|
166
|
+
getPrimary(clientId: string, type: ContactMethodType): Promise<ContactMethod | null>;
|
|
167
|
+
/**
|
|
168
|
+
* Marks a contact method as verified
|
|
169
|
+
*
|
|
170
|
+
* @param id - The contact method ID
|
|
171
|
+
* @returns The updated ContactMethod
|
|
172
|
+
*/
|
|
173
|
+
markVerified(id: string): Promise<ContactMethod>;
|
|
174
|
+
protected instantiate(data: ContactMethodData): ContactMethod;
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=contact-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-methods.d.ts","sourceRoot":"","sources":["../../src/resources/contact-methods.ts"],"names":[],"mappings":"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"}
|