attlaz-client 1.14.1 → 1.14.3
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.
|
@@ -6,6 +6,7 @@ export class HealthAlert {
|
|
|
6
6
|
healthTestType;
|
|
7
7
|
status;
|
|
8
8
|
date;
|
|
9
|
+
updated;
|
|
9
10
|
data = [];
|
|
10
11
|
constructor(healthTestType, status) {
|
|
11
12
|
this.healthTestType = healthTestType;
|
|
@@ -17,6 +18,7 @@ export class HealthAlert {
|
|
|
17
18
|
const healthAlert = new HealthAlert(HealthTestType.fromString(raw.health_test_type), HealthAlertStatus.fromString(raw.status));
|
|
18
19
|
healthAlert.id = raw.id;
|
|
19
20
|
healthAlert.date = Utils.parseRawDate(raw.date);
|
|
21
|
+
healthAlert.updated = Utils.parseRawDate(raw.updated);
|
|
20
22
|
healthAlert.data = raw.data;
|
|
21
23
|
return healthAlert;
|
|
22
24
|
}
|
|
@@ -3,6 +3,7 @@ import { WorkspaceMemberInviteState } from './WorkspaceMemberInviteState.js';
|
|
|
3
3
|
import { Utils } from '../../Utils.js';
|
|
4
4
|
export class WorkspaceMember {
|
|
5
5
|
id;
|
|
6
|
+
workspaceId;
|
|
6
7
|
email;
|
|
7
8
|
invite;
|
|
8
9
|
last_login = null;
|
|
@@ -12,6 +13,7 @@ export class WorkspaceMember {
|
|
|
12
13
|
static parse(rawMember) {
|
|
13
14
|
const member = new WorkspaceMember();
|
|
14
15
|
member.id = rawMember.id;
|
|
16
|
+
member.workspaceId = rawMember.workspace;
|
|
15
17
|
member.email = rawMember.email;
|
|
16
18
|
member.invite = Utils.isTrue(rawMember.invite);
|
|
17
19
|
if (rawMember.last_login !== null && rawMember.last_login !== undefined) {
|
package/dist/Service/Endpoint.js
CHANGED
|
@@ -113,7 +113,7 @@ export class Endpoint {
|
|
|
113
113
|
throw new Error('Unable to parse object: response is empty for action `[' + method + '] ' + action + '`');
|
|
114
114
|
}
|
|
115
115
|
if ((Object.prototype.hasOwnProperty.call(requestResponse, 'data') && !Object.prototype.hasOwnProperty.call(requestResponse, 'id')) && requestResponse.data !== undefined) {
|
|
116
|
-
console.error('Response for object "' + action + '" seem to still use old "data" property', { requestResponse });
|
|
116
|
+
console.error('Response for object "' + action + '" seem to still use old "data" property (this property is only used for collection requests)', { requestResponse });
|
|
117
117
|
requestResponse = requestResponse.data;
|
|
118
118
|
}
|
|
119
119
|
result.setData(this.parseObject(requestResponse, parser));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "^29.5.2",
|
|
49
|
-
"@types/node": "^
|
|
49
|
+
"@types/node": "^22.1.0",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
51
51
|
"@typescript-eslint/parser": "^7.1.0",
|
|
52
52
|
"dotenv": "^16.3.1",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"eslint-plugin-import": "^2.27.5",
|
|
56
56
|
"eslint-plugin-jsdoc": "^48.2.0",
|
|
57
57
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
58
|
-
"eslint-plugin-promise": "^
|
|
58
|
+
"eslint-plugin-promise": "^7.0.0",
|
|
59
59
|
"jest": "^29.5.0",
|
|
60
|
-
"rimraf": "^
|
|
60
|
+
"rimraf": "^6.0.1",
|
|
61
61
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
62
62
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
63
63
|
"rollup-plugin-typescript": "^1.0.1",
|