@riocrypto/common-server 1.0.2340 → 1.0.2342

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,4 +1,5 @@
1
1
  import { Country, Fiat, FXProvider, Processor, Side } from "@riocrypto/common";
2
+ import { TVFXDataProvider } from "@riocrypto/common/build/types/TV-FX-data-provider";
2
3
  import mongoose from "mongoose";
3
4
  interface RioSettingsAttrs {
4
5
  platformFee: number;
@@ -54,6 +55,11 @@ interface RioSettingsAttrs {
54
55
  [Side.Sell]: Processor[];
55
56
  bankAccountVerifications: Processor[];
56
57
  };
58
+ TVFXDataProvider: {
59
+ [key in Fiat]: {
60
+ [key in Side]?: TVFXDataProvider;
61
+ };
62
+ };
57
63
  }
58
64
  interface RioSettingsDoc extends mongoose.Document {
59
65
  platformFee: number;
@@ -109,6 +115,11 @@ interface RioSettingsDoc extends mongoose.Document {
109
115
  [Side.Sell]: Processor[];
110
116
  bankAccountVerifications: Processor[];
111
117
  };
118
+ TVFXDataProvider: {
119
+ [key in Fiat]: {
120
+ [key in Side]?: TVFXDataProvider;
121
+ };
122
+ };
112
123
  }
113
124
  interface RioSettingsModel extends mongoose.Model<RioSettingsDoc> {
114
125
  build(attrs: RioSettingsAttrs): RioSettingsDoc;
@@ -63,6 +63,9 @@ const buildRioSettings = (mongoose) => {
63
63
  activeFiatPaymentProcessors: {
64
64
  type: Object,
65
65
  },
66
+ TVFXDataProvider: {
67
+ type: Object,
68
+ },
66
69
  }, {
67
70
  toJSON: {
68
71
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2340",
3
+ "version": "1.0.2342",
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.2048",
31
+ "@riocrypto/common": "^1.0.2050",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",