@devopness/sdk-js 2.157.0 → 2.159.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;
@@ -9,20 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ApplicationRelation } from './application-relation';
13
- import { CredentialRelation } from './credential-relation';
14
- import { CronJobRelation } from './cron-job-relation';
15
- import { DaemonRelation } from './daemon-relation';
16
12
  import { EnvironmentType } from './environment-type';
17
- import { NetworkRelation } from './network-relation';
18
- import { NetworkRuleRelation } from './network-rule-relation';
19
- import { ServerRelation } from './server-relation';
20
- import { ServiceRelation } from './service-relation';
21
- import { SshKeyRelation } from './ssh-key-relation';
22
- import { SslCertificateRelation } from './ssl-certificate-relation';
13
+ import { ResourceSummaryItem } from './resource-summary-item';
23
14
  import { TeamRelation } from './team-relation';
24
15
  import { UserRelation } from './user-relation';
25
- import { VirtualHostRelation } from './virtual-host-relation';
26
16
  /**
27
17
  *
28
18
  * @export
@@ -66,77 +56,17 @@ export interface Environment {
66
56
  */
67
57
  is_archived: boolean;
68
58
  /**
69
- *
70
- * @type {Array<ServerRelation>}
71
- * @memberof Environment
72
- */
73
- servers: Array<ServerRelation>;
74
- /**
75
- *
76
- * @type {Array<CredentialRelation>}
77
- * @memberof Environment
78
- */
79
- credentials: Array<CredentialRelation>;
80
- /**
81
- *
82
- * @type {Array<CronJobRelation>}
83
- * @memberof Environment
84
- */
85
- cron_jobs: Array<CronJobRelation>;
86
- /**
87
- *
88
- * @type {Array<DaemonRelation>}
89
- * @memberof Environment
90
- */
91
- daemons: Array<DaemonRelation>;
92
- /**
93
- *
94
- * @type {Array<NetworkRelation>}
95
- * @memberof Environment
96
- */
97
- networks: Array<NetworkRelation>;
98
- /**
99
- *
100
- * @type {Array<NetworkRuleRelation>}
59
+ * Summary of the resource
60
+ * @type {Array<ResourceSummaryItem>}
101
61
  * @memberof Environment
102
62
  */
103
- network_rules: Array<NetworkRuleRelation>;
104
- /**
105
- *
106
- * @type {Array<ApplicationRelation>}
107
- * @memberof Environment
108
- */
109
- applications: Array<ApplicationRelation>;
110
- /**
111
- *
112
- * @type {Array<ServiceRelation>}
113
- * @memberof Environment
114
- */
115
- services: Array<ServiceRelation>;
116
- /**
117
- *
118
- * @type {Array<SshKeyRelation>}
119
- * @memberof Environment
120
- */
121
- ssh_keys: Array<SshKeyRelation>;
122
- /**
123
- *
124
- * @type {Array<SslCertificateRelation>}
125
- * @memberof Environment
126
- */
127
- ssl_certificates: Array<SslCertificateRelation>;
63
+ resource_summary?: Array<ResourceSummaryItem>;
128
64
  /**
129
65
  *
130
66
  * @type {Array<TeamRelation>}
131
67
  * @memberof Environment
132
68
  */
133
69
  teams: Array<TeamRelation>;
134
- /**
135
- *
136
- * @type {Array<VirtualHostRelation>}
137
- * @memberof Environment
138
- */
139
- virtual_hosts: Array<VirtualHostRelation>;
140
70
  /**
141
71
  *
142
72
  * @type {UserRelation}
@@ -175,6 +175,8 @@ export * from './resource-event';
175
175
  export * from './resource-event-relation';
176
176
  export * from './resource-link-relation';
177
177
  export * from './resource-operation';
178
+ export * from './resource-summary-item';
179
+ export * from './resource-summary-item-summary';
178
180
  export * from './resource-to-be-linked';
179
181
  export * from './resource-type';
180
182
  export * from './resource-type-related';
@@ -191,6 +191,8 @@ __exportStar(require("./resource-event"), exports);
191
191
  __exportStar(require("./resource-event-relation"), exports);
192
192
  __exportStar(require("./resource-link-relation"), exports);
193
193
  __exportStar(require("./resource-operation"), exports);
194
+ __exportStar(require("./resource-summary-item"), exports);
195
+ __exportStar(require("./resource-summary-item-summary"), exports);
194
196
  __exportStar(require("./resource-to-be-linked"), exports);
195
197
  __exportStar(require("./resource-type"), exports);
196
198
  __exportStar(require("./resource-type-related"), exports);
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ResourceSummaryItem } from './resource-summary-item';
12
13
  import { UserRelation } from './user-relation';
13
14
  /**
14
15
  *
@@ -40,6 +41,12 @@ export interface ProjectRelation {
40
41
  * @memberof ProjectRelation
41
42
  */
42
43
  logo_url: string | null;
