@elliemae/pui-scripting-object 1.29.0 → 1.31.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.
@@ -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
@@ -12,7 +12,7 @@ export interface IHttp extends IScriptingObject {
12
12
  * @returns http response object
13
13
  * @throws error if the http call fails with non 2xx status code
14
14
  */
15
- get(url: string, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
15
+ get(url: string, headersOrAccessToken?: string | Record<string, string>): Promise<Response>;
16
16
  /**
17
17
  * post http request
18
18
  * @param url url to make the call to
@@ -20,7 +20,7 @@ export interface IHttp extends IScriptingObject {
20
20
  * @returns http response object
21
21
  * @throws error if the http call fails with non 2xx status code
22
22
  */
23
- post(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
23
+ post(url: string, headersOrAccessToken?: string | Record<string, string>, content?: string | Record<string, string>): Promise<Response>;
24
24
  /**
25
25
  * patch http request
26
26
  * @param url url to make the call to
@@ -28,7 +28,7 @@ export interface IHttp extends IScriptingObject {
28
28
  * @returns http response object
29
29
  * @throws error if the http call fails with non 2xx status code
30
30
  */
31
- patch(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
31
+ patch(url: string, headersOrAccessToken?: string | Record<string, string>, content?: string | Record<string, string>): Promise<Response>;
32
32
  /**
33
33
  * put http request
34
34
  * @param url url to make the call to
@@ -36,7 +36,7 @@ export interface IHttp extends IScriptingObject {
36
36
  * @returns http response object
37
37
  * @throws error if the http call fails with non 2xx status code
38
38
  */
39
- put(url: string, content: string | Record<string, string>, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
39
+ put(url: string, headersOrAccessToken?: string | Record<string, string>, content?: string | Record<string, string>): Promise<Response>;
40
40
  /**
41
41
  * delete http request
42
42
  * @param url url to make the call to
@@ -44,5 +44,5 @@ export interface IHttp extends IScriptingObject {
44
44
  * @returns http response object
45
45
  * @throws error if the http call fails with non 2xx status code
46
46
  */
47
- delete(url: string, headersOrAccessToken?: HeadersInit | string): Promise<Response>;
47
+ delete(url: string, headersOrAccessToken?: string | Record<string, string>): Promise<Response>;
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-scripting-object",
3
- "version": "1.29.0",
3
+ "version": "1.31.0",
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.25.1",
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.30",
74
74
  "history": "~5.3.0",
75
75
  "redux": "~4.2.1",
76
76
  "redux-saga": "~1.2.3",