@elliemae/pui-scripting-object 1.46.4 → 1.48.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/cjs/index.js +0 -3
- package/dist/cjs/objects/application.js +19 -6
- package/dist/cjs/objects/loan.js +51 -0
- package/dist/cjs/objects/module.js +0 -21
- package/dist/cjs/scriptingObjectList.js +0 -3
- package/dist/esm/index.js +0 -3
- package/dist/esm/objects/application.js +19 -6
- package/dist/esm/objects/loan.js +51 -0
- package/dist/esm/objects/module.js +0 -17
- package/dist/esm/scriptingObjectList.js +0 -3
- package/dist/types/lib/index.d.ts +0 -3
- package/dist/types/lib/objects/application.d.ts +137 -61
- package/dist/types/lib/objects/auth.d.ts +19 -4
- package/dist/types/lib/objects/loan.d.ts +393 -85
- package/dist/types/lib/objects/module.d.ts +0 -79
- package/dist/types/lib/scriptingObjectEventList.d.ts +2 -3
- package/dist/types/lib/scriptingObjectList.d.ts +1 -10
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/cjs/objects/route.js +0 -16
- package/dist/cjs/objects/transactionv2.js +0 -29
- package/dist/cjs/objects/view.js +0 -16
- package/dist/esm/objects/route.js +0 -0
- package/dist/esm/objects/transactionv2.js +0 -9
- package/dist/esm/objects/view.js +0 -0
- package/dist/types/lib/objects/route.d.ts +0 -13
- package/dist/types/lib/objects/transactionv2.d.ts +0 -80
- package/dist/types/lib/objects/view.d.ts +0 -103
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-scripting-object",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "Typescript defintions for Scripting Objects",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.10.0",
|
|
69
|
-
"@elliemae/pui-cli": "~8.
|
|
70
|
-
"@elliemae/pui-doc-gen": "~3.
|
|
69
|
+
"@elliemae/pui-cli": "~8.40.1",
|
|
70
|
+
"@elliemae/pui-doc-gen": "~3.1.1",
|
|
71
71
|
"@elliemae/pui-theme": "~2.10.0",
|
|
72
72
|
"@types/styled-components": "~5.1.34",
|
|
73
73
|
"history": "~5.3.0",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var route_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(route_exports);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var transactionv2_exports = {};
|
|
20
|
-
__export(transactionv2_exports, {
|
|
21
|
-
CompleteReason: () => CompleteReason
|
|
22
|
-
});
|
|
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 || {});
|
package/dist/cjs/objects/view.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var view_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(view_exports);
|
|
File without changes
|
package/dist/esm/objects/view.js
DELETED
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { To } from 'history';
|
|
2
|
-
import { IScriptingObject } from '../scriptingObject.js';
|
|
3
|
-
/**
|
|
4
|
-
* Methods to view, modify & get notified about parent window url navigation
|
|
5
|
-
*/
|
|
6
|
-
export interface IRoute extends IScriptingObject {
|
|
7
|
-
/**
|
|
8
|
-
* navigate to a new url
|
|
9
|
-
* @param path path to navigate to
|
|
10
|
-
* @param state state to be passed to the new path
|
|
11
|
-
*/
|
|
12
|
-
navigate(path: To, state?: unknown): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { IScriptingObject } from '../scriptingObject.js';
|
|
2
|
-
import { OriginDetails, TransactionDetails, TransactionEvent, ResourceDetails, ResourceOptions } from './shared.js';
|
|
3
|
-
/**
|
|
4
|
-
* reason for completing the user interaction with the transaction
|
|
5
|
-
*/
|
|
6
|
-
export declare enum CompleteReason {
|
|
7
|
-
/**
|
|
8
|
-
* user completed interaction with the transaction
|
|
9
|
-
*/
|
|
10
|
-
CLOSE = "close",
|
|
11
|
-
/**
|
|
12
|
-
* user cancelled the interaction with transaction
|
|
13
|
-
*/
|
|
14
|
-
CANCEL = "cancel",
|
|
15
|
-
/**
|
|
16
|
-
* interaction with the transaction errored out
|
|
17
|
-
*/
|
|
18
|
-
ERROR = "error"
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Provides your applications lender/borrower-facing view with the necessary handles to model your application's
|
|
22
|
-
* transactional interaction with the EPC platform.
|
|
23
|
-
* Allows access to an interactive session's origination context,
|
|
24
|
-
* create a new transaction,
|
|
25
|
-
* update an existing transaction,
|
|
26
|
-
* create events/messages for a transaction, and more.
|
|
27
|
-
*/
|
|
28
|
-
export interface ITransactionV2 extends IScriptingObject {
|
|
29
|
-
/**
|
|
30
|
-
* notify host on completion of user interaction with the transaction
|
|
31
|
-
* so that host can perform any necessary post user interaction processing / cleanup.
|
|
32
|
-
* @param id - unique identifier for the transaction
|
|
33
|
-
* @param reason reason for completing the transaction user interaction
|
|
34
|
-
*/
|
|
35
|
-
completeUserInteraction(id: string, reason: CompleteReason): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* create new transaction
|
|
38
|
-
* @param options details of the transaction to be created
|
|
39
|
-
* @returns transaction id
|
|
40
|
-
* @throws error when transaction creation fails
|
|
41
|
-
*/
|
|
42
|
-
create(options: TransactionDetails): Promise<string>;
|
|
43
|
-
/**
|
|
44
|
-
* send event for the subject transaction
|
|
45
|
-
* @param id - unique identifier for the transaction
|
|
46
|
-
* @param options details of the event/message to be initiated
|
|
47
|
-
* @returns transaction event id
|
|
48
|
-
* @throws error when event creation fails, TransactionNotFound error for invalid transaction id
|
|
49
|
-
*/
|
|
50
|
-
createEvent(id: string, options: TransactionEvent): Promise<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Creates new origin and context.
|
|
53
|
-
* @param withLoanData - include loan data in the origin cache
|
|
54
|
-
* @returns service setup origination information
|
|
55
|
-
* @throws OriginNotFound error when origin is not found
|
|
56
|
-
*/
|
|
57
|
-
createOrigin(withLoanData: boolean): Promise<OriginDetails>;
|
|
58
|
-
/**
|
|
59
|
-
* get necessary details to upload document for specific transaction
|
|
60
|
-
* @param id - unique identifier for the transaction
|
|
61
|
-
* @param options details of the document to be uploaded
|
|
62
|
-
* @returns details about the location where to upload the document
|
|
63
|
-
* @throws error when resource can not be created, TransactionNotFound error for invalid transaction id
|
|
64
|
-
*/
|
|
65
|
-
createResource(id: string, options: ResourceOptions): Promise<ResourceDetails>;
|
|
66
|
-
/**
|
|
67
|
-
* get details about the transaction
|
|
68
|
-
* @param id - unique identifier for the transaction
|
|
69
|
-
* @returns transaction details
|
|
70
|
-
* @throws TransactionNotFound error for invalid transaction id
|
|
71
|
-
*/
|
|
72
|
-
get(id: string): Promise<TransactionDetails>;
|
|
73
|
-
/**
|
|
74
|
-
* update existing transaction.
|
|
75
|
-
* @param id - unique identifier for the transaction
|
|
76
|
-
* @param options transaction details to be updated
|
|
77
|
-
* @throws error when transaction update fails, TransactionNotFound error for invalid transaction id
|
|
78
|
-
*/
|
|
79
|
-
update(id: string, options: TransactionDetails): Promise<void>;
|
|
80
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { BreakPoint } from '@elliemae/pui-theme';
|
|
2
|
-
import { IEvent } from '../event.js';
|
|
3
|
-
import { IScriptingObject } from '../scriptingObject.js';
|
|
4
|
-
/**
|
|
5
|
-
* window viewport size
|
|
6
|
-
*/
|
|
7
|
-
export type ViewportSize = {
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* window viewport size information
|
|
13
|
-
*/
|
|
14
|
-
type ViewportSizeInfo = {
|
|
15
|
-
/**
|
|
16
|
-
* details about the resize event
|
|
17
|
-
*/
|
|
18
|
-
entires: ResizeObserverEntry;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* parent window resize event handler
|
|
22
|
-
* @param params event parameters
|
|
23
|
-
* @param params.obj view object reference
|
|
24
|
-
* @param params.eventName event name
|
|
25
|
-
* @param params.eventParams view port info
|
|
26
|
-
* @param params.eventOptions additional options related to the event
|
|
27
|
-
*/
|
|
28
|
-
export type ViewResizeListener = (params: {
|
|
29
|
-
obj: IView;
|
|
30
|
-
eventName: string;
|
|
31
|
-
eventParams: ViewportSizeInfo;
|
|
32
|
-
eventOptions?: Record<string, unknown>;
|
|
33
|
-
}) => void;
|
|
34
|
-
/**
|
|
35
|
-
* window breakpoint information
|
|
36
|
-
*/
|
|
37
|
-
export type BreakpointInfo = {
|
|
38
|
-
/**
|
|
39
|
-
* current breakpoint of the parent window
|
|
40
|
-
*/
|
|
41
|
-
breakpoint: BreakPoint;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* parent window breakpoint change event handler
|
|
45
|
-
* @param params event parameters
|
|
46
|
-
* @param params.obj view object reference
|
|
47
|
-
* @param params.eventName event name
|
|
48
|
-
* @param params.eventParams window breakpoint info
|
|
49
|
-
* @param params.eventOptions additional options related to the event
|
|
50
|
-
*/
|
|
51
|
-
export type BreakpointChangeListener = (params: {
|
|
52
|
-
obj: IView;
|
|
53
|
-
eventName: string;
|
|
54
|
-
eventParams: BreakpointInfo;
|
|
55
|
-
eventOptions?: Record<string, unknown>;
|
|
56
|
-
}) => void;
|
|
57
|
-
/**
|
|
58
|
-
* events related to the window
|
|
59
|
-
*/
|
|
60
|
-
export type ViewEvents = {
|
|
61
|
-
/**
|
|
62
|
-
* event is fired when the parent window's breakpoint changes
|
|
63
|
-
*
|
|
64
|
-
* Use {@link BreakpointChangeListener} to handle this event
|
|
65
|
-
*/
|
|
66
|
-
'view.breakpointChange': BreakpointChangeListener;
|
|
67
|
-
/**
|
|
68
|
-
* eent is fired when the parent window is resized
|
|
69
|
-
*
|
|
70
|
-
* Use {@link ViewResizeListener} to handle this event
|
|
71
|
-
*/
|
|
72
|
-
'view.resize': ViewResizeListener;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* APIs to interact with the window / viewport
|
|
76
|
-
*
|
|
77
|
-
* See {@link ViewEvents} for supported events
|
|
78
|
-
*/
|
|
79
|
-
export interface IView extends IScriptingObject {
|
|
80
|
-
/**
|
|
81
|
-
* event fired when the window breakpoint changes
|
|
82
|
-
*
|
|
83
|
-
* Use {@link BreakpointChangeListener} to handle this event
|
|
84
|
-
*/
|
|
85
|
-
readonly BreakpointChange: IEvent;
|
|
86
|
-
/**
|
|
87
|
-
* event fired when the window is resized
|
|
88
|
-
*
|
|
89
|
-
* Use {@link ViewResizeListener} to handle this event
|
|
90
|
-
*/
|
|
91
|
-
readonly Resize: IEvent;
|
|
92
|
-
/**
|
|
93
|
-
* Get the current breakpoint of the parent window
|
|
94
|
-
* @returns current breakpoint
|
|
95
|
-
*/
|
|
96
|
-
getBreakpoint(): Promise<BreakPoint>;
|
|
97
|
-
/**
|
|
98
|
-
* Get the current viewport size of the parent window
|
|
99
|
-
* @returns viewport size
|
|
100
|
-
*/
|
|
101
|
-
getViewPortSize(): Promise<ViewportSize>;
|
|
102
|
-
}
|
|
103
|
-
export {};
|