Skip to content

Commit 15764c7

Browse files
committed
feat: adjusting http request send function
1 parent b05a165 commit 15764c7

7 files changed

Lines changed: 127 additions & 2 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"identifier": "HTTP_AUTH_PLACE",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "HTTP credential placement"
7+
}
8+
],
9+
"alias": [
10+
{
11+
"code": "en-US",
12+
"content": "http;method;get;post;put;delete;path;head"
13+
}
14+
],
15+
"displayMessage": [
16+
{
17+
"code": "en-US",
18+
"content": "HTTP credential placement"
19+
}
20+
],
21+
"genericKeys": ["T"],
22+
"type": "T extends 'Bearer' ? 'Header' : T extends 'Basic' ? 'Header' : T extends undefined ? undefined : 'Header' | 'Url'",
23+
"linkedDataTypeIdentifiers": [],
24+
"rules": []
25+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"identifier": "HTTP_AUTH_TYPE",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "HTTP credential variant"
7+
}
8+
],
9+
"alias": [
10+
{
11+
"code": "en-US",
12+
"content": "http;method;get;post;put;delete;path;head"
13+
}
14+
],
15+
"displayMessage": [
16+
{
17+
"code": "en-US",
18+
"content": "HTTP credential variant"
19+
}
20+
],
21+
"type": "'Bearer' | 'Basic' | 'X-API-Key' | string | undefined",
22+
"linkedDataTypeIdentifiers": [],
23+
"rules": []
24+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"identifier": "HTTP_AUTH_VALUE",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "HTTP credential value"
7+
}
8+
],
9+
"alias": [
10+
{
11+
"code": "en-US",
12+
"content": "http;method;get;post;put;delete;path;head"
13+
}
14+
],
15+
"displayMessage": [
16+
{
17+
"code": "en-US",
18+
"content": "HTTP credential value"
19+
}
20+
],
21+
"genericKeys": ["T"],
22+
"type": "T extends 'Basic' ? { username: string, password: string } : T extends undefined ? undefined : string",
23+
"linkedDataTypeIdentifiers": [],
24+
"rules": []
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"identifier": "HTTP_PAYLOAD",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "HTTP payload"
7+
}
8+
],
9+
"alias": [
10+
{
11+
"code": "en-US",
12+
"content": "http;method;get;post;put;delete;path;head"
13+
}
14+
],
15+
"displayMessage": [
16+
{
17+
"code": "en-US",
18+
"content": "HTTP payload"
19+
}
20+
],
21+
"genericKeys": ["T"],
22+
"type": "T extends 'application/json' ? OBJECT<{}> : T extends undefined ? undefined : string",
23+
"linkedDataTypeIdentifiers": [],
24+
"rules": []
25+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"identifier": "HTTP_SCHEMA",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "HTTP schema"
7+
}
8+
],
9+
"alias": [
10+
{
11+
"code": "en-US",
12+
"content": "http;method;get;post;put;delete;path;head"
13+
}
14+
],
15+
"displayMessage": [
16+
{
17+
"code": "en-US",
18+
"content": "HTTP schema"
19+
}
20+
],
21+
"type": "'application/json' | 'application/xml' | 'text/plain' | 'text/csv' | string | undefined",
22+
"linkedDataTypeIdentifiers": [],
23+
"rules": []
24+
}

definitions/taurus/http/runtime_functions/http_request_send.proto.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
],
9999
"deprecationMessage": [],
100100
"displayIcon": "tabler:world-www",
101-
"signature": "<T>(http_method: HTTP_METHOD, headers: OBJECT<{}>, url: HTTP_URL, payload: T): HTTP_RESPONSE<any>",
101+
"signature": "<A extends HTTP_AUTH_TYPE, S extends HTTP_SCHEMA>(http_method: HTTP_METHOD, url: HTTP_URL, http_auth: A, http_auth_value: HTTP_AUTH_VALUE<A>, http_auth_place: HTTP_AUTH_PLACE<A>, http_schema: S, payload: HTTP_PAYLOAD<S>, headers?: OBJECT<{}>): HTTP_RESPONSE<any>",
102102
"linkedDataTypeIdentifiers": [
103103
"HTTP_METHOD",
104104
"OBJECT",

definitions/taurus/object/data_types/object.proto.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"content": "Object"
1919
}
2020
],
21-
"genericKeys": ["T"],
21+
"genericKeys": [
22+
"T"
23+
],
2224
"type": "{ [K in keyof T]: T[K] }",
2325
"rules": []
2426
}

0 commit comments

Comments
 (0)