hcloud-sdk 0.0.16 → 14.13.2
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/README.md +1 -0
- package/changelog.md +809 -0
- package/index.d.ts +3 -2
- package/index.js +5 -2
- package/lib/Base.d.ts +26 -0
- package/lib/Base.js +12 -0
- package/lib/Hcloud.d.ts +80 -0
- package/lib/Hcloud.js +134 -0
- package/lib/helper/ErrorHelper.d.ts +7 -0
- package/lib/helper/ErrorHelper.js +19 -0
- package/lib/helper/paginatedResponseHelper.d.ts +3 -0
- package/lib/helper/paginatedResponseHelper.js +9 -0
- package/lib/helper/searchFilter.d.ts +9 -0
- package/lib/helper/searchFilter.js +12 -0
- package/lib/interfaces/agent/bundle/dev/index.d.ts +3 -0
- package/lib/interfaces/agent/context/index.d.ts +19 -0
- package/lib/interfaces/agent/index.d.ts +21 -0
- package/lib/interfaces/agent/index.js +2 -0
- package/lib/interfaces/{Auditor.d.ts → auditor/index.d.ts} +31 -5
- package/lib/interfaces/{Auditor.js → auditor/index.js} +15 -5
- package/lib/interfaces/axios/index.d.ts +5 -0
- package/lib/interfaces/axios/index.js +8 -0
- package/lib/interfaces/bouncer/features/index.d.ts +10 -0
- package/lib/interfaces/bouncer/features/index.js +2 -0
- package/lib/interfaces/bouncer/index.d.ts +6 -0
- package/lib/interfaces/bouncer/index.js +17 -0
- package/lib/interfaces/dali/index.d.ts +3 -0
- package/lib/interfaces/dali/index.js +2 -0
- package/lib/interfaces/frontend/config/index.d.ts +33 -0
- package/lib/interfaces/frontend/config/index.js +10 -0
- package/lib/interfaces/fuse/index.d.ts +3 -0
- package/lib/interfaces/fuse/index.js +19 -0
- package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +38 -0
- package/lib/interfaces/fuse/space/cronjob/Cronjob.js +8 -0
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.d.ts +16 -0
- package/lib/interfaces/fuse/space/cronjob/CronjobLog.js +2 -0
- package/lib/interfaces/fuse/space/index.d.ts +21 -0
- package/lib/interfaces/fuse/space/index.js +11 -0
- package/lib/interfaces/global/HCloudError.d.ts +8 -0
- package/lib/interfaces/global/HCloudError.js +13 -0
- package/lib/interfaces/global/Header.d.ts +4 -0
- package/lib/interfaces/global/Header.js +2 -0
- package/lib/interfaces/global/HttpMethod.d.ts +7 -0
- package/lib/interfaces/global/HttpMethod.js +11 -0
- package/lib/interfaces/global/PaginatedResponse.d.ts +4 -0
- package/lib/interfaces/global/PaginatedResponse.js +2 -0
- package/lib/interfaces/global/Products.d.ts +11 -0
- package/lib/interfaces/global/Products.js +15 -0
- package/lib/interfaces/global/SearchFilters.d.ts +86 -0
- package/lib/interfaces/global/SearchFilters.js +49 -0
- package/lib/interfaces/global/Space.d.ts +20 -0
- package/lib/interfaces/global/Space.js +8 -0
- package/lib/interfaces/global/Version.d.ts +3 -0
- package/lib/interfaces/global/Version.js +2 -0
- package/lib/interfaces/global/Views.d.ts +8 -0
- package/lib/interfaces/global/Views.js +12 -0
- package/lib/interfaces/global/index.d.ts +9 -0
- package/lib/interfaces/global/index.js +25 -0
- package/lib/interfaces/high5/index.d.ts +16 -0
- package/lib/interfaces/high5/index.js +32 -0
- package/lib/interfaces/high5/joinToken/index.d.ts +10 -0
- package/lib/interfaces/high5/joinToken/index.js +2 -0
- package/lib/interfaces/high5/space/event/index.d.ts +15 -0
- package/lib/interfaces/high5/space/event/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/DesignOperation.d.ts +68 -0
- package/lib/interfaces/high5/space/event/stream/design/DesignOperation.js +20 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +92 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.js +20 -0
- package/lib/interfaces/high5/space/event/stream/design/index.d.ts +22 -0
- package/lib/interfaces/high5/space/event/stream/design/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/snapshot/index.d.ts +30 -0
- package/lib/interfaces/high5/space/event/stream/design/snapshot/index.js +8 -0
- package/lib/interfaces/high5/space/event/stream/index.d.ts +77 -0
- package/lib/interfaces/high5/space/event/stream/index.js +13 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +60 -0
- package/lib/interfaces/high5/space/event/stream/node/index.js +7 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +137 -0
- package/lib/interfaces/high5/space/execution/index.js +21 -0
- package/lib/interfaces/high5/space/index.d.ts +23 -0
- package/lib/interfaces/high5/space/index.js +12 -0
- package/lib/interfaces/high5/space/secret/index.d.ts +12 -0
- package/lib/interfaces/high5/space/secret/index.js +2 -0
- package/lib/interfaces/high5/space/webhook/index.d.ts +75 -0
- package/lib/interfaces/high5/space/webhook/index.js +9 -0
- package/lib/interfaces/high5/wave/index.d.ts +171 -0
- package/lib/interfaces/high5/wave/index.js +52 -0
- package/lib/interfaces/idp/index.d.ts +26 -0
- package/lib/interfaces/idp/index.js +38 -0
- package/lib/interfaces/idp/oauth/index.d.ts +19 -0
- package/lib/interfaces/idp/oauth/index.js +8 -0
- package/lib/interfaces/idp/organization/index.d.ts +32 -0
- package/lib/interfaces/idp/organization/index.js +25 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +84 -0
- package/lib/interfaces/idp/organization/license/index.js +15 -0
- package/lib/interfaces/idp/organization/member/index.d.ts +15 -0
- package/lib/interfaces/idp/organization/member/index.js +2 -0
- package/lib/interfaces/idp/organization/member/invitations/index.d.ts +26 -0
- package/lib/interfaces/idp/organization/member/invitations/index.js +18 -0
- package/lib/interfaces/idp/organization/settings/domain/index.d.ts +19 -0
- package/lib/interfaces/idp/organization/settings/domain/index.js +8 -0
- package/lib/interfaces/idp/organization/settings/domain/saml/index.d.ts +10 -0
- package/lib/interfaces/idp/organization/settings/domain/saml/index.js +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +37 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.js +2 -0
- package/lib/interfaces/idp/organization/team/index.d.ts +24 -0
- package/lib/interfaces/idp/organization/team/index.js +9 -0
- package/lib/interfaces/idp/user/ConnectionSettings.d.ts +6 -0
- package/lib/interfaces/idp/user/ConnectionSettings.js +2 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +44 -0
- package/lib/interfaces/idp/user/GeneralSettings.js +38 -0
- package/lib/interfaces/idp/user/NotificationSettings.d.ts +8 -0
- package/lib/interfaces/idp/user/NotificationSettings.js +2 -0
- package/lib/interfaces/idp/user/Pat.d.ts +19 -0
- package/lib/interfaces/idp/user/Pat.js +2 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +40 -0
- package/lib/interfaces/idp/user/Scopes.js +50 -0
- package/lib/interfaces/idp/user/SuccessfulAuth.d.ts +5 -0
- package/lib/interfaces/idp/user/SuccessfulAuth.js +2 -0
- package/lib/interfaces/idp/user/Totp.d.ts +20 -0
- package/lib/interfaces/idp/user/Totp.js +2 -0
- package/lib/interfaces/idp/user/index.d.ts +23 -0
- package/lib/interfaces/idp/user/index.js +2 -0
- package/lib/interfaces/mailer/index.d.ts +66 -0
- package/lib/interfaces/mailer/index.js +81 -0
- package/lib/interfaces/mothership/index.d.ts +27 -0
- package/lib/interfaces/mothership/index.js +8 -0
- package/lib/interfaces/nats/index.d.ts +252 -0
- package/lib/interfaces/nats/index.js +334 -0
- package/lib/service/agent/bundle/dev/index.d.ts +17 -0
- package/lib/service/agent/bundle/dev/index.js +40 -0
- package/lib/service/agent/bundle/index.d.ts +11 -0
- package/lib/service/agent/bundle/index.js +55 -0
- package/lib/service/agent/context/index.d.ts +37 -0
- package/lib/service/agent/context/index.js +81 -0
- package/lib/service/agent/index.d.ts +14 -0
- package/lib/service/agent/index.js +20 -0
- package/lib/service/agent/installer/index.d.ts +15 -0
- package/lib/service/agent/installer/index.js +97 -0
- package/lib/service/auditor/index.d.ts +26 -0
- package/lib/service/auditor/index.js +49 -0
- package/lib/service/auditor/internal/index.d.ts +27 -0
- package/lib/service/{AuditorInternal.js → auditor/internal/index.js} +20 -24
- package/lib/service/bouncer/features/index.d.ts +8 -0
- package/lib/service/bouncer/features/index.js +25 -0
- package/lib/service/bouncer/index.d.ts +14 -0
- package/lib/service/bouncer/index.js +31 -0
- package/lib/service/dali/DaliAvatar.d.ts +36 -0
- package/lib/service/dali/DaliAvatar.js +25 -0
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +28 -0
- package/lib/service/dali/avatar/DaliFuseSpace.js +55 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +28 -0
- package/lib/service/dali/avatar/DaliHigh5Space.js +55 -0
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +28 -0
- package/lib/service/dali/avatar/DaliOAuthApp.js +55 -0
- package/lib/service/dali/avatar/DaliOrganization.d.ts +25 -0
- package/lib/service/dali/avatar/DaliOrganization.js +52 -0
- package/lib/service/dali/avatar/DaliTeam.d.ts +28 -0
- package/lib/service/dali/avatar/DaliTeam.js +55 -0
- package/lib/service/dali/avatar/DaliUser.d.ts +22 -0
- package/lib/service/dali/avatar/DaliUser.js +49 -0
- package/lib/service/dali/index.d.ts +16 -0
- package/lib/service/dali/index.js +30 -0
- package/lib/service/fuse/index.d.ts +17 -0
- package/lib/service/fuse/index.js +34 -0
- package/lib/service/fuse/internal/index.d.ts +9 -0
- package/lib/service/fuse/internal/index.js +29 -0
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +8 -0
- package/lib/service/fuse/internal/space/cronjob/index.js +15 -0
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +17 -0
- package/lib/service/fuse/internal/space/cronjob/log/index.js +35 -0
- package/lib/service/fuse/internal/space/index.d.ts +23 -0
- package/lib/service/fuse/internal/space/index.js +43 -0
- package/lib/service/fuse/space/cronjob/index.d.ts +123 -0
- package/lib/service/fuse/space/cronjob/index.js +175 -0
- package/lib/service/fuse/space/cronjob/log/index.d.ts +31 -0
- package/lib/service/fuse/space/cronjob/log/index.js +57 -0
- package/lib/service/fuse/space/index.d.ts +82 -0
- package/lib/service/fuse/space/index.js +134 -0
- package/lib/service/high5/execution/index.d.ts +10 -0
- package/lib/service/high5/execution/index.js +17 -0
- package/lib/service/high5/execution/log/index.d.ts +19 -0
- package/lib/service/high5/execution/log/index.js +41 -0
- package/lib/service/high5/execution/status/index.d.ts +18 -0
- package/lib/service/high5/execution/status/index.js +41 -0
- package/lib/service/high5/index.d.ts +22 -0
- package/lib/service/high5/index.js +39 -0
- package/lib/service/high5/internal/index.d.ts +9 -0
- package/lib/service/high5/internal/index.js +29 -0
- package/lib/service/high5/internal/space/index.d.ts +21 -0
- package/lib/service/high5/internal/space/index.js +41 -0
- package/lib/service/high5/joinToken/index.d.ts +40 -0
- package/lib/service/high5/joinToken/index.js +64 -0
- package/lib/service/high5/space/event/index.d.ts +56 -0
- package/lib/service/high5/space/event/index.js +89 -0
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +31 -0
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +117 -0
- package/lib/service/high5/space/event/stream/design/index.d.ts +38 -0
- package/lib/service/high5/space/event/stream/design/index.js +56 -0
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +62 -0
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +100 -0
- package/lib/service/high5/space/event/stream/index.d.ts +114 -0
- package/lib/service/high5/space/event/stream/index.js +164 -0
- package/lib/service/high5/space/execution/index.d.ts +48 -0
- package/lib/service/high5/space/execution/index.js +74 -0
- package/lib/service/high5/space/execution/log/index.d.ts +31 -0
- package/lib/service/high5/space/execution/log/index.js +57 -0
- package/lib/service/high5/space/execution/status/index.d.ts +16 -0
- package/lib/service/high5/space/execution/status/index.js +34 -0
- package/lib/service/high5/space/index.d.ts +107 -0
- package/lib/service/high5/space/index.js +160 -0
- package/lib/service/high5/space/node/index.d.ts +58 -0
- package/lib/service/high5/space/node/index.js +116 -0
- package/lib/service/high5/space/secret/index.d.ts +60 -0
- package/lib/service/high5/space/secret/index.js +92 -0
- package/lib/service/high5/space/wave/index.d.ts +38 -0
- package/lib/service/high5/space/wave/index.js +66 -0
- package/lib/service/high5/space/webhook/index.d.ts +83 -0
- package/lib/service/high5/space/webhook/index.js +132 -0
- package/lib/service/high5/space/webhook/log/index.d.ts +18 -0
- package/lib/service/high5/space/webhook/log/index.js +38 -0
- package/lib/service/high5/wave/index.d.ts +8 -0
- package/lib/service/high5/wave/index.js +15 -0
- package/lib/service/high5/wave/s3/index.d.ts +48 -0
- package/lib/service/high5/wave/s3/index.js +88 -0
- package/lib/service/idp/index.d.ts +82 -0
- package/lib/service/idp/index.js +137 -0
- package/lib/service/idp/internal/index.d.ts +19 -0
- package/lib/service/idp/internal/index.js +34 -0
- package/lib/service/idp/oauth/index.d.ts +45 -0
- package/lib/service/idp/oauth/index.js +105 -0
- package/lib/service/idp/organization/index.d.ts +54 -0
- package/lib/service/idp/organization/index.js +79 -0
- package/lib/service/idp/organization/license/index.d.ts +7 -0
- package/lib/service/idp/organization/license/index.js +30 -0
- package/lib/service/idp/organization/member/index.d.ts +58 -0
- package/lib/service/idp/organization/member/index.js +96 -0
- package/lib/service/idp/organization/member/invitations/index.d.ts +79 -0
- package/lib/service/idp/organization/member/invitations/index.js +118 -0
- package/lib/service/idp/organization/settings/domain/index.d.ts +38 -0
- package/lib/service/idp/organization/settings/domain/index.js +63 -0
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +43 -0
- package/lib/service/idp/organization/settings/domain/saml/index.js +88 -0
- package/lib/service/idp/organization/settings/index.d.ts +16 -0
- package/lib/service/idp/organization/settings/index.js +16 -0
- package/lib/service/idp/organization/settings/oauth/index.d.ts +64 -0
- package/lib/service/idp/organization/settings/oauth/index.js +106 -0
- package/lib/service/idp/organization/team/index.d.ts +72 -0
- package/lib/service/idp/organization/team/index.js +115 -0
- package/lib/service/idp/registration/index.d.ts +39 -0
- package/lib/service/idp/registration/index.js +84 -0
- package/lib/service/idp/user/index.d.ts +82 -0
- package/lib/service/idp/user/index.js +125 -0
- package/lib/service/idp/user/license/index.d.ts +7 -0
- package/lib/service/idp/user/license/index.js +30 -0
- package/lib/service/idp/user/password/index.d.ts +19 -0
- package/lib/service/idp/user/password/index.js +52 -0
- package/lib/service/idp/user/settings/connections/index.d.ts +15 -0
- package/lib/service/idp/user/settings/connections/index.js +33 -0
- package/lib/service/idp/user/settings/general/index.d.ts +18 -0
- package/lib/service/idp/user/settings/general/index.js +39 -0
- package/lib/service/idp/user/settings/index.d.ts +36 -0
- package/lib/service/idp/user/settings/index.js +25 -0
- package/lib/service/idp/user/settings/notifications/index.d.ts +18 -0
- package/lib/service/idp/user/settings/notifications/index.js +39 -0
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +22 -0
- package/lib/service/idp/user/settings/oauthApps/index.js +54 -0
- package/lib/service/idp/user/settings/pats/index.d.ts +50 -0
- package/lib/service/idp/user/settings/pats/index.js +93 -0
- package/lib/service/idp/user/settings/twoFactor/index.d.ts +11 -0
- package/lib/service/idp/user/settings/twoFactor/index.js +15 -0
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +34 -0
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +65 -0
- package/lib/service/mailer/index.d.ts +14 -0
- package/lib/service/{Mailer.js → mailer/index.js} +9 -12
- package/lib/service/mailer/internal/index.d.ts +36 -0
- package/lib/service/mailer/internal/index.js +64 -0
- package/lib/service/mothership/index.d.ts +97 -0
- package/lib/service/mothership/index.js +136 -0
- package/lib/service/nats/index.d.ts +51 -0
- package/lib/service/nats/index.js +138 -0
- package/lib/utils/Types.d.ts +1 -0
- package/lib/utils/Types.js +2 -0
- package/lib/utils/bouncer/features/Provider.d.ts +16 -0
- package/lib/utils/bouncer/features/Provider.js +83 -0
- package/package.json +37 -29
- package/lib/base.d.ts +0 -12
- package/lib/base.js +0 -8
- package/lib/hcloud.d.ts +0 -13
- package/lib/hcloud.js +0 -29
- package/lib/interfaces/Global.d.ts +0 -8
- package/lib/interfaces/IDP.d.ts +0 -9
- package/lib/interfaces/Mail.d.ts +0 -29
- package/lib/interfaces/Mail.js +0 -8
- package/lib/service/Auditor.d.ts +0 -22
- package/lib/service/Auditor.js +0 -61
- package/lib/service/AuditorInternal.d.ts +0 -28
- package/lib/service/High5.d.ts +0 -4
- package/lib/service/High5.js +0 -9
- package/lib/service/IDP.d.ts +0 -39
- package/lib/service/IDP.js +0 -84
- package/lib/service/Mailer.d.ts +0 -13
- package/lib/service/MailerInternal.d.ts +0 -32
- package/lib/service/MailerInternal.js +0 -64
- /package/lib/interfaces/{Global.js → agent/bundle/dev/index.js} +0 -0
- /package/lib/interfaces/{IDP.js → agent/context/index.js} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReducedUser } from ".";
|
|
2
|
+
import { Views } from "../../global/Views";
|
|
3
|
+
export declare enum Language {
|
|
4
|
+
ENGLISH = "en",
|
|
5
|
+
GERMAN = "de"
|
|
6
|
+
}
|
|
7
|
+
export declare enum DateFormat {
|
|
8
|
+
ISO_8601_24 = "YYYY-MM-DDTHH:mm:ss",
|
|
9
|
+
ISO_8601_12 = "YYYY-MM-DD hh:mm:ss a",
|
|
10
|
+
US_12 = "MM/DD/YYYY hh:mm:ss a",
|
|
11
|
+
EU_24 = "DD/MM/YYYY HH:mm:ss",
|
|
12
|
+
GERMAN_24 = "DD.MM.YYYY HH:mm:ss"
|
|
13
|
+
}
|
|
14
|
+
export declare enum DateFormatWithoutTime {
|
|
15
|
+
ISO_8601_24 = "YYYY-MM-DD",
|
|
16
|
+
ISO_8601_12 = "YYYY-MM-DD",// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
|
|
17
|
+
US_12 = "MM/DD/YYYY",
|
|
18
|
+
EU_24 = "DD/MM/YYYY",
|
|
19
|
+
GERMAN_24 = "DD.MM.YYYY"
|
|
20
|
+
}
|
|
21
|
+
export declare enum Theme {
|
|
22
|
+
DARK = "DARK",
|
|
23
|
+
LIGHT = "LIGHT",
|
|
24
|
+
SYSTEM_DEFAULT = "SYSTEM_DEFAULT",
|
|
25
|
+
HIGH_CONTRAST = "HIGH_CONTRAST"
|
|
26
|
+
}
|
|
27
|
+
export declare enum Entrypoint {
|
|
28
|
+
DEFAULT = "DEFAULT",
|
|
29
|
+
HIGH5 = "HIGH5",
|
|
30
|
+
FUSE = "FUSE",
|
|
31
|
+
LAST_VISITED = "LAST_VISITED"
|
|
32
|
+
}
|
|
33
|
+
export interface GeneralSettings {
|
|
34
|
+
_id: string;
|
|
35
|
+
user: ReducedUser;
|
|
36
|
+
lastUrl: string;
|
|
37
|
+
lastView: Views;
|
|
38
|
+
timezone: string;
|
|
39
|
+
language: Language;
|
|
40
|
+
dateFormat: DateFormat;
|
|
41
|
+
theme: Theme;
|
|
42
|
+
entrypoint: Entrypoint;
|
|
43
|
+
}
|
|
44
|
+
export type GeneralSettingsPatch = Partial<Omit<GeneralSettings, "_id" | "user">>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Entrypoint = exports.Theme = exports.DateFormatWithoutTime = exports.DateFormat = exports.Language = void 0;
|
|
4
|
+
var Language;
|
|
5
|
+
(function (Language) {
|
|
6
|
+
Language["ENGLISH"] = "en";
|
|
7
|
+
Language["GERMAN"] = "de";
|
|
8
|
+
})(Language || (exports.Language = Language = {}));
|
|
9
|
+
var DateFormat;
|
|
10
|
+
(function (DateFormat) {
|
|
11
|
+
DateFormat["ISO_8601_24"] = "YYYY-MM-DDTHH:mm:ss";
|
|
12
|
+
DateFormat["ISO_8601_12"] = "YYYY-MM-DD hh:mm:ss a";
|
|
13
|
+
DateFormat["US_12"] = "MM/DD/YYYY hh:mm:ss a";
|
|
14
|
+
DateFormat["EU_24"] = "DD/MM/YYYY HH:mm:ss";
|
|
15
|
+
DateFormat["GERMAN_24"] = "DD.MM.YYYY HH:mm:ss";
|
|
16
|
+
})(DateFormat || (exports.DateFormat = DateFormat = {}));
|
|
17
|
+
var DateFormatWithoutTime;
|
|
18
|
+
(function (DateFormatWithoutTime) {
|
|
19
|
+
DateFormatWithoutTime["ISO_8601_24"] = "YYYY-MM-DD";
|
|
20
|
+
DateFormatWithoutTime["ISO_8601_12"] = "YYYY-MM-DD";
|
|
21
|
+
DateFormatWithoutTime["US_12"] = "MM/DD/YYYY";
|
|
22
|
+
DateFormatWithoutTime["EU_24"] = "DD/MM/YYYY";
|
|
23
|
+
DateFormatWithoutTime["GERMAN_24"] = "DD.MM.YYYY";
|
|
24
|
+
})(DateFormatWithoutTime || (exports.DateFormatWithoutTime = DateFormatWithoutTime = {}));
|
|
25
|
+
var Theme;
|
|
26
|
+
(function (Theme) {
|
|
27
|
+
Theme["DARK"] = "DARK";
|
|
28
|
+
Theme["LIGHT"] = "LIGHT";
|
|
29
|
+
Theme["SYSTEM_DEFAULT"] = "SYSTEM_DEFAULT";
|
|
30
|
+
Theme["HIGH_CONTRAST"] = "HIGH_CONTRAST";
|
|
31
|
+
})(Theme || (exports.Theme = Theme = {}));
|
|
32
|
+
var Entrypoint;
|
|
33
|
+
(function (Entrypoint) {
|
|
34
|
+
Entrypoint["DEFAULT"] = "DEFAULT";
|
|
35
|
+
Entrypoint["HIGH5"] = "HIGH5";
|
|
36
|
+
Entrypoint["FUSE"] = "FUSE";
|
|
37
|
+
Entrypoint["LAST_VISITED"] = "LAST_VISITED";
|
|
38
|
+
})(Entrypoint || (exports.Entrypoint = Entrypoint = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReducedUser } from ".";
|
|
2
|
+
export interface NotificationSettings {
|
|
3
|
+
_id: string;
|
|
4
|
+
user: ReducedUser;
|
|
5
|
+
organizationInvitationEmail: boolean;
|
|
6
|
+
systemNotifications: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type NotificationSettingsPatch = Partial<Omit<NotificationSettings, "_id" | "user">>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReducedUser } from ".";
|
|
2
|
+
import { Scope } from "./Scopes";
|
|
3
|
+
export interface Pat {
|
|
4
|
+
_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
expiration?: number;
|
|
7
|
+
scopes: Scope[];
|
|
8
|
+
user: ReducedUser;
|
|
9
|
+
token: string;
|
|
10
|
+
jwt: string;
|
|
11
|
+
modifyDate: number;
|
|
12
|
+
}
|
|
13
|
+
export interface PatCreate {
|
|
14
|
+
name: string;
|
|
15
|
+
expiration?: number;
|
|
16
|
+
scopes: Scope[];
|
|
17
|
+
token?: string;
|
|
18
|
+
}
|
|
19
|
+
export type PatUpdate = Partial<PatCreate>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare enum Scope {
|
|
2
|
+
HCLOUD_FULL = "hcloud:full",
|
|
3
|
+
IDP_EMAIL_READ = "idp:email:read",
|
|
4
|
+
IDP_USER_READ = "idp:user:read",
|
|
5
|
+
IDP_USER_WRITE = "idp:user:write",
|
|
6
|
+
IDP_USER_DELETE = "idp:user:delete",
|
|
7
|
+
IDP_USER_OPEN_ID = "openid",// This is a special scope for OpenID Connect in the OAuth flow
|
|
8
|
+
IDP_ORGANIZATION_READ = "idp:organization:read",
|
|
9
|
+
IDP_ORGANIZATION_WRITE = "idp:organization:write",
|
|
10
|
+
IDP_ORGANIZATION_DELETE = "idp:organization:delete",
|
|
11
|
+
IDP_ORGANIZATION_ADMIN = "idp:organization:admin",
|
|
12
|
+
HIGH5_SPACE_READ = "high5:space:read",
|
|
13
|
+
HIGH5_SPACE_EXECUTE = "high5:space:execute",
|
|
14
|
+
HIGH5_SPACE_WRITE = "high5:space:write",
|
|
15
|
+
HIGH5_SPACE_DELETE = "high5:space:delete",
|
|
16
|
+
FUSE_SPACE_READ = "fuse:space:read",
|
|
17
|
+
FUSE_SPACE_EXECUTE = "fuse:space:execute",
|
|
18
|
+
FUSE_SPACE_WRITE = "fuse:space:write",
|
|
19
|
+
FUSE_SPACE_DELETE = "fuse:space:delete"
|
|
20
|
+
}
|
|
21
|
+
export declare const ScopeDependencies: {
|
|
22
|
+
"hcloud:full": (Scope.IDP_EMAIL_READ | Scope.IDP_USER_READ | Scope.IDP_USER_WRITE | Scope.IDP_USER_DELETE | Scope.IDP_USER_OPEN_ID | Scope.IDP_ORGANIZATION_READ | Scope.IDP_ORGANIZATION_WRITE | Scope.IDP_ORGANIZATION_DELETE | Scope.IDP_ORGANIZATION_ADMIN | Scope.HIGH5_SPACE_READ | Scope.HIGH5_SPACE_EXECUTE | Scope.HIGH5_SPACE_WRITE | Scope.HIGH5_SPACE_DELETE | Scope.FUSE_SPACE_READ | Scope.FUSE_SPACE_EXECUTE | Scope.FUSE_SPACE_WRITE | Scope.FUSE_SPACE_DELETE)[];
|
|
23
|
+
"idp:email:read": never[];
|
|
24
|
+
"idp:user:read": never[];
|
|
25
|
+
"idp:user:write": Scope[];
|
|
26
|
+
"idp:user:delete": Scope[];
|
|
27
|
+
openid: Scope[];
|
|
28
|
+
"idp:organization:read": Scope[];
|
|
29
|
+
"idp:organization:write": Scope[];
|
|
30
|
+
"idp:organization:delete": Scope[];
|
|
31
|
+
"idp:organization:admin": Scope[];
|
|
32
|
+
"high5:space:read": Scope[];
|
|
33
|
+
"high5:space:execute": Scope[];
|
|
34
|
+
"high5:space:write": Scope[];
|
|
35
|
+
"high5:space:delete": Scope[];
|
|
36
|
+
"fuse:space:read": Scope[];
|
|
37
|
+
"fuse:space:execute": never[];
|
|
38
|
+
"fuse:space:write": Scope[];
|
|
39
|
+
"fuse:space:delete": Scope[];
|
|
40
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScopeDependencies = exports.Scope = void 0;
|
|
4
|
+
var Scope;
|
|
5
|
+
(function (Scope) {
|
|
6
|
+
Scope["HCLOUD_FULL"] = "hcloud:full";
|
|
7
|
+
Scope["IDP_EMAIL_READ"] = "idp:email:read";
|
|
8
|
+
Scope["IDP_USER_READ"] = "idp:user:read";
|
|
9
|
+
Scope["IDP_USER_WRITE"] = "idp:user:write";
|
|
10
|
+
Scope["IDP_USER_DELETE"] = "idp:user:delete";
|
|
11
|
+
Scope["IDP_USER_OPEN_ID"] = "openid";
|
|
12
|
+
Scope["IDP_ORGANIZATION_READ"] = "idp:organization:read";
|
|
13
|
+
Scope["IDP_ORGANIZATION_WRITE"] = "idp:organization:write";
|
|
14
|
+
Scope["IDP_ORGANIZATION_DELETE"] = "idp:organization:delete";
|
|
15
|
+
Scope["IDP_ORGANIZATION_ADMIN"] = "idp:organization:admin";
|
|
16
|
+
Scope["HIGH5_SPACE_READ"] = "high5:space:read";
|
|
17
|
+
Scope["HIGH5_SPACE_EXECUTE"] = "high5:space:execute";
|
|
18
|
+
Scope["HIGH5_SPACE_WRITE"] = "high5:space:write";
|
|
19
|
+
Scope["HIGH5_SPACE_DELETE"] = "high5:space:delete";
|
|
20
|
+
Scope["FUSE_SPACE_READ"] = "fuse:space:read";
|
|
21
|
+
Scope["FUSE_SPACE_EXECUTE"] = "fuse:space:execute";
|
|
22
|
+
Scope["FUSE_SPACE_WRITE"] = "fuse:space:write";
|
|
23
|
+
Scope["FUSE_SPACE_DELETE"] = "fuse:space:delete";
|
|
24
|
+
})(Scope || (exports.Scope = Scope = {}));
|
|
25
|
+
exports.ScopeDependencies = {
|
|
26
|
+
[Scope.HCLOUD_FULL]: [...Object.values(Scope).filter(s => s !== Scope.HCLOUD_FULL)],
|
|
27
|
+
[Scope.IDP_EMAIL_READ]: [],
|
|
28
|
+
[Scope.IDP_USER_READ]: [],
|
|
29
|
+
[Scope.IDP_USER_WRITE]: [Scope.IDP_USER_READ],
|
|
30
|
+
[Scope.IDP_USER_DELETE]: [Scope.IDP_USER_READ, Scope.IDP_USER_WRITE],
|
|
31
|
+
[Scope.IDP_USER_OPEN_ID]: [Scope.IDP_EMAIL_READ],
|
|
32
|
+
[Scope.IDP_ORGANIZATION_READ]: [Scope.IDP_USER_READ],
|
|
33
|
+
[Scope.IDP_ORGANIZATION_WRITE]: [Scope.IDP_USER_READ, Scope.IDP_ORGANIZATION_READ],
|
|
34
|
+
[Scope.IDP_ORGANIZATION_DELETE]: [Scope.IDP_USER_READ, Scope.IDP_ORGANIZATION_READ, Scope.IDP_ORGANIZATION_WRITE],
|
|
35
|
+
[Scope.IDP_ORGANIZATION_ADMIN]: [Scope.IDP_USER_READ, Scope.IDP_ORGANIZATION_READ, Scope.IDP_ORGANIZATION_WRITE, Scope.IDP_ORGANIZATION_DELETE],
|
|
36
|
+
[Scope.HIGH5_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
|
|
37
|
+
[Scope.HIGH5_SPACE_EXECUTE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.HIGH5_SPACE_READ],
|
|
38
|
+
[Scope.HIGH5_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.HIGH5_SPACE_READ, Scope.HIGH5_SPACE_EXECUTE],
|
|
39
|
+
[Scope.HIGH5_SPACE_DELETE]: [
|
|
40
|
+
Scope.IDP_ORGANIZATION_READ,
|
|
41
|
+
Scope.IDP_USER_READ,
|
|
42
|
+
Scope.HIGH5_SPACE_READ,
|
|
43
|
+
Scope.HIGH5_SPACE_EXECUTE,
|
|
44
|
+
Scope.HIGH5_SPACE_WRITE,
|
|
45
|
+
],
|
|
46
|
+
[Scope.FUSE_SPACE_READ]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ],
|
|
47
|
+
[Scope.FUSE_SPACE_EXECUTE]: [],
|
|
48
|
+
[Scope.FUSE_SPACE_WRITE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ],
|
|
49
|
+
[Scope.FUSE_SPACE_DELETE]: [Scope.IDP_ORGANIZATION_READ, Scope.IDP_USER_READ, Scope.FUSE_SPACE_READ, Scope.FUSE_SPACE_WRITE],
|
|
50
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface Totp {
|
|
2
|
+
activated: boolean;
|
|
3
|
+
createDate: number;
|
|
4
|
+
modifyDate: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DeactivatedTotp extends Totp {
|
|
7
|
+
activated: false;
|
|
8
|
+
otpAuthUrl: string;
|
|
9
|
+
qrcode: string;
|
|
10
|
+
secret: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ActivatedTotp extends Totp {
|
|
13
|
+
activated: true;
|
|
14
|
+
recoverCodes: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface UserTotp {
|
|
17
|
+
email: string;
|
|
18
|
+
token: string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Scope } from "./Scopes";
|
|
2
|
+
export interface User {
|
|
3
|
+
_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
company?: string;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
activeOrganization: string;
|
|
9
|
+
twoFactor?: {
|
|
10
|
+
totp: boolean;
|
|
11
|
+
};
|
|
12
|
+
createDate: number;
|
|
13
|
+
modifyDate: number;
|
|
14
|
+
activeScopes: Scope[];
|
|
15
|
+
isAgent?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type ReducedUser = Pick<User, "_id" | "name" | "avatarUrl">;
|
|
18
|
+
export interface UserPatch {
|
|
19
|
+
name?: string;
|
|
20
|
+
email?: string;
|
|
21
|
+
company?: string;
|
|
22
|
+
activeOrganization?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare enum Template {
|
|
2
|
+
REGISTER = "register",
|
|
3
|
+
RESET_PASSWORD = "reset_password",
|
|
4
|
+
INVITE_TO_ORG = "invite_to_org"
|
|
5
|
+
}
|
|
6
|
+
export interface Mail {
|
|
7
|
+
recipients: string[];
|
|
8
|
+
subject: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MailReplacement {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TemplateMail extends Mail {
|
|
15
|
+
template: Template;
|
|
16
|
+
replacements: MailReplacement[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @param html base64 encoded html string
|
|
20
|
+
*/
|
|
21
|
+
export interface HtmlMail extends Mail {
|
|
22
|
+
html: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @param html base64 encoded html string
|
|
26
|
+
*/
|
|
27
|
+
export interface MustacheMail extends Mail {
|
|
28
|
+
html: string;
|
|
29
|
+
replacements: MailReplacement[];
|
|
30
|
+
}
|
|
31
|
+
declare enum MailjetTemplate {
|
|
32
|
+
IDP_NEW_REGISTRATION = "IDP_NEW_REGISTRATION",
|
|
33
|
+
IDP_NEW_REGISTRATION_CUSTOMER = "IDP_NEW_REGISTRATION_CUSTOMER",
|
|
34
|
+
IDP_INVITE_TO_ORGANIZATION = "IDP_INVITE_TO_ORGANIZATION",
|
|
35
|
+
IDP_RESET_PASSWORD = "IDP_RESET_PASSWORD",
|
|
36
|
+
IDP_REGISTRATION_AND_INVITATION = "IDP_REGISTRATION_AND_INVITATION",
|
|
37
|
+
IDP_USER_LEFT_ORGANIZATION = "IDP_USER_LEFT_ORGANIZATION"
|
|
38
|
+
}
|
|
39
|
+
interface MailjetTemplateField {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
}
|
|
42
|
+
export declare abstract class MailjetMailDTO {
|
|
43
|
+
recipients: string[];
|
|
44
|
+
template: MailjetTemplate;
|
|
45
|
+
fields: MailjetTemplateField;
|
|
46
|
+
constructor(recipients: string[], template: MailjetTemplate, fields: MailjetTemplateField);
|
|
47
|
+
}
|
|
48
|
+
export declare class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
|
|
49
|
+
constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string);
|
|
50
|
+
}
|
|
51
|
+
export declare class IdpNewRegistrationMailjetMailToCustomerDTO extends MailjetMailDTO {
|
|
52
|
+
constructor(recipients: string[], username: string);
|
|
53
|
+
}
|
|
54
|
+
export declare class IdpResetPasswordMailjetMailDTO extends MailjetMailDTO {
|
|
55
|
+
constructor(recipients: string[], resetPasswordLink: string);
|
|
56
|
+
}
|
|
57
|
+
export declare class IdpInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
|
|
58
|
+
constructor(recipients: string[], approvalLink: string, inviteFromPerson: string, inviteToOrganization: string);
|
|
59
|
+
}
|
|
60
|
+
export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
|
|
61
|
+
constructor(recipients: string[], registerLink: string, inviteFromPerson: string, inviteToOrganization: string);
|
|
62
|
+
}
|
|
63
|
+
export declare class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
|
|
64
|
+
constructor(recipients: string[], userName: string, userEmail: string, organizationName: string);
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdpUserLeftOrganizationMailjetMailDTO = exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = exports.IdpInviteToOrganizationMailjetMailDto = exports.IdpResetPasswordMailjetMailDTO = exports.IdpNewRegistrationMailjetMailToCustomerDTO = exports.IdpNewRegistrationMailjetMailDTO = exports.MailjetMailDTO = exports.Template = void 0;
|
|
4
|
+
var Template;
|
|
5
|
+
(function (Template) {
|
|
6
|
+
Template["REGISTER"] = "register";
|
|
7
|
+
Template["RESET_PASSWORD"] = "reset_password";
|
|
8
|
+
Template["INVITE_TO_ORG"] = "invite_to_org";
|
|
9
|
+
})(Template || (exports.Template = Template = {}));
|
|
10
|
+
var MailjetTemplate;
|
|
11
|
+
(function (MailjetTemplate) {
|
|
12
|
+
MailjetTemplate["IDP_NEW_REGISTRATION"] = "IDP_NEW_REGISTRATION";
|
|
13
|
+
MailjetTemplate["IDP_NEW_REGISTRATION_CUSTOMER"] = "IDP_NEW_REGISTRATION_CUSTOMER";
|
|
14
|
+
MailjetTemplate["IDP_INVITE_TO_ORGANIZATION"] = "IDP_INVITE_TO_ORGANIZATION";
|
|
15
|
+
MailjetTemplate["IDP_RESET_PASSWORD"] = "IDP_RESET_PASSWORD";
|
|
16
|
+
MailjetTemplate["IDP_REGISTRATION_AND_INVITATION"] = "IDP_REGISTRATION_AND_INVITATION";
|
|
17
|
+
MailjetTemplate["IDP_USER_LEFT_ORGANIZATION"] = "IDP_USER_LEFT_ORGANIZATION";
|
|
18
|
+
})(MailjetTemplate || (MailjetTemplate = {}));
|
|
19
|
+
class MailjetMailDTO {
|
|
20
|
+
constructor(recipients, template, fields) {
|
|
21
|
+
this.recipients = recipients;
|
|
22
|
+
this.template = template;
|
|
23
|
+
this.fields = fields;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.MailjetMailDTO = MailjetMailDTO;
|
|
27
|
+
class IdpNewRegistrationMailjetMailDTO extends MailjetMailDTO {
|
|
28
|
+
constructor(recipients, verifyLink, hcloudOriginalEmail) {
|
|
29
|
+
super(recipients, MailjetTemplate.IDP_NEW_REGISTRATION, {
|
|
30
|
+
HCLOUD_VERIFY_LINK: verifyLink,
|
|
31
|
+
HCLOUD_ORIGINAL_EMAIL: hcloudOriginalEmail,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.IdpNewRegistrationMailjetMailDTO = IdpNewRegistrationMailjetMailDTO;
|
|
36
|
+
class IdpNewRegistrationMailjetMailToCustomerDTO extends MailjetMailDTO {
|
|
37
|
+
constructor(recipients, username) {
|
|
38
|
+
super(recipients, MailjetTemplate.IDP_NEW_REGISTRATION_CUSTOMER, {
|
|
39
|
+
USERNAME: username,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.IdpNewRegistrationMailjetMailToCustomerDTO = IdpNewRegistrationMailjetMailToCustomerDTO;
|
|
44
|
+
class IdpResetPasswordMailjetMailDTO extends MailjetMailDTO {
|
|
45
|
+
constructor(recipients, resetPasswordLink) {
|
|
46
|
+
super(recipients, MailjetTemplate.IDP_RESET_PASSWORD, {
|
|
47
|
+
HCLOUD_RESET_PASSWORD_LINK: resetPasswordLink,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.IdpResetPasswordMailjetMailDTO = IdpResetPasswordMailjetMailDTO;
|
|
52
|
+
class IdpInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
|
|
53
|
+
constructor(recipients, approvalLink, inviteFromPerson, inviteToOrganization) {
|
|
54
|
+
super(recipients, MailjetTemplate.IDP_INVITE_TO_ORGANIZATION, {
|
|
55
|
+
HCLOUD_INVITE_FROM: inviteFromPerson,
|
|
56
|
+
HCLOUD_INVITE_ORGANIZATION: inviteToOrganization,
|
|
57
|
+
HCLOUD_APPROVAL_LINK: approvalLink,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.IdpInviteToOrganizationMailjetMailDto = IdpInviteToOrganizationMailjetMailDto;
|
|
62
|
+
class IdpRegisterAndInviteToOrganizationMailjetMailDto extends MailjetMailDTO {
|
|
63
|
+
constructor(recipients, registerLink, inviteFromPerson, inviteToOrganization) {
|
|
64
|
+
super(recipients, MailjetTemplate.IDP_REGISTRATION_AND_INVITATION, {
|
|
65
|
+
HCLOUD_INVITE_FROM: inviteFromPerson,
|
|
66
|
+
HCLOUD_INVITE_ORGANIZATION: inviteToOrganization,
|
|
67
|
+
HCLOUD_REGISTER_LINK: registerLink,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.IdpRegisterAndInviteToOrganizationMailjetMailDto = IdpRegisterAndInviteToOrganizationMailjetMailDto;
|
|
72
|
+
class IdpUserLeftOrganizationMailjetMailDTO extends MailjetMailDTO {
|
|
73
|
+
constructor(recipients, userName, userEmail, organizationName) {
|
|
74
|
+
super(recipients, MailjetTemplate.IDP_USER_LEFT_ORGANIZATION, {
|
|
75
|
+
USER_NAME: userName,
|
|
76
|
+
USER_EMAIL: userEmail,
|
|
77
|
+
ORGANIZATION_NAME: organizationName,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.IdpUserLeftOrganizationMailjetMailDTO = IdpUserLeftOrganizationMailjetMailDTO;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum AgentStatus {
|
|
2
|
+
BUSY = "BUSY",
|
|
3
|
+
IDLE = "IDLE"
|
|
4
|
+
}
|
|
5
|
+
export type Agent = {
|
|
6
|
+
_id: string;
|
|
7
|
+
uuid: string;
|
|
8
|
+
ip?: string;
|
|
9
|
+
cpu: string;
|
|
10
|
+
cpuUtilization: number;
|
|
11
|
+
memoryTotal: number;
|
|
12
|
+
memoryUsed: number;
|
|
13
|
+
hostname: string;
|
|
14
|
+
nickname: string;
|
|
15
|
+
osPlatform: string;
|
|
16
|
+
osRelease: string;
|
|
17
|
+
osVersion: string;
|
|
18
|
+
uptime: number;
|
|
19
|
+
status: AgentStatus;
|
|
20
|
+
createDate: number;
|
|
21
|
+
modifyDate: number;
|
|
22
|
+
bundleVersion?: string;
|
|
23
|
+
};
|
|
24
|
+
export type TargetAgent = Pick<Agent, Exclude<keyof Agent, "uptime">> & {
|
|
25
|
+
connectionUptime: number;
|
|
26
|
+
targetEmail: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentStatus = void 0;
|
|
4
|
+
var AgentStatus;
|
|
5
|
+
(function (AgentStatus) {
|
|
6
|
+
AgentStatus["BUSY"] = "BUSY";
|
|
7
|
+
AgentStatus["IDLE"] = "IDLE";
|
|
8
|
+
})(AgentStatus || (exports.AgentStatus = AgentStatus = {}));
|