@elliemae/pui-scripting-object 1.17.0 → 1.18.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.
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var auth_exports = {};
20
20
  __export(auth_exports, {
21
+ SCOPE: () => SCOPE,
21
22
  TokenType: () => TokenType
22
23
  });
23
24
  module.exports = __toCommonJS(auth_exports);
@@ -25,3 +26,8 @@ var TokenType = /* @__PURE__ */ ((TokenType2) => {
25
26
  TokenType2["BEARER"] = "Bearer";
26
27
  return TokenType2;
27
28
  })(TokenType || {});
29
+ var SCOPE = /* @__PURE__ */ ((SCOPE2) => {
30
+ SCOPE2["LOC"] = "LOC";
31
+ SCOPE2["Analyzer"] = "Analyzer";
32
+ return SCOPE2;
33
+ })(SCOPE || {});
@@ -2,6 +2,12 @@ var TokenType = /* @__PURE__ */ ((TokenType2) => {
2
2
  TokenType2["BEARER"] = "Bearer";
3
3
  return TokenType2;
4
4
  })(TokenType || {});
5
+ var SCOPE = /* @__PURE__ */ ((SCOPE2) => {
6
+ SCOPE2["LOC"] = "LOC";
7
+ SCOPE2["Analyzer"] = "Analyzer";
8
+ return SCOPE2;
9
+ })(SCOPE || {});
5
10
  export {
11
+ SCOPE,
6
12
  TokenType
7
13
  };
@@ -37,9 +37,28 @@ export type User = {
37
37
  */
38
38
  email: string;
39
39
  };
40
+ /**
41
+ * token type
42
+ */
40
43
  export declare enum TokenType {
44
+ /**
45
+ * Bearer token type
46
+ */
41
47
  BEARER = "Bearer"
42
48
  }
49
+ /**
50
+ * product scopes
51
+ */
52
+ export declare enum SCOPE {
53
+ /**
54
+ * ENCW scope
55
+ */
56
+ LOC = "LOC",
57
+ /**
58
+ * Analyzer scope
59
+ */
60
+ Analyzer = "Analyzer"
61
+ }
43
62
  export type PluginInfo = {
44
63
  /**
45
64
  * unique identifier for the plugin
@@ -50,9 +69,9 @@ export type PluginInfo = {
50
69
  */
51
70
  redirectUrl: string;
52
71
  /**
53
- * type of token
72
+ * token scope
54
73
  */
55
- scope: TokenType;
74
+ scope: SCOPE;
56
75
  };
57
76
  export type TokenInfo = {
58
77
  /**
@@ -98,9 +98,16 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
98
98
  /**
99
99
  * Commit all pending changes on the current loan
100
100
  *
101
- * @returns {Promise<void>}
102
- * @throws {Error} if operation fails due to network errors
103
- * @throws {CommitError} if operation fails due to business / functional rules
101
+ * {@link LoanEvents}
102
+ * loan.precommit event is fired before the commit is executed. If any of the event listeners return false, the commit will be aborted. Exception thrown by event listeners will be ignored. Event listeners have 60 seconds to complete their execution. After 60 seconds, the commit will proceed, if none of the listeners returned false.
103
+ *
104
+ * {@link LoanEvents}
105
+ * loan.committed event is fired after the commit is successful.
106
+ *
107
+ * @throws RuleValidationError
108
+ * if operation fails due to business / functional rules
109
+ * @throws Error
110
+ * if operation fails due to network errors
104
111
  *
105
112
  * #### Product Compatibility:
106
113
  * | | Encompass | Encompass Web | TPO | Consumer Connect |
@@ -113,11 +120,20 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
113
120
  *
114
121
  * @param fieldIds list of field ids for which loan contract path is required
115
122
  * @returns list of field ids and their loan contract paths
116
- * @throws {Error} if operation fails due to network errors
123
+ * @throws Error
124
+ * if operation fails due to network errors
117
125
  */
118
126
  getContractPath(fieldIds: string[]): Promise<FieldIDToContractPath[]>;
119
127
  /**
120
128
  * Syncs the loan workspace with any changes made by other users
129
+ *
130
+ * {@link LoanEvents}
131
+ * loan.sync event is fired after the sync is successful.
132
+ *
133
+ * @returns {Promise<LoanObject>} loan object
134
+ * @throws Error
135
+ * if operation fails due to network error
136
+ *
121
137
  * #### Product Compatibility:
122
138
  * | | Encompass | Encompass Web | TPO | Consumer Connect |
123
139
  * :-----:|:-----: |:-----: |:-----: |:-----: |
@@ -129,7 +145,8 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
129
145
  *
130
146
  * @param fields list of field ids and their values
131
147
  * @returns list of field ids that failed to set
132
- * @throws {Error} if operation fails due to network error
148
+ * @throws Error
149
+ * if operation fails due to network error
133
150
  *
134
151
  * #### Product Compatibility:
135
152
  * | | Encompass | Encompass Web | TPO | Consumer Connect |
@@ -63,10 +63,11 @@ export interface ITransactionV2 extends IScriptingObject {
63
63
  /**
64
64
  * Creates new origin and context.
65
65
  *
66
+ * @param withLoanData - include loan data in the origin cache
66
67
  * @returns service setup origination information
67
68
  * @throws OriginNotFound error when origin is not found
68
69
  */
69
- createOrigin(): Promise<OriginDetails>;
70
+ createOrigin(withLoanData: boolean): Promise<OriginDetails>;
70
71
  /**
71
72
  * update existing transaction.
72
73
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.17.0",
3
+ "version": "1.18.1",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/cjs/index.js",
@@ -67,13 +67,13 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
70
- "@elliemae/pui-cli": "~7.18.0",
71
- "@elliemae/pui-doc-gen": "~1.3.0",
70
+ "@elliemae/pui-cli": "~7.24.0",
71
+ "@elliemae/pui-doc-gen": "~1.4.1",
72
72
  "@elliemae/pui-theme": "~2.6.0",
73
73
  "@types/styled-components": "~5.1.26",
74
74
  "history": "~5.3.0",
75
75
  "redux": "~4.2.0",
76
- "redux-saga": "~1.2.1",
76
+ "redux-saga": "~1.2.2",
77
77
  "styled-components": "~5.3.6"
78
78
  },
79
79
  "peerDependencies": {}