@elliemae/pui-scripting-object 1.20.1 → 1.20.2

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.
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -13,6 +17,9 @@ var __copyProps = (to, from, except, desc) => {
13
17
  };
14
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
19
  var service_exports = {};
20
+ __export(service_exports, {
21
+ ServiceSetupCategory: () => ServiceSetupCategory
22
+ });
16
23
  module.exports = __toCommonJS(service_exports);
17
24
  var ServiceSetupCategory = /* @__PURE__ */ ((ServiceSetupCategory2) => {
18
25
  ServiceSetupCategory2["APPRAISAL"] = "Appraisal";
@@ -2,3 +2,6 @@ var ServiceSetupCategory = /* @__PURE__ */ ((ServiceSetupCategory2) => {
2
2
  ServiceSetupCategory2["APPRAISAL"] = "Appraisal";
3
3
  return ServiceSetupCategory2;
4
4
  })(ServiceSetupCategory || {});
5
+ export {
6
+ ServiceSetupCategory
7
+ };
@@ -18,7 +18,6 @@ export type BAEvent = {
18
18
  export interface IAnalytics extends IScriptingObject {
19
19
  /**
20
20
  * send business analytics event
21
- *
22
21
  * @param event business event to be sent
23
22
  */
24
23
  sendBAEvent(event: BAEvent): void;
@@ -154,7 +154,6 @@ export interface IApplication extends IScriptingObject {
154
154
  readonly ActionCompleted: IEvent;
155
155
  /**
156
156
  * Gets descriptor for the Application
157
- *
158
157
  * @returns application descriptor
159
158
  */
160
159
  getDescriptior(): Promise<AppInfo>;
@@ -164,26 +163,22 @@ export interface IApplication extends IScriptingObject {
164
163
  getApplicationContext(): Promise<ApplicationContext>;
165
164
  /**
166
165
  * extends the application with a new menu item or tool
167
- *
168
166
  * @param extensionObj properties of the extension
169
167
  */
170
168
  extend(extensionObj: ApplicationExtension): Promise<void>;
171
169
  /**
172
170
  * navigate to a new application route / url
173
- *
174
171
  * @param options target url and type of navigation
175
172
  */
176
173
  navigate(options: NavigationOptions): Promise<void>;
177
174
  performAction(action: string, options: Record<string, string>): Promise<void>;
178
175
  /**
179
176
  * open a page or document
180
- *
181
177
  * @param options target and type of the document to open
182
178
  */
183
179
  open(options: OpenOptions): Promise<void>;
184
180
  /**
185
181
  * open a modal
186
- *
187
182
  * @param options modal properties
188
183
  */
189
184
  openModal(options: OpenModalOptions): Promise<void>;
@@ -193,21 +188,18 @@ export interface IApplication extends IScriptingObject {
193
188
  closeModal(): Promise<void>;
194
189
  /**
195
190
  * get supportability of an action
196
- *
197
191
  * @param name action name
198
192
  * @returns true if the action is supported
199
193
  */
200
194
  supportsAction(name: string): Promise<boolean>;
201
195
  /**
202
196
  * get navigability to a particular page or screen
203
- *
204
197
  * @param name page or screen name
205
198
  * @returns true if the page or screen is navigable
206
199
  */
207
200
  supportsNavigateTo(name: string): Promise<boolean>;
208
201
  /**
209
202
  * Get the capabilities of the application
210
- *
211
203
  * @returns capabilities as key-value pairs
212
204
  */
213
205
  getCapabilities(): Promise<Capabilities>;
@@ -217,7 +209,6 @@ export interface IApplication extends IScriptingObject {
217
209
  keepSessionAlive(): Promise<void>;
218
210
  /**
219
211
  * show wait spinner
220
- *
221
212
  * @param message message to display
222
213
  */
223
214
  showSpinner(message: string): Promise<void>;
@@ -227,31 +218,26 @@ export interface IApplication extends IScriptingObject {
227
218
  hideSpinner(): Promise<void>;
228
219
  /**
229
220
  * get policy details for the current user
230
- *
231
221
  * @returns policy details as key value pairs
232
222
  */
233
223
  getPoliciesDetails(): Promise<Record<string, string>>;
234
224
  /**
235
225
  * get persona Access information for the current user
236
- *
237
226
  * @returns persona access information as key value pairs
238
227
  */
239
228
  getPersonaAccess(): Promise<Record<string, string>>;
240
229
  /**
241
230
  * Prints given document
242
- *
243
231
  * @param options Print options
244
232
  */
245
233
  print(options: PrintOptions): Promise<void>;
246
234
  /**
247
235
  * show error message to user
248
- *
249
236
  * @param message error message to display
250
237
  */
251
238
  showError(message: string): Promise<void>;
252
239
  /**
253
240
  * log a message to host application's logs
254
- *
255
241
  * @param message message to log
256
242
  * @param logLevel level of the log message
257
243
  */
@@ -45,13 +45,11 @@ export interface IForm extends IScriptingObject {
45
45
  readonly Unload: IEvent;
46
46
  /**
47
47
  * get metadata of the form
48
- *
49
48
  * @returns form metadata
50
49
  */
51
50
  getDescriptor(): Promise<FormDescriptor>;
52
51
  /**
53
52
  * get reference to the form's input control
54
- *
55
53
  * @param id form id
56
54
  * @returns form input control object
57
55
  */
@@ -42,14 +42,12 @@ export interface IGlobal extends IScriptingObject {
42
42
  readonly Change: IEvent;
43
43
  /**
44
44
  * set a value in the global store
45
- *
46
45
  * @param key unique key to identify the value
47
46
  * @param value value to be stored
48
47
  */
49
48
  set(key: string, value: unknown): Promise<void>;
50
49
  /**
51
50
  * get a value from the global store
52
- *
53
51
  * @param key unique key to identify the value
54
52
  * @returns value stored in the global store
55
53
  */
@@ -7,7 +7,6 @@ import { IScriptingObject } from '../scriptingObject.js';
7
7
  export interface IHttp extends IScriptingObject {
8
8
  /**
9
9
  * get http request
10
- *
11
10
  * @param url url to make the call to
12
11
  * @param headersOrAccessToken http headers object or access token to be used for the call
13
12
  * @returns http response object
@@ -16,7 +15,6 @@ export interface IHttp extends IScriptingObject {
16
15
  get(url: string, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
17
16
  /**
18
17
  * post http request
19
- *
20
18
  * @param url url to make the call to
21
19
  * @param headersOrAccessToken http headers object or access token to be used for the call
22
20
  * @returns http response object
@@ -25,7 +23,6 @@ export interface IHttp extends IScriptingObject {
25
23
  post(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
26
24
  /**
27
25
  * patch http request
28
- *
29
26
  * @param url url to make the call to
30
27
  * @param headersOrAccessToken http headers object or access token to be used for the call
31
28
  * @returns http response object
@@ -34,7 +31,6 @@ export interface IHttp extends IScriptingObject {
34
31
  patch(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
35
32
  /**
36
33
  * put http request
37
- *
38
34
  * @param url url to make the call to
39
35
  * @param headersOrAccessToken http headers object or access token to be used for the call
40
36
  * @returns http response object
@@ -43,7 +39,6 @@ export interface IHttp extends IScriptingObject {
43
39
  put(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
44
40
  /**
45
41
  * delete http request
46
- *
47
42
  * @param url url to make the call to
48
43
  * @param headersOrAccessToken http headers object or access token to be used for the call
49
44
  * @returns http response object
@@ -6,13 +6,11 @@ import { IScriptingObject } from '../scriptingObject.js';
6
6
  export type FieldOptionsParam = {
7
7
  /**
8
8
  * list of field Ids
9
- *
10
9
  * @example ['1001', '1002']
11
10
  */
12
11
  fieldIds?: string[];
13
12
  /**
14
13
  * list of control Ids
15
- *
16
14
  * @example ['1001', '1002']
17
15
  */
18
16
  controlIds?: string[];
@@ -57,7 +55,6 @@ type CommitInfo = {
57
55
  };
58
56
  /**
59
57
  * event handler for loan precommit event
60
- *
61
58
  * @returns true if precommit is allowed, false otherwise
62
59
  */
63
60
  export type LoanPreCommitListener = Listener<ILoan, CommitInfo, Record<string, unknown>, boolean>;
@@ -80,7 +77,6 @@ export type LoanSyncListener = Listener<ILoan, Record<string, never>, Record<str
80
77
  export type LoanOpenListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
81
78
  /**
82
79
  * event handler for loan close event
83
- *
84
80
  * @returns true if loan close is allowed, false otherwise
85
81
  */
86
82
  export type LoanCloseListener = Listener<ILoan, Record<string, never>, Record<string, unknown>, void>;
@@ -96,7 +92,6 @@ type MilestoneInfo = {
96
92
  export type LoanMilestoneCompletedListener = Listener<ILoan, MilestoneInfo, Record<string, unknown>, void>;
97
93
  /**
98
94
  * event handler for loan pre milestone complete event
99
- *
100
95
  * @returns true if milestone complete is allowed, false otherwise
101
96
  */
102
97
  export type LoanPreMilestoneCompleteListener = Listener<ILoan, MilestoneInfo, Record<string, unknown>, boolean>;
@@ -190,7 +185,6 @@ export interface ILoan extends IScriptingObject {
190
185
  readonly ApplicationSelected: IEvent;
191
186
  /**
192
187
  * Get complete Loan object
193
- *
194
188
  * @returns v3 Loan Object
195
189
  *
196
190
  * #### Product Compatibility:
@@ -214,7 +208,6 @@ export interface ILoan extends IScriptingObject {
214
208
  commit(): Promise<void>;
215
209
  /**
216
210
  * get value of the given field id
217
- *
218
211
  * @param id field id
219
212
  * @returns field value
220
213
  */
@@ -223,7 +216,6 @@ export interface ILoan extends IScriptingObject {
223
216
  * get options for loan fields / custom form controls
224
217
  * supports both standard & custom loan fields.
225
218
  * control Ids takes precedence over field Ids.
226
- *
227
219
  * @param {FieldOptionsParam} param parameter for getting field options
228
220
  * @returns array of field options for each field / control id
229
221
  *
@@ -266,13 +258,11 @@ export interface ILoan extends IScriptingObject {
266
258
  getFieldOptions(param: FieldOptionsParam): Promise<Record<string, FieldOptions[]>>;
267
259
  /**
268
260
  * Returns the value of a single field using its field ID.
269
- *
270
261
  * @param ids The field ID of the fields to retrieve.
271
262
  */
272
263
  getFields(ids: string[]): Promise<Record<string, string>>;
273
264
  /**
274
265
  * Set the values of one or more fields on the Loan.
275
- *
276
266
  * @param fields list of field ids and their values
277
267
  */
278
268
  setFields(fields: Record<string, string>): Promise<void>;
@@ -286,7 +276,6 @@ export interface ILoan extends IScriptingObject {
286
276
  isReadOnly(): Promise<boolean>;
287
277
  /**
288
278
  * Applies or removes the calculation lock on a loan field. In this way you can enable or disable the lock on a loan field programmatically. Parameters are: ID of the field you want to apply or remove the calculation lock and the status you want to set the lock to
289
- *
290
279
  * @param fieldId ID of the field you want to apply or remove the calculation lock
291
280
  * @param lock
292
281
  */
@@ -301,7 +290,6 @@ export interface ILoan extends IScriptingObject {
301
290
  getCurrentApplication(): Promise<Record<string, string>>;
302
291
  /**
303
292
  * Update data for current application
304
- *
305
293
  * @param options
306
294
  */
307
295
  setCurrentApplication(options: CurrentApplicationOptions): Promise<void>;
@@ -311,7 +299,6 @@ export interface ILoan extends IScriptingObject {
311
299
  execAction(type: LoanLevelActions): Promise<LoanObject>;
312
300
  /**
313
301
  * Returns an object reference of type LoanCollection. Argument "name" is required & used to get specific collection like BorrowerEmployer, Escrow etc.
314
- *
315
302
  * @param name collection template name
316
303
  */
317
304
  getCollection(name: string): Promise<Record<string, string>>;
@@ -103,7 +103,6 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
103
103
  *
104
104
  * {@link LoanEvents}
105
105
  * loan.committed event is fired after the commit is successful.
106
- *
107
106
  * @throws RuleValidationError
108
107
  * if operation fails due to business / functional rules
109
108
  * @throws Error
@@ -117,7 +116,6 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
117
116
  commit(): Promise<void>;
118
117
  /**
119
118
  * Get the contract path for the given field ids
120
- *
121
119
  * @param fieldIds list of field ids for which loan contract path is required
122
120
  * @returns list of field ids and their loan contract paths
123
121
  * @throws Error
@@ -129,7 +127,6 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
129
127
  *
130
128
  * {@link LoanEvents}
131
129
  * loan.sync event is fired after the sync is successful.
132
- *
133
130
  * @returns {Promise<LoanObject>} loan object
134
131
  * @throws Error
135
132
  * if operation fails due to network error
@@ -142,7 +139,6 @@ export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
142
139
  merge(): Promise<LoanObject>;
143
140
  /**
144
141
  * Set the values of one or more fields on the Loan.
145
- *
146
142
  * @param fields list of field ids and their values
147
143
  * @returns list of field ids that failed to set
148
144
  * @throws Error
@@ -11,7 +11,6 @@ import { IScriptingObject } from '../scriptingObject.js';
11
11
  export interface IMemStorage extends IScriptingObject {
12
12
  /**
13
13
  * set a value in memory for given key
14
- *
15
14
  * @param clientId unique identifier assigned to the microapp
16
15
  * @param key unique key to store the value
17
16
  * @param value value to be stored. value should be JSON serializable
@@ -19,7 +18,6 @@ export interface IMemStorage extends IScriptingObject {
19
18
  set(clientId: string, key: string, value: unknown): Promise<void>;
20
19
  /**
21
20
  * get a value from memory for given key and microapp id
22
- *
23
21
  * @param key unique key to retrieve the value
24
22
  * @returns value stored in memory
25
23
  */
@@ -2,7 +2,6 @@ import { IEvent, Listener } from '../event.js';
2
2
  import { IScriptingObject } from '../scriptingObject.js';
3
3
  /**
4
4
  * event handler that handles module unload event
5
- *
6
5
  * @param id unique id of the app that is being unloaded
7
6
  * @returns true if the module can be unloaded, false otherwise
8
7
  */
@@ -13,7 +12,6 @@ export type ModuleUnLoadingListener = Listener<IModule, Record<string, never>, R
13
12
  export type ModuleEvents = {
14
13
  /**
15
14
  * event fired when the module is unloading
16
- *
17
15
  * @returns true if the module can be unloaded, false otherwise
18
16
  */
19
17
  'module.unloading': ModuleUnLoadingListener;
@@ -30,7 +28,6 @@ export interface IModule extends IScriptingObject {
30
28
  readonly Unloading: IEvent;
31
29
  /**
32
30
  * get microapp module-specific capabilities or settings defined by the host application. Helps to define the style and/or behavior of the module
33
- *
34
31
  * @returns capabilities or settings as key-value pairs
35
32
  */
36
33
  getCapabilities(): Promise<Record<string, unknown>>;
@@ -38,7 +35,6 @@ export interface IModule extends IScriptingObject {
38
35
  * get microapp module-specific parameters.
39
36
  * For example, a lender may select a set of loans within the host application which must be passed to a module
40
37
  * that implements a specific workflow for those loans
41
- *
42
38
  * @returns parameters as key-value pairs
43
39
  */
44
40
  getParameters(): Promise<Record<string, unknown>>;
@@ -6,7 +6,6 @@ import { IScriptingObject } from '../scriptingObject.js';
6
6
  export interface IRoute extends IScriptingObject {
7
7
  /**
8
8
  * navigate to a new url
9
- *
10
9
  * @param path path to navigate to
11
10
  * @param state
12
11
  */
@@ -2,13 +2,13 @@ import { IScriptingObject } from '../scriptingObject.js';
2
2
  /**
3
3
  * type of service setup categories
4
4
  */
5
- declare enum ServiceSetupCategory {
5
+ export declare enum ServiceSetupCategory {
6
6
  APPRAISAL = "Appraisal"
7
7
  }
8
8
  /**
9
9
  * details of a service setup
10
10
  */
11
- type ServiceSetup = {
11
+ export type ServiceSetup = {
12
12
  /**
13
13
  * service setup id
14
14
  */
@@ -27,9 +27,9 @@ type ServiceSetup = {
27
27
  category: ServiceSetupCategory;
28
28
  };
29
29
  /**
30
- * options to open the service order integration
30
+ * options to create service order
31
31
  */
32
- type OpenOptions = {
32
+ export type CreateOrderOptions = {
33
33
  /**
34
34
  * context of the application that is opening the service order integration
35
35
  * urn patterned string
@@ -42,20 +42,28 @@ type OpenOptions = {
42
42
  */
43
43
  export interface IService extends IScriptingObject {
44
44
  /**
45
- * Get the service setup for the current user and loan
46
- *
47
- * @param category - The category of the service setup
45
+ * get the service setup for the current user and loan
46
+ * @param {ServiceSetupCategory} category - service setup category
48
47
  * @param providerId - The provider id of the service setup
49
- * @returns list of service setups matching the input criteria. Empty list if no service setups are found
48
+ * @returns {Array<ServiceSetup>} list of service setups matching the input criteria. Empty list if no service setups are found
49
+ *
50
+ * #### Product Compatibility:
51
+ * | | Encompass | Encompass Web | TPO | Consumer Connect |
52
+ * :-----:|:-----: |:-----: |:-----: |:-----: |
53
+ * | all | ✖️ | ✖️ | ✖️ | ✖️ |
50
54
  */
51
55
  getEligibleServices: (category: ServiceSetupCategory, providerId?: string) => Promise<Array<ServiceSetup>>;
52
56
  /**
53
- * open default or specific service intergration to place an order
54
- *
55
- * @param serviceSetupId - id of the service setup
56
- * @param options - options for opening the service integration
57
+ * open default or specific service intergration to create an order
58
+ * @param serviceSetupId - unique id of the service setup
59
+ * @param {CreateOrderOptions} options - options for creating the order
57
60
  * @throws Error if the service setup is not found or user is not authorized to open the integration
61
+ * @returns None
62
+ *
63
+ * #### Product Compatibility:
64
+ * | | Encompass | Encompass Web | TPO | Consumer Connect |
65
+ * :-----:|:-----: |:-----: |:-----: |:-----: |
66
+ * | all | ✖️ | ✖️ | ✖️ | ✖️ |
58
67
  */
59
- createOrder: (serviceSetupId: string, options: OpenOptions) => Promise<void>;
68
+ createOrder: (serviceSetupId: string, options: CreateOrderOptions) => Promise<void>;
60
69
  }
61
- export {};
@@ -5,14 +5,12 @@ import { IScriptingObject } from '../scriptingObject.js';
5
5
  export interface ISession extends IScriptingObject {
6
6
  /**
7
7
  * set a value in the session storage
8
- *
9
8
  * @param key unique key to store the value
10
9
  * @param value value to be stored
11
10
  */
12
11
  set(key: string, value: string): Promise<void>;
13
12
  /**
14
13
  * get a value from the session storage
15
- *
16
14
  * @param key unique key to retrieve the value
17
15
  */
18
16
  get(key: string): Promise<string>;
@@ -20,18 +20,16 @@ export type TransactionInfo = {
20
20
  export interface ITransaction extends IScriptingObject {
21
21
  /**
22
22
  * Provide the necessary information for your application's user-interface to:
23
- * Access transaction origination information and bootstrap its user interaction
24
- * Know if it was launched in the context of an existing transaction, so it can present the relevant view
25
- *
23
+ * Access transaction origination information and bootstrap its user interaction
24
+ * Know if it was launched in the context of an existing transaction, so it can present the relevant view
26
25
  * @returns transaction origination information
27
26
  */
28
27
  getOrigin(): Promise<OriginDetails>;
29
28
  /**
30
29
  * Refresh your application's transaction origination context - if your current one expires.
31
30
  * This method returns a new originId and partnerAccessToken - which your application back-end can use to retrieve a refreshed transaction origin:
32
- * A fresh snapshot of the loan data your application is entitled to receive in a transaction origin
33
- * A a fresh snapshot of the user's credential set configured by their Administrator for use with your application
34
- *
31
+ * A fresh snapshot of the loan data your application is entitled to receive in a transaction origin
32
+ * A a fresh snapshot of the user's credential set configured by their Administrator for use with your application
35
33
  * @returns transaction origination information
36
34
  */
37
35
  refreshOrigin(): Promise<OriginDetails>;
@@ -40,14 +38,12 @@ export interface ITransaction extends IScriptingObject {
40
38
  * local drive as an attachment to a new transaction.
41
39
  * This method returns a URL and authorization token,
42
40
  * which are to be used to stream the selected file as binary content to the EPC platform
43
- *
44
41
  * @param options details of the resource to be uploaded
45
42
  * @returns location and authorization header to upload the resource
46
43
  */
47
44
  createResource(options: ResourceOptions): Promise<ResourceDetails>;
48
45
  /**
49
46
  * initiate a new transaction with your integration
50
- *
51
47
  * @param options details of the transaction to be initiated
52
48
  * @returns transaction id
53
49
  */
@@ -77,7 +73,6 @@ export interface ITransaction extends IScriptingObject {
77
73
  * You can leverage this to track the initial transaction context for a user interaction
78
74
  *
79
75
  * The current transactional context that your integration is operating in can be queried using the transaction.get method.
80
- *
81
76
  * @param options transaction details
82
77
  * @returns transaction that has been set
83
78
  */
@@ -104,7 +99,6 @@ export interface ITransaction extends IScriptingObject {
104
99
  * You can leverage this to track the initial transaction context for a user interaction
105
100
  *
106
101
  * The current transactional context your integration operates in can be queried using the transaction.get method
107
- *
108
102
  * @returns transaction id details
109
103
  */
110
104
  get(): Promise<TransactionInfo>;
@@ -124,14 +118,12 @@ export interface ITransaction extends IScriptingObject {
124
118
  * If you need to support the ability for a lender to change the request type for a transaction they have initiated,
125
119
  * the initial transaction must be canceled via a transaction response status update (using the REST API),
126
120
  * and the lender must initiate a new transaction request with the updated type
127
- *
128
121
  * @param options transaction details
129
122
  * @returns transaction id
130
123
  */
131
124
  update(options: TransactionDetails): Promise<TransactionInfo>;
132
125
  /**
133
126
  * Allow Lenders to initiate an event/message for the subject transaction with your integration
134
- *
135
127
  * @param options details of the event/message to be initiated
136
128
  * @returns transaction event id
137
129
  */
@@ -56,14 +56,12 @@ export interface ITransactionTemplate extends IScriptingObject {
56
56
  *
57
57
  * Otherwise, if your application is launched in the context of a new transaction request template,
58
58
  * this method will return a null response.
59
- *
60
59
  * @returns transactionTemplate object in edit mode, or null in create mode
61
60
  */
62
61
  get(): Promise<TransactionTemplateDetails | null>;
63
62
  /**
64
63
  * Create a new transaction request template, containing a defined request type and set of request options,
65
64
  * that Lender administrators can associate with a 1-click/automated ordering business condition set.
66
- *
67
65
  * @param options details of the transaction template to be created
68
66
  * @returns success
69
67
  */
@@ -28,7 +28,6 @@ export declare enum CompleteReason {
28
28
  export interface ITransactionV2 extends IScriptingObject {
29
29
  /**
30
30
  * create new transaction
31
- *
32
31
  * @param options details of the transaction to be created
33
32
  * @returns transaction id
34
33
  * @throws error when transaction creation fails
@@ -36,7 +35,6 @@ export interface ITransactionV2 extends IScriptingObject {
36
35
  create(options: TransactionDetails): Promise<string>;
37
36
  /**
38
37
  * send event for the subject transaction
39
- *
40
38
  * @param id - unique identifier for the transaction
41
39
  * @param options details of the event/message to be initiated
42
40
  * @returns transaction event id
@@ -45,7 +43,6 @@ export interface ITransactionV2 extends IScriptingObject {
45
43
  createEvent(id: string, options: TransactionEvent): Promise<string>;
46
44
  /**
47
45
  * get necessary details to upload document for specific transaction
48
- *
49
46
  * @param id - unique identifier for the transaction
50
47
  * @param options details of the document to be uploaded
51
48
  * @returns details about the location where to upload the document
@@ -54,7 +51,6 @@ export interface ITransactionV2 extends IScriptingObject {
54
51
  createResource(id: string, options: ResourceOptions): Promise<ResourceDetails>;
55
52
  /**
56
53
  * get details about the transaction
57
- *
58
54
  * @param id - unique identifier for the transaction
59
55
  * @returns transaction details
60
56
  * @throws TransactionNotFound error for invalid transaction id
@@ -62,7 +58,6 @@ export interface ITransactionV2 extends IScriptingObject {
62
58
  get(id: string): Promise<TransactionDetails>;
63
59
  /**
64
60
  * Creates new origin and context.
65
- *
66
61
  * @param withLoanData - include loan data in the origin cache
67
62
  * @returns service setup origination information
68
63
  * @throws OriginNotFound error when origin is not found
@@ -70,7 +65,6 @@ export interface ITransactionV2 extends IScriptingObject {
70
65
  createOrigin(withLoanData: boolean): Promise<OriginDetails>;
71
66
  /**
72
67
  * update existing transaction.
73
- *
74
68
  * @param id - unique identifier for the transaction
75
69
  * @param options transaction details to be updated
76
70
  * @throws error when transaction update fails, TransactionNotFound error for invalid transaction id
@@ -79,7 +73,6 @@ export interface ITransactionV2 extends IScriptingObject {
79
73
  /**
80
74
  * notify host on completion of user interaction with the transaction
81
75
  * so that host can perform any necessary post user interaction processing / cleanup.
82
- *
83
76
  * @param id - unique identifier for the transaction
84
77
  * @param reason reason for completing the transaction user interaction
85
78
  */
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.20.1",
3
+ "version": "1.20.2",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
- "type": "module",
7
6
  "main": "./dist/cjs/index.js",
8
7
  "module": "./dist/es/index.js",
9
8
  "unpkg": "./dist/umd/index.js",
@@ -68,7 +67,7 @@
68
67
  },
69
68
  "devDependencies": {
70
69
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
71
- "@elliemae/pui-cli": "~8.9.0",
70
+ "@elliemae/pui-cli": "~8.12.0",
72
71
  "@elliemae/pui-doc-gen": "~1.6.4",
73
72
  "@elliemae/pui-theme": "~2.7.0",
74
73
  "@types/styled-components": "~5.1.26",
@@ -77,5 +76,6 @@
77
76
  "redux-saga": "~1.2.3",
78
77
  "styled-components": "~5.3.10"
79
78
  },
80
- "peerDependencies": {}
79
+ "peerDependencies": {},
80
+ "type": "module"
81
81
  }