@elliemae/pui-scripting-object 1.13.0 → 1.14.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.
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,4 +17,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var transactionv2_exports = {};
|
|
20
|
+
__export(transactionv2_exports, {
|
|
21
|
+
CompleteReason: () => CompleteReason
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(transactionv2_exports);
|
|
24
|
+
var CompleteReason = /* @__PURE__ */ ((CompleteReason2) => {
|
|
25
|
+
CompleteReason2["CLOSE"] = "close";
|
|
26
|
+
CompleteReason2["CANCEL"] = "cancel";
|
|
27
|
+
CompleteReason2["ERROR"] = "error";
|
|
28
|
+
return CompleteReason2;
|
|
29
|
+
})(CompleteReason || {});
|
|
@@ -25,14 +25,6 @@ export declare type OriginDetails = {
|
|
|
25
25
|
* via the REST API's /partner/v2/origins/:id endpoint
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Unique identifier for the transaction in whose context the
|
|
30
|
-
* partner integrations user-interface is being launched.
|
|
31
|
-
* This is only available in the situation where your integration
|
|
32
|
-
* is being launched in the context of an existing transaction,
|
|
33
|
-
* and can be used to decide the appropriate view to display to users
|
|
34
|
-
*/
|
|
35
|
-
transactionId?: string;
|
|
36
28
|
/**
|
|
37
29
|
* The user type in whose context your integration is being launched
|
|
38
30
|
*/
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { OriginDetails, TransactionDetails, TransactionEvent, ResourceDetails, ResourceOptions } from './shared.js';
|
|
2
|
+
/**
|
|
3
|
+
* reason for completing the user interaction with the transaction
|
|
4
|
+
*/
|
|
5
|
+
export declare enum CompleteReason {
|
|
6
|
+
/**
|
|
7
|
+
* user completed interaction with the transaction
|
|
8
|
+
*/
|
|
9
|
+
CLOSE = "close",
|
|
10
|
+
/**
|
|
11
|
+
* user cancelled the interaction with transaction
|
|
12
|
+
*/
|
|
13
|
+
CANCEL = "cancel",
|
|
14
|
+
/**
|
|
15
|
+
* interaction with the transaction errored out
|
|
16
|
+
*/
|
|
17
|
+
ERROR = "error"
|
|
18
|
+
}
|
|
2
19
|
/**
|
|
3
20
|
* Provides your applications lender/borrower-facing view with the necessary handles to model your application's
|
|
4
21
|
* transactional interaction with the EPC platform.
|
|
@@ -43,21 +60,18 @@ export interface ITransactionV2 {
|
|
|
43
60
|
*/
|
|
44
61
|
get(id: string): Promise<TransactionDetails>;
|
|
45
62
|
/**
|
|
46
|
-
* Get
|
|
63
|
+
* Get origination and context
|
|
47
64
|
*
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
50
|
-
* @throws TransactinNotFound error for invalid transaction id
|
|
65
|
+
* @returns service setup origination information
|
|
66
|
+
* @throws OriginNotFound error when origin is not found
|
|
51
67
|
*/
|
|
52
|
-
getOrigin(
|
|
68
|
+
getOrigin(): Promise<OriginDetails>;
|
|
53
69
|
/**
|
|
54
|
-
* refresh
|
|
70
|
+
* refresh origination context, if current one expires.
|
|
55
71
|
*
|
|
56
|
-
* @
|
|
57
|
-
* @returns transaction origination information
|
|
58
|
-
* @throws TransactionNotFound error for invalid transaction id
|
|
72
|
+
* @returns origination information
|
|
59
73
|
*/
|
|
60
|
-
refreshOrigin(
|
|
74
|
+
refreshOrigin(): Promise<OriginDetails>;
|
|
61
75
|
/**
|
|
62
76
|
* update existing transaction.
|
|
63
77
|
*
|
|
@@ -67,20 +81,11 @@ export interface ITransactionV2 {
|
|
|
67
81
|
*/
|
|
68
82
|
update(id: string, options: TransactionDetails): Promise<void>;
|
|
69
83
|
/**
|
|
70
|
-
*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*
|
|
75
|
-
* This signals a cancelation outcome to the host application -
|
|
76
|
-
* how this is handled by the host upon user navigation can vary across applications
|
|
77
|
-
*/
|
|
78
|
-
cancel(id: string): Promise<void>;
|
|
79
|
-
/**
|
|
80
|
-
* Navigate your users back to where they left off in the host Encompass application,
|
|
81
|
-
* after their has been an error (application error or workflow error) on your integrations user-interface.
|
|
82
|
-
* This signals an error outcome to the host Encompass application -
|
|
83
|
-
* how this is handled by the host upon user navigation can vary across applications
|
|
84
|
+
* notify host on completion of user interaction with the transaction
|
|
85
|
+
* so that host can perform any necessary post user interaction processing / cleanup.
|
|
86
|
+
*
|
|
87
|
+
* @param id - unique identifier for the transaction
|
|
88
|
+
* @param reason reason for completing the transaction user interaction
|
|
84
89
|
*/
|
|
85
|
-
|
|
90
|
+
completeUserInteraction(id: string, reason: CompleteReason): Promise<void>;
|
|
86
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-scripting-object",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Typescript defintions for Scripting Objects",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
|
|
70
|
-
"@elliemae/pui-cli": "~7.
|
|
70
|
+
"@elliemae/pui-cli": "~7.14.1",
|
|
71
71
|
"@elliemae/pui-doc-gen": "~1.3.0",
|
|
72
72
|
"@elliemae/pui-theme": "~2.6.0",
|
|
73
73
|
"@types/styled-components": "~5.1.26",
|