@elliemae/pui-scripting-object 1.29.0 → 1.30.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.
|
@@ -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?:
|
|
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,
|
|
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,
|
|
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,
|
|
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?:
|
|
47
|
+
delete(url: string, headersOrAccessToken?: string | Record<string, string>): Promise<Response>;
|
|
48
48
|
}
|