@riocrypto/common-server 1.0.1152 → 1.0.1153

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.
@@ -3,16 +3,16 @@ import { Mongoose, Model, Document } from "mongoose";
3
3
  interface ChainedOrderAttrs {
4
4
  userId: string;
5
5
  crypto: Crypto;
6
- startFiat: Fiat;
7
- endFiat: Fiat;
8
- startCountry: Country;
9
- endCountry: Country;
10
- startAmountFiat: number;
11
- endAmountFiat: number;
12
- startOrderId: string;
13
- endOrderId: string;
14
- startOrderStatus: OrderStatus;
15
- endOrderStatus: OrderStatus;
6
+ originFiat: Fiat;
7
+ destinationFiat: Fiat;
8
+ originCountry: Country;
9
+ destinationCountry: Country;
10
+ originAmountFiat: number;
11
+ destinationAmountFiat: number;
12
+ originOrderId: string;
13
+ destinationOrderId: string;
14
+ originOrderStatus: OrderStatus;
15
+ destinationOrderStatus: OrderStatus;
16
16
  fees: Fees;
17
17
  netPrice: number;
18
18
  createdAt: Date;
@@ -21,16 +21,16 @@ interface ChainedOrderAttrs {
21
21
  interface ChainedOrderDoc extends Document {
22
22
  userId: string;
23
23
  crypto: Crypto;
24
- startFiat: Fiat;
25
- endFiat: Fiat;
26
- startCountry: Country;
27
- endCountry: Country;
28
- startAmountFiat: number;
29
- endAmountFiat: number;
30
- startOrderId: string;
31
- endOrderId: string;
32
- startOrderStatus: OrderStatus;
33
- endOrderStatus: OrderStatus;
24
+ originFiat: Fiat;
25
+ destinationFiat: Fiat;
26
+ originCountry: Country;
27
+ destinationCountry: Country;
28
+ originAmountFiat: number;
29
+ destinationAmountFiat: number;
30
+ originOrderId: string;
31
+ destinationOrderId: string;
32
+ originOrderStatus: OrderStatus;
33
+ destinationOrderStatus: OrderStatus;
34
34
  fees: Fees;
35
35
  netPrice: number;
36
36
  createdAt: Date;
@@ -15,43 +15,43 @@ const buildChainedOrder = (mongoose) => {
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
- startFiat: {
18
+ originFiat: {
19
19
  type: String,
20
20
  required: true,
21
21
  },
22
- endFiat: {
22
+ destinationFiat: {
23
23
  type: String,
24
24
  required: true,
25
25
  },
26
- startCountry: {
26
+ originCountry: {
27
27
  type: String,
28
28
  required: true,
29
29
  },
30
- endCountry: {
30
+ destinationCountry: {
31
31
  type: String,
32
32
  required: true,
33
33
  },
34
- startAmountFiat: {
34
+ originAmountFiat: {
35
35
  type: Number,
36
36
  required: true,
37
37
  },
38
- endAmountFiat: {
38
+ destinationAmountFiat: {
39
39
  type: Number,
40
40
  required: true,
41
41
  },
42
- startOrderId: {
42
+ originOrderId: {
43
43
  type: String,
44
44
  required: true,
45
45
  },
46
- endOrderId: {
46
+ destinationOrderId: {
47
47
  type: String,
48
48
  required: true,
49
49
  },
50
- startOrderStatus: {
50
+ originOrderStatus: {
51
51
  type: String,
52
52
  required: true,
53
53
  },
54
- endOrderStatus: {
54
+ destinationOrderStatus: {
55
55
  type: String,
56
56
  required: true,
57
57
  },
@@ -3,15 +3,15 @@ import { Mongoose, Model, Document } from "mongoose";
3
3
  interface ChainedQuoteAttrs {
4
4
  userId: string;
5
5
  crypto: Crypto;
6
- startFiat: Fiat;
7
- endFiat: Fiat;
6
+ originFiat: Fiat;
7
+ destinationFiat: Fiat;
8
8
  expiresAt: Date;
9
- startCountry: Country;
10
- endCountry: Country;
11
- startAmountFiat: number;
12
- endAmountFiat: number;
13
- startQuoteId: string;
14
- endQuoteId: string;
9
+ originCountry: Country;
10
+ destinationCountry: Country;
11
+ originAmountFiat: number;
12
+ destinationAmountFiat: number;
13
+ originQuoteId: string;
14
+ destinationQuoteId: string;
15
15
  fees: Fees;
16
16
  netPrice: number;
17
17
  createdAt: Date;
@@ -20,15 +20,15 @@ interface ChainedQuoteAttrs {
20
20
  interface ChainedQuoteDoc extends Document {
21
21
  userId: string;
22
22
  crypto: Crypto;
23
- startFiat: Fiat;
24
- endFiat: Fiat;
23
+ originFiat: Fiat;
24
+ destinationFiat: Fiat;
25
25
  expiresAt: Date;
26
- startCountry: Country;
27
- endCountry: Country;
28
- startAmountFiat: number;
29
- endAmountFiat: number;
30
- startQuoteId: string;
31
- endQuoteId: string;
26
+ originCountry: Country;
27
+ destinationCountry: Country;
28
+ originAmountFiat: number;
29
+ destinationAmountFiat: number;
30
+ originQuoteId: string;
31
+ destinationQuoteId: string;
32
32
  fees: Fees;
33
33
  netPrice: number;
34
34
  createdAt: Date;
@@ -15,11 +15,11 @@ const buildChainedQuote = (mongoose) => {
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
- startFiat: {
18
+ originFiat: {
19
19
  type: String,
20
20
  required: true,
21
21
  },
22
- endFiat: {
22
+ destinationFiat: {
23
23
  type: String,
24
24
  required: true,
25
25
  },
@@ -27,27 +27,27 @@ const buildChainedQuote = (mongoose) => {
27
27
  type: mongoose.Schema.Types.Date,
28
28
  required: true,
29
29
  },
30
- startCountry: {
30
+ originCountry: {
31
31
  type: String,
32
32
  required: true,
33
33
  },
34
- endCountry: {
34
+ destinationCountry: {
35
35
  type: String,
36
36
  required: true,
37
37
  },
38
- startAmountFiat: {
38
+ originAmountFiat: {
39
39
  type: Number,
40
40
  required: true,
41
41
  },
42
- endAmountFiat: {
42
+ destinationAmountFiat: {
43
43
  type: Number,
44
44
  required: true,
45
45
  },
46
- startQuoteId: {
46
+ originQuoteId: {
47
47
  type: String,
48
48
  required: true,
49
49
  },
50
- endQuoteId: {
50
+ destinationQuoteId: {
51
51
  type: String,
52
52
  required: true,
53
53
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1152",
3
+ "version": "1.0.1153",
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.998",
29
+ "@riocrypto/common": "^1.0.1000",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",