hcloud-sdk 14.13.2 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +60 -806
- package/lib/Hcloud.d.ts +20 -10
- package/lib/Hcloud.js +60 -10
- package/lib/interfaces/auditor/index.d.ts +4 -2
- package/lib/interfaces/bouncer/features/index.d.ts +3 -6
- package/lib/interfaces/frontend/featureflags/index.d.ts +7 -0
- package/lib/interfaces/frontend/featureflags/index.js +2 -0
- package/lib/interfaces/high5/execution/index.d.ts +22 -0
- package/lib/interfaces/high5/execution/index.js +10 -0
- package/lib/interfaces/high5/index.d.ts +2 -2
- package/lib/interfaces/high5/index.js +2 -2
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +1 -0
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +16 -1
- package/lib/interfaces/high5/space/execution/index.d.ts +14 -0
- package/lib/interfaces/high5/space/pool/index.d.ts +30 -0
- package/lib/interfaces/high5/space/pool/index.js +9 -0
- package/lib/interfaces/high5/wave/changelog.d.ts +30 -0
- package/lib/interfaces/high5/wave/changelog.js +18 -0
- package/lib/interfaces/high5/wave/index.d.ts +48 -1
- package/lib/interfaces/high5/wave/index.js +14 -1
- package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +1 -0
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.js +21 -1
- package/lib/interfaces/idp/user/Totp.d.ts +4 -2
- package/lib/interfaces/idp/user/index.d.ts +1 -0
- package/lib/interfaces/mothership/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +35 -20
- package/lib/interfaces/nats/index.js +132 -94
- package/lib/service/agent/bundle/dev/index.d.ts +5 -2
- package/lib/service/agent/bundle/dev/index.js +30 -10
- package/lib/service/agent/context/index.d.ts +7 -9
- package/lib/service/agent/context/index.js +41 -32
- package/lib/service/agent/index.d.ts +9 -7
- package/lib/service/agent/index.js +23 -6
- package/lib/service/auditor/index.d.ts +6 -7
- package/lib/service/auditor/index.js +23 -17
- package/lib/service/auditor/internal/index.d.ts +2 -2
- package/lib/service/auditor/internal/index.js +24 -20
- package/lib/service/bouncer/features/index.d.ts +1 -1
- package/lib/service/bouncer/features/index.js +5 -3
- package/lib/service/bouncer/index.d.ts +3 -10
- package/lib/service/bouncer/index.js +6 -21
- package/lib/service/dali/DaliAvatar.d.ts +21 -11
- package/lib/service/dali/DaliAvatar.js +63 -8
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +5 -7
- package/lib/service/dali/avatar/DaliFuseSpace.js +29 -26
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +29 -0
- package/lib/service/dali/avatar/DaliHigh5Pool.js +61 -0
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +5 -7
- package/lib/service/dali/avatar/DaliHigh5Space.js +29 -26
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOAuthApp.js +26 -23
- package/lib/service/dali/avatar/DaliOrganization.d.ts +4 -6
- package/lib/service/dali/avatar/DaliOrganization.js +23 -20
- package/lib/service/dali/avatar/DaliTeam.d.ts +4 -6
- package/lib/service/dali/avatar/DaliTeam.js +26 -23
- package/lib/service/dali/avatar/DaliUser.d.ts +4 -6
- package/lib/service/dali/avatar/DaliUser.js +20 -17
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +14 -7
- package/lib/service/fuse/index.d.ts +8 -7
- package/lib/service/fuse/index.js +23 -9
- package/lib/service/fuse/internal/index.d.ts +3 -4
- package/lib/service/fuse/internal/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +3 -4
- package/lib/service/fuse/internal/space/cronjob/index.js +5 -3
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +2 -4
- package/lib/service/fuse/internal/space/cronjob/log/index.js +11 -12
- package/lib/service/fuse/internal/space/index.d.ts +5 -6
- package/lib/service/fuse/internal/space/index.js +24 -18
- package/lib/service/fuse/space/cronjob/index.d.ts +15 -15
- package/lib/service/fuse/space/cronjob/index.js +133 -105
- package/lib/service/fuse/space/cronjob/log/index.d.ts +3 -3
- package/lib/service/fuse/space/cronjob/log/index.js +24 -23
- package/lib/service/fuse/space/index.d.ts +13 -14
- package/lib/service/fuse/space/index.js +88 -70
- package/lib/service/high5/execution/index.d.ts +13 -5
- package/lib/service/high5/execution/index.js +32 -4
- package/lib/service/high5/execution/log/index.d.ts +2 -2
- package/lib/service/high5/execution/log/index.js +11 -12
- package/lib/service/high5/execution/status/index.d.ts +2 -2
- package/lib/service/high5/execution/status/index.js +11 -12
- package/lib/service/high5/index.d.ts +12 -9
- package/lib/service/high5/index.js +36 -12
- package/lib/service/high5/internal/index.d.ts +3 -4
- package/lib/service/high5/internal/index.js +5 -3
- package/lib/service/high5/internal/space/index.d.ts +2 -2
- package/lib/service/high5/internal/space/index.js +19 -15
- package/lib/service/high5/joinToken/index.d.ts +4 -4
- package/lib/service/high5/joinToken/index.js +36 -28
- package/lib/service/high5/space/event/index.d.ts +9 -10
- package/lib/service/high5/space/event/index.js +58 -46
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +1 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +2 -0
- package/lib/service/high5/space/event/stream/design/index.d.ts +23 -8
- package/lib/service/high5/space/event/stream/design/index.js +60 -25
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +5 -5
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +65 -58
- package/lib/service/high5/space/event/stream/index.d.ts +14 -15
- package/lib/service/high5/space/event/stream/index.js +125 -103
- package/lib/service/high5/space/execution/index.d.ts +36 -9
- package/lib/service/high5/space/execution/index.js +96 -42
- package/lib/service/high5/space/execution/log/index.d.ts +4 -6
- package/lib/service/high5/space/execution/log/index.js +22 -21
- package/lib/service/high5/space/execution/status/index.d.ts +1 -1
- package/lib/service/high5/space/execution/status/index.js +10 -8
- package/lib/service/high5/space/index.d.ts +28 -21
- package/lib/service/high5/space/index.js +138 -86
- package/lib/service/high5/space/pool/index.d.ts +97 -0
- package/lib/service/high5/space/pool/index.js +171 -0
- package/lib/service/high5/space/secret/index.d.ts +6 -6
- package/lib/service/high5/space/secret/index.js +59 -49
- package/lib/service/high5/space/wave/index.d.ts +7 -9
- package/lib/service/high5/space/wave/index.js +40 -33
- package/lib/service/high5/space/webhook/index.d.ts +21 -14
- package/lib/service/high5/space/webhook/index.js +106 -73
- package/lib/service/high5/space/webhook/log/index.d.ts +2 -4
- package/lib/service/high5/space/webhook/log/index.js +11 -12
- package/lib/service/high5/wave/s3/index.d.ts +14 -7
- package/lib/service/high5/wave/s3/index.js +64 -38
- package/lib/service/idp/index.d.ts +17 -15
- package/lib/service/idp/index.js +104 -56
- package/lib/service/idp/internal/index.d.ts +2 -4
- package/lib/service/idp/internal/index.js +10 -11
- package/lib/service/idp/oauth/index.d.ts +16 -12
- package/lib/service/idp/oauth/index.js +56 -45
- package/lib/service/idp/organization/index.d.ts +12 -10
- package/lib/service/idp/organization/index.js +63 -28
- package/lib/service/idp/organization/license/index.d.ts +2 -2
- package/lib/service/idp/organization/license/index.js +5 -4
- package/lib/service/idp/organization/member/index.d.ts +10 -11
- package/lib/service/idp/organization/member/index.js +62 -48
- package/lib/service/idp/organization/member/invitations/index.d.ts +3 -3
- package/lib/service/idp/organization/member/invitations/index.js +47 -43
- package/lib/service/idp/organization/settings/domain/index.d.ts +7 -8
- package/lib/service/idp/organization/settings/domain/index.js +42 -29
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/domain/saml/index.js +58 -48
- package/lib/service/idp/organization/settings/index.d.ts +5 -5
- package/lib/service/idp/organization/settings/index.js +17 -4
- package/lib/service/idp/organization/settings/oauth/index.d.ts +9 -11
- package/lib/service/idp/organization/settings/oauth/index.js +67 -56
- package/lib/service/idp/organization/team/index.d.ts +8 -8
- package/lib/service/idp/organization/team/index.js +64 -55
- package/lib/service/idp/registration/index.d.ts +4 -6
- package/lib/service/idp/registration/index.js +38 -35
- package/lib/service/idp/user/index.d.ts +20 -15
- package/lib/service/idp/user/index.js +94 -51
- package/lib/service/idp/user/license/index.d.ts +2 -2
- package/lib/service/idp/user/license/index.js +5 -4
- package/lib/service/idp/user/password/index.d.ts +1 -1
- package/lib/service/idp/user/password/index.js +10 -11
- package/lib/service/idp/user/settings/connections/index.d.ts +2 -4
- package/lib/service/idp/user/settings/connections/index.js +9 -10
- package/lib/service/idp/user/settings/general/index.d.ts +10 -6
- package/lib/service/idp/user/settings/general/index.js +25 -13
- package/lib/service/idp/user/settings/index.d.ts +13 -9
- package/lib/service/idp/user/settings/index.js +53 -8
- package/lib/service/idp/user/settings/notifications/index.d.ts +3 -5
- package/lib/service/idp/user/settings/notifications/index.js +14 -13
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +3 -5
- package/lib/service/idp/user/settings/oauthApps/index.js +17 -16
- package/lib/service/idp/user/settings/pats/index.d.ts +8 -10
- package/lib/service/idp/user/settings/pats/index.js +55 -44
- package/lib/service/idp/user/settings/twoFactor/index.d.ts +3 -4
- package/lib/service/idp/user/settings/twoFactor/index.js +8 -3
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +7 -9
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
- package/lib/service/mailer/index.d.ts +4 -5
- package/lib/service/mailer/index.js +12 -8
- package/lib/service/mailer/internal/index.d.ts +4 -4
- package/lib/service/mailer/internal/index.js +38 -33
- package/lib/service/mothership/index.d.ts +12 -12
- package/lib/service/mothership/index.js +92 -79
- package/lib/service/nats/index.d.ts +1 -3
- package/lib/service/nats/index.js +2 -2
- package/lib/utils/bouncer/features/Provider.d.ts +3 -0
- package/lib/utils/bouncer/features/Provider.js +20 -2
- package/package.json +1 -1
|
@@ -13,22 +13,21 @@ const Base_1 = require("../../../../../../../Base");
|
|
|
13
13
|
const paginatedResponseHelper_1 = require("../../../../../../../helper/paginatedResponseHelper");
|
|
14
14
|
const searchFilter_1 = require("../../../../../../../helper/searchFilter");
|
|
15
15
|
class High5DesignSnapshots extends Base_1.default {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.search = (orgName_1, spaceName_1, eventName_1, streamId_1, ...args_1) => __awaiter(this, [orgName_1, spaceName_1, eventName_1, streamId_1, ...args_1], void 0, function* (orgName, spaceName, eventName, streamId, content = false, { filters, sorting, limit = 25, page = 0 }) {
|
|
16
|
+
/**
|
|
17
|
+
* Search the snapshots of stream's design.
|
|
18
|
+
* @param orgName Name of the organization
|
|
19
|
+
* @param spaceName Name of the space
|
|
20
|
+
* @param eventName Name of the event
|
|
21
|
+
* @param streamId ID of the stream
|
|
22
|
+
* @param content (optional) Is it necessary to retrieve content for each snapshot (disabled by default)
|
|
23
|
+
* @param filters Search filters to apply
|
|
24
|
+
* @param sorting Sorting criteria for the result
|
|
25
|
+
* @param limit (optional) Max number of results (1-100; defaults to 25)
|
|
26
|
+
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
27
|
+
* @returns Object containing an array of snapshots of the stream design and the total number of results found in the database (independent of limit and page)
|
|
28
|
+
*/
|
|
29
|
+
search(orgName_1, spaceName_1, eventName_1, streamId_1) {
|
|
30
|
+
return __awaiter(this, arguments, void 0, function* (orgName, spaceName, eventName, streamId, content = false, { filters, sorting, limit = 25, page = 0 }) {
|
|
32
31
|
const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => {
|
|
33
32
|
return new searchFilter_1.SearchFilterDTO(f);
|
|
34
33
|
});
|
|
@@ -40,56 +39,64 @@ class High5DesignSnapshots extends Base_1.default {
|
|
|
40
39
|
});
|
|
41
40
|
return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
|
|
42
41
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create a snapshot of stream's design.
|
|
45
|
+
* @param orgName Name of the organization
|
|
46
|
+
* @param spaceName Name of the space
|
|
47
|
+
* @param eventName Name of the event
|
|
48
|
+
* @param streamId ID of the stream
|
|
49
|
+
* @param name Name of the snapshot
|
|
50
|
+
* @returns The snapshot
|
|
51
|
+
*/
|
|
52
|
+
create(orgName, spaceName, eventName, streamId, name) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
54
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots`), { name });
|
|
54
55
|
return resp.data;
|
|
55
56
|
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Update a snapshot's name.
|
|
60
|
+
* @param orgName Name of the organization
|
|
61
|
+
* @param spaceName Name of the space
|
|
62
|
+
* @param eventName Name of the event
|
|
63
|
+
* @param streamId ID of the stream
|
|
64
|
+
* @param snapshotId ID of the snapshot
|
|
65
|
+
* @param name Name of the snapshot
|
|
66
|
+
* @returns The snapshot
|
|
67
|
+
*/
|
|
68
|
+
update(orgName, spaceName, eventName, streamId, snapshotId, name) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
70
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}`), { name });
|
|
68
71
|
return resp.data;
|
|
69
72
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Delete a stream design's snapshot.
|
|
76
|
+
* @param orgName Name of the organization
|
|
77
|
+
* @param spaceName Name of the space
|
|
78
|
+
* @param eventName Name of the event
|
|
79
|
+
* @param streamId ID of the stream
|
|
80
|
+
* @param snapshotId ID of the snapshot
|
|
81
|
+
*/
|
|
82
|
+
delete(orgName, spaceName, eventName, streamId, snapshotId) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
84
|
yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}`));
|
|
80
85
|
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Restore a stream's design to a certain snapshot.
|
|
89
|
+
*
|
|
90
|
+
* **WARNING**: This is a destructive action. It will overwrite the current design for the stream.
|
|
91
|
+
*
|
|
92
|
+
* @param orgName Name of the organization
|
|
93
|
+
* @param spaceName Name of the space
|
|
94
|
+
* @param eventName Name of the event
|
|
95
|
+
* @param streamId ID of the stream
|
|
96
|
+
* @param snapshotId ID of the snapshot
|
|
97
|
+
*/
|
|
98
|
+
restore(orgName, spaceName, eventName, streamId, snapshotId) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
100
|
yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/design/snapshots/${snapshotId}/restore`));
|
|
94
101
|
});
|
|
95
102
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../../Base";
|
|
1
|
+
import Base from "../../../../../Base";
|
|
3
2
|
import { PaginatedResponse, SearchParams } from "../../../../../interfaces/global";
|
|
4
3
|
import { SingleStreamPatchOrder, Stream, StreamPatchActive, StreamPatchOrder } from "../../../../../interfaces/high5/space/event/stream";
|
|
5
4
|
import { High5Design } from "./design";
|
|
6
5
|
export declare class High5Stream extends Base {
|
|
7
|
-
design: High5Design;
|
|
8
|
-
|
|
6
|
+
get design(): High5Design;
|
|
7
|
+
private _design?;
|
|
9
8
|
/**
|
|
10
9
|
* Retrieves all Streams of an Event which match the provided search filter(s). Will return all Streams if no filter is provided.
|
|
11
10
|
* @param orgName Name of the organization
|
|
@@ -17,11 +16,11 @@ export declare class High5Stream extends Base {
|
|
|
17
16
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
18
17
|
* @returns Object containing an array of streams as well as the total number of results found in the database (independent of limit and page)
|
|
19
18
|
*/
|
|
20
|
-
searchStreams
|
|
19
|
+
searchStreams({ orgName, spaceName, eventName, filters, sorting, limit, page, }: SearchParams & {
|
|
21
20
|
orgName: string;
|
|
22
21
|
spaceName: string;
|
|
23
22
|
eventName: string;
|
|
24
|
-
})
|
|
23
|
+
}): Promise<PaginatedResponse<Stream>>;
|
|
25
24
|
/**
|
|
26
25
|
* Retrieves a Stream by its ID.
|
|
27
26
|
* @param orgName Name of the organization
|
|
@@ -30,7 +29,7 @@ export declare class High5Stream extends Base {
|
|
|
30
29
|
* @param streamId ID of the stream
|
|
31
30
|
* @returns The requested stream
|
|
32
31
|
*/
|
|
33
|
-
getStream
|
|
32
|
+
getStream(orgName: string, spaceName: string, eventName: string, streamId: string): Promise<Stream>;
|
|
34
33
|
/**
|
|
35
34
|
* Creates a new Stream for the specified Event.
|
|
36
35
|
* @param orgName Name of the organization
|
|
@@ -39,7 +38,7 @@ export declare class High5Stream extends Base {
|
|
|
39
38
|
* @param name Name for the new stream
|
|
40
39
|
* @returns The created stream
|
|
41
40
|
*/
|
|
42
|
-
createStream
|
|
41
|
+
createStream(orgName: string, spaceName: string, eventName: string, name: string): Promise<Stream>;
|
|
43
42
|
/**
|
|
44
43
|
* Duplicate a Stream for the specified Event.
|
|
45
44
|
* @param orgName Name of the organization
|
|
@@ -49,7 +48,7 @@ export declare class High5Stream extends Base {
|
|
|
49
48
|
* @param sourceStreamId ID for the stream to duplicate
|
|
50
49
|
* @returns The created stream
|
|
51
50
|
*/
|
|
52
|
-
duplicateStream
|
|
51
|
+
duplicateStream(orgName: string, spaceName: string, eventName: string, name: string, sourceStreamId: string): Promise<Stream>;
|
|
53
52
|
/**
|
|
54
53
|
* Patches the order of Streams for an Event.
|
|
55
54
|
* @param orgName Name of the organization
|
|
@@ -58,7 +57,7 @@ export declare class High5Stream extends Base {
|
|
|
58
57
|
* @param StreamPatchOrder List of all event streams with their new order
|
|
59
58
|
* @returns Array of updated Streams
|
|
60
59
|
*/
|
|
61
|
-
patchStreamOrderMulti
|
|
60
|
+
patchStreamOrderMulti(orgName: string, spaceName: string, eventName: string, streamList: StreamPatchOrder[]): Promise<Stream[]>;
|
|
62
61
|
/**
|
|
63
62
|
* Activate or deactivate a stream
|
|
64
63
|
* @param orgName Name of the organization
|
|
@@ -68,7 +67,7 @@ export declare class High5Stream extends Base {
|
|
|
68
67
|
* @param StreamPatchActive Object defining if stream should be active or inactive
|
|
69
68
|
* @returns Details of the updated stream
|
|
70
69
|
*/
|
|
71
|
-
patchStreamState
|
|
70
|
+
patchStreamState(orgName: string, spaceName: string, eventName: string, streamId: string, streamPatchActive: StreamPatchActive): Promise<Stream>;
|
|
72
71
|
/**
|
|
73
72
|
* Moves a Stream up or down in the existing Streams order.
|
|
74
73
|
* @param orgName Name of the organization
|
|
@@ -78,7 +77,7 @@ export declare class High5Stream extends Base {
|
|
|
78
77
|
* @param SingleStreamPatchOrder Object defining if stream should move up or down
|
|
79
78
|
* @returns Array of updated Streams
|
|
80
79
|
*/
|
|
81
|
-
patchStreamOrder
|
|
80
|
+
patchStreamOrder(orgName: string, spaceName: string, eventName: string, streamId: string, singleStreamPatchOrder: SingleStreamPatchOrder): Promise<Stream[]>;
|
|
82
81
|
/**
|
|
83
82
|
* Rename a stream
|
|
84
83
|
* @param orgName Name of the organization
|
|
@@ -88,7 +87,7 @@ export declare class High5Stream extends Base {
|
|
|
88
87
|
* @param name New name of the stream
|
|
89
88
|
* @returns Updated stream
|
|
90
89
|
*/
|
|
91
|
-
renameStream
|
|
90
|
+
renameStream(orgName: string, spaceName: string, eventName: string, streamId: string, name: string): Promise<Stream>;
|
|
92
91
|
/**
|
|
93
92
|
* Moves a Stream to another event.
|
|
94
93
|
*
|
|
@@ -101,7 +100,7 @@ export declare class High5Stream extends Base {
|
|
|
101
100
|
* @param [order] (optional) Order the stream should have in the new event
|
|
102
101
|
* @returns Updated Stream
|
|
103
102
|
*/
|
|
104
|
-
moveStream
|
|
103
|
+
moveStream(orgName: string, spaceName: string, eventName: string, streamId: string, newEventName: string, name?: string, order?: number): Promise<Stream>;
|
|
105
104
|
/**
|
|
106
105
|
* Deletes a Stream by its ID.
|
|
107
106
|
* @param orgName Name of the organization
|
|
@@ -109,6 +108,6 @@ export declare class High5Stream extends Base {
|
|
|
109
108
|
* @param eventName Name of the event
|
|
110
109
|
* @param streamId ID of the stream
|
|
111
110
|
*/
|
|
112
|
-
deleteStream
|
|
111
|
+
deleteStream(orgName: string, spaceName: string, eventName: string, streamId: string): Promise<void>;
|
|
113
112
|
protected getEndpoint(endpoint: string): string;
|
|
114
113
|
}
|
|
@@ -15,20 +15,25 @@ const paginatedResponseHelper_1 = require("../../../../../helper/paginatedRespon
|
|
|
15
15
|
const searchFilter_1 = require("../../../../../helper/searchFilter");
|
|
16
16
|
const design_1 = require("./design");
|
|
17
17
|
class High5Stream extends Base_1.default {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
get design() {
|
|
19
|
+
if (this._design === undefined) {
|
|
20
|
+
this._design = new design_1.High5Design(this.options, this.axios);
|
|
21
|
+
}
|
|
22
|
+
return this._design;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves all Streams of an Event which match the provided search filter(s). Will return all Streams if no filter is provided.
|
|
26
|
+
* @param orgName Name of the organization
|
|
27
|
+
* @param spaceName Name of the space
|
|
28
|
+
* @param eventName Name of the event
|
|
29
|
+
* @param filters (optional) Array of search filters
|
|
30
|
+
* @param sorting (optional) Sorting object
|
|
31
|
+
* @param limit (optional) Max number of results (1-100; defaults to 25)
|
|
32
|
+
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
33
|
+
* @returns Object containing an array of streams as well as the total number of results found in the database (independent of limit and page)
|
|
34
|
+
*/
|
|
35
|
+
searchStreams(_a) {
|
|
36
|
+
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, eventName, filters, sorting, limit = 25, page = 0, }) {
|
|
32
37
|
const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
|
|
33
38
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/search?page=${page}&limit=${limit}`), {
|
|
34
39
|
filters: filtersDTO,
|
|
@@ -36,126 +41,143 @@ class High5Stream extends Base_1.default {
|
|
|
36
41
|
});
|
|
37
42
|
return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
|
|
38
43
|
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves a Stream by its ID.
|
|
47
|
+
* @param orgName Name of the organization
|
|
48
|
+
* @param spaceName Name of the space
|
|
49
|
+
* @param eventName Name of the event
|
|
50
|
+
* @param streamId ID of the stream
|
|
51
|
+
* @returns The requested stream
|
|
52
|
+
*/
|
|
53
|
+
getStream(orgName, spaceName, eventName, streamId) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
55
|
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}`));
|
|
49
56
|
return resp.data;
|
|
50
57
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates a new Stream for the specified Event.
|
|
61
|
+
* @param orgName Name of the organization
|
|
62
|
+
* @param spaceName Name of the space
|
|
63
|
+
* @param eventName Name of the event
|
|
64
|
+
* @param name Name for the new stream
|
|
65
|
+
* @returns The created stream
|
|
66
|
+
*/
|
|
67
|
+
createStream(orgName, spaceName, eventName, name) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
69
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams`), {
|
|
61
70
|
name: name,
|
|
62
71
|
});
|
|
63
72
|
return resp.data;
|
|
64
73
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Duplicate a Stream for the specified Event.
|
|
77
|
+
* @param orgName Name of the organization
|
|
78
|
+
* @param spaceName Name of the space
|
|
79
|
+
* @param eventName Name of the event
|
|
80
|
+
* @param name Name for the new stream
|
|
81
|
+
* @param sourceStreamId ID for the stream to duplicate
|
|
82
|
+
* @returns The created stream
|
|
83
|
+
*/
|
|
84
|
+
duplicateStream(orgName, spaceName, eventName, name, sourceStreamId) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
86
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams`), {
|
|
76
87
|
name: name,
|
|
77
88
|
streamId: sourceStreamId,
|
|
78
89
|
});
|
|
79
90
|
return resp.data;
|
|
80
91
|
});
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Patches the order of Streams for an Event.
|
|
95
|
+
* @param orgName Name of the organization
|
|
96
|
+
* @param spaceName Name of the space
|
|
97
|
+
* @param eventName Name of the event
|
|
98
|
+
* @param StreamPatchOrder List of all event streams with their new order
|
|
99
|
+
* @returns Array of updated Streams
|
|
100
|
+
*/
|
|
101
|
+
patchStreamOrderMulti(orgName, spaceName, eventName, streamList) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
103
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/order`), streamList);
|
|
91
104
|
return resp.data;
|
|
92
105
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Activate or deactivate a stream
|
|
109
|
+
* @param orgName Name of the organization
|
|
110
|
+
* @param spaceName Name of the space
|
|
111
|
+
* @param eventName Name of the event
|
|
112
|
+
* @param streamId ID of the stream
|
|
113
|
+
* @param StreamPatchActive Object defining if stream should be active or inactive
|
|
114
|
+
* @returns Details of the updated stream
|
|
115
|
+
*/
|
|
116
|
+
patchStreamState(orgName, spaceName, eventName, streamId, streamPatchActive) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
118
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/active`), streamPatchActive);
|
|
104
119
|
return resp.data;
|
|
105
120
|
});
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Moves a Stream up or down in the existing Streams order.
|
|
124
|
+
* @param orgName Name of the organization
|
|
125
|
+
* @param spaceName Name of the space
|
|
126
|
+
* @param eventName Name of the event
|
|
127
|
+
* @param streamId ID of the stream
|
|
128
|
+
* @param SingleStreamPatchOrder Object defining if stream should move up or down
|
|
129
|
+
* @returns Array of updated Streams
|
|
130
|
+
*/
|
|
131
|
+
patchStreamOrder(orgName, spaceName, eventName, streamId, singleStreamPatchOrder) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
133
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/order`), singleStreamPatchOrder);
|
|
117
134
|
return resp.data;
|
|
118
135
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Rename a stream
|
|
139
|
+
* @param orgName Name of the organization
|
|
140
|
+
* @param spaceName Name of the space
|
|
141
|
+
* @param eventName Name of the event
|
|
142
|
+
* @param streamId ID of the stream
|
|
143
|
+
* @param name New name of the stream
|
|
144
|
+
* @returns Updated stream
|
|
145
|
+
*/
|
|
146
|
+
renameStream(orgName, spaceName, eventName, streamId, name) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
148
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/name`), { name });
|
|
130
149
|
return resp.data;
|
|
131
150
|
});
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Moves a Stream to another event.
|
|
154
|
+
*
|
|
155
|
+
* @param orgName Name of the organization
|
|
156
|
+
* @param spaceName Name of the space
|
|
157
|
+
* @param eventName Name of the event
|
|
158
|
+
* @param streamId ID of the stream
|
|
159
|
+
* @param newEventName Name of the new event
|
|
160
|
+
* @param [name] (optional) New name for stream. Is the new event already has a stream with the same name as this one, this parameter is mandatory.
|
|
161
|
+
* @param [order] (optional) Order the stream should have in the new event
|
|
162
|
+
* @returns Updated Stream
|
|
163
|
+
*/
|
|
164
|
+
moveStream(orgName, spaceName, eventName, streamId, newEventName, name, order) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
166
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}/event`), { eventName: newEventName, name, order });
|
|
146
167
|
return resp.data;
|
|
147
168
|
});
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Deletes a Stream by its ID.
|
|
172
|
+
* @param orgName Name of the organization
|
|
173
|
+
* @param spaceName Name of the space
|
|
174
|
+
* @param eventName Name of the event
|
|
175
|
+
* @param streamId ID of the stream
|
|
176
|
+
*/
|
|
177
|
+
deleteStream(orgName, spaceName, eventName, streamId) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
179
|
yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/events/${eventName}/streams/${streamId}`));
|
|
157
180
|
});
|
|
158
|
-
this.design = new design_1.High5Design(this.options, this.axios);
|
|
159
181
|
}
|
|
160
182
|
getEndpoint(endpoint) {
|
|
161
183
|
return `${this.options.server}/api/high5${endpoint}`;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import Base from "../../../../Base";
|
|
2
|
+
import { DebugCommand } from "../../../../interfaces/high5";
|
|
3
3
|
import { High5ExecutionPackage, High5ExecutionPatch, High5ExecutionRequest, High5ExecutionResponse } from "../../../../interfaces/high5/space/execution";
|
|
4
4
|
import { High5SpaceExecutionLogs } from "./log/index";
|
|
5
5
|
import { High5SpaceExecutionStates } from "./status/index";
|
|
6
6
|
export declare class High5SpaceExecute extends Base {
|
|
7
|
-
high5ExecutionLogs: High5SpaceExecutionLogs;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
get high5ExecutionLogs(): High5SpaceExecutionLogs;
|
|
8
|
+
private _high5ExecutionLogs?;
|
|
9
|
+
get high5ExecutionStates(): High5SpaceExecutionStates;
|
|
10
|
+
private _high5ExecutionStates?;
|
|
10
11
|
/**
|
|
11
12
|
* executeStream executes a single stream by its ID and an execution request
|
|
12
13
|
* @param orgName the organizations's name
|
|
@@ -15,7 +16,7 @@ export declare class High5SpaceExecute extends Base {
|
|
|
15
16
|
* @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
|
|
16
17
|
* @returns the stream result
|
|
17
18
|
*/
|
|
18
|
-
executeHigh5Stream
|
|
19
|
+
executeHigh5Stream(orgName: string, spaceName: string, streamId: string, high5ExecutionRequest: High5ExecutionRequest, design?: boolean, debug?: boolean): Promise<High5ExecutionResponse>;
|
|
19
20
|
/**
|
|
20
21
|
* Executes all streams within an event.
|
|
21
22
|
* @param orgName Name of the Organization
|
|
@@ -24,7 +25,7 @@ export declare class High5SpaceExecute extends Base {
|
|
|
24
25
|
* @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
|
|
25
26
|
* @returns Array of stream results
|
|
26
27
|
*/
|
|
27
|
-
executeHigh5Event
|
|
28
|
+
executeHigh5Event(orgName: string, spaceName: string, eventName: string, high5EventExecutionRequest: High5ExecutionRequest): Promise<High5ExecutionResponse[]>;
|
|
28
29
|
/**
|
|
29
30
|
* Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
|
|
30
31
|
* @param orgName Name of the Organization
|
|
@@ -33,7 +34,7 @@ export declare class High5SpaceExecute extends Base {
|
|
|
33
34
|
* @param secret Secret of the Stream execution object
|
|
34
35
|
* @returns StreamExecutionPackage
|
|
35
36
|
*/
|
|
36
|
-
getStreamExecutionPackage
|
|
37
|
+
getStreamExecutionPackage(orgName: string, spaceName: string, streamId: string, secret: string): Promise<High5ExecutionPackage>;
|
|
37
38
|
/**
|
|
38
39
|
* Publishes the stream status and logs to high5
|
|
39
40
|
* @param orgName the organizations's name
|
|
@@ -43,6 +44,32 @@ export declare class High5SpaceExecute extends Base {
|
|
|
43
44
|
* @param streamResult the result of the stream
|
|
44
45
|
* @returns StreamLog
|
|
45
46
|
*/
|
|
46
|
-
high5ExecutionStatusAndLogResponse
|
|
47
|
+
high5ExecutionStatusAndLogResponse(orgName: string, spaceName: string, secret: string, high5ExecutionResponse: High5ExecutionPatch): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Issue debug command to a stopped execution running in debug mode.
|
|
50
|
+
* If the agent that is handling this execution does not acknowledge
|
|
51
|
+
* the debug command after a certain timeframe, a timeout error will
|
|
52
|
+
* be thrown.
|
|
53
|
+
*
|
|
54
|
+
* Only the user that triggered the execution can send debug commands.
|
|
55
|
+
*
|
|
56
|
+
* @param orgName Name of the organization
|
|
57
|
+
* @param spaceName Name of the space
|
|
58
|
+
* @param executionId ID of the execution. Obtained from High5ExecutionResponse
|
|
59
|
+
* @param command DebugCommand to send
|
|
60
|
+
*/
|
|
61
|
+
issueDebugCommand(orgName: string, spaceName: string, executionId: string, command: DebugCommand): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Log an execution crash to High5
|
|
64
|
+
*
|
|
65
|
+
* Useful when regular logging is not possible.
|
|
66
|
+
*
|
|
67
|
+
* @param orgName the organizations's name
|
|
68
|
+
* @param spaceName the spaces's name
|
|
69
|
+
* @param streamId the id of the stream
|
|
70
|
+
* @param secret the secret of the stream execution object
|
|
71
|
+
* @param message crash log
|
|
72
|
+
*/
|
|
73
|
+
logExecutionCrash(orgName: string, spaceName: string, secret: string, message?: string): Promise<void>;
|
|
47
74
|
protected getEndpoint(endpoint: string): string;
|
|
48
75
|
}
|