@riocrypto/common-server 1.0.2079 → 1.0.2080

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.
@@ -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;
@@ -54,6 +54,9 @@ const buildBankAccount = (mongoose) => {
54
54
  bridgeExternalAccountId: {
55
55
  type: String,
56
56
  },
57
+ preSettledAmountAvailable: {
58
+ type: Number,
59
+ },
57
60
  }, {
58
61
  toJSON: {
59
62
  transform(doc, ret) {
@@ -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;
@@ -45,6 +45,9 @@ const buildCryptoAddress = (mongoose) => {
45
45
  isFireblocksWhitelisted: {
46
46
  type: Boolean,
47
47
  },
48
+ preSettledAmountAvailable: {
49
+ type: Number,
50
+ },
48
51
  }, {
49
52
  toJSON: {
50
53
  transform(doc, ret) {
@@ -1,4 +1,4 @@
1
- import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, RiskTier, ImmigrationStatus, Country, Fiat, CurrencyWithCountry } from "@riocrypto/common";
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 };
@@ -338,9 +338,6 @@ const buildUser = (mongoose) => {
338
338
  },
339
339
  },
340
340
  },
341
- preSettlementAmount: {
342
- type: Object,
343
- },
344
341
  }, {
345
342
  toJSON: {
346
343
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2079",
3
+ "version": "1.0.2080",
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.1820",
31
+ "@riocrypto/common": "^1.0.1822",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",