@riocrypto/common 1.0.2466 → 1.0.2468
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 +7 -0
- package/build/index.js +7 -0
- package/build/types/dashboard-table-type.d.ts +3 -1
- package/build/types/dashboard-table-type.js +2 -0
- package/build/types/liquidity-sourcing-exclusion-type.d.ts +4 -0
- package/build/types/liquidity-sourcing-exclusion-type.js +8 -0
- package/build/types/liquidity-sourcing-exclusion.d.ts +14 -0
- package/build/types/liquidity-sourcing-exclusion.js +2 -0
- package/build/types/liquidity-sourcing-plan-status.d.ts +12 -0
- package/build/types/liquidity-sourcing-plan-status.js +16 -0
- package/build/types/liquidity-sourcing-plan.d.ts +20 -0
- package/build/types/liquidity-sourcing-plan.js +2 -0
- package/build/types/liquidity-sourcing-step-status.d.ts +8 -0
- package/build/types/liquidity-sourcing-step-status.js +12 -0
- package/build/types/liquidity-sourcing-step-type.d.ts +5 -0
- package/build/types/liquidity-sourcing-step-type.js +9 -0
- package/build/types/liquidity-sourcing-step.d.ts +38 -0
- package/build/types/liquidity-sourcing-step.js +2 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -451,6 +451,13 @@ export * from "./types/fireblocks-transfer-status";
|
|
|
451
451
|
export * from "./types/mexico-invoicing-method";
|
|
452
452
|
export * from "./types/auth-kyc-status";
|
|
453
453
|
export * from "./types/order-log";
|
|
454
|
+
export * from "./types/liquidity-sourcing-plan";
|
|
455
|
+
export * from "./types/liquidity-sourcing-plan-status";
|
|
456
|
+
export * from "./types/liquidity-sourcing-step";
|
|
457
|
+
export * from "./types/liquidity-sourcing-step-type";
|
|
458
|
+
export * from "./types/liquidity-sourcing-step-status";
|
|
459
|
+
export * from "./types/liquidity-sourcing-exclusion";
|
|
460
|
+
export * from "./types/liquidity-sourcing-exclusion-type";
|
|
454
461
|
export * from "./classes/KYCFieldClass";
|
|
455
462
|
export * from "./classes/KYCFileClass";
|
|
456
463
|
export * from "./classes/CountryAsset";
|
package/build/index.js
CHANGED
|
@@ -467,6 +467,13 @@ __exportStar(require("./types/fireblocks-transfer-status"), exports);
|
|
|
467
467
|
__exportStar(require("./types/mexico-invoicing-method"), exports);
|
|
468
468
|
__exportStar(require("./types/auth-kyc-status"), exports);
|
|
469
469
|
__exportStar(require("./types/order-log"), exports);
|
|
470
|
+
__exportStar(require("./types/liquidity-sourcing-plan"), exports);
|
|
471
|
+
__exportStar(require("./types/liquidity-sourcing-plan-status"), exports);
|
|
472
|
+
__exportStar(require("./types/liquidity-sourcing-step"), exports);
|
|
473
|
+
__exportStar(require("./types/liquidity-sourcing-step-type"), exports);
|
|
474
|
+
__exportStar(require("./types/liquidity-sourcing-step-status"), exports);
|
|
475
|
+
__exportStar(require("./types/liquidity-sourcing-exclusion"), exports);
|
|
476
|
+
__exportStar(require("./types/liquidity-sourcing-exclusion-type"), exports);
|
|
470
477
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
471
478
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
472
479
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
@@ -28,5 +28,7 @@ export declare enum DashboardTableType {
|
|
|
28
28
|
InternalTrades = "internalTrades",
|
|
29
29
|
Usage = "usage",
|
|
30
30
|
TemporaryVerifications = "temporaryVerifications",
|
|
31
|
-
AdminActions = "adminActions"
|
|
31
|
+
AdminActions = "adminActions",
|
|
32
|
+
LiquiditySourcingPlans = "liquiditySourcingPlans",
|
|
33
|
+
LiquiditySourcingExclusions = "liquiditySourcingExclusions"
|
|
32
34
|
}
|
|
@@ -33,4 +33,6 @@ var DashboardTableType;
|
|
|
33
33
|
DashboardTableType["Usage"] = "usage";
|
|
34
34
|
DashboardTableType["TemporaryVerifications"] = "temporaryVerifications";
|
|
35
35
|
DashboardTableType["AdminActions"] = "adminActions";
|
|
36
|
+
DashboardTableType["LiquiditySourcingPlans"] = "liquiditySourcingPlans";
|
|
37
|
+
DashboardTableType["LiquiditySourcingExclusions"] = "liquiditySourcingExclusions";
|
|
36
38
|
})(DashboardTableType = exports.DashboardTableType || (exports.DashboardTableType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiquiditySourcingExclusionType = void 0;
|
|
4
|
+
var LiquiditySourcingExclusionType;
|
|
5
|
+
(function (LiquiditySourcingExclusionType) {
|
|
6
|
+
LiquiditySourcingExclusionType["Transfer"] = "transfer";
|
|
7
|
+
LiquiditySourcingExclusionType["Trade"] = "trade";
|
|
8
|
+
})(LiquiditySourcingExclusionType = exports.LiquiditySourcingExclusionType || (exports.LiquiditySourcingExclusionType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Crypto } from "./crypto";
|
|
2
|
+
import { Fiat } from "./fiat";
|
|
3
|
+
import { TreasuryProvider } from "./treasury-provider";
|
|
4
|
+
import { LiquiditySourcingExclusionType } from "./liquidity-sourcing-exclusion-type";
|
|
5
|
+
export interface LiquiditySourcingExclusion {
|
|
6
|
+
id: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
type: LiquiditySourcingExclusionType;
|
|
9
|
+
provider: TreasuryProvider;
|
|
10
|
+
currencies?: (Crypto | Fiat)[];
|
|
11
|
+
originCurrencies?: Crypto[];
|
|
12
|
+
destinationCurrencies?: Crypto[];
|
|
13
|
+
reason?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum LiquiditySourcingPlanStatus {
|
|
2
|
+
AwaitingMinimum = "awaitingMinimum",
|
|
3
|
+
Created = "created",
|
|
4
|
+
Planning = "planning",
|
|
5
|
+
AwaitingApproval = "awaitingApproval",
|
|
6
|
+
Executing = "executing",
|
|
7
|
+
Complete = "complete",
|
|
8
|
+
PartiallyComplete = "partiallyComplete",
|
|
9
|
+
Failed = "failed",
|
|
10
|
+
Cancelled = "cancelled",
|
|
11
|
+
NoPlanAvailable = "noPlanAvailable"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiquiditySourcingPlanStatus = void 0;
|
|
4
|
+
var LiquiditySourcingPlanStatus;
|
|
5
|
+
(function (LiquiditySourcingPlanStatus) {
|
|
6
|
+
LiquiditySourcingPlanStatus["AwaitingMinimum"] = "awaitingMinimum";
|
|
7
|
+
LiquiditySourcingPlanStatus["Created"] = "created";
|
|
8
|
+
LiquiditySourcingPlanStatus["Planning"] = "planning";
|
|
9
|
+
LiquiditySourcingPlanStatus["AwaitingApproval"] = "awaitingApproval";
|
|
10
|
+
LiquiditySourcingPlanStatus["Executing"] = "executing";
|
|
11
|
+
LiquiditySourcingPlanStatus["Complete"] = "complete";
|
|
12
|
+
LiquiditySourcingPlanStatus["PartiallyComplete"] = "partiallyComplete";
|
|
13
|
+
LiquiditySourcingPlanStatus["Failed"] = "failed";
|
|
14
|
+
LiquiditySourcingPlanStatus["Cancelled"] = "cancelled";
|
|
15
|
+
LiquiditySourcingPlanStatus["NoPlanAvailable"] = "noPlanAvailable";
|
|
16
|
+
})(LiquiditySourcingPlanStatus = exports.LiquiditySourcingPlanStatus || (exports.LiquiditySourcingPlanStatus = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Fiat } from "./fiat";
|
|
2
|
+
import { Crypto } from "./crypto";
|
|
3
|
+
import { TreasuryProvider } from "./treasury-provider";
|
|
4
|
+
import { LiquiditySourcingPlanStatus } from "./liquidity-sourcing-plan-status";
|
|
5
|
+
import { LiquiditySourcingStep } from "./liquidity-sourcing-step";
|
|
6
|
+
export interface LiquiditySourcingPlan {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
orderIds?: string[];
|
|
10
|
+
bulkBankPayoutId?: string;
|
|
11
|
+
bulkCryptoPayoutId?: string;
|
|
12
|
+
targetCurrency: Fiat | Crypto;
|
|
13
|
+
targetProvider: TreasuryProvider;
|
|
14
|
+
amountNeeded: number;
|
|
15
|
+
amountToSource: number;
|
|
16
|
+
status: LiquiditySourcingPlanStatus;
|
|
17
|
+
currentStepIndex: number;
|
|
18
|
+
steps: LiquiditySourcingStep[];
|
|
19
|
+
amountSourced?: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiquiditySourcingStepStatus = void 0;
|
|
4
|
+
var LiquiditySourcingStepStatus;
|
|
5
|
+
(function (LiquiditySourcingStepStatus) {
|
|
6
|
+
LiquiditySourcingStepStatus["Pending"] = "pending";
|
|
7
|
+
LiquiditySourcingStepStatus["AwaitingApproval"] = "awaitingApproval";
|
|
8
|
+
LiquiditySourcingStepStatus["Executing"] = "executing";
|
|
9
|
+
LiquiditySourcingStepStatus["Complete"] = "complete";
|
|
10
|
+
LiquiditySourcingStepStatus["Failed"] = "failed";
|
|
11
|
+
LiquiditySourcingStepStatus["Cancelled"] = "cancelled";
|
|
12
|
+
})(LiquiditySourcingStepStatus = exports.LiquiditySourcingStepStatus || (exports.LiquiditySourcingStepStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiquiditySourcingStepType = void 0;
|
|
4
|
+
var LiquiditySourcingStepType;
|
|
5
|
+
(function (LiquiditySourcingStepType) {
|
|
6
|
+
LiquiditySourcingStepType["Transfer"] = "transfer";
|
|
7
|
+
LiquiditySourcingStepType["Trade"] = "trade";
|
|
8
|
+
LiquiditySourcingStepType["FXTrade"] = "fxTrade";
|
|
9
|
+
})(LiquiditySourcingStepType = exports.LiquiditySourcingStepType || (exports.LiquiditySourcingStepType = {}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Fiat } from "./fiat";
|
|
2
|
+
import { Crypto } from "./crypto";
|
|
3
|
+
import { TreasuryProvider } from "./treasury-provider";
|
|
4
|
+
import { FXProvider } from "./fx-provider";
|
|
5
|
+
import { Side } from "./side";
|
|
6
|
+
import { LiquiditySourcingStepType } from "./liquidity-sourcing-step-type";
|
|
7
|
+
import { LiquiditySourcingStepStatus } from "./liquidity-sourcing-step-status";
|
|
8
|
+
interface LiquiditySourcingStepBase {
|
|
9
|
+
status: LiquiditySourcingStepStatus;
|
|
10
|
+
startedAt?: Date;
|
|
11
|
+
}
|
|
12
|
+
export interface LiquiditySourcingTransferStep extends LiquiditySourcingStepBase {
|
|
13
|
+
type: LiquiditySourcingStepType.Transfer;
|
|
14
|
+
origin: TreasuryProvider;
|
|
15
|
+
destination: TreasuryProvider;
|
|
16
|
+
currency: Fiat | Crypto;
|
|
17
|
+
amount: number;
|
|
18
|
+
internalTransferId?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface LiquiditySourcingTradeStep extends LiquiditySourcingStepBase {
|
|
21
|
+
type: LiquiditySourcingStepType.Trade;
|
|
22
|
+
provider: TreasuryProvider;
|
|
23
|
+
originCurrency: Fiat | Crypto;
|
|
24
|
+
originAmount: number;
|
|
25
|
+
destinationCurrency: Fiat | Crypto;
|
|
26
|
+
internalTradeId?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LiquiditySourcingFXTradeStep extends LiquiditySourcingStepBase {
|
|
29
|
+
type: LiquiditySourcingStepType.FXTrade;
|
|
30
|
+
provider: FXProvider;
|
|
31
|
+
side: Side;
|
|
32
|
+
amount: number;
|
|
33
|
+
originCurrency: Fiat | Crypto;
|
|
34
|
+
destinationCurrency: Fiat | Crypto;
|
|
35
|
+
externalTradeId?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare type LiquiditySourcingStep = LiquiditySourcingTransferStep | LiquiditySourcingTradeStep | LiquiditySourcingFXTradeStep;
|
|
38
|
+
export {};
|