@devopness/sdk-js 2.43.1 → 2.44.1
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 +12 -5
- package/dist/api/generated/apis/hooks-api.d.ts +2 -1
- package/dist/api/generated/models/hook-trigger-response.d.ts +30 -0
- package/dist/api/generated/models/hook-trigger-response.js +14 -0
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ async function authenticate(email, pass) {
|
|
|
49
49
|
authenticate('user@email.com', 'secret-password');
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
In the example above, `userTokens` is an instance of `ApiResponse` and the `data` property has the data requested from the API. See [ApiResponse.ts](https://github.com/devopness/devopness/blob/
|
|
52
|
+
In the example above, `userTokens` is an instance of `ApiResponse` and the `data` property has the data requested from the API. See [ApiResponse.ts](https://github.com/devopness/devopness/blob/main/packages/sdks/javascript/src/common/ApiResponse.ts) for reference.
|
|
53
53
|
|
|
54
54
|
### Invoking authentication protected endpoints
|
|
55
55
|
Once an authentication token is set, any protected endpoint can be invoked.
|
|
@@ -106,19 +106,26 @@ make test
|
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
### Without Docker
|
|
109
|
+
Installing on ``Linux`` or ``macOS`` systems.
|
|
109
110
|
|
|
110
|
-
#### 1.
|
|
111
|
-
|
|
111
|
+
#### 1. Navigate to the project directory!
|
|
112
|
+
```shell
|
|
113
|
+
cd packages/sdks/javascript/
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### 2. Install missing dependencies
|
|
117
|
+
This command will install all modules listed as dependencies in [package.json](package.json). **A working Java Runtime Environment is also required.** Please, check out the installation instructions
|
|
118
|
+
for your operating system.
|
|
112
119
|
```
|
|
113
120
|
npm install
|
|
114
121
|
```
|
|
115
122
|
|
|
116
|
-
####
|
|
123
|
+
#### 3. Build SDK
|
|
117
124
|
```
|
|
118
125
|
npm run build
|
|
119
126
|
```
|
|
120
127
|
|
|
121
|
-
####
|
|
128
|
+
#### 4. Run tests
|
|
122
129
|
```
|
|
123
130
|
npm run test
|
|
124
131
|
```
|
|
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Hook } from '../../generated/models';
|
|
15
15
|
import { HookCreate } from '../../generated/models';
|
|
16
|
+
import { HookTriggerResponse } from '../../generated/models';
|
|
16
17
|
import { HookUpdate } from '../../generated/models';
|
|
17
18
|
/**
|
|
18
19
|
* HooksApiService - Auto-generated
|
|
@@ -44,7 +45,7 @@ export declare class HooksApiService extends ApiBaseService {
|
|
|
44
45
|
* @summary Trigger an incoming hook associated action
|
|
45
46
|
* @param {string} hookId The ID of the hook.
|
|
46
47
|
*/
|
|
47
|
-
triggerHook(hookId: string): Promise<ApiResponse<
|
|
48
|
+
triggerHook(hookId: string): Promise<ApiResponse<HookTriggerResponse>>;
|
|
48
49
|
/**
|
|
49
50
|
*
|
|
50
51
|
* @summary Update an existing hook
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HookTriggerResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface HookTriggerResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Message containing information about the hook being triggered
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HookTriggerResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Optional error object containing details of the server error
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof HookTriggerResponse
|
|
28
|
+
*/
|
|
29
|
+
errors: object | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -81,6 +81,7 @@ export * from './hook-outgoing-trigger-when-condition-type';
|
|
|
81
81
|
export * from './hook-relation';
|
|
82
82
|
export * from './hook-request';
|
|
83
83
|
export * from './hook-request-relation';
|
|
84
|
+
export * from './hook-trigger-response';
|
|
84
85
|
export * from './hook-type';
|
|
85
86
|
export * from './hook-update';
|
|
86
87
|
export * from './hook-variable';
|
|
@@ -97,6 +97,7 @@ __exportStar(require("./hook-outgoing-trigger-when-condition-type"), exports);
|
|
|
97
97
|
__exportStar(require("./hook-relation"), exports);
|
|
98
98
|
__exportStar(require("./hook-request"), exports);
|
|
99
99
|
__exportStar(require("./hook-request-relation"), exports);
|
|
100
|
+
__exportStar(require("./hook-trigger-response"), exports);
|
|
100
101
|
__exportStar(require("./hook-type"), exports);
|
|
101
102
|
__exportStar(require("./hook-update"), exports);
|
|
102
103
|
__exportStar(require("./hook-variable"), exports);
|