@devopness/sdk-js 1.99.0 → 1.101.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/dist/api/generated/apis/hooks-incoming-api.d.ts +10 -10
- package/dist/api/generated/apis/hooks-incoming-api.js +24 -24
- package/dist/api/generated/apis/hooks-outgoing-api.d.ts +9 -9
- package/dist/api/generated/apis/hooks-outgoing-api.js +19 -19
- package/dist/api/generated/apis/hooks-requests-api.d.ts +4 -4
- package/dist/api/generated/apis/hooks-requests-api.js +12 -12
- package/dist/api/generated/models/action.d.ts +6 -0
- package/dist/api/generated/models/cloud-service.d.ts +2 -2
- package/dist/api/generated/models/cloud-service.js +2 -2
- package/dist/api/generated/models/hook-incoming-create.d.ts +3 -3
- package/dist/api/generated/models/hook-incoming-params.d.ts +38 -0
- package/dist/api/generated/models/{hook-setting.js → hook-incoming-params.js} +0 -0
- package/dist/api/generated/models/{hook-setting.d.ts → hook-incoming-setting.d.ts} +4 -4
- package/dist/api/generated/models/hook-incoming-setting.js +14 -0
- package/dist/api/generated/models/hook-incoming-update.d.ts +14 -0
- package/dist/api/generated/models/hook-incoming.d.ts +18 -0
- package/dist/api/generated/models/hook-incoming.js +14 -0
- package/dist/api/generated/models/hook-outgoing-create.d.ts +7 -0
- package/dist/api/generated/models/hook-outgoing-params.d.ts +38 -0
- package/dist/api/generated/models/hook-outgoing-params.js +14 -0
- package/dist/api/generated/models/hook-outgoing-request-header.d.ts +30 -0
- package/dist/api/generated/models/hook-outgoing-request-header.js +14 -0
- package/dist/api/generated/models/hook-outgoing-setting.d.ts +31 -0
- package/dist/api/generated/models/hook-outgoing-setting.js +14 -0
- package/dist/api/generated/models/hook-outgoing-update.d.ts +7 -0
- package/dist/api/generated/models/hook-outgoing.d.ts +18 -0
- package/dist/api/generated/models/hook-outgoing.js +14 -0
- package/dist/api/generated/models/hook-relation.d.ts +4 -3
- package/dist/api/generated/models/hook.d.ts +1 -28
- package/dist/api/generated/models/index.d.ts +7 -1
- package/dist/api/generated/models/index.js +7 -1
- package/dist/api/generated/models/server-cloud-service-name.d.ts +2 -2
- package/dist/api/generated/models/server-cloud-service-name.js +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { HookIncoming } from '../../generated/models';
|
|
15
15
|
import { HookIncomingCreate } from '../../generated/models';
|
|
16
16
|
import { HookIncomingUpdate } from '../../generated/models';
|
|
17
17
|
/**
|
|
@@ -23,31 +23,31 @@ export declare class HooksIncomingApiService extends ApiBaseService {
|
|
|
23
23
|
* @summary Create an incoming hook to a specific resource
|
|
24
24
|
* @param {HookIncomingCreate} hookIncomingCreate A JSON object containing incoming hook data
|
|
25
25
|
*/
|
|
26
|
-
addIncomingHook(hookIncomingCreate: HookIncomingCreate): Promise<ApiResponse<
|
|
26
|
+
addIncomingHook(hookIncomingCreate: HookIncomingCreate): Promise<ApiResponse<HookIncoming>>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @summary Delete a given incoming hook
|
|
30
|
-
* @param {string}
|
|
30
|
+
* @param {string} hookIncomingId Unique ID of the incoming hook to be deleted
|
|
31
31
|
*/
|
|
32
|
-
deleteIncomingHook(
|
|
32
|
+
deleteIncomingHook(hookIncomingId: string): Promise<ApiResponse<void>>;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @summary Get an incoming hook by Id
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} hookIncomingId Unique ID of the hook to be retrieved
|
|
37
37
|
*/
|
|
38
|
-
getIncomingHook(
|
|
38
|
+
getIncomingHook(hookIncomingId: string): Promise<ApiResponse<HookIncoming>>;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @summary Trigger an incoming hook associated action
|
|
42
|
-
* @param {string}
|
|
42
|
+
* @param {string} hookIncomingId Unique ID of the hook to be triggered
|
|
43
43
|
* @param {object} [body] A JSON object containg hook variables
|
|
44
44
|
*/
|
|
45
|
-
triggerHook(
|
|
45
|
+
triggerHook(hookIncomingId: string, body?: object): Promise<ApiResponse<void>>;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @summary Update an existing incoming hook
|
|
49
|
-
* @param {string}
|
|
49
|
+
* @param {string} hookIncomingId Unique ID of the hook to be updated
|
|
50
50
|
* @param {HookIncomingUpdate} hookIncomingUpdate A JSON object containing incoming hook data
|
|
51
51
|
*/
|
|
52
|
-
updateIncomingHook(
|
|
52
|
+
updateIncomingHook(hookIncomingId: string, hookIncomingUpdate: HookIncomingUpdate): Promise<ApiResponse<void>>;
|
|
53
53
|
}
|
|
@@ -48,69 +48,69 @@ class HooksIncomingApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Delete a given incoming hook
|
|
51
|
-
* @param {string}
|
|
51
|
+
* @param {string} hookIncomingId Unique ID of the incoming hook to be deleted
|
|
52
52
|
*/
|
|
53
|
-
deleteIncomingHook(
|
|
53
|
+
deleteIncomingHook(hookIncomingId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
if (
|
|
56
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
55
|
+
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
56
|
+
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'deleteIncomingHook');
|
|
57
57
|
}
|
|
58
58
|
let queryString = '';
|
|
59
|
-
const requestUrl = '/hooks/incoming/{
|
|
60
|
-
const response = yield this.delete(requestUrl.replace(`{${"
|
|
59
|
+
const requestUrl = '/hooks/incoming/{hook_incoming_id}' + (queryString ? `?${queryString}` : '');
|
|
60
|
+
const response = yield this.delete(requestUrl.replace(`{${"hook_incoming_id"}}`, encodeURIComponent(String(hookIncomingId))));
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Get an incoming hook by Id
|
|
67
|
-
* @param {string}
|
|
67
|
+
* @param {string} hookIncomingId Unique ID of the hook to be retrieved
|
|
68
68
|
*/
|
|
69
|
-
getIncomingHook(
|
|
69
|
+
getIncomingHook(hookIncomingId) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
if (
|
|
72
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
71
|
+
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
72
|
+
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'getIncomingHook');
|
|
73
73
|
}
|
|
74
74
|
let queryString = '';
|
|
75
|
-
const requestUrl = '/hooks/incoming/{
|
|
76
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
75
|
+
const requestUrl = '/hooks/incoming/{hook_incoming_id}' + (queryString ? `?${queryString}` : '');
|
|
76
|
+
const response = yield this.get(requestUrl.replace(`{${"hook_incoming_id"}}`, encodeURIComponent(String(hookIncomingId))));
|
|
77
77
|
return new ApiResponse_1.ApiResponse(response);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @summary Trigger an incoming hook associated action
|
|
83
|
-
* @param {string}
|
|
83
|
+
* @param {string} hookIncomingId Unique ID of the hook to be triggered
|
|
84
84
|
* @param {object} [body] A JSON object containg hook variables
|
|
85
85
|
*/
|
|
86
|
-
triggerHook(
|
|
86
|
+
triggerHook(hookIncomingId, body) {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
if (
|
|
89
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
88
|
+
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
89
|
+
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'triggerHook');
|
|
90
90
|
}
|
|
91
91
|
let queryString = '';
|
|
92
|
-
const requestUrl = '/hooks/incoming/{
|
|
93
|
-
const response = yield this.post(requestUrl.replace(`{${"
|
|
92
|
+
const requestUrl = '/hooks/incoming/{hook_incoming_id}' + (queryString ? `?${queryString}` : '');
|
|
93
|
+
const response = yield this.post(requestUrl.replace(`{${"hook_incoming_id"}}`, encodeURIComponent(String(hookIncomingId))));
|
|
94
94
|
return new ApiResponse_1.ApiResponse(response);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @summary Update an existing incoming hook
|
|
100
|
-
* @param {string}
|
|
100
|
+
* @param {string} hookIncomingId Unique ID of the hook to be updated
|
|
101
101
|
* @param {HookIncomingUpdate} hookIncomingUpdate A JSON object containing incoming hook data
|
|
102
102
|
*/
|
|
103
|
-
updateIncomingHook(
|
|
103
|
+
updateIncomingHook(hookIncomingId, hookIncomingUpdate) {
|
|
104
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
if (
|
|
106
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
105
|
+
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
106
|
+
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'updateIncomingHook');
|
|
107
107
|
}
|
|
108
108
|
if (hookIncomingUpdate === null || hookIncomingUpdate === undefined) {
|
|
109
109
|
throw new Exceptions_1.ArgumentNullException('hookIncomingUpdate', 'updateIncomingHook');
|
|
110
110
|
}
|
|
111
111
|
let queryString = '';
|
|
112
|
-
const requestUrl = '/hooks/incoming/{
|
|
113
|
-
const response = yield this.put(requestUrl.replace(`{${"
|
|
112
|
+
const requestUrl = '/hooks/incoming/{hook_incoming_id}' + (queryString ? `?${queryString}` : '');
|
|
113
|
+
const response = yield this.put(requestUrl.replace(`{${"hook_incoming_id"}}`, encodeURIComponent(String(hookIncomingId))), hookIncomingUpdate);
|
|
114
114
|
return new ApiResponse_1.ApiResponse(response);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { HookOutgoing } from '../../generated/models';
|
|
15
15
|
import { HookOutgoingCreate } from '../../generated/models';
|
|
16
16
|
import { HookOutgoingUpdate } from '../../generated/models';
|
|
17
17
|
/**
|
|
@@ -19,28 +19,28 @@ import { HookOutgoingUpdate } from '../../generated/models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class HooksOutgoingApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* The fields `target_url`, `settings.request_body` and `settings.request_headers` accept variables that will be expanded when the hook is triggered. The syntax to use variables are using dot-notation inside `{{` and `}}` tags, for example: ```json { \"settings\": { \"request_headers\": [ { \"name\": \"Authorization\", \"value\": \"Bearer {{ application.source_provider.access_token }}\" } ] } } ``` Where `{{ application.source_provider.access_token }}` will be expanded to access token of the application related to outgoing hook by `resource_type` and `resource_id` fields. The valid resources that can be accesed by variables are: * `action` - The action that have triggered the hook. The fields are the same returned by the [GET /actions/{id}](#operation/getAction) endpoint, e.g.: `{{ action.status }}` * `hook` - The outgoing hook itself. The fields are the same returned by the [GET /hooks/outgoing/{id}](#operation/getOutgoingHook) endpoint, e.g.: `{{ hook.secret }}` * `user` - The user that triggered the hook. The fields are the same returned by the [GET /users/{id}](#operation/getUser) endpoint, e.g.: `{{ user.name }}` And the resource related to outgoing hook is also accessible by variables using it\'s resource name. For instance an outgoing hook related to a daemon can get the daemon\'s command using: `{{ daemon.command }}` If the resource is an application, the deployment resource is also accessible by variables. For instance `{{ deployment.source.pull_request_id }}` to get the pull request source information of the deployment. **Note**: usually sub-resources relations of a resource are not accessible on outgoing hooks variables. For instance the `{{ daemon.project.name }}` is **not** a valid variable. An exception to this rule is the `application` resource that has the `source_provider` sub-resource that exposes the additional `access_token` field, which is not public by default.
|
|
23
23
|
* @summary Create an outgoing hook to a specific resource
|
|
24
24
|
* @param {HookOutgoingCreate} hookOutgoingCreate A JSON object containing outgoing hook data
|
|
25
25
|
*/
|
|
26
|
-
addOutgoinHook(hookOutgoingCreate: HookOutgoingCreate): Promise<ApiResponse<
|
|
26
|
+
addOutgoinHook(hookOutgoingCreate: HookOutgoingCreate): Promise<ApiResponse<HookOutgoing>>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @summary Delete a given outgoing hook
|
|
30
|
-
* @param {string}
|
|
30
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be deleted
|
|
31
31
|
*/
|
|
32
|
-
deleteOutgoingHook(
|
|
32
|
+
deleteOutgoingHook(hookOutgoingId: string): Promise<ApiResponse<void>>;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @summary Get an outgoing hook by Id
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be retrieved
|
|
37
37
|
*/
|
|
38
|
-
getOutgoingHook(
|
|
38
|
+
getOutgoingHook(hookOutgoingId: string): Promise<ApiResponse<HookOutgoing>>;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @summary Update an existing outgoing hook
|
|
42
|
-
* @param {string}
|
|
42
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be updated
|
|
43
43
|
* @param {HookOutgoingUpdate} hookOutgoingUpdate A JSON object containing outgoing hook data
|
|
44
44
|
*/
|
|
45
|
-
updateOutgoingHook(
|
|
45
|
+
updateOutgoingHook(hookOutgoingId: string, hookOutgoingUpdate: HookOutgoingUpdate): Promise<ApiResponse<void>>;
|
|
46
46
|
}
|
|
@@ -30,7 +30,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
30
30
|
*/
|
|
31
31
|
class HooksOutgoingApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* The fields `target_url`, `settings.request_body` and `settings.request_headers` accept variables that will be expanded when the hook is triggered. The syntax to use variables are using dot-notation inside `{{` and `}}` tags, for example: ```json { \"settings\": { \"request_headers\": [ { \"name\": \"Authorization\", \"value\": \"Bearer {{ application.source_provider.access_token }}\" } ] } } ``` Where `{{ application.source_provider.access_token }}` will be expanded to access token of the application related to outgoing hook by `resource_type` and `resource_id` fields. The valid resources that can be accesed by variables are: * `action` - The action that have triggered the hook. The fields are the same returned by the [GET /actions/{id}](#operation/getAction) endpoint, e.g.: `{{ action.status }}` * `hook` - The outgoing hook itself. The fields are the same returned by the [GET /hooks/outgoing/{id}](#operation/getOutgoingHook) endpoint, e.g.: `{{ hook.secret }}` * `user` - The user that triggered the hook. The fields are the same returned by the [GET /users/{id}](#operation/getUser) endpoint, e.g.: `{{ user.name }}` And the resource related to outgoing hook is also accessible by variables using it\'s resource name. For instance an outgoing hook related to a daemon can get the daemon\'s command using: `{{ daemon.command }}` If the resource is an application, the deployment resource is also accessible by variables. For instance `{{ deployment.source.pull_request_id }}` to get the pull request source information of the deployment. **Note**: usually sub-resources relations of a resource are not accessible on outgoing hooks variables. For instance the `{{ daemon.project.name }}` is **not** a valid variable. An exception to this rule is the `application` resource that has the `source_provider` sub-resource that exposes the additional `access_token` field, which is not public by default.
|
|
34
34
|
* @summary Create an outgoing hook to a specific resource
|
|
35
35
|
* @param {HookOutgoingCreate} hookOutgoingCreate A JSON object containing outgoing hook data
|
|
36
36
|
*/
|
|
@@ -48,52 +48,52 @@ class HooksOutgoingApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Delete a given outgoing hook
|
|
51
|
-
* @param {string}
|
|
51
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be deleted
|
|
52
52
|
*/
|
|
53
|
-
deleteOutgoingHook(
|
|
53
|
+
deleteOutgoingHook(hookOutgoingId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
if (
|
|
56
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
55
|
+
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
56
|
+
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'deleteOutgoingHook');
|
|
57
57
|
}
|
|
58
58
|
let queryString = '';
|
|
59
|
-
const requestUrl = '/hooks/outgoing/{
|
|
60
|
-
const response = yield this.delete(requestUrl.replace(`{${"
|
|
59
|
+
const requestUrl = '/hooks/outgoing/{hook_outgoing_id}' + (queryString ? `?${queryString}` : '');
|
|
60
|
+
const response = yield this.delete(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))));
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Get an outgoing hook by Id
|
|
67
|
-
* @param {string}
|
|
67
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be retrieved
|
|
68
68
|
*/
|
|
69
|
-
getOutgoingHook(
|
|
69
|
+
getOutgoingHook(hookOutgoingId) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
if (
|
|
72
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
71
|
+
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
72
|
+
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'getOutgoingHook');
|
|
73
73
|
}
|
|
74
74
|
let queryString = '';
|
|
75
|
-
const requestUrl = '/hooks/outgoing/{
|
|
76
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
75
|
+
const requestUrl = '/hooks/outgoing/{hook_outgoing_id}' + (queryString ? `?${queryString}` : '');
|
|
76
|
+
const response = yield this.get(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))));
|
|
77
77
|
return new ApiResponse_1.ApiResponse(response);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @summary Update an existing outgoing hook
|
|
83
|
-
* @param {string}
|
|
83
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be updated
|
|
84
84
|
* @param {HookOutgoingUpdate} hookOutgoingUpdate A JSON object containing outgoing hook data
|
|
85
85
|
*/
|
|
86
|
-
updateOutgoingHook(
|
|
86
|
+
updateOutgoingHook(hookOutgoingId, hookOutgoingUpdate) {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
if (
|
|
89
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
88
|
+
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
89
|
+
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'updateOutgoingHook');
|
|
90
90
|
}
|
|
91
91
|
if (hookOutgoingUpdate === null || hookOutgoingUpdate === undefined) {
|
|
92
92
|
throw new Exceptions_1.ArgumentNullException('hookOutgoingUpdate', 'updateOutgoingHook');
|
|
93
93
|
}
|
|
94
94
|
let queryString = '';
|
|
95
|
-
const requestUrl = '/hooks/outgoing/{
|
|
96
|
-
const response = yield this.put(requestUrl.replace(`{${"
|
|
95
|
+
const requestUrl = '/hooks/outgoing/{hook_outgoing_id}' + (queryString ? `?${queryString}` : '');
|
|
96
|
+
const response = yield this.put(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))), hookOutgoingUpdate);
|
|
97
97
|
return new ApiResponse_1.ApiResponse(response);
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -26,13 +26,13 @@ export declare class HooksRequestsApiService extends ApiBaseService {
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @summary Returns a list of all hook requests belonging to an incoming hook
|
|
29
|
-
* @param {string}
|
|
29
|
+
* @param {string} hookIncomingId Unique ID of the incoming hook to retrieve request list
|
|
30
30
|
*/
|
|
31
|
-
listIncomingHookRequests(
|
|
31
|
+
listIncomingHookRequests(hookIncomingId: string): Promise<ApiResponse<Array<HookRequestRelation>>>;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Returns a list of all hook requests belonging to an outgoing hook
|
|
35
|
-
* @param {string}
|
|
35
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to retrieve request list
|
|
36
36
|
*/
|
|
37
|
-
listOutgoingHookRequests(
|
|
37
|
+
listOutgoingHookRequests(hookOutgoingId: string): Promise<ApiResponse<Array<HookRequestRelation>>>;
|
|
38
38
|
}
|
|
@@ -48,32 +48,32 @@ class HooksRequestsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Returns a list of all hook requests belonging to an incoming hook
|
|
51
|
-
* @param {string}
|
|
51
|
+
* @param {string} hookIncomingId Unique ID of the incoming hook to retrieve request list
|
|
52
52
|
*/
|
|
53
|
-
listIncomingHookRequests(
|
|
53
|
+
listIncomingHookRequests(hookIncomingId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
if (
|
|
56
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
55
|
+
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
56
|
+
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'listIncomingHookRequests');
|
|
57
57
|
}
|
|
58
58
|
let queryString = '';
|
|
59
|
-
const requestUrl = '/hooks/incoming/{
|
|
60
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
59
|
+
const requestUrl = '/hooks/incoming/{hook_incoming_id}/requests' + (queryString ? `?${queryString}` : '');
|
|
60
|
+
const response = yield this.get(requestUrl.replace(`{${"hook_incoming_id"}}`, encodeURIComponent(String(hookIncomingId))));
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Returns a list of all hook requests belonging to an outgoing hook
|
|
67
|
-
* @param {string}
|
|
67
|
+
* @param {string} hookOutgoingId Unique ID of the outgoing hook to retrieve request list
|
|
68
68
|
*/
|
|
69
|
-
listOutgoingHookRequests(
|
|
69
|
+
listOutgoingHookRequests(hookOutgoingId) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
if (
|
|
72
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
71
|
+
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
72
|
+
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'listOutgoingHookRequests');
|
|
73
73
|
}
|
|
74
74
|
let queryString = '';
|
|
75
|
-
const requestUrl = '/hooks/outgoing/{
|
|
76
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
75
|
+
const requestUrl = '/hooks/outgoing/{hook_outgoing_id}/requests' + (queryString ? `?${queryString}` : '');
|
|
76
|
+
const response = yield this.get(requestUrl.replace(`{${"hook_outgoing_id"}}`, encodeURIComponent(String(hookOutgoingId))));
|
|
77
77
|
return new ApiResponse_1.ApiResponse(response);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -54,6 +54,12 @@ export interface Action {
|
|
|
54
54
|
* @memberof Action
|
|
55
55
|
*/
|
|
56
56
|
summary: ActionSummary;
|
|
57
|
+
/**
|
|
58
|
+
* The permalink URL to the action details on Devopness web app
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof Action
|
|
61
|
+
*/
|
|
62
|
+
url_web_permalink: string;
|
|
57
63
|
/**
|
|
58
64
|
* List of actions dispatched to servers
|
|
59
65
|
* @type {Array<ServerAction>}
|
|
@@ -19,7 +19,7 @@ exports.CloudServiceCodeEnum = void 0;
|
|
|
19
19
|
*/
|
|
20
20
|
var CloudServiceCodeEnum;
|
|
21
21
|
(function (CloudServiceCodeEnum) {
|
|
22
|
-
CloudServiceCodeEnum["
|
|
23
|
-
CloudServiceCodeEnum["
|
|
22
|
+
CloudServiceCodeEnum["AwsEc2"] = "aws-ec2";
|
|
23
|
+
CloudServiceCodeEnum["DigitaloceanDroplet"] = "digitalocean-droplet";
|
|
24
24
|
CloudServiceCodeEnum["GcpGce"] = "gcp-gce";
|
|
25
25
|
})(CloudServiceCodeEnum = exports.CloudServiceCodeEnum || (exports.CloudServiceCodeEnum = {}));
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookIncomingSetting } from './hook-incoming-setting';
|
|
13
14
|
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
14
|
-
import { HookSetting } from './hook-setting';
|
|
15
15
|
import { ResourceType } from './resource-type';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
@@ -75,8 +75,8 @@ export interface HookIncomingCreate {
|
|
|
75
75
|
trigger_when?: Array<HookIncomingTriggerWhenCondition>;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
|
-
* @type {
|
|
78
|
+
* @type {HookIncomingSetting}
|
|
79
79
|
* @memberof HookIncomingCreate
|
|
80
80
|
*/
|
|
81
|
-
settings?:
|
|
81
|
+
settings?: HookIncomingSetting;
|
|
82
82
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
import { HookIncomingSetting } from './hook-incoming-setting';
|
|
13
|
+
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HookIncomingParams
|
|
18
|
+
*/
|
|
19
|
+
export interface HookIncomingParams {
|
|
20
|
+
/**
|
|
21
|
+
* The URL where the incoming hook must be triggered with a POST request
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof HookIncomingParams
|
|
24
|
+
*/
|
|
25
|
+
url: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Conditions that must be met to trigger the hook.
|
|
28
|
+
* @type {Array<HookIncomingTriggerWhenCondition>}
|
|
29
|
+
* @memberof HookIncomingParams
|
|
30
|
+
*/
|
|
31
|
+
trigger_when: Array<HookIncomingTriggerWhenCondition>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {HookIncomingSetting}
|
|
35
|
+
* @memberof HookIncomingParams
|
|
36
|
+
*/
|
|
37
|
+
settings: HookIncomingSetting;
|
|
38
|
+
}
|
|
File without changes
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { HookVariable } from './hook-variable';
|
|
13
13
|
/**
|
|
14
|
-
* Settings to
|
|
14
|
+
* Settings to an incoming hook
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface HookIncomingSetting
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface HookIncomingSetting {
|
|
19
19
|
/**
|
|
20
20
|
* List of variables to incoming hook
|
|
21
21
|
* @type {Array<HookVariable>}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof HookIncomingSetting
|
|
23
23
|
*/
|
|
24
24
|
variables?: Array<HookVariable>;
|
|
25
25
|
}
|
|
@@ -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 });
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { HookIncomingSetting } from './hook-incoming-setting';
|
|
13
|
+
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -51,4 +53,16 @@ export interface HookIncomingUpdate {
|
|
|
51
53
|
* @memberof HookIncomingUpdate
|
|
52
54
|
*/
|
|
53
55
|
active?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Conditions that must be met to trigger the hook.
|
|
58
|
+
* @type {Array<HookIncomingTriggerWhenCondition>}
|
|
59
|
+
* @memberof HookIncomingUpdate
|
|
60
|
+
*/
|
|
61
|
+
trigger_when?: Array<HookIncomingTriggerWhenCondition>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {HookIncomingSetting}
|
|
65
|
+
* @memberof HookIncomingUpdate
|
|
66
|
+
*/
|
|
67
|
+
settings?: HookIncomingSetting;
|
|
54
68
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { Hook } from './hook';
|
|
13
|
+
import { HookIncomingParams } from './hook-incoming-params';
|
|
14
|
+
/**
|
|
15
|
+
* @type HookIncoming
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare type HookIncoming = Hook & HookIncomingParams;
|
|
@@ -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 });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookOutgoingSetting } from './hook-outgoing-setting';
|
|
13
14
|
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
14
15
|
import { ResourceType } from './resource-type';
|
|
15
16
|
/**
|
|
@@ -60,4 +61,10 @@ export interface HookOutgoingCreate {
|
|
|
60
61
|
* @memberof HookOutgoingCreate
|
|
61
62
|
*/
|
|
62
63
|
trigger_when: Array<HookOutgoingTriggerWhenCondition>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {HookOutgoingSetting}
|
|
67
|
+
* @memberof HookOutgoingCreate
|
|
68
|
+
*/
|
|
69
|
+
settings?: HookOutgoingSetting;
|
|
63
70
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
import { HookOutgoingSetting } from './hook-outgoing-setting';
|
|
13
|
+
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HookOutgoingParams
|
|
18
|
+
*/
|
|
19
|
+
export interface HookOutgoingParams {
|
|
20
|
+
/**
|
|
21
|
+
* The target URL on outgoing hooks where Devopness should trigger a request
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof HookOutgoingParams
|
|
24
|
+
*/
|
|
25
|
+
target_url: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Conditions that must be met to trigger the hook.
|
|
28
|
+
* @type {Array<HookOutgoingTriggerWhenCondition>}
|
|
29
|
+
* @memberof HookOutgoingParams
|
|
30
|
+
*/
|
|
31
|
+
trigger_when: Array<HookOutgoingTriggerWhenCondition>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {HookOutgoingSetting}
|
|
35
|
+
* @memberof HookOutgoingParams
|
|
36
|
+
*/
|
|
37
|
+
settings: HookOutgoingSetting;
|
|
38
|
+
}
|
|
@@ -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 });
|
|
@@ -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 HookOutgoingRequestHeader
|
|
16
|
+
*/
|
|
17
|
+
export interface HookOutgoingRequestHeader {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the HTTP header.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HookOutgoingRequestHeader
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the HTTP header.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof HookOutgoingRequestHeader
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
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 });
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import { HookOutgoingRequestHeader } from './hook-outgoing-request-header';
|
|
13
|
+
/**
|
|
14
|
+
* Settings to an outgoing hook
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HookOutgoingSetting
|
|
17
|
+
*/
|
|
18
|
+
export interface HookOutgoingSetting {
|
|
19
|
+
/**
|
|
20
|
+
* List of outgoing hook request headers
|
|
21
|
+
* @type {Array<HookOutgoingRequestHeader>}
|
|
22
|
+
* @memberof HookOutgoingSetting
|
|
23
|
+
*/
|
|
24
|
+
request_headers?: Array<HookOutgoingRequestHeader>;
|
|
25
|
+
/**
|
|
26
|
+
* The request body that should be send to target URL
|
|
27
|
+
* @type {string | object | Array<object>}
|
|
28
|
+
* @memberof HookOutgoingSetting
|
|
29
|
+
*/
|
|
30
|
+
request_body?: string | object | Array<object>;
|
|
31
|
+
}
|
|
@@ -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 });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookOutgoingSetting } from './hook-outgoing-setting';
|
|
13
14
|
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
14
15
|
import { ResourceType } from './resource-type';
|
|
15
16
|
/**
|
|
@@ -66,4 +67,10 @@ export interface HookOutgoingUpdate {
|
|
|
66
67
|
* @memberof HookOutgoingUpdate
|
|
67
68
|
*/
|
|
68
69
|
trigger_when: Array<HookOutgoingTriggerWhenCondition>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {HookOutgoingSetting}
|
|
73
|
+
* @memberof HookOutgoingUpdate
|
|
74
|
+
*/
|
|
75
|
+
settings?: HookOutgoingSetting;
|
|
69
76
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { Hook } from './hook';
|
|
13
|
+
import { HookOutgoingParams } from './hook-outgoing-params';
|
|
14
|
+
/**
|
|
15
|
+
* @type HookOutgoing
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare type HookOutgoing = Hook & HookOutgoingParams;
|
|
@@ -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 });
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
+
import { HookIncomingSetting } from './hook-incoming-setting';
|
|
13
14
|
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
15
|
+
import { HookOutgoingSetting } from './hook-outgoing-setting';
|
|
14
16
|
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
15
|
-
import { HookSetting } from './hook-setting';
|
|
16
17
|
import { HookType } from './hook-type';
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -106,10 +107,10 @@ export interface HookRelation {
|
|
|
106
107
|
active?: boolean;
|
|
107
108
|
/**
|
|
108
109
|
*
|
|
109
|
-
* @type {
|
|
110
|
+
* @type {HookIncomingSetting | HookOutgoingSetting}
|
|
110
111
|
* @memberof HookRelation
|
|
111
112
|
*/
|
|
112
|
-
settings?:
|
|
113
|
+
settings?: HookIncomingSetting | HookOutgoingSetting;
|
|
113
114
|
/**
|
|
114
115
|
* The date and time when the record was created
|
|
115
116
|
* @type {string}
|
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionType } from './action-type';
|
|
13
|
-
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
14
|
-
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
15
|
-
import { HookSetting } from './hook-setting';
|
|
16
13
|
import { HookType } from './hook-type';
|
|
17
14
|
import { Resource } from './resource';
|
|
18
15
|
import { UserRelation } from './user-relation';
|
|
@@ -40,18 +37,6 @@ export interface Hook {
|
|
|
40
37
|
* @memberof Hook
|
|
41
38
|
*/
|
|
42
39
|
type: HookType;
|
|
43
|
-
/**
|
|
44
|
-
* The URL where the incoming hook must be triggered with a POST request
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Hook
|
|
47
|
-
*/
|
|
48
|
-
url?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* The target URL on outgoing hooks where Devopness should trigger a request
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof Hook
|
|
53
|
-
*/
|
|
54
|
-
target_url?: string | null;
|
|
55
40
|
/**
|
|
56
41
|
* Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code ([HMAC](https://en.wikipedia.org/wiki/HMAC)) generated based on the secret provided by Devopness and shared by user with external sources
|
|
57
42
|
* @type {boolean}
|
|
@@ -82,12 +67,6 @@ export interface Hook {
|
|
|
82
67
|
* @memberof Hook
|
|
83
68
|
*/
|
|
84
69
|
verify_ssl: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Conditions that must be met to trigger the hook.
|
|
87
|
-
* @type {Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>}
|
|
88
|
-
* @memberof Hook
|
|
89
|
-
*/
|
|
90
|
-
trigger_when?: Array<HookIncomingTriggerWhenCondition | HookOutgoingTriggerWhenCondition>;
|
|
91
70
|
/**
|
|
92
71
|
* Indicates if the record was auto_generated by `devopness` itself
|
|
93
72
|
* @type {boolean}
|
|
@@ -117,13 +96,7 @@ export interface Hook {
|
|
|
117
96
|
* @type {UserRelation}
|
|
118
97
|
* @memberof Hook
|
|
119
98
|
*/
|
|
120
|
-
created_by_user
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
* @type {HookSetting}
|
|
124
|
-
* @memberof Hook
|
|
125
|
-
*/
|
|
126
|
-
settings?: HookSetting;
|
|
99
|
+
created_by_user?: UserRelation;
|
|
127
100
|
/**
|
|
128
101
|
* The date and time when the record was created
|
|
129
102
|
* @type {string}
|
|
@@ -71,11 +71,18 @@ export * from './environment-relation';
|
|
|
71
71
|
export * from './environment-type';
|
|
72
72
|
export * from './environment-update';
|
|
73
73
|
export * from './hook';
|
|
74
|
+
export * from './hook-incoming';
|
|
74
75
|
export * from './hook-incoming-create';
|
|
76
|
+
export * from './hook-incoming-params';
|
|
77
|
+
export * from './hook-incoming-setting';
|
|
75
78
|
export * from './hook-incoming-trigger-when-condition';
|
|
76
79
|
export * from './hook-incoming-trigger-when-condition-type';
|
|
77
80
|
export * from './hook-incoming-update';
|
|
81
|
+
export * from './hook-outgoing';
|
|
78
82
|
export * from './hook-outgoing-create';
|
|
83
|
+
export * from './hook-outgoing-params';
|
|
84
|
+
export * from './hook-outgoing-request-header';
|
|
85
|
+
export * from './hook-outgoing-setting';
|
|
79
86
|
export * from './hook-outgoing-trigger-when-action-status';
|
|
80
87
|
export * from './hook-outgoing-trigger-when-condition';
|
|
81
88
|
export * from './hook-outgoing-trigger-when-condition-type';
|
|
@@ -83,7 +90,6 @@ export * from './hook-outgoing-update';
|
|
|
83
90
|
export * from './hook-relation';
|
|
84
91
|
export * from './hook-request';
|
|
85
92
|
export * from './hook-request-relation';
|
|
86
|
-
export * from './hook-setting';
|
|
87
93
|
export * from './hook-type';
|
|
88
94
|
export * from './hook-variable';
|
|
89
95
|
export * from './hook-variable-type';
|
|
@@ -87,11 +87,18 @@ __exportStar(require("./environment-relation"), exports);
|
|
|
87
87
|
__exportStar(require("./environment-type"), exports);
|
|
88
88
|
__exportStar(require("./environment-update"), exports);
|
|
89
89
|
__exportStar(require("./hook"), exports);
|
|
90
|
+
__exportStar(require("./hook-incoming"), exports);
|
|
90
91
|
__exportStar(require("./hook-incoming-create"), exports);
|
|
92
|
+
__exportStar(require("./hook-incoming-params"), exports);
|
|
93
|
+
__exportStar(require("./hook-incoming-setting"), exports);
|
|
91
94
|
__exportStar(require("./hook-incoming-trigger-when-condition"), exports);
|
|
92
95
|
__exportStar(require("./hook-incoming-trigger-when-condition-type"), exports);
|
|
93
96
|
__exportStar(require("./hook-incoming-update"), exports);
|
|
97
|
+
__exportStar(require("./hook-outgoing"), exports);
|
|
94
98
|
__exportStar(require("./hook-outgoing-create"), exports);
|
|
99
|
+
__exportStar(require("./hook-outgoing-params"), exports);
|
|
100
|
+
__exportStar(require("./hook-outgoing-request-header"), exports);
|
|
101
|
+
__exportStar(require("./hook-outgoing-setting"), exports);
|
|
95
102
|
__exportStar(require("./hook-outgoing-trigger-when-action-status"), exports);
|
|
96
103
|
__exportStar(require("./hook-outgoing-trigger-when-condition"), exports);
|
|
97
104
|
__exportStar(require("./hook-outgoing-trigger-when-condition-type"), exports);
|
|
@@ -99,7 +106,6 @@ __exportStar(require("./hook-outgoing-update"), exports);
|
|
|
99
106
|
__exportStar(require("./hook-relation"), exports);
|
|
100
107
|
__exportStar(require("./hook-request"), exports);
|
|
101
108
|
__exportStar(require("./hook-request-relation"), exports);
|
|
102
|
-
__exportStar(require("./hook-setting"), exports);
|
|
103
109
|
__exportStar(require("./hook-type"), exports);
|
|
104
110
|
__exportStar(require("./hook-variable"), exports);
|
|
105
111
|
__exportStar(require("./hook-variable-type"), exports);
|
|
@@ -20,7 +20,7 @@ exports.ServerCloudServiceName = void 0;
|
|
|
20
20
|
*/
|
|
21
21
|
var ServerCloudServiceName;
|
|
22
22
|
(function (ServerCloudServiceName) {
|
|
23
|
-
ServerCloudServiceName["
|
|
24
|
-
ServerCloudServiceName["
|
|
23
|
+
ServerCloudServiceName["DigitaloceanDroplet"] = "digitalocean-droplet";
|
|
24
|
+
ServerCloudServiceName["AwsEc2"] = "aws-ec2";
|
|
25
25
|
ServerCloudServiceName["GcpGce"] = "gcp-gce";
|
|
26
26
|
})(ServerCloudServiceName = exports.ServerCloudServiceName || (exports.ServerCloudServiceName = {}));
|