@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
|
@@ -11,64 +11,71 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Language } from './language';
|
|
13
13
|
import { SocialAccount } from './social-account';
|
|
14
|
+
import { SubscriptionPlan } from './subscription-plan';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
17
|
-
* @interface
|
|
18
|
+
* @interface UserMe
|
|
18
19
|
*/
|
|
19
|
-
export interface
|
|
20
|
+
export interface UserMe {
|
|
20
21
|
/**
|
|
21
22
|
* The unique ID of the given user
|
|
22
23
|
* @type {number}
|
|
23
|
-
* @memberof
|
|
24
|
+
* @memberof UserMe
|
|
24
25
|
*/
|
|
25
26
|
id: number;
|
|
26
27
|
/**
|
|
27
28
|
* User\'s full name
|
|
28
29
|
* @type {string}
|
|
29
|
-
* @memberof
|
|
30
|
+
* @memberof UserMe
|
|
30
31
|
*/
|
|
31
32
|
name: string;
|
|
32
33
|
/**
|
|
33
34
|
* The e-mail that will uniquely identify the user on the system and become its login credential
|
|
34
35
|
* @type {string}
|
|
35
|
-
* @memberof
|
|
36
|
+
* @memberof UserMe
|
|
36
37
|
*/
|
|
37
38
|
email: string;
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
41
|
* @type {Language}
|
|
41
|
-
* @memberof
|
|
42
|
+
* @memberof UserMe
|
|
42
43
|
*/
|
|
43
44
|
language: Language | null;
|
|
44
45
|
/**
|
|
45
46
|
* Tells if the user is active or not
|
|
46
47
|
* @type {boolean}
|
|
47
|
-
* @memberof
|
|
48
|
+
* @memberof UserMe
|
|
48
49
|
*/
|
|
49
50
|
active: boolean;
|
|
50
51
|
/**
|
|
51
52
|
*
|
|
52
53
|
* @type {Array<SocialAccount>}
|
|
53
|
-
* @memberof
|
|
54
|
+
* @memberof UserMe
|
|
54
55
|
*/
|
|
55
56
|
social_accounts: Array<SocialAccount>;
|
|
56
57
|
/**
|
|
57
58
|
* The code of current billing plan
|
|
58
59
|
* @type {string}
|
|
59
|
-
* @memberof
|
|
60
|
+
* @memberof UserMe
|
|
60
61
|
*/
|
|
61
62
|
current_billing_plan: string;
|
|
63
|
+
/**
|
|
64
|
+
* The list of subscription plans
|
|
65
|
+
* @type {Array<SubscriptionPlan>}
|
|
66
|
+
* @memberof UserMe
|
|
67
|
+
*/
|
|
68
|
+
subscription_plans: Array<SubscriptionPlan>;
|
|
62
69
|
/**
|
|
63
70
|
* The date and time when the record was created
|
|
64
71
|
* @type {string}
|
|
65
|
-
* @memberof
|
|
72
|
+
* @memberof UserMe
|
|
66
73
|
*/
|
|
67
74
|
created_at: string;
|
|
68
75
|
/**
|
|
69
76
|
* The date and time when the record was last updated
|
|
70
77
|
* @type {string}
|
|
71
|
-
* @memberof
|
|
78
|
+
* @memberof UserMe
|
|
72
79
|
*/
|
|
73
80
|
updated_at: string;
|
|
74
81
|
}
|
|
File without changes
|
|
@@ -39,4 +39,10 @@ export interface UserUpdate {
|
|
|
39
39
|
* @memberof UserUpdate
|
|
40
40
|
*/
|
|
41
41
|
language?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The user subscription plan. Must be one of <code>FREE</code> or <code>PAID</code>.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UserUpdate
|
|
46
|
+
*/
|
|
47
|
+
current_billing_plan?: string;
|
|
42
48
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Language } from './language';
|
|
13
13
|
import { SocialAccount } from './social-account';
|
|
14
|
+
import { SubscriptionPlan } from './subscription-plan';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -59,6 +60,12 @@ export interface User {
|
|
|
59
60
|
* @memberof User
|
|
60
61
|
*/
|
|
61
62
|
current_billing_plan: string;
|
|
63
|
+
/**
|
|
64
|
+
* The list of subscription plans
|
|
65
|
+
* @type {Array<SubscriptionPlan>}
|
|
66
|
+
* @memberof User
|
|
67
|
+
*/
|
|
68
|
+
subscription_plans: Array<SubscriptionPlan>;
|
|
62
69
|
/**
|
|
63
70
|
* The date and time when the record was created
|
|
64
71
|
* @type {string}
|
|
@@ -53,16 +53,4 @@ export interface VariableApplicationCreate {
|
|
|
53
53
|
* @memberof VariableApplicationCreate
|
|
54
54
|
*/
|
|
55
55
|
hidden: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* The ID of the resource this variable is linked to.
|
|
58
|
-
* @type {number}
|
|
59
|
-
* @memberof VariableApplicationCreate
|
|
60
|
-
*/
|
|
61
|
-
resource_id: number;
|
|
62
|
-
/**
|
|
63
|
-
* The type of the resource this variable is linked to. Must be one of <code>application</code>.
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof VariableApplicationCreate
|
|
66
|
-
*/
|
|
67
|
-
resource_type: string;
|
|
68
56
|
}
|
|
@@ -53,12 +53,6 @@ export interface VariableRelation {
|
|
|
53
53
|
* @memberof VariableRelation
|
|
54
54
|
*/
|
|
55
55
|
target: VariableTarget;
|
|
56
|
-
/**
|
|
57
|
-
* The target name of this variable
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof VariableRelation
|
|
60
|
-
*/
|
|
61
|
-
target_name: string | null;
|
|
62
56
|
/**
|
|
63
57
|
* The ID of the resource this variable is linked to
|
|
64
58
|
* @type {number}
|
|
@@ -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 { VariableTarget } from './variable-target';
|
|
13
|
+
import { VariableType } from './variable-type';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface VariableServiceCreate
|
|
18
|
+
*/
|
|
19
|
+
export interface VariableServiceCreate {
|
|
20
|
+
/**
|
|
21
|
+
* The unique key used to identify the variable on the target. Must not be greater than 100 characters.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof VariableServiceCreate
|
|
24
|
+
*/
|
|
25
|
+
key: string;
|
|
26
|
+
/**
|
|
27
|
+
* The value to be assigned to this variable when deployed to its target. When variable is of type `file`, this is the file content. Must not be greater than 21504 characters.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof VariableServiceCreate
|
|
30
|
+
*/
|
|
31
|
+
value: string;
|
|
32
|
+
/**
|
|
33
|
+
* A text describing the variable, provided by the end user.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof VariableServiceCreate
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {VariableTarget}
|
|
41
|
+
* @memberof VariableServiceCreate
|
|
42
|
+
*/
|
|
43
|
+
target: VariableTarget;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {VariableType}
|
|
47
|
+
* @memberof VariableServiceCreate
|
|
48
|
+
*/
|
|
49
|
+
type: VariableType;
|
|
50
|
+
/**
|
|
51
|
+
* Indicates if the variable value should be visible or not in the deployment logs.
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof VariableServiceCreate
|
|
54
|
+
*/
|
|
55
|
+
hidden: boolean;
|
|
56
|
+
}
|
|
File without changes
|
|
@@ -53,12 +53,6 @@ export interface Variable {
|
|
|
53
53
|
* @memberof Variable
|
|
54
54
|
*/
|
|
55
55
|
target: VariableTarget;
|
|
56
|
-
/**
|
|
57
|
-
* The target name of this variable
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Variable
|
|
60
|
-
*/
|
|
61
|
-
target_name: string | null;
|
|
62
56
|
/**
|
|
63
57
|
* The ID of the resource this variable is linked to
|
|
64
58
|
* @type {number}
|
|
@@ -8,6 +8,7 @@ import { EnvironmentsServersApiService } from '../api/generated/apis/environment
|
|
|
8
8
|
import { EnvironmentsServicesApiService } from '../api/generated/apis/environments-services-api';
|
|
9
9
|
import { EnvironmentsSSHKeysApiService } from '../api/generated/apis/environments-sshkeys-api';
|
|
10
10
|
import { EnvironmentsTeamMembershipsApiService } from '../api/generated/apis/environments-team-memberships-api';
|
|
11
|
+
import { EnvironmentsTeamsApiService } from '../api/generated/apis/environments-teams-api';
|
|
11
12
|
export declare class EnvironmentService extends EnvironmentsApiService {
|
|
12
13
|
actions: EnvironmentsActionsApiService;
|
|
13
14
|
applications: EnvironmentsApplicationsApiService;
|
|
@@ -17,5 +18,6 @@ export declare class EnvironmentService extends EnvironmentsApiService {
|
|
|
17
18
|
servers: EnvironmentsServersApiService;
|
|
18
19
|
services: EnvironmentsServicesApiService;
|
|
19
20
|
sshKeys: EnvironmentsSSHKeysApiService;
|
|
21
|
+
teams: EnvironmentsTeamsApiService;
|
|
20
22
|
teamMemberships: EnvironmentsTeamMembershipsApiService;
|
|
21
23
|
}
|
|
@@ -11,6 +11,7 @@ const environments_servers_api_1 = require("../api/generated/apis/environments-s
|
|
|
11
11
|
const environments_services_api_1 = require("../api/generated/apis/environments-services-api");
|
|
12
12
|
const environments_sshkeys_api_1 = require("../api/generated/apis/environments-sshkeys-api");
|
|
13
13
|
const environments_team_memberships_api_1 = require("../api/generated/apis/environments-team-memberships-api");
|
|
14
|
+
const environments_teams_api_1 = require("../api/generated/apis/environments-teams-api");
|
|
14
15
|
class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
@@ -22,6 +23,7 @@ class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
|
22
23
|
this.servers = new environments_servers_api_1.EnvironmentsServersApiService();
|
|
23
24
|
this.services = new environments_services_api_1.EnvironmentsServicesApiService();
|
|
24
25
|
this.sshKeys = new environments_sshkeys_api_1.EnvironmentsSSHKeysApiService();
|
|
26
|
+
this.teams = new environments_teams_api_1.EnvironmentsTeamsApiService();
|
|
25
27
|
this.teamMemberships = new environments_team_memberships_api_1.EnvironmentsTeamMembershipsApiService();
|
|
26
28
|
}
|
|
27
29
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class HookRequestService extends
|
|
1
|
+
import { HookRequestsApiService } from '../api/generated/apis/hook-requests-api';
|
|
2
|
+
export declare class HookRequestService extends HookRequestsApiService {
|
|
3
3
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HookRequestService = void 0;
|
|
4
|
-
const
|
|
5
|
-
class HookRequestService extends
|
|
4
|
+
const hook_requests_api_1 = require("../api/generated/apis/hook-requests-api");
|
|
5
|
+
class HookRequestService extends hook_requests_api_1.HookRequestsApiService {
|
|
6
6
|
}
|
|
7
7
|
exports.HookRequestService = HookRequestService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HookService = void 0;
|
|
4
|
+
const hooks_api_1 = require("../api/generated/apis/hooks-api");
|
|
5
|
+
const hooks_requests_api_1 = require("../api/generated/apis/hooks-requests-api");
|
|
6
|
+
class HookService extends hooks_api_1.HooksApiService {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.requests = new hooks_requests_api_1.HooksRequestsApiService();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.HookService = HookService;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PipelinesApiService } from "../api/generated/apis/pipelines-api";
|
|
2
|
-
import { PipelinesResourcesApiService } from "../api/generated/apis/pipelines-resources-api";
|
|
3
2
|
import { PipelinesStepsApiService } from "../api/generated/apis/pipelines-steps-api";
|
|
4
3
|
export declare class PipelineService extends PipelinesApiService {
|
|
5
|
-
resources: PipelinesResourcesApiService;
|
|
6
4
|
steps: PipelinesStepsApiService;
|
|
7
5
|
}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PipelineService = void 0;
|
|
4
4
|
const pipelines_api_1 = require("../api/generated/apis/pipelines-api");
|
|
5
|
-
const pipelines_resources_api_1 = require("../api/generated/apis/pipelines-resources-api");
|
|
6
5
|
const pipelines_steps_api_1 = require("../api/generated/apis/pipelines-steps-api");
|
|
7
6
|
class PipelineService extends pipelines_api_1.PipelinesApiService {
|
|
8
7
|
constructor() {
|
|
9
8
|
super(...arguments);
|
|
10
|
-
this.resources = new pipelines_resources_api_1.PipelinesResourcesApiService();
|
|
11
9
|
this.steps = new pipelines_steps_api_1.PipelinesStepsApiService();
|
|
12
10
|
}
|
|
13
11
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ServicesApiService } from '../api/generated/apis/services-api';
|
|
2
|
+
import { ServicesVariablesApiService } from '../api/generated/apis/services-variables-api';
|
|
2
3
|
export declare class ServiceService extends ServicesApiService {
|
|
4
|
+
variables: ServicesVariablesApiService;
|
|
3
5
|
}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServiceService = void 0;
|
|
4
4
|
const services_api_1 = require("../api/generated/apis/services-api");
|
|
5
|
+
const services_variables_api_1 = require("../api/generated/apis/services-variables-api");
|
|
5
6
|
class ServiceService extends services_api_1.ServicesApiService {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.variables = new services_variables_api_1.ServicesVariablesApiService();
|
|
10
|
+
}
|
|
6
11
|
}
|
|
7
12
|
exports.ServiceService = ServiceService;
|
package/dist/services/index.d.ts
CHANGED
|
@@ -5,8 +5,7 @@ export * from './CloudProviderCredentialService';
|
|
|
5
5
|
export * from './CronJobService';
|
|
6
6
|
export * from './DaemonService';
|
|
7
7
|
export * from './EnvironmentService';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './HookOutgoingService';
|
|
8
|
+
export * from './HookService';
|
|
10
9
|
export * from './HookRequestService';
|
|
11
10
|
export * from './LogService';
|
|
12
11
|
export * from './NetworkRuleService';
|
package/dist/services/index.js
CHANGED
|
@@ -21,8 +21,7 @@ __exportStar(require("./CloudProviderCredentialService"), exports);
|
|
|
21
21
|
__exportStar(require("./CronJobService"), exports);
|
|
22
22
|
__exportStar(require("./DaemonService"), exports);
|
|
23
23
|
__exportStar(require("./EnvironmentService"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./HookOutgoingService"), exports);
|
|
24
|
+
__exportStar(require("./HookService"), exports);
|
|
26
25
|
__exportStar(require("./HookRequestService"), exports);
|
|
27
26
|
__exportStar(require("./LogService"), exports);
|
|
28
27
|
__exportStar(require("./NetworkRuleService"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devopness/sdk-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "rm -Rf ./dist && npm run lint && tsc",
|
|
15
|
-
"build-api-models": "rm -Rf ./src/api/generated && JAVA_OPTS=\"${JAVA_OPTS} -Dlog.level=warn\" openapi-generator-cli generate
|
|
14
|
+
"build": "rm -Rf ./dist && npm run build-api-models && npm run lint && tsc",
|
|
15
|
+
"build-api-models": "rm -Rf ./src/api/generated && JAVA_OPTS=\"${JAVA_OPTS} -Dlog.level=warn\" openapi-generator-cli generate",
|
|
16
16
|
"docs-remove-service-index": "rm -f src/services/index.ts",
|
|
17
17
|
"docs-export-service-index": "find src/services/ ! -name 'index.ts' -name '*.ts' -type f | sort -k3 -t'/' | xargs -I'{}' bash -c 'echo \"export * from $(echo -e \"\\x27\")./$(basename $0 .ts)$(echo -e \"\\x27\")\" >> src/services/index.ts' {} \\;",
|
|
18
18
|
"docs-update-service-index": "npm run docs-remove-service-index && npm run docs-export-service-index",
|
|
@@ -1,53 +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 { HookIncoming } from '../../generated/models';
|
|
15
|
-
import { HookIncomingCreate } from '../../generated/models';
|
|
16
|
-
import { HookIncomingUpdate } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* HooksIncomingApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class HooksIncomingApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Create an incoming hook to a specific resource
|
|
24
|
-
* @param {HookIncomingCreate} hookIncomingCreate A JSON object containing incoming hook data
|
|
25
|
-
*/
|
|
26
|
-
addIncomingHook(hookIncomingCreate: HookIncomingCreate): Promise<ApiResponse<HookIncoming>>;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @summary Delete a given incoming hook
|
|
30
|
-
* @param {string} hookIncomingId Unique ID of the incoming hook to be deleted
|
|
31
|
-
*/
|
|
32
|
-
deleteIncomingHook(hookIncomingId: string): Promise<ApiResponse<void>>;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @summary Get an incoming hook by Id
|
|
36
|
-
* @param {string} hookIncomingId Unique ID of the hook to be retrieved
|
|
37
|
-
*/
|
|
38
|
-
getIncomingHook(hookIncomingId: string): Promise<ApiResponse<HookIncoming>>;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @summary Trigger an incoming hook associated action
|
|
42
|
-
* @param {string} hookIncomingId Unique ID of the hook to be triggered
|
|
43
|
-
* @param {object} [body] A JSON object containg hook variables
|
|
44
|
-
*/
|
|
45
|
-
triggerHook(hookIncomingId: string, body?: object): Promise<ApiResponse<void>>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @summary Update an existing incoming hook
|
|
49
|
-
* @param {string} hookIncomingId Unique ID of the hook to be updated
|
|
50
|
-
* @param {HookIncomingUpdate} hookIncomingUpdate A JSON object containing incoming hook data
|
|
51
|
-
*/
|
|
52
|
-
updateIncomingHook(hookIncomingId: string, hookIncomingUpdate: HookIncomingUpdate): Promise<ApiResponse<void>>;
|
|
53
|
-
}
|
|
@@ -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
|
-
}
|