@riocrypto/common 1.0.2465 → 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.
@@ -2,5 +2,5 @@ import { AdminTaskType } from "../types/admin-task-type";
2
2
  export declare class AdminTaskTypeClass {
3
3
  private key;
4
4
  constructor(key: AdminTaskType);
5
- getTaskLabel(): "Confirm bank transfer receipt" | "Exchange to USD" | "Place FX trade" | "Register bank account" | "Initiate bank transfer" | "Review KYC" | "Source liquidity" | "Check error" | "Source gas" | "Update order amount" | "Review limit order" | "Review active axe validity" | "Review unrecognized bank payment" | "Review unrecognized crypto payment" | "Revert TradingView FX provider to FXCM" | "Review cancelled fixed price order" | "Review rejected team member KYC" | "Provide emergency support" | "Review bank account" | "ERROR";
5
+ getTaskLabel(): "Confirm bank transfer receipt" | "Exchange to USD" | "Place FX trade" | "Register bank account" | "Initiate bank transfer" | "Review KYC" | "Source liquidity" | "Check error" | "Source gas" | "Update order amount" | "Review limit order" | "Review active axe validity" | "Review unrecognized bank payment" | "Review unrecognized crypto payment" | "Revert TradingView FX provider to FXCM" | "Review cancelled fixed price order" | "Review rejected team member KYC" | "Provide emergency support" | "Review bank account" | "Initiate stablecoin transfer" | "ERROR";
6
6
  }
@@ -64,6 +64,9 @@ class AdminTaskTypeClass {
64
64
  else if (this.key === admin_task_type_1.AdminTaskType.ReviewBankAccount) {
65
65
  return "Review bank account";
66
66
  }
67
+ else if (this.key === admin_task_type_1.AdminTaskType.InitiateCryptoTransfer) {
68
+ return "Initiate stablecoin transfer";
69
+ }
67
70
  else
68
71
  return "ERROR";
69
72
  }
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);
@@ -3,6 +3,7 @@ export declare enum AdminTaskType {
3
3
  FixExchangeRateToUSD = "fixExchangeRateToUSD",
4
4
  ExchangeToUSD = "exchangeToUSD",
5
5
  InitiateBankTransfer = "initiateBankTransfer",
6
+ InitiateCryptoTransfer = "initiateCryptoTransfer",
6
7
  RegisterBankAccount = "registerBankAccount",
7
8
  ReviewKYC = "reviewKYC",
8
9
  SourceLiquidity = "sourceLiquidity",
@@ -7,6 +7,7 @@ var AdminTaskType;
7
7
  AdminTaskType["FixExchangeRateToUSD"] = "fixExchangeRateToUSD";
8
8
  AdminTaskType["ExchangeToUSD"] = "exchangeToUSD";
9
9
  AdminTaskType["InitiateBankTransfer"] = "initiateBankTransfer";
10
+ AdminTaskType["InitiateCryptoTransfer"] = "initiateCryptoTransfer";
10
11
  AdminTaskType["RegisterBankAccount"] = "registerBankAccount";
11
12
  AdminTaskType["ReviewKYC"] = "reviewKYC";
12
13
  AdminTaskType["SourceLiquidity"] = "sourceLiquidity";
@@ -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,4 @@
1
+ export declare enum LiquiditySourcingExclusionType {
2
+ Transfer = "transfer",
3
+ Trade = "trade"
4
+ }
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export declare enum LiquiditySourcingStepStatus {
2
+ Pending = "pending",
3
+ AwaitingApproval = "awaitingApproval",
4
+ Executing = "executing",
5
+ Complete = "complete",
6
+ Failed = "failed",
7
+ Cancelled = "cancelled"
8
+ }
@@ -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,5 @@
1
+ export declare enum LiquiditySourcingStepType {
2
+ Transfer = "transfer",
3
+ Trade = "trade",
4
+ FXTrade = "fxTrade"
5
+ }
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2465",
3
+ "version": "1.0.2468",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",