@approvio/ts-sdk 0.0.16 → 0.0.18
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/index.cjs +4 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -57,7 +57,7 @@ function validateURL(url) {
|
|
|
57
57
|
function removeTrailingSlash(url) {
|
|
58
58
|
return url.endsWith("/") ? url.slice(0, -1) : url;
|
|
59
59
|
}
|
|
60
|
-
const USER_AGENT = `Approvio-TS-SDK/0.0.
|
|
60
|
+
const USER_AGENT = `Approvio-TS-SDK/0.0.18`;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/client/http.ts
|
|
63
63
|
/**
|
|
@@ -531,6 +531,9 @@ var ApprovioUserClient = class extends BaseApprovioClient {
|
|
|
531
531
|
getAgent(agentId) {
|
|
532
532
|
return this.get(`/agents/${agentId}`);
|
|
533
533
|
}
|
|
534
|
+
logout() {
|
|
535
|
+
return this.post("/auth/web/logout");
|
|
536
|
+
}
|
|
534
537
|
};
|
|
535
538
|
//#endregion
|
|
536
539
|
//#region src/client/agent.client.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -127,6 +127,7 @@ declare class ApprovioUserClient extends BaseApprovioClient {
|
|
|
127
127
|
}): TE.TaskEither<ApprovioError, ListOrganizationAdminsForOrg200Response>;
|
|
128
128
|
removeOrganizationAdminFromOrg(organizationName: string, data: OrganizationAdminRemove): TE.TaskEither<ApprovioError, void>;
|
|
129
129
|
getAgent(agentId: string): TE.TaskEither<ApprovioError, AgentGet200Response>;
|
|
130
|
+
logout(): TE.TaskEither<ApprovioError, void>;
|
|
130
131
|
}
|
|
131
132
|
//#endregion
|
|
132
133
|
//#region src/client/agent.client.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -127,6 +127,7 @@ declare class ApprovioUserClient extends BaseApprovioClient {
|
|
|
127
127
|
}): TE.TaskEither<ApprovioError, ListOrganizationAdminsForOrg200Response>;
|
|
128
128
|
removeOrganizationAdminFromOrg(organizationName: string, data: OrganizationAdminRemove): TE.TaskEither<ApprovioError, void>;
|
|
129
129
|
getAgent(agentId: string): TE.TaskEither<ApprovioError, AgentGet200Response>;
|
|
130
|
+
logout(): TE.TaskEither<ApprovioError, void>;
|
|
130
131
|
}
|
|
131
132
|
//#endregion
|
|
132
133
|
//#region src/client/agent.client.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ function validateURL(url) {
|
|
|
31
31
|
function removeTrailingSlash(url) {
|
|
32
32
|
return url.endsWith("/") ? url.slice(0, -1) : url;
|
|
33
33
|
}
|
|
34
|
-
const USER_AGENT = `Approvio-TS-SDK/0.0.
|
|
34
|
+
const USER_AGENT = `Approvio-TS-SDK/0.0.18`;
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/client/http.ts
|
|
37
37
|
/**
|
|
@@ -505,6 +505,9 @@ var ApprovioUserClient = class extends BaseApprovioClient {
|
|
|
505
505
|
getAgent(agentId) {
|
|
506
506
|
return this.get(`/agents/${agentId}`);
|
|
507
507
|
}
|
|
508
|
+
logout() {
|
|
509
|
+
return this.post("/auth/web/logout");
|
|
510
|
+
}
|
|
508
511
|
};
|
|
509
512
|
//#endregion
|
|
510
513
|
//#region src/client/agent.client.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@approvio/ts-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"prepublishOnly": "yarn format && yarn lint && yarn build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@approvio/api": "0.0.
|
|
37
|
+
"@approvio/api": "0.0.50",
|
|
38
38
|
"axios": "1.16.1",
|
|
39
39
|
"jose": "6.2.3"
|
|
40
40
|
},
|