@riocrypto/common 1.0.1441 → 1.0.1443
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/build/clients/rio-admin-client.d.ts +1 -0
- package/build/clients/rio-admin-client.js +5 -0
- package/build/events/rio-bank-account-deleted-event.d.ts +8 -0
- package/build/events/rio-bank-account-deleted-event.js +2 -0
- package/build/events/subjects.d.ts +1 -0
- package/build/events/subjects.js +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/package.json +1 -1
|
@@ -181,6 +181,7 @@ export declare class RioAdminClient {
|
|
|
181
181
|
createRioBankAccount(country: Country, fiat: Fiat, bankName?: string, bankAddress?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<RioBankAccount>;
|
|
182
182
|
updateRioBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, bankAddress?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<RioBankAccount>;
|
|
183
183
|
getRioBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<RioBankAccount[]>;
|
|
184
|
+
deleteRioBankAccount(id: string): Promise<void>;
|
|
184
185
|
deleteAddress(id: string): Promise<void>;
|
|
185
186
|
getFeesByVolume(): Promise<{
|
|
186
187
|
days: number;
|
|
@@ -716,6 +716,11 @@ class RioAdminClient {
|
|
|
716
716
|
return response.data;
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
+
deleteRioBankAccount(id) {
|
|
720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
721
|
+
yield this.axios.delete(`/api/bank/accounts/rio/${id}`);
|
|
722
|
+
});
|
|
723
|
+
}
|
|
719
724
|
deleteAddress(id) {
|
|
720
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
721
726
|
yield this.axios.delete(`/api/addresses/${id}`);
|
|
@@ -84,6 +84,7 @@ export declare enum Subjects {
|
|
|
84
84
|
BankAccountCreated = "bankAccount:created",
|
|
85
85
|
BankAccountUpdated = "bankAccount:updated",
|
|
86
86
|
BankAccountDeleted = "bankAccount:deleted",
|
|
87
|
+
RioBankAccountDeleted = "rioBankAccount:deleted",
|
|
87
88
|
BankTransferCompleted = "bankTransfer:completed",
|
|
88
89
|
BitsoReceivingAccountCreated = "bitsoReceivingAccount:created",
|
|
89
90
|
BitsoBankAccountCreated = "bitsoBankAccount:created",
|
package/build/events/subjects.js
CHANGED
|
@@ -88,6 +88,7 @@ var Subjects;
|
|
|
88
88
|
Subjects["BankAccountCreated"] = "bankAccount:created";
|
|
89
89
|
Subjects["BankAccountUpdated"] = "bankAccount:updated";
|
|
90
90
|
Subjects["BankAccountDeleted"] = "bankAccount:deleted";
|
|
91
|
+
Subjects["RioBankAccountDeleted"] = "rioBankAccount:deleted";
|
|
91
92
|
Subjects["BankTransferCompleted"] = "bankTransfer:completed";
|
|
92
93
|
Subjects["BitsoReceivingAccountCreated"] = "bitsoReceivingAccount:created";
|
|
93
94
|
Subjects["BitsoBankAccountCreated"] = "bitsoBankAccount:created";
|
package/build/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export * from "./events/address-verification-initiated-event";
|
|
|
132
132
|
export * from "./events/address-verification-sent-event";
|
|
133
133
|
export * from "./events/bank-account-verification-initiated-event";
|
|
134
134
|
export * from "./events/bank-account-verification-sent-event";
|
|
135
|
+
export * from "./events/rio-bank-account-deleted-event";
|
|
135
136
|
export * from "./types/auth-payload";
|
|
136
137
|
export * from "./types/admin-auth-payload";
|
|
137
138
|
export * from "./types/admin-auth";
|
package/build/index.js
CHANGED
|
@@ -148,6 +148,7 @@ __exportStar(require("./events/address-verification-initiated-event"), exports);
|
|
|
148
148
|
__exportStar(require("./events/address-verification-sent-event"), exports);
|
|
149
149
|
__exportStar(require("./events/bank-account-verification-initiated-event"), exports);
|
|
150
150
|
__exportStar(require("./events/bank-account-verification-sent-event"), exports);
|
|
151
|
+
__exportStar(require("./events/rio-bank-account-deleted-event"), exports);
|
|
151
152
|
__exportStar(require("./types/auth-payload"), exports);
|
|
152
153
|
__exportStar(require("./types/admin-auth-payload"), exports);
|
|
153
154
|
__exportStar(require("./types/admin-auth"), exports);
|