hcloud-sdk 14.13.2 → 15.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 +36 -800
- package/lib/Hcloud.d.ts +20 -10
- package/lib/Hcloud.js +60 -10
- 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/space/event/stream/node/index.d.ts +2 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +11 -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 +31 -1
- package/lib/interfaces/high5/wave/index.js +10 -1
- package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
- package/lib/interfaces/mothership/index.d.ts +1 -0
- package/lib/interfaces/nats/index.d.ts +8 -21
- package/lib/interfaces/nats/index.js +72 -90
- package/lib/service/agent/bundle/dev/index.d.ts +2 -2
- package/lib/service/agent/bundle/dev/index.js +14 -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 +13 -9
- package/lib/service/dali/DaliAvatar.js +53 -8
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +4 -6
- package/lib/service/dali/avatar/DaliFuseSpace.js +26 -23
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +4 -6
- package/lib/service/dali/avatar/DaliHigh5Space.js +26 -23
- 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 +5 -5
- package/lib/service/high5/execution/index.js +11 -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/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 +9 -9
- package/lib/service/high5/space/execution/index.js +57 -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 +25 -21
- package/lib/service/high5/space/index.js +131 -86
- 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 +6 -6
- package/lib/service/high5/wave/s3/index.js +50 -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 +55 -43
- 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 +37 -34
- package/lib/service/idp/user/index.d.ts +16 -15
- package/lib/service/idp/user/index.js +86 -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 +6 -8
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +36 -29
- package/lib/service/mailer/index.d.ts +4 -5
- package/lib/service/mailer/index.js +12 -8
- package/lib/service/mailer/internal/index.d.ts +4 -4
- package/lib/service/mailer/internal/index.js +38 -33
- package/lib/service/mothership/index.d.ts +12 -12
- package/lib/service/mothership/index.js +92 -79
- package/lib/service/nats/index.d.ts +1 -3
- package/lib/service/nats/index.js +2 -2
- package/lib/utils/bouncer/features/Provider.d.ts +3 -0
- package/lib/utils/bouncer/features/Provider.js +20 -2
- package/package.json +1 -1
|
@@ -1,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,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../Base";
|
|
1
|
+
import Base from "../../../../Base";
|
|
3
2
|
import { High5ExecutionPackage, High5ExecutionPatch, High5ExecutionRequest, High5ExecutionResponse } from "../../../../interfaces/high5/space/execution";
|
|
4
3
|
import { High5SpaceExecutionLogs } from "./log/index";
|
|
5
4
|
import { High5SpaceExecutionStates } from "./status/index";
|
|
6
5
|
export declare class High5SpaceExecute extends Base {
|
|
7
|
-
high5ExecutionLogs: High5SpaceExecutionLogs;
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
get high5ExecutionLogs(): High5SpaceExecutionLogs;
|
|
7
|
+
private _high5ExecutionLogs?;
|
|
8
|
+
get high5ExecutionStates(): High5SpaceExecutionStates;
|
|
9
|
+
private _high5ExecutionStates?;
|
|
10
10
|
/**
|
|
11
11
|
* executeStream executes a single stream by its ID and an execution request
|
|
12
12
|
* @param orgName the organizations's name
|
|
@@ -15,7 +15,7 @@ export declare class High5SpaceExecute extends Base {
|
|
|
15
15
|
* @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
|
|
16
16
|
* @returns the stream result
|
|
17
17
|
*/
|
|
18
|
-
executeHigh5Stream
|
|
18
|
+
executeHigh5Stream(orgName: string, spaceName: string, streamId: string, high5ExecutionRequest: High5ExecutionRequest, design?: boolean): Promise<High5ExecutionResponse>;
|
|
19
19
|
/**
|
|
20
20
|
* Executes all streams within an event.
|
|
21
21
|
* @param orgName Name of the Organization
|
|
@@ -24,7 +24,7 @@ export declare class High5SpaceExecute extends Base {
|
|
|
24
24
|
* @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
|
|
25
25
|
* @returns Array of stream results
|
|
26
26
|
*/
|
|
27
|
-
executeHigh5Event
|
|
27
|
+
executeHigh5Event(orgName: string, spaceName: string, eventName: string, high5EventExecutionRequest: High5ExecutionRequest): Promise<High5ExecutionResponse[]>;
|
|
28
28
|
/**
|
|
29
29
|
* Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
|
|
30
30
|
* @param orgName Name of the Organization
|
|
@@ -33,7 +33,7 @@ export declare class High5SpaceExecute extends Base {
|
|
|
33
33
|
* @param secret Secret of the Stream execution object
|
|
34
34
|
* @returns StreamExecutionPackage
|
|
35
35
|
*/
|
|
36
|
-
getStreamExecutionPackage
|
|
36
|
+
getStreamExecutionPackage(orgName: string, spaceName: string, streamId: string, secret: string): Promise<High5ExecutionPackage>;
|
|
37
37
|
/**
|
|
38
38
|
* Publishes the stream status and logs to high5
|
|
39
39
|
* @param orgName the organizations's name
|
|
@@ -43,6 +43,6 @@ export declare class High5SpaceExecute extends Base {
|
|
|
43
43
|
* @param streamResult the result of the stream
|
|
44
44
|
* @returns StreamLog
|
|
45
45
|
*/
|
|
46
|
-
high5ExecutionStatusAndLogResponse
|
|
46
|
+
high5ExecutionStatusAndLogResponse(orgName: string, spaceName: string, secret: string, high5ExecutionResponse: High5ExecutionPatch): Promise<void>;
|
|
47
47
|
protected getEndpoint(endpoint: string): string;
|
|
48
48
|
}
|
|
@@ -14,58 +14,73 @@ const Base_1 = require("../../../../Base");
|
|
|
14
14
|
const index_1 = require("./log/index");
|
|
15
15
|
const index_2 = require("./status/index");
|
|
16
16
|
class High5SpaceExecute extends Base_1.default {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.
|
|
28
|
-
|
|
17
|
+
get high5ExecutionLogs() {
|
|
18
|
+
if (this._high5ExecutionLogs === undefined) {
|
|
19
|
+
this._high5ExecutionLogs = new index_1.High5SpaceExecutionLogs(this.options, this.axios);
|
|
20
|
+
}
|
|
21
|
+
return this._high5ExecutionLogs;
|
|
22
|
+
}
|
|
23
|
+
get high5ExecutionStates() {
|
|
24
|
+
if (this._high5ExecutionStates === undefined) {
|
|
25
|
+
this._high5ExecutionStates = new index_2.High5SpaceExecutionStates(this.options, this.axios);
|
|
26
|
+
}
|
|
27
|
+
return this._high5ExecutionStates;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* executeStream executes a single stream by its ID and an execution request
|
|
31
|
+
* @param orgName the organizations's name
|
|
32
|
+
* @param spaceName the spaces's name
|
|
33
|
+
* @param streamId to identify the stream
|
|
34
|
+
* @param high5ExecutionRequest the stream execution request, containing the data, target, wait boolean and timeout
|
|
35
|
+
* @returns the stream result
|
|
36
|
+
*/
|
|
37
|
+
executeHigh5Stream(orgName_1, spaceName_1, streamId_1, high5ExecutionRequest_1) {
|
|
38
|
+
return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamId, high5ExecutionRequest, design = false) {
|
|
39
|
+
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}${design ? "&design=true" : ""}`), high5ExecutionRequest);
|
|
29
40
|
return resp.data;
|
|
30
41
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Executes all streams within an event.
|
|
45
|
+
* @param orgName Name of the Organization
|
|
46
|
+
* @param spaceName Name of the Space
|
|
47
|
+
* @param eventName Name of the Event
|
|
48
|
+
* @param eventExecutionRequest Event execution request containing payload, target and a boolean specifying if it should be a dry run
|
|
49
|
+
* @returns Array of stream results
|
|
50
|
+
*/
|
|
51
|
+
executeHigh5Event(orgName, spaceName, eventName, high5EventExecutionRequest) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
53
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/event/name/${eventName}`), high5EventExecutionRequest);
|
|
41
54
|
return resp.data;
|
|
42
55
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Requests the StreamExecutionPackage for the provided Stream, which will hold all informations required to execute the Stream.
|
|
59
|
+
* @param orgName Name of the Organization
|
|
60
|
+
* @param spaceName Name of the Space
|
|
61
|
+
* @param streamId ID of the Stream
|
|
62
|
+
* @param secret Secret of the Stream execution object
|
|
63
|
+
* @returns StreamExecutionPackage
|
|
64
|
+
*/
|
|
65
|
+
getStreamExecutionPackage(orgName, spaceName, streamId, secret) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
67
|
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execute/stream/id/${streamId}/package/${secret}`));
|
|
53
68
|
return resp.data;
|
|
54
69
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Publishes the stream status and logs to high5
|
|
73
|
+
* @param orgName the organizations's name
|
|
74
|
+
* @param spaceName the spaces's name
|
|
75
|
+
* @param streamId the id of the stream
|
|
76
|
+
* @param secret the secret of the stream execution object
|
|
77
|
+
* @param streamResult the result of the stream
|
|
78
|
+
* @returns StreamLog
|
|
79
|
+
*/
|
|
80
|
+
high5ExecutionStatusAndLogResponse(orgName, spaceName, secret, high5ExecutionResponse) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
82
|
yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/${secret}`), high5ExecutionResponse);
|
|
66
83
|
});
|
|
67
|
-
this.high5ExecutionLogs = new index_1.High5SpaceExecutionLogs(options, axios);
|
|
68
|
-
this.high5ExecutionStates = new index_2.High5SpaceExecutionStates(options, axios);
|
|
69
84
|
}
|
|
70
85
|
getEndpoint(endpoint) {
|
|
71
86
|
return `${this.options.server}/api/high5${endpoint}`;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Base, { Options } from "../../../../../Base";
|
|
1
|
+
import Base from "../../../../../Base";
|
|
3
2
|
import { PaginatedResponse, SearchParams } from "../../../../../interfaces/global";
|
|
4
3
|
import { High5ExecutionLog } from "../../../../../interfaces/high5/space/execution";
|
|
5
4
|
export declare class High5SpaceExecutionLogs extends Base {
|
|
6
|
-
constructor(options: Options, axios: AxiosInstance);
|
|
7
5
|
/**
|
|
8
6
|
* Retrieves all stream execution logs for a given execution inside a space.
|
|
9
7
|
* @param orgName Name of the Organization
|
|
@@ -14,11 +12,11 @@ export declare class High5SpaceExecutionLogs extends Base {
|
|
|
14
12
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
15
13
|
* @returns Object containing an array of Stream execution logs as well as the total number of results
|
|
16
14
|
*/
|
|
17
|
-
searchExecutionLogs
|
|
15
|
+
searchExecutionLogs({ orgName, spaceName, payload, filters, sorting, limit, page, }: SearchParams & {
|
|
18
16
|
orgName: string;
|
|
19
17
|
spaceName: string;
|
|
20
18
|
payload?: boolean;
|
|
21
|
-
})
|
|
19
|
+
}): Promise<PaginatedResponse<High5ExecutionLog>>;
|
|
22
20
|
/**
|
|
23
21
|
* Retrieves the execution log of a stream.
|
|
24
22
|
* @param orgName Name of the Organization
|
|
@@ -26,6 +24,6 @@ export declare class High5SpaceExecutionLogs extends Base {
|
|
|
26
24
|
* @param streamLogId ID of the stream log
|
|
27
25
|
* @returns Stream execution log
|
|
28
26
|
*/
|
|
29
|
-
getStreamExecutionLog
|
|
27
|
+
getStreamExecutionLog(orgName: string, spaceName: string, streamLogId: string, payload?: boolean): Promise<High5ExecutionLog>;
|
|
30
28
|
protected getEndpoint(endpoint: string): string;
|
|
31
29
|
}
|