44
+ /**
45
+ * Summary of the resource
46
+ * @type {Array<ResourceSummaryItem>}
47
+ * @memberof ProjectRelation
48
+ */
49
+ resource_summary?: Array<ResourceSummaryItem>;
43
50
  /**
44
51
  * The list of the operating system users found in all the servers linked to a project
45
52
  * @type {Array<object>}
@@ -9,9 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EnvironmentRelation } from './environment-relation';
13
- import { RoleRelation } from './role-relation';
14
- import { TeamRelation } from './team-relation';
12
+ import { ResourceSummaryItem } from './resource-summary-item';
15
13
  import { UserRelation } from './user-relation';
16
14
  /**
17
15
  *
@@ -43,6 +41,12 @@ export interface Project {
43
41
  * @memberof Project
44
42
  */
45
43
  logo_url: string | null;
44
+ /**
45
+ * Summary of the resource
46
+ * @type {Array<ResourceSummaryItem>}
47
+ * @memberof Project
48
+ */
49
+ resource_summary?: Array<ResourceSummaryItem>;
46
50
  /**
47
51
  * The list of the operating system users found in all the servers linked to a project
48
52
  * @type {Array<object>}
@@ -55,24 +59,6 @@ export interface Project {
55
59
  * @memberof Project
56
60
  */
57
61
  created_by_user: UserRelation;
58
- /**
59
- *
60
- * @type {Array<EnvironmentRelation>}
61
- * @memberof Project
62
- */
63
- environments: Array<EnvironmentRelation>;
64
- /**
65
- *
66
- * @type {Array<TeamRelation>}
67
- * @memberof Project
68
- */
69
- teams: Array<TeamRelation>;
70
- /**
71
- *
72
- * @type {Array<RoleRelation>}
73
- * @memberof Project
74
- */
75
- roles: Array<RoleRelation>;
76
62
  /**
77
63
  * The date and time when the record was created
78
64
  * @type {string}
@@ -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
+ * Aggregated data of the resource
14
+ * @export
15
+ * @interface ResourceSummaryItemSummary
16
+ */
17
+ export interface ResourceSummaryItemSummary {
18
+ /**
19
+ * Total number of entries of this resource
20
+ * @type {number}
21
+ * @memberof ResourceSummaryItemSummary
22
+ */
23
+ count: 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,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 { ResourceSummaryItemSummary } from './resource-summary-item-summary';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ResourceSummaryItem
17
+ */
18
+ export interface ResourceSummaryItem {
19
+ /**
20
+ * The type of the resource
21
+ * @type {string}
22
+ * @memberof ResourceSummaryItem
23
+ */
24
+ resource_type: string;
25
+ /**
26
+ * The plural name of the resource type
27
+ * @type {string}
28
+ * @memberof ResourceSummaryItem
29
+ */
30
+ resource_type_plural: string;
31
+ /**
32
+ * The human readable name of the resource type
33
+ * @type {string}
34
+ * @memberof ResourceSummaryItem
35
+ */
36
+ resource_type_human_readable: string;
37
+ /**
38
+ * The human readable plural name of the resource type
39
+ * @type {string}
40
+ * @memberof ResourceSummaryItem
41
+ */
42
+ resource_type_human_readable_plural: string;
43
+ /**
44
+ *
45
+ * @type {ResourceSummaryItemSummary}
46
+ * @memberof ResourceSummaryItem
47
+ */
48
+ summary: ResourceSummaryItemSummary;
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 });
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.157.0",
4
+ "version": "2.159.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -51,26 +51,26 @@
51
51
  },
52
52
  "homepage": "https://github.com/devopness/devopness#readme",
53
53
  "devDependencies": {
54
- "@eslint/js": "^9.20.0",
55
- "@openapitools/openapi-generator-cli": "^2.16.3",
54
+ "@eslint/js": "^9.22.0",
55
+ "@openapitools/openapi-generator-cli": "^2.18.4",
56
56
  "@types/jest": "^29.5.12",
57
- "@typescript-eslint/parser": "^8.24.0",
57
+ "@typescript-eslint/parser": "^8.27.0",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^9.20.1",
60
- "eslint-import-resolver-typescript": "^3.8.2",
59
+ "eslint": "^9.22.0",
60
+ "eslint-import-resolver-typescript": "^4.2.2",
61
61
  "eslint-plugin-import": "^2.31.0",
62
- "eslint-plugin-n": "^17.15.1",
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
- "ts-jest": "^29.2.3",
67
- "typedoc": "^0.27.7",
68
- "typescript": "^5.7.3",
69
- "typescript-eslint": "^8.24.1"
66
+ "ts-jest": "^29.2.6",
67
+ "typedoc": "^0.28.1",
68
+ "typescript": "^5.8.2",
69
+ "typescript-eslint": "^8.27.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",
73
- "axios": "^1.7.9",
73
+ "axios": "^1.8.4",
74
74
  "parse-link-header": "^2.0.0"
75
75
  }
76
76
  }