@elliemae/pui-scripting-object 1.47.0 → 1.48.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 CHANGED
@@ -25,14 +25,11 @@ __reExport(lib_exports, require("./objects/loan.js"), module.exports);
25
25
  __reExport(lib_exports, require("./objects/loanv2.js"), module.exports);
26
26
  __reExport(lib_exports, require("./objects/memStorage.js"), module.exports);
27
27
  __reExport(lib_exports, require("./objects/module.js"), module.exports);
28
- __reExport(lib_exports, require("./objects/route.js"), module.exports);
29
28
  __reExport(lib_exports, require("./objects/service.js"), module.exports);
30
29
  __reExport(lib_exports, require("./objects/session.js"), module.exports);
31
30
  __reExport(lib_exports, require("./objects/transaction.js"), module.exports);
32
- __reExport(lib_exports, require("./objects/transactionv2.js"), module.exports);
33
31
  __reExport(lib_exports, require("./objects/transactionTemplate.js"), module.exports);
34
32
  __reExport(lib_exports, require("./objects/userAccessRights.js"), module.exports);
35
- __reExport(lib_exports, require("./objects/view.js"), module.exports);
36
33
  __reExport(lib_exports, require("./objects/shared.js"), module.exports);
37
34
  __reExport(lib_exports, require("./event.js"), module.exports);
38
35
  __reExport(lib_exports, require("./scriptingObject.js"), module.exports);
