@alviere/core 0.9.0 → 0.10.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/entities/interfaces/gateways/accounts.interface.d.ts +6 -6
- package/dist/entities/interfaces/gateways/accounts.interface.d.ts.map +1 -1
- package/dist/entities/responses/dossiers/dossiers.d.ts +53 -0
- package/dist/entities/responses/dossiers/dossiers.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -5
- package/dist/index.mjs.map +1 -1
- package/dist/infrastructure/gateways/accounts.gateway.d.ts +1 -1
- package/dist/infrastructure/gateways/accounts.gateway.d.ts.map +1 -1
- package/dist/services/accounts-api.service.d.ts +1 -1
- package/dist/services/accounts-api.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/entities/responses/accounts/dossiers.d.ts +0 -26
- package/dist/entities/responses/accounts/dossiers.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -999,7 +999,7 @@ class AccountsGateway extends AlcoreBase {
|
|
|
999
999
|
}
|
|
1000
1000
|
async updateAccount(accountUuid, data) {
|
|
1001
1001
|
const endpoint = `/accounts/${accountUuid}`;
|
|
1002
|
-
const response = await this.send("
|
|
1002
|
+
const response = await this.send("PATCH", endpoint, data);
|
|
1003
1003
|
const encrypted = await response.json();
|
|
1004
1004
|
const decrypted = await this.decrypt(encrypted);
|
|
1005
1005
|
return throwIfApiError(decrypted);
|
|
@@ -1009,7 +1009,9 @@ class AccountsGateway extends AlcoreBase {
|
|
|
1009
1009
|
await this.send("DELETE", endpoint, {});
|
|
1010
1010
|
}
|
|
1011
1011
|
async listAccounts(params) {
|
|
1012
|
-
const query = params ? "?" + new URLSearchParams(
|
|
1012
|
+
const query = params ? "?" + new URLSearchParams(
|
|
1013
|
+
Object.entries(params).filter(([_, v]) => v !== void 0)
|
|
1014
|
+
) : "";
|
|
1013
1015
|
const endpoint = `/accounts${query}`;
|
|
1014
1016
|
const response = await this.send("GET", endpoint, {});
|
|
1015
1017
|
const encrypted = await response.json();
|
|
@@ -1036,7 +1038,9 @@ class AccountsGateway extends AlcoreBase {
|
|
|
1036
1038
|
return throwIfApiError(decrypted);
|
|
1037
1039
|
}
|
|
1038
1040
|
async getAddresses(accountUuid, params) {
|
|
1039
|
-
const query = params ? "?" + new URLSearchParams(
|
|
1041
|
+
const query = params ? "?" + new URLSearchParams(
|
|
1042
|
+
Object.entries(params).filter(([_, v]) => v !== void 0)
|
|
1043
|
+
) : "";
|
|
1040
1044
|
const endpoint = `/accounts/${accountUuid}/addresses${query}`;
|
|
1041
1045
|
const response = await this.send("GET", endpoint, {});
|
|
1042
1046
|
const encrypted = await response.json();
|
|
@@ -1062,7 +1066,9 @@ class AccountsGateway extends AlcoreBase {
|
|
|
1062
1066
|
return throwIfApiError(decrypted);
|
|
1063
1067
|
}
|
|
1064
1068
|
async getDossiers(accountUuid, params) {
|
|
1065
|
-
const query = params ? "?" + new URLSearchParams(
|
|
1069
|
+
const query = params ? "?" + new URLSearchParams(
|
|
1070
|
+
Object.entries(params).filter(([_, v]) => v !== void 0)
|
|
1071
|
+
) : "";
|
|
1066
1072
|
const endpoint = `/accounts/${accountUuid}/dossiers${query}`;
|
|
1067
1073
|
const response = await this.send("GET", endpoint, {});
|
|
1068
1074
|
const encrypted = await response.json();
|
|
@@ -1339,7 +1345,7 @@ class BankInfoGateway extends AlcoreBase {
|
|
|
1339
1345
|
this.logger.debug("🔐 BankInfoGateway initialized");
|
|
1340
1346
|
}
|
|
1341
1347
|
async getBankInfo(routingNumber) {
|
|
1342
|
-
const endpoint = `/bank-info?routing_number=${routingNumber}`;
|
|
1348
|
+
const endpoint = `/v3/bank-info?routing_number=${routingNumber}`;
|
|
1343
1349
|
const response = await this.send("GET", endpoint, {});
|
|
1344
1350
|
const encrypted = await response.json();
|
|
1345
1351
|
const decrypted = await this.decrypt(encrypted);
|
|
@@ -1569,6 +1575,37 @@ function NewDossierReplaceRequest(params) {
|
|
|
1569
1575
|
};
|
|
1570
1576
|
return getSanitizedBody(data);
|
|
1571
1577
|
}
|
|
1578
|
+
var DossierType = /* @__PURE__ */ ((DossierType2) => {
|
|
1579
|
+
DossierType2["PASSPORT"] = "PASSPORT";
|
|
1580
|
+
DossierType2["ID_DOCUMENT_FRONT"] = "ID_DOCUMENT_FRONT";
|
|
1581
|
+
DossierType2["ID_DOCUMENT_BACK"] = "ID_DOCUMENT_BACK";
|
|
1582
|
+
DossierType2["DRIVER_LICENSE_FRONT"] = "DRIVER_LICENSE_FRONT";
|
|
1583
|
+
DossierType2["DRIVER_LICENSE_BACK"] = "DRIVER_LICENSE_BACK";
|
|
1584
|
+
DossierType2["SELFIE"] = "SELFIE";
|
|
1585
|
+
DossierType2["PROOF_OF_ADDRESS"] = "PROOF_OF_ADDRESS";
|
|
1586
|
+
DossierType2["PROOF_OF_FUNDS"] = "PROOF_OF_FUNDS";
|
|
1587
|
+
DossierType2["MC_DOCUMENT_FRONT"] = "MC_DOCUMENT_FRONT";
|
|
1588
|
+
DossierType2["MC_DOCUMENT_BACK"] = "MC_DOCUMENT_BACK";
|
|
1589
|
+
DossierType2["INE_FRONT"] = "INE_FRONT";
|
|
1590
|
+
DossierType2["INE_BACK"] = "INE_BACK";
|
|
1591
|
+
DossierType2["ARTICLES_OF_INCORPORATION"] = "ARTICLES_OF_INCORPORATION";
|
|
1592
|
+
DossierType2["CERTIFICATE_OF_GOOD_STANDING"] = "CERTIFICATE_OF_GOOD_STANDING";
|
|
1593
|
+
DossierType2["ORG_CHART"] = "ORG_CHART";
|
|
1594
|
+
DossierType2["UBO_FORM"] = "UBO_FORM";
|
|
1595
|
+
DossierType2["REG_GG_ATTESTATION"] = "REG_GG_ATTESTATION";
|
|
1596
|
+
return DossierType2;
|
|
1597
|
+
})(DossierType || {});
|
|
1598
|
+
var DossierStatus = /* @__PURE__ */ ((DossierStatus2) => {
|
|
1599
|
+
DossierStatus2["CREATED"] = "CREATED";
|
|
1600
|
+
DossierStatus2["PENDING"] = "PENDING";
|
|
1601
|
+
DossierStatus2["MANUAL_REVIEW"] = "MANUAL_REVIEW";
|
|
1602
|
+
DossierStatus2["VERIFIED"] = "VERIFIED";
|
|
1603
|
+
DossierStatus2["EXPIRED"] = "EXPIRED";
|
|
1604
|
+
DossierStatus2["REJECTED"] = "REJECTED";
|
|
1605
|
+
DossierStatus2["FAILED"] = "FAILED";
|
|
1606
|
+
DossierStatus2["DELETED"] = "DELETED";
|
|
1607
|
+
return DossierStatus2;
|
|
1608
|
+
})(DossierStatus || {});
|
|
1572
1609
|
class BaseFieldPlugin {
|
|
1573
1610
|
constructor() {
|
|
1574
1611
|
this.eventListeners = /* @__PURE__ */ new Map();
|
|
@@ -2400,6 +2437,8 @@ export {
|
|
|
2400
2437
|
CriticalErrorCodes,
|
|
2401
2438
|
Cryptor,
|
|
2402
2439
|
DEFAULT_CONFIG,
|
|
2440
|
+
DossierStatus,
|
|
2441
|
+
DossierType,
|
|
2403
2442
|
FieldPluginRegistry,
|
|
2404
2443
|
Logger,
|
|
2405
2444
|
NewAccountRequest,
|