@devopness/sdk-js 3.1.6 → 3.1.8

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.
@@ -23,6 +23,12 @@ export declare class EnvironmentsApiService extends ApiBaseService {
23
23
  * @param {number} environmentId The ID of the environment.
24
24
  */
25
25
  archiveEnvironment(environmentId: number): Promise<ApiResponse<void>>;
26
+ /**
27
+ *
28
+ * @summary Delete a given environment
29
+ * @param {number} environmentId The ID of the environment.
30
+ */
31
+ deleteEnvironment(environmentId: number): Promise<ApiResponse<void>>;
26
32
  /**
27
33
  *
28
34
  * @summary Get an environment by ID
@@ -45,6 +45,22 @@ class EnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
45
45
  return new ApiResponse_1.ApiResponse(response);
46
46
  });
47
47
  }
48
+ /**
49
+ *
50
+ * @summary Delete a given environment
51
+ * @param {number} environmentId The ID of the environment.
52
+ */
53
+ deleteEnvironment(environmentId) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ if (environmentId === null || environmentId === undefined) {
56
+ throw new Exceptions_1.ArgumentNullException('environmentId', 'deleteEnvironment');
57
+ }
58
+ let queryString = '';
59
+ const requestUrl = '/environments/{environment_id}' + (queryString ? `?${queryString}` : '');
60
+ const response = yield this.delete(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
61
+ return new ApiResponse_1.ApiResponse(response);
62
+ });
63
+ }
48
64
  /**
49
65
  *
50
66
  * @summary Get an environment by ID
@@ -25,6 +25,12 @@ export declare class OrganizationsApiService extends ApiBaseService {
25
25
  * @param {OrganizationCreate} organizationCreate A JSON object containing the resource data
26
26
  */
27
27
  addOrganization(organizationCreate: OrganizationCreate): Promise<ApiResponse<Organization>>;
28
+ /**
29
+ *
30
+ * @summary Delete a given organization
31
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
32
+ */
33
+ deleteOrganization(organizationId: string): Promise<ApiResponse<void>>;
28
34
  /**
29
35
  *
30
36
  * @summary Get an organization by ID or URL Slug
@@ -45,6 +45,22 @@ class OrganizationsApiService extends ApiBaseService_1.ApiBaseService {
45
45
  return new ApiResponse_1.ApiResponse(response);
46
46
  });
47
47
  }
48
+ /**
49
+ *
50
+ * @summary Delete a given organization
51
+ * @param {string} organizationId The numeric ID or URL Slug of an organization.
52
+ */
53
+ deleteOrganization(organizationId) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ if (organizationId === null || organizationId === undefined) {
56
+ throw new Exceptions_1.ArgumentNullException('organizationId', 'deleteOrganization');
57
+ }
58
+ let queryString = '';
59
+ const requestUrl = '/organizations/{organization_id}' + (queryString ? `?${queryString}` : '');
60
+ const response = yield this.delete(requestUrl.replace(`{${"organization_id"}}`, encodeURIComponent(String(organizationId))));
61
+ return new ApiResponse_1.ApiResponse(response);
62
+ });
63
+ }
48
64
  /**
49
65
  *
50
66
  * @summary Get an organization by ID or URL Slug
@@ -25,6 +25,12 @@ export declare class ProjectsApiService extends ApiBaseService {
25
25
  * @param {ProjectCreate} projectCreate A JSON object containing the resource data
26
26
  */
27
27
  addProject(projectCreate: ProjectCreate): Promise<ApiResponse<Project>>;
