@riocrypto/common-server 1.0.2593 → 1.0.2594
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
|
@@ -101,6 +101,8 @@ export * from "./models/bulk-bank-payout";
|
|
|
101
101
|
export * from "./models/bulk-crypto-payout";
|
|
102
102
|
export * from "./models/twap-settlement";
|
|
103
103
|
export * from "./models/transnetwork-fx-trade";
|
|
104
|
+
export * from "./models/unrecognized-bank-payment";
|
|
105
|
+
export * from "./models/unrecognized-crypto-payment";
|
|
104
106
|
export * from "./clients/axios-with-logging";
|
|
105
107
|
export * from "./clients/slack-client";
|
|
106
108
|
export * from "./clients/fireblocks-client";
|
package/build/index.js
CHANGED
|
@@ -117,6 +117,8 @@ __exportStar(require("./models/bulk-bank-payout"), exports);
|
|
|
117
117
|
__exportStar(require("./models/bulk-crypto-payout"), exports);
|
|
118
118
|
__exportStar(require("./models/twap-settlement"), exports);
|
|
119
119
|
__exportStar(require("./models/transnetwork-fx-trade"), exports);
|
|
120
|
+
__exportStar(require("./models/unrecognized-bank-payment"), exports);
|
|
121
|
+
__exportStar(require("./models/unrecognized-crypto-payment"), exports);
|
|
120
122
|
__exportStar(require("./clients/axios-with-logging"), exports);
|
|
121
123
|
__exportStar(require("./clients/slack-client"), exports);
|
|
122
124
|
__exportStar(require("./clients/fireblocks-client"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TreasuryProvider, Fiat } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document } from "mongoose";
|
|
3
|
-
interface
|
|
3
|
+
interface UnrecognizedBankPaymentAttrs {
|
|
4
4
|
createdAt: Date;
|
|
5
5
|
amount: number;
|
|
6
6
|
fiat: Fiat;
|
|
@@ -13,7 +13,7 @@ interface UnrecognizedCryptoPaymentAttrs {
|
|
|
13
13
|
destinationTreasuryProvider?: TreasuryProvider;
|
|
14
14
|
destinationProviderId?: string;
|
|
15
15
|
}
|
|
16
|
-
interface
|
|
16
|
+
interface UnrecognizedBankPaymentDoc extends Document {
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
amount: number;
|
|
@@ -27,8 +27,8 @@ interface UnrecognizedCryptoPaymentDoc extends Document {
|
|
|
27
27
|
destinationTreasuryProvider?: TreasuryProvider;
|
|
28
28
|
destinationProviderId?: string;
|
|
29
29
|
}
|
|
30
|
-
interface
|
|
31
|
-
build(attrs:
|
|
30
|
+
interface UnrecognizedBankPaymentModel extends Model<UnrecognizedBankPaymentDoc> {
|
|
31
|
+
build(attrs: UnrecognizedBankPaymentAttrs): UnrecognizedBankPaymentDoc;
|
|
32
32
|
}
|
|
33
|
-
declare const
|
|
34
|
-
export {
|
|
33
|
+
declare const buildUnrecognizedBankPayment: (mongoose: Mongoose) => UnrecognizedBankPaymentModel;
|
|
34
|
+
export { buildUnrecognizedBankPayment, UnrecognizedBankPaymentDoc, UnrecognizedBankPaymentAttrs, };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.buildUnrecognizedBankPayment = void 0;
|
|
4
4
|
const common_1 = require("@riocrypto/common");
|
|
5
|
-
const
|
|
5
|
+
const buildUnrecognizedBankPayment = (mongoose) => {
|
|
6
6
|
// if model is already defined, return it
|
|
7
7
|
if (mongoose.models.UnrecognizedCryptoPayment) {
|
|
8
|
-
return mongoose.model("
|
|
8
|
+
return mongoose.model("UnrecognizedBankPayment");
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const UnrecognizedBankPaymentSchema = new mongoose.Schema({
|
|
11
11
|
createdAt: {
|
|
12
12
|
type: Date,
|
|
13
13
|
required: true,
|
|
@@ -56,10 +56,10 @@ const buildUnrecognizedCryptoPayment = (mongoose) => {
|
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
|
-
|
|
60
|
-
return new
|
|
59
|
+
UnrecognizedBankPaymentSchema.statics.build = (attrs) => {
|
|
60
|
+
return new UnrecognizedBankPayment(attrs);
|
|
61
61
|
};
|
|
62
|
-
const
|
|
63
|
-
return
|
|
62
|
+
const UnrecognizedBankPayment = mongoose.model("UnrecognizedBankPayment", UnrecognizedBankPaymentSchema);
|
|
63
|
+
return UnrecognizedBankPayment;
|
|
64
64
|
};
|
|
65
|
-
exports.
|
|
65
|
+
exports.buildUnrecognizedBankPayment = buildUnrecognizedBankPayment;
|