@riocrypto/common-server 1.0.1131 → 1.0.1134

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.
@@ -7,6 +7,7 @@ interface AdminTaskAttrs {
7
7
  orderId?: string;
8
8
  userId?: string;
9
9
  bankAccountId?: string;
10
+ amountToFix?: string;
10
11
  }
11
12
  interface AdminTaskDoc extends Document {
12
13
  type: AdminTaskType;
@@ -15,6 +16,7 @@ interface AdminTaskDoc extends Document {
15
16
  orderId?: string;
16
17
  userId?: string;
17
18
  bankAccountId?: string;
19
+ amountToFix?: string;
18
20
  }
19
21
  interface AdminTaskModel extends Model<AdminTaskDoc> {
20
22
  build(attrs: AdminTaskAttrs): AdminTaskDoc;
@@ -28,6 +28,9 @@ const buildAdminTask = (mongoose) => {
28
28
  bankAccountId: {
29
29
  type: String,
30
30
  },
31
+ amountToFix: {
32
+ type: Number,
33
+ },
31
34
  }, {
32
35
  toJSON: {
33
36
  transform(doc, ret) {
@@ -37,6 +37,7 @@ interface OrderAttrs {
37
37
  imported?: boolean;
38
38
  managedWallet?: boolean;
39
39
  sourceUserId?: string;
40
+ amountFixed?: number;
40
41
  }
41
42
  interface OrderDoc extends Document {
42
43
  quoteId: string;
@@ -75,6 +76,7 @@ interface OrderDoc extends Document {
75
76
  imported?: boolean;
76
77
  managedWallet?: boolean;
77
78
  sourceUserId?: string;
79
+ amountFixed?: number;
78
80
  }
79
81
  interface OrderModel extends Model<OrderDoc> {
80
82
  build(attrs: OrderAttrs): OrderDoc;
@@ -154,6 +154,9 @@ const buildOrder = (mongoose) => {
154
154
  sourceUserId: {
155
155
  type: String,
156
156
  },
157
+ amountFixed: {
158
+ type: Number,
159
+ },
157
160
  }, {
158
161
  toJSON: {
159
162
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1131",
3
+ "version": "1.0.1134",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@aws-sdk/client-s3": "^3.297.0",
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
- "@riocrypto/common": "^1.0.976",
29
+ "@riocrypto/common": "^1.0.977",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",