attlaz-client 1.9.19 → 1.9.21

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.
@@ -5,11 +5,11 @@ class CodeSource {
5
5
  static parse(rawCodeSource) {
6
6
  let codeSource = new CodeSource();
7
7
  codeSource.id = rawCodeSource.id;
8
- codeSource.codeSourceAccountId = rawCodeSource.codeSourceAccountId;
8
+ codeSource.codeSourceAccountId = rawCodeSource.code_source_account;
9
9
  codeSource.repository = rawCodeSource.repository;
10
10
  codeSource.branch = rawCodeSource.branch;
11
- codeSource.platformId = rawCodeSource.platformId;
12
- codeSource.buildStrategyId = rawCodeSource.buildStrategyId;
11
+ codeSource.platformId = rawCodeSource.platform;
12
+ codeSource.buildStrategyId = rawCodeSource.build_strategy;
13
13
  return codeSource;
14
14
  }
15
15
  }
@@ -18,7 +18,7 @@ class Log {
18
18
  static parse(rawLog) {
19
19
  const date = new Date(rawLog.date);
20
20
  const level = LogLevel_1.LogLevel.fromString(rawLog.level);
21
- const logStream = new LogStreamId_1.LogStreamId(rawLog.logStream.id);
21
+ const logStream = new LogStreamId_1.LogStreamId(rawLog.log_stream.id);
22
22
  let log = new Log(logStream, rawLog.message, level, date);
23
23
  log.id = rawLog.id;
24
24
  log.context = rawLog.context;
@@ -13,6 +13,5 @@ export declare class User implements StateAware {
13
13
  time_format: string;
14
14
  picture: string;
15
15
  state: State;
16
- last_active: Date | null;
17
16
  static parse(rawUser: any): User;
18
17
  }
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.User = void 0;
4
- const Utils_1 = require("../Utils");
5
4
  const State_1 = require("./State");
6
5
  class User {
7
6
  constructor() {
8
7
  this.state = State_1.State.Active;
9
- this.last_active = null;
10
8
  }
11
9
  static parse(rawUser) {
12
10
  let user = new User();
@@ -21,9 +19,6 @@ class User {
21
19
  user.time_format = rawUser.time_format;
22
20
  user.picture = rawUser.picture;
23
21
  user.state = State_1.State.fromString(rawUser.state);
24
- if (rawUser.last_active !== null && rawUser.last_active !== undefined) {
25
- user.last_active = Utils_1.Utils.parseRawDate(rawUser.last_active);
26
- }
27
22
  return user;
28
23
  }
29
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.9.19",
3
+ "version": "1.9.21",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",