@riocrypto/common-server 1.0.2714 → 1.0.2717

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.
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildIndicativeQuotePage = void 0;
4
4
  const common_1 = require("@riocrypto/common");
5
5
  const buildIndicativeQuotePage = (mongoose) => {
6
- if (mongoose.models.PublicQuotePage) {
7
- return mongoose.model("PublicQuotePage");
6
+ if (mongoose.models.IndicativeQuotePage) {
7
+ return mongoose.model("IndicativeQuotePage");
8
8
  }
9
9
  const QuoteConfigSchema = new mongoose.Schema({
10
10
  side: {
@@ -82,7 +82,7 @@ const buildIndicativeQuotePage = (mongoose) => {
82
82
  IndicativeQuotePageSchema.statics.build = (attrs) => {
83
83
  return new IndicativeQuotePage(attrs);
84
84
  };
85
- const IndicativeQuotePage = mongoose.model("PublicQuotePage", IndicativeQuotePageSchema);
85
+ const IndicativeQuotePage = mongoose.model("IndicativeQuotePage", IndicativeQuotePageSchema);
86
86
  return IndicativeQuotePage;
87
87
  };
88
88
  exports.buildIndicativeQuotePage = buildIndicativeQuotePage;
@@ -44,6 +44,7 @@ interface QuoteAttrs {
44
44
  twoWaySettlementDateOffset?: number;
45
45
  effectiveTwoWaySettlementDateOffset?: number;
46
46
  twoWaySettlementDate: Date;
47
+ isIndicative?: boolean;
47
48
  }
48
49
  interface QuoteDoc extends Document {
49
50
  userId: string;
@@ -89,6 +90,7 @@ interface QuoteDoc extends Document {
89
90
  twoWaySettlementDateOffset?: number;
90
91
  effectiveTwoWaySettlementDateOffset?: number;
91
92
  twoWaySettlementDate: Date;
93
+ isIndicative?: boolean;
92
94
  }
93
95
  interface QuoteModel extends Model<QuoteDoc> {
94
96
  build(attrs: QuoteAttrs): QuoteDoc;
@@ -166,6 +166,9 @@ const buildQuote = (mongoose) => {
166
166
  twoWaySettlementDate: {
167
167
  type: mongoose.Schema.Types.Date,
168
168
  },
169
+ isIndicative: {
170
+ type: Boolean,
171
+ },
169
172
  }, {
170
173
  toJSON: {
171
174
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2714",
3
+ "version": "1.0.2717",
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.2512",
31
+ "@riocrypto/common": "^1.0.2514",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",