@riocrypto/common-server 1.0.1273 → 1.0.1275

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.
@@ -35,13 +35,13 @@ class AiPriseClient {
35
35
  this.getRedirectUrl = (rioEnv) => {
36
36
  switch (rioEnv) {
37
37
  case common_1.RioEnv.Development:
38
- return "https://dev.riotransfer.co";
38
+ return "https://dev.riotransfer.co/app";
39
39
  case common_1.RioEnv.Sandbox:
40
- return "https://sandbox.riotransfer.co";
40
+ return "https://sandbox.riotransfer.co/app";
41
41
  case common_1.RioEnv.Staging:
42
- return "https://staging.riotransfer.co";
42
+ return "https://staging.riotransfer.co/app";
43
43
  case common_1.RioEnv.Production:
44
- return "https://www.riotransfer.co";
44
+ return "https://www.riotransfer.co/app";
45
45
  }
46
46
  };
47
47
  this.baseUrl = [
@@ -3,11 +3,13 @@ interface CirclePayoutAttrs {
3
3
  userId: string;
4
4
  orderId: string;
5
5
  circlePayoutId: string;
6
+ status: "pending" | "complete" | "failed";
6
7
  }
7
8
  interface CirclePayoutDoc extends mongoose.Document {
8
9
  userId: string;
9
10
  orderId: string;
10
11
  circlePayoutId: string;
12
+ status: "pending" | "complete" | "failed";
11
13
  }
12
14
  interface CirclePayoutModel extends mongoose.Model<CirclePayoutDoc> {
13
15
  build(attrs: CirclePayoutAttrs): CirclePayoutDoc;
@@ -19,6 +19,10 @@ const buildCirclePayout = (mongoose) => {
19
19
  type: String,
20
20
  required: true,
21
21
  },
22
+ status: {
23
+ type: String,
24
+ required: true,
25
+ },
22
26
  }, {
23
27
  toJSON: {
24
28
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1273",
3
+ "version": "1.0.1275",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
- "@riocrypto/common": "^1.0.1147",
30
+ "@riocrypto/common": "^1.0.1148",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",