hcloud-sdk 14.13.2 → 16.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 +60 -806
- package/lib/Hcloud.d.ts +20 -10
- package/lib/Hcloud.js +60 -10
- package/lib/interfaces/auditor/index.d.ts +4 -2
- package/lib/interfaces/bouncer/features/index.d.ts +3 -6
- package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
- package/lib/interfaces/frontend/featureflags/index.js +2 -0
- package/lib/interfaces/high5/execution/index.d.ts +22 -0
- package/lib/interfaces/high5/execution/index.js +10 -0
- package/lib/interfaces/high5/index.d.ts +2 -2
- package/lib/interfaces/high5/index.js +2 -2
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +16 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +14 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
- package/lib/interfaces/high5/space/pool/index.js +9 -0
- package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
- package/lib/interfaces/high5/wave/changelog.js +18 -0
- package/lib/interfaces/high5/wave/index.d.ts +48 -1
- package/lib/interfaces/high5/wave/index.js +14 -1
- package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.js +21 -1
- package/lib/interfaces/idp/user/Totp.d.ts +4 -2
- package/lib/interfaces/idp/user/index.d.ts +1 -0
- package/lib/interfaces/mothership/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +35 -20
- package/lib/interfaces/nats/index.js +132 -94
- package/lib/service/agent/bundle/dev/index.d.ts +5 -2
- package/lib/service/agent/bundle/dev/index.js +30 -10
- package/lib/service/agent/context/index.d.ts +7 -9
- package/lib/service/agent/context/index.js +41 -32
- package/lib/service/agent/index.d.ts +9 -7
- package/lib/service/agent/index.js +23 -6
- package/lib/service/auditor/index.d.ts +6 -7
- package/lib/service/auditor/index.js +23 -17
- package/lib/service/auditor/internal/index.d.ts +2 -2
- package/lib/service/auditor/internal/index.js +24 -20
- package/lib/service/bouncer/features/index.d.ts +1 -1
- package/lib/service/bouncer/features/index.js +5 -3
- package/lib/service/bouncer/index.d.ts +3 -10
- package/lib/service/bouncer/index.js +6 -21
- package/lib/service/dali/DaliAvatar.d.ts +21 -11
- package/lib/service/dali/DaliAvatar.js +63 -8
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +5 -7
- package/lib/service/dali/avatar/DaliFuseSpace.js +29 -26
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
- package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +5 -7
- package/lib/service/dali/avatar/DaliHigh5Space.js +29 -26
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
- package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOrganization.js +23 -20
- package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
- package/lib/service/dali/avatar/DaliTeam.js +26 -23
- package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
- package/lib/service/dali/avatar/DaliUser.js +20 -17
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +14 -7
- package/lib/service/fuse/index.d.ts +8 -7
- package/lib/service/fuse/index.js +23 -9
- package/lib/service/fuse/internal/index.d.ts +3 -4
- package/lib/service/fuse/internal/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
- package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
- package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
- package/lib/service/fuse/internal/space/index.d.ts +5 -6
- package/lib/service/fuse/internal/space/index.js +24 -18
- package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
- package/lib/service/fuse/space/cronjob/index.js +133 -105
- package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
- package/lib/service/fuse/space/cronjob/log/index.js +24 -23
- package/lib/service/fuse/space/index.d.ts +13 -14
- package/lib/service/fuse/space/index.js +88 -70
- package/lib/service/high5/execution/index.d.ts +13 -5
- package/lib/service/high5/execution/index.js +32 -4
- package/lib/service/high5/execution/log/index.d.ts +2 -2
- package/lib/service/high5/execution/log/index.js +11 -12
- package/lib/service/high5/execution/status/index.d.ts +2 -2
- package/lib/service/high5/execution/status/index.js +11 -12
- package/lib/service/high5/index.d.ts +12 -9
- package/lib/service/high5/index.js +36 -12
- package/lib/service/high5/internal/index.d.ts +3 -4
- package/lib/service/high5/internal/index.js +5 -3
- package/lib/service/high5/internal/space/index.d.ts +2 -2
- package/lib/service/high5/internal/space/index.js +19 -15
- package/lib/service/high5/joinToken/index.d.ts +4 -4
- package/lib/service/high5/joinToken/index.js +36 -28
- package/lib/service/high5/space/event/index.d.ts +9 -10
- package/lib/service/high5/space/event/index.js +58 -46
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
- package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
- package/lib/service/high5/space/event/stream/design/index.js +60 -25
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
- package/lib/service/high5/space/event/stream/index.d.ts +14 -15
- package/lib/service/high5/space/event/stream/index.js +125 -103
- package/lib/service/high5/space/execution/index.d.ts +36 -9
- package/lib/service/high5/space/execution/index.js +96 -42
- package/lib/service/high5/space/execution/log/index.d.ts +4 -6
- package/lib/service/high5/space/execution/log/index.js +22 -21
- package/lib/service/high5/space/execution/status/index.d.ts +1 -1
- package/lib/service/high5/space/execution/status/index.js +10 -8
- package/lib/service/high5/space/index.d.ts +28 -21
- package/lib/service/high5/space/index.js +138 -86
- package/lib/service/high5/space/pool/index.d.ts +97 -0
- package/lib/service/high5/space/pool/index.js +171 -0
- package/lib/service/high5/space/secret/index.d.ts +6 -6
- package/lib/service/high5/space/secret/index.js +59 -49
- package/lib/service/high5/space/wave/index.d.ts +7 -9
- package/lib/service/high5/space/wave/index.js +40 -33
- package/lib/service/high5/space/webhook/index.d.ts +21 -14
- package/lib/service/high5/space/webhook/index.js +106 -73
- package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
- package/lib/service/high5/space/webhook/log/index.js +11 -12
- package/lib/service/high5/wave/s3/index.d.ts +14 -7
- package/lib/service/high5/wave/s3/index.js +64 -38
- package/lib/service/idp/index.d.ts +17 -15
- package/lib/service/idp/index.js +104 -56
- package/lib/service/idp/internal/index.d.ts +2 -4
- package/lib/service/idp/internal/index.js +10 -11
- package/lib/service/idp/oauth/index.d.ts +16 -12
- package/lib/service/idp/oauth/index.js +56 -45
- package/lib/service/idp/organization/index.d.ts +12 -10
- package/lib/service/idp/organization/index.js +63 -28
- package/lib/service/idp/organization/license/index.d.ts +2 -2
- package/lib/service/idp/organization/license/index.js +5 -4
- package/lib/service/idp/organization/member/index.d.ts +10 -11
- package/lib/service/idp/organization/member/index.js +62 -48
- package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
- package/lib/service/idp/organization/member/invitations/index.js +47 -43
- package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
- package/lib/service/idp/organization/settings/domain/index.js +42 -29
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
- package/lib/service/idp/organization/settings/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/index.js +17 -4
- package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
- package/lib/service/idp/organization/settings/oauth/index.js +67 -56
- package/lib/service/idp/organization/team/index.d.ts +8 -8
- package/lib/service/idp/organization/team/index.js +64 -55
- package/lib/service/idp/registration/index.d.ts +4 -6
- package/lib/service/idp/registration/index.js +38 -35
- package/lib/service/idp/user/index.d.ts +20 -15
- package/lib/service/idp/user/index.js +94 -51
- package/lib/service/idp/user/license/index.d.ts +2 -2
- package/lib/service/idp/user/license/index.js +5 -4
- package/lib/service/idp/user/password/index.d.ts +1 -1
- package/lib/service/idp/user/password/index.js +10 -11
- package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
- package/lib/service/idp/user/settings/connections/index.js +9 -10
- package/lib/service/idp/user/settings/general/index.d.ts +10 -6
- package/lib/service/idp/user/settings/general/index.js +25 -13
- package/lib/service/idp/user/settings/index.d.ts +13 -9
- package/lib/service/idp/user/settings/index.js +53 -8
- package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
- package/lib/service/idp/user/settings/notifications/index.js +14 -13
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
- package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
- package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
- package/lib/service/idp/user/settings/pats/index.js +55 -44
- package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
- package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +7 -9
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
- package/lib/service/mailer/index.d.ts +4 -5
- package/lib/service/mailer/index.js +12 -8
- package/lib/service/mailer/internal/index.d.ts +4 -4
- package/lib/service/mailer/internal/index.js +38 -33
- package/lib/service/mothership/index.d.ts +12 -12
- package/lib/service/mothership/index.js +92 -79
- package/lib/service/nats/index.d.ts +1 -3
- package/lib/service/nats/index.js +2 -2
- package/lib/utils/bouncer/features/Provider.d.ts +3 -0
- package/lib/utils/bouncer/features/Provider.js +20 -2
- package/package.json +1 -1
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../Base";
|
|
1
|
+
import Base from "../../Base";
|
|
3
2
|
import { Version } from "../../interfaces/global";
|
|
4
3
|
import { DaliAvatar } from "./DaliAvatar";
|
|
5
4
|
export default class Dali extends Base {
|
|
6
5
|
/**
|
|
7
6
|
* Handles everything around avatars
|
|
8
7
|
*/
|
|
9
|
-
avatar: DaliAvatar;
|
|
10
|
-
|
|
8
|
+
get avatar(): DaliAvatar;
|
|
9
|
+
private _avatar?;
|
|
11
10
|
/**
|
|
12
11
|
* @returns An object containing the endpoint version as a string
|
|
13
12
|
*/
|
|
14
|
-
version
|
|
13
|
+
version(): Promise<Version>;
|
|
15
14
|
protected getEndpoint(endpoint: string): string;
|
|
16
15
|
}
|
|
@@ -12,16 +12,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
const Base_1 = require("../../Base");
|
|
13
13
|
const DaliAvatar_1 = require("./DaliAvatar");
|
|
14
14
|
class Dali extends Base_1.default {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Handles everything around avatars
|
|
17
|
+
*/
|
|
18
|
+
get avatar() {
|
|
19
|
+
if (this._avatar === undefined) {
|
|
20
|
+
this._avatar = new DaliAvatar_1.DaliAvatar(this.options, this.axios);
|
|
21
|
+
}
|
|
22
|
+
return this._avatar;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @returns An object containing the endpoint version as a string
|
|
26
|
+
*/
|
|
27
|
+
version() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
29
|
const resp = yield this.axios.get(this.getEndpoint("/v1/version"));
|
|
22
30
|
return resp.data;
|
|
23
31
|
});
|
|
24
|
-
this.avatar = new DaliAvatar_1.DaliAvatar(this.options, this.axios);
|
|
25
32
|
}
|
|
26
33
|
getEndpoint(endpoint) {
|
|
27
34
|
return `${this.options.server}/api/dali${endpoint}`;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../Base";
|
|
1
|
+
import Base from "../../Base";
|
|
3
2
|
import { Version } from "../../interfaces/global";
|
|
4
3
|
import { FuseInternal } from "./internal";
|
|
5
4
|
import { FuseSpaceInternal } from "./internal/space";
|
|
6
5
|
import { FuseSpace } from "./space";
|
|
7
6
|
export default class Fuse extends Base {
|
|
8
|
-
space: FuseSpace;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
get space(): FuseSpace;
|
|
8
|
+
private _space?;
|
|
9
|
+
get internal(): FuseInternal;
|
|
10
|
+
private _internal?;
|
|
11
|
+
get spaceInternal(): FuseSpaceInternal;
|
|
12
|
+
private _spaceInternal?;
|
|
12
13
|
/**
|
|
13
14
|
* @returns Object containing the version as a string
|
|
14
15
|
*/
|
|
15
|
-
version
|
|
16
|
+
version(): Promise<Version>;
|
|
16
17
|
protected getEndpoint(endpoint: string): string;
|
|
17
18
|
}
|
|
@@ -14,18 +14,32 @@ const internal_1 = require("./internal");
|
|
|
14
14
|
const space_1 = require("./internal/space");
|
|
15
15
|
const space_2 = require("./space");
|
|
16
16
|
class Fuse extends Base_1.default {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
get space() {
|
|
18
|
+
if (this._space === undefined) {
|
|
19
|
+
this._space = new space_2.FuseSpace(this.options, this.axios);
|
|
20
|
+
}
|
|
21
|
+
return this._space;
|
|
22
|
+
}
|
|
23
|
+
get internal() {
|
|
24
|
+
if (this._internal === undefined) {
|
|
25
|
+
this._internal = new internal_1.FuseInternal(this.options, this.axios);
|
|
26
|
+
}
|
|
27
|
+
return this._internal;
|
|
28
|
+
}
|
|
29
|
+
get spaceInternal() {
|
|
30
|
+
if (this._spaceInternal === undefined) {
|
|
31
|
+
this._spaceInternal = new space_1.FuseSpaceInternal(this.options, this.axios);
|
|
32
|
+
}
|
|
33
|
+
return this._spaceInternal;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @returns Object containing the version as a string
|
|
37
|
+
*/
|
|
38
|
+
version() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
40
|
const resp = yield this.axios.get(this.getEndpoint("/v1/version"), {});
|
|
24
41
|
return resp.data;
|
|
25
42
|
});
|
|
26
|
-
this.space = new space_2.FuseSpace(this.options, this.axios);
|
|
27
|
-
this.spaceInternal = new space_1.FuseSpaceInternal(this.options, this.axios);
|
|
28
|
-
this.internal = new internal_1.FuseInternal(this.options, this.axios);
|
|
29
43
|
}
|
|
30
44
|
getEndpoint(endpoint) {
|
|
31
45
|
return `${this.options.server}/api/fuse${endpoint}`;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../Base";
|
|
1
|
+
import Base from "../../../Base";
|
|
3
2
|
import { FuseSpaceInternal } from "./space";
|
|
4
3
|
export declare class FuseInternal extends Base {
|
|
5
|
-
space: FuseSpaceInternal;
|
|
6
|
-
|
|
4
|
+
get space(): FuseSpaceInternal;
|
|
5
|
+
private _space?;
|
|
7
6
|
deleteUsers(userIds: string[]): Promise<void>;
|
|
8
7
|
protected getEndpoint(endpoint: string): string;
|
|
9
8
|
}
|
|
@@ -13,9 +13,11 @@ exports.FuseInternal = void 0;
|
|
|
13
13
|
const Base_1 = require("../../../Base");
|
|
14
14
|
const space_1 = require("./space");
|
|
15
15
|
class FuseInternal extends Base_1.default {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
get space() {
|
|
17
|
+
if (this._space === undefined) {
|
|
18
|
+
this._space = new space_1.FuseSpaceInternal(this.options, this.axios);
|
|
19
|
+
}
|
|
20
|
+
return this._space;
|
|
19
21
|
}
|
|
20
22
|
deleteUsers(userIds) {
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../../Base";
|
|
1
|
+
import Base from "../../../../../Base";
|
|
3
2
|
import { FuseCronjobLogInternal } from "./log";
|
|
4
3
|
export declare class FuseCronjobInternal extends Base {
|
|
5
|
-
cronjobLog: FuseCronjobLogInternal;
|
|
6
|
-
|
|
4
|
+
get cronjobLog(): FuseCronjobLogInternal;
|
|
5
|
+
private _cronjobLog?;
|
|
7
6
|
protected getEndpoint(endpoint: string): string;
|
|
8
7
|
}
|
|
@@ -4,9 +4,11 @@ exports.FuseCronjobInternal = void 0;
|
|
|
4
4
|
const Base_1 = require("../../../../../Base");
|
|
5
5
|
const log_1 = require("./log");
|
|
6
6
|
class FuseCronjobInternal extends Base_1.default {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
get cronjobLog() {
|
|
8
|
+
if (this._cronjobLog === undefined) {
|
|
9
|
+
this._cronjobLog = new log_1.FuseCronjobLogInternal(this.options, this.axios);
|
|
10
|
+
}
|
|
11
|
+
return this._cronjobLog;
|
|
10
12
|
}
|
|
11
13
|
getEndpoint(endpoint) {
|
|
12
14
|
return `${this.options.server}/api/fuse/internal${endpoint}`;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../../../Base";
|
|
1
|
+
import Base from "../../../../../../Base";
|
|
3
2
|
import { CronjobLogCreate, CronjobLogDto } from "../../../../../../interfaces/fuse/space/cronjob/CronjobLog";
|
|
4
3
|
export declare class FuseCronjobLogInternal extends Base {
|
|
5
|
-
constructor(options: Options, axios: AxiosInstance);
|
|
6
4
|
/**
|
|
7
5
|
* Creates a log for a cronjob.
|
|
8
6
|
*
|
|
@@ -12,6 +10,6 @@ export declare class FuseCronjobLogInternal extends Base {
|
|
|
12
10
|
* @param createCronjob Cronjob log to be created
|
|
13
11
|
* @returns the created cronjob log with metadata
|
|
14
12
|
*/
|
|
15
|
-
createCronjobLog
|
|
13
|
+
createCronjobLog(orgName: string, spaceName: string, cronjobId: string, log: CronjobLogCreate): Promise<CronjobLogDto>;
|
|
16
14
|
protected getEndpoint(endpoint: string): string;
|
|
17
15
|
}
|
|
@@ -12,18 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.FuseCronjobLogInternal = void 0;
|
|
13
13
|
const Base_1 = require("../../../../../../Base");
|
|
14
14
|
class FuseCronjobLogInternal extends Base_1.default {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
this.createCronjobLog = (orgName, spaceName, cronjobId, log) => __awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
/**
|
|
16
|
+
* Creates a log for a cronjob.
|
|
17
|
+
*
|
|
18
|
+
* THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT
|
|
19
|
+
* @param orgName Name of the organization
|
|
20
|
+
* @param spaceName Name of the Fuse space
|
|
21
|
+
* @param createCronjob Cronjob log to be created
|
|
22
|
+
* @returns the created cronjob log with metadata
|
|
23
|
+
*/
|
|
24
|
+
createCronjobLog(orgName, spaceName, cronjobId, log) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
26
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/jobs/${cronjobId}/logs}`), log);
|
|
28
27
|
return resp.data;
|
|
29
28
|
});
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../Base";
|
|
1
|
+
import Base from "../../../../Base";
|
|
3
2
|
import { FuseCronjobInternal } from "./cronjob";
|
|
4
3
|
export declare class FuseSpaceInternal extends Base {
|
|
5
|
-
cronjob: FuseCronjobInternal;
|
|
6
|
-
|
|
4
|
+
get cronjob(): FuseCronjobInternal;
|
|
5
|
+
private _cronjob?;
|
|
7
6
|
/**
|
|
8
7
|
* Deletes all spaces of an organization.
|
|
9
8
|
*
|
|
10
9
|
* THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT
|
|
11
10
|
* @param orgName Name of the organization
|
|
12
11
|
*/
|
|
13
|
-
deleteAllSpacesOfOrganization
|
|
12
|
+
deleteAllSpacesOfOrganization(orgName: string): Promise<void>;
|
|
14
13
|
/**
|
|
15
14
|
* Removes the user from all spaces of an organization.
|
|
16
15
|
*
|
|
@@ -18,6 +17,6 @@ export declare class FuseSpaceInternal extends Base {
|
|
|
18
17
|
* @param orgName Name of the organization
|
|
19
18
|
* @param userId ID of the user
|
|
20
19
|
*/
|
|
21
|
-
removeUserFromAllSpacesOfOrganization
|
|
20
|
+
removeUserFromAllSpacesOfOrganization(orgName: string, userId: string): Promise<void>;
|
|
22
21
|
protected getEndpoint(endpoint: string): string;
|
|
23
22
|
}
|
|
@@ -13,28 +13,34 @@ exports.FuseSpaceInternal = void 0;
|
|
|
13
13
|
const Base_1 = require("../../../../Base");
|
|
14
14
|
const cronjob_1 = require("./cronjob");
|
|
15
15
|
class FuseSpaceInternal extends Base_1.default {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
get cronjob() {
|
|
17
|
+
if (this._cronjob === undefined) {
|
|
18
|
+
this._cronjob = new cronjob_1.FuseCronjobInternal(this.options, this.axios);
|
|
19
|
+
}
|
|
20
|
+
return this._cronjob;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Deletes all spaces of an organization.
|
|
24
|
+
*
|
|
25
|
+
* THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT
|
|
26
|
+
* @param orgName Name of the organization
|
|
27
|
+
*/
|
|
28
|
+
deleteAllSpacesOfOrganization(orgName) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
30
|
yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}`));
|
|
26
31
|
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Removes the user from all spaces of an organization.
|
|
35
|
+
*
|
|
36
|
+
* THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT
|
|
37
|
+
* @param orgName Name of the organization
|
|
38
|
+
* @param userId ID of the user
|
|
39
|
+
*/
|
|
40
|
+
removeUserFromAllSpacesOfOrganization(orgName, userId) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
42
|
yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/user/${userId}`));
|
|
36
43
|
});
|
|
37
|
-
this.cronjob = new cronjob_1.FuseCronjobInternal(this.options, this.axios);
|
|
38
44
|
}
|
|
39
45
|
getEndpoint(endpoint) {
|
|
40
46
|
return `${this.options.server}/api/fuse/internal${endpoint}`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../Base";
|
|
1
|
+
import Base from "../../../../Base";
|
|
3
2
|
import { Cronjob, CronjobCreate } from "../../../../interfaces/fuse/space/cronjob/Cronjob";
|
|
4
3
|
import { PaginatedResponse, SearchParams } from "../../../../interfaces/global";
|
|
5
4
|
import { FuseCronjobLogInternal } from "../../internal/space/cronjob/log";
|
|
6
5
|
import { FuseCronjobLog } from "./log";
|
|
7
6
|
export declare class FuseCronjob extends Base {
|
|
8
|
-
cronjobLog: FuseCronjobLog;
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
get cronjobLog(): FuseCronjobLog;
|
|
8
|
+
private _cronjobLog?;
|
|
9
|
+
get cronjobLogInternal(): FuseCronjobLogInternal;
|
|
10
|
+
private _cronjobLogInternal?;
|
|
11
11
|
/**
|
|
12
12
|
* Retrieves a cronjob by it's ID.
|
|
13
13
|
* @param orgName Name of the organization
|
|
@@ -16,7 +16,7 @@ export declare class FuseCronjob extends Base {
|
|
|
16
16
|
* @param exposeNextExecution (optional) Show the next execution as a Unix timestamp (in milliseconds) in the response object
|
|
17
17
|
* @returns The requested cronjob
|
|
18
18
|
*/
|
|
19
|
-
getCronjob
|
|
19
|
+
getCronjob(orgName: string, spaceName: string, cronjobId: string, exposeNextExecution?: boolean): Promise<Cronjob>;
|
|
20
20
|
/**
|
|
21
21
|
* Retrieves the next n cronjob executions as Unix timestamps (in milliseconds).
|
|
22
22
|
* @param orgName Name of the organization
|
|
@@ -24,7 +24,7 @@ export declare class FuseCronjob extends Base {
|
|
|
24
24
|
* @param cronjobId ID of the cronjob
|
|
25
25
|
* @returns Array of Unix timestamps
|
|
26
26
|
*/
|
|
27
|
-
getNextCronjobExecutions
|
|
27
|
+
getNextCronjobExecutions(orgName: string, spaceName: string, cronjobId: string): Promise<number[]>;
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new cronjob in the specified Fuse space.
|
|
30
30
|
* @param orgName Name of the organisation
|
|
@@ -33,7 +33,7 @@ export declare class FuseCronjob extends Base {
|
|
|
33
33
|
* @param exposeNextExecution (optional) Show the next execution as a Unix timestamp (in milliseconds) in the response object
|
|
34
34
|
* @returns Created cronjob
|
|
35
35
|
*/
|
|
36
|
-
createCronjob
|
|
36
|
+
createCronjob(orgName: string, spaceName: string, createCronjob: CronjobCreate, exposeNextExecution?: boolean): Promise<Cronjob>;
|
|
37
37
|
/**
|
|
38
38
|
* Updates an existing cronjob.
|
|
39
39
|
* @param orgName Name of the organization
|
|
@@ -43,7 +43,7 @@ export declare class FuseCronjob extends Base {
|
|
|
43
43
|
* @param exposeNextExecution (optional) Show the next execution as a Unix timestamp (in milliseconds) in the response object
|
|
44
44
|
* @returns Updated cronjob
|
|
45
45
|
*/
|
|
46
|
-
updateCronjob
|
|
46
|
+
updateCronjob(orgName: string, spaceName: string, cronjobId: string, createCronjob: CronjobCreate, exposeNextExecution?: boolean): Promise<Cronjob>;
|
|
47
47
|
/**
|
|
48
48
|
* Change the cron expression of an existing cronjob
|
|
49
49
|
* @param orgName Name of the organization
|
|
@@ -53,7 +53,7 @@ export declare class FuseCronjob extends Base {
|
|
|
53
53
|
* @param exposeNextExecution (optional) Show the next execution as a Unix timestamp (in milliseconds) in the response object
|
|
54
54
|
* @returns The patched cronjob
|
|
55
55
|
*/
|
|
56
|
-
patchCronjobExpression
|
|
56
|
+
patchCronjobExpression(orgName: string, spaceName: string, cronjobId: string, expression: string, exposeNextExecution?: boolean): Promise<Cronjob>;
|
|
57
57
|
/**
|
|
58
58
|
* Change the enabled flag of an existing cronjob
|
|
59
59
|
* @param orgName Name of the organization
|
|
@@ -63,7 +63,7 @@ export declare class FuseCronjob extends Base {
|
|
|
63
63
|
* @param exposeNextExecution (optional) Show the next execution as a Unix timestamp (in milliseconds) in the response object
|
|
64
64
|
* @returns The patched cronjob
|
|
65
65
|
*/
|
|
66
|
-
patchCronjobEnabled
|
|
66
|
+
patchCronjobEnabled(orgName: string, spaceName: string, cronjobId: string, enabled: boolean, exposeNextExecution?: boolean): Promise<Cronjob>;
|
|
67
67
|
/**
|
|
68
68
|
* Enable a cronjob.
|
|
69
69
|
*
|
|
@@ -94,7 +94,7 @@ export declare class FuseCronjob extends Base {
|
|
|
94
94
|
* @param spaceName Name of the space
|
|
95
95
|
* @param cronjobId ID of the cronjob
|
|
96
96
|
*/
|
|
97
|
-
deleteCronjob
|
|
97
|
+
deleteCronjob(orgName: string, spaceName: string, cronjobId: string): Promise<void>;
|
|
98
98
|
/**
|
|
99
99
|
* Retrieves all cronjobs of a Fuse space which match the provided search filter(s). Will return all cronjobs if no filter is provided.
|
|
100
100
|
* @param orgName Name of the organization
|
|
@@ -106,11 +106,11 @@ export declare class FuseCronjob extends Base {
|
|
|
106
106
|
* @param exposeNextExecution (optional) Show the next execution as a Unix timestamp (in milliseconds) in the returned cronjob objects
|
|
107
107
|
* @returns Object containing an array of filtered cronjobs as well as the total number of results found in the database (independent of limit and page)
|
|
108
108
|
*/
|
|
109
|
-
searchCronjobs
|
|
109
|
+
searchCronjobs({ orgName, spaceName, filters, sorting, limit, page, exposeNextExecution, }: SearchParams & {
|
|
110
110
|
orgName: string;
|
|
111
111
|
spaceName: string;
|
|
112
112
|
exposeNextExecution?: boolean;
|
|
113
|
-
})
|
|
113
|
+
}): Promise<PaginatedResponse<Cronjob>>;
|
|
114
114
|
/**
|
|
115
115
|
* Resolve a cron pattern along with a timezone to get the next executions in mili-seconds.
|
|
116
116
|
* @param expression The cron expression
|
|
@@ -118,6 +118,6 @@ export declare class FuseCronjob extends Base {
|
|
|
118
118
|
* @param amount The amount of returned execution-dates (limited between 1 and 10, default is 3)
|
|
119
119
|
* @returns Array of Unix timestamps
|
|
120
120
|
*/
|
|
121
|
-
resolveCronPatternWithTimezone
|
|
121
|
+
resolveCronPatternWithTimezone(expression: string, timezone: string, amount?: number): Promise<number[]>;
|
|
122
122
|
protected getEndpoint(endpoint: string): string;
|
|
123
123
|
}
|