@elliemae/pui-scripting-object 1.17.0 → 1.18.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.
@@ -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.0",
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.22.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": {}