attlaz-client 1.76.0 → 1.76.1
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.
|
@@ -4,5 +4,13 @@ import { Endpoint } from './Endpoint.js';
|
|
|
4
4
|
export declare class ProviderTokenEndpoint extends Endpoint {
|
|
5
5
|
getProviderToken(providerTokenId: string): Promise<ProviderToken | null>;
|
|
6
6
|
getProviderTokenAccessToken(providerTokenId: string): Promise<ProviderTokenAccessToken | null>;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Revoke (remove) a provider token. Optionally pass the adapter-connection configuration that holds
|
|
9
|
+
* this token — the API also unsets that exact (connection, configuration) row when it references this
|
|
10
|
+
* token, so disconnecting a connection's auth is a single request.
|
|
11
|
+
*/
|
|
12
|
+
revokeProviderToken(providerTokenId: string, connectionConfiguration?: {
|
|
13
|
+
connection: string;
|
|
14
|
+
configuration: string;
|
|
15
|
+
} | null): Promise<boolean>;
|
|
8
16
|
}
|
|
@@ -13,8 +13,17 @@ export class ProviderTokenEndpoint extends Endpoint {
|
|
|
13
13
|
const result = await this.requestObject(queryString, null, ProviderTokenAccessToken.parse);
|
|
14
14
|
return result.getData();
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Revoke (remove) a provider token. Optionally pass the adapter-connection configuration that holds
|
|
18
|
+
* this token — the API also unsets that exact (connection, configuration) row when it references this
|
|
19
|
+
* token, so disconnecting a connection's auth is a single request.
|
|
20
|
+
*/
|
|
21
|
+
async revokeProviderToken(providerTokenId, connectionConfiguration = null) {
|
|
17
22
|
const queryString = new QueryString('/provider-tokens/' + providerTokenId);
|
|
23
|
+
if (connectionConfiguration !== null) {
|
|
24
|
+
queryString.set('connection', connectionConfiguration.connection);
|
|
25
|
+
queryString.set('configuration', connectionConfiguration.configuration);
|
|
26
|
+
}
|
|
18
27
|
try {
|
|
19
28
|
const parser = (raw) => ({ deleted: raw.deleted });
|
|
20
29
|
const result = await this.requestObject(queryString, null, parser, 'DELETE');
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.76.
|
|
1
|
+
export declare const VERSION = "1.76.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.76.
|
|
1
|
+
export const VERSION = "1.76.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.76.
|
|
3
|
+
"version": "1.76.1",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/jest": "^30.0.0",
|
|
53
|
-
"@types/node": "^
|
|
53
|
+
"@types/node": "^26.0.1",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
55
55
|
"@typescript-eslint/parser": "^8.59.3",
|
|
56
56
|
"eslint": "^9.39.4",
|