@devopness/sdk-js 2.158.0 → 2.160.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.
|
@@ -21,4 +21,16 @@ export declare class TeamInvitationsApiService extends ApiBaseService {
|
|
|
21
21
|
* @param {string} teamInvitationId The ID of the team invitation.
|
|
22
22
|
*/
|
|
23
23
|
acceptTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Delete a pending team invitation
|
|
27
|
+
* @param {string} teamInvitationId The ID of the team invitation.
|
|
28
|
+
*/
|
|
29
|
+
deleteTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @summary Reject a pending team invitation
|
|
33
|
+
* @param {string} teamInvitationId The ID of the team invitation.
|
|
34
|
+
*/
|
|
35
|
+
rejectTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
24
36
|
}
|
|
@@ -45,5 +45,37 @@ class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
45
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @summary Delete a pending team invitation
|
|
51
|
+
* @param {string} teamInvitationId The ID of the team invitation.
|
|
52
|
+
*/
|
|
53
|
+
deleteTeamInvitation(teamInvitationId) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
56
|
+
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'deleteTeamInvitation');
|
|
57
|
+
}
|
|
58
|
+
let queryString = '';
|
|
59
|
+
const requestUrl = '/team-invitations/{team_invitation_id}' + (queryString ? `?${queryString}` : '');
|
|
60
|
+
const response = yield this.delete(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
61
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Reject a pending team invitation
|
|
67
|
+
* @param {string} teamInvitationId The ID of the team invitation.
|
|
68
|
+
*/
|
|
69
|
+
rejectTeamInvitation(teamInvitationId) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
72
|
+
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'rejectTeamInvitation');
|
|
73
|
+
}
|
|
74
|
+
let queryString = '';
|
|
75
|
+
const requestUrl = '/team-invitations/{team_invitation_id}/reject' + (queryString ? `?${queryString}` : '');
|
|
76
|
+
const response = yield this.post(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
77
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
48
80
|
}
|
|
49
81
|
exports.TeamInvitationsApiService = TeamInvitationsApiService;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { EnvironmentType } from './environment-type';
|
|
13
13
|
import { ProjectRelation } from './project-relation';
|
|
14
|
-
import {
|
|
14
|
+
import { ResourceSummaryItem } from './resource-summary-item';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -54,6 +54,12 @@ export interface ArchivedEnvironmentRelation {
|
|
|
54
54
|
* @memberof ArchivedEnvironmentRelation
|
|
55
55
|
*/
|
|
56
56
|
used_credits?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Summary of the resource
|
|
59
|
+
* @type {Array<ResourceSummaryItem>}
|
|
60
|
+
* @memberof ArchivedEnvironmentRelation
|
|
61
|
+
*/
|
|
62
|
+
resource_summary?: Array<ResourceSummaryItem>;
|
|
57
63
|
/**
|
|
58
64
|
* The date and time when the record was created
|
|
59
65
|
* @type {string}
|
|
@@ -78,10 +84,4 @@ export interface ArchivedEnvironmentRelation {
|
|
|
78
84
|
* @memberof ArchivedEnvironmentRelation
|
|
79
85
|
*/
|
|
80
86
|
project: ProjectRelation | null;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Array<TeamMembershipRelation>}
|
|
84
|
-
* @memberof ArchivedEnvironmentRelation
|
|
85
|
-
*/
|
|
86
|
-
team_memberships?: Array<TeamMembershipRelation>;
|
|
87
87
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { EnvironmentType } from './environment-type';
|
|
13
13
|
import { ProjectRelation } from './project-relation';
|
|
14
|
-
import {
|
|
14
|
+
import { ResourceSummaryItem } from './resource-summary-item';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -54,6 +54,12 @@ export interface EnvironmentRelation {
|
|
|
54
54
|
* @memberof EnvironmentRelation
|
|
55
55
|
*/
|
|
56
56
|
used_credits?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Summary of the resource
|
|
59
|
+
* @type {Array<ResourceSummaryItem>}
|
|
60
|
+
* @memberof EnvironmentRelation
|
|
61
|
+
*/
|
|
62
|
+
resource_summary?: Array<ResourceSummaryItem>;
|
|
57
63
|
/**
|
|
58
64
|
* The date and time when the record was created
|
|
59
65
|
* @type {string}
|
|
@@ -78,10 +84,4 @@ export interface EnvironmentRelation {
|
|
|
78
84
|
* @memberof EnvironmentRelation
|
|
79
85
|
*/
|
|
80
86
|
project: ProjectRelation | null;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Array<TeamMembershipRelation>}
|
|
84
|
-
* @memberof EnvironmentRelation
|
|
85
|
-
*/
|
|
86
|
-
team_memberships?: Array<TeamMembershipRelation>;
|
|
87
87
|
}
|
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": "2.
|
|
4
|
+
"version": "2.160.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -52,25 +52,25 @@
|
|
|
52
52
|
"homepage": "https://github.com/devopness/devopness#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@eslint/js": "^9.22.0",
|
|
55
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
55
|
+
"@openapitools/openapi-generator-cli": "^2.18.4",
|
|
56
56
|
"@types/jest": "^29.5.12",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
59
|
"eslint": "^9.22.0",
|
|
60
|
-
"eslint-import-resolver-typescript": "^
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.2.2",
|
|
61
61
|
"eslint-plugin-import": "^2.31.0",
|
|
62
62
|
"eslint-plugin-n": "^17.16.2",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
65
|
"jest": "^29.7.0",
|
|
66
66
|
"ts-jest": "^29.2.6",
|
|
67
|
-
"typedoc": "^0.
|
|
67
|
+
"typedoc": "^0.28.1",
|
|
68
68
|
"typescript": "^5.8.2",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.27.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
73
|
-
"axios": "^1.8.
|
|
73
|
+
"axios": "^1.8.4",
|
|
74
74
|
"parse-link-header": "^2.0.0"
|
|
75
75
|
}
|
|
76
76
|
}
|