@elliemae/pui-scripting-object 1.20.0 → 1.20.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.
@@ -77,15 +77,17 @@ export type TokenInfo = {
77
77
  /**
78
78
  * child access token
79
79
  */
80
- accessToken: string;
80
+ access_token: string;
81
81
  /**
82
82
  * type of token
83
+ * @example Bearer
83
84
  */
84
- tokenType: TokenType;
85
+ token_type: TokenType;
85
86
  /**
86
- * base url of the api endpoint
87
+ * API gateway host name
88
+ * @example https://int.api.ellielabs.com
87
89
  */
88
- apiBaseUrl: string;
90
+ host_name: string;
89
91
  };
90
92
  /**
91
93
  * Methods to get information about the user and access token
@@ -97,7 +99,6 @@ export interface IAuth extends IScriptingObject {
97
99
  * Generates a new Auth Code for the caller which can be exchanged for
98
100
  * an Access Token using the Client Secret associated with the given OAuth Client ID.
99
101
  * In certain contexts, the Auth token is tied to the currently logged in user's identity
100
- *
101
102
  * @param clientId unique identifier of the plugin
102
103
  * @returns auth code
103
104
  */
@@ -106,19 +107,16 @@ export interface IAuth extends IScriptingObject {
106
107
  * Get child access token for the given plugin
107
108
  * Host implementing this scripting object method,
108
109
  * should able to find out the caller of this api and request necessary child token
109
- *
110
110
  * @returns access token with the api base url
111
111
  */
112
112
  getAccessToken(): Promise<TokenInfo>;
113
113
  /**
114
114
  * Get current logged in user information
115
- *
116
115
  * @returns user information
117
116
  */
118
117
  getUser(): Promise<User>;
119
118
  /**
120
119
  * Get access rights for the current user
121
- *
122
120
  * @returns user access rights
123
121
  * @throws {Error} if operation fails
124
122
  */
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "Typescript defintions for Scripting Objects",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "main": "./dist/cjs/index.js",
8
8
  "module": "./dist/es/index.js",
9
9
  "unpkg": "./dist/umd/index.js",
10
- "jsdelivr": "./dist/imd/index.js",
10
+ "jsdelivr": "./dist/umd/index.js",
11
11
  "types": "./dist/types/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
@@ -28,8 +28,8 @@
28
28
  "url": "https://git.elliemae.io/platform-ui/pui-scripting-object.git"
29
29
  },
30
30
  "engines": {
31
- "pnpm": ">=7",
32
- "node": ">=16"
31
+ "pnpm": ">=8",
32
+ "node": ">=18"
33
33
  },
34
34
  "author": "ICE",
35
35
  "license": "MIT",
@@ -68,14 +68,14 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
71
- "@elliemae/pui-cli": "~8.5.2",
71
+ "@elliemae/pui-cli": "~8.9.0",
72
72
  "@elliemae/pui-doc-gen": "~1.6.4",
73
73
  "@elliemae/pui-theme": "~2.7.0",
74
74
  "@types/styled-components": "~5.1.26",
75
75
  "history": "~5.3.0",
76
76
  "redux": "~4.2.1",
77
77
  "redux-saga": "~1.2.3",
78
- "styled-components": "~5.3.9"
78
+ "styled-components": "~5.3.10"
79
79
  },
80
80
  "peerDependencies": {}
81
81
  }