Skip to content

Commit 7a47693

Browse files
Merge branch 'dev'
2 parents 56ebfc2 + 60387a4 commit 7a47693

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.1.0-alpha.6 (2020-11-10)
2+
3+
### New Features & Enhancements
4+
- feat(DataConnectors) Implement "test" method
5+
16
## 0.1.0-alpha.5 (2020-10-30)
27

38
### New Features & Enhancements

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@connio/js-sdk",
3-
"version": "0.1.0-alpha.5",
3+
"version": "0.1.0-alpha.6",
44
"description": "Connio JavaScript SDK",
55
"main": "./src/index.ts",
66
"repository": {

src/data-connectors/data-connectors.ts

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface IDataConnectors {
2121
entity: AtLeast<T, 'id'>,
2222
appRef: string,
2323
): Promise<T>;
24+
test<T extends IDataConnector>(connector: T, appRef: string): Promise<T>;
2425
}
2526
export interface IDataConnectorsOptions {
2627
client: IRestClient;
@@ -90,4 +91,11 @@ export class DataConnectors implements IDataConnectors {
9091

9192
return response;
9293
}
94+
95+
public async test<T extends IDataConnector>(connector: T, appRef: string) {
96+
return await this._client.post<T>(
97+
`${this._makeBaseUrl(appRef)}/test`,
98+
connector,
99+
);
100+
}
93101
}

0 commit comments

Comments
 (0)