attlaz-client 1.9.4 → 1.9.5

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.
@@ -1,7 +1,17 @@
1
1
  export declare enum EventType {
2
+ /** @deprecated **/
2
3
  TaskExecutionRequested,
4
+ /** @deprecated **/
3
5
  TaskExecutionStarted,
6
+ /** @deprecated **/
4
7
  TaskExecutionFailed,
8
+ /** @deprecated **/
5
9
  TaskExecutionComplete,
6
- TaskExecutionRetry
10
+ /** @deprecated **/
11
+ TaskExecutionRetry,
12
+ FlowRunRequested,
13
+ FlowRunStarted,
14
+ FlowRunFailed,
15
+ FlowRunComplete,
16
+ FlowRunRetry
7
17
  }
@@ -3,9 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventType = void 0;
4
4
  var EventType;
5
5
  (function (EventType) {
6
+ /** @deprecated **/
6
7
  EventType[EventType["TaskExecutionRequested"] = "TaskExecutionRequested"] = "TaskExecutionRequested";
8
+ /** @deprecated **/
7
9
  EventType[EventType["TaskExecutionStarted"] = "TaskExecutionStarted"] = "TaskExecutionStarted";
10
+ /** @deprecated **/
8
11
  EventType[EventType["TaskExecutionFailed"] = "TaskExecutionFailed"] = "TaskExecutionFailed";
12
+ /** @deprecated **/
9
13
  EventType[EventType["TaskExecutionComplete"] = "TaskExecutionComplete"] = "TaskExecutionComplete";
14
+ /** @deprecated **/
10
15
  EventType[EventType["TaskExecutionRetry"] = "TaskExecutionRetry"] = "TaskExecutionRetry";
16
+ EventType[EventType["FlowRunRequested"] = "FlowRunRequested"] = "FlowRunRequested";
17
+ EventType[EventType["FlowRunStarted"] = "FlowRunStarted"] = "FlowRunStarted";
18
+ EventType[EventType["FlowRunFailed"] = "FlowRunFailed"] = "FlowRunFailed";
19
+ EventType[EventType["FlowRunComplete"] = "FlowRunComplete"] = "FlowRunComplete";
20
+ EventType[EventType["FlowRunRetry"] = "FlowRunRetry"] = "FlowRunRetry";
11
21
  })(EventType = exports.EventType || (exports.EventType = {}));
@@ -4,10 +4,12 @@ import { Log } from '../Model/Log/Log';
4
4
  import { LogStreamId } from '../Model/Log/LogStreamId';
5
5
  import { CollectionResult } from '../Model/Result/CollectionResult';
6
6
  import { LogStreamInformation } from '../Model/Log/LogStreamInformation';
7
+ import { LogStream } from '../Model/Log/LogStream';
7
8
  export declare class LogEndpoint extends Endpoint {
8
9
  getLogs(logQuery: LogQuery): Promise<CollectionResult<Log>>;
9
10
  save(log: Log): Promise<Log>;
10
11
  delete(logId: string): Promise<boolean>;
11
12
  clear(logStreamId: LogStreamId): Promise<boolean>;
12
13
  getInformation(logStreamId: LogStreamId): Promise<LogStreamInformation | null>;
14
+ getByProject(projectId: string): Promise<CollectionResult<LogStream>>;
13
15
  }
@@ -4,7 +4,9 @@ exports.LogEndpoint = void 0;
4
4
  const Endpoint_1 = require("./Endpoint");
5
5
  const Log_1 = require("../Model/Log/Log");
6
6
  const Utils_1 = require("../Utils");
7
+ const LogStreamId_1 = require("../Model/Log/LogStreamId");
7
8
  const LogStreamInformation_1 = require("../Model/Log/LogStreamInformation");
9
+ const LogStream_1 = require("../Model/Log/LogStream");
8
10
  class LogEndpoint extends Endpoint_1.Endpoint {
9
11
  async getLogs(logQuery) {
10
12
  const arrQuery = [];
@@ -109,5 +111,12 @@ class LogEndpoint extends Endpoint_1.Endpoint {
109
111
  throw error;
110
112
  }
111
113
  }
114
+ async getByProject(projectId) {
115
+ const parser = (raw) => {
116
+ return new LogStream_1.LogStream(new LogStreamId_1.LogStreamId(raw['id']['id']), raw['name']);
117
+ };
118
+ const result = await this.requestCollection('project/' + projectId + '/logstreams', null, parser);
119
+ return result;
120
+ }
112
121
  }
113
122
  exports.LogEndpoint = LogEndpoint;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.9.4";
1
+ export declare const VERSION = "1.9.5";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "1.9.4";
4
+ exports.VERSION = "1.9.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",