react-memory-optimization 0.0.115 → 0.0.116

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.
@@ -6,7 +6,8 @@ export declare enum EApiPath {
6
6
  CreateDevWithdraw = "/pay-service-dev/api/v2/withdrawal/create",
7
7
  CreateProdWithdraw = "/pay-service/api/v2/withdrawal/create",
8
8
  GetPaymentBankListDeposit = "/pay-service/api/v2/info/banks/malaysia/payin",
9
- GetPaymentBankListWithdraw = "/pay-service/api/v2/info/banks/malaysia/payout"
9
+ GetPaymentBankListWithdraw = "/pay-service/api/v2/info/banks/malaysia/payout",
10
+ CancelWithdrawal = "/pay-service/api/v2/withdrawal/cancel"
10
11
  }
11
12
  export type RestCommandDataProps = {
12
13
  [key: string]: string | number | any[];
@@ -11,6 +11,7 @@ var EApiPath;
11
11
  EApiPath["CreateProdWithdraw"] = "/pay-service/api/v2/withdrawal/create";
12
12
  EApiPath["GetPaymentBankListDeposit"] = "/pay-service/api/v2/info/banks/malaysia/payin";
13
13
  EApiPath["GetPaymentBankListWithdraw"] = "/pay-service/api/v2/info/banks/malaysia/payout";
14
+ EApiPath["CancelWithdrawal"] = "/pay-service/api/v2/withdrawal/cancel";
14
15
  })(EApiPath || (exports.EApiPath = EApiPath = {}));
15
16
  var EValidationCommandDataProps;
16
17
  (function (EValidationCommandDataProps) {
@@ -6,6 +6,7 @@ const types_1 = require("./types");
6
6
  // TODO Types
7
7
  const adaptedWithdrawOrDeposit = (o) => {
8
8
  const { amount, completionTimestamp, creationTimestamp, direction, id, status, type, } = o;
9
+ console.log('oOPERATION', JSON.stringify(o, null, 2));
9
10
  return {
10
11
  amount,
11
12
  completionTimestamp,
@@ -14,7 +15,8 @@ const adaptedWithdrawOrDeposit = (o) => {
14
15
  id,
15
16
  status,
16
17
  type,
17
- canBeCanceled: Boolean(o.postponedStatus === 1),
18
+ canBeCanceled: true,
19
+ // Boolean(o.postponedStatus === 1),
18
20
  // TODO if Rostik approved this operation operation Will with postpouned === 2
19
21
  };
20
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-memory-optimization",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [