@devopness/sdk-js 3.1.0 → 3.1.2

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.
@@ -12,7 +12,6 @@
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
14
  import { Organization } from '../../generated/models';
15
- import { OrganizationActivity } from '../../generated/models';
16
15
  import { OrganizationCreate } from '../../generated/models';
17
16
  import { OrganizationRelation } from '../../generated/models';
18
17
  import { OrganizationUpdate } from '../../generated/models';
@@ -32,12 +31,6 @@ export declare class OrganizationsApiService extends ApiBaseService {
32
31
  * @param {string} organizationId The numeric ID or URL Slug of an organization.
33
32
  */
34
33
  getOrganization(organizationId: string): Promise<ApiResponse<Organization>>;
35
- /**
36
- *
37
- * @summary Get activity information for an organization
38
- * @param {string} organizationId The numeric ID or URL Slug of an organization.
39
- */
40
- getOrganizationActivity(organizationId: string): Promise<ApiResponse<OrganizationActivity>>;
41
34
  /**
42
35
  *
43
36
  * @summary List all organizations of authenticated user
@@ -61,22 +61,6 @@ class OrganizationsApiService extends ApiBaseService_1.ApiBaseService {
61
61
  return new ApiResponse_1.ApiResponse(response);
62
62
  });
63
63
  }
64
- /**
65
- *
66
- * @summary Get activity information for an organization
67
- * @param {string} organizationId The numeric ID or URL Slug of an organization.
68
- */
69
- getOrganizationActivity(organizationId) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- if (organizationId === null || organizationId === undefined) {
72
- throw new Exceptions_1.ArgumentNullException('organizationId', 'getOrganizationActivity');
73
- }
74
- let queryString = '';
75
- const requestUrl = '/organizations/{organization_id}/activity' + (queryString ? `?${queryString}` : '');
76
- const response = yield this.get(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
77
- return new ApiResponse_1.ApiResponse(response);
78
- });
79
- }
80
64
  /**
81
65
  *
82
66
  * @summary List all organizations of authenticated user
@@ -159,7 +159,6 @@ export * from './operating-system';
159
159
  export * from './operating-system-version';
160
160
  export * from './operation-custom-settings';
161
161
  export * from './organization';
162
- export * from './organization-activity';
163
162
  export * from './organization-create';
164
163
  export * from './organization-relation';
165
164
  export * from './organization-update';
@@ -183,6 +182,8 @@ export * from './pipeline-update';
183
182
  export * from './project';
184
183
  export * from './project-create';
185
184
  export * from './project-organization-create';
185
+ export * from './project-owner-relation';
186
+ export * from './project-owner-type';
186
187
  export * from './project-relation';
187
188
  export * from './project-update';
188
189
  export * from './provider-code';
@@ -175,7 +175,6 @@ __exportStar(require("./operating-system"), exports);
175
175
  __exportStar(require("./operating-system-version"), exports);
176
176
  __exportStar(require("./operation-custom-settings"), exports);
177
177
  __exportStar(require("./organization"), exports);
178
- __exportStar(require("./organization-activity"), exports);
179
178
  __exportStar(require("./organization-create"), exports);
180
179
  __exportStar(require("./organization-relation"), exports);
181
180
  __exportStar(require("./organization-update"), exports);
@@ -199,6 +198,8 @@ __exportStar(require("./pipeline-update"), exports);
199
198
  __exportStar(require("./project"), exports);
200
199
  __exportStar(require("./project-create"), exports);
201
200
  __exportStar(require("./project-organization-create"), exports);
201
+ __exportStar(require("./project-owner-relation"), exports);
202
+ __exportStar(require("./project-owner-type"), exports);
202
203
  __exportStar(require("./project-relation"), exports);
203
204
  __exportStar(require("./project-update"), exports);
204
205
  __exportStar(require("./provider-code"), exports);
@@ -32,12 +32,6 @@ export interface InvitationRelation {
32
32
  * @memberof InvitationRelation
33
33
  */
34
34
  type: TeamInvitationType;
35
- /**
36
- * The token used to accept the public invitation
37
- * @type {string}
38
- * @memberof InvitationRelation
39
- */
40
- token: string | null;
41
35
  /**
42
36
  * The email of the user that has been invited to team
43
37
  * @type {string}
@@ -56,6 +50,12 @@ export interface InvitationRelation {
56
50
  * @memberof InvitationRelation
57
51
  */
58
52
  status_human_readable: string;
53
+ /**
54
+ * The URL to accept the public invitation
55
+ * @type {string}
56
+ * @memberof InvitationRelation
57
+ */
58
+ public_accept_url: string | null;
59
59
  /**
60
60
  * The IP of the user who accepted the invitation
61
61
  * @type {string}
@@ -31,12 +31,6 @@ export interface Invitation {
31
31
  * @memberof Invitation
32
32
  */
33
33
  type: TeamInvitationType;
34
- /**
35
- * The token used to accept the public invitation
36
- * @type {string}
37
- * @memberof Invitation
38
- */
39
- token: string | null;
40
34
  /**
41
35
  * The email of the user that has been invited to team
42
36
  * @type {string}
@@ -55,6 +49,12 @@ export interface Invitation {
55
49
  * @memberof Invitation
56
50
  */
57
51
  status_human_readable: string;
52
+ /**
53
+ * The URL to accept the public invitation
54
+ * @type {string}
55
+ * @memberof Invitation
56
+ */
57
+ public_accept_url: string | null;
58
58
  /**
59
59
  * The IP of the user who accepted the invitation
60
60
  * @type {string}
@@ -0,0 +1,19 @@
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 { OrganizationRelation } from './organization-relation';
13
+ import { UserRelation } from './user-relation';
14
+ /**
15
+ * @type ProjectOwnerRelation
16
+ * The owner of the project (user or organization)
17
+ * @export
18
+ */
19
+ export type ProjectOwnerRelation = OrganizationRelation | UserRelation;
@@ -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 users.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum ProjectOwnerType {
18
+ User = "user",
19
+ Org = "org"
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.ProjectOwnerType = void 0;
16
+ /**
17
+ * The possible types of users.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var ProjectOwnerType;
22
+ (function (ProjectOwnerType) {
23
+ ProjectOwnerType["User"] = "user";
24
+ ProjectOwnerType["Org"] = "org";
25
+ })(ProjectOwnerType || (exports.ProjectOwnerType = ProjectOwnerType = {}));
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ProjectOwnerRelation } from './project-owner-relation';
13
+ import { ProjectOwnerType } from './project-owner-type';
12
14
  import { ResourceSummaryItem } from './resource-summary-item';
13
15
  import { UserRelation } from './user-relation';
14
16
  /**
@@ -53,6 +55,18 @@ export interface ProjectRelation {
53
55
  * @memberof ProjectRelation
54
56
  */
55
57
  os_users: Array<object>;
58
+ /**
59
+ *
60
+ * @type {ProjectOwnerRelation}
61
+ * @memberof ProjectRelation
62
+ */
63
+ owner: ProjectOwnerRelation;
64
+ /**
65
+ *
66
+ * @type {ProjectOwnerType}
67
+ * @memberof ProjectRelation
68
+ */
69
+ owner_type: ProjectOwnerType;
56
70
  /**
57
71
  *
58
72
  * @type {UserRelation}
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ProjectOwnerRelation } from './project-owner-relation';
13
+ import { ProjectOwnerType } from './project-owner-type';
12
14
  import { ResourceSummaryItem } from './resource-summary-item';
13
15
  import { UserRelation } from './user-relation';
14
16
  /**
@@ -53,6 +55,18 @@ export interface Project {
53
55
  * @memberof Project
54
56
  */
55
57
  os_users: Array<object>;
58
+ /**
59
+ *
60
+ * @type {ProjectOwnerRelation}
61
+ * @memberof Project
62
+ */
63
+ owner: ProjectOwnerRelation;
64
+ /**
65
+ *
66
+ * @type {ProjectOwnerType}
67
+ * @memberof Project
68
+ */
69
+ owner_type: ProjectOwnerType;
56
70
  /**
57
71
  *
58
72
  * @type {UserRelation}
@@ -32,12 +32,6 @@ export interface TeamInvitationRelation {
32
32
  * @memberof TeamInvitationRelation
33
33
  */
34
34
  type: TeamInvitationType;
35
- /**
36
- * The token used to accept the public invitation
37
- * @type {string}
38
- * @memberof TeamInvitationRelation
39
- */
40
- token: string | null;
41
35
  /**
42
36
  * The email of the user that has been invited to team
43
37
  * @type {string}
@@ -56,6 +50,12 @@ export interface TeamInvitationRelation {
56
50
  * @memberof TeamInvitationRelation
57
51
  */
58
52
  status_human_readable: string;
53
+ /**
54
+ * The URL to accept the public invitation
55
+ * @type {string}
56
+ * @memberof TeamInvitationRelation
57
+ */
58
+ public_accept_url: string | null;
59
59
  /**
60
60
  * The IP of the user who accepted the invitation
61
61
  * @type {string}
@@ -1,5 +1,3 @@
1
1
  import { OrganizationsApiService } from "../api/generated/apis/organizations-api";
2
- import { OrganizationsEnvironmentsApiService } from "../api/generated/apis/organizations-environments-api";
3
2
  export declare class OrganizationService extends OrganizationsApiService {
4
- environments: OrganizationsEnvironmentsApiService;
5
3
  }
@@ -2,11 +2,6 @@
2
2
  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
- const organizations_environments_api_1 = require("../api/generated/apis/organizations-environments-api");
6
5
  class OrganizationService extends organizations_api_1.OrganizationsApiService {
7
- constructor() {
8
- super(...arguments);
9
- this.environments = new organizations_environments_api_1.OrganizationsEnvironmentsApiService();
10
- }
11
6
  }
12
7
  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": "3.1.0",
4
+ "version": "3.1.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",
73
- "axios": "^1.12.0",
73
+ "axios": "^1.13.1",
74
74
  "parse-link-header": "^2.0.0"
75
75
  }
76
76
  }
@@ -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 { EnvironmentRelation } from '../../generated/models';
15
- /**
16
- * OrganizationsEnvironmentsApiService - Auto-generated
17
- */
18
- export declare class OrganizationsEnvironmentsApiService extends ApiBaseService {
19
- /**
20
- *
21
- * @summary Return a list of all environments 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
- listOrganizationEnvironments(organizationId: string, page?: number, perPage?: number): Promise<ApiResponse<Array<EnvironmentRelation>>>;
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.OrganizationsEnvironmentsApiService = 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
- * OrganizationsEnvironmentsApiService - Auto-generated
30
- */
31
- class OrganizationsEnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Return a list of all environments 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
- listOrganizationEnvironments(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', 'listOrganizationEnvironments');
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}/environments' + (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.OrganizationsEnvironmentsApiService = OrganizationsEnvironmentsApiService;
@@ -1,46 +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 { TriggeredActions } from './triggered-actions';
13
- import { UserEnvironmentStats } from './user-environment-stats';
14
- import { UserProjectStats } from './user-project-stats';
15
- import { UserTeamStats } from './user-team-stats';
16
- /**
17
- *
18
- * @export
19
- * @interface OrganizationActivity
20
- */
21
- export interface OrganizationActivity {
22
- /**
23
- *
24
- * @type {UserProjectStats}
25
- * @memberof OrganizationActivity
26
- */
27
- projects: UserProjectStats;
28
- /**
29
- *
30
- * @type {UserEnvironmentStats}
31
- * @memberof OrganizationActivity
32
- */
33
- environments: UserEnvironmentStats;
34
- /**
35
- *
36
- * @type {UserTeamStats}
37
- * @memberof OrganizationActivity
38
- */
39
- teams: UserTeamStats;
40
- /**
41
- *
42
- * @type {TriggeredActions}
43
- * @memberof OrganizationActivity
44
- */
45
- triggered_actions: TriggeredActions;
46
- }