@devopness/sdk-js 2.23.0 → 2.25.0
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/DevopnessApiClient.d.ts +2 -4
- package/dist/DevopnessApiClient.js +2 -4
- package/dist/api/generated/apis/actions-api.d.ts +16 -5
- package/dist/api/generated/apis/actions-api.js +35 -2
- package/dist/api/generated/apis/actions-resources-api.d.ts +0 -11
- package/dist/api/generated/apis/actions-resources-api.js +0 -33
- package/dist/api/generated/apis/applications-api.d.ts +4 -4
- package/dist/api/generated/apis/applications-api.js +4 -4
- package/dist/api/generated/apis/applications-hooks-api.d.ts +5 -3
- package/dist/api/generated/apis/applications-hooks-api.js +12 -3
- package/dist/api/generated/apis/environments-api.d.ts +4 -4
- package/dist/api/generated/apis/environments-api.js +4 -4
- package/dist/api/generated/apis/environments-teams-api.d.ts +34 -0
- package/dist/api/generated/apis/environments-teams-api.js +77 -0
- package/dist/api/generated/apis/hook-requests-api.d.ts +25 -0
- package/dist/api/generated/apis/hook-requests-api.js +49 -0
- package/dist/api/generated/apis/hooks-api.d.ts +56 -0
- package/dist/api/generated/apis/hooks-api.js +133 -0
- package/dist/api/generated/apis/hooks-requests-api.d.ts +7 -17
- package/dist/api/generated/apis/hooks-requests-api.js +18 -37
- package/dist/api/generated/apis/projects-api.d.ts +8 -8
- package/dist/api/generated/apis/projects-api.js +8 -8
- package/dist/api/generated/apis/roles-api.d.ts +6 -6
- package/dist/api/generated/apis/roles-api.js +6 -6
- package/dist/api/generated/apis/servers-api.d.ts +6 -6
- package/dist/api/generated/apis/servers-api.js +4 -4
- package/dist/api/generated/apis/services-variables-api.d.ts +36 -0
- package/dist/api/generated/apis/services-variables-api.js +78 -0
- package/dist/api/generated/apis/source-providers-api.d.ts +7 -6
- package/dist/api/generated/apis/source-providers-api.js +5 -5
- package/dist/api/generated/apis/source-providers-repositories-api.d.ts +9 -8
- package/dist/api/generated/apis/source-providers-repositories-api.js +15 -15
- package/dist/api/generated/apis/teams-api.d.ts +4 -20
- package/dist/api/generated/apis/teams-api.js +4 -48
- package/dist/api/generated/apis/teams-members-api.d.ts +8 -8
- package/dist/api/generated/apis/teams-members-api.js +16 -16
- package/dist/api/generated/apis/users-api.d.ts +1 -1
- package/dist/api/generated/apis/users-api.js +2 -2
- package/dist/api/generated/models/action-relation.d.ts +31 -4
- package/dist/api/generated/models/action-retry-response.d.ts +7 -1
- package/dist/api/generated/models/action-step-log.d.ts +1 -1
- package/dist/api/generated/models/action.d.ts +28 -22
- package/dist/api/generated/models/application-environment-create.d.ts +4 -3
- package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
- package/dist/api/generated/models/application-project-create.d.ts +4 -3
- package/dist/api/generated/models/application-relation.d.ts +40 -41
- package/dist/api/generated/models/application-update.d.ts +50 -45
- package/dist/api/generated/models/application.d.ts +53 -48
- package/dist/api/generated/models/commit.d.ts +8 -14
- package/dist/api/generated/models/cron-job.d.ts +1 -1
- package/dist/api/generated/models/daemon.d.ts +1 -1
- package/dist/api/generated/models/environment.d.ts +3 -3
- package/dist/api/generated/models/hook-create.d.ts +84 -0
- package/dist/api/generated/models/{application-last-deployment.js → hook-create.js} +0 -0
- package/dist/api/generated/models/{hook-incoming-setting.d.ts → hook-incoming-settings.d.ts} +3 -3
- package/dist/api/generated/models/{hook-incoming-create.js → hook-incoming-settings.js} +0 -0
- package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.d.ts +1 -1
- package/dist/api/generated/models/hook-incoming-trigger-when-condition-type.js +1 -1
- package/dist/api/generated/models/{hook-outgoing-setting.d.ts → hook-outgoing-settings.d.ts} +4 -4
- package/dist/api/generated/models/{hook-incoming-params.js → hook-outgoing-settings.js} +0 -0
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.d.ts +1 -1
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition-type.js +1 -1
- package/dist/api/generated/models/hook-outgoing-trigger-when-condition.d.ts +1 -1
- package/dist/api/generated/models/hook-relation.d.ts +42 -35
- package/dist/api/generated/models/hook-request.d.ts +10 -10
- package/dist/api/generated/models/hook-update.d.ts +84 -0
- package/dist/api/generated/models/{hook-incoming-setting.js → hook-update.js} +0 -0
- package/dist/api/generated/models/hook-variable.d.ts +3 -3
- package/dist/api/generated/models/hook.d.ts +68 -22
- package/dist/api/generated/models/index.d.ts +11 -12
- package/dist/api/generated/models/index.js +11 -12
- package/dist/api/generated/models/invitation-relation.d.ts +2 -2
- package/dist/api/generated/models/invitation.d.ts +1 -1
- package/dist/api/generated/models/member-relation.d.ts +5 -11
- package/dist/api/generated/models/member.d.ts +13 -7
- package/dist/api/generated/models/repository-branch.d.ts +4 -4
- package/dist/api/generated/models/repository-relation.d.ts +42 -0
- package/dist/api/generated/models/{hook-incoming-update.js → repository-relation.js} +0 -0
- package/dist/api/generated/models/repository.d.ts +6 -6
- package/dist/api/generated/models/request-relation.d.ts +60 -0
- package/dist/api/generated/models/{hook-incoming.js → request-relation.js} +0 -0
- package/dist/api/generated/models/{hook-incoming.d.ts → server-command.d.ts} +10 -4
- package/dist/api/generated/models/{hook-outgoing-create.js → server-command.js} +0 -0
- package/dist/api/generated/models/server.d.ts +1 -1
- package/dist/api/generated/models/service.d.ts +1 -1
- package/dist/api/generated/models/source-provider-create.d.ts +1 -1
- package/dist/api/generated/models/source-provider-relation.d.ts +68 -0
- package/dist/api/generated/models/{hook-outgoing-params.js → source-provider-relation.js} +0 -0
- package/dist/api/generated/models/source-provider.d.ts +13 -7
- package/dist/api/generated/models/subscription-plan.d.ts +30 -0
- package/dist/api/generated/models/{hook-outgoing-setting.js → subscription-plan.js} +0 -0
- package/dist/api/generated/models/team-invitation-relation.d.ts +2 -2
- package/dist/api/generated/models/team-invitation.d.ts +2 -2
- package/dist/api/generated/models/team-membership-relation.d.ts +1 -1
- package/dist/api/generated/models/team.d.ts +1 -1
- package/dist/api/generated/models/{user-current.d.ts → user-me.d.ts} +18 -11
- package/dist/api/generated/models/{hook-outgoing-update.js → user-me.js} +0 -0
- package/dist/api/generated/models/user-update.d.ts +6 -0
- package/dist/api/generated/models/user.d.ts +7 -0
- package/dist/api/generated/models/variable-application-create.d.ts +0 -12
- package/dist/api/generated/models/variable-relation.d.ts +0 -6
- package/dist/api/generated/models/variable-service-create.d.ts +56 -0
- package/dist/api/generated/models/{hook-outgoing.js → variable-service-create.js} +0 -0
- package/dist/api/generated/models/variable.d.ts +0 -6
- package/dist/services/EnvironmentService.d.ts +2 -0
- package/dist/services/EnvironmentService.js +2 -0
- package/dist/services/HookRequestService.d.ts +2 -2
- package/dist/services/HookRequestService.js +2 -2
- package/dist/services/HookService.d.ts +5 -0
- package/dist/services/HookService.js +12 -0
- package/dist/services/ServiceService.d.ts +2 -0
- package/dist/services/ServiceService.js +5 -0
- package/dist/services/index.d.ts +1 -2
- package/dist/services/index.js +1 -2
- package/package.json +3 -3
- package/dist/api/generated/apis/hooks-incoming-api.d.ts +0 -53
- package/dist/api/generated/apis/hooks-incoming-api.js +0 -118
- package/dist/api/generated/apis/hooks-outgoing-api.d.ts +0 -46
- package/dist/api/generated/apis/hooks-outgoing-api.js +0 -101
- package/dist/api/generated/models/application-last-deployment.d.ts +0 -130
- package/dist/api/generated/models/hook-incoming-create.d.ts +0 -82
- package/dist/api/generated/models/hook-incoming-params.d.ts +0 -38
- package/dist/api/generated/models/hook-incoming-update.d.ts +0 -68
- package/dist/api/generated/models/hook-outgoing-create.d.ts +0 -70
- package/dist/api/generated/models/hook-outgoing-params.d.ts +0 -38
- package/dist/api/generated/models/hook-outgoing-update.d.ts +0 -76
- package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
- package/dist/api/generated/models/user-current.js +0 -14
- package/dist/services/HookIncomingService.d.ts +0 -3
- package/dist/services/HookIncomingService.js +0 -7
- package/dist/services/HookOutgoingService.d.ts +0 -3
- package/dist/services/HookOutgoingService.js +0 -7
|
@@ -1,118 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.HooksIncomingApiService = void 0;
|
|
25
|
-
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
-
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
-
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
-
/**
|
|
29
|
-
* HooksIncomingApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class HooksIncomingApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Create an incoming hook to a specific resource
|
|
35
|
-
* @param {HookIncomingCreate} hookIncomingCreate A JSON object containing incoming hook data
|
|
36
|
-
*/
|
|
37
|
-
addIncomingHook(hookIncomingCreate) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
if (hookIncomingCreate === null || hookIncomingCreate === undefined) {
|
|
40
|
-
throw new Exceptions_1.ArgumentNullException('hookIncomingCreate', 'addIncomingHook');
|
|
41
|
-
}
|
|
42
|
-
let queryString = '';
|
|
43
|
-
const requestUrl = '/hooks/incoming' + (queryString ? `?${queryString}` : '');
|
|
44
|
-
const response = yield this.post(requestUrl, hookIncomingCreate);
|
|
45
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @summary Delete a given incoming hook
|
|
51
|
-
* @param {string} hookIncomingId Unique ID of the incoming hook to be deleted
|
|
52
|
-
*/
|
|
53
|
-
deleteIncomingHook(hookIncomingId) {
|
|
54
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
56
|
-
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'deleteIncomingHook');
|
|
57
|
-
}
|
|
58
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @summary Get an incoming hook by Id
|
|
67
|
-
* @param {string} hookIncomingId Unique ID of the hook to be retrieved
|
|
68
|
-
*/
|
|
69
|
-
getIncomingHook(hookIncomingId) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
72
|
-
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'getIncomingHook');
|
|
73
|
-
}
|
|
74
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @summary Trigger an incoming hook associated action
|
|
83
|
-
* @param {string} hookIncomingId Unique ID of the hook to be triggered
|
|
84
|
-
* @param {object} [body] A JSON object containg hook variables
|
|
85
|
-
*/
|
|
86
|
-
triggerHook(hookIncomingId, body) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
89
|
-
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'triggerHook');
|
|
90
|
-
}
|
|
91
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @summary Update an existing incoming hook
|
|
100
|
-
* @param {string} hookIncomingId Unique ID of the hook to be updated
|
|
101
|
-
* @param {HookIncomingUpdate} hookIncomingUpdate A JSON object containing incoming hook data
|
|
102
|
-
*/
|
|
103
|
-
updateIncomingHook(hookIncomingId, hookIncomingUpdate) {
|
|
104
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
if (hookIncomingId === null || hookIncomingId === undefined) {
|
|
106
|
-
throw new Exceptions_1.ArgumentNullException('hookIncomingId', 'updateIncomingHook');
|
|
107
|
-
}
|
|
108
|
-
if (hookIncomingUpdate === null || hookIncomingUpdate === undefined) {
|
|
109
|
-
throw new Exceptions_1.ArgumentNullException('hookIncomingUpdate', 'updateIncomingHook');
|
|
110
|
-
}
|
|
111
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
exports.HooksIncomingApiService = HooksIncomingApiService;
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { HookOutgoing } from '../../generated/models';
|
|
15
|
-
import { HookOutgoingCreate } from '../../generated/models';
|
|
16
|
-
import { HookOutgoingUpdate } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* HooksOutgoingApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class HooksOutgoingApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
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
|
-
* @summary Create an outgoing hook to a specific resource
|
|
24
|
-
* @param {HookOutgoingCreate} hookOutgoingCreate A JSON object containing outgoing hook data
|
|
25
|
-
*/
|
|
26
|
-
addOutgoinHook(hookOutgoingCreate: HookOutgoingCreate): Promise<ApiResponse<HookOutgoing>>;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @summary Delete a given outgoing hook
|
|
30
|
-
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be deleted
|
|
31
|
-
*/
|
|
32
|
-
deleteOutgoingHook(hookOutgoingId: string): Promise<ApiResponse<void>>;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @summary Get an outgoing hook by Id
|
|
36
|
-
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be retrieved
|
|
37
|
-
*/
|
|
38
|
-
getOutgoingHook(hookOutgoingId: string): Promise<ApiResponse<HookOutgoing>>;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @summary Update an existing outgoing hook
|
|
42
|
-
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be updated
|
|
43
|
-
* @param {HookOutgoingUpdate} hookOutgoingUpdate A JSON object containing outgoing hook data
|
|
44
|
-
*/
|
|
45
|
-
updateOutgoingHook(hookOutgoingId: string, hookOutgoingUpdate: HookOutgoingUpdate): Promise<ApiResponse<void>>;
|
|
46
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.HooksOutgoingApiService = void 0;
|
|
25
|
-
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
-
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
-
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
-
/**
|
|
29
|
-
* HooksOutgoingApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class HooksOutgoingApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
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
|
-
* @summary Create an outgoing hook to a specific resource
|
|
35
|
-
* @param {HookOutgoingCreate} hookOutgoingCreate A JSON object containing outgoing hook data
|
|
36
|
-
*/
|
|
37
|
-
addOutgoinHook(hookOutgoingCreate) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
if (hookOutgoingCreate === null || hookOutgoingCreate === undefined) {
|
|
40
|
-
throw new Exceptions_1.ArgumentNullException('hookOutgoingCreate', 'addOutgoinHook');
|
|
41
|
-
}
|
|
42
|
-
let queryString = '';
|
|
43
|
-
const requestUrl = '/hooks/outgoing' + (queryString ? `?${queryString}` : '');
|
|
44
|
-
const response = yield this.post(requestUrl, hookOutgoingCreate);
|
|
45
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @summary Delete a given outgoing hook
|
|
51
|
-
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be deleted
|
|
52
|
-
*/
|
|
53
|
-
deleteOutgoingHook(hookOutgoingId) {
|
|
54
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
56
|
-
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'deleteOutgoingHook');
|
|
57
|
-
}
|
|
58
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @summary Get an outgoing hook by Id
|
|
67
|
-
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be retrieved
|
|
68
|
-
*/
|
|
69
|
-
getOutgoingHook(hookOutgoingId) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
72
|
-
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'getOutgoingHook');
|
|
73
|
-
}
|
|
74
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @summary Update an existing outgoing hook
|
|
83
|
-
* @param {string} hookOutgoingId Unique ID of the outgoing hook to be updated
|
|
84
|
-
* @param {HookOutgoingUpdate} hookOutgoingUpdate A JSON object containing outgoing hook data
|
|
85
|
-
*/
|
|
86
|
-
updateOutgoingHook(hookOutgoingId, hookOutgoingUpdate) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
if (hookOutgoingId === null || hookOutgoingId === undefined) {
|
|
89
|
-
throw new Exceptions_1.ArgumentNullException('hookOutgoingId', 'updateOutgoingHook');
|
|
90
|
-
}
|
|
91
|
-
if (hookOutgoingUpdate === null || hookOutgoingUpdate === undefined) {
|
|
92
|
-
throw new Exceptions_1.ArgumentNullException('hookOutgoingUpdate', 'updateOutgoingHook');
|
|
93
|
-
}
|
|
94
|
-
let queryString = '';
|
|
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
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.HooksOutgoingApiService = HooksOutgoingApiService;
|
|
@@ -1,130 +0,0 @@
|
|
|
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 { ActionData } from './action-data';
|
|
13
|
-
import { ActionHookRequest } from './action-hook-request';
|
|
14
|
-
import { ActionStatus } from './action-status';
|
|
15
|
-
import { ActionSummary } from './action-summary';
|
|
16
|
-
import { ActionTriggeredFrom } from './action-triggered-from';
|
|
17
|
-
import { ActionType } from './action-type';
|
|
18
|
-
import { EnvironmentRelation } from './environment-relation';
|
|
19
|
-
import { ProjectRelation } from './project-relation';
|
|
20
|
-
import { ServerAction } from './server-action';
|
|
21
|
-
import { UserRelation } from './user-relation';
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface ApplicationLastDeployment
|
|
26
|
-
*/
|
|
27
|
-
export interface ApplicationLastDeployment {
|
|
28
|
-
/**
|
|
29
|
-
* The Id of the given action
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ApplicationLastDeployment
|
|
32
|
-
*/
|
|
33
|
-
id: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {ActionStatus}
|
|
37
|
-
* @memberof ApplicationLastDeployment
|
|
38
|
-
*/
|
|
39
|
-
status: ActionStatus;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {ActionType}
|
|
43
|
-
* @memberof ApplicationLastDeployment
|
|
44
|
-
*/
|
|
45
|
-
type: ActionType;
|
|
46
|
-
/**
|
|
47
|
-
* Human readable version of the action type
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof ApplicationLastDeployment
|
|
50
|
-
*/
|
|
51
|
-
type_human_readable: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {ActionSummary}
|
|
55
|
-
* @memberof ApplicationLastDeployment
|
|
56
|
-
*/
|
|
57
|
-
summary?: ActionSummary;
|
|
58
|
-
/**
|
|
59
|
-
* The permalink URL to the action details on Devopness web app
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof ApplicationLastDeployment
|
|
62
|
-
*/
|
|
63
|
-
url_web_permalink: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {ActionData}
|
|
67
|
-
* @memberof ApplicationLastDeployment
|
|
68
|
-
*/
|
|
69
|
-
action_data: ActionData | null;
|
|
70
|
-
/**
|
|
71
|
-
* List of actions dispatched to servers
|
|
72
|
-
* @type {Array<ServerAction>}
|
|
73
|
-
* @memberof ApplicationLastDeployment
|
|
74
|
-
*/
|
|
75
|
-
servers?: Array<ServerAction>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {EnvironmentRelation}
|
|
79
|
-
* @memberof ApplicationLastDeployment
|
|
80
|
-
*/
|
|
81
|
-
environment?: EnvironmentRelation;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {ActionTriggeredFrom}
|
|
85
|
-
* @memberof ApplicationLastDeployment
|
|
86
|
-
*/
|
|
87
|
-
triggered_from: ActionTriggeredFrom;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {UserRelation}
|
|
91
|
-
* @memberof ApplicationLastDeployment
|
|
92
|
-
*/
|
|
93
|
-
triggered_by_user?: UserRelation;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {ProjectRelation}
|
|
97
|
-
* @memberof ApplicationLastDeployment
|
|
98
|
-
*/
|
|
99
|
-
project?: ProjectRelation;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {ActionHookRequest}
|
|
103
|
-
* @memberof ApplicationLastDeployment
|
|
104
|
-
*/
|
|
105
|
-
hook_requests?: ActionHookRequest;
|
|
106
|
-
/**
|
|
107
|
-
* The date and time when the action started execution (i.e., left the `pending/queued` status)
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof ApplicationLastDeployment
|
|
110
|
-
*/
|
|
111
|
-
started_at?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* The date and time when the action has finished execution
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof ApplicationLastDeployment
|
|
116
|
-
*/
|
|
117
|
-
completed_at?: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* The date and time when the record was created
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof ApplicationLastDeployment
|
|
122
|
-
*/
|
|
123
|
-
created_at?: string;
|
|
124
|
-
/**
|
|
125
|
-
* The date and time when the record was last updated
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof ApplicationLastDeployment
|
|
128
|
-
*/
|
|
129
|
-
updated_at?: string;
|
|
130
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
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 { ActionType } from './action-type';
|
|
13
|
-
import { HookIncomingSetting } from './hook-incoming-setting';
|
|
14
|
-
import { HookIncomingTriggerWhenCondition } from './hook-incoming-trigger-when-condition';
|
|
15
|
-
import { ResourceType } from './resource-type';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface HookIncomingCreate
|
|
20
|
-
*/
|
|
21
|
-
export interface HookIncomingCreate {
|
|
22
|
-
/**
|
|
23
|
-
* The name entered by the user (or auto-generated by `Devopness`) to uniquely identify the hook
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof HookIncomingCreate
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {ResourceType}
|
|
31
|
-
* @memberof HookIncomingCreate
|
|
32
|
-
*/
|
|
33
|
-
resource_type: ResourceType;
|
|
34
|
-
/**
|
|
35
|
-
* The id of the resource that the outgoing hook belongs to
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof HookIncomingCreate
|
|
38
|
-
*/
|
|
39
|
-
resource_id: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {ActionType}
|
|
43
|
-
* @memberof HookIncomingCreate
|
|
44
|
-
*/
|
|
45
|
-
action_type: ActionType;
|
|
46
|
-
/**
|
|
47
|
-
* Determines if the hook is current active
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @memberof HookIncomingCreate
|
|
50
|
-
*/
|
|
51
|
-
active?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* 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
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof HookIncomingCreate
|
|
56
|
-
*/
|
|
57
|
-
requires_secret: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof HookIncomingCreate
|
|
62
|
-
*/
|
|
63
|
-
secret_algorithm?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The name of the HTTP request header from which the request digital signature should be extracted
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof HookIncomingCreate
|
|
68
|
-
*/
|
|
69
|
-
secret_header_name?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Conditions that must be met to trigger the hook.
|
|
72
|
-
* @type {Array<HookIncomingTriggerWhenCondition>}
|
|
73
|
-
* @memberof HookIncomingCreate
|
|
74
|
-
*/
|
|
75
|
-
trigger_when?: Array<HookIncomingTriggerWhenCondition>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {HookIncomingSetting}
|
|
79
|
-
* @memberof HookIncomingCreate
|
|
80
|
-
*/
|
|
81
|
-
settings?: HookIncomingSetting;
|
|
82
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
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 HookIncomingUpdate
|
|
18
|
-
*/
|
|
19
|
-
export interface HookIncomingUpdate {
|
|
20
|
-
/**
|
|
21
|
-
* Unique ID of the hook to be updated
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof HookIncomingUpdate
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* The name given to incoming hook
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof HookIncomingUpdate
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* Determines if the hook requires a secret to be triggered
|
|
34
|
-
* @type {boolean}
|
|
35
|
-
* @memberof HookIncomingUpdate
|
|
36
|
-
*/
|
|
37
|
-
requires_secret: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The hash algorithm used to check payload integrity of the request
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof HookIncomingUpdate
|
|
42
|
-
*/
|
|
43
|
-
secret_algorithm?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The request header used to give the secret to Devopness
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof HookIncomingUpdate
|
|
48
|
-
*/
|
|
49
|
-
secret_header_name?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Determines if the hook is current active
|
|
52
|
-
* @type {boolean}
|
|
53
|
-
* @memberof HookIncomingUpdate
|
|
54
|
-
*/
|
|
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;
|
|
68
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
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 { ActionType } from './action-type';
|
|
13
|
-
import { HookOutgoingSetting } from './hook-outgoing-setting';
|
|
14
|
-
import { HookOutgoingTriggerWhenCondition } from './hook-outgoing-trigger-when-condition';
|
|
15
|
-
import { ResourceType } from './resource-type';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface HookOutgoingCreate
|
|
20
|
-
*/
|
|
21
|
-
export interface HookOutgoingCreate {
|
|
22
|
-
/**
|
|
23
|
-
* The name to uniquely identify the outgoing hook
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof HookOutgoingCreate
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {ActionType}
|
|
31
|
-
* @memberof HookOutgoingCreate
|
|
32
|
-
*/
|
|
33
|
-
action_type: ActionType;
|
|
34
|
-
/**
|
|
35
|
-
* Determines if the hook is current active
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof HookOutgoingCreate
|
|
38
|
-
*/
|
|
39
|
-
active?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {ResourceType}
|
|
43
|
-
* @memberof HookOutgoingCreate
|
|
44
|
-
*/
|
|
45
|
-
resource_type: ResourceType;
|
|
46
|
-
/**
|
|
47
|
-
* The id of the resource that the outgoing hook belongs to
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof HookOutgoingCreate
|
|
50
|
-
*/
|
|
51
|
-
resource_id: number;
|
|
52
|
-
/**
|
|
53
|
-
* The URL that Devopness should send a request when the outgoing hook is triggered
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof HookOutgoingCreate
|
|
56
|
-
*/
|
|
57
|
-
target_url: string;
|
|
58
|
-
/**
|
|
59
|
-
* Conditions that must be met to trigger the hook.
|
|
60
|
-
* @type {Array<HookOutgoingTriggerWhenCondition>}
|
|
61
|
-
* @memberof HookOutgoingCreate
|
|
62
|
-
*/
|
|
63
|
-
trigger_when: Array<HookOutgoingTriggerWhenCondition>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {HookOutgoingSetting}
|
|
67
|
-
* @memberof HookOutgoingCreate
|
|
68
|
-
*/
|
|
69
|
-
settings?: HookOutgoingSetting;
|
|
70
|
-
}
|