@riocrypto/common 1.0.2404 → 1.0.2406

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/index.d.ts CHANGED
@@ -438,7 +438,9 @@ export * from "./types/transnetwork-bot-status";
438
438
  export * from "./types/inbound-bank-deposit";
439
439
  export * from "./types/inbound-crypto-deposit";
440
440
  export * from "./types/inbound-crypto-deposit-destination-type";
441
- export * from "./types/stp-withdrawal-status";
441
+ export * from "./types/STP-mxn-withdrawal-status";
442
+ export * from "./types/bitso-mxn-withdrawal-status";
443
+ export * from "./types/fireblocks-withdrawal-status";
442
444
  export * from "./classes/KYCFieldClass";
443
445
  export * from "./classes/KYCFileClass";
444
446
  export * from "./classes/CountryAsset";
package/build/index.js CHANGED
@@ -454,7 +454,9 @@ __exportStar(require("./types/transnetwork-bot-status"), exports);
454
454
  __exportStar(require("./types/inbound-bank-deposit"), exports);
455
455
  __exportStar(require("./types/inbound-crypto-deposit"), exports);
456
456
  __exportStar(require("./types/inbound-crypto-deposit-destination-type"), exports);
457
- __exportStar(require("./types/stp-withdrawal-status"), exports);
457
+ __exportStar(require("./types/STP-mxn-withdrawal-status"), exports);
458
+ __exportStar(require("./types/bitso-mxn-withdrawal-status"), exports);
459
+ __exportStar(require("./types/fireblocks-withdrawal-status"), exports);
458
460
  __exportStar(require("./classes/KYCFieldClass"), exports);
459
461
  __exportStar(require("./classes/KYCFileClass"), exports);
460
462
  __exportStar(require("./classes/CountryAsset"), exports);
@@ -1,4 +1,4 @@
1
- export declare enum STPWithdrawalStatus {
1
+ export declare enum STPMXNWithdrawalStatus {
2
2
  PendingApproval = "pendingApproval",
3
3
  Processing = "processing",
4
4
  Complete = "complete",
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STPMXNWithdrawalStatus = void 0;
4
+ var STPMXNWithdrawalStatus;
5
+ (function (STPMXNWithdrawalStatus) {
6
+ STPMXNWithdrawalStatus["PendingApproval"] = "pendingApproval";
7
+ STPMXNWithdrawalStatus["Processing"] = "processing";
8
+ STPMXNWithdrawalStatus["Complete"] = "complete";
9
+ STPMXNWithdrawalStatus["Failed"] = "failed";
10
+ })(STPMXNWithdrawalStatus = exports.STPMXNWithdrawalStatus || (exports.STPMXNWithdrawalStatus = {}));
@@ -1,4 +1,4 @@
1
- import { STPWithdrawalStatus } from "./stp-withdrawal-status";
1
+ import { STPMXNWithdrawalStatus } from "./STP-mxn-withdrawal-status";
2
2
  export interface STPMXNWithdrawal {
3
3
  createdAt: Date;
4
4
  type: "transaction" | "bankAccountVerification" | "liquidityOrder" | "internalTransfer";
@@ -12,7 +12,7 @@ export interface STPMXNWithdrawal {
12
12
  partNumber: number;
13
13
  amount: number;
14
14
  reference: string;
15
- status: STPWithdrawalStatus;
15
+ status: STPMXNWithdrawalStatus;
16
16
  }[];
17
17
  numberOfParts?: number;
18
18
  partsCompleted?: number;
@@ -0,0 +1,6 @@
1
+ export declare enum BitsoMXNWithdrawalStatus {
2
+ PendingApproval = "pendingApproval",
3
+ Processing = "processing",
4
+ Complete = "complete",
5
+ Failed = "failed"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitsoMXNWithdrawalStatus = void 0;
4
+ var BitsoMXNWithdrawalStatus;
5
+ (function (BitsoMXNWithdrawalStatus) {
6
+ BitsoMXNWithdrawalStatus["PendingApproval"] = "pendingApproval";
7
+ BitsoMXNWithdrawalStatus["Processing"] = "processing";
8
+ BitsoMXNWithdrawalStatus["Complete"] = "complete";
9
+ BitsoMXNWithdrawalStatus["Failed"] = "failed";
10
+ })(BitsoMXNWithdrawalStatus = exports.BitsoMXNWithdrawalStatus || (exports.BitsoMXNWithdrawalStatus = {}));
@@ -1,3 +1,4 @@
1
+ import { BitsoMXNWithdrawalStatus } from "./bitso-mxn-withdrawal-status";
1
2
  export interface BitsoMXNWithdrawal {
2
3
  createdAt: Date;
3
4
  type: "transaction" | "bankAccountVerification" | "liquidityOrder" | "internalTransfer";
@@ -8,8 +9,11 @@ export interface BitsoMXNWithdrawal {
8
9
  orderVersion?: number;
9
10
  bulkBankPayoutId?: string;
10
11
  bitsoWithdrawals: {
11
- id: string;
12
- status: "processing" | "complete" | "failed";
12
+ id?: string;
13
+ partNumber: number;
14
+ status: BitsoMXNWithdrawalStatus;
15
+ amount: number;
16
+ reference: string;
13
17
  }[];
14
18
  numberOfParts?: number;
15
19
  partsCompleted?: number;
@@ -1,3 +1,4 @@
1
+ import { FireblocksWithdrawalStatus } from "./fireblocks-withdrawal-status";
1
2
  export interface FireblocksTransfer {
2
3
  id: string;
3
4
  userId: string;
@@ -12,7 +13,7 @@ export interface FireblocksTransfer {
12
13
  id: string;
13
14
  amount: number;
14
15
  partNumber?: number;
15
- status: "initiated" | "completed" | "failed";
16
+ status: FireblocksWithdrawalStatus;
16
17
  retryCount: number;
17
18
  }[];
18
19
  netAmountTransfered?: number;
@@ -0,0 +1,6 @@
1
+ export declare enum FireblocksWithdrawalStatus {
2
+ PendingApproval = "pendingApproval",
3
+ Initiated = "initiated",
4
+ Completed = "completed",
5
+ Failed = "failed"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FireblocksWithdrawalStatus = void 0;
4
+ var FireblocksWithdrawalStatus;
5
+ (function (FireblocksWithdrawalStatus) {
6
+ FireblocksWithdrawalStatus["PendingApproval"] = "pendingApproval";
7
+ FireblocksWithdrawalStatus["Initiated"] = "initiated";
8
+ FireblocksWithdrawalStatus["Completed"] = "completed";
9
+ FireblocksWithdrawalStatus["Failed"] = "failed";
10
+ })(FireblocksWithdrawalStatus = exports.FireblocksWithdrawalStatus || (exports.FireblocksWithdrawalStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2404",
3
+ "version": "1.0.2406",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STPWithdrawalStatus = void 0;
4
- var STPWithdrawalStatus;
5
- (function (STPWithdrawalStatus) {
6
- STPWithdrawalStatus["PendingApproval"] = "pendingApproval";
7
- STPWithdrawalStatus["Processing"] = "processing";
8
- STPWithdrawalStatus["Complete"] = "complete";
9
- STPWithdrawalStatus["Failed"] = "failed";
10
- })(STPWithdrawalStatus = exports.STPWithdrawalStatus || (exports.STPWithdrawalStatus = {}));