28
+ /**
29
+ *
30
+ * @summary Delete a given project
31
+ * @param {number} projectId The ID of the project.
32
+ */
33
+ deleteProject(projectId: number): Promise<ApiResponse<void>>;
28
34
  /**
29
35
  *
30
36
  * @summary Get a Project by ID
@@ -45,6 +45,22 @@ class ProjectsApiService extends ApiBaseService_1.ApiBaseService {
45
45
  return new ApiResponse_1.ApiResponse(response);
46
46
  });
47
47
  }
48
+ /**
49
+ *
50
+ * @summary Delete a given project
51
+ * @param {number} projectId The ID of the project.
52
+ */
53
+ deleteProject(projectId) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ if (projectId === null || projectId === undefined) {
56
+ throw new Exceptions_1.ArgumentNullException('projectId', 'deleteProject');
57
+ }
58
+ let queryString = '';
59
+ const requestUrl = '/projects/{project_id}' + (queryString ? `?${queryString}` : '');
60
+ const response = yield this.delete(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))));
61
+ return new ApiResponse_1.ApiResponse(response);
62
+ });
63
+ }
48
64
  /**
49
65
  *
50
66
  * @summary Get a Project by ID
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Current item status
13
+ * The possible status of an action.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ActionStatus = void 0;
16
16
  /**
17
- * Current item status
17
+ * The possible status of an action.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CloudProviderCode } from './cloud-provider-code';
12
+ import { ProviderCode } from './provider-code';
13
13
  import { ProviderType } from './provider-type';
14
14
  /**
15
15
  *
@@ -37,10 +37,10 @@ export interface ActionTargetCredentialData {
37
37
  provider_type: ProviderType;
38
38
  /**
39
39
  *
40
- * @type {CloudProviderCode}
40
+ * @type {ProviderCode}
41
41
  * @memberof ActionTargetCredentialData
42
42
  */
43
- provider_code: CloudProviderCode;
43
+ provider_code: ProviderCode;
44
44
  /**
45
45
  * The name of the cloud provider of the credential
46
46
  * @type {string}
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * The code of the cloud service provider
13
+ * The code of the cloud service provider.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CloudProviderCode = void 0;
16
16
  /**
17
- * The code of the cloud service provider
17
+ * The code of the cloud service provider.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * The code that uniquely identify this cloud service
13
+ * The code that uniquely identify this cloud service.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CloudProviderServiceCode = void 0;
16
16
  /**
17
- * The code that uniquely identify this cloud service
17
+ * The code that uniquely identify this cloud service.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * The code of the service provider
13
+ * The code of the service provider.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ProviderCode = void 0;
16
16
  /**
17
- * The code of the service provider
17
+ * The code of the service provider.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Type of provider.
13
+ * The possible types of providers.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -14,7 +14,7 @@
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ProviderType = void 0;
16
16
  /**
17
- * Type of provider.
17
+ * The possible types of providers.
18
18
  * @export
19
19
  * @enum {string}
20
20
  */
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.6",
4
+ "version": "3.1.8",
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.39.1",
55
- "@openapitools/openapi-generator-cli": "^2.25.2",
54
+ "@eslint/js": "^9.39.2",
55
+ "@openapitools/openapi-generator-cli": "^2.28.0",
56
56
  "@types/jest": "^30.0.0",
57
- "@typescript-eslint/parser": "^8.48.0",
57
+ "@typescript-eslint/parser": "^8.54.0",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^9.39.1",
59
+ "eslint": "^9.39.2",
60
60
  "eslint-import-resolver-typescript": "^4.4.4",
61
61
  "eslint-plugin-import": "^2.32.0",
62
- "eslint-plugin-n": "^17.23.1",
62
+ "eslint-plugin-n": "^17.23.2",
63
63
  "eslint-plugin-promise": "^7.2.1",
64
64
  "husky": "9.1.7",
65
65
  "jest": "^30.2.0",
66
66
  "ts-jest": "^29.4.5",
67
- "typedoc": "^0.28.14",
67
+ "typedoc": "^0.28.16",
68
68
  "typescript": "^5.9.3",
69
- "typescript-eslint": "^8.47.0"
69
+ "typescript-eslint": "^8.54.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",
73
- "axios": "^1.13.2",
73
+ "axios": "^1.13.4",
74
74
  "parse-link-header": "^2.0.0"
75
75
  }
76
76
  }