@riocrypto/common-server 1.0.2264 → 1.0.2266

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.
@@ -1,9 +1,11 @@
1
- import { BankAccountVerificationStatus } from "@riocrypto/common";
1
+ import { BankAccountVerificationStatus, Processor } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface BankAccountVerificationAttrs {
4
4
  bankAccountId: string;
5
5
  status: BankAccountVerificationStatus;
6
6
  amount: number;
7
+ provider?: Processor.SPEI_STP | Processor.SPEI_NVIO;
8
+ providerWithdrawalId?: string;
7
9
  }
8
10
  interface BankAccountVerificationModel extends Model<BankAccountVerificationDoc> {
9
11
  build(attrs: BankAccountVerificationAttrs): BankAccountVerificationDoc;
@@ -13,6 +15,8 @@ interface BankAccountVerificationDoc extends Document {
13
15
  bankAccountId: string;
14
16
  status: BankAccountVerificationStatus;
15
17
  amount: number;
18
+ provider?: Processor.SPEI_STP | Processor.SPEI_NVIO;
19
+ providerWithdrawalId?: string;
16
20
  }
17
21
  declare const buildBankAccountVerification: (mongoose: Mongoose) => BankAccountVerificationModel;
18
22
  export { buildBankAccountVerification, BankAccountVerificationDoc, BankAccountVerificationAttrs, };
@@ -19,6 +19,14 @@ const buildBankAccountVerification = (mongoose) => {
19
19
  type: Number,
20
20
  required: true,
21
21
  },
22
+ provider: {
23
+ type: String,
24
+ required: false,
25
+ },
26
+ providerWithdrawalId: {
27
+ type: String,
28
+ required: false,
29
+ },
22
30
  }, {
23
31
  toJSON: {
24
32
  transform(doc, ret) {
@@ -24,6 +24,7 @@ interface ExternalTradeAttrs {
24
24
  };
25
25
  externalTradingAlgorithmId?: string;
26
26
  arbitrageSessionId?: string;
27
+ isImported?: boolean;
27
28
  }
28
29
  interface ExternalTradeDoc extends Document {
29
30
  createdAt: Date;
@@ -50,6 +51,7 @@ interface ExternalTradeDoc extends Document {
50
51
  };
51
52
  externalTradingAlgorithmId?: string;
52
53
  arbitrageSessionId?: string;
54
+ isImported?: boolean;
53
55
  }
54
56
  interface ExternalTradeModel extends Model<ExternalTradeDoc> {
55
57
  build(attrs: ExternalTradeAttrs): ExternalTradeDoc;
@@ -74,6 +74,10 @@ const buildExternalTrade = (mongoose) => {
74
74
  arbitrageSessionId: {
75
75
  type: String,
76
76
  },
77
+ isImported: {
78
+ type: Boolean,
79
+ default: false,
80
+ },
77
81
  }, {
78
82
  toJSON: {
79
83
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2264",
3
+ "version": "1.0.2266",
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.1983",
31
+ "@riocrypto/common": "^1.0.1990",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",