@attlaz/client 1.82.0 → 1.83.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/README.md
CHANGED
|
@@ -12,13 +12,13 @@ Getting Started
|
|
|
12
12
|
Install Attlaz using `yarn`:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
yarn add attlaz
|
|
15
|
+
yarn add @attlaz/client
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or npm, if you wish:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install attlaz
|
|
21
|
+
npm install @attlaz/client
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Getting Help
|
|
@@ -6,6 +6,6 @@ import { Endpoint } from './Endpoint.js';
|
|
|
6
6
|
export declare class AccessTokenEndpoint extends Endpoint {
|
|
7
7
|
getByUser(pagination: CursorPagination, status?: UserAccessTokenStatus | null): Promise<CollectionResult<UserAccessToken>>;
|
|
8
8
|
create(name: string, scopes: string[], expiresAt: Date): Promise<UserAccessToken>;
|
|
9
|
-
update(tokenId: string, name: string
|
|
9
|
+
update(tokenId: string, name: string): Promise<UserAccessToken>;
|
|
10
10
|
revoke(tokenId: string): Promise<boolean>;
|
|
11
11
|
}
|
|
@@ -41,11 +41,11 @@ export class AccessTokenEndpoint extends Endpoint {
|
|
|
41
41
|
throw ex;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
async update(tokenId, name
|
|
44
|
+
async update(tokenId, name) {
|
|
45
45
|
try {
|
|
46
46
|
const url = '/access-tokens/' + tokenId;
|
|
47
47
|
const result = await this.requestObject(url, {
|
|
48
|
-
name,
|
|
48
|
+
name,
|
|
49
49
|
}, UserAccessToken.parse, 'POST');
|
|
50
50
|
const updatedToken = result.getData();
|
|
51
51
|
if (updatedToken === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attlaz/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.83.0",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/node": "^26.1.1",
|
|
55
55
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
56
56
|
"@typescript-eslint/parser": "^8.59.3",
|
|
57
|
-
"eslint": "^9.39.
|
|
57
|
+
"eslint": "^9.39.5",
|
|
58
58
|
"eslint-config-attlaz-base": "^1.8.0",
|
|
59
59
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
60
60
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"eslint-plugin-promise": "^7.3.0",
|
|
64
64
|
"jest": "^30.4.2",
|
|
65
65
|
"rimraf": "^6.1.3",
|
|
66
|
-
"ts-jest": "^29.4.
|
|
66
|
+
"ts-jest": "^29.4.12",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"directories": {
|