@soltech/fluid-common 0.1.6 → 0.1.7

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.
package/lib/index.d.ts CHANGED
@@ -89,7 +89,7 @@ export interface TransactionOptions {
89
89
  export interface TransactionResult {
90
90
  error?: ProviderTransactionError;
91
91
  redirectOutput?: RedirectOutput;
92
- state: string;
92
+ state: TransactionState;
93
93
  statusCode: string;
94
94
  transactionId: string;
95
95
  }
@@ -100,6 +100,11 @@ export interface RedirectOutput {
100
100
  width?: number;
101
101
  url: string;
102
102
  }
103
+ export declare enum TransactionState {
104
+ SUCCESSFUL = "SUCCESS",
105
+ FAILED = "FAILED",
106
+ WAITING_INPUT = "WAITING_INPUT"
107
+ }
103
108
  export interface ProviderTransactionError {
104
109
  code: string;
105
110
  text: string;
package/lib/index.js CHANGED
@@ -18,6 +18,12 @@ export var PaymentType;
18
18
  PaymentType["PREPAID_CARD"] = "PrepaidCard";
19
19
  PaymentType["VOUCHER"] = "Voucher";
20
20
  })(PaymentType || (PaymentType = {}));
21
+ export var TransactionState;
22
+ (function (TransactionState) {
23
+ TransactionState["SUCCESSFUL"] = "SUCCESS";
24
+ TransactionState["FAILED"] = "FAILED";
25
+ TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
26
+ })(TransactionState || (TransactionState = {}));
21
27
  export var ErrorAction;
22
28
  (function (ErrorAction) {
23
29
  ErrorAction["RETURN_STEP1"] = "ReturnStep1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -105,7 +105,7 @@ export interface TransactionOptions {
105
105
  export interface TransactionResult {
106
106
  error?: ProviderTransactionError;
107
107
  redirectOutput?: RedirectOutput;
108
- state: string;
108
+ state: TransactionState;
109
109
  statusCode: string;
110
110
  transactionId: string;
111
111
  }
@@ -118,6 +118,12 @@ export interface RedirectOutput {
118
118
  url: string;
119
119
  }
120
120
 
121
+ export enum TransactionState {
122
+ SUCCESSFUL = 'SUCCESS',
123
+ FAILED = 'FAILED',
124
+ WAITING_INPUT = 'WAITING_INPUT'
125
+ }
126
+
121
127
  export interface ProviderTransactionError {
122
128
  code: string;
123
129
  text: string;