@devopness/sdk-js 2.12.0 → 2.13.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.
@@ -19,7 +19,6 @@ export declare class InvitationsApiService extends ApiBaseService {
19
19
  *
20
20
  * @summary Accept a pending invitation
21
21
  * @param {string} invitationId UUID of the invitation to be accepted
22
- * @param {string} token The token of the invitation to be accepted
23
22
  */
24
- acceptInvitation(invitationId: string, token: string): Promise<ApiResponse<void>>;
23
+ acceptInvitation(invitationId: string): Promise<ApiResponse<void>>;
25
24
  }
@@ -33,19 +33,15 @@ class InvitationsApiService extends ApiBaseService_1.ApiBaseService {
33
33
  *
34
34
  * @summary Accept a pending invitation
35
35
  * @param {string} invitationId UUID of the invitation to be accepted
36
- * @param {string} token The token of the invitation to be accepted
37
36
  */
38
- acceptInvitation(invitationId, token) {
37
+ acceptInvitation(invitationId) {
39
38
  return __awaiter(this, void 0, void 0, function* () {
40
39
  if (invitationId === null || invitationId === undefined) {
41
40
  throw new Exceptions_1.ArgumentNullException('invitationId', 'acceptInvitation');
42
41
  }
43
- if (token === null || token === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('token', 'acceptInvitation');
45
- }
46
42
  let queryString = '';
47
- const requestUrl = '/invitations/{invitation_id}/accept/{token}' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"invitation_id"}}`, encodeURIComponent(String(invitationId))).replace(`{${"token"}}`, encodeURIComponent(String(token))));
43
+ const requestUrl = '/invitations/{invitation_id}/accept' + (queryString ? `?${queryString}` : '');
44
+ const response = yield this.post(requestUrl.replace(`{${"invitation_id"}}`, encodeURIComponent(String(invitationId))));
49
45
  return new ApiResponse_1.ApiResponse(response);
50
46
  });
51
47
  }
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { Invitation } from '../../generated/models';
15
- import { InvitationCreate } from '../../generated/models';
14
+ import { TeamInvitation } from '../../generated/models';
15
+ import { TeamInvitationCreate } from '../../generated/models';
16
16
  /**
17
17
  * TeamsInvitationsApiService - Auto-generated
18
18
  */
@@ -24,12 +24,12 @@ export declare class TeamsInvitationsApiService extends ApiBaseService {
24
24
  * @param {number} [page] Number of the page to be retrieved
25
25
  * @param {number} [perPage] Number of items returned per page
26
26
  */
27
- listTeamInvitations(teamId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<Invitation>>>;
27
+ listTeamInvitations(teamId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<TeamInvitation>>>;
28
28
  /**
29
29
  *
30
30
  * @summary Send invitation to user email to participate to a team
31
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
32
+ * @param {TeamInvitationCreate} teamInvitationCreate A JSON object containing the email to send the invitation
33
33
  */
34
- sendTeamInvitation(teamId: number, invitationCreate: InvitationCreate): Promise<ApiResponse<Invitation>>;
34
+ sendTeamInvitation(teamId: number, teamInvitationCreate: TeamInvitationCreate): Promise<ApiResponse<TeamInvitation>>;
35
35
  }
@@ -58,19 +58,19 @@ class TeamsInvitationsApiService extends ApiBaseService_1.ApiBaseService {
58
58
  *
59
59
  * @summary Send invitation to user email to participate to a team
60
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
61
+ * @param {TeamInvitationCreate} teamInvitationCreate A JSON object containing the email to send the invitation
62
62
  */
63
- sendTeamInvitation(teamId, invitationCreate) {
63
+ sendTeamInvitation(teamId, teamInvitationCreate) {
64
64
  return __awaiter(this, void 0, void 0, function* () {
65
65
  if (teamId === null || teamId === undefined) {
66
66
  throw new Exceptions_1.ArgumentNullException('teamId', 'sendTeamInvitation');
67
67
  }
68
- if (invitationCreate === null || invitationCreate === undefined) {
69
- throw new Exceptions_1.ArgumentNullException('invitationCreate', 'sendTeamInvitation');
68
+ if (teamInvitationCreate === null || teamInvitationCreate === undefined) {
69
+ throw new Exceptions_1.ArgumentNullException('teamInvitationCreate', 'sendTeamInvitation');
70
70
  }
71
71
  let queryString = '';
72
72
  const requestUrl = '/teams/{team_id}/invitations' + (queryString ? `?${queryString}` : '');
73
- const response = yield this.post(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), invitationCreate);
73
+ const response = yield this.post(requestUrl.replace(`{${"team_id"}}`, encodeURIComponent(String(teamId))), teamInvitationCreate);
74
74
  return new ApiResponse_1.ApiResponse(response);
75
75
  });
76
76
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { Invitation } from '../../generated/models';
14
+ import { TeamInvitation } from '../../generated/models';
15
15
  /**
16
16
  * UsersTeamInvitationsApiService - Auto-generated
17
17
  */
@@ -22,5 +22,5 @@ export declare class UsersTeamInvitationsApiService extends ApiBaseService {
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<Invitation>>>;
25
+ listUserTeamInvitations(page?: number, perPage?: number): Promise<ApiResponse<Array<TeamInvitation>>>;
26
26
  }
@@ -101,9 +101,6 @@ 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-status';
107
104
  export * from './language';
108
105
  export * from './language-runtime';
109
106
  export * from './language-runtime-framework';
@@ -191,6 +188,9 @@ export * from './ssl-certificate-type';
191
188
  export * from './ssl-certificate-validation-level';
192
189
  export * from './team';
193
190
  export * from './team-create';
191
+ export * from './team-invitation';
192
+ export * from './team-invitation-create';
193
+ export * from './team-invitation-status';
194
194
  export * from './team-relation';
195
195
  export * from './team-update';
196
196
  export * from './trigger-event';
@@ -117,9 +117,6 @@ __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-status"), exports);
123
120
  __exportStar(require("./language"), exports);
124
121
  __exportStar(require("./language-runtime"), exports);
125
122
  __exportStar(require("./language-runtime-framework"), exports);
@@ -207,6 +204,9 @@ __exportStar(require("./ssl-certificate-type"), exports);
207
204
  __exportStar(require("./ssl-certificate-validation-level"), exports);
208
205
  __exportStar(require("./team"), exports);
209
206
  __exportStar(require("./team-create"), exports);
207
+ __exportStar(require("./team-invitation"), exports);
208
+ __exportStar(require("./team-invitation-create"), exports);
209
+ __exportStar(require("./team-invitation-status"), exports);
210
210
  __exportStar(require("./team-relation"), exports);
211
211
  __exportStar(require("./team-update"), exports);
212
212
  __exportStar(require("./trigger-event"), exports);
@@ -12,13 +12,13 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface InvitationCreate
15
+ * @interface TeamInvitationCreate
16
16
  */
17
- export interface InvitationCreate {
17
+ export interface TeamInvitationCreate {
18
18
  /**
19
19
  * The user email to send the invitation
20
20
  * @type {string}
21
- * @memberof InvitationCreate
21
+ * @memberof TeamInvitationCreate
22
22
  */
23
23
  email: string;
24
24
  }
@@ -14,7 +14,7 @@
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum InvitationStatus {
17
+ export declare enum TeamInvitationStatus {
18
18
  Accepted = "accepted",
19
19
  Expired = "expired",
20
20
  Pending = "pending"
@@ -12,15 +12,15 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.InvitationStatus = void 0;
15
+ exports.TeamInvitationStatus = void 0;
16
16
  /**
17
17
  * The status of the invitation
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
21
- var InvitationStatus;
22
- (function (InvitationStatus) {
23
- InvitationStatus["Accepted"] = "accepted";
24
- InvitationStatus["Expired"] = "expired";
25
- InvitationStatus["Pending"] = "pending";
26
- })(InvitationStatus = exports.InvitationStatus || (exports.InvitationStatus = {}));
21
+ var TeamInvitationStatus;
22
+ (function (TeamInvitationStatus) {
23
+ TeamInvitationStatus["Accepted"] = "accepted";
24
+ TeamInvitationStatus["Expired"] = "expired";
25
+ TeamInvitationStatus["Pending"] = "pending";
26
+ })(TeamInvitationStatus = exports.TeamInvitationStatus || (exports.TeamInvitationStatus = {}));
@@ -9,92 +9,92 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { InvitationStatus } from './invitation-status';
13
12
  import { ProjectRelation } from './project-relation';
13
+ import { TeamInvitationStatus } from './team-invitation-status';
14
14
  import { TeamRelation } from './team-relation';
15
15
  import { UserRelation } from './user-relation';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface Invitation
19
+ * @interface TeamInvitation
20
20
  */
21
- export interface Invitation {
21
+ export interface TeamInvitation {
22
22
  /**
23
23
  * The unique UUID of the given invitation
24
24
  * @type {string}
25
- * @memberof Invitation
25
+ * @memberof TeamInvitation
26
26
  */
27
27
  id: string;
28
28
  /**
29
29
  *
30
- * @type {InvitationStatus}
31
- * @memberof Invitation
30
+ * @type {TeamInvitationStatus}
31
+ * @memberof TeamInvitation
32
32
  */
33
- status: InvitationStatus;
33
+ status: TeamInvitationStatus;
34
34
  /**
35
35
  * Human readable version of the invitation status
36
36
  * @type {string}
37
- * @memberof Invitation
37
+ * @memberof TeamInvitation
38
38
  */
39
39
  status_human_readable?: string;
40
40
  /**
41
41
  * The email of the user that has been invited to team
42
42
  * @type {string}
43
- * @memberof Invitation
43
+ * @memberof TeamInvitation
44
44
  */
45
45
  email: string;
46
46
  /**
47
47
  * The IP of the user who accepted the invitation
48
48
  * @type {string}
49
- * @memberof Invitation
49
+ * @memberof TeamInvitation
50
50
  */
51
51
  accepted_from_ip?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {UserRelation}
55
- * @memberof Invitation
55
+ * @memberof TeamInvitation
56
56
  */
57
57
  created_by_user: UserRelation;
58
58
  /**
59
59
  *
60
60
  * @type {UserRelation}
61
- * @memberof Invitation
61
+ * @memberof TeamInvitation
62
62
  */
63
63
  user: UserRelation;
64
64
  /**
65
65
  *
66
66
  * @type {TeamRelation}
67
- * @memberof Invitation
67
+ * @memberof TeamInvitation
68
68
  */
69
69
  team: TeamRelation;
70
70
  /**
71
71
  *
72
72
  * @type {ProjectRelation}
73
- * @memberof Invitation
73
+ * @memberof TeamInvitation
74
74
  */
75
75
  project?: ProjectRelation;
76
76
  /**
77
77
  * The date and time when the invitation will expire
78
78
  * @type {string}
79
- * @memberof Invitation
79
+ * @memberof TeamInvitation
80
80
  */
81
81
  expires_at?: string;
82
82
  /**
83
83
  * The date and time when the invitation was accepted
84
84
  * @type {string}
85
- * @memberof Invitation
85
+ * @memberof TeamInvitation
86
86
  */
87
87
  accepted_at?: string | null;
88
88
  /**
89
89
  * The date and time when the record was created
90
90
  * @type {string}
91
- * @memberof Invitation
91
+ * @memberof TeamInvitation
92
92
  */
93
93
  created_at?: string;
94
94
  /**
95
95
  * The date and time when the record was last updated
96
96
  * @type {string}
97
- * @memberof Invitation
97
+ * @memberof TeamInvitation
98
98
  */
99
99
  updated_at?: string;
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },