@wenex/sdk 0.8.2 → 0.8.4

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.
@@ -1,11 +1,7 @@
1
1
  export declare enum TransactionReason {
2
+ Sync = "sync",
3
+ Payment = "payment",
2
4
  Transfer = "transfer",
3
- Reward = "reward",
4
- Cashback = "cashback",
5
- Earning = "earning",
6
- Expense = "expense",
7
- InvoicePayNormal = "invoice:pay-normal",
8
- InvoicePayRepeatable = "invoice:pay-repeatable",
9
- InvoicePayReplication = "invoice:pay-replication",
10
- InvoicePaySubscription = "invoice:pay-subscription"
5
+ Deposit = "deposit",
6
+ Withdraw = "withdraw"
11
7
  }
@@ -3,14 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransactionReason = void 0;
4
4
  var TransactionReason;
5
5
  (function (TransactionReason) {
6
+ TransactionReason["Sync"] = "sync";
7
+ TransactionReason["Payment"] = "payment";
6
8
  TransactionReason["Transfer"] = "transfer";
7
- TransactionReason["Reward"] = "reward";
8
- TransactionReason["Cashback"] = "cashback";
9
- TransactionReason["Earning"] = "earning";
10
- TransactionReason["Expense"] = "expense";
11
- TransactionReason["InvoicePayNormal"] = "invoice:pay-normal";
12
- TransactionReason["InvoicePayRepeatable"] = "invoice:pay-repeatable";
13
- TransactionReason["InvoicePayReplication"] = "invoice:pay-replication";
14
- TransactionReason["InvoicePaySubscription"] = "invoice:pay-subscription";
9
+ TransactionReason["Deposit"] = "deposit";
10
+ TransactionReason["Withdraw"] = "withdraw";
15
11
  })(TransactionReason || (exports.TransactionReason = TransactionReason = {}));
16
12
  //# sourceMappingURL=reason.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reason.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IAErB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IAErB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IAEnB,4DAAuC,CAAA;IACvC,oEAA+C,CAAA;IAC/C,sEAAiD,CAAA;IACjD,wEAAmD,CAAA;AACrD,CAAC,EAbW,iBAAiB,iCAAjB,iBAAiB,QAa5B"}
1
+ {"version":3,"file":"reason.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IAEb,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IAErB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B"}
@@ -2,6 +2,6 @@ export declare enum TransactionState {
2
2
  Failed = "failed",
3
3
  Pending = "pending",
4
4
  Verified = "verified",
5
- Rollback = "rollback",
6
- Cancelled = "cancelled"
5
+ Cancelled = "cancelled",
6
+ Rollbacked = "rollbacked"
7
7
  }
@@ -6,7 +6,7 @@ var TransactionState;
6
6
  TransactionState["Failed"] = "failed";
7
7
  TransactionState["Pending"] = "pending";
8
8
  TransactionState["Verified"] = "verified";
9
- TransactionState["Rollback"] = "rollback";
10
9
  TransactionState["Cancelled"] = "cancelled";
10
+ TransactionState["Rollbacked"] = "rollbacked";
11
11
  })(TransactionState || (exports.TransactionState = TransactionState = {}));
12
12
  //# sourceMappingURL=state.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;AACzB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
1
+ {"version":3,"file":"state.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;IACvB,6CAAyB,CAAA;AAC3B,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
@@ -1,5 +1,4 @@
1
1
  export declare enum TransactionType {
2
- Service = "service",
3
2
  Deposit = "deposit",
4
3
  Withdraw = "withdraw",
5
4
  Transfer = "transfer"
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransactionType = void 0;
4
4
  var TransactionType;
5
5
  (function (TransactionType) {
6
- TransactionType["Service"] = "service";
7
6
  TransactionType["Deposit"] = "deposit";
8
7
  TransactionType["Withdraw"] = "withdraw";
9
8
  TransactionType["Transfer"] = "transfer";
@@ -1 +1 @@
1
- {"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,sCAAmB,CAAA;IAEnB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;AACvB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B"}
1
+ {"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
@@ -1,4 +1,5 @@
1
1
  export * from './coin';
2
+ export * from './common';
2
3
  export * from './wallet.interface';
3
4
  export * from './account.interface';
4
5
  export * from './transaction.interface';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./coin"), exports);
18
+ __exportStar(require("./common"), exports);
18
19
  __exportStar(require("./wallet.interface"), exports);
19
20
  __exportStar(require("./account.interface"), exports);
20
21
  __exportStar(require("./transaction.interface"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/financial/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AAEvB,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/financial/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AAEzB,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",