@elliemae/pui-scripting-object 1.30.0 → 1.31.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.
@@ -26,6 +26,13 @@ export type User = {
26
26
  * user's cell phone number
27
27
  */
28
28
  cellPhone: string;
29
+ /**
30
+ * flag to indicate if the user is an administrator
31
+ */
32
+ isAdmin: boolean;
33
+ /**
34
+ * list of personas user has access to
35
+ */
29
36
  personas: Array<Personas>;
30
37
  /**
31
38
  * encompass client Id
@@ -111,9 +118,11 @@ export interface IAuth extends IScriptingObject {
111
118
  * an Access Token using the Client Secret associated with the given OAuth Client ID.
112
119
  * In certain contexts, the Auth token is tied to the currently logged in user's identity
113
120
  * @param clientId unique identifier of the plugin
121
+ * @param redirectUri redirect url of the plugin / microapp
122
+ * @param scope scope of the plugin / microapp
114
123
  * @returns auth code
115
124
  */
116
- createAuthCode(clientId: string): Promise<string>;
125
+ createAuthCode(clientId: string, redirectUri: string, scope: string): Promise<string>;
117
126
  /**
118
127
  * Get child access token for the given plugin
119
128
  * Host implementing this scripting object method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.30.0",
3
+ "version": "1.31.1",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/cjs/index.js",
@@ -66,11 +66,11 @@
66
66
  "sonar56x": true
67
67
  },
68
68
  "devDependencies": {
69
- "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
70
- "@elliemae/pui-cli": "~8.13.1",
71
- "@elliemae/pui-doc-gen": "~1.7.1",
69
+ "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.8.0",
70
+ "@elliemae/pui-cli": "~8.26.0",
71
+ "@elliemae/pui-doc-gen": "~1.8.0",
72
72
  "@elliemae/pui-theme": "~2.7.0",
73
- "@types/styled-components": "~5.1.26",
73
+ "@types/styled-components": "~5.1.32",
74
74
  "history": "~5.3.0",
75
75
  "redux": "~4.2.1",
76
76
  "redux-saga": "~1.2.3",