@devopness/sdk-js 2.164.10 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/apis/projects-api.d.ts +17 -1
- package/dist/api/generated/apis/projects-api.js +46 -1
- package/dist/api/generated/apis/team-invitations-api.d.ts +4 -3
- package/dist/api/generated/apis/team-invitations-api.js +11 -3
- package/dist/api/generated/apis/teams-invitations-api.d.ts +2 -2
- package/dist/api/generated/apis/teams-invitations-api.js +2 -2
- package/dist/api/generated/apis/teams-members-api.d.ts +1 -1
- package/dist/api/generated/apis/teams-members-api.js +1 -1
- package/dist/api/generated/models/index.d.ts +2 -0
- package/dist/api/generated/models/index.js +2 -0
- package/dist/api/generated/models/invitation-relation.d.ts +14 -7
- package/dist/api/generated/models/invitation-team-create.d.ts +9 -2
- package/dist/api/generated/models/invitation.d.ts +14 -7
- package/dist/api/generated/models/organization-relation.d.ts +7 -0
- package/dist/api/generated/models/project-create.d.ts +0 -6
- package/dist/api/generated/models/project-organization-create.d.ts +36 -0
- package/dist/api/generated/models/project-organization-create.js +14 -0
- package/dist/api/generated/models/team-invitation-relation.d.ts +14 -7
- package/dist/api/generated/models/team-invitation-status.d.ts +4 -2
- package/dist/api/generated/models/team-invitation-status.js +3 -1
- package/dist/api/generated/models/team-invitation-type.d.ts +20 -0
- package/dist/api/generated/models/team-invitation-type.js +25 -0
- package/dist/services/OrganizationService.d.ts +0 -2
- package/dist/services/OrganizationService.js +0 -2
- package/package.json +8 -8
- package/dist/api/generated/apis/organizations-projects-api.d.ts +0 -27
- package/dist/api/generated/apis/organizations-projects-api.js +0 -58
|
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Project } from '../../generated/models';
|
|
15
15
|
import { ProjectCreate } from '../../generated/models';
|
|
16
|
+
import { ProjectOrganizationCreate } from '../../generated/models';
|
|
16
17
|
import { ProjectRelation } from '../../generated/models';
|
|
17
18
|
import { ProjectUpdate } from '../../generated/models';
|
|
18
19
|
/**
|
|
@@ -21,7 +22,14 @@ import { ProjectUpdate } from '../../generated/models';
|
|
|
21
22
|
export declare class ProjectsApiService extends ApiBaseService {
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
24
|
-
* @summary Create a project
|
|
25
|
+
* @summary Create a project to a given organization
|
|
26
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
27
|
+
* @param {ProjectOrganizationCreate} projectOrganizationCreate A JSON object containing the resource data
|
|
28
|
+
*/
|
|
29
|
+
addOrganizationProject(organizationId: string, projectOrganizationCreate: ProjectOrganizationCreate): Promise<ApiResponse<Project>>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @summary Create a project for the authenticated user
|
|
25
33
|
* @param {ProjectCreate} projectCreate A JSON object containing the resource data
|
|
26
34
|
*/
|
|
27
35
|
addProject(projectCreate: ProjectCreate): Promise<ApiResponse<Project>>;
|
|
@@ -31,6 +39,14 @@ export declare class ProjectsApiService extends ApiBaseService {
|
|
|
31
39
|
* @param {number} projectId The ID of the project.
|
|
32
40
|
*/
|
|
33
41
|
getProject(projectId: number): Promise<ApiResponse<Project>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary List all projects belonging to an organization
|
|
45
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
46
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
47
|
+
* @param {number} [perPage] Number of items returned per page
|
|
48
|
+
*/
|
|
49
|
+
listOrganizationProjects(organizationId: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ProjectRelation>>>;
|
|
34
50
|
/**
|
|
35
51
|
*
|
|
36
52
|
* @summary Return a list of all projects the current user has access to
|
|
@@ -31,7 +31,27 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class ProjectsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Create a project
|
|
34
|
+
* @summary Create a project to a given organization
|
|
35
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
36
|
+
* @param {ProjectOrganizationCreate} projectOrganizationCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addOrganizationProject(organizationId, projectOrganizationCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (organizationId === null || organizationId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('organizationId', 'addOrganizationProject');
|
|
42
|
+
}
|
|
43
|
+
if (projectOrganizationCreate === null || projectOrganizationCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('projectOrganizationCreate', 'addOrganizationProject');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/organizations/{organization_id}/projects' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))), projectOrganizationCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Create a project for the authenticated user
|
|
35
55
|
* @param {ProjectCreate} projectCreate A JSON object containing the resource data
|
|
36
56
|
*/
|
|
37
57
|
addProject(projectCreate) {
|
|
@@ -61,6 +81,31 @@ class ProjectsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
61
81
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
82
|
});
|
|
63
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary List all projects belonging to an organization
|
|
87
|
+
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
88
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
89
|
+
* @param {number} [perPage] Number of items returned per page
|
|
90
|
+
*/
|
|
91
|
+
listOrganizationProjects(organizationId, page, perPage) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
if (organizationId === null || organizationId === undefined) {
|
|
94
|
+
throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationProjects');
|
|
95
|
+
}
|
|
96
|
+
let queryString = '';
|
|
97
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
98
|
+
for (const key in queryParams) {
|
|
99
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
103
|
+
}
|
|
104
|
+
const requestUrl = '/organizations/{organization_id}/projects' + (queryString ? `?${queryString}` : '');
|
|
105
|
+
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
|
|
106
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
64
109
|
/**
|
|
65
110
|
*
|
|
66
111
|
* @summary Return a list of all projects the current user has access to
|
|
@@ -17,10 +17,11 @@ import { ApiResponse } from "../../../common/ApiResponse";
|
|
|
17
17
|
export declare class TeamInvitationsApiService extends ApiBaseService {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @summary Accept a
|
|
20
|
+
* @summary Accept a team invitation
|
|
21
21
|
* @param {string} teamInvitationId The ID of the team invitation.
|
|
22
|
+
* @param {string} [token] The token to authorize the acceptance of public invitations.
|
|
22
23
|
*/
|
|
23
|
-
acceptTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
24
|
+
acceptTeamInvitation(teamInvitationId: string, token?: string): Promise<ApiResponse<void>>;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @summary Delete a pending team invitation
|
|
@@ -29,7 +30,7 @@ export declare class TeamInvitationsApiService extends ApiBaseService {
|
|
|
29
30
|
deleteTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @summary Reject a pending team invitation
|
|
33
|
+
* @summary Reject a pending private team invitation
|
|
33
34
|
* @param {string} teamInvitationId The ID of the team invitation.
|
|
34
35
|
*/
|
|
35
36
|
rejectTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
@@ -31,15 +31,23 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Accept a
|
|
34
|
+
* @summary Accept a team invitation
|
|
35
35
|
* @param {string} teamInvitationId The ID of the team invitation.
|
|
36
|
+
* @param {string} [token] The token to authorize the acceptance of public invitations.
|
|
36
37
|
*/
|
|
37
|
-
acceptTeamInvitation(teamInvitationId) {
|
|
38
|
+
acceptTeamInvitation(teamInvitationId, token) {
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
40
|
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
40
41
|
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'acceptTeamInvitation');
|
|
41
42
|
}
|
|
42
43
|
let queryString = '';
|
|
44
|
+
const queryParams = { token: token, };
|
|
45
|
+
for (const key in queryParams) {
|
|
46
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
50
|
+
}
|
|
43
51
|
const requestUrl = '/team-invitations/{team_invitation_id}/accept' + (queryString ? `?${queryString}` : '');
|
|
44
52
|
const response = yield this.post(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
45
53
|
return new ApiResponse_1.ApiResponse(response);
|
|
@@ -63,7 +71,7 @@ class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
71
|
}
|
|
64
72
|
/**
|
|
65
73
|
*
|
|
66
|
-
* @summary Reject a pending team invitation
|
|
74
|
+
* @summary Reject a pending private team invitation
|
|
67
75
|
* @param {string} teamInvitationId The ID of the team invitation.
|
|
68
76
|
*/
|
|
69
77
|
rejectTeamInvitation(teamInvitationId) {
|
|
@@ -20,14 +20,14 @@ import { InvitationTeamCreate } from '../../generated/models';
|
|
|
20
20
|
export declare class TeamsInvitationsApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @summary
|
|
23
|
+
* @summary Create a new invitation for a team
|
|
24
24
|
* @param {number} teamId The ID of the team.
|
|
25
25
|
* @param {InvitationTeamCreate} invitationTeamCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
27
|
addTeamInvitation(teamId: number, invitationTeamCreate: InvitationTeamCreate): Promise<ApiResponse<Invitation>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @summary Return a list of
|
|
30
|
+
* @summary Return a list of invitations belonging to a team
|
|
31
31
|
* @param {number} teamId The ID of the team.
|
|
32
32
|
* @param {number} [page] Number of the page to be retrieved
|
|
33
33
|
* @param {number} [perPage] Number of items returned per page
|
|
@@ -31,7 +31,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
34
|
+
* @summary Create a new invitation for a team
|
|
35
35
|
* @param {number} teamId The ID of the team.
|
|
36
36
|
* @param {InvitationTeamCreate} invitationTeamCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
@@ -51,7 +51,7 @@ class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary Return a list of
|
|
54
|
+
* @summary Return a list of invitations belonging to a team
|
|
55
55
|
* @param {number} teamId The ID of the team.
|
|
56
56
|
* @param {number} [page] Number of the page to be retrieved
|
|
57
57
|
* @param {number} [perPage] Number of items returned per page
|
|
@@ -19,7 +19,7 @@ import { MemberRelation } from '../../generated/models';
|
|
|
19
19
|
export declare class TeamsMembersApiService extends ApiBaseService {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @summary
|
|
22
|
+
* @summary Remove a member from a team
|
|
23
23
|
* @param {number} teamId The ID of the team.
|
|
24
24
|
* @param {number} userId The ID of the user.
|
|
25
25
|
*/
|
|
@@ -31,7 +31,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class TeamsMembersApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
34
|
+
* @summary Remove a member from a team
|
|
35
35
|
* @param {number} teamId The ID of the team.
|
|
36
36
|
* @param {number} userId The ID of the user.
|
|
37
37
|
*/
|
|
@@ -181,6 +181,7 @@ export * from './pipeline-trigger-when';
|
|
|
181
181
|
export * from './pipeline-update';
|
|
182
182
|
export * from './project';
|
|
183
183
|
export * from './project-create';
|
|
184
|
+
export * from './project-organization-create';
|
|
184
185
|
export * from './project-relation';
|
|
185
186
|
export * from './project-update';
|
|
186
187
|
export * from './provider-code';
|
|
@@ -285,6 +286,7 @@ export * from './team';
|
|
|
285
286
|
export * from './team-environment-link';
|
|
286
287
|
export * from './team-invitation-relation';
|
|
287
288
|
export * from './team-invitation-status';
|
|
289
|
+
export * from './team-invitation-type';
|
|
288
290
|
export * from './team-membership-relation';
|
|
289
291
|
export * from './team-project-create';
|
|
290
292
|
export * from './team-relation';
|
|
@@ -197,6 +197,7 @@ __exportStar(require("./pipeline-trigger-when"), exports);
|
|
|
197
197
|
__exportStar(require("./pipeline-update"), exports);
|
|
198
198
|
__exportStar(require("./project"), exports);
|
|
199
199
|
__exportStar(require("./project-create"), exports);
|
|
200
|
+
__exportStar(require("./project-organization-create"), exports);
|
|
200
201
|
__exportStar(require("./project-relation"), exports);
|
|
201
202
|
__exportStar(require("./project-update"), exports);
|
|
202
203
|
__exportStar(require("./provider-code"), exports);
|
|
@@ -301,6 +302,7 @@ __exportStar(require("./team"), exports);
|
|
|
301
302
|
__exportStar(require("./team-environment-link"), exports);
|
|
302
303
|
__exportStar(require("./team-invitation-relation"), exports);
|
|
303
304
|
__exportStar(require("./team-invitation-status"), exports);
|
|
305
|
+
__exportStar(require("./team-invitation-type"), exports);
|
|
304
306
|
__exportStar(require("./team-membership-relation"), exports);
|
|
305
307
|
__exportStar(require("./team-project-create"), exports);
|
|
306
308
|
__exportStar(require("./team-relation"), exports);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ProjectRelation } from './project-relation';
|
|
13
13
|
import { TeamInvitationStatus } from './team-invitation-status';
|
|
14
|
+
import { TeamInvitationType } from './team-invitation-type';
|
|
14
15
|
import { TeamRelation } from './team-relation';
|
|
15
16
|
import { UserRelation } from './user-relation';
|
|
16
17
|
/**
|
|
@@ -25,12 +26,24 @@ export interface InvitationRelation {
|
|
|
25
26
|
* @memberof InvitationRelation
|
|
26
27
|
*/
|
|
27
28
|
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TeamInvitationType}
|
|
32
|
+
* @memberof InvitationRelation
|
|
33
|
+
*/
|
|
34
|
+
type: TeamInvitationType;
|
|
35
|
+
/**
|
|
36
|
+
* The token used to accept the public invitation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InvitationRelation
|
|
39
|
+
*/
|
|
40
|
+
token: string | null;
|
|
28
41
|
/**
|
|
29
42
|
* The email of the user that has been invited to team
|
|
30
43
|
* @type {string}
|
|
31
44
|
* @memberof InvitationRelation
|
|
32
45
|
*/
|
|
33
|
-
email: string;
|
|
46
|
+
email: string | null;
|
|
34
47
|
/**
|
|
35
48
|
*
|
|
36
49
|
* @type {TeamInvitationStatus}
|
|
@@ -55,12 +68,6 @@ export interface InvitationRelation {
|
|
|
55
68
|
* @memberof InvitationRelation
|
|
56
69
|
*/
|
|
57
70
|
created_by_user: UserRelation;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {UserRelation}
|
|
61
|
-
* @memberof InvitationRelation
|
|
62
|
-
*/
|
|
63
|
-
user: UserRelation;
|
|
64
71
|
/**
|
|
65
72
|
*
|
|
66
73
|
* @type {TeamRelation}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { TeamInvitationType } from './team-invitation-type';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -16,9 +17,15 @@
|
|
|
16
17
|
*/
|
|
17
18
|
export interface InvitationTeamCreate {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
*
|
|
21
|
+
* @type {TeamInvitationType}
|
|
22
|
+
* @memberof InvitationTeamCreate
|
|
23
|
+
*/
|
|
24
|
+
type: TeamInvitationType;
|
|
25
|
+
/**
|
|
26
|
+
* The user email to send the invitation. Must be a valid email address. This field is required when <code>type</code> is <code>private</code>.
|
|
20
27
|
* @type {string}
|
|
21
28
|
* @memberof InvitationTeamCreate
|
|
22
29
|
*/
|
|
23
|
-
email
|
|
30
|
+
email?: string;
|
|
24
31
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { TeamInvitationStatus } from './team-invitation-status';
|
|
13
|
+
import { TeamInvitationType } from './team-invitation-type';
|
|
13
14
|
import { TeamRelation } from './team-relation';
|
|
14
15
|
import { UserRelation } from './user-relation';
|
|
15
16
|
/**
|
|
@@ -24,12 +25,24 @@ export interface Invitation {
|
|
|
24
25
|
* @memberof Invitation
|
|
25
26
|
*/
|
|
26
27
|
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {TeamInvitationType}
|
|
31
|
+
* @memberof Invitation
|
|
32
|
+
*/
|
|
33
|
+
type: TeamInvitationType;
|
|
34
|
+
/**
|
|
35
|
+
* The token used to accept the public invitation
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Invitation
|
|
38
|
+
*/
|
|
39
|
+
token: string | null;
|
|
27
40
|
/**
|
|
28
41
|
* The email of the user that has been invited to team
|
|
29
42
|
* @type {string}
|
|
30
43
|
* @memberof Invitation
|
|
31
44
|
*/
|
|
32
|
-
email: string;
|
|
45
|
+
email: string | null;
|
|
33
46
|
/**
|
|
34
47
|
*
|
|
35
48
|
* @type {TeamInvitationStatus}
|
|
@@ -54,12 +67,6 @@ export interface Invitation {
|
|
|
54
67
|
* @memberof Invitation
|
|
55
68
|
*/
|
|
56
69
|
created_by_user: UserRelation;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {UserRelation}
|
|
60
|
-
* @memberof Invitation
|
|
61
|
-
*/
|
|
62
|
-
user: UserRelation;
|
|
63
70
|
/**
|
|
64
71
|
*
|
|
65
72
|
* @type {TeamRelation}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ResourceSummaryItem } from './resource-summary-item';
|
|
13
|
+
import { UserRelation } from './user-relation';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,12 @@ export interface OrganizationRelation {
|
|
|
40
41
|
* @memberof OrganizationRelation
|
|
41
42
|
*/
|
|
42
43
|
resource_summary?: Array<ResourceSummaryItem>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {UserRelation}
|
|
47
|
+
* @memberof OrganizationRelation
|
|
48
|
+
*/
|
|
49
|
+
owner: UserRelation;
|
|
43
50
|
/**
|
|
44
51
|
* The date and time when the organization was created
|
|
45
52
|
* @type {string}
|
|
@@ -21,12 +21,6 @@ export interface ProjectCreate {
|
|
|
21
21
|
* @memberof ProjectCreate
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* The ID of the organization that owns the project.
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ProjectCreate
|
|
28
|
-
*/
|
|
29
|
-
organization_id?: number;
|
|
30
24
|
/**
|
|
31
25
|
* A base64 string representation of the logo image.
|
|
32
26
|
* @type {string}
|
|
@@ -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 ProjectOrganizationCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface ProjectOrganizationCreate {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the project. Must not be greater than 60 characters.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProjectOrganizationCreate
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* A base64 string representation of the logo image.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProjectOrganizationCreate
|
|
28
|
+
*/
|
|
29
|
+
logo_image?: string;
|
|
30
|
+
/**
|
|
31
|
+
* A URL path to the project\'s logo image. Must be a valid URL.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProjectOrganizationCreate
|
|
34
|
+
*/
|
|
35
|
+
logo_url?: 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 });
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ProjectRelation } from './project-relation';
|
|
13
13
|
import { TeamInvitationStatus } from './team-invitation-status';
|
|
14
|
+
import { TeamInvitationType } from './team-invitation-type';
|
|
14
15
|
import { TeamRelation } from './team-relation';
|
|
15
16
|
import { UserRelation } from './user-relation';
|
|
16
17
|
/**
|
|
@@ -25,12 +26,24 @@ export interface TeamInvitationRelation {
|
|
|
25
26
|
* @memberof TeamInvitationRelation
|
|
26
27
|
*/
|
|
27
28
|
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TeamInvitationType}
|
|
32
|
+
* @memberof TeamInvitationRelation
|
|
33
|
+
*/
|
|
34
|
+
type: TeamInvitationType;
|
|
35
|
+
/**
|
|
36
|
+
* The token used to accept the public invitation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TeamInvitationRelation
|
|
39
|
+
*/
|
|
40
|
+
token: string | null;
|
|
28
41
|
/**
|
|
29
42
|
* The email of the user that has been invited to team
|
|
30
43
|
* @type {string}
|
|
31
44
|
* @memberof TeamInvitationRelation
|
|
32
45
|
*/
|
|
33
|
-
email: string;
|
|
46
|
+
email: string | null;
|
|
34
47
|
/**
|
|
35
48
|
*
|
|
36
49
|
* @type {TeamInvitationStatus}
|
|
@@ -55,12 +68,6 @@ export interface TeamInvitationRelation {
|
|
|
55
68
|
* @memberof TeamInvitationRelation
|
|
56
69
|
*/
|
|
57
70
|
created_by_user: UserRelation;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {UserRelation}
|
|
61
|
-
* @memberof TeamInvitationRelation
|
|
62
|
-
*/
|
|
63
|
-
user: UserRelation;
|
|
64
71
|
/**
|
|
65
72
|
*
|
|
66
73
|
* @type {TeamRelation}
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* The status of
|
|
13
|
+
* The possible status of Team Invitation.
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum TeamInvitationStatus {
|
|
18
18
|
Accepted = "accepted",
|
|
19
19
|
Expired = "expired",
|
|
20
|
-
Pending = "pending"
|
|
20
|
+
Pending = "pending",
|
|
21
|
+
Rejected = "rejected",
|
|
22
|
+
Active = "active"
|
|
21
23
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.TeamInvitationStatus = void 0;
|
|
16
16
|
/**
|
|
17
|
-
* The status of
|
|
17
|
+
* The possible status of Team Invitation.
|
|
18
18
|
* @export
|
|
19
19
|
* @enum {string}
|
|
20
20
|
*/
|
|
@@ -23,4 +23,6 @@ var TeamInvitationStatus;
|
|
|
23
23
|
TeamInvitationStatus["Accepted"] = "accepted";
|
|
24
24
|
TeamInvitationStatus["Expired"] = "expired";
|
|
25
25
|
TeamInvitationStatus["Pending"] = "pending";
|
|
26
|
+
TeamInvitationStatus["Rejected"] = "rejected";
|
|
27
|
+
TeamInvitationStatus["Active"] = "active";
|
|
26
28
|
})(TeamInvitationStatus || (exports.TeamInvitationStatus = TeamInvitationStatus = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* The possible types of Team Invitation.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TeamInvitationType {
|
|
18
|
+
Private = "private",
|
|
19
|
+
Public = "public"
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 });
|
|
15
|
+
exports.TeamInvitationType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* The possible types of Team Invitation.
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var TeamInvitationType;
|
|
22
|
+
(function (TeamInvitationType) {
|
|
23
|
+
TeamInvitationType["Private"] = "private";
|
|
24
|
+
TeamInvitationType["Public"] = "public";
|
|
25
|
+
})(TeamInvitationType || (exports.TeamInvitationType = TeamInvitationType = {}));
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { OrganizationsApiService } from "../api/generated/apis/organizations-api";
|
|
2
2
|
import { OrganizationsEnvironmentsApiService } from "../api/generated/apis/organizations-environments-api";
|
|
3
|
-
import { OrganizationsProjectsApiService } from "../api/generated/apis/organizations-projects-api";
|
|
4
3
|
export declare class OrganizationService extends OrganizationsApiService {
|
|
5
4
|
environments: OrganizationsEnvironmentsApiService;
|
|
6
|
-
projects: OrganizationsProjectsApiService;
|
|
7
5
|
}
|
|
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OrganizationService = void 0;
|
|
4
4
|
const organizations_api_1 = require("../api/generated/apis/organizations-api");
|
|
5
5
|
const organizations_environments_api_1 = require("../api/generated/apis/organizations-environments-api");
|
|
6
|
-
const organizations_projects_api_1 = require("../api/generated/apis/organizations-projects-api");
|
|
7
6
|
class OrganizationService extends organizations_api_1.OrganizationsApiService {
|
|
8
7
|
constructor() {
|
|
9
8
|
super(...arguments);
|
|
10
9
|
this.environments = new organizations_environments_api_1.OrganizationsEnvironmentsApiService();
|
|
11
|
-
this.projects = new organizations_projects_api_1.OrganizationsProjectsApiService();
|
|
12
10
|
}
|
|
13
11
|
}
|
|
14
12
|
exports.OrganizationService = OrganizationService;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@devopness/sdk-js",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/devopness/devopness#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@eslint/js": "^9.
|
|
55
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
54
|
+
"@eslint/js": "^9.37.0",
|
|
55
|
+
"@openapitools/openapi-generator-cli": "^2.25.0",
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.46.1",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^9.
|
|
59
|
+
"eslint": "^9.37.0",
|
|
60
60
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
61
61
|
"eslint-plugin-import": "^2.32.0",
|
|
62
62
|
"eslint-plugin-n": "^17.23.1",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
65
|
"jest": "^30.2.0",
|
|
66
|
-
"ts-jest": "^29.4.
|
|
67
|
-
"typedoc": "^0.28.
|
|
66
|
+
"ts-jest": "^29.4.5",
|
|
67
|
+
"typedoc": "^0.28.14",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.46.1"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
@@ -1,27 +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 { ProjectRelation } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* OrganizationsProjectsApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class OrganizationsProjectsApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary Return a list of all projects owned by an organization
|
|
22
|
-
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
23
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
24
|
-
* @param {number} [perPage] Number of items returned per page
|
|
25
|
-
*/
|
|
26
|
-
listOrganizationProjects(organizationId: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ProjectRelation>>>;
|
|
27
|
-
}
|
|
@@ -1,58 +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.OrganizationsProjectsApiService = 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
|
-
* OrganizationsProjectsApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class OrganizationsProjectsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Return a list of all projects owned by an organization
|
|
35
|
-
* @param {string} organizationId The numeric ID or URL Slug of an organization.
|
|
36
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
37
|
-
* @param {number} [perPage] Number of items returned per page
|
|
38
|
-
*/
|
|
39
|
-
listOrganizationProjects(organizationId, page, perPage) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
if (organizationId === null || organizationId === undefined) {
|
|
42
|
-
throw new Exceptions_1.ArgumentNullException('organizationId', 'listOrganizationProjects');
|
|
43
|
-
}
|
|
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
|
-
}
|
|
52
|
-
const requestUrl = '/organizations/{organization_id}/projects' + (queryString ? `?${queryString}` : '');
|
|
53
|
-
const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
|
|
54
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.OrganizationsProjectsApiService = OrganizationsProjectsApiService;
|