(
token: string,
body: {
owner: "org" | "user";
name: string;
integration: string;
template: string;
value: string;
},
)
| 90 | ); |
| 91 | |
| 92 | const createConnection = ( |
| 93 | token: string, |
| 94 | body: { |
| 95 | owner: "org" | "user"; |
| 96 | name: string; |
| 97 | integration: string; |
| 98 | template: string; |
| 99 | value: string; |
| 100 | }, |
| 101 | ) => |
| 102 | handler( |
| 103 | new Request(`${BASE}/api/connections`, { |
| 104 | method: "POST", |
| 105 | headers: { |
| 106 | authorization: `Bearer ${token}`, |
| 107 | "content-type": "application/json", |
| 108 | }, |
| 109 | body: JSON.stringify(body), |
| 110 | }), |
| 111 | ); |
| 112 | |
| 113 | const connectionAddresses = async (token: string): Promise<string[]> => { |
| 114 | const res = await handler( |
no test coverage detected