@methodfi/opal-react 1.2.0 → 1.4.0
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/dist/index.d.ts +29 -8
- package/dist/index.js +37 -9
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,17 +6,38 @@ declare const OpalMode: {
|
|
|
6
6
|
readonly CARD_CONNECT: "card_connect";
|
|
7
7
|
readonly ACCOUNT_VERIFICATION: "account_verification";
|
|
8
8
|
readonly IDENTITY: "identity";
|
|
9
|
+
readonly TRANSACTIONS: "transactions";
|
|
9
10
|
};
|
|
10
11
|
type OpalMode = (typeof OpalMode)[keyof typeof OpalMode];
|
|
11
12
|
declare const OpalEventType: {
|
|
12
|
-
readonly SESSION_STARTED: "opal.started";
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly FLOW_STARTED: "flow.started";
|
|
17
|
-
readonly FLOW_COMPLETED: "flow.completed";
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
13
|
+
readonly SESSION_STARTED: "opal.session.started";
|
|
14
|
+
readonly SESSION_COMPLETED: "opal.session.completed";
|
|
15
|
+
readonly SESSION_ERRORED: "opal.session.errored";
|
|
16
|
+
readonly SESSION_EXITED: "opal.session.exited";
|
|
17
|
+
readonly FLOW_STARTED: "opal.flow.started";
|
|
18
|
+
readonly FLOW_COMPLETED: "opal.flow.completed";
|
|
19
|
+
readonly IDV_FLOW_STARTED: "identity_verification.flow.started";
|
|
20
|
+
readonly IDV_STEP_STARTED: "identity_verification.step.started";
|
|
21
|
+
readonly IDV_STEP_COMPLETED: "identity_verification.step.completed";
|
|
22
|
+
readonly IDV_FLOW_COMPLETED: "identity_verification.flow.completed";
|
|
23
|
+
readonly IDV_VERIFICATION_COMPLETED: "identity_verification.identity.completed";
|
|
24
|
+
readonly CXN_FLOW_STARTED: "connect.flow.started";
|
|
25
|
+
readonly CXN_STEP_STARTED: "connect.step.started";
|
|
26
|
+
readonly CXN_STEP_COMPLETED: "connect.step.completed";
|
|
27
|
+
readonly CXN_FLOW_COMPLETED: "connect.flow.completed";
|
|
28
|
+
readonly CXN_ACCOUNTS_SELECTED: "connect.accounts.selected";
|
|
29
|
+
readonly AVF_FLOW_STARTED: "account_verification.flow.started";
|
|
30
|
+
readonly AVF_STEP_STARTED: "account_verification.step.started";
|
|
31
|
+
readonly AVF_STEP_COMPLETED: "account_verification.step.completed";
|
|
32
|
+
readonly AVF_FLOW_COMPLETED: "account_verification.flow.completed";
|
|
33
|
+
readonly AVF_CARD_VERIFIED: "account_verification.card.verified";
|
|
34
|
+
readonly TXN_FLOW_STARTED: "transactions.flow.started";
|
|
35
|
+
readonly TXN_STEP_STARTED: "transactions.step.started";
|
|
36
|
+
readonly TXN_STEP_COMPLETED: "transactions.step.completed";
|
|
37
|
+
readonly TXN_FLOW_COMPLETED: "transactions.flow.completed";
|
|
38
|
+
readonly TXN_ACCOUNTS_LINKED: "transactions.accounts.linked";
|
|
39
|
+
readonly STEP_STARTED: "opal.step.started";
|
|
40
|
+
readonly STEP_COMPLETED: "opal.step.completed";
|
|
20
41
|
};
|
|
21
42
|
type OpalEventType = (typeof OpalEventType)[keyof typeof OpalEventType];
|
|
22
43
|
/**
|
package/dist/index.js
CHANGED
|
@@ -6,18 +6,46 @@ const OpalMode = {
|
|
|
6
6
|
CONNECT: 'connect',
|
|
7
7
|
CARD_CONNECT: 'card_connect',
|
|
8
8
|
ACCOUNT_VERIFICATION: 'account_verification',
|
|
9
|
-
IDENTITY: 'identity'
|
|
9
|
+
IDENTITY: 'identity',
|
|
10
|
+
TRANSACTIONS: 'transactions'
|
|
10
11
|
};
|
|
11
12
|
// Common Opal event types - supports card_connect and account_verification modes
|
|
12
13
|
const OpalEventType = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
// Opal Session Events
|
|
15
|
+
SESSION_STARTED: 'opal.session.started',
|
|
16
|
+
SESSION_COMPLETED: 'opal.session.completed',
|
|
17
|
+
SESSION_ERRORED: 'opal.session.errored',
|
|
18
|
+
SESSION_EXITED: 'opal.session.exited',
|
|
19
|
+
// Generic flow events
|
|
20
|
+
FLOW_STARTED: 'opal.flow.started',
|
|
21
|
+
FLOW_COMPLETED: 'opal.flow.completed',
|
|
22
|
+
// IDV flow events
|
|
23
|
+
IDV_FLOW_STARTED: 'identity_verification.flow.started',
|
|
24
|
+
IDV_STEP_STARTED: 'identity_verification.step.started',
|
|
25
|
+
IDV_STEP_COMPLETED: 'identity_verification.step.completed',
|
|
26
|
+
IDV_FLOW_COMPLETED: 'identity_verification.flow.completed',
|
|
27
|
+
IDV_VERIFICATION_COMPLETED: 'identity_verification.identity.completed',
|
|
28
|
+
// CXN flow events
|
|
29
|
+
CXN_FLOW_STARTED: 'connect.flow.started',
|
|
30
|
+
CXN_STEP_STARTED: 'connect.step.started',
|
|
31
|
+
CXN_STEP_COMPLETED: 'connect.step.completed',
|
|
32
|
+
CXN_FLOW_COMPLETED: 'connect.flow.completed',
|
|
33
|
+
CXN_ACCOUNTS_SELECTED: 'connect.accounts.selected',
|
|
34
|
+
// AVF flow events
|
|
35
|
+
AVF_FLOW_STARTED: 'account_verification.flow.started',
|
|
36
|
+
AVF_STEP_STARTED: 'account_verification.step.started',
|
|
37
|
+
AVF_STEP_COMPLETED: 'account_verification.step.completed',
|
|
38
|
+
AVF_FLOW_COMPLETED: 'account_verification.flow.completed',
|
|
39
|
+
AVF_CARD_VERIFIED: 'account_verification.card.verified',
|
|
40
|
+
// TXN flow events
|
|
41
|
+
TXN_FLOW_STARTED: 'transactions.flow.started',
|
|
42
|
+
TXN_STEP_STARTED: 'transactions.step.started',
|
|
43
|
+
TXN_STEP_COMPLETED: 'transactions.step.completed',
|
|
44
|
+
TXN_FLOW_COMPLETED: 'transactions.flow.completed',
|
|
45
|
+
TXN_ACCOUNTS_LINKED: 'transactions.accounts.linked',
|
|
46
|
+
// Generic step events
|
|
47
|
+
STEP_STARTED: 'opal.step.started',
|
|
48
|
+
STEP_COMPLETED: 'opal.step.completed'
|
|
21
49
|
};
|
|
22
50
|
|
|
23
51
|
const OPAL_URLS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@methodfi/opal-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "React SDK for Opal integration",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
"react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
27
27
|
"react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|