@elliemae/pui-scripting-object 1.34.5 → 1.35.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.
@@ -20,8 +20,7 @@ var application_exports = {};
20
20
  __export(application_exports, {
21
21
  ApplicationExtensionType: () => ApplicationExtensionType,
22
22
  LogLevel: () => LogLevel,
23
- ModalSize: () => ModalSize,
24
- NavigationType: () => NavigationType
23
+ ModalSize: () => ModalSize
25
24
  });
26
25
  module.exports = __toCommonJS(application_exports);
27
26
  var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
@@ -39,15 +38,6 @@ var ApplicationExtensionType = /* @__PURE__ */ ((ApplicationExtensionType2) => {
39
38
  ApplicationExtensionType2["MENU"] = "MENU";
40
39
  return ApplicationExtensionType2;
41
40
  })(ApplicationExtensionType || {});
42
- var NavigationType = /* @__PURE__ */ ((NavigationType2) => {
43
- NavigationType2["STANDARD_FORM"] = "STANDARD_FORM";
44
- NavigationType2["STANDARD_TOOL"] = "STANDARD_TOOL";
45
- NavigationType2["CUSTOM_FORM"] = "CUSTOM_FORM";
46
- NavigationType2["CUSTOM_TOOL"] = "CUSTOM_TOOL";
47
- NavigationType2["GLOBAL_CUSTOM_TOOL"] = "GLOBAL_CUSTOM_TOOL";
48
- NavigationType2["OTHER"] = "OTHER";
49
- return NavigationType2;
50
- })(NavigationType || {});
51
41
  var ModalSize = /* @__PURE__ */ ((ModalSize2) => {
52
42
  ModalSize2["SMALL"] = "sm";
53
43
  ModalSize2["MEDIUM"] = "md";
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var shared_exports = {};
20
20
  __export(shared_exports, {
21
+ NavigationType: () => NavigationType,
21
22
  OriginContext: () => OriginContext
22
23
  });
23
24
  module.exports = __toCommonJS(shared_exports);
@@ -26,3 +27,12 @@ var OriginContext = /* @__PURE__ */ ((OriginContext2) => {
26
27
  OriginContext2["CONSUMER"] = "consumer";
27
28
  return OriginContext2;
28
29
  })(OriginContext || {});
30
+ var NavigationType = /* @__PURE__ */ ((NavigationType2) => {
31
+ NavigationType2["STANDARD_FORM"] = "STANDARD_FORM";
32
+ NavigationType2["STANDARD_TOOL"] = "STANDARD_TOOL";
33
+ NavigationType2["CUSTOM_FORM"] = "CUSTOM_FORM";
34
+ NavigationType2["CUSTOM_TOOL"] = "CUSTOM_TOOL";
35
+ NavigationType2["GLOBAL_CUSTOM_TOOL"] = "GLOBAL_CUSTOM_TOOL";
36
+ NavigationType2["OTHER"] = "OTHER";
37
+ return NavigationType2;
38
+ })(NavigationType || {});
@@ -13,15 +13,6 @@ var ApplicationExtensionType = /* @__PURE__ */ ((ApplicationExtensionType2) => {
13
13
  ApplicationExtensionType2["MENU"] = "MENU";
14
14
  return ApplicationExtensionType2;
15
15
  })(ApplicationExtensionType || {});
16
- var NavigationType = /* @__PURE__ */ ((NavigationType2) => {
17
- NavigationType2["STANDARD_FORM"] = "STANDARD_FORM";
18
- NavigationType2["STANDARD_TOOL"] = "STANDARD_TOOL";
19
- NavigationType2["CUSTOM_FORM"] = "CUSTOM_FORM";
20
- NavigationType2["CUSTOM_TOOL"] = "CUSTOM_TOOL";
21
- NavigationType2["GLOBAL_CUSTOM_TOOL"] = "GLOBAL_CUSTOM_TOOL";
22
- NavigationType2["OTHER"] = "OTHER";
23
- return NavigationType2;
24
- })(NavigationType || {});
25
16
  var ModalSize = /* @__PURE__ */ ((ModalSize2) => {
26
17
  ModalSize2["SMALL"] = "sm";
27
18
  ModalSize2["MEDIUM"] = "md";
@@ -31,6 +22,5 @@ var ModalSize = /* @__PURE__ */ ((ModalSize2) => {
31
22
  export {
32
23
  ApplicationExtensionType,
33
24
  LogLevel,
34
- ModalSize,
35
- NavigationType
25
+ ModalSize
36
26
  };
@@ -3,6 +3,16 @@ var OriginContext = /* @__PURE__ */ ((OriginContext2) => {
3
3
  OriginContext2["CONSUMER"] = "consumer";
4
4
  return OriginContext2;
5
5
  })(OriginContext || {});
6
+ var NavigationType = /* @__PURE__ */ ((NavigationType2) => {
7
+ NavigationType2["STANDARD_FORM"] = "STANDARD_FORM";
8
+ NavigationType2["STANDARD_TOOL"] = "STANDARD_TOOL";
9
+ NavigationType2["CUSTOM_FORM"] = "CUSTOM_FORM";
10
+ NavigationType2["CUSTOM_TOOL"] = "CUSTOM_TOOL";
11
+ NavigationType2["GLOBAL_CUSTOM_TOOL"] = "GLOBAL_CUSTOM_TOOL";
12
+ NavigationType2["OTHER"] = "OTHER";
13
+ return NavigationType2;
14
+ })(NavigationType || {});
6
15
  export {
16
+ NavigationType,
7
17
  OriginContext
8
18
  };
@@ -1,6 +1,7 @@
1
1
  import { IEvent, Listener } from '../event.js';
2
2
  import { IScriptingObject } from '../scriptingObject.js';
3
3
  import { UserAccessRights } from './userAccessRights.js';
4
+ import { NavigationType } from './shared.js';
4
5
  /**
5
6
  * Log levels
6
7
  */
@@ -67,27 +68,18 @@ export type CompanySettingsQueryOptions = {
67
68
  */
68
69
  attribute?: string;
69
70
  };
70
- /**
71
- * Types of navigations
72
- */
73
- export declare enum NavigationType {
74
- STANDARD_FORM = "STANDARD_FORM",
75
- STANDARD_TOOL = "STANDARD_TOOL",
76
- CUSTOM_FORM = "CUSTOM_FORM",
77
- CUSTOM_TOOL = "CUSTOM_TOOL",
78
- GLOBAL_CUSTOM_TOOL = "GLOBAL_CUSTOM_TOOL",
79
- OTHER = "OTHER"
80
- }
81
71
  /**
82
72
  * navigation options
83
73
  */
84
74
  export type NavigationOptions = {
85
75
  /**
86
- * target url
76
+ * name of the location to navigate to
77
+ * @example Services, Secondary Registration etc.,
87
78
  */
88
79
  target: string;
89
80
  /**
90
- * type of the navigation
81
+ * type of the location to navigate to
82
+ * @example NavigationType.STANDARD_FORM
91
83
  */
92
84
  type: NavigationType;
93
85
  /**
@@ -262,8 +254,8 @@ export interface IApplication extends IScriptingObject {
262
254
  */
263
255
  extend(extensionObj: ApplicationExtension): Promise<void>;
264
256
  /**
265
- * navigate to a new application route / url
266
- * @param options target url and type of navigation
257
+ * navigate to a location in the application
258
+ * @param options navigation options
267
259
  */
268
260
  navigate(options: NavigationOptions): Promise<void>;
269
261
  performAction(action: string, options: Record<string, string>): Promise<void>;
@@ -9,6 +9,9 @@ export type User = {
9
9
  * unique identifier for the user
10
10
  */
11
11
  id: string;
12
+ /**
13
+ * legacy tenant id
14
+ */
12
15
  realm: string;
13
16
  /**
14
17
  * user's first name
@@ -54,6 +57,10 @@ export type User = {
54
57
  * NMLS number
55
58
  */
56
59
  nmlsOriginatorId: string;
60
+ /**
61
+ * instance id
62
+ */
63
+ instanceId: string;
57
64
  };
58
65
  /**
59
66
  * token type
@@ -1,4 +1,5 @@
1
1
  import { IScriptingObject } from '../scriptingObject.js';
2
+ import { NavigationType } from './shared.js';
2
3
  /**
3
4
  * type of service setup categories
4
5
  */
@@ -41,13 +42,20 @@ export type LaunchCategoryOptions = {
41
42
  */
42
43
  source: string;
43
44
  /**
44
- * url to redirect to after the service order integration flow is complete.
45
- *
46
- * url should be relative to the current loan context.
47
- *
48
- * For example to redirect to service landing page that has absolute url as https://encompass.ice.com/pipeline/loan/d4ef4c0a-5456-4e72-bf94-269eb2ccde18/services, the redirect url should be services
49
- */
50
- redirectUrl: string;
45
+ * location to redirect to after the service order integration flow is complete.
46
+ */
47
+ redirectParams: {
48
+ /**
49
+ * name of redirect location
50
+ * @example Services, Secondary Registration etc.,
51
+ */
52
+ targetName: string;
53
+ /**
54
+ * type of redirect location
55
+ * @example NavigationType.STANDARD_FORM
56
+ */
57
+ targetType: NavigationType;
58
+ };
51
59
  /**
52
60
  * unique id of the existing service order transaction
53
61
  */
@@ -76,13 +84,20 @@ export type LaunchServiceSetupOptions = {
76
84
  */
77
85
  source: string;
78
86
  /**
79
- * url to redirect to after the service order integration flow is complete.
80
- *
81
- * url should be relative to the current loan context.
82
- *
83
- * For example to redirect to service landing page that has absolute url as https://encompass.ice.com/pipeline/loan/d4ef4c0a-5456-4e72-bf94-269eb2ccde18/services, the redirect url should be services
84
- */
85
- redirectUrl: string;
87
+ * location to redirect to after the service order integration flow is complete.
88
+ */
89
+ redirectParams: {
90
+ /**
91
+ * name of redirect location
92
+ * @example Services, Secondary Registration etc.,
93
+ */
94
+ targetName: string;
95
+ /**
96
+ * type of redirect location
97
+ * @example NavigationType.STANDARD_FORM
98
+ */
99
+ targetType: NavigationType;
100
+ };
86
101
  /**
87
102
  * unique id of the partner
88
103
  */
@@ -123,13 +138,20 @@ export type LaunchProviderOptions = {
123
138
  */
124
139
  source: string;
125
140
  /**
126
- * url to redirect to after the service order integration flow is complete.
127
- *
128
- * url should be relative to the current loan context.
129
- *
130
- * For example to redirect to service landing page that has absolute url as https://encompass.ice.com/pipeline/loan/d4ef4c0a-5456-4e72-bf94-269eb2ccde18/services, the redirect url should be services
131
- */
132
- redirectUrl: string;
141
+ * location to redirect to after the service order integration flow is complete.
142
+ */
143
+ redirectParams: {
144
+ /**
145
+ * name of redirect location
146
+ * @example Services, Secondary Registration etc.,
147
+ */
148
+ targetName: string;
149
+ /**
150
+ * type of redirect location
151
+ * @example NavigationType.STANDARD_FORM
152
+ */
153
+ targetType: NavigationType;
154
+ };
133
155
  /**
134
156
  * unique id of the partner
135
157
  */
@@ -185,9 +207,9 @@ export interface IService extends IScriptingObject {
185
207
  *
186
208
  * This method will unload the current microapp and navigate to the service order integration
187
209
  *
188
- * After the integration flow is complete, user will be redirected back to the url provided in the options.
210
+ * After the integration flow is complete, user will be redirected to the location provided in the input parameter.
189
211
  *
190
- * Service order transaction id (transactionId) and service order id (orderId) will be appended as query parameters to the redirect url incase of new order. For example, if redirectUrl is services, the final url will be services?transactionId=123&orderId=456
212
+ * Service order transaction id (transactionId) and service order id (orderId) will be appended as query parameters to the url incase of new order. For example, if rediret requested to services area, the url will have querystring as services?transactionId=123&orderId=456
191
213
  *
192
214
  * Supports EPC & EVP service order integrations
193
215
  * @param category - name of the service category
@@ -207,9 +229,9 @@ export interface IService extends IScriptingObject {
207
229
  *
208
230
  * This method will unload the current microapp and navigate to the service order integration.
209
231
  *
210
- * After the integration flow is complete, user will be redirected back to the url provided in the options.
232
+ * After the integration flow is complete, user will be redirected to the location provided in the input parameter.
211
233
  *
212
- * Service order transaction id (transactionId) and service order id (orderId) will be appended as query parameters to the redirect url incase of new order. For example, if redirectUrl is services, the final url will be services?transactionId=123&orderId=456
234
+ * Service order transaction id (transactionId) and service order id (orderId) will be appended as query parameters to the url incase of new order. For example, if rediret requested to services area, the url will have querystring as services?transactionId=123&orderId=456
213
235
  *
214
236
  * Supports EPC & EVP service order integrations
215
237
  * @param serviceSetupId - unique id of the service setup
@@ -229,9 +251,9 @@ export interface IService extends IScriptingObject {
229
251
  *
230
252
  * This method will unload the current microapp and navigate to the service order integration
231
253
  *
232
- * After the integration flow is complete, user will be redirected back to the url provided in the options.
254
+ * After the integration flow is complete, user will be redirected to the location provided in the input parameter.
233
255
  *
234
- * Service order transaction id (transactionId) and service order id (orderId) will be appended as query parameters to the redirect url incase of new order. For example, if redirectUrl is services, the final url will be services?transactionId=123&orderId=456
256
+ * Service order transaction id (transactionId) and service order id (orderId) will be appended as query parameters to the url incase of new order. For example, if rediret requested to services area, the url will have querystring as services?transactionId=123&orderId=456
235
257
  *
236
258
  * Supports EPC & EVP service order integrations
237
259
  * @param providerId - unique id of the service provider
@@ -131,3 +131,32 @@ export type ResourceOptions = {
131
131
  */
132
132
  name: string;
133
133
  };
134
+ /**
135
+ * areas in the application where the user can navigate to
136
+ */
137
+ export declare enum NavigationType {
138
+ /**
139
+ * standard form
140
+ */
141
+ STANDARD_FORM = "STANDARD_FORM",
142
+ /**
143
+ * standard tool
144
+ */
145
+ STANDARD_TOOL = "STANDARD_TOOL",
146
+ /**
147
+ * custom form
148
+ */
149
+ CUSTOM_FORM = "CUSTOM_FORM",
150
+ /**
151
+ * custom tool
152
+ */
153
+ CUSTOM_TOOL = "CUSTOM_TOOL",
154
+ /**
155
+ * global custom tool
156
+ */
157
+ GLOBAL_CUSTOM_TOOL = "GLOBAL_CUSTOM_TOOL",
158
+ /**
159
+ * other
160
+ */
161
+ OTHER = "OTHER"
162
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.34.5",
3
+ "version": "1.35.1",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.9.0",
70
- "@elliemae/pui-cli": "~8.32.0",
70
+ "@elliemae/pui-cli": "~8.33.0",
71
71
  "@elliemae/pui-doc-gen": "~2.0.1",
72
72
  "@elliemae/pui-theme": "~2.9.3",
73
73
  "@types/styled-components": "~5.1.34",