@riocrypto/common-server 1.0.2233 → 1.0.2235
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.
package/build/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export * from "./models/auth-dashboard-settings";
|
|
|
87
87
|
export * from "./models/admin-auth-dashboard-settings";
|
|
88
88
|
export * from "./models/STP-mxn-withdrawal";
|
|
89
89
|
export * from "./models/STP-deposit-CLABE";
|
|
90
|
+
export * from "./models/STP-settings";
|
|
90
91
|
export * from "./clients/axios-with-logging";
|
|
91
92
|
export * from "./clients/slack-client";
|
|
92
93
|
export * from "./clients/fireblocks-client";
|
package/build/index.js
CHANGED
|
@@ -103,6 +103,7 @@ __exportStar(require("./models/auth-dashboard-settings"), exports);
|
|
|
103
103
|
__exportStar(require("./models/admin-auth-dashboard-settings"), exports);
|
|
104
104
|
__exportStar(require("./models/STP-mxn-withdrawal"), exports);
|
|
105
105
|
__exportStar(require("./models/STP-deposit-CLABE"), exports);
|
|
106
|
+
__exportStar(require("./models/STP-settings"), exports);
|
|
106
107
|
__exportStar(require("./clients/axios-with-logging"), exports);
|
|
107
108
|
__exportStar(require("./clients/slack-client"), exports);
|
|
108
109
|
__exportStar(require("./clients/fireblocks-client"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
interface STPSettingsAttrs {
|
|
3
|
+
CLABEOffset: number;
|
|
4
|
+
}
|
|
5
|
+
interface STPSettingsDoc extends mongoose.Document {
|
|
6
|
+
CLABEOffset: number;
|
|
7
|
+
}
|
|
8
|
+
interface STPSettingsModel extends mongoose.Model<STPSettingsDoc> {
|
|
9
|
+
build(attrs: STPSettingsAttrs): STPSettingsDoc;
|
|
10
|
+
}
|
|
11
|
+
declare const buildSTPSettings: (mongoose: typeof mongoose) => STPSettingsModel;
|
|
12
|
+
export { buildSTPSettings, STPSettingsDoc, STPSettingsAttrs };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildSTPSettings = void 0;
|
|
4
|
+
const buildSTPSettings = (mongoose) => {
|
|
5
|
+
// if model is already defined, return it
|
|
6
|
+
if (mongoose.models.STPSettings) {
|
|
7
|
+
return mongoose.model("STPSettings");
|
|
8
|
+
}
|
|
9
|
+
const STPSettingsSchema = new mongoose.Schema({
|
|
10
|
+
CLABEOffset: {
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
}, {
|
|
14
|
+
toJSON: {
|
|
15
|
+
transform(doc, ret) {
|
|
16
|
+
ret.id = ret._id;
|
|
17
|
+
delete ret._id;
|
|
18
|
+
delete ret.__v;
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
STPSettingsSchema.statics.build = (attrs) => {
|
|
23
|
+
return new STPSettings(attrs);
|
|
24
|
+
};
|
|
25
|
+
const STPSettings = mongoose.model("STPSettings", STPSettingsSchema);
|
|
26
|
+
return STPSettings;
|
|
27
|
+
};
|
|
28
|
+
exports.buildSTPSettings = buildSTPSettings;
|
|
@@ -47,7 +47,6 @@ interface RioSettingsAttrs {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
fxExecutionThreshold: number;
|
|
50
|
-
STPCLABEOffset: number;
|
|
51
50
|
}
|
|
52
51
|
interface RioSettingsDoc extends mongoose.Document {
|
|
53
52
|
platformFee: number;
|
|
@@ -96,7 +95,6 @@ interface RioSettingsDoc extends mongoose.Document {
|
|
|
96
95
|
};
|
|
97
96
|
};
|
|
98
97
|
fxExecutionThreshold: number;
|
|
99
|
-
STPCLABEOffset: number;
|
|
100
98
|
}
|
|
101
99
|
interface RioSettingsModel extends mongoose.Model<RioSettingsDoc> {
|
|
102
100
|
build(attrs: RioSettingsAttrs): RioSettingsDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2235",
|
|
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.1967",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|