@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.
@@ -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}`);
@@ -0,0 +1,8 @@
1
+ import { RioBankAccount } from "../types/rio-bank-account";
2
+ import { Subjects } from "./subjects";
3
+ export interface RioBankAccountDeletedEvent {
4
+ subject: Subjects.RioBankAccountDeleted;
5
+ data: {
6
+ rioBankAccount: RioBankAccount;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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",
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1441",
3
+ "version": "1.0.1443",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",