@riocrypto/common-server 1.0.1639 → 1.0.1641

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.
@@ -20,7 +20,7 @@ class CoincoverClient {
20
20
  constructor(apiKey) {
21
21
  this.apiKey = apiKey;
22
22
  if ([common_1.RioEnv.Development, common_1.RioEnv.Production, common_1.RioEnv.Staging].includes(process.env.RIO_ENV)) {
23
- this.baseUrl = "https://api.txm-uat.coincover.com";
23
+ this.baseUrl = "https://api.txm.coincover.com ";
24
24
  }
25
25
  else {
26
26
  this.baseUrl = "https://api.txm-uat.coincover.com";
@@ -8,6 +8,7 @@ interface CoinbaseOrderAttrs {
8
8
  amountCrypto?: number;
9
9
  coinbaseOrderId: string;
10
10
  status: "open" | "pending" | "rejected" | "done" | "active" | "received" | "all";
11
+ settled: boolean;
11
12
  }
12
13
  interface CoinbaseOrderDoc extends mongoose.Document {
13
14
  createdAt: Date;
@@ -17,6 +18,7 @@ interface CoinbaseOrderDoc extends mongoose.Document {
17
18
  amountCrypto?: number;
18
19
  coinbaseOrderId: string;
19
20
  status: "open" | "pending" | "rejected" | "done" | "active" | "received" | "all";
21
+ settled: boolean;
20
22
  }
21
23
  interface CoinbaseOrderModel extends mongoose.Model<CoinbaseOrderDoc> {
22
24
  build(attrs: CoinbaseOrderAttrs): CoinbaseOrderDoc;
@@ -33,6 +33,10 @@ const buildCoinbaseOrder = (mongoose) => {
33
33
  type: String,
34
34
  required: true,
35
35
  },
36
+ settled: {
37
+ type: Boolean,
38
+ required: true,
39
+ },
36
40
  }, {
37
41
  toJSON: {
38
42
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1639",
3
+ "version": "1.0.1641",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",