@@ -18,7 +18,6 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var application_exports = {};
20
20
  __export(application_exports, {
21
- ApplicationExtensionType: () => ApplicationExtensionType,
22
21
  FormType: () => FormType,
23
22
  LogLevels: () => LogLevels,
24
23
  ModalSize: () => ModalSize,
@@ -36,11 +35,6 @@ var LogLevels = /* @__PURE__ */ ((LogLevels2) => {
36
35
  LogLevels2[LogLevels2["FATAL"] = 60] = "FATAL";
37
36
  return LogLevels2;
38
37
  })(LogLevels || {});
39
- var ApplicationExtensionType = /* @__PURE__ */ ((ApplicationExtensionType2) => {
40
- ApplicationExtensionType2["TOOL"] = "TOOL";
41
- ApplicationExtensionType2["MENU"] = "MENU";
42
- return ApplicationExtensionType2;
43
- })(ApplicationExtensionType || {});
44
38
  var OpenType = /* @__PURE__ */ ((OpenType2) => {
45
39
  OpenType2["MODULE"] = "MODULE";
46
40
  return OpenType2;
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var loan_exports = {};
20
20
  __export(loan_exports, {
21
21
  EditModes: () => EditModes,
22
+ LoanCollection: () => LoanCollection,
22
23
  LoanLevelActions: () => LoanLevelActions,
23
24
  RecordActions: () => RecordActions,
24
25
  RecordViewType: () => RecordViewType
@@ -44,6 +45,56 @@ var LoanLevelActions = /* @__PURE__ */ ((LoanLevelActions2) => {
44
45
  LoanLevelActions2["COPY_BORROWER_TO_TAX_REQUEST"] = "copyBorrowerToTaxRequest";
45
46
  return LoanLevelActions2;
46
47
  })(LoanLevelActions || {});
48
+ var LoanCollection = /* @__PURE__ */ ((LoanCollection2) => {
49
+ LoanCollection2["AffiliatedBusinessArrangements"] = "AB0000";
50
+ LoanCollection2["AlternateNameBorrower"] = "URLABAKA0000";
51
+ LoanCollection2["AlternateNameCoBorrower"] = "URLACAKA0000";
52
+ LoanCollection2["BorrowerCreditReports"] = "BCRED0000";
53
+ LoanCollection2["BorrowerEmployer"] = "BE0000";
54
+ LoanCollection2["BorrowerResidence"] = "BR0000";
55
+ LoanCollection2["CoBorrowerCreditReports"] = "CCRED0000";
56
+ LoanCollection2["CoBorrowerEmployer"] = "CE0000";
57
+ LoanCollection2["CoBorrowerResidence"] = "CR0000";
58
+ LoanCollection2["DepositoryInformation"] = "DD0000";
59
+ LoanCollection2["Disclosures"] = "DISC0000";
60
+ LoanCollection2["EarlyCheck"] = "EC0000";
61
+ LoanCollection2["Escrow"] = "HUD0000";
62
+ LoanCollection2["GiftOrGrant"] = "URLARGG0000";
63
+ LoanCollection2["GoodFaithChangeOfCircumstance"] = "XCOC0000";
64
+ LoanCollection2["GSERepAndWarrantTracker"] = "TQLGSE0000";
65
+ LoanCollection2["HomeCounselingProvider"] = "HC0000";
66
+ LoanCollection2["IRS4506Record"] = "AR0000";
67
+ LoanCollection2["IRS4506TRecord"] = "IR0000";
68
+ LoanCollection2["ItemizedEscrowPayment"] = "AEA0000";
69
+ LoanCollection2["LiabilityInformation"] = "FL0000";
70
+ LoanCollection2["LoanPrograms"] = "LP0000";
71
+ LoanCollection2["MortgageProperty"] = "FM0000";
72
+ LoanCollection2["NonBorrowingOwnerFileContact"] = "NBOC0000";
73
+ LoanCollection2["NYFees"] = "NYFEES0000";
74
+ LoanCollection2["OtherAssets"] = "URLAROA0000";
75
+ LoanCollection2["OtherBorrowerEmployer"] = "FBE0000";
76
+ LoanCollection2["OtherCoBorrowerEmployer"] = "FCE0000";
77
+ LoanCollection2["OtherIncome"] = "URLAROIS0000";
78
+ LoanCollection2["OtherLiabilitiesOrDepository"] = "URLAROL0000";
79
+ LoanCollection2["PropertyValuations"] = "PVAL0000";
80
+ LoanCollection2["REGZDrawRepayPeriodDraw"] = "HTD0000";
81
+ LoanCollection2["REGZDrawRepayPeriodRepay"] = "HTR0000";
82
+ LoanCollection2["Riders"] = "RIDER0000";
83
+ LoanCollection2["Scenarios"] = "SCEN0000";
84
+ LoanCollection2["SettlementServiceProvider"] = "SP0000";
85
+ LoanCollection2["SpecialFeatureCodes"] = "SFC0000";
86
+ LoanCollection2["TQLBorrower4506TOrders"] = "TQL4506T0000";
87
+ LoanCollection2["TQLComplianceOrdersLastAlert"] = "TQLCOMPLIANCEALERT0000";
88
+ LoanCollection2["TQLDocumentDeliveredToInvestor"] = "TQLDOCDATE0000";
89
+ LoanCollection2["TQLFraudOrders"] = "TQLFRAUDALERT0000";
90
+ LoanCollection2["TrustAccountTransactionDescription"] = "TA0000";
91
+ LoanCollection2["UCDAdjustmentType"] = "UNFL0000";
92
+ LoanCollection2["Valuation"] = "VAL0000";
93
+ LoanCollection2["VerificationOfAdditionalLoans"] = "URLARAL0000";
94
+ LoanCollection2["VestingParty"] = "TR0000";
95
+ LoanCollection2["CorrespondentOtherInsurances"] = "CORROI0000";
96
+ return LoanCollection2;
97
+ })(LoanCollection || {});
47
98
  var EditModes = /* @__PURE__ */ ((EditModes2) => {
48
99
  EditModes2["READ_ONLY"] = "READONLY";
49
100
  EditModes2["EDIT"] = "EDIT";
@@ -32,12 +32,9 @@ var ScriptingObjectNames = /* @__PURE__ */ ((ScriptingObjectNames2) => {
32
32
  ScriptingObjectNames2["LoanV2"] = "loanV2";
33
33
  ScriptingObjectNames2["MemStorage"] = "memstorage";
34
34
  ScriptingObjectNames2["Module"] = "module";
35
- ScriptingObjectNames2["Route"] = "route";
36
35
  ScriptingObjectNames2["Service"] = "service";
37
36
  ScriptingObjectNames2["Session"] = "session";
38
37
  ScriptingObjectNames2["Transaction"] = "transaction";
39
- ScriptingObjectNames2["TransactionV2"] = "transactionV2";
40
38
  ScriptingObjectNames2["TransactionTemplate"] = "transactionTemplate";
41
- ScriptingObjectNames2["View"] = "view";
42
39
  return ScriptingObjectNames2;
43
40
  })(ScriptingObjectNames || {});
package/dist/esm/index.js CHANGED
@@ -8,14 +8,11 @@ export * from "./objects/loan.js";
8
8
  export * from "./objects/loanv2.js";
9
9
  export * from "./objects/memStorage.js";
10
10
  export * from "./objects/module.js";
11
- export * from "./objects/route.js";
12
11
  export * from "./objects/service.js";
13
12
  export * from "./objects/session.js";
14
13
  export * from "./objects/transaction.js";
15
- export * from "./objects/transactionv2.js";
16
14
  export * from "./objects/transactionTemplate.js";
17
15
  export * from "./objects/userAccessRights.js";
18
- export * from "./objects/view.js";
19
16
  export * from "./objects/shared.js";
20
17
  export * from "./event.js";
21
18
  export * from "./scriptingObject.js";
@@ -7,11 +7,6 @@ var LogLevels = /* @__PURE__ */ ((LogLevels2) => {
7
7
  LogLevels2[LogLevels2["FATAL"] = 60] = "FATAL";
8
8
  return LogLevels2;
9
9
  })(LogLevels || {});
10
- var ApplicationExtensionType = /* @__PURE__ */ ((ApplicationExtensionType2) => {
11
- ApplicationExtensionType2["TOOL"] = "TOOL";
12
- ApplicationExtensionType2["MENU"] = "MENU";
13
- return ApplicationExtensionType2;
14
- })(ApplicationExtensionType || {});
15
10
  var OpenType = /* @__PURE__ */ ((OpenType2) => {
16
11
  OpenType2["MODULE"] = "MODULE";
17
12
  return OpenType2;
@@ -45,7 +40,6 @@ var ModalType = /* @__PURE__ */ ((ModalType2) => {
45
40
  return ModalType2;
46
41
  })(ModalType || {});
47
42
  export {
48
- ApplicationExtensionType,
49
43
  FormType,
50
44
  LogLevels,
51
45
  ModalSize,
@@ -18,6 +18,56 @@ var LoanLevelActions = /* @__PURE__ */ ((LoanLevelActions2) => {
18
18
  LoanLevelActions2["COPY_BORROWER_TO_TAX_REQUEST"] = "copyBorrowerToTaxRequest";
19
19
  return LoanLevelActions2;
20
20
  })(LoanLevelActions || {});
21
+ var LoanCollection = /* @__PURE__ */ ((LoanCollection2) => {
22
+ LoanCollection2["AffiliatedBusinessArrangements"] = "AB0000";
23
+ LoanCollection2["AlternateNameBorrower"] = "URLABAKA0000";
24
+ LoanCollection2["AlternateNameCoBorrower"] = "URLACAKA0000";
25
+ LoanCollection2["BorrowerCreditReports"] = "BCRED0000";
26
+ LoanCollection2["BorrowerEmployer"] = "BE0000";
27
+ LoanCollection2["BorrowerResidence"] = "BR0000";
28
+ LoanCollection2["CoBorrowerCreditReports"] = "CCRED0000";
29
+ LoanCollection2["CoBorrowerEmployer"] = "CE0000";
30
+ LoanCollection2["CoBorrowerResidence"] = "CR0000";
31
+ LoanCollection2["DepositoryInformation"] = "DD0000";
32
+ LoanCollection2["Disclosures"] = "DISC0000";
33
+ LoanCollection2["EarlyCheck"] = "EC0000";
34
+ LoanCollection2["Escrow"] = "HUD0000";
35
+ LoanCollection2["GiftOrGrant"] = "URLARGG0000";
36
+ LoanCollection2["GoodFaithChangeOfCircumstance"] = "XCOC0000";
37
+ LoanCollection2["GSERepAndWarrantTracker"] = "TQLGSE0000";
38
+ LoanCollection2["HomeCounselingProvider"] = "HC0000";
39
+ LoanCollection2["IRS4506Record"] = "AR0000";
40
+ LoanCollection2["IRS4506TRecord"] = "IR0000";
41
+ LoanCollection2["ItemizedEscrowPayment"] = "AEA0000";
42
+ LoanCollection2["LiabilityInformation"] = "FL0000";
43
+ LoanCollection2["LoanPrograms"] = "LP0000";
44
+ LoanCollection2["MortgageProperty"] = "FM0000";
45
+ LoanCollection2["NonBorrowingOwnerFileContact"] = "NBOC0000";
46
+ LoanCollection2["NYFees"] = "NYFEES0000";
47
+ LoanCollection2["OtherAssets"] = "URLAROA0000";
48
+ LoanCollection2["OtherBorrowerEmployer"] = "FBE0000";
49
+ LoanCollection2["OtherCoBorrowerEmployer"] = "FCE0000";
50
+ LoanCollection2["OtherIncome"] = "URLAROIS0000";
51
+ LoanCollection2["OtherLiabilitiesOrDepository"] = "URLAROL0000";
52
+ LoanCollection2["PropertyValuations"] = "PVAL0000";
53
+ LoanCollection2["REGZDrawRepayPeriodDraw"] = "HTD0000";
54
+ LoanCollection2["REGZDrawRepayPeriodRepay"] = "HTR0000";
55
+ LoanCollection2["Riders"] = "RIDER0000";
56
+ LoanCollection2["Scenarios"] = "SCEN0000";
57
+ LoanCollection2["SettlementServiceProvider"] = "SP0000";
58
+ LoanCollection2["SpecialFeatureCodes"] = "SFC0000";
59
+ LoanCollection2["TQLBorrower4506TOrders"] = "TQL4506T0000";
60
+ LoanCollection2["TQLComplianceOrdersLastAlert"] = "TQLCOMPLIANCEALERT0000";
61
+ LoanCollection2["TQLDocumentDeliveredToInvestor"] = "TQLDOCDATE0000";
62
+ LoanCollection2["TQLFraudOrders"] = "TQLFRAUDALERT0000";
63
+ LoanCollection2["TrustAccountTransactionDescription"] = "TA0000";
64
+ LoanCollection2["UCDAdjustmentType"] = "UNFL0000";
65
+ LoanCollection2["Valuation"] = "VAL0000";
66
+ LoanCollection2["VerificationOfAdditionalLoans"] = "URLARAL0000";
67
+ LoanCollection2["VestingParty"] = "TR0000";
68
+ LoanCollection2["CorrespondentOtherInsurances"] = "CORROI0000";
69
+ return LoanCollection2;
70
+ })(LoanCollection || {});
21
71
  var EditModes = /* @__PURE__ */ ((EditModes2) => {
22
72
  EditModes2["READ_ONLY"] = "READONLY";
23
73
  EditModes2["EDIT"] = "EDIT";
@@ -25,6 +75,7 @@ var EditModes = /* @__PURE__ */ ((EditModes2) => {
25
75
  })(EditModes || {});
26
76
  export {
27
77
  EditModes,
78
+ LoanCollection,
28
79
  LoanLevelActions,
29
80
  RecordActions,
30
81
  RecordViewType
@@ -9,13 +9,10 @@ var ScriptingObjectNames = /* @__PURE__ */ ((ScriptingObjectNames2) => {
9
9
  ScriptingObjectNames2["LoanV2"] = "loanV2";
10
10
  ScriptingObjectNames2["MemStorage"] = "memstorage";
11
11
  ScriptingObjectNames2["Module"] = "module";
12
- ScriptingObjectNames2["Route"] = "route";
13
12
  ScriptingObjectNames2["Service"] = "service";
14
13
  ScriptingObjectNames2["Session"] = "session";
15
14
  ScriptingObjectNames2["Transaction"] = "transaction";
16
- ScriptingObjectNames2["TransactionV2"] = "transactionV2";
17
15
  ScriptingObjectNames2["TransactionTemplate"] = "transactionTemplate";
18
- ScriptingObjectNames2["View"] = "view";
19
16
  return ScriptingObjectNames2;
20
17
  })(ScriptingObjectNames || {});
21
18
  export {
@@ -9,14 +9,11 @@ export * from './objects/loan.js';
9
9
  export * from './objects/loanv2.js';
10
10
  export * from './objects/memStorage.js';
11
11
  export * from './objects/module.js';
12
- export * from './objects/route.js';
13
12
  export * from './objects/service.js';
14
13
  export * from './objects/session.js';
15
14
  export * from './objects/transaction.js';
16
- export * from './objects/transactionv2.js';
17
15
  export * from './objects/transactionTemplate.js';
18
16
  export * from './objects/userAccessRights.js';
19
- export * from './objects/view.js';
20
17
  export * from './objects/shared.js';
21
18
  export * from './event.js';
22
19
  export * from './scriptingObject.js';
@@ -35,6 +35,10 @@ export declare enum LogLevels {
35
35
  * log message
36
36
  */
37
37
  export type LogMessage = {
38
+ /**
39
+ * application name
40
+ */
41
+ appName: string;
38
42
  /**
39
43
  * message string
40
44
  */
@@ -66,34 +70,6 @@ export type AppInfo = {
66
70
  */
67
71
  encompassVersion: string;
68
72
  };
69
- /**
70
- * Application extension type
71
- */
72
- export declare enum ApplicationExtensionType {
73
- TOOL = "TOOL",
74
- MENU = "MENU"
75
- }
76
- /**
77
- * metadata about the application extension
78
- */
79
- export type ApplicationExtension = {
80
- /**
81
- * type of application extension
82
- */
83
- type: ApplicationExtensionType;
84
- /**
85
- * display text of the application extension
86
- */
87
- text: string;
88
- /**
89
- * url where the application extension is hosted
90
- */
91
- url: string;
92
- /**
93
- * custom options for the application extension
94
- */
95
- options?: Record<string, string>;
96
- };
97
73
  /**
98
74
  * set of query options to get company settings
99
75
  */
@@ -438,6 +414,10 @@ export type ModuleOpenInfo = {
438
414
  * @example urn:encompass:loanapp
439
415
  */
440
416
  moduleId: string;
417
+ /**
418
+ * mode to open the module. Default is IFRAME
419
+ */
420
+ openMode: OpenMode;
441
421
  };
442
422
  /**
443
423
  * event handler that handles module open event
@@ -505,11 +485,6 @@ export interface IApplication extends IScriptingObject {
505
485
  * close a modal
506
486
  */
507
487
  closeModal(): Promise<void>;
508
- /**
509
- * extends the application with a new menu item or tool
510
- * @param extensionObj properties of the extension
511
- */
512
- extend(extensionObj: ApplicationExtension): Promise<void>;
513
488
  /**
514
489
  * Get the context of the application
515
490
  * @returns application context
@@ -541,7 +516,7 @@ export interface IApplication extends IScriptingObject {
541
516
  * get persona Access information for the current user
542
517
  * @returns persona access information as key value pairs
543
518
  */
544
- getPersonaAccess(): Promise<Record<string, string>>;
519
+ getPersonaAccess(): Promise<Record<string, unknown>>;
545
520
  /**
546
521
  * get policy details for the current user
547
522
  * @returns policy details as key value pairs
@@ -553,10 +528,6 @@ export interface IApplication extends IScriptingObject {
553
528
  * @throws {Error} if operation fails
554
529
  */
555
530
  getUserAccessRights(): Promise<UserAccessRights>;
556
- /**
557
- * hide wait spinner
558
- */
559
- hideSpinner(): Promise<void>;
560
531
  /**
561
532
  * renew the user session
562
533
  */
@@ -608,26 +579,10 @@ export interface IApplication extends IScriptingObject {
608
579
  * @param options Print options
609
580
  */
610
581
  print(options: PrintOptions): Promise<void>;
611
- /**
612
- * show error message to user
613
- * @param message error message to display
614
- */
615
- showError(message: string): Promise<void>;
616
- /**
617
- * show wait spinner
618
- * @param message message to display
619
- */
620
- showSpinner(message: string): Promise<void>;
621
582
  /**
622
583
  * get supportability of an action
623
584
  * @param name action name
624
585
  * @returns true if the action is supported
625
586
  */
626
587
  supportsAction(name: string): Promise<boolean>;
627
- /**
628
- * get navigability to a particular page or screen
629
- * @param name page or screen name
630
- * @returns true if the page or screen is navigable
631
- */
632
- supportsNavigateTo(name: string): Promise<boolean>;
633
588
  }
@@ -7,8 +7,19 @@ export type UnAuthorizedError = Error;
7
7
  * Personas information
8
8
  */
9
9
  export type Personas = {
10
+ /**
11
+ * unique identifier for the persona
12
+ */
10
13
  entityId: string;
14
+ /**
15
+ * type of the entity
16
+ * @example 'Persona'
17
+ */
11
18
  entityType: string;
19
+ /**
20
+ * name of the entity
21
+ * @example 'Loan Officer'
22
+ */
12
23
  entityName: string;
13
24
  };
14
25
  /**
@@ -148,6 +159,10 @@ export interface IAuth extends IScriptingObject {
148
159
  * @param redirectUri redirect url of the plugin / microapp
149
160
  * @param scope scope of the plugin / microapp
150
161
  * @returns auth code
162
+ * @example
163
+ * ```javascript
164
+ * const authCode = await auth.createAuthCode('abc', 'https://clientx.com', 'lp');
165
+ * ```
151
166
  */
152
167
  createAuthCode(clientId: string, redirectUri: string, scope: string): Promise<string>;
153
168
  /**
@@ -156,6 +171,10 @@ export interface IAuth extends IScriptingObject {
156
171
  * should able to find out the caller of this api and request necessary child token
157
172
  * @returns access token with the api base url
158
173
  * @throws {UnAuthorizedError} if the customization, requesting the token, doesn not have active subscription to developer connect product
174
+ * @example
175
+ * ```javascript
176
+ * const token = await auth.getAccessToken();
177
+ * ```
159
178
  */
160
179
  getAccessToken(): Promise<TokenInfo>;
161
180
  /**