@riocrypto/common-server 1.0.2717 → 1.0.2719
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,7 +1,7 @@
|
|
|
1
1
|
import { IndicativeQuotePageQuoteConfig } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
3
|
interface IndicativeQuotePageAttrs {
|
|
4
|
-
userId
|
|
4
|
+
userId?: string;
|
|
5
5
|
quotes: IndicativeQuotePageQuoteConfig[];
|
|
6
6
|
allowedIPs: string[];
|
|
7
7
|
createdBy: string;
|
|
@@ -13,7 +13,7 @@ interface IndicativeQuotePageModel extends Model<IndicativeQuotePageDoc> {
|
|
|
13
13
|
}
|
|
14
14
|
interface IndicativeQuotePageDoc extends Document {
|
|
15
15
|
_id: string;
|
|
16
|
-
userId
|
|
16
|
+
userId?: string;
|
|
17
17
|
quotes: IndicativeQuotePageQuoteConfig[];
|
|
18
18
|
allowedIPs: string[];
|
|
19
19
|
createdBy: string;
|
|
@@ -7,6 +7,10 @@ const buildIndicativeQuotePage = (mongoose) => {
|
|
|
7
7
|
return mongoose.model("IndicativeQuotePage");
|
|
8
8
|
}
|
|
9
9
|
const QuoteConfigSchema = new mongoose.Schema({
|
|
10
|
+
userId: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
10
14
|
side: {
|
|
11
15
|
type: String,
|
|
12
16
|
required: true,
|
|
@@ -44,11 +48,14 @@ const buildIndicativeQuotePage = (mongoose) => {
|
|
|
44
48
|
twoWaySettlementDateOffset: {
|
|
45
49
|
type: Number,
|
|
46
50
|
},
|
|
51
|
+
USBankTransferMethod: {
|
|
52
|
+
type: String,
|
|
53
|
+
enum: ["ach_push", "wire"],
|
|
54
|
+
},
|
|
47
55
|
}, { _id: false });
|
|
48
56
|
const IndicativeQuotePageSchema = new mongoose.Schema({
|
|
49
57
|
userId: {
|
|
50
58
|
type: String,
|
|
51
|
-
required: true,
|
|
52
59
|
},
|
|
53
60
|
quotes: {
|
|
54
61
|
type: [QuoteConfigSchema],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2719",
|
|
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.2516",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|