hcloud-sdk 20.1.0 → 21.0.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.
- package/changelog.md +28 -2
- package/lib/Base.d.ts +3 -0
- package/lib/Hcloud.d.ts +3 -0
- package/lib/Hcloud.js +7 -0
- package/lib/helper/ValidationHelper.js +1 -1
- package/lib/interfaces/cosmo/asset/index.d.ts +12 -3
- package/lib/interfaces/cosmo/asset/index.js +1 -0
- package/lib/interfaces/cosmo/comment/index.d.ts +24 -2
- package/lib/interfaces/cosmo/comment/index.js +17 -1
- package/lib/interfaces/cosmo/share/index.d.ts +19 -0
- package/lib/interfaces/cosmo/share/index.js +13 -1
- package/lib/interfaces/cosmo/space/index.d.ts +32 -0
- package/lib/interfaces/cosmo/space/index.js +6 -0
- package/lib/interfaces/high5/space/database/document/index.d.ts +14 -6
- package/lib/interfaces/high5/space/database/document/index.js +1 -0
- package/lib/interfaces/high5/space/job/index.d.ts +9 -10
- package/lib/interfaces/high5/space/job/index.js +2 -1
- package/lib/interfaces/idp/organization/index.d.ts +1 -1
- package/lib/interfaces/idp/organization/index.js +1 -1
- package/lib/interfaces/mailer/index.d.ts +76 -20
- package/lib/interfaces/mailer/index.js +244 -49
- package/lib/interfaces/nats/index.d.ts +4 -0
- package/lib/interfaces/nats/index.js +5 -0
- package/lib/interfaces/panel/index.d.ts +13 -0
- package/lib/interfaces/panel/index.js +2 -0
- package/lib/service/cosmo/asset/index.d.ts +43 -1
- package/lib/service/cosmo/asset/index.js +48 -0
- package/lib/service/cosmo/index.d.ts +3 -0
- package/lib/service/cosmo/index.js +7 -0
- package/lib/service/cosmo/share/index.d.ts +15 -7
- package/lib/service/cosmo/share/index.js +17 -7
- package/lib/service/cosmo/space/index.d.ts +25 -1
- package/lib/service/cosmo/space/index.js +30 -0
- package/lib/service/cosmo/stack/index.d.ts +68 -0
- package/lib/service/cosmo/stack/index.js +102 -0
- package/lib/service/high5/space/database/document/{array → collection}/index.d.ts +25 -1
- package/lib/service/high5/space/database/document/{array → collection}/index.js +33 -3
- package/lib/service/high5/space/database/document/index.d.ts +16 -4
- package/lib/service/high5/space/database/document/index.js +20 -5
- package/lib/service/high5/space/job/index.d.ts +3 -2
- package/lib/service/high5/space/job/index.js +3 -2
- package/lib/service/mailer/internal/index.d.ts +12 -3
- package/lib/service/mailer/internal/index.js +13 -1
- package/lib/service/panel/index.d.ts +11 -0
- package/lib/service/panel/index.js +33 -0
- package/package.json +2 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const Base_1 = __importDefault(require("../../Base"));
|
|
16
|
+
const axios_1 = require("../../interfaces/axios");
|
|
17
|
+
class PanelService extends Base_1.default {
|
|
18
|
+
constructor(options, axios) {
|
|
19
|
+
var _a;
|
|
20
|
+
super(options, axios);
|
|
21
|
+
this.sourceServer = ((_a = options.panel) === null || _a === void 0 ? void 0 : _a.server) || "https://cosmo-panel.s3.helmut.cloud";
|
|
22
|
+
}
|
|
23
|
+
getVersions(raw) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const resp = yield this.axios.get(this.getEndpoint("/index.json"), { headers: axios_1.disableCacheHeaders });
|
|
26
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getEndpoint(endpoint) {
|
|
30
|
+
return this.sourceServer + endpoint;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.default = PanelService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hcloud-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"description": "hcloud platform sdk",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint-plugin-import": "^2.31.0",
|
|
45
45
|
"globals": "^16.1.0",
|
|
46
46
|
"prettier": "^3.5.3",
|
|
47
|
-
"semantic-release": "^
|
|
47
|
+
"semantic-release": "^25.0.5",
|
|
48
48
|
"semantic-release-telegram": "^1.6.2",
|
|
49
49
|
"ts-node": "^10.9.2",
|
|
50
50
|
"typescript": "^5.8.3"
|