@elliemae/pui-scripting-object 1.15.0 → 1.16.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/types/event.d.ts +5 -5
- package/dist/types/objects/application.d.ts +54 -24
- package/dist/types/objects/form.d.ts +27 -21
- package/dist/types/objects/global.d.ts +14 -11
- package/dist/types/objects/loan.d.ts +108 -74
- package/dist/types/objects/module.d.ts +12 -10
- package/dist/types/objects/view.d.ts +27 -21
- package/package.json +1 -1
package/dist/types/event.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ import { IScriptingObjectProxy, IScriptingObject } from './scriptingObject.js';
|
|
|
5
5
|
export declare type Listener<SO extends IScriptingObjectProxy, Params extends Record<string, unknown>, Options extends Record<string, unknown>, ReturnType> = ({ obj, eventName, eventParams, eventOptions, }: {
|
|
6
6
|
obj: SO;
|
|
7
7
|
eventName: string;
|
|
8
|
-
eventParams
|
|
9
|
-
eventOptions
|
|
8
|
+
eventParams: Params;
|
|
9
|
+
eventOptions: Options;
|
|
10
10
|
}) => ReturnType;
|
|
11
11
|
/**
|
|
12
12
|
* base class for events
|
|
13
13
|
*/
|
|
14
|
-
export interface IEvent {
|
|
14
|
+
export interface IEvent<SO extends IScriptingObjectProxy, Params extends Record<string, unknown>, Options extends Record<string, unknown>, ReturnType> {
|
|
15
15
|
/**
|
|
16
16
|
* name of the event
|
|
17
17
|
*/
|
|
@@ -27,7 +27,7 @@ export interface IEvent {
|
|
|
27
27
|
/**
|
|
28
28
|
* parameters associated with the event
|
|
29
29
|
*/
|
|
30
|
-
readonly params:
|
|
30
|
+
readonly params: Params;
|
|
31
31
|
/**
|
|
32
32
|
* scripting object from where the event was triggered
|
|
33
33
|
*/
|
|
@@ -35,7 +35,7 @@ export interface IEvent {
|
|
|
35
35
|
/**
|
|
36
36
|
* subscribe to the event
|
|
37
37
|
*/
|
|
38
|
-
subscribe: (callback: Listener<
|
|
38
|
+
subscribe: (callback: Listener<SO, Params, Options, ReturnType>) => string;
|
|
39
39
|
/**
|
|
40
40
|
* unsubscribe from the event
|
|
41
41
|
*/
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IEvent
|
|
1
|
+
import { IEvent } from '../event.js';
|
|
2
2
|
import { IScriptingObject } from '../scriptingObject.js';
|
|
3
|
+
/**
|
|
4
|
+
* Log levels
|
|
5
|
+
*/
|
|
3
6
|
export declare enum LogLevel {
|
|
4
7
|
TRACE = "TRACE",
|
|
5
8
|
DEBUG = "DEBUG",
|
|
@@ -9,18 +12,39 @@ export declare enum LogLevel {
|
|
|
9
12
|
ERROR = "ERROR",
|
|
10
13
|
FATAL = "FATAL"
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* metadata about the application
|
|
17
|
+
*/
|
|
12
18
|
export declare type AppInfo = {
|
|
13
19
|
id: string;
|
|
14
20
|
name: string;
|
|
15
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Application extension type
|
|
24
|
+
*/
|
|
16
25
|
export declare enum ApplicationExtensionType {
|
|
17
26
|
TOOL = "TOOL",
|
|
18
27
|
MENU = "MENU"
|
|
19
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* metadata about the application extension
|
|
31
|
+
*/
|
|
20
32
|
export declare type ApplicationExtension = {
|
|
33
|
+
/**
|
|
34
|
+
* type of application extension
|
|
35
|
+
*/
|
|
21
36
|
type: ApplicationExtensionType;
|
|
37
|
+
/**
|
|
38
|
+
* display text of the application extension
|
|
39
|
+
*/
|
|
22
40
|
text: string;
|
|
41
|
+
/**
|
|
42
|
+
* url where the application extension is hosted
|
|
43
|
+
*/
|
|
23
44
|
url: string;
|
|
45
|
+
/**
|
|
46
|
+
* custom options for the application extension
|
|
47
|
+
*/
|
|
24
48
|
options?: Record<string, string>;
|
|
25
49
|
};
|
|
26
50
|
/**
|
|
@@ -38,9 +62,6 @@ export declare enum NavigationType {
|
|
|
38
62
|
* navigation options
|
|
39
63
|
*/
|
|
40
64
|
export declare type NavigationOptions = {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
65
|
target: string;
|
|
45
66
|
type: NavigationType;
|
|
46
67
|
context?: Record<string, string>;
|
|
@@ -49,6 +70,9 @@ export declare type OpenOptions = {
|
|
|
49
70
|
target: string;
|
|
50
71
|
type?: string;
|
|
51
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* size of the modal
|
|
75
|
+
*/
|
|
52
76
|
export declare enum ModalSize {
|
|
53
77
|
SMALL = "sm",
|
|
54
78
|
MEDIUM = "md",
|
|
@@ -89,17 +113,39 @@ export declare type PrintOptions = {
|
|
|
89
113
|
/**
|
|
90
114
|
* event fired when the user logs in
|
|
91
115
|
*/
|
|
92
|
-
export interface
|
|
116
|
+
export interface IApplicationLoginEvent extends IEvent<IApplication, {
|
|
117
|
+
userId: string;
|
|
118
|
+
}, Record<string, unknown>, void> {
|
|
119
|
+
/**
|
|
120
|
+
* event name
|
|
121
|
+
*/
|
|
93
122
|
readonly name: 'Login';
|
|
123
|
+
/**
|
|
124
|
+
* scripting object from where the event is fired
|
|
125
|
+
*/
|
|
94
126
|
readonly objectId: 'Application';
|
|
127
|
+
/**
|
|
128
|
+
* event does not require feedback from listeners
|
|
129
|
+
*/
|
|
95
130
|
readonly requiresFeedback: false;
|
|
96
131
|
}
|
|
97
132
|
/**
|
|
98
133
|
* event fired when an action is completed. actions are executed through the performAction method
|
|
99
134
|
*/
|
|
100
|
-
export interface
|
|
135
|
+
export interface IApplicationActionCompletedEvent extends IEvent<IApplication, {
|
|
136
|
+
name: string;
|
|
137
|
+
}, Record<string, unknown>, void> {
|
|
138
|
+
/**
|
|
139
|
+
* event name
|
|
140
|
+
*/
|
|
101
141
|
readonly name: 'ActionCompleted';
|
|
142
|
+
/**
|
|
143
|
+
* scripting object from where the event is fired
|
|
144
|
+
*/
|
|
102
145
|
readonly objectId: 'Application';
|
|
146
|
+
/**
|
|
147
|
+
* event does not require feedback from listeners
|
|
148
|
+
*/
|
|
103
149
|
readonly requiresFeedback: false;
|
|
104
150
|
}
|
|
105
151
|
/**
|
|
@@ -109,11 +155,11 @@ export interface IApplication extends IScriptingObject {
|
|
|
109
155
|
/**
|
|
110
156
|
* notifies user login
|
|
111
157
|
*/
|
|
112
|
-
readonly Login:
|
|
158
|
+
readonly Login: IApplicationLoginEvent;
|
|
113
159
|
/**
|
|
114
160
|
* notifies action completion
|
|
115
161
|
*/
|
|
116
|
-
readonly ActionCompleted:
|
|
162
|
+
readonly ActionCompleted: IApplicationActionCompletedEvent;
|
|
117
163
|
/**
|
|
118
164
|
* Gets descriptor for the Application
|
|
119
165
|
*
|
|
@@ -216,19 +262,3 @@ export interface IApplication extends IScriptingObject {
|
|
|
216
262
|
*/
|
|
217
263
|
log(message: string, logLevel: LogLevel): Promise<void>;
|
|
218
264
|
}
|
|
219
|
-
/**
|
|
220
|
-
* event handler that handles user login event
|
|
221
|
-
*
|
|
222
|
-
* @param userId unique identifier of the user
|
|
223
|
-
*/
|
|
224
|
-
export declare type ApplicationLoginListener = Listener<IApplication, {
|
|
225
|
-
userId: string;
|
|
226
|
-
}, Record<string, unknown>, void>;
|
|
227
|
-
/**
|
|
228
|
-
* event handler that handles action completed event
|
|
229
|
-
*
|
|
230
|
-
* @param name action name
|
|
231
|
-
*/
|
|
232
|
-
export declare type ApplicationActionCompletedListener = Listener<IApplication, {
|
|
233
|
-
name: string;
|
|
234
|
-
}, Record<string, unknown>, void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEvent
|
|
1
|
+
import { IEvent } from '../event.js';
|
|
2
2
|
import { IScriptingObject } from '../scriptingObject.js';
|
|
3
3
|
export declare type FormDescriptor = {
|
|
4
4
|
id: string;
|
|
@@ -7,17 +7,39 @@ export declare type FormDescriptor = {
|
|
|
7
7
|
/**
|
|
8
8
|
* event to notify form load operation
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface IFormLoadEvent extends IEvent<IForm, {
|
|
11
|
+
id: string;
|
|
12
|
+
}, Record<string, unknown>, void> {
|
|
13
|
+
/**
|
|
14
|
+
* event name
|
|
15
|
+
*/
|
|
11
16
|
readonly name: 'Load';
|
|
17
|
+
/**
|
|
18
|
+
* scripting object from where the event is fired
|
|
19
|
+
*/
|
|
12
20
|
readonly objectId: 'Form';
|
|
21
|
+
/**
|
|
22
|
+
* event does not require feedback from listeners
|
|
23
|
+
*/
|
|
13
24
|
readonly requiresFeedback: false;
|
|
14
25
|
}
|
|
15
26
|
/**
|
|
16
27
|
* event to notify form unload operation
|
|
17
28
|
*/
|
|
18
|
-
export interface
|
|
29
|
+
export interface IFormUnLoadEvent extends IEvent<IForm, {
|
|
30
|
+
id: string;
|
|
31
|
+
}, Record<string, unknown>, void> {
|
|
32
|
+
/**
|
|
33
|
+
* event name
|
|
34
|
+
*/
|
|
19
35
|
readonly name: 'UnLoad';
|
|
36
|
+
/**
|
|
37
|
+
* scripting object from where the event is fired
|
|
38
|
+
*/
|
|
20
39
|
readonly objectId: 'Form';
|
|
40
|
+
/**
|
|
41
|
+
* event does not require feedback from listeners
|
|
42
|
+
*/
|
|
21
43
|
readonly requiresFeedback: false;
|
|
22
44
|
}
|
|
23
45
|
/**
|
|
@@ -27,11 +49,11 @@ export interface IForm extends IScriptingObject {
|
|
|
27
49
|
/**
|
|
28
50
|
* event fired when the form is loaded
|
|
29
51
|
*/
|
|
30
|
-
readonly Load:
|
|
52
|
+
readonly Load: IFormLoadEvent;
|
|
31
53
|
/**
|
|
32
54
|
* event fired when the form is unloaded
|
|
33
55
|
*/
|
|
34
|
-
readonly UnLoad:
|
|
56
|
+
readonly UnLoad: IFormUnLoadEvent;
|
|
35
57
|
/**
|
|
36
58
|
* get metadata of the form
|
|
37
59
|
*
|
|
@@ -46,19 +68,3 @@ export interface IForm extends IScriptingObject {
|
|
|
46
68
|
*/
|
|
47
69
|
getControl(id: string): Promise<unknown>;
|
|
48
70
|
}
|
|
49
|
-
/**
|
|
50
|
-
* event handler for form load event
|
|
51
|
-
*
|
|
52
|
-
* @param id unique id of the form that is loaded
|
|
53
|
-
*/
|
|
54
|
-
export declare type FormLoadListener = Listener<IForm, {
|
|
55
|
-
id: string;
|
|
56
|
-
}, Record<string, unknown>, void>;
|
|
57
|
-
/**
|
|
58
|
-
* event handler for form unload event
|
|
59
|
-
*
|
|
60
|
-
* @param id unique id of the form that is unloaded
|
|
61
|
-
*/
|
|
62
|
-
export declare type FormUnLoadListener = Listener<IForm, {
|
|
63
|
-
id: string;
|
|
64
|
-
}, Record<string, unknown>, void>;
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { IEvent
|
|
1
|
+
import { IEvent } from '../event.js';
|
|
2
2
|
import { IScriptingObject } from '../scriptingObject.js';
|
|
3
3
|
/**
|
|
4
4
|
* event to notify change in global state
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface IGlobalChangeEvent extends IEvent<IGlobal, {
|
|
7
|
+
key: string;
|
|
8
|
+
}, Record<string, unknown>, void> {
|
|
9
|
+
/**
|
|
10
|
+
* event name
|
|
11
|
+
*/
|
|
7
12
|
readonly name: 'Change';
|
|
13
|
+
/**
|
|
14
|
+
* scripting object from where the event is fired
|
|
15
|
+
*/
|
|
8
16
|
readonly objectId: 'Global';
|
|
17
|
+
/**
|
|
18
|
+
* event does not require feedback from listeners
|
|
19
|
+
*/
|
|
9
20
|
readonly requiresFeedback: false;
|
|
10
21
|
}
|
|
11
22
|
/**
|
|
@@ -28,7 +39,7 @@ export interface IGlobal extends IScriptingObject {
|
|
|
28
39
|
/**
|
|
29
40
|
* event fired when the global state changes
|
|
30
41
|
*/
|
|
31
|
-
readonly Change:
|
|
42
|
+
readonly Change: IGlobalChangeEvent;
|
|
32
43
|
/**
|
|
33
44
|
* set a value in the global store
|
|
34
45
|
*
|
|
@@ -44,11 +55,3 @@ export interface IGlobal extends IScriptingObject {
|
|
|
44
55
|
*/
|
|
45
56
|
get(key: string): Promise<unknown>;
|
|
46
57
|
}
|
|
47
|
-
/**
|
|
48
|
-
* event handler for global state change event
|
|
49
|
-
*
|
|
50
|
-
* @param key name of the key for which the value changed
|
|
51
|
-
*/
|
|
52
|
-
export declare type GlobalChangeListener = Listener<IGlobal, {
|
|
53
|
-
key: string;
|
|
54
|
-
}, Record<string, unknown>, void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEvent
|
|
1
|
+
import { IEvent } from '../event.js';
|
|
2
2
|
import { IScriptingObject } from '../scriptingObject.js';
|
|
3
3
|
/**
|
|
4
4
|
* option name and its value
|
|
@@ -26,73 +26,162 @@ export declare enum LoanLevelActions {
|
|
|
26
26
|
/**
|
|
27
27
|
* event to notify loan precommit operation
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface ILoanPreCommitEvent extends IEvent<ILoan, {
|
|
30
|
+
cause: string;
|
|
31
|
+
}, Record<string, unknown>, boolean> {
|
|
32
|
+
/**
|
|
33
|
+
* event name
|
|
34
|
+
*/
|
|
30
35
|
readonly name: 'PreCommit';
|
|
36
|
+
/**
|
|
37
|
+
* scripting object from where the event is fired
|
|
38
|
+
*/
|
|
31
39
|
readonly objectId: 'Loan';
|
|
40
|
+
/**
|
|
41
|
+
* event requires feedback from listeners
|
|
42
|
+
*/
|
|
32
43
|
readonly requiresFeedback: true;
|
|
33
44
|
}
|
|
34
45
|
/**
|
|
35
46
|
* event to notify loan committed operation
|
|
36
47
|
*/
|
|
37
|
-
export interface
|
|
48
|
+
export interface ILoanCommittedEvent extends IEvent<ILoan, {
|
|
49
|
+
cause: string;
|
|
50
|
+
}, Record<string, unknown>, void> {
|
|
51
|
+
/**
|
|
52
|
+
* event name
|
|
53
|
+
*/
|
|
38
54
|
readonly name: 'Committed';
|
|
55
|
+
/**
|
|
56
|
+
* scripting object from where the event is fired
|
|
57
|
+
*/
|
|
39
58
|
readonly objectId: 'Loan';
|
|
59
|
+
/**
|
|
60
|
+
* event does not require feedback from listeners
|
|
61
|
+
*/
|
|
40
62
|
readonly requiresFeedback: false;
|
|
41
63
|
}
|
|
42
64
|
/**
|
|
43
65
|
* event to notify loan change operation
|
|
44
66
|
*/
|
|
45
|
-
export interface
|
|
67
|
+
export interface ILoanChangeEvent extends IEvent<ILoan, Record<string, never>, Record<string, unknown>, void> {
|
|
68
|
+
/**
|
|
69
|
+
* event name
|
|
70
|
+
*/
|
|
46
71
|
readonly name: 'Chanage';
|
|
72
|
+
/**
|
|
73
|
+
* scripting object from where the event is fired
|
|
74
|
+
*/
|
|
47
75
|
readonly objectId: 'Loan';
|
|
76
|
+
/**
|
|
77
|
+
* event does not require feedback from listeners
|
|
78
|
+
*/
|
|
48
79
|
readonly requiresFeedback: false;
|
|
49
80
|
}
|
|
50
81
|
/**
|
|
51
82
|
* event to notify loan sync operation
|
|
52
83
|
*/
|
|
53
|
-
export interface
|
|
84
|
+
export interface ILoanSyncEvent extends IEvent<ILoan, Record<string, never>, Record<string, unknown>, void> {
|
|
85
|
+
/**
|
|
86
|
+
* event name
|
|
87
|
+
*/
|
|
54
88
|
readonly name: 'Sync';
|
|
89
|
+
/**
|
|
90
|
+
* scripting object from where the event is fired
|
|
91
|
+
*/
|
|
55
92
|
readonly objectId: 'Loan';
|
|
93
|
+
/**
|
|
94
|
+
* event does not require feedback from listeners
|
|
95
|
+
*/
|
|
56
96
|
readonly requiresFeedback: false;
|
|
57
97
|
}
|
|
58
98
|
/**
|
|
59
99
|
* event to notify loan open operation
|
|
60
100
|
*/
|
|
61
|
-
export interface
|
|
101
|
+
export interface ILoanOpenEvent extends IEvent<ILoan, Record<string, never>, Record<string, unknown>, void> {
|
|
102
|
+
/**
|
|
103
|
+
* event name
|
|
104
|
+
*/
|
|
62
105
|
readonly name: 'Open';
|
|
106
|
+
/**
|
|
107
|
+
* scripting object from where the event is fired
|
|
108
|
+
*/
|
|
63
109
|
readonly objectId: 'Loan';
|
|
110
|
+
/**
|
|
111
|
+
* event does not require feedback from listeners
|
|
112
|
+
*/
|
|
64
113
|
readonly requiresFeedback: false;
|
|
65
114
|
}
|
|
66
115
|
/**
|
|
67
116
|
* event to notify loan close operation
|
|
68
117
|
*/
|
|
69
|
-
export interface
|
|
118
|
+
export interface ILoanCloseEvent extends IEvent<ILoan, Record<string, never>, Record<string, unknown>, void> {
|
|
119
|
+
/**
|
|
120
|
+
* event name
|
|
121
|
+
*/
|
|
70
122
|
readonly name: 'Close';
|
|
123
|
+
/**
|
|
124
|
+
* scripting object from where the event is fired
|
|
125
|
+
*/
|
|
71
126
|
readonly objectId: 'Loan';
|
|
127
|
+
/**
|
|
128
|
+
* event does not require feedback from listeners
|
|
129
|
+
*/
|
|
72
130
|
readonly requiresFeedback: false;
|
|
73
131
|
}
|
|
74
132
|
/**
|
|
75
133
|
* event to notify loan milestone completed operation
|
|
76
134
|
*/
|
|
77
|
-
export interface
|
|
135
|
+
export interface ILoanMilestoneCompletedEvent extends IEvent<ILoan, {
|
|
136
|
+
name: string;
|
|
137
|
+
}, Record<string, unknown>, void> {
|
|
138
|
+
/**
|
|
139
|
+
* event name
|
|
140
|
+
*/
|
|
78
141
|
readonly name: 'MilestoneCompleted';
|
|
142
|
+
/**
|
|
143
|
+
* scripting object from where the event is fired
|
|
144
|
+
*/
|
|
79
145
|
readonly objectId: 'Loan';
|
|
146
|
+
/**
|
|
147
|
+
* event does not require feedback from listeners
|
|
148
|
+
*/
|
|
80
149
|
readonly requiresFeedback: false;
|
|
81
150
|
}
|
|
82
151
|
/**
|
|
83
152
|
* event to notify loan pre milestone complete operation
|
|
84
153
|
*/
|
|
85
|
-
export interface
|
|
154
|
+
export interface ILoanPreMilestoneCompleteEvent extends IEvent<ILoan, {
|
|
155
|
+
name: string;
|
|
156
|
+
}, Record<string, unknown>, boolean> {
|
|
157
|
+
/**
|
|
158
|
+
* event name
|
|
159
|
+
*/
|
|
86
160
|
readonly name: 'PreMilestoneComplete';
|
|
161
|
+
/**
|
|
162
|
+
* scripting object from where the event is fired
|
|
163
|
+
*/
|
|
87
164
|
readonly objectId: 'Loan';
|
|
165
|
+
/**
|
|
166
|
+
* event requires feedback from listeners
|
|
167
|
+
*/
|
|
88
168
|
readonly requiresFeedback: true;
|
|
89
169
|
}
|
|
90
170
|
/**
|
|
91
171
|
* event to notify loan application selected operation
|
|
92
172
|
*/
|
|
93
|
-
export interface
|
|
173
|
+
export interface ILoanApplicationSelectedEvent extends IEvent<ILoan, Record<string, never>, Record<string, unknown>, void> {
|
|
174
|
+
/**
|
|
175
|
+
* event name
|
|
176
|
+
*/
|
|
94
177
|
readonly name: 'ApplicationSelected';
|
|
178
|
+
/**
|
|
179
|
+
* scripting object from where the event is fired
|
|
180
|
+
*/
|
|
95
181
|
readonly objectId: 'Loan';
|
|
182
|
+
/**
|
|
183
|
+
* event does not require feedback from listeners
|
|
184
|
+
*/
|
|
96
185
|
readonly requiresFeedback: false;
|
|
97
186
|
}
|
|
98
187
|
/**
|
|
@@ -102,39 +191,39 @@ export interface ILoan extends IScriptingObject {
|
|
|
102
191
|
/**
|
|
103
192
|
* event fired when the loan is ready to commit
|
|
104
193
|
*/
|
|
105
|
-
readonly PreCommit:
|
|
194
|
+
readonly PreCommit: ILoanPreCommitEvent;
|
|
106
195
|
/**
|
|
107
196
|
* event fired when the loan is committed
|
|
108
197
|
*/
|
|
109
|
-
readonly Committed:
|
|
198
|
+
readonly Committed: ILoanCommittedEvent;
|
|
110
199
|
/**
|
|
111
200
|
* event fired when the loan is changed
|
|
112
201
|
*/
|
|
113
|
-
readonly Change:
|
|
202
|
+
readonly Change: ILoanChangeEvent;
|
|
114
203
|
/**
|
|
115
204
|
* event fired when the loan is synced
|
|
116
205
|
*/
|
|
117
|
-
readonly Sync:
|
|
206
|
+
readonly Sync: ILoanSyncEvent;
|
|
118
207
|
/**
|
|
119
208
|
* event fired when the loan is opened
|
|
120
209
|
*/
|
|
121
|
-
readonly Open:
|
|
210
|
+
readonly Open: ILoanOpenEvent;
|
|
122
211
|
/**
|
|
123
212
|
* event fired when the loan is closed
|
|
124
213
|
*/
|
|
125
|
-
readonly Close:
|
|
214
|
+
readonly Close: ILoanCloseEvent;
|
|
126
215
|
/**
|
|
127
216
|
* event fired when the loan milestone is completed
|
|
128
217
|
*/
|
|
129
|
-
readonly MilestoneCompleted:
|
|
218
|
+
readonly MilestoneCompleted: ILoanMilestoneCompletedEvent;
|
|
130
219
|
/**
|
|
131
220
|
* event fired when the loan is ready to complete milestone
|
|
132
221
|
*/
|
|
133
|
-
readonly PreMilestoneComplete:
|
|
222
|
+
readonly PreMilestoneComplete: ILoanPreMilestoneCompleteEvent;
|
|
134
223
|
/**
|
|
135
224
|
* event fired when the loan application is selected
|
|
136
225
|
*/
|
|
137
|
-
readonly ApplicationSelected:
|
|
226
|
+
readonly ApplicationSelected: ILoanApplicationSelectedEvent;
|
|
138
227
|
/**
|
|
139
228
|
* Get complete Loan object
|
|
140
229
|
*
|
|
@@ -253,58 +342,3 @@ export interface ILoan extends IScriptingObject {
|
|
|
253
342
|
getCollection(name: string): Promise<Record<string, string>>;
|
|
254
343
|
getLockSnapshot(): Promise<Record<string, string>>;
|
|
255
344
|
}
|
|
256
|
-
/**
|
|
257
|
-
* event handler for loan precommit event
|
|
258
|
-
*
|
|
259
|
-
* @param cause cause of precommit event
|
|
260
|
-
* @returns true if precommit is allowed, false otherwise
|
|
261
|
-
*/
|
|
262
|
-
export declare type LoanPreCommitListener = Listener<ILoan, {
|
|
263
|
-
cause: string;
|
|
264
|
-
}, Record<string, unknown>, boolean>;
|
|
265
|
-
/**
|
|
266
|
-
* event handler for loan commited event
|
|
267
|
-
*
|
|
268
|
-
* @param cause cause of commit event
|
|
269
|
-
*/
|
|
270
|
-
export declare type LoanCommittedListener = Listener<ILoan, {
|
|
271
|
-
cause: string;
|
|
272
|
-
}, Record<string, unknown>, void>;
|
|
273
|
-
/**
|
|
274
|
-
* event handler for loan data change event
|
|
275
|
-
*/
|
|
276
|
-
export declare type LoanChangeListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
|
|
277
|
-
/**
|
|
278
|
-
* event handler for loan sync event
|
|
279
|
-
*/
|
|
280
|
-
export declare type LoanSyncListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
|
|
281
|
-
/**
|
|
282
|
-
* event handler for loan open event
|
|
283
|
-
*/
|
|
284
|
-
export declare type LoanOpenListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
|
|
285
|
-
/**
|
|
286
|
-
* event handler for loan close event
|
|
287
|
-
*
|
|
288
|
-
* @returns true if loan close is allowed, false otherwise
|
|
289
|
-
*/
|
|
290
|
-
export declare type LoanCloseListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
|
|
291
|
-
/**
|
|
292
|
-
* event handler for loan milestone completed event
|
|
293
|
-
*
|
|
294
|
-
* @param name milestone name
|
|
295
|
-
*/
|
|
296
|
-
export declare type LoanMilestoneCompletedListener = Listener<ILoan, {
|
|
297
|
-
name: string;
|
|
298
|
-
}, Record<string, unknown>, void>;
|
|
299
|
-
/**
|
|
300
|
-
* event handler for loan pre milestone complete event
|
|
301
|
-
*
|
|
302
|
-
* @returns true if milestone complete is allowed, false otherwise
|
|
303
|
-
*/
|
|
304
|
-
export declare type LoanPreMilestoneCompleteListener = Listener<ILoan, {
|
|
305
|
-
name: string;
|
|
306
|
-
}, Record<string, unknown>, boolean>;
|
|
307
|
-
/**
|
|
308
|
-
* event handler for loan application selected event
|
|
309
|
-
*/
|
|
310
|
-
export declare type LoanApplicationSelectedListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { IEvent
|
|
1
|
+
import { IEvent } from '../event.js';
|
|
2
2
|
import { IScriptingObject } from '../scriptingObject.js';
|
|
3
3
|
/**
|
|
4
4
|
* Module unloading event
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface IModuleUnloadingEvent extends IEvent<IModule, Record<string, never>, Record<string, unknown>, boolean> {
|
|
7
|
+
/**
|
|
8
|
+
* event name
|
|
9
|
+
*/
|
|
7
10
|
readonly name: 'Unloading';
|
|
11
|
+
/**
|
|
12
|
+
* scripting object from where the event was triggered
|
|
13
|
+
*/
|
|
8
14
|
readonly objectId: 'Module';
|
|
15
|
+
/**
|
|
16
|
+
* response needed from event listeners
|
|
17
|
+
*/
|
|
9
18
|
readonly requiresFeedback: true;
|
|
10
19
|
}
|
|
11
20
|
/**
|
|
@@ -19,7 +28,7 @@ export interface IModule extends IScriptingObject {
|
|
|
19
28
|
*
|
|
20
29
|
* @returns true if the module can be unloaded, false otherwise
|
|
21
30
|
*/
|
|
22
|
-
readonly Unloading:
|
|
31
|
+
readonly Unloading: IModuleUnloadingEvent;
|
|
23
32
|
/**
|
|
24
33
|
* get microapp module-specific capabilities or settings defined by the host application. Helps to define the style and/or behavior of the module
|
|
25
34
|
*
|
|
@@ -39,10 +48,3 @@ export interface IModule extends IScriptingObject {
|
|
|
39
48
|
*/
|
|
40
49
|
unload(): Promise<void>;
|
|
41
50
|
}
|
|
42
|
-
/**
|
|
43
|
-
* event handler that handles module unload event
|
|
44
|
-
*
|
|
45
|
-
* @param id unique id of the app that is being unloaded
|
|
46
|
-
* @returns true if the module can be unloaded, false otherwise
|
|
47
|
-
*/
|
|
48
|
-
export declare type ModuleUnLoadingListener = Listener<IModule, Record<string, never>, Record<string, unknown>, boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BreakPoint } from '@elliemae/pui-theme';
|
|
2
|
-
import { IEvent
|
|
2
|
+
import { IEvent } from '../event.js';
|
|
3
3
|
import { IScriptingObject } from '../scriptingObject.js';
|
|
4
4
|
/**
|
|
5
5
|
* window viewport size
|
|
@@ -11,17 +11,39 @@ export declare type ViewportSize = {
|
|
|
11
11
|
/**
|
|
12
12
|
* event to notify window viewport resize operation
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface IViewResizeEvent extends IEvent<IView, {
|
|
15
|
+
entries: ResizeObserverEntry;
|
|
16
|
+
}, Record<string, unknown>, void> {
|
|
17
|
+
/**
|
|
18
|
+
* event name
|
|
19
|
+
*/
|
|
15
20
|
readonly name: 'Resize';
|
|
21
|
+
/**
|
|
22
|
+
* scripting object from where the event is fired
|
|
23
|
+
*/
|
|
16
24
|
readonly objectId: 'View';
|
|
25
|
+
/**
|
|
26
|
+
* event does not require feedback from listeners
|
|
27
|
+
*/
|
|
17
28
|
readonly requiresFeedback: false;
|
|
18
29
|
}
|
|
19
30
|
/**
|
|
20
31
|
* event to notify window viewport breakpoint change
|
|
21
32
|
*/
|
|
22
|
-
export interface
|
|
33
|
+
export interface IViewBreakpointChangeEvent extends IEvent<IView, {
|
|
34
|
+
breakpoint: BreakPoint;
|
|
35
|
+
}, Record<string, unknown>, void> {
|
|
36
|
+
/**
|
|
37
|
+
* event name
|
|
38
|
+
*/
|
|
23
39
|
readonly name: 'BreakpointChange';
|
|
40
|
+
/**
|
|
41
|
+
* scripting object from where the event is fired
|
|
42
|
+
*/
|
|
24
43
|
readonly objectId: 'View';
|
|
44
|
+
/**
|
|
45
|
+
* event does not require feedback from listeners
|
|
46
|
+
*/
|
|
25
47
|
readonly requiresFeedback: false;
|
|
26
48
|
}
|
|
27
49
|
/**
|
|
@@ -31,11 +53,11 @@ export interface IView extends IScriptingObject {
|
|
|
31
53
|
/**
|
|
32
54
|
* event fired when the window is resized
|
|
33
55
|
*/
|
|
34
|
-
readonly Resize:
|
|
56
|
+
readonly Resize: IViewResizeEvent;
|
|
35
57
|
/**
|
|
36
58
|
* event fired when the window breakpoint changes
|
|
37
59
|
*/
|
|
38
|
-
readonly BreakpointChange:
|
|
60
|
+
readonly BreakpointChange: IViewBreakpointChangeEvent;
|
|
39
61
|
/**
|
|
40
62
|
* Get the current breakpoint of the parent window
|
|
41
63
|
*/
|
|
@@ -45,19 +67,3 @@ export interface IView extends IScriptingObject {
|
|
|
45
67
|
*/
|
|
46
68
|
getViewPortSize(): Promise<ViewportSize>;
|
|
47
69
|
}
|
|
48
|
-
/**
|
|
49
|
-
* parent window resize event handler
|
|
50
|
-
*
|
|
51
|
-
* @param entries details about the resize event
|
|
52
|
-
*/
|
|
53
|
-
export declare type ResizeEventListener = Listener<IView, {
|
|
54
|
-
entires: ResizeObserverEntry;
|
|
55
|
-
}, Record<string, unknown>, void>;
|
|
56
|
-
/**
|
|
57
|
-
* parent window breakpoint change event handler
|
|
58
|
-
*
|
|
59
|
-
* @param breakpoint current breakpoint of the parent window
|
|
60
|
-
*/
|
|
61
|
-
export declare type BreakpointChangeEventListener = Listener<IView, {
|
|
62
|
-
breakpoint: BreakPoint;
|
|
63
|
-
}, Record<string, unknown>, void>;
|