attlaz-client 1.7.7 → 1.7.10
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 +27 -2
- package/dist/Service/TaskExecutionEndpoint.js +8 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Attlaz Javascript/Node client
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
[Attlaz](https://attlaz.com) is a cloud-based iPaas (Integration Platform as a Service), automation and data management platform.
|
|
5
|
+
|
|
6
|
+
Getting Started
|
|
7
|
+
---------------
|
|
8
|
+
|
|
9
|
+
Install Attlaz using `yarn`:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
yarn add attlaz-client
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or npm, if you wish:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install attlaz-client
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Getting Help
|
|
22
|
+
------------
|
|
23
|
+
|
|
24
|
+
Check the [Attlaz Documentation](https://attlaz.com/docs).
|
|
25
|
+
|
|
26
|
+
Please ask usage and debugging questions on [StackOverflow](http://stackoverflow.com/questions/tagged/attlaz) (use the ["attlaz"](http://stackoverflow.com/questions/ask?tags=attlaz) tag).
|
|
27
|
+
(Please do not ask support questions here on Bitbucket.)
|
|
@@ -6,6 +6,8 @@ const TaskExecution_1 = require("../Model/TaskExecution");
|
|
|
6
6
|
const Utils_1 = require("../Utils");
|
|
7
7
|
const TaskExecutionSummary_1 = require("../Model/TaskExecutionSummary");
|
|
8
8
|
const TaskExecutionHistory_1 = require("../Model/TaskExecutionHistory");
|
|
9
|
+
const ClientError_1 = require("../Model/Error/ClientError");
|
|
10
|
+
const HttpClient_1 = require("../Http/HttpClient");
|
|
9
11
|
class TaskExecutionEndpoint extends Endpoint_1.Endpoint {
|
|
10
12
|
getTaskExecutions(taskId) {
|
|
11
13
|
return new Promise((resolve, reject) => {
|
|
@@ -66,11 +68,14 @@ class TaskExecutionEndpoint extends Endpoint_1.Endpoint {
|
|
|
66
68
|
}
|
|
67
69
|
return TaskExecutionSummary_1.TaskExecutionSummary.parse(rawTaskExecution);
|
|
68
70
|
}
|
|
69
|
-
catch (
|
|
71
|
+
catch (error) {
|
|
72
|
+
if (error instanceof ClientError_1.ClientError && error.code === HttpClient_1.HttpClient.HTTP_NOTFOUND) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
70
75
|
if (this.httpClient.isDebugEnabled()) {
|
|
71
|
-
console.error('Failed to load tasks executions: ' +
|
|
76
|
+
console.error('Failed to load tasks executions: ' + error);
|
|
72
77
|
}
|
|
73
|
-
throw
|
|
78
|
+
throw error;
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
getTaskExecutionHistory(taskExecutionId) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.7.
|
|
1
|
+
export declare const VERSION = "1.7.10";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.10",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
|
-
"exports": "./dist/index.js",
|
|
6
5
|
"types": "./dist/index.d.ts",
|
|
7
6
|
"main": "./dist/index.js",
|
|
8
7
|
"repository": {
|
|
9
8
|
"type": "git",
|
|
10
9
|
"url": "git+https://bitbucket.org/attlaz/javascript-client.git"
|
|
11
10
|
},
|
|
11
|
+
"homepage": "https://attlaz.com",
|
|
12
12
|
"files": [
|
|
13
13
|
"dist/*"
|
|
14
14
|
],
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@types/node": "^17.0.21",
|
|
35
35
|
"jest": "^27.5.1",
|
|
36
36
|
"rimraf": "^3.0.2",
|
|
37
|
-
"ts-jest": "^27.1.3",
|
|
38
|
-
"typescript": "^4.6.2",
|
|
39
37
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
40
38
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
41
|
-
"rollup-plugin-typescript": "^1.0.1"
|
|
39
|
+
"rollup-plugin-typescript": "^1.0.1",
|
|
40
|
+
"ts-jest": "^27.1.3",
|
|
41
|
+
"typescript": "^4.6.2",
|
|
42
|
+
"dotenv": "^16.0.0"
|
|
42
43
|
},
|
|
43
|
-
"homepage": "https://bitbucket.org/attlaz/javascript-client#readme",
|
|
44
44
|
"directories": {
|
|
45
45
|
"test": "test"
|
|
46
46
|
}
|