@devopness/sdk-js 2.151.0 → 2.153.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.
@@ -56,6 +56,12 @@ export declare class ServersApiService extends ApiBaseService {
56
56
  * @param {number} serverId The ID of the server.
57
57
  */
58
58
  restartServer(serverId: number): Promise<ApiResponse<void>>;
59
+ /**
60
+ *
61
+ * @summary Rotate the key used to access the server
62
+ * @param {number} serverId The ID of the server.
63
+ */
64
+ rotateKeyServer(serverId: number): Promise<ApiResponse<void>>;
59
65
  /**
60
66
  *
61
67
  * @summary Start a previously stopped server
@@ -137,6 +137,22 @@ class ServersApiService extends ApiBaseService_1.ApiBaseService {
137
137
  return new ApiResponse_1.ApiResponse(response);
138
138
  });
139
139
  }
140
+ /**
141
+ *
142
+ * @summary Rotate the key used to access the server
143
+ * @param {number} serverId The ID of the server.
144
+ */
145
+ rotateKeyServer(serverId) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ if (serverId === null || serverId === undefined) {
148
+ throw new Exceptions_1.ArgumentNullException('serverId', 'rotateKeyServer');
149
+ }
150
+ let queryString = '';
151
+ const requestUrl = '/servers/{server_id}/rotate-key' + (queryString ? `?${queryString}` : '');
152
+ const response = yield this.post(requestUrl.replace(`{${"server_id"}}`, encodeURIComponent(String(serverId))));
153
+ return new ApiResponse_1.ApiResponse(response);
154
+ });
155
+ }
140
156
  /**
141
157
  *
142
158
  * @summary Start a previously stopped server
@@ -40,7 +40,13 @@ export interface ActionStep {
40
40
  * @type {string}
41
41
  * @memberof ActionStep
42
42
  */
43
- name: string;
43
+ name: string | null;
44
+ /**
45
+ * A short text describing the command. Can be helpful for other team members to understand why a pipeline step is needed.
46
+ * @type {string}
47
+ * @memberof ActionStep
48
+ */
49
+ description?: string | null;
44
50
  /**
45
51
  * The execution order of the given step
46
52
  * @type {number}
@@ -18,5 +18,6 @@ export declare enum CloudOsVersionCode {
18
18
  Centos7 = "centos_7",
19
19
  Ubuntu1804 = "ubuntu_18_04",
20
20
  Ubuntu2004 = "ubuntu_20_04",
21
- Ubuntu2204 = "ubuntu_22_04"
21
+ Ubuntu2204 = "ubuntu_22_04",
22
+ Ubuntu2404 = "ubuntu_24_04"
22
23
  }
@@ -24,4 +24,5 @@ var CloudOsVersionCode;
24
24
  CloudOsVersionCode["Ubuntu1804"] = "ubuntu_18_04";
25
25
  CloudOsVersionCode["Ubuntu2004"] = "ubuntu_20_04";
26
26
  CloudOsVersionCode["Ubuntu2204"] = "ubuntu_22_04";
27
+ CloudOsVersionCode["Ubuntu2404"] = "ubuntu_24_04";
27
28
  })(CloudOsVersionCode || (exports.CloudOsVersionCode = CloudOsVersionCode = {}));
@@ -7,6 +7,7 @@ const applications_api_1 = require("../api/generated/apis/applications-api");
7
7
  const applications_deployments_api_1 = require("../api/generated/apis/applications-deployments-api");
8
8
  const applications_variables_api_1 = require("../api/generated/apis/applications-variables-api");
9
9
  const applications_hooks_api_1 = require("../api/generated/apis/applications-hooks-api");
10
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
10
11
  class ApplicationService extends ApiBaseService_1.ApiBaseService {
11
12
  }
12
13
  exports.ApplicationService = ApplicationService;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/package.json",
2
3
  "name": "@devopness/sdk-js",
3
- "version": "2.151.0",
4
+ "version": "2.153.0",
4
5
  "publishConfig": {
5
6
  "access": "public"
6
7
  },
@@ -17,10 +18,8 @@
17
18
  "docs-export-service-index": "find src/services/ ! -name 'index.ts' -name '*.ts' -type f | sort -k3 -t'/' | xargs -I'{}' bash -c 'echo \"export * from $(echo -e \"\\x27\")./$(basename $0 .ts)$(echo -e \"\\x27\")\" >> src/services/index.ts' {} \\;",
18
19
  "docs-update-service-index": "npm run docs-remove-service-index && npm run docs-export-service-index",
19
20
  "docs": "npm run docs-update-service-index && typedoc",
20
- "lint": "eslint . --ext .ts",
21
- "prepublishOnly": "npm test",
22
- "prepare": "npm run build",
23
- "preversion": "npm run lint",
21
+ "lint": "eslint .",
22
+ "prepublishOnly": "npm run lint && npm test && npm run build",
24
23
  "test": "jest"
25
24
  },
26
25
  "repository": {
@@ -52,19 +51,22 @@
52
51
  },
53
52
  "homepage": "https://github.com/devopness/devopness#readme",
54
53
  "devDependencies": {
54
+ "@eslint/js": "^9.18.0",
55
55
  "@openapitools/openapi-generator-cli": "^2.15.3",
56
56
  "@types/jest": "^29.5.12",
57
- "@typescript-eslint/eslint-plugin": "^5.31.0",
57
+ "@typescript-eslint/parser": "^8.20.0",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^7.32.0",
60
- "eslint-plugin-import": "^2.29.1",
61
- "eslint-plugin-node": "^11.1.0",
59
+ "eslint": "^9.18.0",
60
+ "eslint-import-resolver-typescript": "^3.7.0",
61
+ "eslint-plugin-import": "^2.31.0",
62
+ "eslint-plugin-n": "^17.15.1",
62
63
  "eslint-plugin-promise": "^7.2.1",
63
- "husky": "9.1.1",
64
+ "husky": "9.1.7",
64
65
  "jest": "^29.7.0",
65
66
  "ts-jest": "^29.2.3",
66
- "typedoc": "^0.27.3",
67
- "typescript": "^5.7.2"
67
+ "typedoc": "^0.27.6",
68
+ "typescript": "^5.7.3",
69
+ "typescript-eslint": "^8.20.0"
68
70
  },
69
71
  "dependencies": {
70
72
  "@types/parse-link-header": "^2.0.3",