@riocrypto/common-server 1.0.1574 → 1.0.1577
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.
|
@@ -72,7 +72,7 @@ class ClusterClient {
|
|
|
72
72
|
"x-cluster-api-key": this.clusterApiKey,
|
|
73
73
|
},
|
|
74
74
|
});
|
|
75
|
-
return response.data;
|
|
75
|
+
return response.data.quote;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
getQuote(userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod) {
|
|
@@ -91,7 +91,7 @@ class ClusterClient {
|
|
|
91
91
|
"x-cluster-api-key": this.clusterApiKey,
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
|
-
return response.data;
|
|
94
|
+
return response.data.quote;
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
getBidQuote(userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, netPrice) {
|
|
@@ -111,7 +111,7 @@ class ClusterClient {
|
|
|
111
111
|
"x-cluster-api-key": this.clusterApiKey,
|
|
112
112
|
},
|
|
113
113
|
});
|
|
114
|
-
return response.data;
|
|
114
|
+
return response.data.quote;
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
getCryptoAddresses(userId, crypto) {
|
package/build/models/user.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ interface UserAttrs {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
quotationTime?: number;
|
|
98
|
+
referrerId?: string;
|
|
98
99
|
}
|
|
99
100
|
interface UserModel extends Model<UserDoc> {
|
|
100
101
|
build(attrs: UserAttrs): UserDoc;
|
|
@@ -195,6 +196,7 @@ interface UserDoc extends Document {
|
|
|
195
196
|
};
|
|
196
197
|
};
|
|
197
198
|
quotationTime?: number;
|
|
199
|
+
referrerId?: string;
|
|
198
200
|
}
|
|
199
201
|
declare const buildUser: (mongoose: Mongoose) => UserModel;
|
|
200
202
|
export { buildUser, UserDoc, UserAttrs };
|
package/build/models/user.js
CHANGED