@elliemae/pui-scripting-object 1.5.0 → 1.6.1
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 +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/types/auth.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/loan.d.ts +14 -3
- package/dist/types/userAccessRights.d.ts +138 -138
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -26,3 +26,4 @@ __reExport(lib_exports, require("./script.js"), module.exports);
|
|
|
26
26
|
__reExport(lib_exports, require("./session.js"), module.exports);
|
|
27
27
|
__reExport(lib_exports, require("./transaction.js"), module.exports);
|
|
28
28
|
__reExport(lib_exports, require("./transactiontemplate.js"), module.exports);
|
|
29
|
+
__reExport(lib_exports, require("./userAccessRights.js"), module.exports);
|
package/dist/esm/index.js
CHANGED
package/dist/types/auth.d.ts
CHANGED
|
@@ -33,5 +33,11 @@ export interface IAuth {
|
|
|
33
33
|
createAuthCode(clientId: string): Promise<string>;
|
|
34
34
|
getAccessToken(appInfo: PluginInfo): Promise<TokenInfo>;
|
|
35
35
|
getUser(): Promise<User>;
|
|
36
|
+
/**
|
|
37
|
+
* Get access rights for the current user
|
|
38
|
+
*
|
|
39
|
+
* @returns user access rights
|
|
40
|
+
* @throws {Error} if operation fails
|
|
41
|
+
*/
|
|
36
42
|
getUserAccessRights(): Promise<UserAccessRights>;
|
|
37
43
|
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/loan.d.ts
CHANGED
|
@@ -11,12 +11,15 @@ export declare type FieldOptions = {
|
|
|
11
11
|
*/
|
|
12
12
|
value: string;
|
|
13
13
|
};
|
|
14
|
+
export declare type SetFieldResponse = {
|
|
15
|
+
failed: string[];
|
|
16
|
+
};
|
|
14
17
|
/**
|
|
15
18
|
* The Loan object provides methods for interacting with an open loan in the application's editor screen(s).
|
|
16
19
|
*/
|
|
17
20
|
export interface ILoan {
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* Get entire Loan object
|
|
20
23
|
*
|
|
21
24
|
* @returns v3 Loan Object
|
|
22
25
|
*
|
|
@@ -28,9 +31,10 @@ export interface ILoan {
|
|
|
28
31
|
all(): Promise<Record<string, any>>;
|
|
29
32
|
apply(loan: Record<string, string>): Promise<void>;
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
34
|
+
* Commit all pending changes for the current loan
|
|
32
35
|
*
|
|
33
36
|
* @returns v3 Loan Object
|
|
37
|
+
* @throws {Error} if the loan is not in a valid state or if there are business rule violations
|
|
34
38
|
*
|
|
35
39
|
* #### Product Compatibility:
|
|
36
40
|
* | | Encompass | Encompass Web | TPO | Consumer Connect |
|
|
@@ -80,7 +84,14 @@ export interface ILoan {
|
|
|
80
84
|
*/
|
|
81
85
|
getFieldOptions(fieldIds: string[]): Promise<Record<string, FieldOptions[]>>;
|
|
82
86
|
getFields(ids: string[]): Promise<Record<string, string>>;
|
|
83
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Set the values of one or more fields on the Loan.
|
|
89
|
+
*
|
|
90
|
+
* @param fields list of field ids and their values
|
|
91
|
+
* @returns list of field ids that failed to set
|
|
92
|
+
* @throws {Error} if operation fails due to network error
|
|
93
|
+
*/
|
|
94
|
+
setFields(fields: Record<string, string>): Promise<SetFieldResponse>;
|
|
84
95
|
merge(): Promise<void>;
|
|
85
96
|
isReadOnly(): Promise<boolean>;
|
|
86
97
|
applyLock(fieldId: string, lock: boolean): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare type UserAccessRights = {
|
|
2
2
|
access: string[];
|
|
3
3
|
additionalServices: AdditionalServices;
|
|
4
4
|
ausTracking: AusTracking;
|
|
@@ -61,301 +61,301 @@ export interface UserAccessRights {
|
|
|
61
61
|
loConnectTasks: LoConnectTasks;
|
|
62
62
|
encompassWebServices: EncompassWebServices;
|
|
63
63
|
underwritingCenter: UnderwritingCenter;
|
|
64
|
-
}
|
|
65
|
-
export
|
|
64
|
+
};
|
|
65
|
+
export declare type AdditionalServices = {
|
|
66
66
|
access: boolean;
|
|
67
67
|
rights: string[];
|
|
68
|
-
}
|
|
69
|
-
export
|
|
68
|
+
};
|
|
69
|
+
export declare type AusTracking = {
|
|
70
70
|
access: boolean;
|
|
71
71
|
rights: string[];
|
|
72
|
-
}
|
|
73
|
-
export
|
|
72
|
+
};
|
|
73
|
+
export declare type BorrowerContacts = {
|
|
74
74
|
access: boolean;
|
|
75
75
|
rights: string[];
|
|
76
|
-
}
|
|
77
|
-
export
|
|
76
|
+
};
|
|
77
|
+
export declare type BusinessContacts = {
|
|
78
78
|
access: boolean;
|
|
79
79
|
rights: string[];
|
|
80
|
-
}
|
|
81
|
-
export
|
|
80
|
+
};
|
|
81
|
+
export declare type BusinessRules = {
|
|
82
82
|
access: boolean;
|
|
83
83
|
rights: string[];
|
|
84
|
-
}
|
|
85
|
-
export
|
|
84
|
+
};
|
|
85
|
+
export declare type CompanyUserSetup = {
|
|
86
86
|
access: boolean;
|
|
87
87
|
rights: string[];
|
|
88
|
-
}
|
|
89
|
-
export
|
|
88
|
+
};
|
|
89
|
+
export declare type Contacts = {
|
|
90
90
|
access: boolean;
|
|
91
91
|
rights: string[];
|
|
92
|
-
}
|
|
93
|
-
export
|
|
92
|
+
};
|
|
93
|
+
export declare type ContactSetup = {
|
|
94
94
|
access: boolean;
|
|
95
95
|
rights: string[];
|
|
96
|
-
}
|
|
97
|
-
export
|
|
96
|
+
};
|
|
97
|
+
export declare type Dashboard = {
|
|
98
98
|
access: boolean;
|
|
99
99
|
rights: string[];
|
|
100
|
-
}
|
|
101
|
-
export
|
|
100
|
+
};
|
|
101
|
+
export declare type DisclosureTracking = {
|
|
102
102
|
access: boolean;
|
|
103
103
|
rights: string[];
|
|
104
|
-
}
|
|
105
|
-
export
|
|
104
|
+
};
|
|
105
|
+
export declare type DocsSetup = {
|
|
106
106
|
access: boolean;
|
|
107
107
|
rights: string[];
|
|
108
|
-
}
|
|
109
|
-
export
|
|
108
|
+
};
|
|
109
|
+
export declare type Documents = {
|
|
110
110
|
access: boolean;
|
|
111
111
|
rights: string[];
|
|
112
112
|
protectedDocuments: string[];
|
|
113
113
|
unprotectedDocuments: string[];
|
|
114
114
|
unassignedFiles: string[];
|
|
115
|
-
}
|
|
116
|
-
export
|
|
115
|
+
};
|
|
116
|
+
export declare type DynamicDataManagement = {
|
|
117
117
|
access: boolean;
|
|
118
118
|
rights: string[];
|
|
119
|
-
}
|
|
120
|
-
export
|
|
119
|
+
};
|
|
120
|
+
export declare type EDisclosures = {
|
|
121
121
|
access: boolean;
|
|
122
122
|
rights: string[];
|
|
123
|
-
}
|
|
124
|
-
export
|
|
123
|
+
};
|
|
124
|
+
export declare type EFolderHistory = {
|
|
125
125
|
access: boolean;
|
|
126
|
-
}
|
|
127
|
-
export
|
|
126
|
+
};
|
|
127
|
+
export declare type EFolderSetup = {
|
|
128
128
|
access: boolean;
|
|
129
129
|
rights: string[];
|
|
130
|
-
}
|
|
131
|
-
export
|
|
130
|
+
};
|
|
131
|
+
export declare type EVault = {
|
|
132
132
|
eVaultPortal: EVaultPortal;
|
|
133
|
-
}
|
|
134
|
-
export
|
|
133
|
+
};
|
|
134
|
+
export declare type EVaultPortal = {
|
|
135
135
|
access: boolean;
|
|
136
136
|
rights: string[];
|
|
137
|
-
}
|
|
138
|
-
export
|
|
137
|
+
};
|
|
138
|
+
export declare type FileContacts = {
|
|
139
139
|
access: boolean;
|
|
140
140
|
rights: string[];
|
|
141
141
|
grantWriteAccess: GrantWriteAccess;
|
|
142
|
-
}
|
|
143
|
-
export
|
|
142
|
+
};
|
|
143
|
+
export declare type GrantWriteAccess = {
|
|
144
144
|
access: boolean;
|
|
145
145
|
loanTeam: LoanTeam[];
|
|
146
|
-
}
|
|
147
|
-
export
|
|
146
|
+
};
|
|
147
|
+
export declare type LoanTeam = {
|
|
148
148
|
role: Role;
|
|
149
|
-
}
|
|
150
|
-
export
|
|
149
|
+
};
|
|
150
|
+
export declare type Role = {
|
|
151
151
|
entityId: string;
|
|
152
152
|
entityName: string;
|
|
153
153
|
entityType: string;
|
|
154
|
-
}
|
|
155
|
-
export
|
|
154
|
+
};
|
|
155
|
+
export declare type Form = {
|
|
156
156
|
entityId: string;
|
|
157
157
|
entityName: string;
|
|
158
158
|
entityType: string;
|
|
159
|
-
}
|
|
160
|
-
export
|
|
159
|
+
};
|
|
160
|
+
export declare type GseServices = {
|
|
161
161
|
access: boolean;
|
|
162
162
|
rights: string[];
|
|
163
|
-
}
|
|
164
|
-
export
|
|
163
|
+
};
|
|
164
|
+
export declare type ImportLoan = {
|
|
165
165
|
entityId: string;
|
|
166
166
|
entityType: string;
|
|
167
|
-
}
|
|
168
|
-
export
|
|
167
|
+
};
|
|
168
|
+
export declare type Service = {
|
|
169
169
|
category: string;
|
|
170
170
|
accessSetting: string;
|
|
171
171
|
defaultAccess: string;
|
|
172
|
-
}
|
|
173
|
-
export
|
|
172
|
+
};
|
|
173
|
+
export declare type LoanSetup = {
|
|
174
174
|
access: boolean;
|
|
175
175
|
rights: string[];
|
|
176
|
-
}
|
|
177
|
-
export
|
|
176
|
+
};
|
|
177
|
+
export declare type ManageServiceProviders = {
|
|
178
178
|
accessSetting: string;
|
|
179
179
|
rights: string[];
|
|
180
|
-
}
|
|
181
|
-
export
|
|
180
|
+
};
|
|
181
|
+
export declare type MilestoneWorkflowManagement = {
|
|
182
182
|
acceptFiles: AcceptFile[];
|
|
183
183
|
returnFiles: ReturnFile[];
|
|
184
184
|
changeExpectedDate: ChangeExpectedDate[];
|
|
185
185
|
finishMilestones: FinishMilestone[];
|
|
186
186
|
assignLoanTeamMembers: AssignLoanTeamMember[];
|
|
187
187
|
editComments: EditComment[];
|
|
188
|
-
}
|
|
189
|
-
export
|
|
188
|
+
};
|
|
189
|
+
export declare type AcceptFile = {
|
|
190
190
|
entityId: string;
|
|
191
191
|
entityName: string;
|
|
192
192
|
entityType: string;
|
|
193
|
-
}
|
|
194
|
-
export
|
|
193
|
+
};
|
|
194
|
+
export declare type ReturnFile = {
|
|
195
195
|
entityId: string;
|
|
196
196
|
entityName: string;
|
|
197
197
|
entityType: string;
|
|
198
|
-
}
|
|
199
|
-
export
|
|
198
|
+
};
|
|
199
|
+
export declare type ChangeExpectedDate = {
|
|
200
200
|
entityId: string;
|
|
201
201
|
entityName: string;
|
|
202
202
|
entityType: string;
|
|
203
|
-
}
|
|
204
|
-
export
|
|
203
|
+
};
|
|
204
|
+
export declare type FinishMilestone = {
|
|
205
205
|
entityId: string;
|
|
206
206
|
entityName: string;
|
|
207
207
|
entityType: string;
|
|
208
|
-
}
|
|
209
|
-
export
|
|
208
|
+
};
|
|
209
|
+
export declare type AssignLoanTeamMember = {
|
|
210
210
|
milestone: Milestone;
|
|
211
211
|
role?: Role2;
|
|
212
|
-
}
|
|
213
|
-
export
|
|
212
|
+
};
|
|
213
|
+
export declare type Milestone = {
|
|
214
214
|
entityId: string;
|
|
215
215
|
entityName: string;
|
|
216
216
|
entityType: string;
|
|
217
|
-
}
|
|
218
|
-
export
|
|
217
|
+
};
|
|
218
|
+
export declare type Role2 = {
|
|
219
219
|
entityId: string;
|
|
220
220
|
entityName: string;
|
|
221
221
|
entityType: string;
|
|
222
|
-
}
|
|
223
|
-
export
|
|
222
|
+
};
|
|
223
|
+
export declare type EditComment = {
|
|
224
224
|
entityId: string;
|
|
225
225
|
entityName: string;
|
|
226
226
|
entityType: string;
|
|
227
|
-
}
|
|
228
|
-
export
|
|
227
|
+
};
|
|
228
|
+
export declare type MoveLoans = {
|
|
229
229
|
access: boolean;
|
|
230
230
|
moveFrom: MoveFrom[];
|
|
231
231
|
moveTo: MoveTo[];
|
|
232
|
-
}
|
|
233
|
-
export
|
|
232
|
+
};
|
|
233
|
+
export declare type MoveFrom = {
|
|
234
234
|
entityId: string;
|
|
235
235
|
entityType: string;
|
|
236
|
-
}
|
|
237
|
-
export
|
|
236
|
+
};
|
|
237
|
+
export declare type MoveTo = {
|
|
238
238
|
entityId: string;
|
|
239
239
|
entityType: string;
|
|
240
|
-
}
|
|
241
|
-
export
|
|
240
|
+
};
|
|
241
|
+
export declare type PersonalTemplates = {
|
|
242
242
|
access: boolean;
|
|
243
243
|
rights: string[];
|
|
244
|
-
}
|
|
245
|
-
export
|
|
244
|
+
};
|
|
245
|
+
export declare type Pipeline = {
|
|
246
246
|
access: boolean;
|
|
247
247
|
pipelineTasks: string[];
|
|
248
248
|
pipelineViews: PipelineView[];
|
|
249
249
|
nonAccessibleColumns: any[];
|
|
250
|
-
}
|
|
251
|
-
export
|
|
250
|
+
};
|
|
251
|
+
export declare type PipelineView = {
|
|
252
252
|
entityId: string;
|
|
253
253
|
entityName: string;
|
|
254
254
|
entityType: string;
|
|
255
|
-
}
|
|
256
|
-
export
|
|
255
|
+
};
|
|
256
|
+
export declare type ExportServices = {
|
|
257
257
|
accessSetting: string;
|
|
258
258
|
defaultAccess: string;
|
|
259
|
-
}
|
|
260
|
-
export
|
|
259
|
+
};
|
|
260
|
+
export declare type PostClosingConditions = {
|
|
261
261
|
access: boolean;
|
|
262
262
|
rights: string[];
|
|
263
|
-
}
|
|
264
|
-
export
|
|
263
|
+
};
|
|
264
|
+
export declare type PreliminaryConditions = {
|
|
265
265
|
access: boolean;
|
|
266
266
|
rights: string[];
|
|
267
|
-
}
|
|
268
|
-
export
|
|
267
|
+
};
|
|
268
|
+
export declare type PurchaseConditions = {
|
|
269
269
|
access: boolean;
|
|
270
270
|
rights: string[];
|
|
271
|
-
}
|
|
272
|
-
export
|
|
271
|
+
};
|
|
272
|
+
export declare type Print = {
|
|
273
273
|
access: boolean;
|
|
274
274
|
rights: string[];
|
|
275
|
-
}
|
|
276
|
-
export
|
|
275
|
+
};
|
|
276
|
+
export declare type SecondarySetup = {
|
|
277
277
|
access: boolean;
|
|
278
278
|
rights: string[];
|
|
279
|
-
}
|
|
280
|
-
export
|
|
279
|
+
};
|
|
280
|
+
export declare type DeliveryConditions = {
|
|
281
281
|
access: boolean;
|
|
282
282
|
rights: string[];
|
|
283
|
-
}
|
|
284
|
-
export
|
|
283
|
+
};
|
|
284
|
+
export declare type SystemAdministration = {
|
|
285
285
|
access: boolean;
|
|
286
286
|
rights: string[];
|
|
287
|
-
}
|
|
288
|
-
export
|
|
287
|
+
};
|
|
288
|
+
export declare type TablesAndFees = {
|
|
289
289
|
access: boolean;
|
|
290
290
|
rights: string[];
|
|
291
|
-
}
|
|
292
|
-
export
|
|
291
|
+
};
|
|
292
|
+
export declare type Tool = {
|
|
293
293
|
entityName: string;
|
|
294
|
-
}
|
|
295
|
-
export
|
|
294
|
+
};
|
|
295
|
+
export declare type TpoCompanyDetails = {
|
|
296
296
|
access: boolean;
|
|
297
297
|
rights: string[];
|
|
298
|
-
}
|
|
299
|
-
export
|
|
298
|
+
};
|
|
299
|
+
export declare type TpoConnectSiteSettings = {
|
|
300
300
|
access: boolean;
|
|
301
301
|
rights: string[];
|
|
302
|
-
}
|
|
303
|
-
export
|
|
302
|
+
};
|
|
303
|
+
export declare type TpoContacts = {
|
|
304
304
|
access: boolean;
|
|
305
305
|
rights: string[];
|
|
306
|
-
}
|
|
307
|
-
export
|
|
306
|
+
};
|
|
307
|
+
export declare type TpoFees = {
|
|
308
308
|
access: boolean;
|
|
309
309
|
rights: string[];
|
|
310
|
-
}
|
|
311
|
-
export
|
|
310
|
+
};
|
|
311
|
+
export declare type TpoInformation = {
|
|
312
312
|
access: boolean;
|
|
313
313
|
rights: string[];
|
|
314
|
-
}
|
|
315
|
-
export
|
|
314
|
+
};
|
|
315
|
+
export declare type TpoOrganizationSettings = {
|
|
316
316
|
access: boolean;
|
|
317
317
|
rights: string[];
|
|
318
|
-
}
|
|
319
|
-
export
|
|
318
|
+
};
|
|
319
|
+
export declare type TqlServices = {
|
|
320
320
|
access: boolean;
|
|
321
321
|
rights: string[];
|
|
322
|
-
}
|
|
323
|
-
export
|
|
322
|
+
};
|
|
323
|
+
export declare type Trades = {
|
|
324
324
|
access: boolean;
|
|
325
325
|
rights: string[];
|
|
326
|
-
}
|
|
327
|
-
export
|
|
326
|
+
};
|
|
327
|
+
export declare type UnderwritingConditions = {
|
|
328
328
|
access: boolean;
|
|
329
329
|
rights: string[];
|
|
330
|
-
}
|
|
331
|
-
export
|
|
330
|
+
};
|
|
331
|
+
export declare type EnhancedConditions = {
|
|
332
332
|
access: boolean;
|
|
333
333
|
conditionType: ConditionType;
|
|
334
|
-
}
|
|
335
|
-
export
|
|
334
|
+
};
|
|
335
|
+
export declare type ConditionType = {
|
|
336
336
|
'Investor Delivery': string[];
|
|
337
337
|
'Post-Closing': string[];
|
|
338
338
|
Preliminary: string[];
|
|
339
339
|
Underwriting: string[];
|
|
340
|
-
}
|
|
341
|
-
export
|
|
340
|
+
};
|
|
341
|
+
export declare type LoConnectTasks = {
|
|
342
342
|
access: boolean;
|
|
343
343
|
rights: string[];
|
|
344
344
|
customForms: any[];
|
|
345
345
|
customTools: any[];
|
|
346
346
|
globalApplications: any[];
|
|
347
347
|
standardWebForms: StandardWebForm[];
|
|
348
|
-
}
|
|
349
|
-
export
|
|
348
|
+
};
|
|
349
|
+
export declare type StandardWebForm = {
|
|
350
350
|
formName: string;
|
|
351
351
|
access: boolean;
|
|
352
352
|
formID: number;
|
|
353
|
-
}
|
|
354
|
-
export
|
|
353
|
+
};
|
|
354
|
+
export declare type EncompassWebServices = {
|
|
355
355
|
access: boolean;
|
|
356
356
|
rights: string[];
|
|
357
|
-
}
|
|
358
|
-
export
|
|
357
|
+
};
|
|
358
|
+
export declare type UnderwritingCenter = {
|
|
359
359
|
access: boolean;
|
|
360
360
|
rights: string[];
|
|
361
|
-
}
|
|
361
|
+
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-scripting-object",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Typescript defintions for Scripting Objects",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"module": "./dist/es/index.js",
|
|
8
|
-
"typings": "./dist/types/
|
|
8
|
+
"typings": "./dist/types/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"build"
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
|
|
61
|
-
"@elliemae/pui-cli": "~7.
|
|
62
|
-
"@elliemae/pui-doc-gen": "~1.
|
|
61
|
+
"@elliemae/pui-cli": "~7.6.1",
|
|
62
|
+
"@elliemae/pui-doc-gen": "~1.3.0",
|
|
63
63
|
"@types/styled-components": "~5.1.26",
|
|
64
64
|
"redux": "~4.2.0",
|
|
65
65
|
"redux-saga": "~1.2.1",
|