@riocrypto/common-server 1.0.2079 → 1.0.2081
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/models/bank-account.d.ts +2 -0
- package/build/models/bank-account.js +3 -0
- package/build/models/crypto-address.d.ts +2 -0
- package/build/models/crypto-address.js +3 -0
- package/build/models/pre-settlement-transaction.d.ts +5 -3
- package/build/models/pre-settlement-transaction.js +3 -0
- package/build/models/user.d.ts +1 -7
- package/build/models/user.js +0 -3
- package/package.json +2 -2
|
@@ -14,6 +14,7 @@ interface BankAccountAttrs {
|
|
|
14
14
|
notes?: string;
|
|
15
15
|
advancedVerificationStatus?: BankAccountVerificationStatus;
|
|
16
16
|
bridgeExternalAccountId?: string;
|
|
17
|
+
preSettledAmountAvailable?: number;
|
|
17
18
|
}
|
|
18
19
|
interface BankAccountDoc extends Document {
|
|
19
20
|
createdAt: Date;
|
|
@@ -29,6 +30,7 @@ interface BankAccountDoc extends Document {
|
|
|
29
30
|
notes?: string;
|
|
30
31
|
advancedVerificationStatus?: BankAccountVerificationStatus;
|
|
31
32
|
bridgeExternalAccountId?: string;
|
|
33
|
+
preSettledAmountAvailable?: number;
|
|
32
34
|
}
|
|
33
35
|
interface BankAccountModel extends Model<BankAccountDoc> {
|
|
34
36
|
build(attrs: BankAccountAttrs): BankAccountDoc;
|
|
@@ -12,6 +12,7 @@ interface CryptoAddressAttrs {
|
|
|
12
12
|
advancedVerificationStatus?: AddressVerificationStatus;
|
|
13
13
|
fireblocksExternalWalletId?: string;
|
|
14
14
|
isFireblocksWhitelisted?: boolean;
|
|
15
|
+
preSettledAmountAvailable?: number;
|
|
15
16
|
}
|
|
16
17
|
interface CryptoAddressDoc extends mongoose.Document {
|
|
17
18
|
createdAt: Date;
|
|
@@ -25,6 +26,7 @@ interface CryptoAddressDoc extends mongoose.Document {
|
|
|
25
26
|
advancedVerificationStatus?: AddressVerificationStatus;
|
|
26
27
|
fireblocksExternalWalletId?: string;
|
|
27
28
|
isFireblocksWhitelisted?: boolean;
|
|
29
|
+
preSettledAmountAvailable?: number;
|
|
28
30
|
}
|
|
29
31
|
interface CryptoAddressModel extends mongoose.Model<CryptoAddressDoc> {
|
|
30
32
|
build(attrs: CryptoAddressAttrs): CryptoAddressDoc;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Country, Fiat, Crypto } from "@riocrypto/common";
|
|
2
2
|
import { PreSettlementTransactionType } from "@riocrypto/common";
|
|
3
3
|
import mongoose from "mongoose";
|
|
4
4
|
interface PreSettlementTransactionAttrs {
|
|
@@ -8,7 +8,8 @@ interface PreSettlementTransactionAttrs {
|
|
|
8
8
|
amount: number;
|
|
9
9
|
oppositeTransactionAmount: number;
|
|
10
10
|
oppositeTransactions: string[];
|
|
11
|
-
currency:
|
|
11
|
+
currency: Fiat | Crypto;
|
|
12
|
+
country: Country;
|
|
12
13
|
orderId?: string;
|
|
13
14
|
speiTrackingNumber?: string;
|
|
14
15
|
spidTrackingNumber?: string;
|
|
@@ -19,7 +20,8 @@ interface PreSettlementTransactionDoc extends mongoose.Document {
|
|
|
19
20
|
userId: string;
|
|
20
21
|
type: PreSettlementTransactionType;
|
|
21
22
|
amount: number;
|
|
22
|
-
currency:
|
|
23
|
+
currency: Fiat | Crypto;
|
|
24
|
+
country: Country;
|
|
23
25
|
orderId?: string;
|
|
24
26
|
oppositeTransactionAmount: number;
|
|
25
27
|
oppositeTransactions: string[];
|
package/build/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country, Fiat
|
|
1
|
+
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country, Fiat } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface UserAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -124,9 +124,6 @@ interface UserAttrs {
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
attioRecordId?: string;
|
|
127
|
-
preSettlementAmount?: {
|
|
128
|
-
[currency in CurrencyWithCountry]?: number;
|
|
129
|
-
};
|
|
130
127
|
}
|
|
131
128
|
interface UserModel extends Model<UserDoc> {
|
|
132
129
|
build(attrs: UserAttrs): UserDoc;
|
|
@@ -256,9 +253,6 @@ interface UserDoc extends Document {
|
|
|
256
253
|
};
|
|
257
254
|
};
|
|
258
255
|
};
|
|
259
|
-
preSettlementAmount?: {
|
|
260
|
-
[currency in CurrencyWithCountry]?: number;
|
|
261
|
-
};
|
|
262
256
|
}
|
|
263
257
|
declare const buildUser: (mongoose: Mongoose) => UserModel;
|
|
264
258
|
export { buildUser, UserDoc, UserAttrs };
|
package/build/models/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2081",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.1823",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|