@riocrypto/common-server 1.0.2493 → 1.0.2495

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.
@@ -173,7 +173,7 @@ declare class ClusterClient {
173
173
  createSTPMXNWithdrawal(amount: number, CLABE: string, concepto: string, beneficiaryName: string): Promise<void>;
174
174
  getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
175
175
  createBulkBankPayout(userId: string, payoutBankAccountId: string): Promise<BulkBankPayout>;
176
- createBulkCryptoPayout(userId: string, payoutAddressId: string): Promise<BulkCryptoPayout>;
176
+ createBulkCryptoPayout(userId: string, payoutAddressId: string, country: Country): Promise<BulkCryptoPayout>;
177
177
  createBulkBankPayment(userId: string, fiat: Fiat, country: Country): Promise<BulkBankPayment>;
178
178
  createBulkCryptoPayment(userId: string, crypto: Crypto, country: Country): Promise<BulkCryptoPayment>;
179
179
  }
@@ -606,9 +606,9 @@ class ClusterClient {
606
606
  return response.data;
607
607
  });
608
608
  }
609
- createBulkCryptoPayout(userId, payoutAddressId) {
609
+ createBulkCryptoPayout(userId, payoutAddressId, country) {
610
610
  return __awaiter(this, void 0, void 0, function* () {
611
- const response = yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk`, { userId, payoutAddressId }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
611
+ const response = yield this.axios.post(`${this.baseUrl}/api/payouts/crypto/bulk`, { userId, payoutAddressId, country }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
612
612
  return response.data;
613
613
  });
614
614
  }
@@ -19,6 +19,7 @@ const sanitizeUserDoc = (doc) => {
19
19
  delete obj.onboarding.aipriseUserVerificationSessionId;
20
20
  delete obj.onboarding.bridgeCustomerId;
21
21
  delete obj.onboarding.bridgeKYCLinkId;
22
+ delete obj.TWAP;
22
23
  return obj;
23
24
  };
24
25
  exports.sanitizeUserDoc = sanitizeUserDoc;
@@ -108,6 +108,14 @@ interface UserAttrs {
108
108
  [side in Side]?: number;
109
109
  };
110
110
  };
111
+ TWAP?: {
112
+ [key in Fiat]?: {
113
+ [key in Side]?: {
114
+ minClipSize?: number;
115
+ interval?: number;
116
+ };
117
+ };
118
+ };
111
119
  }
112
120
  interface UserModel extends Model<UserDoc> {
113
121
  build(attrs: UserAttrs): UserDoc;
@@ -250,6 +258,14 @@ interface UserDoc extends Document {
250
258
  [side in Side]?: number;
251
259
  };
252
260
  };
261
+ TWAP?: {
262
+ [key in Fiat]?: {
263
+ [key in Side]?: {
264
+ minClipSize?: number;
265
+ interval?: number;
266
+ };
267
+ };
268
+ };
253
269
  }
254
270
  declare const buildUser: (mongoose: Mongoose) => UserModel;
255
271
  export { buildUser, UserDoc, UserAttrs };
@@ -325,6 +325,9 @@ const buildUser = (mongoose) => {
325
325
  },
326
326
  },
327
327
  },
328
+ TWAP: {
329
+ type: Object,
330
+ },
328
331
  }, {
329
332
  toJSON: {
330
333
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2493",
3
+ "version": "1.0.2495",
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.2260",
31
+ "@riocrypto/common": "^1.0.2261",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",