@elliemae/pui-scripting-object 1.8.0 → 1.10.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.
Files changed (67) hide show
  1. package/dist/cjs/events.js +16 -0
  2. package/dist/cjs/index.js +17 -15
  3. package/dist/cjs/{analytics.js → objects/analytics.js} +0 -0
  4. package/dist/cjs/{application.js → objects/application.js} +0 -0
  5. package/dist/cjs/{auth.js → objects/auth.js} +0 -0
  6. package/dist/cjs/{form.js → objects/form.js} +0 -0
  7. package/dist/cjs/{global.js → objects/global.js} +0 -0
  8. package/dist/cjs/{http.js → objects/http.js} +0 -0
  9. package/dist/cjs/{loan.js → objects/loan.js} +0 -0
  10. package/dist/cjs/{loanv2.js → objects/loanv2.js} +0 -0
  11. package/dist/cjs/objects/memStorage.js +16 -0
  12. package/dist/cjs/{module.js → objects/module.js} +0 -0
  13. package/dist/cjs/{route.js → objects/route.js} +0 -0
  14. package/dist/cjs/objects/service.js +20 -0
  15. package/dist/cjs/{session.js → objects/session.js} +0 -0
  16. package/dist/cjs/{transaction.js → objects/transaction.js} +12 -0
  17. package/dist/cjs/objects/transactionTemplate.js +16 -0
  18. package/dist/cjs/{userAccessRights.js → objects/userAccessRights.js} +0 -0
  19. package/dist/cjs/{view.js → objects/view.js} +0 -0
  20. package/dist/esm/{analytics.js → events.js} +0 -0
  21. package/dist/esm/index.js +17 -15
  22. package/dist/esm/{form.js → objects/analytics.js} +0 -0
  23. package/dist/esm/{application.js → objects/application.js} +0 -0
  24. package/dist/esm/{auth.js → objects/auth.js} +0 -0
  25. package/dist/esm/{global.js → objects/form.js} +0 -0
  26. package/dist/esm/{http.js → objects/global.js} +0 -0
  27. package/dist/esm/{route.js → objects/http.js} +0 -0
  28. package/dist/esm/{loan.js → objects/loan.js} +0 -0
  29. package/dist/esm/{loanv2.js → objects/loanv2.js} +0 -0
  30. package/dist/esm/{session.js → objects/memStorage.js} +0 -0
  31. package/dist/esm/{module.js → objects/module.js} +0 -0
  32. package/dist/esm/{transaction.js → objects/route.js} +0 -0
  33. package/dist/esm/objects/service.js +4 -0
  34. package/dist/esm/{transactiontemplate.js → objects/session.js} +0 -0
  35. package/dist/esm/objects/transaction.js +8 -0
  36. package/dist/esm/{userAccessRights.js → objects/transactionTemplate.js} +0 -0
  37. package/dist/esm/{view.js → objects/userAccessRights.js} +0 -0
  38. package/dist/esm/objects/view.js +0 -0
  39. package/dist/types/events.d.ts +7 -0
  40. package/dist/types/index.d.ts +18 -15
  41. package/dist/types/{analytics.d.ts → objects/analytics.d.ts} +6 -0
  42. package/dist/types/{application.d.ts → objects/application.d.ts} +92 -2
  43. package/dist/types/objects/auth.d.ts +105 -0
  44. package/dist/types/objects/form.d.ts +47 -0
  45. package/dist/types/objects/global.d.ts +47 -0
  46. package/dist/types/objects/http.d.ts +52 -0
  47. package/dist/types/{loan.d.ts → objects/loan.d.ts} +75 -11
  48. package/dist/types/{loanv2.d.ts → objects/loanv2.d.ts} +33 -0
  49. package/dist/types/objects/memStorage.d.ts +26 -0
  50. package/dist/types/objects/module.d.ts +55 -0
  51. package/dist/types/{route.d.ts → objects/route.d.ts} +1 -1
  52. package/dist/types/objects/service.d.ts +58 -0
  53. package/dist/types/{session.d.ts → objects/session.d.ts} +1 -1
  54. package/dist/types/objects/transaction.d.ts +295 -0
  55. package/dist/types/objects/transactionTemplate.d.ts +76 -0
  56. package/dist/types/{userAccessRights.d.ts → objects/userAccessRights.d.ts} +3 -0
  57. package/dist/types/{view.d.ts → objects/view.d.ts} +20 -18
  58. package/dist/types/scriptingObjectTypes.d.ts +22 -12
  59. package/package.json +2 -2
  60. package/dist/cjs/transactiontemplate.js +0 -16
  61. package/dist/types/auth.d.ts +0 -43
  62. package/dist/types/form.d.ts +0 -10
  63. package/dist/types/global.d.ts +0 -5
  64. package/dist/types/http.d.ts +0 -7
  65. package/dist/types/module.d.ts +0 -16
  66. package/dist/types/transaction.d.ts +0 -53
  67. package/dist/types/transactiontemplate.d.ts +0 -12
