@elliemae/pui-scripting-object 1.26.0 → 1.27.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.
@@ -1,5 +1,6 @@
1
1
  import { IEvent, Listener } from '../event.js';
2
2
  import { IScriptingObject } from '../scriptingObject.js';
3
+ import { UserAccessRights } from './userAccessRights.js';
3
4
  /**
4
5
  * Log levels
5
6
  */
@@ -222,10 +223,17 @@ export interface IApplication extends IScriptingObject {
222
223
  */
223
224
  getPoliciesDetails(): Promise<Record<string, string>>;
224
225
  /**
226
+ * @deprecated use getUserAccessRights instead
225
227
  * get persona Access information for the current user
226
228
  * @returns persona access information as key value pairs
227
229
  */
228
230
  getPersonaAccess(): Promise<Record<string, string>>;
231
+ /**
232
+ * Get access rights for the current user
233
+ * @returns user access rights (effective rights)
234
+ * @throws {Error} if operation fails
235
+ */
236
+ getUserAccessRights(): Promise<UserAccessRights>;
229
237
  /**
230
238
  * Prints given document
231
239
  * @param options Print options
@@ -1,5 +1,4 @@
1
1
  import { IScriptingObject } from '../scriptingObject.js';
2
- import { UserAccessRights } from './userAccessRights.js';
3
2
  export type Personas = {
4
3
  entityId: string;
5
4
  entityType: string;
@@ -115,10 +114,4 @@ export interface IAuth extends IScriptingObject {
115
114
  * @returns user information
116
115
  */
117
116
  getUser(): Promise<User>;
118
- /**
119
- * Get access rights for the current user
120
- * @returns user access rights
121
- * @throws {Error} if operation fails
122
- */
123
- getUserAccessRights(): Promise<UserAccessRights>;
124
117
  }
@@ -132,6 +132,7 @@ export interface IService extends IScriptingObject {
132
132
  * This method will unload the current microapp and navigate to the service order integration
133
133
  * after the integration flow is complete, user will be redirected back to the url provided in the options.
134
134
  * redirect url will be appended with query parameters containing the service order transaction id and service order id incase of new order
135
+ * Supports EPC & EVP service order integrations
135
136
  * @param category - name of the service category
136
137
  * @param {LaunchCategoryOptions} options - options for launching the service order integration
137
138
  * @returns None
@@ -147,6 +148,7 @@ export interface IService extends IScriptingObject {
147
148
  * This method will unload the current microapp and navigate to the service order integration
148
149
  * after the integration flow is complete, user will be redirected back to the url provided in the options.
149
150
  * redirect url will be appended with query parameters containing the service order transaction id and service order id incase of new order
151
+ * Supports EPC & EVP service order integrations
150
152
  * @param serviceSetupId - unique id of the service setup
151
153
  * @param {LaunchServiceSetupOptions} options - options for launching the service order integration
152
154
  * @returns None
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/cjs/index.js",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
70
- "@elliemae/pui-cli": "~8.13.0",
70
+ "@elliemae/pui-cli": "~8.13.1",
71
71
  "@elliemae/pui-doc-gen": "~1.7.1",
72
72
  "@elliemae/pui-theme": "~2.7.0",
73
73
  "@types/styled-components": "~5.1.26",