@devopness/sdk-js 3.1.7 → 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
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.7",
4
+ "version": "3.1.8",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -54,7 +54,7 @@
54
54
  "@eslint/js": "^9.39.2",
55
55
  "@openapitools/openapi-generator-cli": "^2.28.0",
56
56
  "@types/jest": "^30.0.0",
57
- "@typescript-eslint/parser": "^8.53.1",
57
+ "@typescript-eslint/parser": "^8.54.0",
58
58
  "axios-mock-adapter": "^2.1.0",
59
59
  "eslint": "^9.39.2",
60
60
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -66,11 +66,11 @@
66
66
  "ts-jest": "^29.4.5",
67
67
  "typedoc": "^0.28.16",
68
68
  "typescript": "^5.9.3",
69
- "typescript-eslint": "^8.53.1"
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
  }