hcloud-sdk 20.4.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +28 -2
- package/lib/helper/ValidationHelper.js +1 -1
- package/lib/interfaces/cosmo/asset/index.d.ts +12 -3
- package/lib/interfaces/cosmo/asset/index.js +1 -0
- package/lib/interfaces/cosmo/comment/index.d.ts +19 -2
- package/lib/interfaces/cosmo/comment/index.js +17 -1
- package/lib/interfaces/cosmo/share/index.d.ts +19 -0
- package/lib/interfaces/cosmo/share/index.js +13 -1
- package/lib/interfaces/cosmo/space/index.d.ts +32 -0
- package/lib/interfaces/cosmo/space/index.js +6 -0
- package/lib/interfaces/high5/space/database/document/index.d.ts +14 -6
- package/lib/interfaces/high5/space/database/document/index.js +1 -0
- package/lib/interfaces/high5/space/job/index.d.ts +9 -10
- package/lib/interfaces/high5/space/job/index.js +2 -1
- package/lib/interfaces/idp/organization/index.d.ts +1 -1
- package/lib/interfaces/idp/organization/index.js +1 -1
- package/lib/interfaces/mailer/index.d.ts +76 -20
- package/lib/interfaces/mailer/index.js +244 -49
- package/lib/interfaces/nats/index.d.ts +4 -0
- package/lib/interfaces/nats/index.js +5 -0
- package/lib/service/cosmo/asset/index.d.ts +43 -1
- package/lib/service/cosmo/asset/index.js +48 -0
- package/lib/service/cosmo/index.d.ts +3 -0
- package/lib/service/cosmo/index.js +7 -0
- package/lib/service/cosmo/share/index.d.ts +15 -7
- package/lib/service/cosmo/share/index.js +17 -7
- package/lib/service/cosmo/space/index.d.ts +25 -1
- package/lib/service/cosmo/space/index.js +30 -0
- package/lib/service/cosmo/stack/index.d.ts +68 -0
- package/lib/service/cosmo/stack/index.js +102 -0
- package/lib/service/high5/space/database/document/{array → collection}/index.d.ts +25 -1
- package/lib/service/high5/space/database/document/{array → collection}/index.js +33 -3
- package/lib/service/high5/space/database/document/index.d.ts +16 -4
- package/lib/service/high5/space/database/document/index.js +20 -5
- package/lib/service/high5/space/job/index.d.ts +3 -2
- package/lib/service/high5/space/job/index.js +3 -2
- package/lib/service/mailer/internal/index.d.ts +12 -3
- package/lib/service/mailer/internal/index.js +13 -1
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
## [
|
|
1
|
+
## [21.0.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v20.4.0...v21.0.0) (2026-06-11)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* replace MAYBE_GUEST with GUEST
|
|
2
6
|
|
|
3
7
|
### Features
|
|
4
8
|
|
|
5
|
-
* add
|
|
9
|
+
* add - to be allowed char for tag names ([9666ed4](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9666ed4ad1ca1643447aca5495241afdc47afccb))
|
|
10
|
+
* add asset versioning and browsing ([4e40635](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/4e406351ff9f7e2d1808561460ae2a3b39fbdcab))
|
|
11
|
+
* add email status to shares ([b9efb8c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b9efb8c2f40ccb8014bfcdd3740663b9a415807f))
|
|
12
|
+
* add EmailCooldown response on 200 status code for share resend emails ([fc7371a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/fc7371ab619c2432a7c688caf0eeef4844e41165))
|
|
13
|
+
* add endpoins introduced in cosmo ([46b3570](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/46b35704b4a88a97ed544a0816eef0e28ed23192))
|
|
14
|
+
* add endpoint to fetch the assets vtt ([b8e00a7](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b8e00a7597c10322432c5e06c8abb8c179a11a9b))
|
|
15
|
+
* add mailer send resend endpoint; refacor: mail instances ([888414e](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/888414e7f458ee9a8de188f23b3a1acf66ae4dea))
|
|
16
|
+
* **ci:** move release trigger to main ([c5e6d3f](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/c5e6d3f8e9ea9f77302dcc47937f6dcae05cc36d))
|
|
17
|
+
* **high5-document:** add optional ttl parameter ([1425f75](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1425f75c5b882434df3b19a2805bcc8d77087b8d))
|
|
18
|
+
* **high5:** add ANY document type support ([975fb02](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/975fb02c2e6a16f697b2cf0ab9ccabf751306cc7))
|
|
19
|
+
* **high5:** add partial update and key deletion for object documents ([de05ff0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/de05ff01a57ed285f06217d1c601273b1256018f))
|
|
20
|
+
* **high5:** implement upsert document endpoint ([53a2820](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/53a282060ad3351395d98c1824f96a5345fef025))
|
|
21
|
+
* **high5:** update cronjob methods to support schedule presets ([60b06a8](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/60b06a8fbcdde69e507e5abbbb2b1d1500f18894))
|
|
22
|
+
* implement sendMentionNotification for comment for all users ([1341089](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/1341089f53e8fb23469badf53c626823e8fb40e7))
|
|
23
|
+
* implements colorcode enum for comment and marker color ([3689405](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/368940591a8cf78c80e55620feef0a30b52a843a))
|
|
24
|
+
* implements visibility field in comment to toggle internal and external visibility ([80c43bb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/80c43bb54c6c211ecccf6b5d872f9f69766ae659))
|
|
25
|
+
* replace MAYBE_GUEST with GUEST ([1792079](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/17920793ef7fa876262dc0fb5abc98ee866da7a1))
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* lint changes ([b1a0712](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b1a0712f8bd7cf056657815d41266395325a5734))
|
|
30
|
+
* make timestamp out optional ([673b769](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/673b76982d3756dbd4d8886835c62a73d8ee89ab))
|
|
31
|
+
* re-allow whitespace on tag names ([e01c87b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/e01c87b0e56cc5bd55af1dcd2a530c11bfe9666e))
|
|
@@ -19,7 +19,8 @@ export interface BaseAsset {
|
|
|
19
19
|
purgeAt?: number;
|
|
20
20
|
deletedAt?: number;
|
|
21
21
|
}
|
|
22
|
-
export type Asset = BaseAsset & (
|
|
22
|
+
export type Asset = BaseAsset & (MediaAsset | Stack | Production | Folder | AssetReference);
|
|
23
|
+
export type MediaAsset = {
|
|
23
24
|
type: ItemType.MEDIA_ASSET;
|
|
24
25
|
extension: string;
|
|
25
26
|
assetType: AssetType;
|
|
@@ -43,7 +44,7 @@ export type Asset = BaseAsset & ({
|
|
|
43
44
|
}>;
|
|
44
45
|
queuePosition?: number;
|
|
45
46
|
queueTotal?: number;
|
|
46
|
-
}
|
|
47
|
+
};
|
|
47
48
|
export type Production = {
|
|
48
49
|
type: ItemType.PRODUCTION;
|
|
49
50
|
};
|
|
@@ -57,6 +58,13 @@ export type AssetReference = {
|
|
|
57
58
|
status: string;
|
|
58
59
|
};
|
|
59
60
|
};
|
|
61
|
+
export type Stack = Omit<MediaAsset, "type"> & {
|
|
62
|
+
type: ItemType.STACK;
|
|
63
|
+
stack: {
|
|
64
|
+
version: number;
|
|
65
|
+
assetId: string;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
60
68
|
export declare enum AssetType {
|
|
61
69
|
VIDEO = "VIDEO",
|
|
62
70
|
IMAGE = "IMAGE",
|
|
@@ -73,7 +81,8 @@ export declare enum ItemType {
|
|
|
73
81
|
PROJECT = "PROJECT",
|
|
74
82
|
FOLDER = "FOLDER",
|
|
75
83
|
COMMENT = "COMMENT",
|
|
76
|
-
TAG = "TAG"
|
|
84
|
+
TAG = "TAG",
|
|
85
|
+
STACK = "STACK"
|
|
77
86
|
}
|
|
78
87
|
export declare enum UploadStatus {
|
|
79
88
|
WAITING = "WAITING",
|
|
@@ -8,6 +8,7 @@ export interface CreateComment {
|
|
|
8
8
|
mentions?: string[];
|
|
9
9
|
mentionsTeams?: string[];
|
|
10
10
|
metadata?: Record<string, Primitive | Primitive[]>;
|
|
11
|
+
visibility?: CommentVisibility;
|
|
11
12
|
}
|
|
12
13
|
export interface EditComment {
|
|
13
14
|
text: string;
|
|
@@ -17,6 +18,7 @@ export interface EditComment {
|
|
|
17
18
|
mentionsTeams?: string[];
|
|
18
19
|
completed?: boolean;
|
|
19
20
|
metadata?: Record<string, Primitive | Primitive[]>;
|
|
21
|
+
visibility?: CommentVisibility;
|
|
20
22
|
}
|
|
21
23
|
export declare enum CommentType {
|
|
22
24
|
COMMENT = "COMMENT",
|
|
@@ -32,6 +34,10 @@ export declare enum CommentSortDirection {
|
|
|
32
34
|
ASC = "ASC",
|
|
33
35
|
DESC = "DESC"
|
|
34
36
|
}
|
|
37
|
+
export declare enum CommentVisibility {
|
|
38
|
+
INTERNAL = "internal",
|
|
39
|
+
EXTERNAL = "external"
|
|
40
|
+
}
|
|
35
41
|
export interface Comment {
|
|
36
42
|
_id: string;
|
|
37
43
|
text: string;
|
|
@@ -48,13 +54,24 @@ export interface Comment {
|
|
|
48
54
|
completedBy?: ReducedUser;
|
|
49
55
|
completedAt?: number;
|
|
50
56
|
metadata?: Record<string, Primitive | Primitive[]>;
|
|
57
|
+
visibility?: CommentVisibility;
|
|
51
58
|
}
|
|
52
59
|
export interface Reply extends Omit<Comment, "timestamp" | "replies"> {
|
|
53
60
|
commentRef: string;
|
|
54
61
|
}
|
|
62
|
+
export declare enum CommentColor {
|
|
63
|
+
BLUE = "BLUE",
|
|
64
|
+
CYAN = "CYAN",
|
|
65
|
+
GREEN = "GREEN",
|
|
66
|
+
YELLOW = "YELLOW",
|
|
67
|
+
RED = "RED",
|
|
68
|
+
ORANGE = "ORANGE",
|
|
69
|
+
LAVENDER = "LAVENDER",
|
|
70
|
+
WHITE = "WHITE"
|
|
71
|
+
}
|
|
55
72
|
export interface Timestamp {
|
|
56
73
|
in: number;
|
|
57
|
-
out
|
|
58
|
-
color:
|
|
74
|
+
out?: number;
|
|
75
|
+
color: CommentColor;
|
|
59
76
|
}
|
|
60
77
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommentSortDirection = exports.CommentSortField = exports.CommentType = void 0;
|
|
3
|
+
exports.CommentColor = exports.CommentVisibility = exports.CommentSortDirection = exports.CommentSortField = exports.CommentType = void 0;
|
|
4
4
|
var CommentType;
|
|
5
5
|
(function (CommentType) {
|
|
6
6
|
CommentType["COMMENT"] = "COMMENT";
|
|
@@ -18,3 +18,19 @@ var CommentSortDirection;
|
|
|
18
18
|
CommentSortDirection["ASC"] = "ASC";
|
|
19
19
|
CommentSortDirection["DESC"] = "DESC";
|
|
20
20
|
})(CommentSortDirection || (exports.CommentSortDirection = CommentSortDirection = {}));
|
|
21
|
+
var CommentVisibility;
|
|
22
|
+
(function (CommentVisibility) {
|
|
23
|
+
CommentVisibility["INTERNAL"] = "internal";
|
|
24
|
+
CommentVisibility["EXTERNAL"] = "external";
|
|
25
|
+
})(CommentVisibility || (exports.CommentVisibility = CommentVisibility = {}));
|
|
26
|
+
var CommentColor;
|
|
27
|
+
(function (CommentColor) {
|
|
28
|
+
CommentColor["BLUE"] = "BLUE";
|
|
29
|
+
CommentColor["CYAN"] = "CYAN";
|
|
30
|
+
CommentColor["GREEN"] = "GREEN";
|
|
31
|
+
CommentColor["YELLOW"] = "YELLOW";
|
|
32
|
+
CommentColor["RED"] = "RED";
|
|
33
|
+
CommentColor["ORANGE"] = "ORANGE";
|
|
34
|
+
CommentColor["LAVENDER"] = "LAVENDER";
|
|
35
|
+
CommentColor["WHITE"] = "WHITE";
|
|
36
|
+
})(CommentColor || (exports.CommentColor = CommentColor = {}));
|
|
@@ -50,6 +50,21 @@ export interface Share {
|
|
|
50
50
|
publicLink?: PublicLink;
|
|
51
51
|
users?: (User | ReducedUser | ShareReducedUnlinkedUser)[];
|
|
52
52
|
waiting: boolean;
|
|
53
|
+
emailStatus?: {
|
|
54
|
+
email: string;
|
|
55
|
+
status: EmailStatus;
|
|
56
|
+
}[];
|
|
57
|
+
}
|
|
58
|
+
export declare enum EmailStatus {
|
|
59
|
+
OPENED = "OPENED",
|
|
60
|
+
SENT = "SENT",
|
|
61
|
+
CLICKED = "CLICKED",
|
|
62
|
+
FAILED = "FAILED",
|
|
63
|
+
BOUNCED = "BOUNCED",
|
|
64
|
+
BLOCKED = "BLOCKED",
|
|
65
|
+
NOT_SENT = "NOT_SENT",
|
|
66
|
+
SPAM = "SPAM",
|
|
67
|
+
UNKNOWN = "UNKNOWN"
|
|
53
68
|
}
|
|
54
69
|
/**
|
|
55
70
|
* Represents the payload for creating a new share.
|
|
@@ -123,3 +138,7 @@ export declare enum ShareNamespacePermissionGroup {
|
|
|
123
138
|
ENABLE_TAGS = "ENABLE_TAGS",
|
|
124
139
|
VIEW_ASSET_METADATA = "VIEW_ASSET_METADATA"
|
|
125
140
|
}
|
|
141
|
+
export interface EmailCooldown {
|
|
142
|
+
message: "Some emails were in cooldown and were not resent";
|
|
143
|
+
emailsInCooldown: string[];
|
|
144
|
+
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShareNamespacePermissionGroup = exports.ShareAssetPermissionGroup = void 0;
|
|
3
|
+
exports.ShareNamespacePermissionGroup = exports.ShareAssetPermissionGroup = exports.EmailStatus = void 0;
|
|
4
|
+
var EmailStatus;
|
|
5
|
+
(function (EmailStatus) {
|
|
6
|
+
EmailStatus["OPENED"] = "OPENED";
|
|
7
|
+
EmailStatus["SENT"] = "SENT";
|
|
8
|
+
EmailStatus["CLICKED"] = "CLICKED";
|
|
9
|
+
EmailStatus["FAILED"] = "FAILED";
|
|
10
|
+
EmailStatus["BOUNCED"] = "BOUNCED";
|
|
11
|
+
EmailStatus["BLOCKED"] = "BLOCKED";
|
|
12
|
+
EmailStatus["NOT_SENT"] = "NOT_SENT";
|
|
13
|
+
EmailStatus["SPAM"] = "SPAM";
|
|
14
|
+
EmailStatus["UNKNOWN"] = "UNKNOWN";
|
|
15
|
+
})(EmailStatus || (exports.EmailStatus = EmailStatus = {}));
|
|
4
16
|
var ShareAssetPermissionGroup;
|
|
5
17
|
(function (ShareAssetPermissionGroup) {
|
|
6
18
|
ShareAssetPermissionGroup["VIEW_ASSETS_ONLY"] = "VIEW_ASSETS_ONLY";
|
|
@@ -13,6 +13,7 @@ export interface CosmoSpace {
|
|
|
13
13
|
high5_executionTarget?: string;
|
|
14
14
|
permissions?: string[];
|
|
15
15
|
storageUsed: number;
|
|
16
|
+
storage: ReducedStorage;
|
|
16
17
|
}
|
|
17
18
|
export interface High5SpaceInfo {
|
|
18
19
|
high5_spaceName: string;
|
|
@@ -29,3 +30,34 @@ export interface TrashPolicy {
|
|
|
29
30
|
enabled: boolean;
|
|
30
31
|
ttlDays?: number;
|
|
31
32
|
}
|
|
33
|
+
export declare enum StorageType {
|
|
34
|
+
S3 = "S3",
|
|
35
|
+
TAMS = "TAMS"
|
|
36
|
+
}
|
|
37
|
+
export type ReducedStorage = {
|
|
38
|
+
name: string;
|
|
39
|
+
type: StorageType;
|
|
40
|
+
bucket: string;
|
|
41
|
+
valid: boolean;
|
|
42
|
+
error?: string;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
export type Storage = ReducedStorage & {
|
|
46
|
+
region: string;
|
|
47
|
+
endpoint: string;
|
|
48
|
+
accessKeyId: string;
|
|
49
|
+
secretAccessKey: string;
|
|
50
|
+
};
|
|
51
|
+
export type SpacePatchStorageDto = {
|
|
52
|
+
name: string;
|
|
53
|
+
endpoint: string;
|
|
54
|
+
bucket: string;
|
|
55
|
+
region: string;
|
|
56
|
+
type: StorageType;
|
|
57
|
+
accessKeyId: string;
|
|
58
|
+
secretAccessKey: string;
|
|
59
|
+
};
|
|
60
|
+
export type SpacePatchStorageValidationDto = {
|
|
61
|
+
valid: boolean;
|
|
62
|
+
error: string;
|
|
63
|
+
};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageType = void 0;
|
|
4
|
+
var StorageType;
|
|
5
|
+
(function (StorageType) {
|
|
6
|
+
StorageType["S3"] = "S3";
|
|
7
|
+
StorageType["TAMS"] = "TAMS";
|
|
8
|
+
})(StorageType || (exports.StorageType = StorageType = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReducedSpace } from "../../../../global";
|
|
2
2
|
import { ReducedOrganization } from "../../../../idp/organization";
|
|
3
3
|
import { ReducedUser } from "../../../../idp/user";
|
|
4
|
-
declare enum DocumentType {
|
|
4
|
+
export declare enum DocumentType {
|
|
5
5
|
STRING = "STRING",
|
|
6
6
|
NUMBER = "NUMBER",
|
|
7
7
|
BOOLEAN = "BOOLEAN",
|
|
@@ -9,9 +9,10 @@ declare enum DocumentType {
|
|
|
9
9
|
NUMBER_LIST = "NUMBER_LIST",
|
|
10
10
|
BOOLEAN_LIST = "BOOLEAN_LIST",
|
|
11
11
|
OBJECT = "OBJECT",
|
|
12
|
-
ARRAY = "ARRAY"
|
|
12
|
+
ARRAY = "ARRAY",
|
|
13
|
+
ANY = "ANY"
|
|
13
14
|
}
|
|
14
|
-
interface Document {
|
|
15
|
+
export interface Document {
|
|
15
16
|
_id: string;
|
|
16
17
|
key: string;
|
|
17
18
|
database: string;
|
|
@@ -20,15 +21,22 @@ interface Document {
|
|
|
20
21
|
creator: ReducedUser;
|
|
21
22
|
type: DocumentType;
|
|
22
23
|
value: any;
|
|
24
|
+
ttl?: number;
|
|
23
25
|
createDate: number;
|
|
24
26
|
modifyDate: number;
|
|
25
27
|
}
|
|
26
|
-
interface DocumentCreateDto {
|
|
28
|
+
export interface DocumentCreateDto {
|
|
27
29
|
key: string;
|
|
28
30
|
type: DocumentType;
|
|
29
31
|
value: any;
|
|
32
|
+
ttl?: number;
|
|
30
33
|
}
|
|
31
|
-
interface DocumentPatchDto {
|
|
34
|
+
export interface DocumentPatchDto {
|
|
32
35
|
value: any;
|
|
36
|
+
ttl?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface DocumentUpsertDto extends DocumentPatchDto {
|
|
39
|
+
key?: string;
|
|
40
|
+
type?: DocumentType;
|
|
41
|
+
ttl?: number;
|
|
33
42
|
}
|
|
34
|
-
export { Document, DocumentCreateDto, DocumentPatchDto, DocumentType };
|
|
@@ -2,7 +2,7 @@ import { ReducedSpace } from "../../../global";
|
|
|
2
2
|
import { ReducedOrganization } from "../../../idp/organization";
|
|
3
3
|
import { ReducedUser } from "../../../idp/user";
|
|
4
4
|
import { ReducedEvent } from "../event";
|
|
5
|
-
declare enum IntervalType {
|
|
5
|
+
export declare enum IntervalType {
|
|
6
6
|
MINUTE = "minute",
|
|
7
7
|
HOUR = "hour",
|
|
8
8
|
DAY = "day",
|
|
@@ -10,26 +10,26 @@ declare enum IntervalType {
|
|
|
10
10
|
YEAR = "year",
|
|
11
11
|
CUSTOM = "custom"
|
|
12
12
|
}
|
|
13
|
-
interface MinuteCronjob {
|
|
13
|
+
export interface MinuteCronjob {
|
|
14
14
|
type: IntervalType.MINUTE;
|
|
15
15
|
values: {
|
|
16
16
|
minute: number;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
interface HourCronjob {
|
|
19
|
+
export interface HourCronjob {
|
|
20
20
|
type: IntervalType.HOUR;
|
|
21
21
|
values: {
|
|
22
22
|
hour: number;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
interface DayCronjob {
|
|
25
|
+
export interface DayCronjob {
|
|
26
26
|
type: IntervalType.DAY;
|
|
27
27
|
values: {
|
|
28
28
|
hour: number;
|
|
29
29
|
minute: number;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
interface MonthCronjob {
|
|
32
|
+
export interface MonthCronjob {
|
|
33
33
|
type: IntervalType.MONTH;
|
|
34
34
|
values: {
|
|
35
35
|
day: number;
|
|
@@ -37,7 +37,7 @@ interface MonthCronjob {
|
|
|
37
37
|
minute: number;
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
interface YearCronjob {
|
|
40
|
+
export interface YearCronjob {
|
|
41
41
|
type: IntervalType.YEAR;
|
|
42
42
|
values: {
|
|
43
43
|
month: number;
|
|
@@ -46,7 +46,7 @@ interface YearCronjob {
|
|
|
46
46
|
minute: number;
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
interface CustomCronjob {
|
|
49
|
+
export interface CustomCronjob {
|
|
50
50
|
type: IntervalType.CUSTOM;
|
|
51
51
|
values: {
|
|
52
52
|
year: number;
|
|
@@ -56,7 +56,7 @@ interface CustomCronjob {
|
|
|
56
56
|
minute: number;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
type CronjobType = MinuteCronjob | HourCronjob | DayCronjob | MonthCronjob | YearCronjob | CustomCronjob;
|
|
59
|
+
export type CronjobType = MinuteCronjob | HourCronjob | DayCronjob | MonthCronjob | YearCronjob | CustomCronjob;
|
|
60
60
|
export interface Job {
|
|
61
61
|
_id: string;
|
|
62
62
|
name: string;
|
|
@@ -77,7 +77,6 @@ export interface Job {
|
|
|
77
77
|
lastTriggered?: number;
|
|
78
78
|
time?: CronjobType;
|
|
79
79
|
}
|
|
80
|
-
export type JobCreate = Pick<Job, "name" | "expression" | "
|
|
80
|
+
export type JobCreate = Pick<Job, "name" | "expression" | "timezone" | "payload" | "enabled" | "description" | "target" | "lastStatus" | "lastTriggered" | "time"> & {
|
|
81
81
|
targetEvent: string;
|
|
82
82
|
};
|
|
83
|
-
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntervalType = void 0;
|
|
3
4
|
var IntervalType;
|
|
4
5
|
(function (IntervalType) {
|
|
5
6
|
IntervalType["MINUTE"] = "minute";
|
|
@@ -8,4 +9,4 @@ var IntervalType;
|
|
|
8
9
|
IntervalType["MONTH"] = "month";
|
|
9
10
|
IntervalType["YEAR"] = "year";
|
|
10
11
|
IntervalType["CUSTOM"] = "custom";
|
|
11
|
-
})(IntervalType || (IntervalType = {}));
|
|
12
|
+
})(IntervalType || (exports.IntervalType = IntervalType = {}));
|
|
@@ -4,7 +4,7 @@ import { ReducedTeam } from "./team";
|
|
|
4
4
|
export * from "./license";
|
|
5
5
|
export * from "./stats";
|
|
6
6
|
export declare enum OrganizationRole {
|
|
7
|
-
|
|
7
|
+
GUEST = "GUEST",// Role used for guests that have actually no access to an org
|
|
8
8
|
MEMBER = "MEMBER",// Part of org, but cannot change anything
|
|
9
9
|
MANAGER = "MANAGER",// Can update members
|
|
10
10
|
ADMIN = "ADMIN",// Can update org and members
|
|
@@ -19,7 +19,7 @@ __exportStar(require("./license"), exports);
|
|
|
19
19
|
__exportStar(require("./stats"), exports);
|
|
20
20
|
var OrganizationRole;
|
|
21
21
|
(function (OrganizationRole) {
|
|
22
|
-
OrganizationRole["
|
|
22
|
+
OrganizationRole["GUEST"] = "GUEST";
|
|
23
23
|
OrganizationRole["MEMBER"] = "MEMBER";
|
|
24
24
|
OrganizationRole["MANAGER"] = "MANAGER";
|
|
25
25
|
OrganizationRole["ADMIN"] = "ADMIN";
|
|
@@ -28,9 +28,10 @@ export interface MustacheMail extends Mail {
|
|
|
28
28
|
html: string;
|
|
29
29
|
replacements: MailReplacement[];
|
|
30
30
|
}
|
|
31
|
-
declare enum
|
|
31
|
+
export declare enum MailTemplate {
|
|
32
32
|
IDP_NEW_REGISTRATION = "IDP_NEW_REGISTRATION",
|
|
33
33
|
IDP_NEW_REGISTRATION_CUSTOMER = "IDP_NEW_REGISTRATION_CUSTOMER",
|
|
34
|
+
IDP_NEW_CLOSED_REGISTRATION = "IDP_NEW_CLOSED_REGISTRATION",
|
|
34
35
|
IDP_INVITE_TO_ORGANIZATION = "IDP_INVITE_TO_ORGANIZATION",
|
|
35
36
|
IDP_RESET_PASSWORD = "IDP_RESET_PASSWORD",
|
|
36
37
|
IDP_REGISTRATION_AND_INVITATION = "IDP_REGISTRATION_AND_INVITATION",
|
|
@@ -40,12 +41,13 @@ declare enum MailjetTemplate {
|
|
|
40
41
|
COSMO_USER_ADDED_TO_SPACE = "COSMO_USER_ADDED_TO_SPACE",
|
|
41
42
|
COSMO_USER_REMOVED_FROM_SPACE = "COSMO_USER_REMOVED_FROM_SPACE",
|
|
42
43
|
COSMO_COMMENT_ADDED = "COSMO_COMMENT_ADDED",
|
|
44
|
+
COSMO_COMMENT_MENTION = "COSMO_COMMENT_MENTION",
|
|
43
45
|
COSMO_REPLIED_TO_COMMENT = "COSMO_REPLIED_TO_COMMENT",
|
|
44
46
|
COSMO_ASSET_STATUS_CHANGED = "COSMO_ASSET_STATUS_CHANGED",
|
|
45
47
|
COSMO_ASSET_UPLOADED_TO_SHARE = "COSMO_ASSET_UPLOADED_TO_SHARE",
|
|
46
48
|
COSMO_SHARE_PASSWORD_CHANGED = "COSMO_SHARE_PASSWORD_CHANGED"
|
|
47
49
|
}
|
|
48
|
-
interface
|
|
50
|
+
interface MailTemplateField {
|
|
49
51
|
[key: string]: string;
|
|
50
52
|
}
|
|
51
53
|
export type MailjetResponse = {
|
|
@@ -63,52 +65,106 @@ export type MailjetResponse = {
|
|
|
63
65
|
}
|
|
64
66
|
];
|
|
65
67
|
};
|
|
66
|
-
export
|
|
68
|
+
export interface ResendResponse {
|
|
69
|
+
emailId: string;
|
|
70
|
+
}
|
|
71
|
+
export declare abstract class MailDTO {
|
|
67
72
|
recipients: string[];
|
|
68
|
-
template:
|
|
69
|
-
fields:
|
|
70
|
-
constructor(recipients: string[], template:
|
|
73
|
+
template: MailTemplate;
|
|
74
|
+
fields: MailTemplateField;
|
|
75
|
+
constructor(recipients: string[], template: MailTemplate, fields: MailTemplateField);
|
|
71
76
|
}
|
|
72
|
-
export declare class IdpNewRegistrationMailjetMailDTO extends
|
|
77
|
+
export declare class IdpNewRegistrationMailjetMailDTO extends MailDTO {
|
|
73
78
|
constructor(recipients: string[], verifyLink: string, hcloudOriginalEmail: string, name: string, company: string);
|
|
74
79
|
}
|
|
75
|
-
export declare class IdpNewRegistrationMailjetMailToCustomerDTO extends
|
|
80
|
+
export declare class IdpNewRegistrationMailjetMailToCustomerDTO extends MailDTO {
|
|
76
81
|
constructor(recipients: string[], username: string);
|
|
77
82
|
}
|
|
78
|
-
export declare class IdpResetPasswordMailjetMailDTO extends
|
|
83
|
+
export declare class IdpResetPasswordMailjetMailDTO extends MailDTO {
|
|
79
84
|
constructor(recipients: string[], resetPasswordLink: string);
|
|
80
85
|
}
|
|
81
|
-
export declare class IdpInviteToOrganizationMailjetMailDto extends
|
|
86
|
+
export declare class IdpInviteToOrganizationMailjetMailDto extends MailDTO {
|
|
82
87
|
constructor(recipients: string[], approvalLink: string, inviteFromPerson: string, inviteToOrganization: string);
|
|
83
88
|
}
|
|
84
|
-
export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends
|
|
89
|
+
export declare class IdpRegisterAndInviteToOrganizationMailjetMailDto extends MailDTO {
|
|
85
90
|
constructor(recipients: string[], registerLink: string, inviteFromPerson: string, inviteToOrganization: string);
|
|
86
91
|
}
|
|
87
|
-
export declare class IdpUserLeftOrganizationMailjetMailDTO extends
|
|
92
|
+
export declare class IdpUserLeftOrganizationMailjetMailDTO extends MailDTO {
|
|
88
93
|
constructor(recipients: string[], userName: string, userEmail: string, organizationName: string);
|
|
89
94
|
}
|
|
90
|
-
export declare class IdpAccountApprovedMailjetMailDTO extends
|
|
95
|
+
export declare class IdpAccountApprovedMailjetMailDTO extends MailDTO {
|
|
91
96
|
constructor(recipients: string[], username: string, signInLink: string);
|
|
92
97
|
}
|
|
93
|
-
export declare class CosmoNewShareMailjetMailDTO extends
|
|
98
|
+
export declare class CosmoNewShareMailjetMailDTO extends MailDTO {
|
|
94
99
|
constructor(recipients: string[], shareLink: string);
|
|
95
100
|
}
|
|
96
|
-
export declare class CosmoUserAddedToSpaceMailjetMailDTO extends
|
|
101
|
+
export declare class CosmoUserAddedToSpaceMailjetMailDTO extends MailDTO {
|
|
97
102
|
constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string, link: string);
|
|
98
103
|
}
|
|
99
|
-
export declare class CosmoUserRemovedFromSpaceMailjetMailDTO extends
|
|
104
|
+
export declare class CosmoUserRemovedFromSpaceMailjetMailDTO extends MailDTO {
|
|
100
105
|
constructor(recipients: string[], actorName: string, recipientName: string, spaceName: string);
|
|
101
106
|
}
|
|
102
|
-
export declare class CosmoCommentOrAnnotationAddedMailjetMailDTO extends
|
|
107
|
+
export declare class CosmoCommentOrAnnotationAddedMailjetMailDTO extends MailDTO {
|
|
108
|
+
constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
|
|
109
|
+
}
|
|
110
|
+
export declare class CosmoCommentMentionMailjetMailDTO extends MailDTO {
|
|
103
111
|
constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
|
|
104
112
|
}
|
|
105
|
-
export declare class CosmoRepliedToCommentMailjetMailDTO extends
|
|
113
|
+
export declare class CosmoRepliedToCommentMailjetMailDTO extends MailDTO {
|
|
106
114
|
constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
|
|
107
115
|
}
|
|
108
|
-
export declare class CosmoAssetStatusChangedMailjetMailDTO extends
|
|
116
|
+
export declare class CosmoAssetStatusChangedMailjetMailDTO extends MailDTO {
|
|
109
117
|
constructor(recipients: string[], assetName: string, recipientName: string, actorName: string, newStatus: string, spaceName: string, link: string);
|
|
110
118
|
}
|
|
111
|
-
export declare class CosmoSharePasswordChangedMailjetMailDTO extends
|
|
119
|
+
export declare class CosmoSharePasswordChangedMailjetMailDTO extends MailDTO {
|
|
112
120
|
constructor(recipients: string[], recipientName: string, shareName: string, shareLink: string);
|
|
113
121
|
}
|
|
122
|
+
export declare class IdpNewRegistrationResendMailDTO extends MailDTO {
|
|
123
|
+
constructor(recipients: string[], name: string, email: string, company: string, link: string);
|
|
124
|
+
}
|
|
125
|
+
export declare class IdpNewRegistrationResendMailToCustomerDTO extends MailDTO {
|
|
126
|
+
constructor(recipients: string[], username: string);
|
|
127
|
+
}
|
|
128
|
+
export declare class IdpNewClosedRegistrationResendMailDTO extends MailDTO {
|
|
129
|
+
constructor(recipients: string[], name: string, email: string);
|
|
130
|
+
}
|
|
131
|
+
export declare class IdpResetPasswordResendMailDTO extends MailDTO {
|
|
132
|
+
constructor(recipients: string[], email: string, resetPasswordLink: string);
|
|
133
|
+
}
|
|
134
|
+
export declare class IdpInviteToOrganizationResendMailDto extends MailDTO {
|
|
135
|
+
constructor(recipients: string[], name: string, email: string, inviteFromPerson: string, inviteToOrganization: string, link: string);
|
|
136
|
+
}
|
|
137
|
+
export declare class IdpRegisterAndInviteToOrganizationResendMailDto extends MailDTO {
|
|
138
|
+
constructor(recipients: string[], email: string, inviteFromPerson: string, inviteToOrganization: string, link: string);
|
|
139
|
+
}
|
|
140
|
+
export declare class IdpUserLeftOrganizationResendMailDTO extends MailDTO {
|
|
141
|
+
constructor(recipients: string[], name: string, email: string, organizationName: string);
|
|
142
|
+
}
|
|
143
|
+
export declare class IdpAccountApprovedResendMailDTO extends MailDTO {
|
|
144
|
+
constructor(recipients: string[], username: string, signInLink: string);
|
|
145
|
+
}
|
|
146
|
+
export declare class CosmoNewShareResendMailDTO extends MailDTO {
|
|
147
|
+
constructor(recipients: string[], recipientEmail: string, shareLink: string);
|
|
148
|
+
}
|
|
149
|
+
export declare class CosmoUserAddedToSpaceResendMailDTO extends MailDTO {
|
|
150
|
+
constructor(recipients: string[], actorName: string, recipientName: string, recipientEmail: string, spaceName: string, link: string);
|
|
151
|
+
}
|
|
152
|
+
export declare class CosmoUserRemovedFromSpaceResendMailDTO extends MailDTO {
|
|
153
|
+
constructor(recipients: string[], actorName: string, recipientName: string, recipientEmail: string, spaceName: string);
|
|
154
|
+
}
|
|
155
|
+
export declare class CosmoCommentOrAnnotationAddedResendMailDTO extends MailDTO {
|
|
156
|
+
constructor(recipients: string[], assetName: string, recipientName: string, recipientEmail: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
|
|
157
|
+
}
|
|
158
|
+
export declare class CosmoCommentMentionResendMailDTO extends MailDTO {
|
|
159
|
+
constructor(recipients: string[], assetName: string, recipientName: string, recipientEmail: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
|
|
160
|
+
}
|
|
161
|
+
export declare class CosmoRepliedToCommentResendMailDTO extends MailDTO {
|
|
162
|
+
constructor(recipients: string[], assetName: string, recipientName: string, recipientEmail: string, actorName: string, commentSnippet: string, spaceName: string, link: string);
|
|
163
|
+
}
|
|
164
|
+
export declare class CosmoAssetStatusChangedResendMailDTO extends MailDTO {
|
|
165
|
+
constructor(recipients: string[], assetName: string, recipientName: string, recipientEmail: string, actorName: string, newStatus: string, spaceName: string, link: string);
|
|
166
|
+
}
|
|
167
|
+
export declare class CosmoSharePasswordChangedResendMailDTO extends MailDTO {
|
|
168
|
+
constructor(recipients: string[], recipientName: string, recipientEmail: string, shareName: string, shareLink: string);
|
|
169
|
+
}
|
|
114
170
|
export {};
|