@devopness/sdk-js 2.13.0 → 2.14.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 -2
- package/dist/DevopnessApiClient.js +2 -2
- package/dist/api/generated/apis/{invitations-api.d.ts → team-invitations-api.d.ts} +5 -5
- package/dist/api/generated/apis/{invitations-api.js → team-invitations-api.js} +11 -11
- package/dist/api/generated/apis/teams-invitations-api.d.ts +12 -11
- package/dist/api/generated/apis/teams-invitations-api.js +22 -22
- package/dist/api/generated/apis/users-team-invitations-api.d.ts +3 -3
- package/dist/api/generated/apis/users-team-invitations-api.js +2 -2
- package/dist/api/generated/models/index.d.ts +4 -0
- package/dist/api/generated/models/index.js +4 -0
- package/dist/api/generated/models/invitation-create.d.ts +24 -0
- package/dist/api/generated/models/invitation-create.js +14 -0
- package/dist/api/generated/models/invitation-relation.d.ts +100 -0
- package/dist/api/generated/models/invitation-relation.js +14 -0
- package/dist/api/generated/models/invitation.d.ts +93 -0
- package/dist/api/generated/models/invitation.js +14 -0
- package/dist/api/generated/models/team-invitation-relation.d.ts +100 -0
- package/dist/api/generated/models/team-invitation-relation.js +14 -0
- package/dist/services/ApiBaseService.js +2 -4
- package/dist/services/TeamInvitationService.d.ts +3 -0
- package/dist/services/TeamInvitationService.js +7 -0
- package/package.json +2 -2
- package/dist/services/InvitationService.d.ts +0 -3
- package/dist/services/InvitationService.js +0 -7
|
@@ -19,12 +19,12 @@ import { HookIncomingService } from './services/HookIncomingService';
|
|
|
19
19
|
import { HookOutgoingService } from './services/HookOutgoingService';
|
|
20
20
|
import { HookRequestService } from './services/HookRequestService';
|
|
21
21
|
import { CloudProviderCredentialService } from './services/CloudProviderCredentialService';
|
|
22
|
-
import { InvitationService } from './services/InvitationService';
|
|
23
22
|
import { TeamService } from './services/TeamService';
|
|
24
23
|
import { ResourceEventService } from './services/ResourceEventService';
|
|
25
24
|
import { ActionService } from './services/ActionService';
|
|
26
25
|
import { PipelineService } from './services/PipelineService';
|
|
27
26
|
import { RoleService } from './services/RoleService';
|
|
27
|
+
import { TeamInvitationService } from './services/TeamInvitationService';
|
|
28
28
|
export declare class DevopnessApiClient {
|
|
29
29
|
actions: ActionService;
|
|
30
30
|
applications: ApplicationService;
|
|
@@ -34,7 +34,6 @@ export declare class DevopnessApiClient {
|
|
|
34
34
|
environments: EnvironmentService;
|
|
35
35
|
hookRequests: HookRequestService;
|
|
36
36
|
incomingHooks: HookIncomingService;
|
|
37
|
-
invitations: InvitationService;
|
|
38
37
|
logs: LogService;
|
|
39
38
|
networkRules: NetworkRuleService;
|
|
40
39
|
outgoingHooks: HookOutgoingService;
|
|
@@ -50,6 +49,7 @@ export declare class DevopnessApiClient {
|
|
|
50
49
|
sslCertificates: SslCertificateService;
|
|
51
50
|
static: StaticService;
|
|
52
51
|
teams: TeamService;
|
|
52
|
+
teamInvitations: TeamInvitationService;
|
|
53
53
|
users: UserService;
|
|
54
54
|
variables: VariableService;
|
|
55
55
|
constructor(options?: ConfigurationOptions);
|
|
@@ -22,12 +22,12 @@ const HookIncomingService_1 = require("./services/HookIncomingService");
|
|
|
22
22
|
const HookOutgoingService_1 = require("./services/HookOutgoingService");
|
|
23
23
|
const HookRequestService_1 = require("./services/HookRequestService");
|
|
24
24
|
const CloudProviderCredentialService_1 = require("./services/CloudProviderCredentialService");
|
|
25
|
-
const InvitationService_1 = require("./services/InvitationService");
|
|
26
25
|
const TeamService_1 = require("./services/TeamService");
|
|
27
26
|
const ResourceEventService_1 = require("./services/ResourceEventService");
|
|
28
27
|
const ActionService_1 = require("./services/ActionService");
|
|
29
28
|
const PipelineService_1 = require("./services/PipelineService");
|
|
30
29
|
const RoleService_1 = require("./services/RoleService");
|
|
30
|
+
const TeamInvitationService_1 = require("./services/TeamInvitationService");
|
|
31
31
|
class DevopnessApiClient {
|
|
32
32
|
constructor(options) {
|
|
33
33
|
ApiBaseService_1.ApiBaseService.configuration = new ApiBaseService_1.Configuration(options || {});
|
|
@@ -42,7 +42,6 @@ class DevopnessApiClient {
|
|
|
42
42
|
this.environments = new EnvironmentService_1.EnvironmentService();
|
|
43
43
|
this.hookRequests = new HookRequestService_1.HookRequestService();
|
|
44
44
|
this.incomingHooks = new HookIncomingService_1.HookIncomingService();
|
|
45
|
-
this.invitations = new InvitationService_1.InvitationService();
|
|
46
45
|
this.logs = new LogService_1.LogService();
|
|
47
46
|
this.networkRules = new NetworkRuleService_1.NetworkRuleService();
|
|
48
47
|
this.outgoingHooks = new HookOutgoingService_1.HookOutgoingService();
|
|
@@ -58,6 +57,7 @@ class DevopnessApiClient {
|
|
|
58
57
|
this.sslCertificates = new SslCertificateService_1.SslCertificateService();
|
|
59
58
|
this.static = new StaticService_1.StaticService();
|
|
60
59
|
this.teams = new TeamService_1.TeamService();
|
|
60
|
+
this.teamInvitations = new TeamInvitationService_1.TeamInvitationService();
|
|
61
61
|
this.users = new UserService_1.UserService();
|
|
62
62
|
this.variables = new VariableService_1.VariableService();
|
|
63
63
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* TeamInvitationsApiService - Auto-generated
|
|
16
16
|
*/
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class TeamInvitationsApiService extends ApiBaseService {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @summary Accept a pending invitation
|
|
21
|
-
* @param {string}
|
|
20
|
+
* @summary Accept a pending team invitation
|
|
21
|
+
* @param {string} teamInvitationId The ID of the team invitation.
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
acceptTeamInvitation(teamInvitationId: string): Promise<ApiResponse<void>>;
|
|
24
24
|
}
|
|
@@ -21,29 +21,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.TeamInvitationsApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* TeamInvitationsApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class TeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Accept a pending invitation
|
|
35
|
-
* @param {string}
|
|
34
|
+
* @summary Accept a pending team invitation
|
|
35
|
+
* @param {string} teamInvitationId The ID of the team invitation.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
acceptTeamInvitation(teamInvitationId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
if (
|
|
40
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
39
|
+
if (teamInvitationId === null || teamInvitationId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('teamInvitationId', 'acceptTeamInvitation');
|
|
41
41
|
}
|
|
42
42
|
let queryString = '';
|
|
43
|
-
const requestUrl = '/invitations/{
|
|
44
|
-
const response = yield this.post(requestUrl.replace(`{${"
|
|
43
|
+
const requestUrl = '/team-invitations/{team_invitation_id}/accept' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.post(requestUrl.replace(`{${"team_invitation_id"}}`, encodeURIComponent(String(teamInvitationId))));
|
|
45
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
exports.
|
|
49
|
+
exports.TeamInvitationsApiService = TeamInvitationsApiService;
|
|
@@ -11,25 +11,26 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { Invitation } from '../../generated/models';
|
|
15
|
+
import { InvitationCreate } from '../../generated/models';
|
|
16
|
+
import { InvitationRelation } from '../../generated/models';
|
|
16
17
|
/**
|
|
17
18
|
* TeamsInvitationsApiService - Auto-generated
|
|
18
19
|
*/
|
|
19
20
|
export declare class TeamsInvitationsApiService extends ApiBaseService {
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
22
|
-
* @summary
|
|
23
|
-
* @param {number} teamId
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {number} [perPage] Number of items returned per page
|
|
23
|
+
* @summary Send invitation to user email to participate to a team
|
|
24
|
+
* @param {number} teamId The ID of the team.
|
|
25
|
+
* @param {InvitationCreate} invitationCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
addTeamInvitation(teamId: number, invitationCreate: InvitationCreate): Promise<ApiResponse<Invitation>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @summary
|
|
31
|
-
* @param {number} teamId
|
|
32
|
-
* @param {
|
|
30
|
+
* @summary Return a list of pending invitations belonging to a team
|
|
31
|
+
* @param {number} teamId The ID of the team.
|
|
32
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
33
|
+
* @param {number} [perPage] Number of items returned per page
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
listTeamInvitations(teamId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<InvitationRelation>>>;
|
|
35
36
|
}
|
|
@@ -31,8 +31,28 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} teamId
|
|
34
|
+
* @summary Send invitation to user email to participate to a team
|
|
35
|
+
* @param {number} teamId The ID of the team.
|
|
36
|
+
* @param {InvitationCreate} invitationCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addTeamInvitation(teamId, invitationCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (teamId === null || teamId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('teamId', 'addTeamInvitation');
|
|
42
|
+
}
|
|
43
|
+
if (invitationCreate === null || invitationCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('invitationCreate', 'addTeamInvitation');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/teams/{team_id}/invitations' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), invitationCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Return a list of pending invitations belonging to a team
|
|
55
|
+
* @param {number} teamId The ID of the team.
|
|
36
56
|
* @param {number} [page] Number of the page to be retrieved
|
|
37
57
|
* @param {number} [perPage] Number of items returned per page
|
|
38
58
|
*/
|
|
@@ -54,25 +74,5 @@ class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
54
74
|
return new ApiResponse_1.ApiResponse(response);
|
|
55
75
|
});
|
|
56
76
|
}
|
|
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 {TeamInvitationCreate} teamInvitationCreate A JSON object containing the email to send the invitation
|
|
62
|
-
*/
|
|
63
|
-
sendTeamInvitation(teamId, teamInvitationCreate) {
|
|
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 (teamInvitationCreate === null || teamInvitationCreate === undefined) {
|
|
69
|
-
throw new Exceptions_1.ArgumentNullException('teamInvitationCreate', '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))), teamInvitationCreate);
|
|
74
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
77
|
}
|
|
78
78
|
exports.TeamsInvitationsApiService = TeamsInvitationsApiService;
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { TeamInvitationRelation } from '../../generated/models';
|
|
15
15
|
/**
|
|
16
16
|
* UsersTeamInvitationsApiService - Auto-generated
|
|
17
17
|
*/
|
|
18
18
|
export declare class UsersTeamInvitationsApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary
|
|
21
|
+
* @summary Return a list of all pending team invitations for the authenticated user
|
|
22
22
|
* @param {number} [page] Number of the page to be retrieved
|
|
23
23
|
* @param {number} [perPage] Number of items returned per page
|
|
24
24
|
*/
|
|
25
|
-
listUserTeamInvitations(page?: number, perPage?: number): Promise<ApiResponse<Array<
|
|
25
|
+
listUserTeamInvitations(page?: number, perPage?: number): Promise<ApiResponse<Array<TeamInvitationRelation>>>;
|
|
26
26
|
}
|
|
@@ -30,7 +30,7 @@ const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
|
30
30
|
class UsersTeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @summary
|
|
33
|
+
* @summary Return a list of all pending team invitations for the authenticated user
|
|
34
34
|
* @param {number} [page] Number of the page to be retrieved
|
|
35
35
|
* @param {number} [perPage] Number of items returned per page
|
|
36
36
|
*/
|
|
@@ -44,7 +44,7 @@ class UsersTeamInvitationsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
44
44
|
}
|
|
45
45
|
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
46
46
|
}
|
|
47
|
-
const requestUrl = '/users/
|
|
47
|
+
const requestUrl = '/users/team-invitations' + (queryString ? `?${queryString}` : '');
|
|
48
48
|
const response = yield this.get(requestUrl);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
@@ -101,6 +101,9 @@ export * from './hook-request-relation';
|
|
|
101
101
|
export * from './hook-type';
|
|
102
102
|
export * from './hook-variable';
|
|
103
103
|
export * from './hook-variable-type';
|
|
104
|
+
export * from './invitation';
|
|
105
|
+
export * from './invitation-create';
|
|
106
|
+
export * from './invitation-relation';
|
|
104
107
|
export * from './language';
|
|
105
108
|
export * from './language-runtime';
|
|
106
109
|
export * from './language-runtime-framework';
|
|
@@ -190,6 +193,7 @@ export * from './team';
|
|
|
190
193
|
export * from './team-create';
|
|
191
194
|
export * from './team-invitation';
|
|
192
195
|
export * from './team-invitation-create';
|
|
196
|
+
export * from './team-invitation-relation';
|
|
193
197
|
export * from './team-invitation-status';
|
|
194
198
|
export * from './team-relation';
|
|
195
199
|
export * from './team-update';
|
|
@@ -117,6 +117,9 @@ __exportStar(require("./hook-request-relation"), exports);
|
|
|
117
117
|
__exportStar(require("./hook-type"), exports);
|
|
118
118
|
__exportStar(require("./hook-variable"), exports);
|
|
119
119
|
__exportStar(require("./hook-variable-type"), exports);
|
|
120
|
+
__exportStar(require("./invitation"), exports);
|
|
121
|
+
__exportStar(require("./invitation-create"), exports);
|
|
122
|
+
__exportStar(require("./invitation-relation"), exports);
|
|
120
123
|
__exportStar(require("./language"), exports);
|
|
121
124
|
__exportStar(require("./language-runtime"), exports);
|
|
122
125
|
__exportStar(require("./language-runtime-framework"), exports);
|
|
@@ -206,6 +209,7 @@ __exportStar(require("./team"), exports);
|
|
|
206
209
|
__exportStar(require("./team-create"), exports);
|
|
207
210
|
__exportStar(require("./team-invitation"), exports);
|
|
208
211
|
__exportStar(require("./team-invitation-create"), exports);
|
|
212
|
+
__exportStar(require("./team-invitation-relation"), exports);
|
|
209
213
|
__exportStar(require("./team-invitation-status"), exports);
|
|
210
214
|
__exportStar(require("./team-relation"), exports);
|
|
211
215
|
__exportStar(require("./team-update"), exports);
|
|
@@ -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 InvitationCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface InvitationCreate {
|
|
18
|
+
/**
|
|
19
|
+
* The user email to send the invitation. Must be a valid email address.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvitationCreate
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
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,100 @@
|
|
|
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 { ProjectRelation } from './project-relation';
|
|
13
|
+
import { TeamInvitationStatus } from './team-invitation-status';
|
|
14
|
+
import { TeamRelation } from './team-relation';
|
|
15
|
+
import { UserRelation } from './user-relation';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InvitationRelation
|
|
20
|
+
*/
|
|
21
|
+
export interface InvitationRelation {
|
|
22
|
+
/**
|
|
23
|
+
* The unique UUID of the given invitation
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InvitationRelation
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The email of the user that has been invited to team
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InvitationRelation
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {TeamInvitationStatus}
|
|
37
|
+
* @memberof InvitationRelation
|
|
38
|
+
*/
|
|
39
|
+
status: TeamInvitationStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Human readable version of the invitation status
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof InvitationRelation
|
|
44
|
+
*/
|
|
45
|
+
status_human_readable: string;
|
|
46
|
+
/**
|
|
47
|
+
* The IP of the user who accepted the invitation
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof InvitationRelation
|
|
50
|
+
*/
|
|
51
|
+
accepted_from_ip: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {UserRelation}
|
|
55
|
+
* @memberof InvitationRelation
|
|
56
|
+
*/
|
|
57
|
+
created_by_user: UserRelation;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {UserRelation}
|
|
61
|
+
* @memberof InvitationRelation
|
|
62
|
+
*/
|
|
63
|
+
user: UserRelation;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {TeamRelation}
|
|
67
|
+
* @memberof InvitationRelation
|
|
68
|
+
*/
|
|
69
|
+
team: TeamRelation;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {ProjectRelation}
|
|
73
|
+
* @memberof InvitationRelation
|
|
74
|
+
*/
|
|
75
|
+
project: ProjectRelation;
|
|
76
|
+
/**
|
|
77
|
+
* The date and time when the invitation was accepted
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof InvitationRelation
|
|
80
|
+
*/
|
|
81
|
+
accepted_at: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The date and time when the invitation will expire
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof InvitationRelation
|
|
86
|
+
*/
|
|
87
|
+
expires_at: string;
|
|
88
|
+
/**
|
|
89
|
+
* The date and time when the record was created
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof InvitationRelation
|
|
92
|
+
*/
|
|
93
|
+
created_at: string;
|
|
94
|
+
/**
|
|
95
|
+
* The date and time when the record was last updated
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof InvitationRelation
|
|
98
|
+
*/
|
|
99
|
+
updated_at: string;
|
|
100
|
+
}
|
|
@@ -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,93 @@
|
|
|
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 { TeamInvitationStatus } from './team-invitation-status';
|
|
13
|
+
import { TeamRelation } from './team-relation';
|
|
14
|
+
import { UserRelation } from './user-relation';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Invitation
|
|
19
|
+
*/
|
|
20
|
+
export interface Invitation {
|
|
21
|
+
/**
|
|
22
|
+
* The unique UUID of the given invitation
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Invitation
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The email of the user that has been invited to team
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Invitation
|
|
31
|
+
*/
|
|
32
|
+
email: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {TeamInvitationStatus}
|
|
36
|
+
* @memberof Invitation
|
|
37
|
+
*/
|
|
38
|
+
status: TeamInvitationStatus;
|
|
39
|
+
/**
|
|
40
|
+
* Human readable version of the invitation status
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof Invitation
|
|
43
|
+
*/
|
|
44
|
+
status_human_readable: string;
|
|
45
|
+
/**
|
|
46
|
+
* The IP of the user who accepted the invitation
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof Invitation
|
|
49
|
+
*/
|
|
50
|
+
accepted_from_ip: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {UserRelation}
|
|
54
|
+
* @memberof Invitation
|
|
55
|
+
*/
|
|
56
|
+
created_by_user: UserRelation;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {UserRelation}
|
|
60
|
+
* @memberof Invitation
|
|
61
|
+
*/
|
|
62
|
+
user: UserRelation;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {TeamRelation}
|
|
66
|
+
* @memberof Invitation
|
|
67
|
+
*/
|
|
68
|
+
team: TeamRelation;
|
|
69
|
+
/**
|
|
70
|
+
* The date and time when the invitation was accepted
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof Invitation
|
|
73
|
+
*/
|
|
74
|
+
accepted_at: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The date and time when the invitation will expire
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof Invitation
|
|
79
|
+
*/
|
|
80
|
+
expires_at: string;
|
|
81
|
+
/**
|
|
82
|
+
* The date and time when the record was created
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof Invitation
|
|
85
|
+
*/
|
|
86
|
+
created_at: string;
|
|
87
|
+
/**
|
|
88
|
+
* The date and time when the record was last updated
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof Invitation
|
|
91
|
+
*/
|
|
92
|
+
updated_at: string;
|
|
93
|
+
}
|
|
@@ -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,100 @@
|
|
|
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 { ProjectRelation } from './project-relation';
|
|
13
|
+
import { TeamInvitationStatus } from './team-invitation-status';
|
|
14
|
+
import { TeamRelation } from './team-relation';
|
|
15
|
+
import { UserRelation } from './user-relation';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TeamInvitationRelation
|
|
20
|
+
*/
|
|
21
|
+
export interface TeamInvitationRelation {
|
|
22
|
+
/**
|
|
23
|
+
* The unique UUID of the given invitation
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TeamInvitationRelation
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The email of the user that has been invited to team
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TeamInvitationRelation
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {TeamInvitationStatus}
|
|
37
|
+
* @memberof TeamInvitationRelation
|
|
38
|
+
*/
|
|
39
|
+
status: TeamInvitationStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Human readable version of the invitation status
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TeamInvitationRelation
|
|
44
|
+
*/
|
|
45
|
+
status_human_readable: string;
|
|
46
|
+
/**
|
|
47
|
+
* The IP of the user who accepted the invitation
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TeamInvitationRelation
|
|
50
|
+
*/
|
|
51
|
+
accepted_from_ip: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {UserRelation}
|
|
55
|
+
* @memberof TeamInvitationRelation
|
|
56
|
+
*/
|
|
57
|
+
created_by_user: UserRelation;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {UserRelation}
|
|
61
|
+
* @memberof TeamInvitationRelation
|
|
62
|
+
*/
|
|
63
|
+
user: UserRelation;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {TeamRelation}
|
|
67
|
+
* @memberof TeamInvitationRelation
|
|
68
|
+
*/
|
|
69
|
+
team: TeamRelation;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {ProjectRelation}
|
|
73
|
+
* @memberof TeamInvitationRelation
|
|
74
|
+
*/
|
|
75
|
+
project: ProjectRelation;
|
|
76
|
+
/**
|
|
77
|
+
* The date and time when the invitation was accepted
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof TeamInvitationRelation
|
|
80
|
+
*/
|
|
81
|
+
accepted_at: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The date and time when the invitation will expire
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof TeamInvitationRelation
|
|
86
|
+
*/
|
|
87
|
+
expires_at: string;
|
|
88
|
+
/**
|
|
89
|
+
* The date and time when the record was created
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof TeamInvitationRelation
|
|
92
|
+
*/
|
|
93
|
+
created_at: string;
|
|
94
|
+
/**
|
|
95
|
+
* The date and time when the record was last updated
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof TeamInvitationRelation
|
|
98
|
+
*/
|
|
99
|
+
updated_at: string;
|
|
100
|
+
}
|
|
@@ -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 });
|
|
@@ -29,10 +29,8 @@ class ApiBaseService {
|
|
|
29
29
|
timeout: 30000,
|
|
30
30
|
responseType: 'json',
|
|
31
31
|
headers: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'Content-Type': "application/json",
|
|
35
|
-
},
|
|
32
|
+
Accept: "application/json",
|
|
33
|
+
'Content-Type': "application/json"
|
|
36
34
|
},
|
|
37
35
|
withCredentials: false
|
|
38
36
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamInvitationService = void 0;
|
|
4
|
+
const team_invitations_api_1 = require("../api/generated/apis/team-invitations-api");
|
|
5
|
+
class TeamInvitationService extends team_invitations_api_1.TeamInvitationsApiService {
|
|
6
|
+
}
|
|
7
|
+
exports.TeamInvitationService = TeamInvitationService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devopness/sdk-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@types/parse-link-header": "^2.0.0",
|
|
64
|
-
"axios": "^0.
|
|
64
|
+
"axios": "^0.27.2",
|
|
65
65
|
"parse-link-header": "^2.0.0"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvitationService = void 0;
|
|
4
|
-
const invitations_api_1 = require("../api/generated/apis/invitations-api");
|
|
5
|
-
class InvitationService extends invitations_api_1.InvitationsApiService {
|
|
6
|
-
}
|
|
7
|
-
exports.InvitationService = InvitationService;
|