@devopness/sdk-js 2.6.1 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DevopnessApiClient.d.ts +2 -0
- package/dist/DevopnessApiClient.js +2 -0
- package/dist/api/generated/apis/environments-members-api.d.ts +37 -0
- package/dist/api/generated/apis/environments-members-api.js +87 -0
- package/dist/api/generated/apis/environments-teams-api.d.ts +0 -9
- package/dist/api/generated/apis/environments-teams-api.js +0 -20
- package/dist/api/generated/apis/pipelines-steps-api.d.ts +9 -0
- package/dist/api/generated/apis/pipelines-steps-api.js +24 -0
- package/dist/api/generated/apis/projects-roles-api.d.ts +33 -0
- package/dist/api/generated/apis/projects-roles-api.js +69 -0
- package/dist/api/generated/apis/projects-teams-api.d.ts +27 -0
- package/dist/api/generated/apis/projects-teams-api.js +53 -0
- package/dist/api/generated/apis/roles-api.d.ts +39 -0
- package/dist/api/generated/apis/roles-api.js +85 -0
- package/dist/api/generated/apis/static-data-api.d.ts +6 -0
- package/dist/api/generated/apis/static-data-api.js +12 -0
- package/dist/api/generated/apis/teams-api.d.ts +30 -0
- package/dist/api/generated/apis/teams-api.js +80 -0
- package/dist/api/generated/apis/teams-invitations-api.d.ts +8 -0
- package/dist/api/generated/apis/teams-invitations-api.js +20 -0
- package/dist/api/generated/models/application-deployment.d.ts +6 -0
- package/dist/api/generated/models/environment-member-profile.d.ts +49 -0
- package/dist/api/generated/models/environment-member-profile.js +14 -0
- package/dist/api/generated/models/environment-member.d.ts +36 -0
- package/dist/api/generated/models/environment-member.js +14 -0
- package/dist/api/generated/models/environment-team-link.d.ts +24 -0
- package/dist/api/generated/models/environment-team-link.js +14 -0
- package/dist/api/generated/models/environment-team.d.ts +61 -0
- package/dist/api/generated/models/environment-team.js +14 -0
- package/dist/api/generated/models/environment.d.ts +6 -0
- package/dist/api/generated/models/index.d.ts +10 -0
- package/dist/api/generated/models/index.js +10 -0
- package/dist/api/generated/models/invitation.d.ts +0 -6
- package/dist/api/generated/models/permission-permissions.d.ts +42 -0
- package/dist/api/generated/models/permission-permissions.js +14 -0
- package/dist/api/generated/models/permission.d.ts +37 -0
- package/dist/api/generated/models/permission.js +14 -0
- package/dist/api/generated/models/pipeline-step-update.d.ts +49 -0
- package/dist/api/generated/models/pipeline-step-update.js +14 -0
- package/dist/api/generated/models/role-create.d.ts +36 -0
- package/dist/api/generated/models/role-create.js +14 -0
- package/dist/api/generated/models/role-update.d.ts +42 -0
- package/dist/api/generated/models/role-update.js +14 -0
- package/dist/api/generated/models/role.d.ts +60 -0
- package/dist/api/generated/models/role.js +14 -0
- package/dist/api/generated/models/team-create.d.ts +0 -6
- package/dist/api/generated/models/team.d.ts +0 -7
- package/dist/services/EnvironmentService.d.ts +2 -0
- package/dist/services/EnvironmentService.js +2 -0
- package/dist/services/ProjectService.d.ts +4 -0
- package/dist/services/ProjectService.js +4 -0
- package/dist/services/RoleService.d.ts +3 -0
- package/dist/services/RoleService.js +7 -0
- package/package.json +1 -1
|
@@ -29,6 +29,22 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* TeamsApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Delete a given team
|
|
35
|
+
* @param {number} teamId Numeric ID of the team to be deleted
|
|
36
|
+
*/
|
|
37
|
+
deleteTeam(teamId) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (teamId === null || teamId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'deleteTeam');
|
|
41
|
+
}
|
|
42
|
+
let queryString = '';
|
|
43
|
+
const requestUrl = '/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.delete(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
45
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
32
48
|
/**
|
|
33
49
|
*
|
|
34
50
|
* @summary Get a team by ID
|
|
@@ -45,5 +61,69 @@ class TeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
45
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
62
|
});
|
|
47
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Link team to a given environment
|
|
67
|
+
* @param {number} environmentId Numeric ID of the environment to link
|
|
68
|
+
* @param {number} teamId Numeric ID of the team to be linked
|
|
69
|
+
* @param {EnvironmentTeamLink} environmentTeamLink A JSON object containing the role ID
|
|
70
|
+
*/
|
|
71
|
+
linkTeamToEnvironment(environmentId, teamId, environmentTeamLink) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
if (environmentId === null || environmentId === undefined) {
|
|
74
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'linkTeamToEnvironment');
|
|
75
|
+
}
|
|
76
|
+
if (teamId === null || teamId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'linkTeamToEnvironment');
|
|
78
|
+
}
|
|
79
|
+
if (environmentTeamLink === null || environmentTeamLink === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('environmentTeamLink', 'linkTeamToEnvironment');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/environments/{environment_id}/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), environmentTeamLink);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @summary Unlink team from the environment
|
|
91
|
+
* @param {number} environmentId Numeric ID of the environment to unlink
|
|
92
|
+
* @param {number} teamId Numeric ID of the team to be unlinked
|
|
93
|
+
*/
|
|
94
|
+
unlinkTeamFromEnvironment(environmentId, teamId) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
if (environmentId === null || environmentId === undefined) {
|
|
97
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'unlinkTeamFromEnvironment');
|
|
98
|
+
}
|
|
99
|
+
if (teamId === null || teamId === undefined) {
|
|
100
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'unlinkTeamFromEnvironment');
|
|
101
|
+
}
|
|
102
|
+
let queryString = '';
|
|
103
|
+
const requestUrl = '/environments/{environment_id}/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
104
|
+
const response = yield this.delete(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))));
|
|
105
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary Update an existing team
|
|
111
|
+
* @param {number} teamId Numeric ID of the team to be updated
|
|
112
|
+
* @param {TeamCreate} teamCreate A JSON object containing team data
|
|
113
|
+
*/
|
|
114
|
+
updateTeam(teamId, teamCreate) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
if (teamId === null || teamId === undefined) {
|
|
117
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'updateTeam');
|
|
118
|
+
}
|
|
119
|
+
if (teamCreate === null || teamCreate === undefined) {
|
|
120
|
+
throw new Exceptions_1.ArgumentNullException('teamCreate', 'updateTeam');
|
|
121
|
+
}
|
|
122
|
+
let queryString = '';
|
|
123
|
+
const requestUrl = '/teams/{team_id}' + (queryString ? `?${queryString}` : '');
|
|
124
|
+
const response = yield this.put(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamCreate);
|
|
125
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
48
128
|
}
|
|
49
129
|
exports.TeamsApiService = TeamsApiService;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Invitation } from '../../generated/models';
|
|
15
|
+
import { InvitationCreate } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* TeamsInvitationsApiService - Auto-generated
|
|
17
18
|
*/
|
|
@@ -24,4 +25,11 @@ export declare class TeamsInvitationsApiService extends ApiBaseService {
|
|
|
24
25
|
* @param {number} [perPage] Number of items returned per page
|
|
25
26
|
*/
|
|
26
27
|
listTeamInvitations(teamId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<Invitation>>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Send invitation to user email to participate to a team
|
|
31
|
+
* @param {number} teamId Numeric ID of the team to invite an user
|
|
32
|
+
* @param {InvitationCreate} invitationCreate A JSON object containing the email to send the invitation
|
|
33
|
+
*/
|
|
34
|
+
sendTeamInvitation(teamId: number, invitationCreate: InvitationCreate): Promise<ApiResponse<Invitation>>;
|
|
27
35
|
}
|
|
@@ -54,5 +54,25 @@ class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
54
54
|
return new ApiResponse_1.ApiResponse(response);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @summary Send invitation to user email to participate to a team
|
|
60
|
+
* @param {number} teamId Numeric ID of the team to invite an user
|
|
61
|
+
* @param {InvitationCreate} invitationCreate A JSON object containing the email to send the invitation
|
|
62
|
+
*/
|
|
63
|
+
sendTeamInvitation(teamId, invitationCreate) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
if (teamId === null || teamId === undefined) {
|
|
66
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'sendTeamInvitation');
|
|
67
|
+
}
|
|
68
|
+
if (invitationCreate === null || invitationCreate === undefined) {
|
|
69
|
+
throw new Exceptions_1.ArgumentNullException('invitationCreate', 'sendTeamInvitation');
|
|
70
|
+
}
|
|
71
|
+
let queryString = '';
|
|
72
|
+
const requestUrl = '/teams/{team_id}/invitations' + (queryString ? `?${queryString}` : '');
|
|
73
|
+
const response = yield this.post(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), invitationCreate);
|
|
74
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
57
77
|
}
|
|
58
78
|
exports.TeamsInvitationsApiService = TeamsInvitationsApiService;
|
|
@@ -22,6 +22,12 @@ export interface ApplicationDeployment {
|
|
|
22
22
|
* @memberof ApplicationDeployment
|
|
23
23
|
*/
|
|
24
24
|
type: DeploymentType;
|
|
25
|
+
/**
|
|
26
|
+
* The pipeline\'s ID to use for deployment
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApplicationDeployment
|
|
29
|
+
*/
|
|
30
|
+
pipeline_id?: number;
|
|
25
31
|
/**
|
|
26
32
|
* The name of the branch from which the application source code will be retrieved and deployed. This parameter is ignored when `hash` is provided.
|
|
27
33
|
* @type {string}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { EnvironmentTeam } from './environment-team';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EnvironmentMemberProfile
|
|
17
|
+
*/
|
|
18
|
+
export interface EnvironmentMemberProfile {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the member
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof EnvironmentMemberProfile
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* Member\'s full name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EnvironmentMemberProfile
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Member\'s email
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EnvironmentMemberProfile
|
|
35
|
+
*/
|
|
36
|
+
email: string;
|
|
37
|
+
/**
|
|
38
|
+
* Tells if the user is active or not
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof EnvironmentMemberProfile
|
|
41
|
+
*/
|
|
42
|
+
active: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<EnvironmentTeam>}
|
|
46
|
+
* @memberof EnvironmentMemberProfile
|
|
47
|
+
*/
|
|
48
|
+
teams: Array<EnvironmentTeam>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EnvironmentMember
|
|
16
|
+
*/
|
|
17
|
+
export interface EnvironmentMember {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the member
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof EnvironmentMember
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Member\'s full name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EnvironmentMember
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Member\'s email
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EnvironmentMember
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EnvironmentTeamLink
|
|
16
|
+
*/
|
|
17
|
+
export interface EnvironmentTeamLink {
|
|
18
|
+
/**
|
|
19
|
+
* The role\'s ID to use for this team on environment
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof EnvironmentTeamLink
|
|
22
|
+
*/
|
|
23
|
+
role_id: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { Role } from './role';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EnvironmentTeam
|
|
17
|
+
*/
|
|
18
|
+
export interface EnvironmentTeam {
|
|
19
|
+
/**
|
|
20
|
+
* The unique id of the given team
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof EnvironmentTeam
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the given team
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EnvironmentTeam
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The URL to team\'s image
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EnvironmentTeam
|
|
35
|
+
*/
|
|
36
|
+
photo_url: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The unique id of the role used on this environment
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof EnvironmentTeam
|
|
41
|
+
*/
|
|
42
|
+
role_id?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Role}
|
|
46
|
+
* @memberof EnvironmentTeam
|
|
47
|
+
*/
|
|
48
|
+
role: Role;
|
|
49
|
+
/**
|
|
50
|
+
* The date and time when the record was created
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof EnvironmentTeam
|
|
53
|
+
*/
|
|
54
|
+
created_at?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time when the record was last updated
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof EnvironmentTeam
|
|
59
|
+
*/
|
|
60
|
+
updated_at?: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -103,6 +103,12 @@ export interface Environment {
|
|
|
103
103
|
* @memberof Environment
|
|
104
104
|
*/
|
|
105
105
|
created_by_user: UserRelation;
|
|
106
|
+
/**
|
|
107
|
+
* The list of permissions for this role
|
|
108
|
+
* @type {Array<string>}
|
|
109
|
+
* @memberof Environment
|
|
110
|
+
*/
|
|
111
|
+
current_user_permissions?: Array<string>;
|
|
106
112
|
/**
|
|
107
113
|
* The date and time when the record was created
|
|
108
114
|
* @type {string}
|
|
@@ -69,9 +69,13 @@ export * from './environment-create';
|
|
|
69
69
|
export * from './environment-id-request';
|
|
70
70
|
export * from './environment-link-item';
|
|
71
71
|
export * from './environment-link-server';
|
|
72
|
+
export * from './environment-member';
|
|
73
|
+
export * from './environment-member-profile';
|
|
72
74
|
export * from './environment-option-type';
|
|
73
75
|
export * from './environment-options';
|
|
74
76
|
export * from './environment-relation';
|
|
77
|
+
export * from './environment-team';
|
|
78
|
+
export * from './environment-team-link';
|
|
75
79
|
export * from './environment-type';
|
|
76
80
|
export * from './environment-update';
|
|
77
81
|
export * from './hook';
|
|
@@ -116,11 +120,14 @@ export * from './network-rule-type';
|
|
|
116
120
|
export * from './network-rule-update';
|
|
117
121
|
export * from './operating-system';
|
|
118
122
|
export * from './operating-system-supported-versions';
|
|
123
|
+
export * from './permission';
|
|
124
|
+
export * from './permission-permissions';
|
|
119
125
|
export * from './pipeline';
|
|
120
126
|
export * from './pipeline-create';
|
|
121
127
|
export * from './pipeline-step';
|
|
122
128
|
export * from './pipeline-step-create';
|
|
123
129
|
export * from './pipeline-step-runner-name';
|
|
130
|
+
export * from './pipeline-step-update';
|
|
124
131
|
export * from './project';
|
|
125
132
|
export * from './project-create';
|
|
126
133
|
export * from './project-relation';
|
|
@@ -130,6 +137,9 @@ export * from './repository-branch';
|
|
|
130
137
|
export * from './resource';
|
|
131
138
|
export * from './resource-event';
|
|
132
139
|
export * from './resource-type';
|
|
140
|
+
export * from './role';
|
|
141
|
+
export * from './role-create';
|
|
142
|
+
export * from './role-update';
|
|
133
143
|
export * from './script';
|
|
134
144
|
export * from './script-create';
|
|
135
145
|
export * from './script-runner';
|
|
@@ -85,9 +85,13 @@ __exportStar(require("./environment-create"), exports);
|
|
|
85
85
|
__exportStar(require("./environment-id-request"), exports);
|
|
86
86
|
__exportStar(require("./environment-link-item"), exports);
|
|
87
87
|
__exportStar(require("./environment-link-server"), exports);
|
|
88
|
+
__exportStar(require("./environment-member"), exports);
|
|
89
|
+
__exportStar(require("./environment-member-profile"), exports);
|
|
88
90
|
__exportStar(require("./environment-option-type"), exports);
|
|
89
91
|
__exportStar(require("./environment-options"), exports);
|
|
90
92
|
__exportStar(require("./environment-relation"), exports);
|
|
93
|
+
__exportStar(require("./environment-team"), exports);
|
|
94
|
+
__exportStar(require("./environment-team-link"), exports);
|
|
91
95
|
__exportStar(require("./environment-type"), exports);
|
|
92
96
|
__exportStar(require("./environment-update"), exports);
|
|
93
97
|
__exportStar(require("./hook"), exports);
|
|
@@ -132,11 +136,14 @@ __exportStar(require("./network-rule-type"), exports);
|
|
|
132
136
|
__exportStar(require("./network-rule-update"), exports);
|
|
133
137
|
__exportStar(require("./operating-system"), exports);
|
|
134
138
|
__exportStar(require("./operating-system-supported-versions"), exports);
|
|
139
|
+
__exportStar(require("./permission"), exports);
|
|
140
|
+
__exportStar(require("./permission-permissions"), exports);
|
|
135
141
|
__exportStar(require("./pipeline"), exports);
|
|
136
142
|
__exportStar(require("./pipeline-create"), exports);
|
|
137
143
|
__exportStar(require("./pipeline-step"), exports);
|
|
138
144
|
__exportStar(require("./pipeline-step-create"), exports);
|
|
139
145
|
__exportStar(require("./pipeline-step-runner-name"), exports);
|
|
146
|
+
__exportStar(require("./pipeline-step-update"), exports);
|
|
140
147
|
__exportStar(require("./project"), exports);
|
|
141
148
|
__exportStar(require("./project-create"), exports);
|
|
142
149
|
__exportStar(require("./project-relation"), exports);
|
|
@@ -146,6 +153,9 @@ __exportStar(require("./repository-branch"), exports);
|
|
|
146
153
|
__exportStar(require("./resource"), exports);
|
|
147
154
|
__exportStar(require("./resource-event"), exports);
|
|
148
155
|
__exportStar(require("./resource-type"), exports);
|
|
156
|
+
__exportStar(require("./role"), exports);
|
|
157
|
+
__exportStar(require("./role-create"), exports);
|
|
158
|
+
__exportStar(require("./role-update"), exports);
|
|
149
159
|
__exportStar(require("./script"), exports);
|
|
150
160
|
__exportStar(require("./script-create"), exports);
|
|
151
161
|
__exportStar(require("./script-runner"), exports);
|
|
@@ -36,12 +36,6 @@ export interface Invitation {
|
|
|
36
36
|
* @memberof Invitation
|
|
37
37
|
*/
|
|
38
38
|
status_human_readable?: string;
|
|
39
|
-
/**
|
|
40
|
-
* The role to be assigned to the invited user after the invitation is accepted
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof Invitation
|
|
43
|
-
*/
|
|
44
|
-
role: string;
|
|
45
39
|
/**
|
|
46
40
|
* The email of the user that has been invited to team
|
|
47
41
|
* @type {string}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PermissionPermissions
|
|
16
|
+
*/
|
|
17
|
+
export interface PermissionPermissions {
|
|
18
|
+
/**
|
|
19
|
+
* Name of permission
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PermissionPermissions
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Human readable permission name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PermissionPermissions
|
|
28
|
+
*/
|
|
29
|
+
human_readable: string;
|
|
30
|
+
/**
|
|
31
|
+
* Description of what a role is allowed to do with a resource if she has this permission
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PermissionPermissions
|
|
34
|
+
*/
|
|
35
|
+
hint: string;
|
|
36
|
+
/**
|
|
37
|
+
* List of permissions the role must have before receiving this one
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof PermissionPermissions
|
|
40
|
+
*/
|
|
41
|
+
required_permissions?: Array<string>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { PermissionPermissions } from './permission-permissions';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Permission
|
|
17
|
+
*/
|
|
18
|
+
export interface Permission {
|
|
19
|
+
/**
|
|
20
|
+
* The type of resource this permission affects
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Permission
|
|
23
|
+
*/
|
|
24
|
+
resource_type: string;
|
|
25
|
+
/**
|
|
26
|
+
* Human readable resource name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Permission
|
|
29
|
+
*/
|
|
30
|
+
human_readable: string;
|
|
31
|
+
/**
|
|
32
|
+
* List of permissions available for this resource
|
|
33
|
+
* @type {Array<PermissionPermissions>}
|
|
34
|
+
* @memberof Permission
|
|
35
|
+
*/
|
|
36
|
+
permissions: Array<PermissionPermissions>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { PipelineStepRunnerName } from './pipeline-step-runner-name';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PipelineStepUpdate
|
|
17
|
+
*/
|
|
18
|
+
export interface PipelineStepUpdate {
|
|
19
|
+
/**
|
|
20
|
+
* Name/short description of the script
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PipelineStepUpdate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* A command line or multiline bash script
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PipelineStepUpdate
|
|
29
|
+
*/
|
|
30
|
+
command: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PipelineStepRunnerName}
|
|
34
|
+
* @memberof PipelineStepUpdate
|
|
35
|
+
*/
|
|
36
|
+
runner: PipelineStepRunnerName;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the Unix user on behalf of which the script will be executed
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PipelineStepUpdate
|
|
41
|
+
*/
|
|
42
|
+
run_as_user?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Repositions the pipeline step after the step with the given `trigger_order`
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PipelineStepUpdate
|
|
47
|
+
*/
|
|
48
|
+
trigger_after?: number;
|
|
49
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|