@riocrypto/common-server 1.0.2291 → 1.0.2293
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.
|
@@ -25,11 +25,12 @@ declare class ClusterClient {
|
|
|
25
25
|
getNewChainedQuote(chainedOrderId: string, chainedQuote: ChainedQuote, newOriginAmount?: number): Promise<ChainedQuote>;
|
|
26
26
|
getBidQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number, USBankTransferMethod?: "ach_push" | "wire", netPrice?: string): Promise<Quote>;
|
|
27
27
|
getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
|
|
28
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, }: {
|
|
28
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }: {
|
|
29
29
|
quoteId: string;
|
|
30
30
|
userAddressId?: string;
|
|
31
31
|
payoutBankAccountId?: string;
|
|
32
32
|
notes?: string;
|
|
33
|
+
isAxeTaker?: boolean;
|
|
33
34
|
}): Promise<Order>;
|
|
34
35
|
checkBankPayment(orderId: string): Promise<void>;
|
|
35
36
|
checkCryptoPayment(orderId: string): Promise<void>;
|
|
@@ -149,7 +149,7 @@ class ClusterClient {
|
|
|
149
149
|
return response.data;
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, }) {
|
|
152
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }) {
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
|
|
155
155
|
quoteId,
|
|
@@ -158,6 +158,7 @@ class ClusterClient {
|
|
|
158
158
|
? payoutBankAccountId
|
|
159
159
|
: undefined,
|
|
160
160
|
notes: notes ? notes : undefined,
|
|
161
|
+
isAxeTaker: isAxeTaker ? isAxeTaker : undefined,
|
|
161
162
|
}, {
|
|
162
163
|
headers: {
|
|
163
164
|
"x-cluster-api-key": this.clusterApiKey,
|
package/build/models/axe.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface AxeAttrs {
|
|
|
19
19
|
netPrice: number;
|
|
20
20
|
currency: Crypto;
|
|
21
21
|
}[];
|
|
22
|
-
|
|
22
|
+
excludedUserIds: string[];
|
|
23
23
|
}
|
|
24
24
|
interface AxeDoc extends mongoose.Document {
|
|
25
25
|
createdAt: Date;
|
|
@@ -40,7 +40,7 @@ interface AxeDoc extends mongoose.Document {
|
|
|
40
40
|
netPrice: number;
|
|
41
41
|
currency: Crypto;
|
|
42
42
|
}[];
|
|
43
|
-
|
|
43
|
+
excludedUserIds: string[];
|
|
44
44
|
}
|
|
45
45
|
interface AxeModel extends mongoose.Model<AxeDoc> {
|
|
46
46
|
build(attrs: AxeAttrs): AxeDoc;
|
package/build/models/axe.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2293",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.2010",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|