conductor-node 11.7.1 → 11.8.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.
package/dist/package.json
CHANGED
|
@@ -37,6 +37,11 @@ export interface EndUser {
|
|
|
37
37
|
readonly integrationConnections: IntegrationConnection[];
|
|
38
38
|
}
|
|
39
39
|
export type EndUserCreateInput = Pick<EndUser, "companyName" | "email" | "sourceId">;
|
|
40
|
+
export interface EndUserDeleteOutput {
|
|
41
|
+
readonly id: EndUser["id"];
|
|
42
|
+
readonly objectType: EndUser["objectType"];
|
|
43
|
+
readonly deleted: boolean;
|
|
44
|
+
}
|
|
40
45
|
export interface EndUserPingOutput {
|
|
41
46
|
/**
|
|
42
47
|
* The time, in milliseconds, that it took to ping the connection.
|
|
@@ -57,6 +62,10 @@ export default class EndUsersResource extends BaseResource {
|
|
|
57
62
|
* Retrieves the specified EndUser.
|
|
58
63
|
*/
|
|
59
64
|
retrieve(id: EndUser["id"]): Promise<EndUser>;
|
|
65
|
+
/**
|
|
66
|
+
* Deletes the specified EndUser and all of its connections.
|
|
67
|
+
*/
|
|
68
|
+
delete(id: EndUser["id"]): Promise<EndUserDeleteOutput>;
|
|
60
69
|
/**
|
|
61
70
|
* Checks whether the specified IntegrationConnection can connect and process
|
|
62
71
|
* requests end-to-end.
|
|
@@ -27,6 +27,13 @@ class EndUsersResource extends BaseResource_1.default {
|
|
|
27
27
|
const { data } = await this.httpClient.get(`${this.ROUTE}/${id}`);
|
|
28
28
|
return data;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Deletes the specified EndUser and all of its connections.
|
|
32
|
+
*/
|
|
33
|
+
async delete(id) {
|
|
34
|
+
const { data } = await this.httpClient.delete(`${this.ROUTE}/${id}`);
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
30
37
|
/**
|
|
31
38
|
* Checks whether the specified IntegrationConnection can connect and process
|
|
32
39
|
* requests end-to-end.
|