@riocrypto/common 1.0.1764 → 1.0.1766

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
@@ -301,8 +301,9 @@ export * from "./types/arbitrage-asset";
301
301
  export * from "./types/arbitrage-frequency";
302
302
  export * from "./types/arbitrage-provider";
303
303
  export * from "./types/fx-provider";
304
- export * from "./types/internal-transfer-automation-frequency";
305
- export * from "./types/internal-transfer-automation";
304
+ export * from "./types/liquidity-automation-frequency";
305
+ export * from "./types/liquidity-automation";
306
+ export * from "./types/liquidity-automation-type";
306
307
  export * from "./classes/KYCFieldClass";
307
308
  export * from "./classes/KYCFileClass";
308
309
  export * from "./classes/CountryAsset";
package/build/index.js CHANGED
@@ -317,8 +317,9 @@ __exportStar(require("./types/arbitrage-asset"), exports);
317
317
  __exportStar(require("./types/arbitrage-frequency"), exports);
318
318
  __exportStar(require("./types/arbitrage-provider"), exports);
319
319
  __exportStar(require("./types/fx-provider"), exports);
320
- __exportStar(require("./types/internal-transfer-automation-frequency"), exports);
321
- __exportStar(require("./types/internal-transfer-automation"), exports);
320
+ __exportStar(require("./types/liquidity-automation-frequency"), exports);
321
+ __exportStar(require("./types/liquidity-automation"), exports);
322
+ __exportStar(require("./types/liquidity-automation-type"), exports);
322
323
  __exportStar(require("./classes/KYCFieldClass"), exports);
323
324
  __exportStar(require("./classes/KYCFileClass"), exports);
324
325
  __exportStar(require("./classes/CountryAsset"), exports);
@@ -1,4 +1,4 @@
1
- export declare enum InternalTransferAutomationFrequency {
1
+ export declare enum LiquidityAutomationFrequency {
2
2
  Once = "once",
3
3
  Daily = "daily",
4
4
  MondayToFriday = "mondayToFriday"
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiquidityAutomationFrequency = void 0;
4
+ var LiquidityAutomationFrequency;
5
+ (function (LiquidityAutomationFrequency) {
6
+ LiquidityAutomationFrequency["Once"] = "once";
7
+ LiquidityAutomationFrequency["Daily"] = "daily";
8
+ LiquidityAutomationFrequency["MondayToFriday"] = "mondayToFriday";
9
+ })(LiquidityAutomationFrequency = exports.LiquidityAutomationFrequency || (exports.LiquidityAutomationFrequency = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum LiquidityAutomationType {
2
+ Transfer = "transfer",
3
+ Trade = "trade"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiquidityAutomationType = void 0;
4
+ var LiquidityAutomationType;
5
+ (function (LiquidityAutomationType) {
6
+ LiquidityAutomationType["Transfer"] = "transfer";
7
+ LiquidityAutomationType["Trade"] = "trade";
8
+ })(LiquidityAutomationType = exports.LiquidityAutomationType || (exports.LiquidityAutomationType = {}));
@@ -0,0 +1,32 @@
1
+ import { InternalTransferType } from "./internal-transfer-type";
2
+ import { TreasuryProvider } from "./treasury-provider";
3
+ import { Fiat } from "./fiat";
4
+ import { Crypto } from "./crypto";
5
+ import { LiquidityAutomationType } from "./liquidity-automation-type";
6
+ import { LiquidityAutomationFrequency } from "./liquidity-automation-frequency";
7
+ import { InternalTradeType } from "./internal-trade-type";
8
+ export interface LiquidityAutomation {
9
+ id: string;
10
+ createdAt: Date;
11
+ adminId: string;
12
+ type: LiquidityAutomationType;
13
+ transferDetails?: {
14
+ transferType?: InternalTransferType;
15
+ origin: TreasuryProvider;
16
+ destination: TreasuryProvider;
17
+ amount: number;
18
+ currency: Fiat | Crypto;
19
+ };
20
+ tradeDetails?: {
21
+ provider: TreasuryProvider;
22
+ originAmount: number;
23
+ originCurrency: Fiat | Crypto;
24
+ destinationAmount: number;
25
+ destinationCurrency: Fiat | Crypto;
26
+ type: InternalTradeType;
27
+ };
28
+ initialExecutionDate: Date;
29
+ frequency: LiquidityAutomationFrequency;
30
+ lastExecutionDate?: Date;
31
+ isActive: boolean;
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1764",
3
+ "version": "1.0.1766",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalTransferAutomationFrequency = void 0;
4
- var InternalTransferAutomationFrequency;
5
- (function (InternalTransferAutomationFrequency) {
6
- InternalTransferAutomationFrequency["Once"] = "once";
7
- InternalTransferAutomationFrequency["Daily"] = "daily";
8
- InternalTransferAutomationFrequency["MondayToFriday"] = "mondayToFriday";
9
- })(InternalTransferAutomationFrequency = exports.InternalTransferAutomationFrequency || (exports.InternalTransferAutomationFrequency = {}));
@@ -1,19 +0,0 @@
1
- import { InternalTransferType } from "./internal-transfer-type";
2
- import { TreasuryProvider } from "./treasury-provider";
3
- import { Fiat } from "./fiat";
4
- import { Crypto } from "./crypto";
5
- import { InternalTransferAutomationFrequency } from "./internal-transfer-automation-frequency";
6
- export interface InternalTransferAutomation {
7
- id: string;
8
- createdAt: Date;
9
- adminId: string;
10
- transferType: InternalTransferType;
11
- initialExecutionDate: Date;
12
- origin: TreasuryProvider;
13
- destination: TreasuryProvider;
14
- amount: number;
15
- currency: Fiat | Crypto;
16
- frequency: InternalTransferAutomationFrequency;
17
- lastExecutionDate?: Date;
18
- isActive: boolean;
19
- }