@riocrypto/common-server 1.0.1646 → 1.0.1649
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
|
@@ -58,7 +58,7 @@ export * from "./models/address-verification";
|
|
|
58
58
|
export * from "./models/bank-account-verification";
|
|
59
59
|
export * from "./models/coincover-transaction";
|
|
60
60
|
export * from "./models/coinbase-order";
|
|
61
|
-
export * from "./models/
|
|
61
|
+
export * from "./models/multipart-liquidity-order";
|
|
62
62
|
export * from "./clients/bitstamp-client";
|
|
63
63
|
export * from "./clients/ccxt-client";
|
|
64
64
|
export * from "./clients/slack-client";
|
package/build/index.js
CHANGED
|
@@ -74,7 +74,7 @@ __exportStar(require("./models/address-verification"), exports);
|
|
|
74
74
|
__exportStar(require("./models/bank-account-verification"), exports);
|
|
75
75
|
__exportStar(require("./models/coincover-transaction"), exports);
|
|
76
76
|
__exportStar(require("./models/coinbase-order"), exports);
|
|
77
|
-
__exportStar(require("./models/
|
|
77
|
+
__exportStar(require("./models/multipart-liquidity-order"), exports);
|
|
78
78
|
__exportStar(require("./clients/bitstamp-client"), exports);
|
|
79
79
|
__exportStar(require("./clients/ccxt-client"), exports);
|
|
80
80
|
__exportStar(require("./clients/slack-client"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Crypto, Fiat } from "@riocrypto/common";
|
|
2
|
+
import mongoose from "mongoose";
|
|
3
|
+
interface MultipartLiquidityOrderAttrs {
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
destinationCrypto: Crypto;
|
|
6
|
+
originFiat: Fiat;
|
|
7
|
+
amountFiat: number;
|
|
8
|
+
amountCrypto?: number;
|
|
9
|
+
status: "bbvaWithdrawn" | "brexDeposited" | "brexWithdrawn" | "coinbaseDeposited" | "coinbaseTrading" | "coinbaseTraded" | "coinbaseWithdrawn" | "done";
|
|
10
|
+
coinbaseOrderId?: string;
|
|
11
|
+
}
|
|
12
|
+
interface MultipartLiquidityOrderDoc extends mongoose.Document {
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
destinationCrypto: Crypto;
|
|
15
|
+
originFiat: Fiat;
|
|
16
|
+
amountFiat: number;
|
|
17
|
+
amountCrypto?: number;
|
|
18
|
+
status: "bbvaWithdrawn" | "brexDeposited" | "brexWithdrawn" | "coinbaseDeposited" | "coinbaseTrading" | "coinbaseTraded" | "coinbaseWithdrawn" | "done";
|
|
19
|
+
coinbaseOrderId?: string;
|
|
20
|
+
}
|
|
21
|
+
interface MultipartLiquidityOrderModel extends mongoose.Model<MultipartLiquidityOrderDoc> {
|
|
22
|
+
build(attrs: MultipartLiquidityOrderAttrs): MultipartLiquidityOrderDoc;
|
|
23
|
+
}
|
|
24
|
+
declare const buildMultipartLiquidityOrder: (mongoose: typeof mongoose) => MultipartLiquidityOrderModel;
|
|
25
|
+
export { buildMultipartLiquidityOrder, MultipartLiquidityOrderDoc, MultipartLiquidityOrderAttrs, };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.buildMultipartLiquidityOrder = void 0;
|
|
4
|
+
const buildMultipartLiquidityOrder = (mongoose) => {
|
|
5
5
|
// if model is already defined, return it
|
|
6
|
-
if (mongoose.models.
|
|
7
|
-
return mongoose.model("
|
|
6
|
+
if (mongoose.models.MultipartLiquidityOrder) {
|
|
7
|
+
return mongoose.model("MultipartLiquidityOrder");
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const MultipartLiquidityOrderSchema = new mongoose.Schema({
|
|
10
10
|
createdAt: {
|
|
11
11
|
type: Date,
|
|
12
12
|
required: true,
|
|
@@ -42,10 +42,10 @@ const buildMultiPartLiquidityOrder = (mongoose) => {
|
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
|
-
|
|
46
|
-
return new
|
|
45
|
+
MultipartLiquidityOrderSchema.statics.build = (attrs) => {
|
|
46
|
+
return new MultipartLiquidityOrder(attrs);
|
|
47
47
|
};
|
|
48
|
-
const
|
|
49
|
-
return
|
|
48
|
+
const MultipartLiquidityOrder = mongoose.model("MultipartLiquidityOrder", MultipartLiquidityOrderSchema);
|
|
49
|
+
return MultipartLiquidityOrder;
|
|
50
50
|
};
|
|
51
|
-
exports.
|
|
51
|
+
exports.buildMultipartLiquidityOrder = buildMultipartLiquidityOrder;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1649",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.1464",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.6.0",
|
|
34
34
|
"ccxt": "^3.0.30",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Crypto, Fiat } from "@riocrypto/common";
|
|
2
|
-
import mongoose from "mongoose";
|
|
3
|
-
interface MultiPartLiquidityOrderAttrs {
|
|
4
|
-
createdAt: Date;
|
|
5
|
-
destinationCrypto: Crypto;
|
|
6
|
-
originFiat: Fiat;
|
|
7
|
-
amountFiat: number;
|
|
8
|
-
amountCrypto?: number;
|
|
9
|
-
status: "bbvaWithdrawn" | "brexDeposited" | "brexWithdraw" | "coinbaseDeposited" | "coinbaseTrading" | "coinbaseTraded" | "coinbaseWithdrawn" | "done";
|
|
10
|
-
coinbaseOrderId?: string;
|
|
11
|
-
}
|
|
12
|
-
interface MultiPartLiquidityOrderDoc extends mongoose.Document {
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
destinationCrypto: Crypto;
|
|
15
|
-
originFiat: Fiat;
|
|
16
|
-
amountFiat: number;
|
|
17
|
-
amountCrypto?: number;
|
|
18
|
-
status: "bbvaWithdrawn" | "brexDeposited" | "brexWithdraw" | "coinbaseDeposited" | "coinbaseTrading" | "coinbaseTraded" | "coinbaseWithdrawn" | "done";
|
|
19
|
-
coinbaseOrderId?: string;
|
|
20
|
-
}
|
|
21
|
-
interface MultiPartLiquidityOrderModel extends mongoose.Model<MultiPartLiquidityOrderDoc> {
|
|
22
|
-
build(attrs: MultiPartLiquidityOrderAttrs): MultiPartLiquidityOrderDoc;
|
|
23
|
-
}
|
|
24
|
-
declare const buildMultiPartLiquidityOrder: (mongoose: typeof mongoose) => MultiPartLiquidityOrderModel;
|
|
25
|
-
export { buildMultiPartLiquidityOrder, MultiPartLiquidityOrderDoc, MultiPartLiquidityOrderAttrs, };
|