@riocrypto/common 1.0.1815 → 1.0.1817
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/events/pre-settlement-transaction-created-event.d.ts +2 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/currency-with-country.d.ts +12 -0
- package/build/types/currency-with-country.js +16 -0
- package/build/types/pre-settlement-transaction.d.ts +2 -0
- package/build/types/user.d.ts +2 -4
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { Fiat } from "../types/fiat";
|
|
|
2
2
|
import { Crypto } from "../types/crypto";
|
|
3
3
|
import { PreSettlementTransactionType } from "../types/pre-settlement-transaction-type";
|
|
4
4
|
import { Subjects } from "./subjects";
|
|
5
|
+
import { Country } from "../types/country";
|
|
5
6
|
export interface PreSettlementTransactionCreatedEvent {
|
|
6
7
|
subject: Subjects.PreSettlementTransactionCreated;
|
|
7
8
|
data: {
|
|
@@ -10,6 +11,7 @@ export interface PreSettlementTransactionCreatedEvent {
|
|
|
10
11
|
type: PreSettlementTransactionType;
|
|
11
12
|
amount: number;
|
|
12
13
|
currency: Fiat | Crypto;
|
|
14
|
+
country: Country;
|
|
13
15
|
orderId?: string;
|
|
14
16
|
};
|
|
15
17
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -317,6 +317,7 @@ export * from "./types/arbitrage-trade-status";
|
|
|
317
317
|
export * from "./types/arbitrage-trade-type";
|
|
318
318
|
export * from "./types/pre-settlement-transaction";
|
|
319
319
|
export * from "./types/pre-settlement-transaction-type";
|
|
320
|
+
export * from "./types/currency-with-country";
|
|
320
321
|
export * from "./classes/KYCFieldClass";
|
|
321
322
|
export * from "./classes/KYCFileClass";
|
|
322
323
|
export * from "./classes/CountryAsset";
|
package/build/index.js
CHANGED
|
@@ -333,6 +333,7 @@ __exportStar(require("./types/arbitrage-trade-status"), exports);
|
|
|
333
333
|
__exportStar(require("./types/arbitrage-trade-type"), exports);
|
|
334
334
|
__exportStar(require("./types/pre-settlement-transaction"), exports);
|
|
335
335
|
__exportStar(require("./types/pre-settlement-transaction-type"), exports);
|
|
336
|
+
__exportStar(require("./types/currency-with-country"), exports);
|
|
336
337
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
337
338
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
338
339
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum CurrencyWithCountry {
|
|
2
|
+
USDCPolygon = "USDC_POLYGON_NXTB",
|
|
3
|
+
USDCSolana = "SOL_USDC_PTHX",
|
|
4
|
+
USDTPolygon = "USDT_POLYGON",
|
|
5
|
+
USDTEthereum = "USDT_ERC20",
|
|
6
|
+
USDTTron = "TRX_USDT_S2UZ",
|
|
7
|
+
MXN = "MXN-MX",
|
|
8
|
+
USD = "USD-US",
|
|
9
|
+
PEN = "PEN-PE",
|
|
10
|
+
MXUSD = "USD-MX",
|
|
11
|
+
PEUSD = "USD-PE"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyWithCountry = void 0;
|
|
4
|
+
var CurrencyWithCountry;
|
|
5
|
+
(function (CurrencyWithCountry) {
|
|
6
|
+
CurrencyWithCountry["USDCPolygon"] = "USDC_POLYGON_NXTB";
|
|
7
|
+
CurrencyWithCountry["USDCSolana"] = "SOL_USDC_PTHX";
|
|
8
|
+
CurrencyWithCountry["USDTPolygon"] = "USDT_POLYGON";
|
|
9
|
+
CurrencyWithCountry["USDTEthereum"] = "USDT_ERC20";
|
|
10
|
+
CurrencyWithCountry["USDTTron"] = "TRX_USDT_S2UZ";
|
|
11
|
+
CurrencyWithCountry["MXN"] = "MXN-MX";
|
|
12
|
+
CurrencyWithCountry["USD"] = "USD-US";
|
|
13
|
+
CurrencyWithCountry["PEN"] = "PEN-PE";
|
|
14
|
+
CurrencyWithCountry["MXUSD"] = "USD-MX";
|
|
15
|
+
CurrencyWithCountry["PEUSD"] = "USD-PE";
|
|
16
|
+
})(CurrencyWithCountry = exports.CurrencyWithCountry || (exports.CurrencyWithCountry = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fiat } from "./fiat";
|
|
2
2
|
import { Crypto } from "./crypto";
|
|
3
3
|
import { PreSettlementTransactionType } from "./pre-settlement-transaction-type";
|
|
4
|
+
import { Country } from "./country";
|
|
4
5
|
export interface PreSettlementTransaction {
|
|
5
6
|
id: string;
|
|
6
7
|
createdAt: Date;
|
|
@@ -8,5 +9,6 @@ export interface PreSettlementTransaction {
|
|
|
8
9
|
type: PreSettlementTransactionType;
|
|
9
10
|
amount: number;
|
|
10
11
|
currency: Fiat | Crypto;
|
|
12
|
+
country: Country;
|
|
11
13
|
orderId?: string;
|
|
12
14
|
}
|
package/build/types/user.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { UserType } from "./user-type";
|
|
|
7
7
|
import { ImmigrationStatus } from "./immigration-status";
|
|
8
8
|
import { Country } from "./country";
|
|
9
9
|
import { Fiat } from "./fiat";
|
|
10
|
-
import {
|
|
10
|
+
import { CurrencyWithCountry } from "./currency-with-country";
|
|
11
11
|
declare type IndividualUser = {
|
|
12
12
|
id: string;
|
|
13
13
|
individualData?: {
|
|
@@ -127,9 +127,7 @@ export declare type User = {
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
preSettlementAmount?: {
|
|
130
|
-
[
|
|
131
|
-
[currency in Fiat | Crypto]?: number;
|
|
132
|
-
};
|
|
130
|
+
[currency in CurrencyWithCountry]?: number;
|
|
133
131
|
};
|
|
134
132
|
} & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
|
|
135
133
|
export {};
|