@riocrypto/common-server 1.0.2728 → 1.0.2729

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sanitizeOrderDoc = void 0;
4
4
  const sanitizeOrderDoc = (doc) => {
5
- var _a;
5
+ var _a, _b;
6
6
  const obj = doc.toJSON();
7
7
  delete obj.substatus;
8
8
  delete obj.liquidityProvider;
@@ -21,7 +21,15 @@ const sanitizeOrderDoc = (doc) => {
21
21
  delete obj.assetPriceInUSD;
22
22
  delete obj.actualAssetPriceInUSD;
23
23
  delete obj.previousActiveStatus;
24
- if (((_a = obj.payoutsSent) === null || _a === void 0 ? void 0 : _a.length) > 0) {
24
+ if (((_a = obj.paymentsReceived) === null || _a === void 0 ? void 0 : _a.length) > 0) {
25
+ obj.paymentsReceived = obj.paymentsReceived.map((payment) => {
26
+ if (payment.fireblocksTransferId) {
27
+ delete payment.fireblocksTransferId;
28
+ }
29
+ return payment;
30
+ });
31
+ }
32
+ if (((_b = obj.payoutsSent) === null || _b === void 0 ? void 0 : _b.length) > 0) {
25
33
  obj.payoutsSent = obj.payoutsSent.map((payout) => {
26
34
  if (payout.fireblocksTransferId) {
27
35
  delete payout.fireblocksTransferId;
@@ -16,6 +16,7 @@ interface BulkCryptoPaymentAttrs {
16
16
  paymentsReceived?: {
17
17
  amount: number;
18
18
  blockchainTxId?: string;
19
+ fireblocksTransferId?: string;
19
20
  originBlockchainAddress?: string;
20
21
  receivedAt: Date;
21
22
  }[];
@@ -105,6 +105,7 @@ interface OrderAttrs {
105
105
  paymentsReceived?: {
106
106
  amount: number;
107
107
  blockchainTxId?: string;
108
+ fireblocksTransferId?: string;
108
109
  SPEITrackingNumber?: string;
109
110
  SPIDTrackingNumber?: string;
110
111
  CEPLink?: string;
@@ -242,6 +243,7 @@ interface OrderDoc extends Document {
242
243
  paymentsReceived?: {
243
244
  amount: number;
244
245
  blockchainTxId?: string;
246
+ fireblocksTransferId?: string;
245
247
  SPEITrackingNumber?: string;
246
248
  SPIDTrackingNumber?: string;
247
249
  CEPLink?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2728",
3
+ "version": "1.0.2729",
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.2522",
31
+ "@riocrypto/common": "^1.0.2524",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",