@riocrypto/common 1.0.2265 → 1.0.2267
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 +2 -0
- package/build/index.js +2 -0
- package/build/types/twap-session-status.d.ts +0 -1
- package/build/types/twap-session-status.js +0 -1
- package/build/types/twap-session.d.ts +2 -8
- package/build/types/twap-settlement-status.d.ts +9 -0
- package/build/types/twap-settlement-status.js +13 -0
- package/build/types/twap-settlement.d.ts +19 -0
- package/build/types/twap-settlement.js +2 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -375,6 +375,8 @@ export * from "./types/bulk-crypto-payout";
|
|
|
375
375
|
export * from "./types/bulk-crypto-payout-status";
|
|
376
376
|
export * from "./types/bulk-bank-payout";
|
|
377
377
|
export * from "./types/bulk-bank-payout-status";
|
|
378
|
+
export * from "./types/twap-settlement";
|
|
379
|
+
export * from "./types/twap-settlement-status";
|
|
378
380
|
export * from "./classes/KYCFieldClass";
|
|
379
381
|
export * from "./classes/KYCFileClass";
|
|
380
382
|
export * from "./classes/CountryAsset";
|
package/build/index.js
CHANGED
|
@@ -391,6 +391,8 @@ __exportStar(require("./types/bulk-crypto-payout"), exports);
|
|
|
391
391
|
__exportStar(require("./types/bulk-crypto-payout-status"), exports);
|
|
392
392
|
__exportStar(require("./types/bulk-bank-payout"), exports);
|
|
393
393
|
__exportStar(require("./types/bulk-bank-payout-status"), exports);
|
|
394
|
+
__exportStar(require("./types/twap-settlement"), exports);
|
|
395
|
+
__exportStar(require("./types/twap-settlement-status"), exports);
|
|
394
396
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
395
397
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
396
398
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
@@ -4,7 +4,6 @@ exports.TWAPSessionStatus = void 0;
|
|
|
4
4
|
var TWAPSessionStatus;
|
|
5
5
|
(function (TWAPSessionStatus) {
|
|
6
6
|
TWAPSessionStatus["Running"] = "running";
|
|
7
|
-
TWAPSessionStatus["Stopped"] = "stopped";
|
|
8
7
|
TWAPSessionStatus["Completed"] = "complete";
|
|
9
8
|
TWAPSessionStatus["Failed"] = "failed";
|
|
10
9
|
})(TWAPSessionStatus = exports.TWAPSessionStatus || (exports.TWAPSessionStatus = {}));
|
|
@@ -27,12 +27,6 @@ export interface TWAPSession {
|
|
|
27
27
|
userId: string;
|
|
28
28
|
country: Country;
|
|
29
29
|
averageNetPrice?: number;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
completedBulkBankPayoutIds?: string[];
|
|
33
|
-
completedBulkCryptoPayoutIds?: string[];
|
|
34
|
-
activeBulkBankPaymentId?: string;
|
|
35
|
-
activeBulkCryptoPaymentId?: string;
|
|
36
|
-
completedBulkBankPaymentIds?: string[];
|
|
37
|
-
completedBulkCryptoPaymentIds?: string[];
|
|
30
|
+
activeTWAPSettlementId?: string;
|
|
31
|
+
executedTWAPSettlementIds?: string[];
|
|
38
32
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum TWAPSettlementStatus {
|
|
2
|
+
AwaitingOrders = "awaitingOrders",
|
|
3
|
+
AwaitingPayment = "awaitingPayment",
|
|
4
|
+
AwaitingPayout = "awaitingPayout",
|
|
5
|
+
AwaitingAsyncPayout = "awaitingAsyncPayout",
|
|
6
|
+
AwaitingAsyncPayment = "awaitingAsyncPayment",
|
|
7
|
+
Complete = "complete",
|
|
8
|
+
Failed = "failed"
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TWAPSettlementStatus = void 0;
|
|
4
|
+
var TWAPSettlementStatus;
|
|
5
|
+
(function (TWAPSettlementStatus) {
|
|
6
|
+
TWAPSettlementStatus["AwaitingOrders"] = "awaitingOrders";
|
|
7
|
+
TWAPSettlementStatus["AwaitingPayment"] = "awaitingPayment";
|
|
8
|
+
TWAPSettlementStatus["AwaitingPayout"] = "awaitingPayout";
|
|
9
|
+
TWAPSettlementStatus["AwaitingAsyncPayout"] = "awaitingAsyncPayout";
|
|
10
|
+
TWAPSettlementStatus["AwaitingAsyncPayment"] = "awaitingAsyncPayment";
|
|
11
|
+
TWAPSettlementStatus["Complete"] = "complete";
|
|
12
|
+
TWAPSettlementStatus["Failed"] = "failed";
|
|
13
|
+
})(TWAPSettlementStatus = exports.TWAPSettlementStatus || (exports.TWAPSettlementStatus = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Fiat } from "./fiat";
|
|
2
|
+
import { Crypto } from "./crypto";
|
|
3
|
+
import { DeferredPaymentType } from "./deferred-payment-type";
|
|
4
|
+
import { TWAPSettlementStatus } from "./twap-settlement-status";
|
|
5
|
+
export interface TWAPSettlement {
|
|
6
|
+
id: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
status: TWAPSettlementStatus;
|
|
9
|
+
TWAPSessionId: string;
|
|
10
|
+
deferredPaymentType: DeferredPaymentType;
|
|
11
|
+
paymentAmount: number;
|
|
12
|
+
paymentCurrency: Fiat | Crypto;
|
|
13
|
+
payoutAmount: number;
|
|
14
|
+
payoutCurrency: Fiat | Crypto;
|
|
15
|
+
bulkBankPaymentId?: string;
|
|
16
|
+
bulkCryptoPaymentId?: string;
|
|
17
|
+
bulkBankPayoutId?: string;
|
|
18
|
+
bulkCryptoPayoutId?: string;
|
|
19
|
+
}
|