@elliemae/pui-scripting-object 1.48.3 → 1.49.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 CHANGED
@@ -13,25 +13,25 @@ var __copyProps = (to, from, except, desc) => {
13
13
  };
14
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var lib_exports = {};
17
- module.exports = __toCommonJS(lib_exports);
18
- __reExport(lib_exports, require("./objects/analytics.js"), module.exports);
19
- __reExport(lib_exports, require("./objects/application.js"), module.exports);
20
- __reExport(lib_exports, require("./objects/auth.js"), module.exports);
21
- __reExport(lib_exports, require("./objects/form.js"), module.exports);
22
- __reExport(lib_exports, require("./objects/global.js"), module.exports);
23
- __reExport(lib_exports, require("./objects/http.js"), module.exports);
24
- __reExport(lib_exports, require("./objects/loan.js"), module.exports);
25
- __reExport(lib_exports, require("./objects/memStorage.js"), module.exports);
26
- __reExport(lib_exports, require("./objects/module.js"), module.exports);
27
- __reExport(lib_exports, require("./objects/service.js"), module.exports);
28
- __reExport(lib_exports, require("./objects/session.js"), module.exports);
29
- __reExport(lib_exports, require("./objects/transaction.js"), module.exports);
30
- __reExport(lib_exports, require("./objects/transactionTemplate.js"), module.exports);
31
- __reExport(lib_exports, require("./objects/userAccessRights.js"), module.exports);
32
- __reExport(lib_exports, require("./objects/shared.js"), module.exports);
33
- __reExport(lib_exports, require("./event.js"), module.exports);
34
- __reExport(lib_exports, require("./scriptingObject.js"), module.exports);
35
- __reExport(lib_exports, require("./remotingScriptingObject.js"), module.exports);
36
- __reExport(lib_exports, require("./scriptingObjectList.js"), module.exports);
37
- __reExport(lib_exports, require("./scriptingObjectEventList.js"), module.exports);
16
+ var index_exports = {};
17
+ module.exports = __toCommonJS(index_exports);
18
+ __reExport(index_exports, require("./objects/analytics.js"), module.exports);
19
+ __reExport(index_exports, require("./objects/application.js"), module.exports);
20
+ __reExport(index_exports, require("./objects/auth.js"), module.exports);
21
+ __reExport(index_exports, require("./objects/form.js"), module.exports);
22
+ __reExport(index_exports, require("./objects/global.js"), module.exports);
23
+ __reExport(index_exports, require("./objects/http.js"), module.exports);
24
+ __reExport(index_exports, require("./objects/loan.js"), module.exports);
25
+ __reExport(index_exports, require("./objects/memStorage.js"), module.exports);
26
+ __reExport(index_exports, require("./objects/module.js"), module.exports);
27
+ __reExport(index_exports, require("./objects/service.js"), module.exports);
28
+ __reExport(index_exports, require("./objects/session.js"), module.exports);
29
+ __reExport(index_exports, require("./objects/transaction.js"), module.exports);
30
+ __reExport(index_exports, require("./objects/transactionTemplate.js"), module.exports);
31
+ __reExport(index_exports, require("./objects/userAccessRights.js"), module.exports);
32
+ __reExport(index_exports, require("./objects/shared.js"), module.exports);
33
+ __reExport(index_exports, require("./event.js"), module.exports);
34
+ __reExport(index_exports, require("./scriptingObject.js"), module.exports);
35
+ __reExport(index_exports, require("./remotingScriptingObject.js"), module.exports);
36
+ __reExport(index_exports, require("./scriptingObjectList.js"), module.exports);
37
+ __reExport(index_exports, require("./scriptingObjectEventList.js"), module.exports);
@@ -853,6 +853,52 @@ export interface ILoan extends IScriptingObject {
853
853
  * ```
854
854
  */
855
855
  getField(id: string): Promise<string>;
856
+ /**
857
+ * get options for loan fields / custom form controls
858
+ *
859
+ * supports both standard & custom loan fields.
860
+ *
861
+ * control Ids takes precedence over field Ids.
862
+ * @param {FieldOptionsParam} param parameter for getting field options
863
+ * @returns array of field options for each field / control id
864
+ *
865
+ * #### Example
866
+ *
867
+ * ```ts
868
+ * const fieldOptions = await loan.getFieldOptions({ fieldIds: ['1543', '1544'] });
869
+ * ```
870
+ *
871
+ * ```ts
872
+ * const fieldOptions = await loan.getFieldOptions({ controlIds: ['111', '112'] });
873
+ * ```
874
+ *
875
+ * Following is a sample field options for field Id 1543:
876
+ * ```
877
+ * 1543: [
878
+ * {
879
+ * value: 'Manual Underwriting',
880
+ * name: 'Manual Underwriting'
881
+ * },
882
+ * {
883
+ * value: 'DU',
884
+ * name: 'DU'
885
+ * },
886
+ * {
887
+ * value: 'LP',
888
+ * name: 'LP'
889
+ * },
890
+ * {
891
+ * value: 'LQA',
892
+ * name: 'LQA'
893
+ * },
894
+ * {
895
+ * value: 'Other',
896
+ * name: 'Other'
897
+ * }
898
+ * ]
899
+ * ```
900
+ */
901
+ getFieldOptions(param: FieldOptionsParam): Promise<Record<string, FieldOptions[]>>;
856
902
  /**
857
903
  * Returns the value of a standard or custom fields
858
904
  *