attlaz-client 1.9.12 → 1.9.13

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.
@@ -11,9 +11,6 @@ class FlowRunSummary extends FlowRun_1.FlowRun {
11
11
  }
12
12
  static parse(rawTaskExecutionSummary) {
13
13
  let taskExecutionSummary = FlowRun_1.FlowRun.parse(rawTaskExecutionSummary);
14
- if (rawTaskExecutionSummary.time === null || rawTaskExecutionSummary.time === undefined) {
15
- throw new Error('Task execution time cannot be empty');
16
- }
17
14
  taskExecutionSummary.time = Utils_1.Utils.parseRawDate(rawTaskExecutionSummary.time);
18
15
  taskExecutionSummary.runDuration = rawTaskExecutionSummary.run_duration;
19
16
  taskExecutionSummary.pendingDuration = rawTaskExecutionSummary.pending_duration;
@@ -16,7 +16,7 @@ class FlowSummary extends Flow_1.Flow {
16
16
  static parse(rawTask) {
17
17
  let task = Flow_1.Flow.parse(rawTask);
18
18
  task.status = FlowRunStatus_1.FlowRunStatus.fromString(rawTask.status);
19
- task.latestRun = Utils_1.Utils.parseRawDate(rawTask.latest_run);
19
+ task.latestRun = rawTask.latest_run === null ? null : Utils_1.Utils.parseRawDate(rawTask.latest_run);
20
20
  task.averageRunDuration = rawTask.average_run_duration;
21
21
  task.averagePendingDuration = rawTask.average_pending_duration;
22
22
  task.runCount = rawTask.run_count;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.9.12",
3
+ "version": "1.9.13",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",