@devopness/sdk-js 2.22.1 → 2.24.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/pipelines-api.d.ts +10 -0
- package/dist/api/generated/apis/pipelines-api.js +29 -0
- 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/{pipelines-resources-api.js → services-variables-api.js} +31 -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/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 +9 -12
- package/dist/api/generated/models/index.js +9 -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/request-relation.d.ts +60 -0
- package/dist/api/generated/models/{hook-incoming-update.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-incoming.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/subscription-plan.d.ts +30 -0
- package/dist/api/generated/models/{hook-outgoing-create.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-params.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-setting.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/PipelineService.d.ts +0 -2
- package/dist/services/PipelineService.js +0 -2
- 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/apis/pipelines-resources-api.d.ts +0 -28
- 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-update.js +0 -14
- package/dist/api/generated/models/hook-outgoing.d.ts +0 -18
- package/dist/api/generated/models/hook-outgoing.js +0 -14
- 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
|
@@ -5,9 +5,8 @@ import { CloudProviderCredentialService } from './services/CloudProviderCredenti
|
|
|
5
5
|
import { CronJobService } from './services/CronJobService';
|
|
6
6
|
import { DaemonService } from './services/DaemonService';
|
|
7
7
|
import { EnvironmentService } from './services/EnvironmentService';
|
|
8
|
-
import { HookIncomingService } from './services/HookIncomingService';
|
|
9
|
-
import { HookOutgoingService } from './services/HookOutgoingService';
|
|
10
8
|
import { HookRequestService } from './services/HookRequestService';
|
|
9
|
+
import { HookService } from './services/HookService';
|
|
11
10
|
import { LogService } from './services/LogService';
|
|
12
11
|
import { NetworkRuleService } from './services/NetworkRuleService';
|
|
13
12
|
import { PipelineService } from './services/PipelineService';
|
|
@@ -33,10 +32,9 @@ export declare class DevopnessApiClient {
|
|
|
33
32
|
daemons: DaemonService;
|
|
34
33
|
environments: EnvironmentService;
|
|
35
34
|
hookRequests: HookRequestService;
|
|
36
|
-
|
|
35
|
+
hooks: HookService;
|
|
37
36
|
logs: LogService;
|
|
38
37
|
networkRules: NetworkRuleService;
|
|
39
|
-
outgoingHooks: HookOutgoingService;
|
|
40
38
|
pipelines: PipelineService;
|
|
41
39
|
projects: ProjectService;
|
|
42
40
|
resourceEvents: ResourceEventService;
|
|
@@ -8,9 +8,8 @@ const CloudProviderCredentialService_1 = require("./services/CloudProviderCreden
|
|
|
8
8
|
const CronJobService_1 = require("./services/CronJobService");
|
|
9
9
|
const DaemonService_1 = require("./services/DaemonService");
|
|
10
10
|
const EnvironmentService_1 = require("./services/EnvironmentService");
|
|
11
|
-
const HookIncomingService_1 = require("./services/HookIncomingService");
|
|
12
|
-
const HookOutgoingService_1 = require("./services/HookOutgoingService");
|
|
13
11
|
const HookRequestService_1 = require("./services/HookRequestService");
|
|
12
|
+
const HookService_1 = require("./services/HookService");
|
|
14
13
|
const LogService_1 = require("./services/LogService");
|
|
15
14
|
const NetworkRuleService_1 = require("./services/NetworkRuleService");
|
|
16
15
|
const PipelineService_1 = require("./services/PipelineService");
|
|
@@ -41,10 +40,9 @@ class DevopnessApiClient {
|
|
|
41
40
|
this.daemons = new DaemonService_1.DaemonService();
|
|
42
41
|
this.environments = new EnvironmentService_1.EnvironmentService();
|
|
43
42
|
this.hookRequests = new HookRequestService_1.HookRequestService();
|
|
44
|
-
this.
|
|
43
|
+
this.hooks = new HookService_1.HookService();
|
|
45
44
|
this.logs = new LogService_1.LogService();
|
|
46
45
|
this.networkRules = new NetworkRuleService_1.NetworkRuleService();
|
|
47
|
-
this.outgoingHooks = new HookOutgoingService_1.HookOutgoingService();
|
|
48
46
|
this.pipelines = new PipelineService_1.PipelineService();
|
|
49
47
|
this.projects = new ProjectService_1.ProjectService();
|
|
50
48
|
this.resourceEvents = new ResourceEventService_1.ResourceEventService();
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Action } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { ActionRelation } from '../../generated/models';
|
|
16
|
+
import { ActionRetryResponse } from '../../generated/models';
|
|
16
17
|
/**
|
|
17
18
|
* ActionsApiService - Auto-generated
|
|
18
19
|
*/
|
|
@@ -20,7 +21,7 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
22
23
|
* @summary Get an action by ID
|
|
23
|
-
* @param {number} actionId
|
|
24
|
+
* @param {number} actionId The ID of the action.
|
|
24
25
|
*/
|
|
25
26
|
getAction(actionId: number): Promise<ApiResponse<Action>>;
|
|
26
27
|
/**
|
|
@@ -29,11 +30,21 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
29
30
|
* @param {number} [page] Number of the page to be retrieved
|
|
30
31
|
* @param {number} [perPage] Number of items returned per page
|
|
31
32
|
*/
|
|
32
|
-
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<
|
|
33
|
+
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary List resource actions of an action type
|
|
37
|
+
* @param {string} actionType The action type.
|
|
38
|
+
* @param {number} resourceId The resource ID.
|
|
39
|
+
* @param {string} resourceType The resource type to get related actions.
|
|
40
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
41
|
+
* @param {number} [perPage] Number of items returned per page
|
|
42
|
+
*/
|
|
43
|
+
listActionsByResourceTypeAndActionType(actionType: string, resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
33
44
|
/**
|
|
34
45
|
*
|
|
35
46
|
* @summary Retry an action
|
|
36
|
-
* @param {number} actionId
|
|
47
|
+
* @param {number} actionId The ID of the action.
|
|
37
48
|
*/
|
|
38
|
-
retryAction(actionId: number): Promise<ApiResponse<
|
|
49
|
+
retryAction(actionId: number): Promise<ApiResponse<ActionRetryResponse>>;
|
|
39
50
|
}
|
|
@@ -32,7 +32,7 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Get an action by ID
|
|
35
|
-
* @param {number} actionId
|
|
35
|
+
* @param {number} actionId The ID of the action.
|
|
36
36
|
*/
|
|
37
37
|
getAction(actionId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -66,10 +66,43 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
66
66
|
return new ApiResponse_1.ApiResponse(response);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @summary List resource actions of an action type
|
|
72
|
+
* @param {string} actionType The action type.
|
|
73
|
+
* @param {number} resourceId The resource ID.
|
|
74
|
+
* @param {string} resourceType The resource type to get related actions.
|
|
75
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
76
|
+
* @param {number} [perPage] Number of items returned per page
|
|
77
|
+
*/
|
|
78
|
+
listActionsByResourceTypeAndActionType(actionType, resourceId, resourceType, page, perPage) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
if (actionType === null || actionType === undefined) {
|
|
81
|
+
throw new Exceptions_1.ArgumentNullException('actionType', 'listActionsByResourceTypeAndActionType');
|
|
82
|
+
}
|
|
83
|
+
if (resourceId === null || resourceId === undefined) {
|
|
84
|
+
throw new Exceptions_1.ArgumentNullException('resourceId', 'listActionsByResourceTypeAndActionType');
|
|
85
|
+
}
|
|
86
|
+
if (resourceType === null || resourceType === undefined) {
|
|
87
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'listActionsByResourceTypeAndActionType');
|
|
88
|
+
}
|
|
89
|
+
let queryString = '';
|
|
90
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
91
|
+
for (const key in queryParams) {
|
|
92
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
96
|
+
}
|
|
97
|
+
const requestUrl = '/actions/{resource_type}/{resource_id}/{action_type}' + (queryString ? `?${queryString}` : '');
|
|
98
|
+
const response = yield this.get(requestUrl.replace(`{${"action_type"}}`, encodeURIComponent(String(actionType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
|
|
99
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
69
102
|
/**
|
|
70
103
|
*
|
|
71
104
|
* @summary Retry an action
|
|
72
|
-
* @param {number} actionId
|
|
105
|
+
* @param {number} actionId The ID of the action.
|
|
73
106
|
*/
|
|
74
107
|
retryAction(actionId) {
|
|
75
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { ActionListItem } from '../../generated/models';
|
|
15
|
-
import { ActionType } from '../../generated/models';
|
|
16
15
|
/**
|
|
17
16
|
* ActionsResourcesApiService - Auto-generated
|
|
18
17
|
*/
|
|
@@ -26,14 +25,4 @@ export declare class ActionsResourcesApiService extends ApiBaseService {
|
|
|
26
25
|
* @param {number} [perPage] Number of items returned per page
|
|
27
26
|
*/
|
|
28
27
|
listResourceActions(resourceType: string, resourceId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @summary List resource actions of an action type
|
|
32
|
-
* @param {string} resourceType The resource type to get related actions
|
|
33
|
-
* @param {number} resourceId Unique ID of the resource that\'s being searched
|
|
34
|
-
* @param {ActionType} actionType The action type
|
|
35
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
36
|
-
* @param {number} [perPage] Number of items returned per page
|
|
37
|
-
*/
|
|
38
|
-
listResourceActionsOfResourceTypeActionType(resourceType: string, resourceId: number, actionType: ActionType, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
39
28
|
}
|
|
@@ -58,38 +58,5 @@ class ActionsResourcesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
58
58
|
return new ApiResponse_1.ApiResponse(response);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @summary List resource actions of an action type
|
|
64
|
-
* @param {string} resourceType The resource type to get related actions
|
|
65
|
-
* @param {number} resourceId Unique ID of the resource that\'s being searched
|
|
66
|
-
* @param {ActionType} actionType The action type
|
|
67
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
68
|
-
* @param {number} [perPage] Number of items returned per page
|
|
69
|
-
*/
|
|
70
|
-
listResourceActionsOfResourceTypeActionType(resourceType, resourceId, actionType, page, perPage) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
if (resourceType === null || resourceType === undefined) {
|
|
73
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceActionsOfResourceTypeActionType');
|
|
74
|
-
}
|
|
75
|
-
if (resourceId === null || resourceId === undefined) {
|
|
76
|
-
throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceActionsOfResourceTypeActionType');
|
|
77
|
-
}
|
|
78
|
-
if (actionType === null || actionType === undefined) {
|
|
79
|
-
throw new Exceptions_1.ArgumentNullException('actionType', 'listResourceActionsOfResourceTypeActionType');
|
|
80
|
-
}
|
|
81
|
-
let queryString = '';
|
|
82
|
-
const queryParams = { page: page, per_page: perPage, };
|
|
83
|
-
for (const key in queryParams) {
|
|
84
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
88
|
-
}
|
|
89
|
-
const requestUrl = '/actions/{resource_type}/{resource_id}/{action_type}' + (queryString ? `?${queryString}` : '');
|
|
90
|
-
const response = yield this.get(requestUrl.replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"action_type"}}`, encodeURIComponent(String(actionType))));
|
|
91
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
61
|
}
|
|
95
62
|
exports.ActionsResourcesApiService = ActionsResourcesApiService;
|
|
@@ -20,20 +20,20 @@ export declare class ApplicationsApiService extends ApiBaseService {
|
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @summary Delete a given application
|
|
23
|
-
* @param {number} applicationId
|
|
23
|
+
* @param {number} applicationId The ID of the application.
|
|
24
24
|
*/
|
|
25
25
|
deleteApplication(applicationId: number): Promise<ApiResponse<void>>;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @summary Get an application by ID
|
|
29
|
-
* @param {number} applicationId
|
|
29
|
+
* @param {number} applicationId The ID of the application.
|
|
30
30
|
*/
|
|
31
31
|
getApplication(applicationId: number): Promise<ApiResponse<Application>>;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Update an existing application
|
|
35
|
-
* @param {number} applicationId
|
|
36
|
-
* @param {ApplicationUpdate} applicationUpdate A JSON object containing
|
|
35
|
+
* @param {number} applicationId The ID of the application.
|
|
36
|
+
* @param {ApplicationUpdate} applicationUpdate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
38
|
updateApplication(applicationId: number, applicationUpdate: ApplicationUpdate): Promise<ApiResponse<void>>;
|
|
39
39
|
}
|
|
@@ -32,7 +32,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Delete a given application
|
|
35
|
-
* @param {number} applicationId
|
|
35
|
+
* @param {number} applicationId The ID of the application.
|
|
36
36
|
*/
|
|
37
37
|
deleteApplication(applicationId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -48,7 +48,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Get an application by ID
|
|
51
|
-
* @param {number} applicationId
|
|
51
|
+
* @param {number} applicationId The ID of the application.
|
|
52
52
|
*/
|
|
53
53
|
getApplication(applicationId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,8 +64,8 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Update an existing application
|
|
67
|
-
* @param {number} applicationId
|
|
68
|
-
* @param {ApplicationUpdate} applicationUpdate A JSON object containing
|
|
67
|
+
* @param {number} applicationId The ID of the application.
|
|
68
|
+
* @param {ApplicationUpdate} applicationUpdate A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
70
|
updateApplication(applicationId, applicationUpdate) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -18,8 +18,10 @@ import { HookRelation } from '../../generated/models';
|
|
|
18
18
|
export declare class ApplicationsHooksApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary
|
|
22
|
-
* @param {number} applicationId
|
|
21
|
+
* @summary List all hooks in an application
|
|
22
|
+
* @param {number} applicationId The ID of the application.
|
|
23
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
24
|
+
* @param {number} [perPage] Number of items returned per page
|
|
23
25
|
*/
|
|
24
|
-
listApplicationHooks(applicationId: number): Promise<ApiResponse<Array<HookRelation>>>;
|
|
26
|
+
listApplicationHooks(applicationId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<HookRelation>>>;
|
|
25
27
|
}
|
|
@@ -31,15 +31,24 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class ApplicationsHooksApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} applicationId
|
|
34
|
+
* @summary List all hooks in an application
|
|
35
|
+
* @param {number} applicationId The ID of the application.
|
|
36
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
37
|
+
* @param {number} [perPage] Number of items returned per page
|
|
36
38
|
*/
|
|
37
|
-
listApplicationHooks(applicationId) {
|
|
39
|
+
listApplicationHooks(applicationId, page, perPage) {
|
|
38
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
41
|
if (applicationId === null || applicationId === undefined) {
|
|
40
42
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'listApplicationHooks');
|
|
41
43
|
}
|
|
42
44
|
let queryString = '';
|
|
45
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
46
|
+
for (const key in queryParams) {
|
|
47
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
51
|
+
}
|
|
43
52
|
const requestUrl = '/applications/{application_id}/hooks' + (queryString ? `?${queryString}` : '');
|
|
44
53
|
const response = yield this.get(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))));
|
|
45
54
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -20,20 +20,20 @@ export declare class EnvironmentsApiService extends ApiBaseService {
|
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @summary Delete a given environment
|
|
23
|
-
* @param {number} environmentId
|
|
23
|
+
* @param {number} environmentId The ID of the environment.
|
|
24
24
|
*/
|
|
25
25
|
deleteEnvironment(environmentId: number): Promise<ApiResponse<void>>;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @summary Get an environment by ID
|
|
29
|
-
* @param {number} environmentId
|
|
29
|
+
* @param {number} environmentId The ID of the environment.
|
|
30
30
|
*/
|
|
31
31
|
getEnvironment(environmentId: number): Promise<ApiResponse<Environment>>;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Update a given environment
|
|
35
|
-
* @param {number} environmentId
|
|
36
|
-
* @param {EnvironmentUpdate} environmentUpdate A JSON object containing
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {EnvironmentUpdate} environmentUpdate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
38
|
updateEnvironment(environmentId: number, environmentUpdate: EnvironmentUpdate): Promise<ApiResponse<void>>;
|
|
39
39
|
}
|
|
@@ -32,7 +32,7 @@ class EnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Delete a given environment
|
|
35
|
-
* @param {number} environmentId
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
36
|
*/
|
|
37
37
|
deleteEnvironment(environmentId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -48,7 +48,7 @@ class EnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Get an environment by ID
|
|
51
|
-
* @param {number} environmentId
|
|
51
|
+
* @param {number} environmentId The ID of the environment.
|
|
52
52
|
*/
|
|
53
53
|
getEnvironment(environmentId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,8 +64,8 @@ class EnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Update a given environment
|
|
67
|
-
* @param {number} environmentId
|
|
68
|
-
* @param {EnvironmentUpdate} environmentUpdate A JSON object containing
|
|
67
|
+
* @param {number} environmentId The ID of the environment.
|
|
68
|
+
* @param {EnvironmentUpdate} environmentUpdate A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
70
|
updateEnvironment(environmentId, environmentUpdate) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { TeamEnvironmentCreate } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* EnvironmentsTeamsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class EnvironmentsTeamsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Link team to a given environment
|
|
22
|
+
* @param {number} environmentId The ID of the environment.
|
|
23
|
+
* @param {number} teamId The ID of the team.
|
|
24
|
+
* @param {TeamEnvironmentCreate} teamEnvironmentCreate A JSON object containing the resource data
|
|
25
|
+
*/
|
|
26
|
+
addEnvironmentTeam(environmentId: number, teamId: number, teamEnvironmentCreate: TeamEnvironmentCreate): Promise<ApiResponse<void>>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @summary Unlink team from the environment
|
|
30
|
+
* @param {number} environmentId The ID of the environment.
|
|
31
|
+
* @param {number} teamId The ID of the team.
|
|
32
|
+
*/
|
|
33
|
+
deleteEnvironmentTeam(environmentId: number, teamId: number): Promise<ApiResponse<void>>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.EnvironmentsTeamsApiService = 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
|
+
* EnvironmentsTeamsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class EnvironmentsTeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Link team to a given environment
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {number} teamId The ID of the team.
|
|
37
|
+
* @param {TeamEnvironmentCreate} teamEnvironmentCreate A JSON object containing the resource data
|
|
38
|
+
*/
|
|
39
|
+
addEnvironmentTeam(environmentId, teamId, teamEnvironmentCreate) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
if (environmentId === null || environmentId === undefined) {
|
|
42
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentTeam');
|
|
43
|
+
}
|
|
44
|
+
if (teamId === null || teamId === undefined) {
|
|
45
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'addEnvironmentTeam');
|
|
46
|
+
}
|
|
47
|
+
if (teamEnvironmentCreate === null || teamEnvironmentCreate === undefined) {
|
|
48
|
+
throw new Exceptions_1.ArgumentNullException('teamEnvironmentCreate', 'addEnvironmentTeam');
|
|
49
|
+
}
|
|
50
|
+
let queryString = '';
|
|
51
|
+
const requestUrl = '/environments/{environment_id}/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
52
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamEnvironmentCreate);
|
|
53
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @summary Unlink team from the environment
|
|
59
|
+
* @param {number} environmentId The ID of the environment.
|
|
60
|
+
* @param {number} teamId The ID of the team.
|
|
61
|
+
*/
|
|
62
|
+
deleteEnvironmentTeam(environmentId, teamId) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
if (environmentId === null || environmentId === undefined) {
|
|
65
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'deleteEnvironmentTeam');
|
|
66
|
+
}
|
|
67
|
+
if (teamId === null || teamId === undefined) {
|
|
68
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'deleteEnvironmentTeam');
|
|
69
|
+
}
|
|
70
|
+
let queryString = '';
|
|
71
|
+
const requestUrl = '/environments/{environment_id}/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
72
|
+
const response = yield this.delete(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
73
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.EnvironmentsTeamsApiService = EnvironmentsTeamsApiService;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { HookRequest } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* HookRequestsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class HookRequestsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Get a hook request by ID
|
|
22
|
+
* @param {string} hookRequestId The ID of the hook request.
|
|
23
|
+
*/
|
|
24
|
+
getHookRequest(hookRequestId: string): Promise<ApiResponse<HookRequest>>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.HookRequestsApiService = 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
|
+
* HookRequestsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class HookRequestsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Get a hook request by ID
|
|
35
|
+
* @param {string} hookRequestId The ID of the hook request.
|
|
36
|
+
*/
|
|
37
|
+
getHookRequest(hookRequestId) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (hookRequestId === null || hookRequestId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('hookRequestId', 'getHookRequest');
|
|
41
|
+
}
|
|
42
|
+
let queryString = '';
|
|
43
|
+
const requestUrl = '/hook-requests/{hook_request_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.get(requestUrl.replace(`{${"hook_request_id"}}`, encodeURIComponent(String(hookRequestId))));
|
|
45
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.HookRequestsApiService = HookRequestsApiService;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { Hook } from '../../generated/models';
|
|
15
|
+
import { HookCreate } from '../../generated/models';
|
|
16
|
+
import { HookUpdate } from '../../generated/models';
|
|
17
|
+
/**
|
|
18
|
+
* HooksApiService - Auto-generated
|
|
19
|
+
*/
|
|
20
|
+
export declare class HooksApiService extends ApiBaseService {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Create a hook to a specific resource
|
|
24
|
+
* @param {string} hookType The hook type.
|
|
25
|
+
* @param {HookCreate} hookCreate A JSON object containing the resource data
|
|
26
|
+
*/
|
|
27
|
+
addHook(hookType: string, hookCreate: HookCreate): Promise<ApiResponse<Hook>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Delete a given hook
|
|
31
|
+
* @param {string} hookId The ID of the hook.
|
|
32
|
+
* @param {string} hookType The hook type.
|
|
33
|
+
*/
|
|
34
|
+
deleteHook(hookId: string, hookType: string): Promise<ApiResponse<void>>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Get a hook by ID
|
|
38
|
+
* @param {string} hookId The ID of the hook.
|
|
39
|
+
* @param {string} hookType The hook type.
|
|
40
|
+
*/
|
|
41
|
+
getHook(hookId: string, hookType: string): Promise<ApiResponse<Hook>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary Trigger an incoming hook associated action
|
|
45
|
+
* @param {string} hookId The ID of the hook.
|
|
46
|
+
*/
|
|
47
|
+
triggerHook(hookId: string): Promise<ApiResponse<void>>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @summary Update an existing hook
|
|
51
|
+
* @param {string} hookId The ID of the hook.
|
|
52
|
+
* @param {string} hookType The hook type.
|
|
53
|
+
* @param {HookUpdate} hookUpdate A JSON object containing the resource data
|
|
54
|
+
*/
|
|
55
|
+
updateHook(hookId: string, hookType: string, hookUpdate: HookUpdate): Promise<ApiResponse<void>>;
|
|
56
|
+
}
|