@@ -0,0 +1,295 @@
1
+ /**
2
+ * user type context
3
+ */
4
+ export declare enum OriginContext {
5
+ /**
6
+ * user interface is being presented to a user in a lending enterprise
7
+ */
8
+ LENDER = "lender",
9
+ /**
10
+ * user interface is being presented to a consumer/borrower
11
+ */
12
+ CONSUMER = "consumer"
13
+ }
14
+ /**
15
+ * transaction origination context
16
+ */
17
+ export declare type OriginInfo = {
18
+ /**
19
+ * Temporary session token that grants authorization for a partner
20
+ * integration to access transaction origination information via the REST API's /partner/v2/origins/:id endpoint
21
+ */
22
+ partnerAccessToken: string;
23
+ /**
24
+ * Unique identifier for the transaction origination information snapshot accessible
25
+ * via the REST API's /partner/v2/origins/:id endpoint
26
+ */
27
+ id: string;
28
+ /**
29
+ * Unique identifier for the transaction in whose context the
30
+ * partner integrations user-interface is being launched.
31
+ * This is only available in the situation where your integration
32
+ * is being launched in the context of an existing transaction,
33
+ * and can be used to decide the appropriate view to display to users
34
+ */
35
+ transactionId?: string;
36
+ /**
37
+ * The user type in whose context your integration is being launched
38
+ */
39
+ context: OriginContext;
40
+ };
41
+ /**
42
+ * details about the transaction that is created / updated
43
+ */
44
+ export declare type TransactionInfo = {
45
+ /**
46
+ * unique identifier for the transaction
47
+ */
48
+ id: string | null;
49
+ };
50
+ /**
51
+ * file attachment information
52
+ */
53
+ export declare type TransactionResource = {
54
+ /**
55
+ * unique identifier for the file attachment
56
+ */
57
+ id: string;
58
+ /**
59
+ * name of the file attachment
60
+ */
61
+ name: string;
62
+ /**
63
+ * mime type of the file attachment
64
+ */
65
+ mimeType: string;
66
+ };
67
+ /**
68
+ * information about the transaction to be initiated
69
+ */
70
+ export declare type TransactionOptions = {
71
+ request: {
72
+ /**
73
+ * The type of transaction request being initiated for the subject product.
74
+ * This must be one of the supported values for the request type that your application
75
+ * is configured to support - based on which its data entitlements are scoped.
76
+ */
77
+ type: string;
78
+ /**
79
+ * The specific set of selectable options that apply to the specific
80
+ * type of transaction request, as modeled by your application
81
+ */
82
+ options?: Record<string, string | boolean | number>;
83
+ /**
84
+ * The collection of file attachments - referred to as resource objects in the
85
+ * EPC API - to be attached to the transaction request.
86
+ * The id, name, and mimeType attribute needed for each resource object
87
+ * in the collection can be created in one of two ways:
88
+ * Your application utilized the transaction.createResource method to build a custom file upload experience, and the user invoked this functionality and uploaded a file from their local drive.
89
+ * Your application utilized the application.performAction("getAvailableResources") method to launch the host application's file explorer, and the user invoked this functionality and attached a file[s] from the host application.
90
+ * Once the resource objects are collected from these methods,
91
+ * be sure to echo them back to the EPC platform when creating a transaction!
92
+ */
93
+ resources: Array<TransactionResource>;
94
+ };
95
+ };
96
+ /**
97
+ * resource name to be uploaded
98
+ */
99
+ export declare type TransactionResourceFile = {
100
+ /**
101
+ * name of the file
102
+ */
103
+ name: string;
104
+ };
105
+ /**
106
+ * response object of createResource method
107
+ */
108
+ export declare type TransactionResourceResponse = {
109
+ /**
110
+ * resource id
111
+ */
112
+ id: string;
113
+ /**
114
+ * urn of the target upload location
115
+ */
116
+ respository: string;
117
+ /**
118
+ * name of the resource
119
+ */
120
+ name: string;
121
+ /**
122
+ * url to stream the resource
123
+ */
124
+ location: string;
125
+ /**
126
+ * authorization header to upload the resource
127
+ */
128
+ authorizationHeader: string;
129
+ };
130
+ export declare type TransactionEvent = {
131
+ /**
132
+ * event name
133
+ */
134
+ text: string;
135
+ /**
136
+ * urn representing the event type
137
+ */
138
+ type: string;
139
+ /**
140
+ * comments related to event
141
+ */
142
+ comments: string;
143
+ /**
144
+ * list of file attachments related to event
145
+ */
146
+ resources: Array<TransactionResource>;
147
+ };
148
+ /**
149
+ * Provides your applications lender/borrower-facing view with the necessary handles to model your application's
150
+ * transactional interaction with the EPC platform.
151
+ * Allows access to an interactive session's origination context,
152
+ * create a new transaction,
153
+ * update an existing transaction,
154
+ * create events/messages for a transaction, and more.
155
+ */
156
+ export interface ITransaction {
157
+ /**
158
+ * Provide the necessary information for your application's user-interface to:
159
+ * Access transaction origination information and bootstrap its user interaction
160
+ * Know if it was launched in the context of an existing transaction, so it can present the relevant view
161
+ *
162
+ * @returns transaction origination information
163
+ */
164
+ getOrigin(): Promise<OriginInfo>;
165
+ /**
166
+ * Refresh your application's transaction origination context - if your current one expires.
167
+ * This method returns a new originId and partnerAccessToken - which your application back-end can use to retrieve a refreshed transaction origin:
168
+ * A fresh snapshot of the loan data your application is entitled to receive in a transaction origin
169
+ * A a fresh snapshot of the user's credential set configured by their Administrator for use with your application
170
+ *
171
+ * @returns transaction origination information
172
+ */
173
+ refreshOrigin(): Promise<OriginInfo>;
174
+ /**
175
+ * Allow Lenders to use your integration to upload files from their
176
+ * local drive as an attachment to a new transaction.
177
+ * This method returns a URL and authorization token,
178
+ * which are to be used to stream the selected file as binary content to the EPC platform
179
+ *
180
+ * @param options details of the resource to be uploaded
181
+ * @returns location and authorization header to upload the resource
182
+ */
183
+ createResource(options: TransactionResourceFile): Promise<TransactionResourceResponse>;
184
+ /**
185
+ * initiate a new transaction with your integration
186
+ *
187
+ * @param options details of the transaction to be initiated
188
+ * @returns transaction id
189
+ */
190
+ create(options: TransactionOptions): Promise<TransactionInfo>;
191
+ /**
192
+ * Set the transaction in whose context you want to invoke methods that operate on an existing transaction.
193
+ * The subject transaction must be one that was created for the current loan and EPC product.
194
+ * The methods that currently fall into this category are:
195
+ * transaction.update
196
+ * transaction.createEvent
197
+ *
198
+ * Although integrations are free to set the transactional context they are operating in,
199
+ * which may be necessary when providing views that allow users to switch between
200
+ * and perform actions on multiple transactions, the host application implicitly
201
+ * alters the transactional context in certain scenarios:
202
+ *
203
+ * Implicit transaction context setting!
204
+ * If your integration is launched by a user in the context of an existing transaction,
205
+ * such as from the services page on Loan Officer Connect, the document icon
206
+ * on the services side-nav in Encompass Desktop or when returning to a
207
+ * loan application in Consumer Connect, the transactional context is implicitly set to said transaction
208
+ * Every time a new transaction is created during a user's interaction with your integration,
209
+ * the context is set to the last created transaction
210
+ * If the integration was initially launched in the context of an existing transaction,
211
+ * transaction.getOrigin will always return the original transactionId the integration was launched
212
+ * in the context of, no matter how many times the transaction is set in the current interaction.
213
+ * You can leverage this to track the initial transaction context for a user interaction
214
+ *
215
+ * The current transactional context that your integration is operating in can be queried using the transaction.get method.
216
+ *
217
+ * @param options transaction details
218
+ * @returns transaction that has been set
219
+ */
220
+ set(options: TransactionInfo): Promise<TransactionInfo>;
221
+ /**
222
+ * Retrieve the transaction in whose context your integration is operating in, utilized by methods that operate on an existing transaction.
223
+ * The methods that currently fall into this category are:
224
+ * transaction.update
225
+ * transaction.createEvent
226
+ * Although integrations are free to set the transactional context they are operating in
227
+ * (using the transaction.set method) , which may be necessary when providing views that
228
+ * allow users to switch between and perform actions on multiple transactions,
229
+ * the host application implicitly alters the transactional context in certain scenarios:
230
+ *
231
+ * Implicit transaction context setting!
232
+ * If your integration is launched by a user in the context of an existing transaction,
233
+ * such as from the services page on Loan Officer Connect, the document icon on the services
234
+ * side-nav in Encompass Desktop or on a loan application in Consumer Connect is set to said transaction.
235
+ * Every time a new transaction is created during a user's interaction with your integration,
236
+ * the context is set to the last created transaction.
237
+ * If the integration was initially launched in the context of an existing transaction,
238
+ * the transaction.getOrigin method will always return the original transactionId the integration was launched
239
+ * in the context of, no matter how many times the transaction is set in the current interaction.
240
+ * You can leverage this to track the initial transaction context for a user interaction
241
+ *
242
+ * The current transactional context your integration operates in can be queried using the transaction.get method
243
+ *
244
+ * @returns transaction id details
245
+ */
246
+ get(): Promise<TransactionInfo>;
247
+ /**
248
+ * Allow Lenders to update an existing transaction by attaching new resources or updating
249
+ * the request options associated with the transaction.
250
+ * A transaction update will trigger an updated webhook event on the urn:elli:epc:transaction REST resource,
251
+ * indicating an updated transaction request is ready for your application to retrieve.
252
+ * The updated transaction request will contain:
253
+ * An updated options object, if set in this method
254
+ * An updated resources array, with the resources set in this method appended to the previously attached set
255
+ * By default, a fresh snapshot of the loan data your application is entitled to receive in the transaction request
256
+ * By default, a fresh snapshot of the user's credential set configured by their Administrator for use with your application
257
+ *
258
+ * Request type immutability
259
+ * The type for a lender initiated transaction request can not be updated once created.
260
+ * If you need to support the ability for a lender to change the request type for a transaction they have initiated,
261
+ * the initial transaction must be canceled via a transaction response status update (using the REST API),
262
+ * and the lender must initiate a new transaction request with the updated type
263
+ *
264
+ * @param options transaction details
265
+ * @returns transaction id
266
+ */
267
+ update(options: TransactionOptions): Promise<TransactionInfo>;
268
+ /**
269
+ * Allow Lenders to initiate an event/message for the subject transaction with your integration
270
+ *
271
+ * @param options details of the event/message to be initiated
272
+ * @returns transaction event id
273
+ */
274
+ createEvent(options: TransactionEvent): Promise<TransactionInfo>;
275
+ /**
276
+ * Navigate your users back to where they left off in the host Encompass application,
277
+ * after they are done interacting with your application's user-interface
278
+ */
279
+ close(): Promise<void>;
280
+ /**
281
+ * Navigate your users back to where they left off in the host Encompass application,
282
+ * after they have canceled an interaction with your application's user-interface without having
283
+ * initiated a transaction request (or any other related task) that they were working on.
284
+ * This signals a cancelation outcome to the host Encompass application -
285
+ * how this is handled by the host upon user navigation can vary across applications
286
+ */
287
+ cancel(): Promise<void>;
288
+ /**
289
+ * Navigate your users back to where they left off in the host Encompass application,
290
+ * after their has been an error (application error or workflow error) on your integrations user-interface.
291
+ * This signals an error outcome to the host Encompass application -
292
+ * how this is handled by the host upon user navigation can vary across applications
293
+ */
294
+ error(): Promise<void>;
295
+ }
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Transaction request object
3
+ */
4
+ export declare type TransactionRequest = {
5
+ /**
6
+ * The type of transaction request being templated for the subject product.
7
+ * This must be one of the supported values for the request type that your application is configured to support,
8
+ * based on which its data entitlements are scoped
9
+ */
10
+ type: string;
11
+ /**
12
+ * The specific set of selectable options that apply to the specific type of transaction request,
13
+ * as modeled by your application, being templated by the Lender administrator.
14
+ * This can be used to select from which bureaus to order a borrower's credit score for a Credit integration,
15
+ * or how many days of income information to pull for a borrower in the case of a Verification of Income/Employment integration
16
+ */
17
+ options?: Record<string, any>;
18
+ };
19
+ /**
20
+ * Transaction Template object
21
+ *
22
+ * Note:
23
+ * Remember, the transactionTemplate object is only accessible to the administrator-facing view of a Partner application,
24
+ * registered as the $.adminInterfaceUrl property in the product configuration.
25
+ * This object encapsulates functionality that is only relevant for products that support 1-click/automated ordering workflows
26
+ * (as specified by the $.tags.workflows tag in the product configuration), and is only applicable
27
+ * when an administrator is trying to create a 1-click/automated service ordering setup
28
+ * in the Loan Officer Connect services management section.
29
+ * This object is therefore not accessible to an integration's service ordering views
30
+ * (registered as the $.interfaceUrl property in the product configuration),
31
+ * wherein the transaction and application objects are available for use as applicable.
32
+ */
33
+ export declare type TransactionTemplateDetails = {
34
+ /**
35
+ * The listed name for the transaction template - as auto-generated, or as provided
36
+ * by the lender administrator when the template was created
37
+ */
38
+ name: string;
39
+ request: Array<TransactionRequest>;
40
+ };
41
+ /**
42
+ * Provides application's administrator-facing view with the necessary handles
43
+ * for enabling Lender administrators to create transaction request templates,
44
+ * which they can associate with a 1-click/automated ordering business condition set.
45
+ */
46
+ export interface ITransactionTemplate {
47
+ /**
48
+ * Discover if your administrator-facing view has been rendered in the context of an existing
49
+ * transaction request template (in edit mode) or a new transaction request template (in create mode).
50
+ *
51
+ * If your application is launched in the context of an existing transaction template,
52
+ * this method will return the previously created transactionTemplate object, containing
53
+ * the associated request type and set of request options, which your application
54
+ * user-interface can use to render the applicable view for the administrator (such as pre-filling the form entries).
55
+ *
56
+ * Otherwise, if your application is launched in the context of a new transaction request template,
57
+ * this method will return a null response.
58
+ *
59
+ * @returns transactionTemplate object in edit mode, or null in create mode
60
+ */
61
+ get(): Promise<TransactionTemplateDetails | null>;
62
+ /**
63
+ * Create a new transaction request template, containing a defined request type and set of request options,
64
+ * that Lender administrators can associate with a 1-click/automated ordering business condition set.
65
+ *
66
+ * @param options details of the transaction template to be created
67
+ * @returns success
68
+ */
69
+ save(options: TransactionTemplateDetails): Promise<string>;
70
+ /**
71
+ * Navigate the administrator users back to where they left off in the
72
+ * Loan Officer Connect services management application, after they are done interacting
73
+ * with your application's administrator-facing user-interface
74
+ */
75
+ close(): Promise<void>;
76
+ }
@@ -1,3 +1,6 @@
1
+ /**
2
+ * user access rights object
3
+ */
1
4
  export declare type UserAccessRights = {
2
5
  access: string[];
3
6
  additionalServices: AdditionalServices;
@@ -7,15 +7,7 @@ export declare type ViewportSize = {
7
7
  height: number;
8
8
  };
9
9
  /**
10
- * parent window resize event handler
11
- */
12
- export declare type ResizeEventListener = (entries: ResizeObserverEntry) => void;
13
- /**
14
- * parent window breakpoint change event handler
15
- */
16
- export declare type BreakpointChangeEventListener = (breakpoint: BreakPoint) => void;
17
- /**
18
- * Methods and events to view, modify & get notified about parent's window attributes
10
+ * Methods view, modify parent's window attributes
19
11
  */
20
12
  export interface IView {
21
13
  /**
@@ -26,16 +18,26 @@ export interface IView {
26
18
  * Get the current viewport size of the parent window
27
19
  */
28
20
  getViewPortSize(): Promise<ViewportSize>;
21
+ }
22
+ /**
23
+ * parent window resize event handler
24
+ *
25
+ * @param entries details about the resize event
26
+ */
27
+ export declare type ResizeEventListener = (entries: ResizeObserverEntry) => void;
28
+ /**
29
+ * parent window breakpoint change event handler
30
+ *
31
+ * @param breakpoint current breakpoint of the parent window
32
+ */
33
+ export declare type BreakpointChangeEventListener = (breakpoint: BreakPoint) => void;
34
+ export declare type ViewEvents = {
29
35
  /**
30
- * parent window resize event
31
- *
32
- * @param eventHandler event handler to be called when the parent window is resized
36
+ * eent is fired when the parent window is resized
33
37
  */
34
- onResizeEvent(eventHandler: ResizeEventListener): string;
38
+ 'view.resize': ResizeEventListener;
35
39
  /**
36
- * parent window breakpoint change event
37
- *
38
- * @param eventHandler event handler to be called when the parent window's breakpoint changes
40
+ * event is fired when the parent window's breakpoint changes
39
41
  */
40
- onBreakpointChangeEvent(eventHandler: BreakpointChangeEventListener): string;
41
- }
42
+ 'view.breakpointChange': BreakpointChangeEventListener;
43
+ };
@@ -1,24 +1,34 @@
1
- import { ILoan } from './loan.js';
2
- import { ILoanV2 } from './loanv2.js';
3
- import { IApplication } from './application.js';
4
- import { IAuth } from './auth.js';
5
- import { ISession } from './session.js';
6
- import { ITransaction } from './transaction.js';
7
- import { ITransactionTemplate } from './transactiontemplate.js';
8
- import { IForm } from './form.js';
9
- import { IGlobal } from './global.js';
10
- import { IHttp } from './http.js';
11
- import { IAnalytics } from './analytics.js';
1
+ import { ILoan } from './objects/loan.js';
2
+ import { ILoanV2 } from './objects/loanv2.js';
3
+ import { IApplication } from './objects/application.js';
4
+ import { IAuth } from './objects/auth.js';
5
+ import { ISession } from './objects/session.js';
6
+ import { ITransaction } from './objects/transaction.js';
7
+ import { ITransactionTemplate } from './objects/transactionTemplate.js';
8
+ import { IForm } from './objects/form.js';
9
+ import { IGlobal } from './objects/global.js';
10
+ import { IHttp } from './objects/http.js';
11
+ import { IAnalytics } from './objects/analytics.js';
12
+ import { IMemStorage } from './objects/memStorage.js';
13
+ import { IView } from './objects/view.js';
14
+ import { IRoute } from './objects/route.js';
15
+ import { IModule } from './objects/module.js';
16
+ import { IService } from './objects/service.js';
12
17
  export declare type ScriptingObjectTypes = {
13
- Application: IApplication;
14
18
  Analytics: IAnalytics;
19
+ Application: IApplication;
15
20
  Auth: IAuth;
16
21
  Form: IForm;
17
22
  Global: IGlobal;
18
23
  Http: IHttp;
19
24
  Loan: ILoan;
20
25
  LoanV2: ILoanV2;
26
+ MemStorage: IMemStorage;
27
+ Module: IModule;
28
+ Route: IRoute;
29
+ Service: IService;
21
30
  Session: ISession;
22
31
  Transaction: ITransaction;
23
32
  TransactionTemplate: ITransactionTemplate;
33
+ View: IView;
24
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/cjs/index.js",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
61
- "@elliemae/pui-cli": "~7.9.0",
61
+ "@elliemae/pui-cli": "~7.10.3",
62
62
  "@elliemae/pui-doc-gen": "~1.3.0",
63
63
  "@elliemae/pui-theme": "~2.6.0",
64
64
  "@types/styled-components": "~5.1.26",
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var transactiontemplate_exports = {};
16
- module.exports = __toCommonJS(transactiontemplate_exports);
@@ -1,43 +0,0 @@
1
- import { UserAccessRights } from './userAccessRights';
2
- export declare type Personas = {
3
- entityId: string;
4
- entityType: string;
5
- entityName: string;
6
- };
7
- export declare type User = {
8
- id: string;
9
- realm: string;
10
- firstName: string;
11
- lastName: string;
12
- phone: string;
13
- cellPhone: string;
14
- personas: Array<Personas>;
15
- clientId: string;
16
- email: string;
17
- };
18
- export declare enum TokenType {
19
- BEARER = "Bearer"
20
- }
21
- export declare type PluginInfo = {
22
- clientId: string;
23
- redirectUrl: string;
24
- scope: TokenType;
25
- };
26
- export declare type TokenInfo = {
27
- accessToken: string;
28
- tokenType: TokenType;
29
- apiBaseUrl: string;
30
- };
31
- export interface IAuth {
32
- tokenUrl: string;
33
- createAuthCode(clientId: string): Promise<string>;
34
- getAccessToken(appInfo: PluginInfo): Promise<TokenInfo>;
35
- getUser(): Promise<User>;
36
- /**
37
- * Get access rights for the current user
38
- *
39
- * @returns user access rights
40
- * @throws {Error} if operation fails
41
- */
42
- getUserAccessRights(): Promise<UserAccessRights>;
43
- }
@@ -1,10 +0,0 @@
1
- export declare type FormDescriptor = {
2
- id: string;
3
- name: string;
4
- };
5
- export interface IForm {
6
- getDescriptor(): Promise<FormDescriptor>;
7
- getControl(id: string): Promise<any>;
8
- }
9
- export declare type FormLoadListener = (id: string) => void;
10
- export declare type FormUnloadListener = (id: string) => void;
@@ -1,5 +0,0 @@
1
- export interface IGlobal {
2
- set(key: string, value: string): Promise<void>;
3
- get(key: string): Promise<string>;
4
- }
5
- export declare type GlobalStateChangeListener = (key: string) => void;
@@ -1,7 +0,0 @@
1
- export interface IHttp {
2
- get(url: string, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
3
- post(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
4
- patch(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
5
- put(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
6
- delete(url: string, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
7
- }
@@ -1,16 +0,0 @@
1
- export declare enum LogLevel {
2
- TRACE = "TRACE",
3
- DEBUG = "DEBUG",
4
- INFO = "INFO",
5
- AUDIT = "AUDIT",
6
- WARN = "WARN",
7
- ERROR = "ERROR",
8
- FATAL = "FATAL"
9
- }
10
- export interface IModule {
11
- getCapabilities(): Promise<Record<string, string>>;
12
- getParameters(): Promise<Record<string, string>>;
13
- unload(): Promise<void>;
14
- log(message: string, logLevel: LogLevel): Promise<void>;
15
- }
16
- export declare type ModuleUnLoadingListener = (id: string) => boolean;
@@ -1,53 +0,0 @@
1
- export declare type OriginInfo = {
2
- partnerAccessToken: string;
3
- id: string;
4
- transactionId?: string;
5
- };
6
- export declare type TransactionInfo = {
7
- id: string | null;
8
- };
9
- export declare type TransactionResource = {
10
- id: string;
11
- name: string;
12
- repository: string;
13
- mimeType: string;
14
- };
15
- export declare type TransactionOptions = {
16
- scope?: Array<string>;
17
- request: {
18
- type: string;
19
- options?: Record<string, string>;
20
- resources: Array<TransactionResource>;
21
- };
22
- };
23
- export declare type TransactionResourceFile = {
24
- name: string;
25
- source: string;
26
- };
27
- export declare type TransactionResourceResponse = {
28
- id: string;
29
- respository: string;
30
- name: string;
31
- location: string;
32
- authorizationHeader: string;
33
- mimeType: string;
34
- };
35
- export declare type TransactionEvent = {
36
- text: string;
37
- type: string;
38
- comments: string;
39
- resources: Array<TransactionResource>;
40
- };
41
- export interface ITransaction {
42
- getOrigin(): Promise<OriginInfo>;
43
- refreshOrigin(): Promise<OriginInfo>;
44
- get(): Promise<TransactionInfo>;
45
- set(options: TransactionInfo): Promise<void>;
46
- create(options: TransactionOptions): Promise<TransactionInfo>;
47
- update(options: TransactionOptions): Promise<TransactionInfo>;
48
- createResource(options: TransactionResourceFile): Promise<TransactionResourceResponse>;
49
- createEvent(options: TransactionEvent): Promise<TransactionInfo>;
50
- close(): Promise<void>;
51
- cancel(): Promise<void>;
52
- error(): Promise<void>;
53
- }
@@ -1,12 +0,0 @@
1
- export declare type TransactionRequest = {
2
- type: string;
3
- options?: Record<string, string>;
4
- };
5
- export declare type TransactionTemplateOptions = {
6
- request: Array<TransactionRequest>;
7
- };
8
- export interface ITransactionTemplate {
9
- get(): Promise<TransactionTemplateOptions | null>;
10
- save(options: TransactionTemplateOptions): Promise<string>;
11
- close(): Promise<string>;
12
- }