hcloud-sdk 16.0.0 → 18.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 +178 -51
- package/lib/Base.d.ts +2 -1
- package/lib/Hcloud.d.ts +6 -0
- package/lib/Hcloud.js +18 -0
- package/lib/helper/ValidationHelper.d.ts +74 -0
- package/lib/helper/ValidationHelper.js +360 -0
- package/lib/interfaces/auditor/index.d.ts +17 -2
- package/lib/interfaces/auditor/index.js +12 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +185 -0
- package/lib/interfaces/cosmo/asset/index.js +82 -0
- package/lib/interfaces/cosmo/comment/index.d.ts +38 -0
- package/lib/interfaces/cosmo/comment/index.js +8 -0
- package/lib/interfaces/cosmo/event/index.d.ts +31 -0
- package/lib/interfaces/cosmo/event/index.js +17 -0
- package/lib/interfaces/cosmo/location/index.d.ts +4 -0
- package/lib/interfaces/cosmo/location/index.js +2 -0
- package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
- package/lib/interfaces/cosmo/namespace/index.js +9 -0
- package/lib/interfaces/cosmo/permissions.d.ts +96 -0
- package/lib/interfaces/cosmo/permissions.js +58 -0
- package/lib/interfaces/cosmo/share/index.d.ts +28 -0
- package/lib/interfaces/cosmo/share/index.js +2 -0
- package/lib/interfaces/cosmo/space/index.d.ts +25 -0
- package/lib/interfaces/cosmo/space/index.js +2 -0
- package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
- package/lib/interfaces/cosmo/tag/tag.js +2 -0
- package/lib/interfaces/frontend/config/index.d.ts +1 -0
- package/lib/interfaces/fuse/space/index.d.ts +1 -0
- package/lib/interfaces/global/Products.d.ts +3 -1
- package/lib/interfaces/global/Products.js +2 -0
- package/lib/interfaces/global/Views.d.ts +2 -1
- package/lib/interfaces/global/Views.js +1 -0
- package/lib/interfaces/high5/execution/index.d.ts +23 -2
- package/lib/interfaces/high5/execution/index.js +2 -0
- package/lib/interfaces/high5/index.d.ts +7 -7
- package/lib/interfaces/high5/index.js +7 -7
- package/lib/interfaces/high5/space/database/document/index.d.ts +34 -0
- package/lib/interfaces/high5/space/database/document/index.js +14 -0
- package/lib/interfaces/high5/space/database/index.d.ts +12 -0
- package/lib/interfaces/high5/space/database/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
- package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +56 -2
- package/lib/interfaces/high5/space/execution/index.js +8 -0
- package/lib/interfaces/high5/space/index.d.ts +2 -0
- package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
- package/lib/interfaces/high5/space/job/JobLog.js +2 -0
- package/lib/interfaces/high5/space/job/index.d.ts +38 -0
- package/lib/interfaces/high5/space/job/index.js +8 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
- package/lib/interfaces/high5/space/pool/index.js +0 -7
- package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
- package/lib/interfaces/high5/stats.d.ts +21 -0
- package/lib/interfaces/high5/stats.js +2 -0
- package/lib/interfaces/high5/wave/index.d.ts +8 -3
- package/lib/interfaces/idp/index.d.ts +1 -0
- package/lib/interfaces/idp/index.js +1 -0
- package/lib/interfaces/idp/oauth/index.d.ts +4 -3
- package/lib/interfaces/idp/organization/index.d.ts +1 -0
- package/lib/interfaces/idp/organization/index.js +1 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +13 -0
- package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
- package/lib/interfaces/idp/organization/service-accounts.js +2 -0
- package/lib/interfaces/idp/organization/stats.d.ts +7 -0
- package/lib/interfaces/idp/organization/stats.js +2 -0
- package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
- package/lib/interfaces/idp/user/Message.d.ts +21 -0
- package/lib/interfaces/idp/user/Message.js +14 -0
- package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +8 -2
- package/lib/interfaces/idp/user/Scopes.js +9 -0
- package/lib/interfaces/idp/user/index.d.ts +2 -1
- package/lib/interfaces/mailer/index.d.ts +30 -1
- package/lib/interfaces/mailer/index.js +87 -1
- package/lib/interfaces/mothership/index.d.ts +3 -1
- package/lib/interfaces/mothership/index.js +15 -0
- package/lib/interfaces/mothership/stats.d.ts +4 -0
- package/lib/interfaces/mothership/stats.js +2 -0
- package/lib/interfaces/nats/index.d.ts +98 -9
- package/lib/interfaces/nats/index.js +136 -19
- package/lib/interfaces/shorts/index.d.ts +10 -0
- package/lib/interfaces/shorts/index.js +2 -0
- package/lib/service/agent/bundle/dev/index.d.ts +16 -6
- package/lib/service/agent/bundle/dev/index.js +12 -10
- package/lib/service/agent/bundle/index.d.ts +10 -4
- package/lib/service/agent/bundle/index.js +6 -6
- package/lib/service/agent/context/index.d.ts +26 -7
- package/lib/service/agent/context/index.js +27 -12
- package/lib/service/auditor/index.d.ts +8 -4
- package/lib/service/auditor/index.js +5 -5
- package/lib/service/auditor/internal/index.d.ts +27 -3
- package/lib/service/auditor/internal/index.js +34 -5
- package/lib/service/bouncer/features/index.d.ts +4 -2
- package/lib/service/bouncer/features/index.js +2 -2
- package/lib/service/cosmo/asset/index.d.ts +219 -0
- package/lib/service/cosmo/asset/index.js +314 -0
- package/lib/service/cosmo/comment/index.d.ts +122 -0
- package/lib/service/cosmo/comment/index.js +161 -0
- package/lib/service/cosmo/event/index.d.ts +23 -0
- package/lib/service/cosmo/event/index.js +40 -0
- package/lib/service/cosmo/folder/index.d.ts +27 -0
- package/lib/service/cosmo/folder/index.js +47 -0
- package/lib/service/cosmo/index.d.ts +49 -0
- package/lib/service/cosmo/index.js +119 -0
- package/lib/service/cosmo/internal/index.d.ts +7 -0
- package/lib/service/cosmo/internal/index.js +17 -0
- package/lib/service/cosmo/internal/space/index.d.ts +15 -0
- package/lib/service/cosmo/internal/space/index.js +34 -0
- package/lib/service/cosmo/location/index.d.ts +40 -0
- package/lib/service/cosmo/location/index.js +63 -0
- package/lib/service/cosmo/namespace/index.d.ts +42 -0
- package/lib/service/cosmo/namespace/index.js +65 -0
- package/lib/service/cosmo/organization/index.d.ts +47 -0
- package/lib/service/cosmo/organization/index.js +64 -0
- package/lib/service/cosmo/permissions/index.d.ts +131 -0
- package/lib/service/cosmo/permissions/index.js +181 -0
- package/lib/service/cosmo/production/index.d.ts +26 -0
- package/lib/service/cosmo/production/index.js +45 -0
- package/lib/service/cosmo/share/index.d.ts +161 -0
- package/lib/service/cosmo/share/index.js +215 -0
- package/lib/service/cosmo/space/index.d.ts +104 -0
- package/lib/service/cosmo/space/index.js +146 -0
- package/lib/service/cosmo/tag/index.d.ts +67 -0
- package/lib/service/cosmo/tag/index.js +93 -0
- package/lib/service/dali/DaliAvatar.d.ts +12 -0
- package/lib/service/dali/DaliAvatar.js +20 -0
- package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +32 -0
- package/lib/service/dali/avatar/DaliCosmoSpace.js +59 -0
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
- package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
- package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
- package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
- package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
- package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
- package/lib/service/dali/avatar/DaliOrganization.js +7 -6
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +32 -0
- package/lib/service/dali/avatar/DaliServiceAccount.js +59 -0
- package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
- package/lib/service/dali/avatar/DaliTeam.js +7 -6
- package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
- package/lib/service/dali/avatar/DaliUser.js +7 -6
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +2 -5
- package/lib/service/fuse/index.d.ts +4 -2
- package/lib/service/fuse/index.js +2 -2
- package/lib/service/fuse/internal/index.d.ts +4 -2
- package/lib/service/fuse/internal/index.js +3 -2
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
- package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
- package/lib/service/fuse/internal/space/index.d.ts +7 -3
- package/lib/service/fuse/internal/space/index.js +6 -4
- package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
- package/lib/service/fuse/space/cronjob/index.js +48 -50
- package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
- package/lib/service/fuse/space/cronjob/log/index.js +5 -5
- package/lib/service/fuse/space/index.d.ts +27 -11
- package/lib/service/fuse/space/index.js +19 -18
- package/lib/service/high5/execution/index.d.ts +4 -2
- package/lib/service/high5/execution/index.js +3 -2
- package/lib/service/high5/execution/status/index.d.ts +5 -3
- package/lib/service/high5/execution/status/index.js +3 -3
- package/lib/service/high5/index.d.ts +7 -2
- package/lib/service/high5/index.js +9 -2
- package/lib/service/high5/internal/index.d.ts +4 -2
- package/lib/service/high5/internal/index.js +3 -2
- package/lib/service/high5/internal/space/index.d.ts +10 -3
- package/lib/service/high5/internal/space/index.js +13 -4
- package/lib/service/high5/internal/space/job/index.d.ts +7 -0
- package/lib/service/high5/internal/space/job/index.js +17 -0
- package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
- package/lib/service/high5/internal/space/job/log/index.js +34 -0
- package/lib/service/high5/joinToken/index.d.ts +14 -6
- package/lib/service/high5/joinToken/index.js +10 -9
- package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
- package/lib/service/high5/space/database/document/array/index.js +102 -0
- package/lib/service/high5/space/database/document/index.d.ts +74 -0
- package/lib/service/high5/space/database/document/index.js +112 -0
- package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
- package/lib/service/high5/space/database/document/number/index.js +77 -0
- package/lib/service/high5/space/database/index.d.ts +65 -0
- package/lib/service/high5/space/database/index.js +102 -0
- package/lib/service/high5/space/event/index.d.ts +17 -7
- package/lib/service/high5/space/event/index.js +12 -11
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -3
- package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
- package/lib/service/high5/space/event/stream/design/index.js +7 -6
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
- package/lib/service/high5/space/event/stream/index.d.ts +32 -12
- package/lib/service/high5/space/event/stream/index.js +22 -21
- package/lib/service/high5/space/execution/index.d.ts +22 -7
- package/lib/service/high5/space/execution/index.js +23 -12
- package/lib/service/high5/space/execution/log/index.d.ts +8 -4
- package/lib/service/high5/space/execution/log/index.js +5 -5
- package/lib/service/high5/space/execution/status/index.d.ts +18 -7
- package/lib/service/high5/space/execution/status/index.js +20 -8
- package/lib/service/high5/space/index.d.ts +56 -18
- package/lib/service/high5/space/index.js +65 -27
- package/lib/service/high5/space/job/index.d.ts +145 -0
- package/lib/service/high5/space/job/index.js +201 -0
- package/lib/service/high5/space/job/log/index.d.ts +35 -0
- package/lib/service/high5/space/job/log/index.js +58 -0
- package/lib/service/high5/space/node/index.d.ts +20 -8
- package/lib/service/high5/space/node/index.js +14 -13
- package/lib/service/high5/space/pool/index.d.ts +27 -11
- package/lib/service/high5/space/pool/index.js +19 -18
- package/lib/service/high5/space/secret/index.d.ts +17 -7
- package/lib/service/high5/space/secret/index.js +12 -11
- package/lib/service/high5/space/stat/index.d.ts +12 -0
- package/lib/service/high5/space/stat/index.js +31 -0
- package/lib/service/high5/space/wave/index.d.ts +16 -6
- package/lib/service/high5/space/wave/index.js +11 -10
- package/lib/service/high5/space/webhook/index.d.ts +32 -12
- package/lib/service/high5/space/webhook/index.js +25 -21
- package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
- package/lib/service/high5/space/webhook/log/index.js +2 -2
- package/lib/service/high5/stat/index.d.ts +11 -0
- package/lib/service/high5/stat/index.js +30 -0
- package/lib/service/high5/wave/s3/index.d.ts +31 -8
- package/lib/service/high5/wave/s3/index.js +52 -24
- package/lib/service/idp/guest/index.d.ts +42 -0
- package/lib/service/idp/guest/index.js +66 -0
- package/lib/service/idp/index.d.ts +25 -7
- package/lib/service/idp/index.js +23 -12
- package/lib/service/idp/internal/index.d.ts +5 -3
- package/lib/service/idp/internal/index.js +5 -3
- package/lib/service/idp/oauth/index.d.ts +16 -6
- package/lib/service/idp/oauth/index.js +15 -15
- package/lib/service/idp/organization/index.d.ts +25 -5
- package/lib/service/idp/organization/index.js +29 -8
- package/lib/service/idp/organization/license/index.d.ts +7 -3
- package/lib/service/idp/organization/license/index.js +4 -4
- package/lib/service/idp/organization/member/index.d.ts +21 -8
- package/lib/service/idp/organization/member/index.js +16 -13
- package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
- package/lib/service/idp/organization/member/invitations/index.js +72 -59
- package/lib/service/idp/organization/service-accounts/index.d.ts +76 -0
- package/lib/service/idp/organization/service-accounts/index.js +109 -0
- package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
- package/lib/service/idp/organization/settings/domain/index.js +9 -8
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
- package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
- package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
- package/lib/service/idp/organization/settings/oauth/index.js +16 -15
- package/lib/service/idp/organization/stat/index.d.ts +11 -0
- package/lib/service/idp/organization/stat/index.js +30 -0
- package/lib/service/idp/organization/team/index.d.ts +22 -10
- package/lib/service/idp/organization/team/index.js +14 -13
- package/lib/service/idp/registration/index.d.ts +10 -4
- package/lib/service/idp/registration/index.js +15 -9
- package/lib/service/idp/user/index.d.ts +33 -11
- package/lib/service/idp/user/index.js +30 -16
- package/lib/service/idp/user/license/index.d.ts +7 -3
- package/lib/service/idp/user/license/index.js +4 -4
- package/lib/service/idp/user/message/index.d.ts +61 -0
- package/lib/service/idp/user/message/index.js +92 -0
- package/lib/service/idp/user/password/index.d.ts +4 -2
- package/lib/service/idp/user/password/index.js +3 -3
- package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
- package/lib/service/idp/user/settings/connections/index.js +2 -2
- package/lib/service/idp/user/settings/general/index.d.ts +10 -4
- package/lib/service/idp/user/settings/general/index.js +6 -6
- package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
- package/lib/service/idp/user/settings/notifications/index.js +4 -4
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
- package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
- package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
- package/lib/service/idp/user/settings/pats/index.js +17 -15
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
- package/lib/service/mailer/index.d.ts +4 -2
- package/lib/service/mailer/index.js +2 -2
- package/lib/service/mailer/internal/index.d.ts +13 -5
- package/lib/service/mailer/internal/index.js +8 -8
- package/lib/service/mothership/index.d.ts +35 -13
- package/lib/service/mothership/index.js +32 -18
- package/lib/service/nats/index.js +58 -44
- package/lib/service/shorts/index.d.ts +18 -0
- package/lib/service/shorts/index.js +38 -0
- package/lib/service/shorts/internal/index.d.ts +72 -0
- package/lib/service/shorts/internal/index.js +104 -0
- package/lib/utils/bouncer/features/Provider.js +0 -3
- package/package.json +22 -24
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReducedUser } from "../../idp";
|
|
2
|
+
export interface CreateComment {
|
|
3
|
+
refId: string;
|
|
4
|
+
text: string;
|
|
5
|
+
timestamp?: Timestamp;
|
|
6
|
+
annotation?: string;
|
|
7
|
+
mentions?: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface EditComment {
|
|
10
|
+
text: string;
|
|
11
|
+
timestamp?: Timestamp;
|
|
12
|
+
annotation?: string;
|
|
13
|
+
mentions?: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare enum CommentType {
|
|
16
|
+
COMMENT = "COMMENT",
|
|
17
|
+
REPLY = "REPLY"
|
|
18
|
+
}
|
|
19
|
+
export interface Comment {
|
|
20
|
+
_id: string;
|
|
21
|
+
text: string;
|
|
22
|
+
createDate: number;
|
|
23
|
+
timestamp?: Timestamp;
|
|
24
|
+
creator: ReducedUser;
|
|
25
|
+
assetId: string;
|
|
26
|
+
commentType: CommentType;
|
|
27
|
+
annotation?: string;
|
|
28
|
+
mentions?: ReducedUser[];
|
|
29
|
+
replies?: Reply[];
|
|
30
|
+
}
|
|
31
|
+
export interface Reply extends Omit<Comment, "timestamp" | "replies"> {
|
|
32
|
+
commentRef: string;
|
|
33
|
+
}
|
|
34
|
+
export interface Timestamp {
|
|
35
|
+
in: number;
|
|
36
|
+
out: number;
|
|
37
|
+
color: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommentType = void 0;
|
|
4
|
+
var CommentType;
|
|
5
|
+
(function (CommentType) {
|
|
6
|
+
CommentType["COMMENT"] = "COMMENT";
|
|
7
|
+
CommentType["REPLY"] = "REPLY";
|
|
8
|
+
})(CommentType || (exports.CommentType = CommentType = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum CosmoEventName {
|
|
2
|
+
HCLOUD_COSMO_SPACE_ADD = "hcloud.cosmo.space.add",
|
|
3
|
+
HCLOUD_COSMO_SPACE_RENAME = "hcloud.cosmo.space.rename",
|
|
4
|
+
HCLOUD_COSMO_SPACE_UPDATE = "hcloud.cosmo.space.update",
|
|
5
|
+
HCLOUD_COSMO_SPACE_DELETE = "hcloud.cosmo.space.delete",
|
|
6
|
+
HCLOUD_COSMO_SPACE_ASSET_ADD = "hcloud.cosmo.space.asset.add",
|
|
7
|
+
HCLOUD_COSMO_SPACE_ASSET_UPDATE = "hcloud.cosmo.space.asset.update",
|
|
8
|
+
HCLOUD_COSMO_SPACE_ASSET_MOVE = "hcloud.cosmo.space.asset.move",
|
|
9
|
+
HCLOUD_COSMO_SPACE_ASSET_DELETE = "hcloud.cosmo.space.asset.delete",
|
|
10
|
+
HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD = "hcloud.cosmo.space.asset.comment.add",
|
|
11
|
+
HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE = "hcloud.cosmo.space.asset.comment.update",
|
|
12
|
+
HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE = "hcloud.cosmo.space.asset.comment.delete"
|
|
13
|
+
}
|
|
14
|
+
export interface CosmoEvents {
|
|
15
|
+
Space: {
|
|
16
|
+
"Space rename": CosmoEventName.HCLOUD_COSMO_SPACE_RENAME;
|
|
17
|
+
"Space update": CosmoEventName.HCLOUD_COSMO_SPACE_UPDATE;
|
|
18
|
+
"Space delete": CosmoEventName.HCLOUD_COSMO_SPACE_DELETE;
|
|
19
|
+
};
|
|
20
|
+
Asset: {
|
|
21
|
+
"Asset create": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_ADD;
|
|
22
|
+
"Asset update": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPDATE;
|
|
23
|
+
"Asset Move": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_MOVE;
|
|
24
|
+
"Asset Delete": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_DELETE;
|
|
25
|
+
};
|
|
26
|
+
Comment: {
|
|
27
|
+
"Comment create": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD;
|
|
28
|
+
"Comment update": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE;
|
|
29
|
+
"Comment delete": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CosmoEventName = void 0;
|
|
4
|
+
var CosmoEventName;
|
|
5
|
+
(function (CosmoEventName) {
|
|
6
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ADD"] = "hcloud.cosmo.space.add";
|
|
7
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_RENAME"] = "hcloud.cosmo.space.rename";
|
|
8
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_UPDATE"] = "hcloud.cosmo.space.update";
|
|
9
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_DELETE"] = "hcloud.cosmo.space.delete";
|
|
10
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_ADD"] = "hcloud.cosmo.space.asset.add";
|
|
11
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE"] = "hcloud.cosmo.space.asset.update";
|
|
12
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_MOVE"] = "hcloud.cosmo.space.asset.move";
|
|
13
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_DELETE"] = "hcloud.cosmo.space.asset.delete";
|
|
14
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD"] = "hcloud.cosmo.space.asset.comment.add";
|
|
15
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE"] = "hcloud.cosmo.space.asset.comment.update";
|
|
16
|
+
CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE"] = "hcloud.cosmo.space.asset.comment.delete";
|
|
17
|
+
})(CosmoEventName || (exports.CosmoEventName = CosmoEventName = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamespacePermission = void 0;
|
|
4
|
+
var NamespacePermission;
|
|
5
|
+
(function (NamespacePermission) {
|
|
6
|
+
NamespacePermission["READ_COMMENTS"] = "READ_COMMENTS";
|
|
7
|
+
NamespacePermission["WRITE_COMMENTS"] = "WRITE_COMMENTS";
|
|
8
|
+
NamespacePermission["READ_STATUS"] = "READ_STATUS";
|
|
9
|
+
})(NamespacePermission || (exports.NamespacePermission = NamespacePermission = {}));
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ReducedUser } from "../idp";
|
|
2
|
+
import { BaseAsset } from "./asset";
|
|
3
|
+
export declare enum Permissions {
|
|
4
|
+
VIEW_SPACE = "VIEW_SPACE",
|
|
5
|
+
VIEW_MEMBERS = "VIEW_MEMBERS",
|
|
6
|
+
UPDATE_MEMBERS = "UPDATE_MEMBERS",
|
|
7
|
+
VIEW_TRASHBIN = "VIEW_TRASHBIN",
|
|
8
|
+
RECOVER_TRASHBIN = "RECOVER_TRASHBIN",
|
|
9
|
+
EMPTY_TRASHBIN = "EMPTY_TRASHBIN",
|
|
10
|
+
VIEW_ROLES = "VIEW_ROLES",
|
|
11
|
+
CREATE_ROLES = "CREATE_ROLES",
|
|
12
|
+
EDIT_ROLES = "EDIT_ROLES",
|
|
13
|
+
DELETE_ROLES = "DELETE_ROLES",
|
|
14
|
+
ASSIGN_USER_ROLES = "ASSIGN_USER_ROLES",
|
|
15
|
+
UPDATE_SPACE_AVATAR = "UPDATE_SPACE_AVATAR",
|
|
16
|
+
UPDATE_SPACE_NAME = "UPDATE_SPACE_NAME",
|
|
17
|
+
DELETE_SPACE = "DELETE_SPACE",
|
|
18
|
+
CONNECT_HIGH5_SPACE = "CONNECT_HIGH5_SPACE",
|
|
19
|
+
VIEW_ASSETS = "VIEW_ASSETS",
|
|
20
|
+
VIEW_ASSET_DETAILS = "VIEW_ASSET_DETAILS",
|
|
21
|
+
VIEW_ASSET_ACTIVITY = "VIEW_ASSET_ACTIVITY",
|
|
22
|
+
DOWNLOAD_ASSETS = "DOWNLOAD_ASSETS",
|
|
23
|
+
CREATE_ASSETS = "CREATE_ASSETS",
|
|
24
|
+
UPDATE_ASSETS = "UPDATE_ASSETS",
|
|
25
|
+
DELETE_ASSETS = "DELETE_ASSETS",
|
|
26
|
+
COPY_ASSETS = "COPY_ASSETS",
|
|
27
|
+
MOVE_ASSETS = "MOVE_ASSETS",
|
|
28
|
+
RENAME_ASSETS = "RENAME_ASSETS",
|
|
29
|
+
SHARE_ASSETS = "SHARE_ASSETS",
|
|
30
|
+
VIEW_NAMESPACES = "VIEW_NAMESPACES",
|
|
31
|
+
EDIT_NAMESPACES = "EDIT_NAMESPACES",
|
|
32
|
+
CREATE_NAMESPACES = "CREATE_NAMESPACES",
|
|
33
|
+
DELETE_NAMESPACES = "DELETE_NAMESPACES",
|
|
34
|
+
VIEW_ASSET_TAGS = "VIEW_ASSET_TAGS",
|
|
35
|
+
WRITE_ASSET_TAGS = "WRITE_ASSET_TAGS",
|
|
36
|
+
VIEW_ASSET_STATUS = "VIEW_ASSET_STATUS",
|
|
37
|
+
WRITE_ASSET_STATUS = "WRITE_ASSET_STATUS",
|
|
38
|
+
VIEW_ASSET_COMMENTS = "VIEW_ASSET_COMMENTS",
|
|
39
|
+
CREATE_ASSET_COMMENTS = "CREATE_ASSET_COMMENTS",
|
|
40
|
+
EDIT_ASSET_COMMENTS = "EDIT_ASSET_COMMENTS",
|
|
41
|
+
DELETE_ASSET_COMMENTS = "DELETE_ASSET_COMMENTS",
|
|
42
|
+
VIEW_MENTIONS = "VIEW_MENTIONS",
|
|
43
|
+
VIEW_SHARES = "VIEW_SHARES",
|
|
44
|
+
EDIT_SHARES = "EDIT_SHARES",
|
|
45
|
+
DELETE_SHARES = "DELETE_SHARES",
|
|
46
|
+
ADD_USERS_TO_SHARES = "ADD_USERS_TO_SHARES",
|
|
47
|
+
REMOVE_USERS_FROM_SHARES = "REMOVE_USERS_FROM_SHARES"
|
|
48
|
+
}
|
|
49
|
+
export type Permission = {
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
category: PermissionCategory;
|
|
53
|
+
};
|
|
54
|
+
export declare enum PermissionCategory {
|
|
55
|
+
ASSET = "asset",
|
|
56
|
+
NAMESPACE = "namespace",
|
|
57
|
+
SPACE = "space",
|
|
58
|
+
SHARE = "share",
|
|
59
|
+
USER = "user"
|
|
60
|
+
}
|
|
61
|
+
export type AssetPermission = Omit<Permission, "category"> & {
|
|
62
|
+
category: PermissionCategory.ASSET;
|
|
63
|
+
};
|
|
64
|
+
export type NamespacePermission = Omit<Permission, "category"> & {
|
|
65
|
+
category: PermissionCategory.NAMESPACE;
|
|
66
|
+
};
|
|
67
|
+
export type SpacePermission = Omit<Permission, "category"> & {
|
|
68
|
+
category: PermissionCategory.SPACE;
|
|
69
|
+
};
|
|
70
|
+
export type SharePermission = Omit<Permission, "category"> & {
|
|
71
|
+
category: PermissionCategory.SHARE;
|
|
72
|
+
};
|
|
73
|
+
export type UserPermission = Omit<Permission, "category"> & {
|
|
74
|
+
category: PermissionCategory.USER;
|
|
75
|
+
};
|
|
76
|
+
export type PermissionDiscovery = {
|
|
77
|
+
[PermissionCategory.ASSET]: AssetPermission;
|
|
78
|
+
[PermissionCategory.NAMESPACE]: NamespacePermission;
|
|
79
|
+
[PermissionCategory.SPACE]: SpacePermission;
|
|
80
|
+
[PermissionCategory.SHARE]: SharePermission;
|
|
81
|
+
[PermissionCategory.USER]: UserPermission;
|
|
82
|
+
};
|
|
83
|
+
export type Role = {
|
|
84
|
+
_id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
createDate: number;
|
|
87
|
+
modifyDate: number;
|
|
88
|
+
creator: ReducedUser;
|
|
89
|
+
};
|
|
90
|
+
export type DetailedRole = Role & {
|
|
91
|
+
users: ReducedUser[];
|
|
92
|
+
permissions: Record<string, {
|
|
93
|
+
entity: Pick<BaseAsset, "_id" | "type" | "name">;
|
|
94
|
+
permissions: string[];
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PermissionCategory = exports.Permissions = void 0;
|
|
4
|
+
var Permissions;
|
|
5
|
+
(function (Permissions) {
|
|
6
|
+
Permissions["VIEW_SPACE"] = "VIEW_SPACE";
|
|
7
|
+
Permissions["VIEW_MEMBERS"] = "VIEW_MEMBERS";
|
|
8
|
+
Permissions["UPDATE_MEMBERS"] = "UPDATE_MEMBERS";
|
|
9
|
+
Permissions["VIEW_TRASHBIN"] = "VIEW_TRASHBIN";
|
|
10
|
+
Permissions["RECOVER_TRASHBIN"] = "RECOVER_TRASHBIN";
|
|
11
|
+
Permissions["EMPTY_TRASHBIN"] = "EMPTY_TRASHBIN";
|
|
12
|
+
Permissions["VIEW_ROLES"] = "VIEW_ROLES";
|
|
13
|
+
Permissions["CREATE_ROLES"] = "CREATE_ROLES";
|
|
14
|
+
Permissions["EDIT_ROLES"] = "EDIT_ROLES";
|
|
15
|
+
Permissions["DELETE_ROLES"] = "DELETE_ROLES";
|
|
16
|
+
Permissions["ASSIGN_USER_ROLES"] = "ASSIGN_USER_ROLES";
|
|
17
|
+
Permissions["UPDATE_SPACE_AVATAR"] = "UPDATE_SPACE_AVATAR";
|
|
18
|
+
Permissions["UPDATE_SPACE_NAME"] = "UPDATE_SPACE_NAME";
|
|
19
|
+
Permissions["DELETE_SPACE"] = "DELETE_SPACE";
|
|
20
|
+
Permissions["CONNECT_HIGH5_SPACE"] = "CONNECT_HIGH5_SPACE";
|
|
21
|
+
Permissions["VIEW_ASSETS"] = "VIEW_ASSETS";
|
|
22
|
+
Permissions["VIEW_ASSET_DETAILS"] = "VIEW_ASSET_DETAILS";
|
|
23
|
+
Permissions["VIEW_ASSET_ACTIVITY"] = "VIEW_ASSET_ACTIVITY";
|
|
24
|
+
Permissions["DOWNLOAD_ASSETS"] = "DOWNLOAD_ASSETS";
|
|
25
|
+
Permissions["CREATE_ASSETS"] = "CREATE_ASSETS";
|
|
26
|
+
Permissions["UPDATE_ASSETS"] = "UPDATE_ASSETS";
|
|
27
|
+
Permissions["DELETE_ASSETS"] = "DELETE_ASSETS";
|
|
28
|
+
Permissions["COPY_ASSETS"] = "COPY_ASSETS";
|
|
29
|
+
Permissions["MOVE_ASSETS"] = "MOVE_ASSETS";
|
|
30
|
+
Permissions["RENAME_ASSETS"] = "RENAME_ASSETS";
|
|
31
|
+
Permissions["SHARE_ASSETS"] = "SHARE_ASSETS";
|
|
32
|
+
Permissions["VIEW_NAMESPACES"] = "VIEW_NAMESPACES";
|
|
33
|
+
Permissions["EDIT_NAMESPACES"] = "EDIT_NAMESPACES";
|
|
34
|
+
Permissions["CREATE_NAMESPACES"] = "CREATE_NAMESPACES";
|
|
35
|
+
Permissions["DELETE_NAMESPACES"] = "DELETE_NAMESPACES";
|
|
36
|
+
Permissions["VIEW_ASSET_TAGS"] = "VIEW_ASSET_TAGS";
|
|
37
|
+
Permissions["WRITE_ASSET_TAGS"] = "WRITE_ASSET_TAGS";
|
|
38
|
+
Permissions["VIEW_ASSET_STATUS"] = "VIEW_ASSET_STATUS";
|
|
39
|
+
Permissions["WRITE_ASSET_STATUS"] = "WRITE_ASSET_STATUS";
|
|
40
|
+
Permissions["VIEW_ASSET_COMMENTS"] = "VIEW_ASSET_COMMENTS";
|
|
41
|
+
Permissions["CREATE_ASSET_COMMENTS"] = "CREATE_ASSET_COMMENTS";
|
|
42
|
+
Permissions["EDIT_ASSET_COMMENTS"] = "EDIT_ASSET_COMMENTS";
|
|
43
|
+
Permissions["DELETE_ASSET_COMMENTS"] = "DELETE_ASSET_COMMENTS";
|
|
44
|
+
Permissions["VIEW_MENTIONS"] = "VIEW_MENTIONS";
|
|
45
|
+
Permissions["VIEW_SHARES"] = "VIEW_SHARES";
|
|
46
|
+
Permissions["EDIT_SHARES"] = "EDIT_SHARES";
|
|
47
|
+
Permissions["DELETE_SHARES"] = "DELETE_SHARES";
|
|
48
|
+
Permissions["ADD_USERS_TO_SHARES"] = "ADD_USERS_TO_SHARES";
|
|
49
|
+
Permissions["REMOVE_USERS_FROM_SHARES"] = "REMOVE_USERS_FROM_SHARES";
|
|
50
|
+
})(Permissions || (exports.Permissions = Permissions = {}));
|
|
51
|
+
var PermissionCategory;
|
|
52
|
+
(function (PermissionCategory) {
|
|
53
|
+
PermissionCategory["ASSET"] = "asset";
|
|
54
|
+
PermissionCategory["NAMESPACE"] = "namespace";
|
|
55
|
+
PermissionCategory["SPACE"] = "space";
|
|
56
|
+
PermissionCategory["SHARE"] = "share";
|
|
57
|
+
PermissionCategory["USER"] = "user";
|
|
58
|
+
})(PermissionCategory || (exports.PermissionCategory = PermissionCategory = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReducedUser } from "../../idp";
|
|
2
|
+
export interface Share {
|
|
3
|
+
_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
creator: ReducedUser;
|
|
6
|
+
createDate: number;
|
|
7
|
+
items: string[];
|
|
8
|
+
permissions: string[];
|
|
9
|
+
expires?: number;
|
|
10
|
+
password?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ShareCreate extends Omit<Share, "_id" | "createDate" | "creator"> {
|
|
13
|
+
password?: string;
|
|
14
|
+
expires?: number;
|
|
15
|
+
namespaces?: Record<string, string[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Array of emails
|
|
18
|
+
*/
|
|
19
|
+
users?: string[];
|
|
20
|
+
}
|
|
21
|
+
export type ShareWithUsers = Share & {
|
|
22
|
+
users: ReducedUser[];
|
|
23
|
+
};
|
|
24
|
+
export type SharePatch = Partial<Pick<ShareCreate, "name" | "expires" | "password"> & {
|
|
25
|
+
items: string[];
|
|
26
|
+
permissions: string[];
|
|
27
|
+
namespaces: Record<string, string[] | null>;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReducedTeam, ReducedUser } from "../../idp";
|
|
2
|
+
import { ItemType } from "../asset";
|
|
3
|
+
export interface CosmoSpace {
|
|
4
|
+
_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
createDate: number;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
creator: ReducedUser;
|
|
9
|
+
type: ItemType.SPACE;
|
|
10
|
+
high5_spaceName?: string;
|
|
11
|
+
high5_executionTarget?: string;
|
|
12
|
+
permissions?: string[];
|
|
13
|
+
storageUsed: number;
|
|
14
|
+
}
|
|
15
|
+
export interface High5SpaceInfo {
|
|
16
|
+
high5_spaceName: string;
|
|
17
|
+
executionTarget: string;
|
|
18
|
+
}
|
|
19
|
+
export type SpaceUser = (ReducedUser | ReducedTeam) & {
|
|
20
|
+
roles: {
|
|
21
|
+
name: string;
|
|
22
|
+
_id: string;
|
|
23
|
+
}[];
|
|
24
|
+
type: "user" | "team";
|
|
25
|
+
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { DesignerNode } from "../space/event/stream/design/StreamDesign";
|
|
2
|
+
import { StreamNode } from "../space/execution";
|
|
3
|
+
export type DebugCommand = ContinueDebugCommand | StepBackDebugCommand | StepForwardDebugCommand | SetValueDebugCommand | ReplaceNodeDebugCommand | RestartDebugCommand;
|
|
2
4
|
export declare enum CommandType {
|
|
3
5
|
CONTINUE = "CONTINUE",
|
|
4
6
|
STEP_BACK = "STEP_BACK",
|
|
5
7
|
STEP_FORWARD = "STEP_FORWARD",
|
|
6
|
-
SET_VALUE = "SET_VALUE"
|
|
8
|
+
SET_VALUE = "SET_VALUE",
|
|
9
|
+
REPLACE_NODE = "REPLACE_NODE",
|
|
10
|
+
RESTART = "RESTART"
|
|
7
11
|
}
|
|
8
12
|
export type ContinueDebugCommand = {
|
|
9
13
|
type: CommandType.CONTINUE;
|
|
@@ -20,3 +24,20 @@ export type SetValueDebugCommand = {
|
|
|
20
24
|
key: string;
|
|
21
25
|
value: unknown;
|
|
22
26
|
};
|
|
27
|
+
export type ReplaceNodeDebugCommand = {
|
|
28
|
+
type: CommandType.REPLACE_NODE;
|
|
29
|
+
node: DesignerNode;
|
|
30
|
+
};
|
|
31
|
+
export type RestartDebugCommand = {
|
|
32
|
+
type: CommandType.RESTART;
|
|
33
|
+
};
|
|
34
|
+
export type IssuedDebugCommand = IssuedContinueDebugCommand | IssuedStepBackDebugCommand | IssuedStepForwardDebugCommand | IssuedSetValueDebugCommand | IssuedReplaceNodeDebugCommand | IssuedRestartDebugCommand;
|
|
35
|
+
export type IssuedContinueDebugCommand = ContinueDebugCommand;
|
|
36
|
+
export type IssuedStepBackDebugCommand = StepBackDebugCommand;
|
|
37
|
+
export type IssuedStepForwardDebugCommand = StepForwardDebugCommand;
|
|
38
|
+
export type IssuedSetValueDebugCommand = SetValueDebugCommand;
|
|
39
|
+
export type IssuedReplaceNodeDebugCommand = {
|
|
40
|
+
type: CommandType.REPLACE_NODE;
|
|
41
|
+
node: StreamNode;
|
|
42
|
+
};
|
|
43
|
+
export type IssuedRestartDebugCommand = RestartDebugCommand;
|
|
@@ -7,4 +7,6 @@ var CommandType;
|
|
|
7
7
|
CommandType["STEP_BACK"] = "STEP_BACK";
|
|
8
8
|
CommandType["STEP_FORWARD"] = "STEP_FORWARD";
|
|
9
9
|
CommandType["SET_VALUE"] = "SET_VALUE";
|
|
10
|
+
CommandType["REPLACE_NODE"] = "REPLACE_NODE";
|
|
11
|
+
CommandType["RESTART"] = "RESTART";
|
|
10
12
|
})(CommandType || (exports.CommandType = CommandType = {}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export * from "./space";
|
|
2
2
|
export * from "./wave";
|
|
3
3
|
export * from "./space/event";
|
|
4
|
-
export * from "./space/webhook";
|
|
5
|
-
export * from "./space/secret";
|
|
6
|
-
export * from "./space/event/stream";
|
|
7
|
-
export * from "./space/event/stream/design";
|
|
8
|
-
export * from "./space/event";
|
|
9
4
|
export * from "./space/event/stream";
|
|
10
5
|
export * from "./space/event/stream/design";
|
|
11
6
|
export * from "./space/event/stream/node";
|
|
12
7
|
export * from "./space/webhook";
|
|
13
8
|
export * from "./space/secret";
|
|
14
|
-
export * from "./joinToken";
|
|
15
9
|
export * from "./space/pool";
|
|
16
|
-
export * from "./
|
|
10
|
+
export * from "./space/database";
|
|
11
|
+
export * from "./space/database/document";
|
|
12
|
+
export * from "./execution";
|
|
13
|
+
export * from "./joinToken";
|
|
14
|
+
export * from "./space/job";
|
|
15
|
+
export * from "./space/job/JobLog";
|
|
16
|
+
export * from "./stats";
|
|
@@ -17,16 +17,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./space"), exports);
|
|
18
18
|
__exportStar(require("./wave"), exports);
|
|
19
19
|
__exportStar(require("./space/event"), exports);
|
|
20
|
-
__exportStar(require("./space/webhook"), exports);
|
|
21
|
-
__exportStar(require("./space/secret"), exports);
|
|
22
|
-
__exportStar(require("./space/event/stream"), exports);
|
|
23
|
-
__exportStar(require("./space/event/stream/design"), exports);
|
|
24
|
-
__exportStar(require("./space/event"), exports);
|
|
25
20
|
__exportStar(require("./space/event/stream"), exports);
|
|
26
21
|
__exportStar(require("./space/event/stream/design"), exports);
|
|
27
22
|
__exportStar(require("./space/event/stream/node"), exports);
|
|
28
23
|
__exportStar(require("./space/webhook"), exports);
|
|
29
24
|
__exportStar(require("./space/secret"), exports);
|
|
30
|
-
__exportStar(require("./joinToken"), exports);
|
|
31
25
|
__exportStar(require("./space/pool"), exports);
|
|
32
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./space/database"), exports);
|
|
27
|
+
__exportStar(require("./space/database/document"), exports);
|
|
28
|
+
__exportStar(require("./execution"), exports);
|
|
29
|
+
__exportStar(require("./joinToken"), exports);
|
|
30
|
+
__exportStar(require("./space/job"), exports);
|
|
31
|
+
__exportStar(require("./space/job/JobLog"), exports);
|
|
32
|
+
__exportStar(require("./stats"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReducedSpace } from "../../../../global";
|
|
2
|
+
import { ReducedOrganization } from "../../../../idp/organization";
|
|
3
|
+
import { ReducedUser } from "../../../../idp/user";
|
|
4
|
+
declare enum DocumentType {
|
|
5
|
+
STRING = "STRING",
|
|
6
|
+
NUMBER = "NUMBER",
|
|
7
|
+
BOOLEAN = "BOOLEAN",
|
|
8
|
+
STRING_LIST = "STRING_LIST",
|
|
9
|
+
NUMBER_LIST = "NUMBER_LIST",
|
|
10
|
+
BOOLEAN_LIST = "BOOLEAN_LIST",
|
|
11
|
+
OBJECT = "OBJECT",
|
|
12
|
+
ARRAY = "ARRAY"
|
|
13
|
+
}
|
|
14
|
+
interface Document {
|
|
15
|
+
_id: string;
|
|
16
|
+
key: string;
|
|
17
|
+
database: string;
|
|
18
|
+
space: ReducedSpace;
|
|
19
|
+
organization: ReducedOrganization;
|
|
20
|
+
creator: ReducedUser;
|
|
21
|
+
type: DocumentType;
|
|
22
|
+
value: any;
|
|
23
|
+
createDate: number;
|
|
24
|
+
modifyDate: number;
|
|
25
|
+
}
|
|
26
|
+
interface DocumentCreateDto {
|
|
27
|
+
key: string;
|
|
28
|
+
type: DocumentType;
|
|
29
|
+
value: any;
|
|
30
|
+
}
|
|
31
|
+
interface DocumentPatchDto {
|
|
32
|
+
value: any;
|
|
33
|
+
}
|
|
34
|
+
export { Document, DocumentCreateDto, DocumentPatchDto, DocumentType };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentType = void 0;
|
|
4
|
+
var DocumentType;
|
|
5
|
+
(function (DocumentType) {
|
|
6
|
+
DocumentType["STRING"] = "STRING";
|
|
7
|
+
DocumentType["NUMBER"] = "NUMBER";
|
|
8
|
+
DocumentType["BOOLEAN"] = "BOOLEAN";
|
|
9
|
+
DocumentType["STRING_LIST"] = "STRING_LIST";
|
|
10
|
+
DocumentType["NUMBER_LIST"] = "NUMBER_LIST";
|
|
11
|
+
DocumentType["BOOLEAN_LIST"] = "BOOLEAN_LIST";
|
|
12
|
+
DocumentType["OBJECT"] = "OBJECT";
|
|
13
|
+
DocumentType["ARRAY"] = "ARRAY";
|
|
14
|
+
})(DocumentType || (exports.DocumentType = DocumentType = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReducedSpace } from "../../../global";
|
|
2
|
+
import { ReducedOrganization } from "../../../idp/organization";
|
|
3
|
+
import { ReducedUser } from "../../../idp/user";
|
|
4
|
+
interface Database {
|
|
5
|
+
_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
space: ReducedSpace;
|
|
8
|
+
organization: ReducedOrganization;
|
|
9
|
+
creator: ReducedUser;
|
|
10
|
+
createDate: number;
|
|
11
|
+
}
|
|
12
|
+
export { Database };
|
|
@@ -32,6 +32,13 @@ export interface DesignerNodeCatalog {
|
|
|
32
32
|
export type StringMap = {
|
|
33
33
|
[key: string]: string;
|
|
34
34
|
};
|
|
35
|
+
export type SortedStringMap = {
|
|
36
|
+
id: number;
|
|
37
|
+
value: {
|
|
38
|
+
key: string;
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
35
42
|
export interface DesignerNodeInput {
|
|
36
43
|
uuid: string;
|
|
37
44
|
name: string;
|
|
@@ -39,8 +46,8 @@ export interface DesignerNodeInput {
|
|
|
39
46
|
advanced?: boolean;
|
|
40
47
|
type: StreamNodeSpecificationInputType;
|
|
41
48
|
selectedLanguage?: StringMap;
|
|
42
|
-
example: string | number | boolean | string[] | StringMap | StringMap[];
|
|
43
|
-
value?: string | number | boolean | string[] | StringMap | StringMap[];
|
|
49
|
+
example: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
|
|
50
|
+
value?: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
|
|
44
51
|
mandatory?: boolean;
|
|
45
52
|
}
|
|
46
53
|
export interface DesignerNodeConnector {
|
|
@@ -4,6 +4,10 @@ import { StreamNodeSpecificationInputType, StreamNodeSpecificationOutputType } f
|
|
|
4
4
|
export declare enum NodeCategory {
|
|
5
5
|
CUSTOM = "CUSTOM"
|
|
6
6
|
}
|
|
7
|
+
export declare enum NodeType {
|
|
8
|
+
CUSTOM = "CUSTOM",
|
|
9
|
+
CATALOG = "CATALOG"
|
|
10
|
+
}
|
|
7
11
|
export interface Node {
|
|
8
12
|
_id: string;
|
|
9
13
|
secret: string;
|
|
@@ -22,6 +26,8 @@ export interface Node {
|
|
|
22
26
|
*/
|
|
23
27
|
createDate: number;
|
|
24
28
|
modifyDate: number;
|
|
29
|
+
color: string;
|
|
30
|
+
nodeType: NodeType;
|
|
25
31
|
}
|
|
26
32
|
export interface StreamNodeResolvedInputs {
|
|
27
33
|
name: string;
|
|
@@ -58,15 +64,17 @@ export interface StreamSingleNodeResult {
|
|
|
58
64
|
nodeResults?: StreamSingleNodeResult[];
|
|
59
65
|
info?: NodeInfo;
|
|
60
66
|
waiting?: boolean;
|
|
67
|
+
additionalConnectorRoot?: string;
|
|
61
68
|
}
|
|
62
69
|
type NodeInfo = {
|
|
63
70
|
runTime: number;
|
|
64
|
-
catalog
|
|
71
|
+
catalog?: {
|
|
65
72
|
name?: string;
|
|
66
|
-
_id?: string;
|
|
67
73
|
url: string;
|
|
68
74
|
version: string;
|
|
69
75
|
};
|
|
76
|
+
color?: string;
|
|
77
|
+
nodeType?: NodeType;
|
|
70
78
|
};
|
|
71
79
|
export interface StreamNodeAdditionalConnector {
|
|
72
80
|
name: string;
|