hcloud-sdk 17.0.0 → 19.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 +87 -76
- package/lib/Base.d.ts +2 -1
- package/lib/Hcloud.d.ts +24 -6
- package/lib/Hcloud.js +127 -24
- package/lib/helper/ErrorHelper.js +5 -2
- package/lib/helper/ValidationHelper.d.ts +14 -4
- package/lib/helper/ValidationHelper.js +71 -11
- package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
- package/lib/interfaces/agent/logging/index.d.ts +2 -0
- package/lib/interfaces/{friday → agent/logging}/index.js +2 -3
- package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
- package/lib/interfaces/agent/module/index.d.ts +7 -0
- package/lib/interfaces/agent/module/index.js +2 -0
- package/lib/interfaces/auditor/index.d.ts +13 -3
- package/lib/interfaces/auditor/index.js +9 -2
- package/lib/interfaces/axios/index.d.ts +5 -0
- package/lib/interfaces/cosmo/asset/index.d.ts +216 -0
- package/lib/interfaces/cosmo/asset/index.js +90 -0
- package/lib/interfaces/cosmo/comment/index.d.ts +41 -0
- package/lib/interfaces/cosmo/comment/index.js +8 -0
- package/lib/interfaces/cosmo/event/index.d.ts +60 -0
- package/lib/interfaces/cosmo/event/index.js +31 -0
- package/lib/interfaces/cosmo/location/index.d.ts +4 -0
- package/lib/interfaces/cosmo/location/index.js +2 -0
- package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
- package/lib/interfaces/cosmo/namespace/index.js +9 -0
- package/lib/interfaces/cosmo/permissions.d.ts +96 -0
- package/lib/interfaces/cosmo/permissions.js +58 -0
- package/lib/interfaces/cosmo/share/index.d.ts +110 -0
- package/lib/interfaces/cosmo/share/index.js +23 -0
- package/lib/interfaces/cosmo/space/index.d.ts +31 -0
- package/lib/interfaces/cosmo/space/index.js +2 -0
- package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
- package/lib/interfaces/cosmo/stats/index.js +2 -0
- package/lib/interfaces/cosmo/tag/tag.d.ts +13 -0
- package/lib/interfaces/cosmo/tag/tag.js +2 -0
- package/lib/interfaces/global/Products.d.ts +2 -3
- package/lib/interfaces/global/Products.js +1 -2
- package/lib/interfaces/global/Views.d.ts +0 -1
- package/lib/interfaces/global/Views.js +0 -1
- package/lib/interfaces/high5/index.d.ts +7 -7
- package/lib/interfaces/high5/index.js +7 -7
- package/lib/interfaces/{friday → high5}/space/database/document/index.d.ts +1 -1
- package/lib/interfaces/{friday → high5}/space/database/document/index.js +2 -1
- package/lib/interfaces/high5/space/database/index.js +2 -0
- package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +10 -2
- package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
- package/lib/interfaces/high5/space/execution/index.d.ts +3 -1
- package/lib/interfaces/{fuse/space/cronjob/CronjobLog.d.ts → high5/space/job/JobLog.d.ts} +3 -3
- package/lib/interfaces/high5/space/job/JobLog.js +2 -0
- package/lib/interfaces/high5/space/job/index.d.ts +83 -0
- package/lib/interfaces/high5/space/job/index.js +11 -0
- package/lib/interfaces/high5/stats.d.ts +21 -0
- package/lib/interfaces/high5/stats.js +2 -0
- package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
- package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
- package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
- package/lib/interfaces/idp/index.d.ts +3 -3
- package/lib/interfaces/idp/index.js +3 -3
- package/lib/interfaces/idp/oauth/device.d.ts +18 -0
- package/lib/interfaces/idp/oauth/device.js +2 -0
- package/lib/interfaces/idp/oauth/index.d.ts +19 -5
- package/lib/interfaces/idp/organization/index.d.ts +2 -0
- package/lib/interfaces/idp/organization/index.js +2 -0
- package/lib/interfaces/idp/organization/license/index.d.ts +13 -11
- package/lib/interfaces/idp/organization/member/index.d.ts +1 -0
- package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
- package/lib/interfaces/idp/organization/stats.d.ts +7 -0
- package/lib/interfaces/idp/organization/stats.js +2 -0
- package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
- package/lib/interfaces/idp/user/Message.d.ts +22 -0
- package/lib/interfaces/idp/user/Message.js +14 -0
- package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
- package/lib/interfaces/idp/user/Scopes.d.ts +1 -15
- package/lib/interfaces/idp/user/Scopes.js +0 -21
- package/lib/interfaces/idp/user/index.d.ts +5 -1
- package/lib/interfaces/mailer/index.d.ts +50 -2
- package/lib/interfaces/mailer/index.js +100 -2
- package/lib/interfaces/mothership/index.d.ts +3 -1
- package/lib/interfaces/mothership/index.js +15 -0
- package/lib/interfaces/mothership/stats.d.ts +4 -0
- package/lib/interfaces/mothership/stats.js +2 -0
- package/lib/interfaces/nats/index.d.ts +79 -51
- package/lib/interfaces/nats/index.js +140 -125
- package/lib/interfaces/shorts/index.d.ts +17 -0
- package/lib/interfaces/shorts/index.js +8 -0
- package/lib/service/agent/bundle/dev/index.d.ts +16 -6
- package/lib/service/agent/bundle/dev/index.js +16 -11
- package/lib/service/agent/bundle/index.d.ts +10 -4
- package/lib/service/agent/bundle/index.js +10 -7
- package/lib/service/agent/context/index.d.ts +22 -8
- package/lib/service/agent/context/index.js +19 -15
- package/lib/service/agent/index.d.ts +6 -0
- package/lib/service/agent/index.js +18 -1
- package/lib/service/agent/installer/index.js +4 -1
- package/lib/service/agent/logging/index.d.ts +69 -0
- package/lib/service/agent/logging/index.js +117 -0
- package/lib/service/agent/module/index.d.ts +36 -0
- package/lib/service/agent/module/index.js +65 -0
- package/lib/service/auditor/index.d.ts +8 -4
- package/lib/service/auditor/index.js +9 -6
- package/lib/service/auditor/internal/index.d.ts +27 -3
- package/lib/service/auditor/internal/index.js +38 -6
- package/lib/service/bouncer/features/index.d.ts +4 -2
- package/lib/service/bouncer/features/index.js +6 -3
- package/lib/service/bouncer/index.js +5 -2
- package/lib/service/cosmo/asset/index.d.ts +265 -0
- package/lib/service/cosmo/asset/index.js +420 -0
- package/lib/service/cosmo/comment/index.d.ts +93 -0
- package/lib/service/cosmo/comment/index.js +136 -0
- package/lib/service/cosmo/event/index.d.ts +23 -0
- package/lib/service/cosmo/event/index.js +43 -0
- package/lib/service/cosmo/folder/index.d.ts +27 -0
- package/lib/service/cosmo/folder/index.js +50 -0
- package/lib/service/cosmo/index.d.ts +52 -0
- package/lib/service/cosmo/index.js +129 -0
- package/lib/service/cosmo/internal/index.d.ts +7 -0
- package/lib/service/cosmo/internal/index.js +20 -0
- package/lib/service/cosmo/internal/space/index.d.ts +15 -0
- package/lib/service/cosmo/internal/space/index.js +37 -0
- package/lib/service/cosmo/location/index.d.ts +40 -0
- package/lib/service/cosmo/location/index.js +66 -0
- package/lib/service/cosmo/namespace/index.d.ts +56 -0
- package/lib/service/cosmo/namespace/index.js +85 -0
- package/lib/service/cosmo/organization/index.d.ts +47 -0
- package/lib/service/cosmo/organization/index.js +67 -0
- package/lib/service/cosmo/permissions/index.d.ts +131 -0
- package/lib/service/cosmo/permissions/index.js +184 -0
- package/lib/service/cosmo/production/index.d.ts +26 -0
- package/lib/service/cosmo/production/index.js +48 -0
- package/lib/service/cosmo/share/index.d.ts +169 -0
- package/lib/service/cosmo/share/index.js +227 -0
- package/lib/service/cosmo/space/index.d.ts +131 -0
- package/lib/service/cosmo/space/index.js +190 -0
- package/lib/service/cosmo/stats/index.d.ts +35 -0
- package/lib/service/cosmo/stats/index.js +58 -0
- package/lib/service/cosmo/tag/index.d.ts +67 -0
- package/lib/service/cosmo/tag/index.js +96 -0
- package/lib/service/dali/DaliAvatar.d.ts +0 -6
- package/lib/service/dali/DaliAvatar.js +4 -11
- package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +10 -4
- package/lib/service/dali/avatar/DaliCosmoSpace.js +12 -8
- package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +11 -4
- package/lib/service/dali/avatar/DaliHigh5Pool.js +12 -8
- package/lib/service/dali/avatar/DaliHigh5Space.d.ts +11 -4
- package/lib/service/dali/avatar/DaliHigh5Space.js +12 -8
- package/lib/service/dali/avatar/DaliOAuthApp.d.ts +11 -4
- package/lib/service/dali/avatar/DaliOAuthApp.js +12 -8
- package/lib/service/dali/avatar/DaliOrganization.d.ts +11 -4
- package/lib/service/dali/avatar/DaliOrganization.js +12 -8
- package/lib/service/dali/avatar/DaliServiceAccount.d.ts +10 -4
- package/lib/service/dali/avatar/DaliServiceAccount.js +12 -8
- package/lib/service/dali/avatar/DaliTeam.d.ts +11 -4
- package/lib/service/dali/avatar/DaliTeam.js +12 -8
- package/lib/service/dali/avatar/DaliUser.d.ts +11 -4
- package/lib/service/dali/avatar/DaliUser.js +12 -8
- package/lib/service/dali/index.d.ts +4 -5
- package/lib/service/dali/index.js +6 -6
- package/lib/service/high5/execution/index.d.ts +4 -2
- package/lib/service/high5/execution/index.js +7 -3
- package/lib/service/high5/execution/log/index.js +4 -1
- package/lib/service/high5/execution/status/index.d.ts +5 -3
- package/lib/service/high5/execution/status/index.js +7 -4
- package/lib/service/high5/index.d.ts +7 -2
- package/lib/service/high5/index.js +13 -3
- package/lib/service/high5/internal/index.d.ts +4 -2
- package/lib/service/high5/internal/index.js +7 -3
- package/lib/service/high5/internal/space/index.d.ts +10 -3
- package/lib/service/high5/internal/space/index.js +17 -5
- package/lib/service/high5/internal/space/job/index.d.ts +7 -0
- package/lib/service/high5/internal/space/job/index.js +20 -0
- package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
- package/lib/service/{fuse/internal/space/cronjob → high5/internal/space/job}/log/index.js +13 -10
- package/lib/service/high5/joinToken/index.d.ts +14 -6
- package/lib/service/high5/joinToken/index.js +14 -10
- package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
- package/lib/service/high5/space/database/document/array/index.js +105 -0
- package/lib/service/{friday → high5}/space/database/document/index.d.ts +26 -10
- package/lib/service/{friday → high5}/space/database/document/index.js +35 -17
- package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
- package/lib/service/high5/space/database/document/number/index.js +80 -0
- package/lib/service/{friday → high5}/space/database/index.d.ts +22 -12
- package/lib/service/{friday → high5}/space/database/index.js +22 -18
- package/lib/service/high5/space/event/index.d.ts +17 -7
- package/lib/service/high5/space/event/index.js +16 -12
- package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
- package/lib/service/high5/space/event/stream/design/DesignOperations.js +6 -3
- package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
- package/lib/service/high5/space/event/stream/design/index.js +13 -9
- package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
- package/lib/service/high5/space/event/stream/design/snapshot/index.js +16 -11
- package/lib/service/high5/space/event/stream/index.d.ts +32 -12
- package/lib/service/high5/space/event/stream/index.js +26 -22
- package/lib/service/high5/space/execution/index.d.ts +19 -7
- package/lib/service/high5/space/execution/index.js +21 -13
- package/lib/service/high5/space/execution/log/index.d.ts +8 -4
- package/lib/service/high5/space/execution/log/index.js +9 -6
- package/lib/service/high5/space/execution/status/index.d.ts +7 -3
- package/lib/service/high5/space/execution/status/index.js +8 -5
- package/lib/service/high5/space/index.d.ts +53 -14
- package/lib/service/high5/space/index.js +70 -28
- package/lib/service/{fuse/space/cronjob → high5/space/job}/index.d.ts +57 -35
- package/lib/service/{fuse/space/cronjob → high5/space/job}/index.js +88 -87
- package/lib/service/{fuse/space/cronjob → high5/space/job}/log/index.d.ts +15 -11
- package/lib/service/{fuse/space/cronjob → high5/space/job}/log/index.js +19 -16
- package/lib/service/high5/space/node/index.d.ts +20 -8
- package/lib/service/high5/space/node/index.js +18 -14
- package/lib/service/high5/space/pool/index.d.ts +38 -11
- package/lib/service/high5/space/pool/index.js +41 -19
- package/lib/service/high5/space/secret/index.d.ts +17 -7
- package/lib/service/high5/space/secret/index.js +16 -12
- package/lib/service/high5/space/stat/index.d.ts +12 -0
- package/lib/service/high5/space/stat/index.js +34 -0
- package/lib/service/high5/space/wave/index.d.ts +16 -6
- package/lib/service/high5/space/wave/index.js +15 -11
- package/lib/service/high5/space/webhook/index.d.ts +32 -12
- package/lib/service/high5/space/webhook/index.js +29 -22
- package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
- package/lib/service/high5/space/webhook/log/index.js +6 -3
- package/lib/service/high5/stat/index.d.ts +11 -0
- package/lib/service/{fuse/internal → high5/stat}/index.js +16 -14
- package/lib/service/high5/wave/index.js +4 -1
- package/lib/service/high5/wave/s3/index.d.ts +31 -8
- package/lib/service/high5/wave/s3/index.js +47 -23
- package/lib/service/idp/guest/index.d.ts +42 -0
- package/lib/service/idp/guest/index.js +69 -0
- package/lib/service/idp/index.d.ts +25 -7
- package/lib/service/idp/index.js +27 -13
- package/lib/service/idp/internal/index.d.ts +5 -3
- package/lib/service/idp/internal/index.js +9 -4
- package/lib/service/idp/oauth/device.d.ts +131 -0
- package/lib/service/idp/oauth/device.js +177 -0
- package/lib/service/idp/oauth/index.d.ts +19 -6
- package/lib/service/idp/oauth/index.js +26 -16
- package/lib/service/idp/organization/index.d.ts +28 -5
- package/lib/service/idp/organization/index.js +41 -11
- package/lib/service/idp/organization/license/index.d.ts +7 -3
- package/lib/service/idp/organization/license/index.js +8 -5
- package/lib/service/idp/organization/member/index.d.ts +20 -8
- package/lib/service/idp/organization/member/index.js +20 -15
- package/lib/service/idp/organization/member/invitations/index.d.ts +42 -9
- package/lib/service/idp/organization/member/invitations/index.js +94 -59
- package/lib/service/idp/organization/service-accounts/index.d.ts +31 -9
- package/lib/service/idp/organization/service-accounts/index.js +35 -14
- package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
- package/lib/service/idp/organization/settings/domain/index.js +13 -9
- package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
- package/lib/service/idp/organization/settings/domain/saml/index.js +23 -19
- package/lib/service/idp/organization/settings/index.js +4 -1
- package/lib/service/idp/organization/settings/oauth/index.d.ts +33 -9
- package/lib/service/idp/organization/settings/oauth/index.js +37 -16
- package/lib/service/idp/organization/stat/index.d.ts +11 -0
- package/lib/service/idp/organization/stat/index.js +33 -0
- package/lib/service/idp/organization/team/index.d.ts +32 -10
- package/lib/service/idp/organization/team/index.js +35 -14
- package/lib/service/idp/registration/index.d.ts +10 -4
- package/lib/service/idp/registration/index.js +19 -10
- package/lib/service/idp/user/index.d.ts +41 -11
- package/lib/service/idp/user/index.js +49 -19
- package/lib/service/idp/user/license/index.d.ts +7 -3
- package/lib/service/idp/user/license/index.js +8 -5
- package/lib/service/idp/user/message/index.d.ts +62 -0
- package/lib/service/idp/user/message/index.js +95 -0
- package/lib/service/idp/user/password/index.d.ts +4 -2
- package/lib/service/idp/user/password/index.js +6 -3
- package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
- package/lib/service/idp/user/settings/connections/index.js +6 -3
- package/lib/service/idp/user/settings/general/index.d.ts +10 -4
- package/lib/service/idp/user/settings/general/index.js +10 -7
- package/lib/service/idp/user/settings/index.js +4 -1
- package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
- package/lib/service/idp/user/settings/notifications/index.js +8 -5
- package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
- package/lib/service/idp/user/settings/oauthApps/index.js +10 -6
- package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
- package/lib/service/idp/user/settings/pats/index.js +21 -16
- package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
- package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
- package/lib/service/idp/user/settings/twoFactor/totp/index.js +17 -11
- package/lib/service/mailer/index.d.ts +4 -2
- package/lib/service/mailer/index.js +7 -4
- package/lib/service/mailer/internal/index.d.ts +14 -6
- package/lib/service/mailer/internal/index.js +12 -9
- package/lib/service/mothership/index.d.ts +35 -13
- package/lib/service/mothership/index.js +36 -18
- package/lib/service/nats/index.d.ts +7 -0
- package/lib/service/nats/index.js +77 -44
- package/lib/service/shorts/index.d.ts +18 -0
- package/lib/service/{friday → shorts}/index.js +17 -11
- package/lib/service/shorts/internal/index.d.ts +75 -0
- package/lib/service/shorts/internal/index.js +118 -0
- package/lib/utils/bouncer/features/Provider.js +0 -1
- package/package.json +2 -2
- package/lib/interfaces/friday/index.d.ts +0 -3
- package/lib/interfaces/friday/space/index.d.ts +0 -21
- package/lib/interfaces/friday/space/index.js +0 -11
- package/lib/interfaces/fuse/index.d.ts +0 -3
- package/lib/interfaces/fuse/index.js +0 -19
- package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
- package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
- package/lib/interfaces/fuse/space/index.d.ts +0 -22
- package/lib/interfaces/fuse/space/index.js +0 -11
- package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -26
- package/lib/service/dali/avatar/DaliFuseSpace.js +0 -58
- package/lib/service/friday/index.d.ts +0 -13
- package/lib/service/friday/space/index.d.ts +0 -81
- package/lib/service/friday/space/index.js +0 -150
- package/lib/service/fuse/index.d.ts +0 -18
- package/lib/service/fuse/index.js +0 -48
- package/lib/service/fuse/internal/index.d.ts +0 -8
- package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
- package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
- package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -15
- package/lib/service/fuse/internal/space/index.d.ts +0 -22
- package/lib/service/fuse/internal/space/index.js +0 -49
- package/lib/service/fuse/space/index.d.ts +0 -81
- package/lib/service/fuse/space/index.js +0 -152
- /package/lib/interfaces/{friday/space/database/index.js → agent/logging/cloudwatch.js} +0 -0
- /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/log-collector.js} +0 -0
- /package/lib/interfaces/{friday → high5}/space/database/index.d.ts +0 -0
|
@@ -8,9 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.High5SpaceExecutionLogs = void 0;
|
|
13
|
-
const Base_1 = require("../../../../../Base");
|
|
16
|
+
const Base_1 = __importDefault(require("../../../../../Base"));
|
|
14
17
|
const paginatedResponseHelper_1 = require("../../../../../helper/paginatedResponseHelper");
|
|
15
18
|
const searchFilter_1 = require("../../../../../helper/searchFilter");
|
|
16
19
|
class High5SpaceExecutionLogs extends Base_1.default {
|
|
@@ -24,14 +27,14 @@ class High5SpaceExecutionLogs extends Base_1.default {
|
|
|
24
27
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
25
28
|
* @returns Object containing an array of Stream execution logs as well as the total number of results
|
|
26
29
|
*/
|
|
27
|
-
searchExecutionLogs(_a) {
|
|
28
|
-
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, payload = false, filters, sorting, limit = 25, page = 0, }) {
|
|
30
|
+
searchExecutionLogs(_a, raw_1) {
|
|
31
|
+
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, payload = false, filters, sorting, limit = 25, page = 0, }, raw) {
|
|
29
32
|
const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
|
|
30
33
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/logs/search?page=${page}&limit=${limit}&payload=${payload}`), {
|
|
31
34
|
filters: filtersDTO,
|
|
32
35
|
sorting: sorting,
|
|
33
36
|
});
|
|
34
|
-
return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
|
|
37
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
@@ -42,13 +45,13 @@ class High5SpaceExecutionLogs extends Base_1.default {
|
|
|
42
45
|
* @returns Stream execution log
|
|
43
46
|
*/
|
|
44
47
|
getStreamExecutionLog(orgName_1, spaceName_1, streamLogId_1) {
|
|
45
|
-
return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamLogId, payload = false) {
|
|
48
|
+
return __awaiter(this, arguments, void 0, function* (orgName, spaceName, streamLogId, payload = false, raw) {
|
|
46
49
|
const resp = yield this.axios
|
|
47
50
|
.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/logs/${streamLogId}?payload=${payload}`))
|
|
48
51
|
.catch((err) => {
|
|
49
52
|
throw err;
|
|
50
53
|
});
|
|
51
|
-
return resp.data;
|
|
54
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
57
|
getEndpoint(endpoint) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import Base, { Options } from "../../../../../Base";
|
|
2
|
+
import Base, { MaybeRaw, Options } from "../../../../../Base";
|
|
3
3
|
import { ExecutionTree, High5ExecutionStatus } from "../../../../../interfaces/high5/space/execution";
|
|
4
4
|
export declare class High5SpaceExecutionStates extends Base {
|
|
5
5
|
constructor(options: Options, axios: AxiosInstance);
|
|
@@ -10,7 +10,9 @@ export declare class High5SpaceExecutionStates extends Base {
|
|
|
10
10
|
* @param executionStatusId ID of the execution status
|
|
11
11
|
* @returns High5ExecutionStatus
|
|
12
12
|
*/
|
|
13
|
-
getStreamExecutionStatus(orgName: string, spaceName: string, executionStatusId: string
|
|
13
|
+
getStreamExecutionStatus<R extends boolean = false>(orgName: string, spaceName: string, executionStatusId: string, raw?: {
|
|
14
|
+
raw: R;
|
|
15
|
+
}): Promise<MaybeRaw<R, High5ExecutionStatus>>;
|
|
14
16
|
/**
|
|
15
17
|
* Retrieves the complete executionTree the stream execution belongs to. An executionTree represents the hierarchical structure of stream executions initiated by a 'Trigger Stream' node.
|
|
16
18
|
* @param orgName Name of the Organization
|
|
@@ -18,6 +20,8 @@ export declare class High5SpaceExecutionStates extends Base {
|
|
|
18
20
|
* @param executionStatusId ID of the execution status
|
|
19
21
|
* @returns ExecutionTree
|
|
20
22
|
*/
|
|
21
|
-
getExecutionTree(orgName: string, spaceName: string, executionStatusId: string
|
|
23
|
+
getExecutionTree<R extends boolean = false>(orgName: string, spaceName: string, executionStatusId: string, raw?: {
|
|
24
|
+
raw: R;
|
|
25
|
+
}): Promise<MaybeRaw<R, ExecutionTree>>;
|
|
22
26
|
protected getEndpoint(endpoint: string): string;
|
|
23
27
|
}
|
|
@@ -8,9 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.High5SpaceExecutionStates = void 0;
|
|
13
|
-
const Base_1 = require("../../../../../Base");
|
|
16
|
+
const Base_1 = __importDefault(require("../../../../../Base"));
|
|
14
17
|
class High5SpaceExecutionStates extends Base_1.default {
|
|
15
18
|
constructor(options, axios) {
|
|
16
19
|
super(options, axios);
|
|
@@ -22,10 +25,10 @@ class High5SpaceExecutionStates extends Base_1.default {
|
|
|
22
25
|
* @param executionStatusId ID of the execution status
|
|
23
26
|
* @returns High5ExecutionStatus
|
|
24
27
|
*/
|
|
25
|
-
getStreamExecutionStatus(orgName, spaceName, executionStatusId) {
|
|
28
|
+
getStreamExecutionStatus(orgName, spaceName, executionStatusId, raw) {
|
|
26
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
30
|
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/status/${executionStatusId}`));
|
|
28
|
-
return resp.data;
|
|
31
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
@@ -35,10 +38,10 @@ class High5SpaceExecutionStates extends Base_1.default {
|
|
|
35
38
|
* @param executionStatusId ID of the execution status
|
|
36
39
|
* @returns ExecutionTree
|
|
37
40
|
*/
|
|
38
|
-
getExecutionTree(orgName, spaceName, executionStatusId) {
|
|
41
|
+
getExecutionTree(orgName, spaceName, executionStatusId, raw) {
|
|
39
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
43
|
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/streams/executionTree/${executionStatusId}`));
|
|
41
|
-
return resp.data;
|
|
44
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
getEndpoint(endpoint) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import Base from "../../../Base";
|
|
1
|
+
import Base, { MaybeRaw } from "../../../Base";
|
|
2
2
|
import { PaginatedResponse, SearchParams } from "../../../interfaces/global";
|
|
3
3
|
import { Stream } from "../../../interfaces/high5";
|
|
4
4
|
import { High5Space as Space, High5SpaceEntityPermission as SpaceEntityPermission, High5SpacePermission as SpacePermission } from "../../../interfaces/high5/space";
|
|
5
|
+
import { High5Database } from "./database";
|
|
5
6
|
import { High5Event } from "./event";
|
|
6
7
|
import { High5SpaceExecute } from "./execution";
|
|
8
|
+
import { High5Job } from "./job";
|
|
7
9
|
import High5Node from "./node";
|
|
8
10
|
import High5Pool from "./pool";
|
|
9
11
|
import High5Secret from "./secret";
|
|
12
|
+
import { High5SpaceStat } from "./stat";
|
|
10
13
|
import High5Wave from "./wave";
|
|
11
14
|
import { High5Webhook } from "./webhook";
|
|
12
15
|
export declare class High5Space extends Base {
|
|
@@ -24,6 +27,12 @@ export declare class High5Space extends Base {
|
|
|
24
27
|
private _wave?;
|
|
25
28
|
get node(): High5Node;
|
|
26
29
|
private _node?;
|
|
30
|
+
get database(): High5Database;
|
|
31
|
+
private _database?;
|
|
32
|
+
get job(): High5Job;
|
|
33
|
+
private _job?;
|
|
34
|
+
get stat(): High5SpaceStat;
|
|
35
|
+
private _stat?;
|
|
27
36
|
/**
|
|
28
37
|
* Retrieves all High5 Spaces of the specified Organization matching the search filter(s). Will return all Spaces if no search filter is provided.
|
|
29
38
|
* @param orgName Name of the organization
|
|
@@ -33,9 +42,11 @@ export declare class High5Space extends Base {
|
|
|
33
42
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
34
43
|
* @returns Object containing an array of High5 Spaces and the total number of results found in the database (independent of limit and page)
|
|
35
44
|
*/
|
|
36
|
-
searchSpaces({ orgName, filters, sorting, limit, page }: SearchParams & {
|
|
45
|
+
searchSpaces<R extends boolean = false>({ orgName, filters, sorting, limit, page }: SearchParams & {
|
|
37
46
|
orgName: string;
|
|
38
|
-
}
|
|
47
|
+
}, raw?: {
|
|
48
|
+
raw: R;
|
|
49
|
+
}): Promise<MaybeRaw<R, PaginatedResponse<Space>>>;
|
|
39
50
|
/**
|
|
40
51
|
* Retrieves permissions of a space matching the search filter(s). Will return all permissions of the space if no search filter is provided.
|
|
41
52
|
* @param orgName Name of the organization
|
|
@@ -46,17 +57,21 @@ export declare class High5Space extends Base {
|
|
|
46
57
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
47
58
|
* @returns Object containing an array of High5 Space Permissions and the total number of results found in the database (independent of limit and page)
|
|
48
59
|
*/
|
|
49
|
-
searchSpacePermissions({ orgName, spaceName, filters, sorting, limit, page
|
|
60
|
+
searchSpacePermissions<R extends boolean = false>({ orgName, spaceName, filters, sorting, limit, page }: SearchParams & {
|
|
50
61
|
orgName: string;
|
|
51
62
|
spaceName: string;
|
|
52
|
-
}
|
|
63
|
+
}, raw?: {
|
|
64
|
+
raw: R;
|
|
65
|
+
}): Promise<MaybeRaw<R, PaginatedResponse<SpaceEntityPermission>>>;
|
|
53
66
|
/**
|
|
54
67
|
* Retrieves a High5 Space by its name.
|
|
55
68
|
* @param orgName Name of the Organization
|
|
56
69
|
* @param spaceName Name of the space
|
|
57
70
|
* @returns The requested Space
|
|
58
71
|
*/
|
|
59
|
-
getSpace(orgName: string, spaceName: string
|
|
72
|
+
getSpace<R extends boolean = false>(orgName: string, spaceName: string, raw?: {
|
|
73
|
+
raw: R;
|
|
74
|
+
}): Promise<MaybeRaw<R, Space>>;
|
|
60
75
|
/**
|
|
61
76
|
* Creates a new High5 Space in the specified Organization.
|
|
62
77
|
* @param orgName Name of the Organization
|
|
@@ -64,13 +79,17 @@ export declare class High5Space extends Base {
|
|
|
64
79
|
* @param enableDev (optional) Specifies to the front-end whether to display the versions in the development of Wave Engines and Node Catalogs
|
|
65
80
|
* @returns The created Space
|
|
66
81
|
*/
|
|
67
|
-
createSpace(orgName: string, name: string, enableDev?: boolean
|
|
82
|
+
createSpace<R extends boolean = false>(orgName: string, name: string, enableDev?: boolean, raw?: {
|
|
83
|
+
raw: R;
|
|
84
|
+
}): Promise<MaybeRaw<R, Space>>;
|
|
68
85
|
/**
|
|
69
86
|
* Delete a space by its name.
|
|
70
87
|
* @param orgName Name of the Organization
|
|
71
88
|
* @param spaceName Name of the Space
|
|
72
89
|
*/
|
|
73
|
-
deleteSpace(orgName: string, spaceName: string
|
|
90
|
+
deleteSpace<R extends boolean = false>(orgName: string, spaceName: string, raw?: {
|
|
91
|
+
raw: R;
|
|
92
|
+
}): Promise<MaybeRaw<R, void>>;
|
|
74
93
|
/**
|
|
75
94
|
* Adds/Updates/Removes the permission a user has in the specified space.
|
|
76
95
|
* @param orgName Name of the Organization
|
|
@@ -79,7 +98,9 @@ export declare class High5Space extends Base {
|
|
|
79
98
|
* @param permission New permission
|
|
80
99
|
* @returns The Space with updated permissions
|
|
81
100
|
*/
|
|
82
|
-
updateUserSpacePermission(orgName: string, spaceName: string, userId: string, permission: SpacePermission
|
|
101
|
+
updateUserSpacePermission<R extends boolean = false>(orgName: string, spaceName: string, userId: string, permission: SpacePermission, raw?: {
|
|
102
|
+
raw: R;
|
|
103
|
+
}): Promise<MaybeRaw<R, SpaceEntityPermission>>;
|
|
83
104
|
/**
|
|
84
105
|
* Adds/Updates/Removes the permission a team has in the specified space. Note: A team cannot be an owner of a Space.
|
|
85
106
|
* @param orgName Name of the Organization
|
|
@@ -88,7 +109,9 @@ export declare class High5Space extends Base {
|
|
|
88
109
|
* @param permission New permission
|
|
89
110
|
* @returns The Space with updated permissions
|
|
90
111
|
*/
|
|
91
|
-
updateTeamSpacePermission(orgName: string, spaceName: string, teamName: string, permission: SpacePermission
|
|
112
|
+
updateTeamSpacePermission<R extends boolean = false>(orgName: string, spaceName: string, teamName: string, permission: SpacePermission, raw?: {
|
|
113
|
+
raw: R;
|
|
114
|
+
}): Promise<MaybeRaw<R, SpaceEntityPermission>>;
|
|
92
115
|
/**
|
|
93
116
|
* Retrieves all streams of a space matching the search filter(s). Will return all streams if no search filter is provided.
|
|
94
117
|
* @param orgName Name of the organization
|
|
@@ -99,10 +122,12 @@ export declare class High5Space extends Base {
|
|
|
99
122
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
100
123
|
* @returns Object containing an array of streams and the total number of results found in the database (independent of limit and page)
|
|
101
124
|
*/
|
|
102
|
-
searchStreamsOfSpace({ orgName, spaceName, filters, sorting, limit, page
|
|
125
|
+
searchStreamsOfSpace<R extends boolean = false>({ orgName, spaceName, filters, sorting, limit, page }: SearchParams & {
|
|
103
126
|
orgName: string;
|
|
104
127
|
spaceName: string;
|
|
105
|
-
}
|
|
128
|
+
}, raw?: {
|
|
129
|
+
raw: R;
|
|
130
|
+
}): Promise<MaybeRaw<R, PaginatedResponse<Stream>>>;
|
|
106
131
|
/**
|
|
107
132
|
* Updates the name of a space.
|
|
108
133
|
* @param orgName Name of the organization
|
|
@@ -110,7 +135,9 @@ export declare class High5Space extends Base {
|
|
|
110
135
|
* @param newSpaceName New name for the space
|
|
111
136
|
* @returns The updated space
|
|
112
137
|
*/
|
|
113
|
-
renameSpace(orgName: string, spaceName: string, newSpaceName: string
|
|
138
|
+
renameSpace<R extends boolean = false>(orgName: string, spaceName: string, newSpaceName: string, raw?: {
|
|
139
|
+
raw: R;
|
|
140
|
+
}): Promise<MaybeRaw<R, Space>>;
|
|
114
141
|
/**
|
|
115
142
|
* Specifies to the front-end whether to display the versions under development of Wave Engines and Node Catalogs.
|
|
116
143
|
* @param orgName Name of the organization
|
|
@@ -118,6 +145,18 @@ export declare class High5Space extends Base {
|
|
|
118
145
|
* @param enableDev Specifies to the front-end whether to display the versions under development of Wave Engines and Node Catalogs
|
|
119
146
|
* @returns The updated space
|
|
120
147
|
*/
|
|
121
|
-
enableDev(orgName: string, spaceName: string, enableDev: boolean
|
|
148
|
+
enableDev<R extends boolean = false>(orgName: string, spaceName: string, enableDev: boolean, raw?: {
|
|
149
|
+
raw: R;
|
|
150
|
+
}): Promise<MaybeRaw<R, Space>>;
|
|
151
|
+
/**
|
|
152
|
+
* Updates the avatar of the specified High5 space
|
|
153
|
+
* @param orgName Name of the organization
|
|
154
|
+
* @param spaceName Name of the space
|
|
155
|
+
* @param file Image as Javascript File
|
|
156
|
+
* @returns Space details with updated avatar
|
|
157
|
+
*/
|
|
158
|
+
updateAvatar<R extends boolean = false>(orgName: string, spaceName: string, file: File, raw?: {
|
|
159
|
+
raw: R;
|
|
160
|
+
}): Promise<MaybeRaw<R, Space>>;
|
|
122
161
|
protected getEndpoint(endpoint: string): string;
|
|
123
162
|
}
|
|
@@ -8,17 +8,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.High5Space = void 0;
|
|
13
|
-
const Base_1 = require("../../../Base");
|
|
16
|
+
const Base_1 = __importDefault(require("../../../Base"));
|
|
14
17
|
const paginatedResponseHelper_1 = require("../../../helper/paginatedResponseHelper");
|
|
15
18
|
const searchFilter_1 = require("../../../helper/searchFilter");
|
|
19
|
+
const database_1 = require("./database");
|
|
16
20
|
const event_1 = require("./event");
|
|
17
21
|
const execution_1 = require("./execution");
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
+
const job_1 = require("./job");
|
|
23
|
+
const node_1 = __importDefault(require("./node"));
|
|
24
|
+
const pool_1 = __importDefault(require("./pool"));
|
|
25
|
+
const secret_1 = __importDefault(require("./secret"));
|
|
26
|
+
const stat_1 = require("./stat");
|
|
27
|
+
const wave_1 = __importDefault(require("./wave"));
|
|
22
28
|
const webhook_1 = require("./webhook");
|
|
23
29
|
class High5Space extends Base_1.default {
|
|
24
30
|
get event() {
|
|
@@ -63,6 +69,24 @@ class High5Space extends Base_1.default {
|
|
|
63
69
|
}
|
|
64
70
|
return this._node;
|
|
65
71
|
}
|
|
72
|
+
get database() {
|
|
73
|
+
if (this._database === undefined) {
|
|
74
|
+
this._database = new database_1.High5Database(this.options, this.axios);
|
|
75
|
+
}
|
|
76
|
+
return this._database;
|
|
77
|
+
}
|
|
78
|
+
get job() {
|
|
79
|
+
if (this._job === undefined) {
|
|
80
|
+
this._job = new job_1.High5Job(this.options, this.axios);
|
|
81
|
+
}
|
|
82
|
+
return this._job;
|
|
83
|
+
}
|
|
84
|
+
get stat() {
|
|
85
|
+
if (this._stat === undefined) {
|
|
86
|
+
this._stat = new stat_1.High5SpaceStat(this.options, this.axios);
|
|
87
|
+
}
|
|
88
|
+
return this._stat;
|
|
89
|
+
}
|
|
66
90
|
/**
|
|
67
91
|
* Retrieves all High5 Spaces of the specified Organization matching the search filter(s). Will return all Spaces if no search filter is provided.
|
|
68
92
|
* @param orgName Name of the organization
|
|
@@ -72,14 +96,14 @@ class High5Space extends Base_1.default {
|
|
|
72
96
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
73
97
|
* @returns Object containing an array of High5 Spaces and the total number of results found in the database (independent of limit and page)
|
|
74
98
|
*/
|
|
75
|
-
searchSpaces(_a) {
|
|
76
|
-
return __awaiter(this, arguments, void 0, function* ({ orgName, filters, sorting, limit = 25, page = 0 }) {
|
|
99
|
+
searchSpaces(_a, raw_1) {
|
|
100
|
+
return __awaiter(this, arguments, void 0, function* ({ orgName, filters, sorting, limit = 25, page = 0 }, raw) {
|
|
77
101
|
const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
|
|
78
102
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/search?page=${page}&limit=${limit}`), {
|
|
79
103
|
filters: filtersDTO,
|
|
80
104
|
sorting: sorting,
|
|
81
105
|
});
|
|
82
|
-
return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
|
|
106
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
|
|
83
107
|
});
|
|
84
108
|
}
|
|
85
109
|
/**
|
|
@@ -92,14 +116,14 @@ class High5Space extends Base_1.default {
|
|
|
92
116
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
93
117
|
* @returns Object containing an array of High5 Space Permissions and the total number of results found in the database (independent of limit and page)
|
|
94
118
|
*/
|
|
95
|
-
searchSpacePermissions(_a) {
|
|
96
|
-
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, filters, sorting, limit = 25, page = 0,
|
|
119
|
+
searchSpacePermissions(_a, raw_1) {
|
|
120
|
+
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, filters, sorting, limit = 25, page = 0 }, raw) {
|
|
97
121
|
const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
|
|
98
122
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/permissions/search?page=${page}&limit=${limit}`), {
|
|
99
123
|
filters: filtersDTO,
|
|
100
124
|
sorting: sorting,
|
|
101
125
|
});
|
|
102
|
-
return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
|
|
126
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
|
|
103
127
|
});
|
|
104
128
|
}
|
|
105
129
|
/**
|
|
@@ -108,10 +132,10 @@ class High5Space extends Base_1.default {
|
|
|
108
132
|
* @param spaceName Name of the space
|
|
109
133
|
* @returns The requested Space
|
|
110
134
|
*/
|
|
111
|
-
getSpace(orgName, spaceName) {
|
|
135
|
+
getSpace(orgName, spaceName, raw) {
|
|
112
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
137
|
const resp = yield this.axios.get(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}`));
|
|
114
|
-
return resp.data;
|
|
138
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
115
139
|
});
|
|
116
140
|
}
|
|
117
141
|
/**
|
|
@@ -121,10 +145,10 @@ class High5Space extends Base_1.default {
|
|
|
121
145
|
* @param enableDev (optional) Specifies to the front-end whether to display the versions in the development of Wave Engines and Node Catalogs
|
|
122
146
|
* @returns The created Space
|
|
123
147
|
*/
|
|
124
|
-
createSpace(orgName, name, enableDev) {
|
|
148
|
+
createSpace(orgName, name, enableDev, raw) {
|
|
125
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
150
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces`), { name, enableDev: Boolean(enableDev) });
|
|
127
|
-
return resp.data;
|
|
151
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
128
152
|
});
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
@@ -132,9 +156,10 @@ class High5Space extends Base_1.default {
|
|
|
132
156
|
* @param orgName Name of the Organization
|
|
133
157
|
* @param spaceName Name of the Space
|
|
134
158
|
*/
|
|
135
|
-
deleteSpace(orgName, spaceName) {
|
|
159
|
+
deleteSpace(orgName, spaceName, raw) {
|
|
136
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}`));
|
|
161
|
+
const resp = yield this.axios.delete(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}`));
|
|
162
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
|
|
138
163
|
});
|
|
139
164
|
}
|
|
140
165
|
/**
|
|
@@ -145,13 +170,13 @@ class High5Space extends Base_1.default {
|
|
|
145
170
|
* @param permission New permission
|
|
146
171
|
* @returns The Space with updated permissions
|
|
147
172
|
*/
|
|
148
|
-
updateUserSpacePermission(orgName, spaceName, userId, permission) {
|
|
173
|
+
updateUserSpacePermission(orgName, spaceName, userId, permission, raw) {
|
|
149
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
175
|
const resp = yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/permissions/user`), {
|
|
151
176
|
userId,
|
|
152
177
|
permission,
|
|
153
178
|
});
|
|
154
|
-
return resp.data;
|
|
179
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
155
180
|
});
|
|
156
181
|
}
|
|
157
182
|
/**
|
|
@@ -162,13 +187,13 @@ class High5Space extends Base_1.default {
|
|
|
162
187
|
* @param permission New permission
|
|
163
188
|
* @returns The Space with updated permissions
|
|
164
189
|
*/
|
|
165
|
-
updateTeamSpacePermission(orgName, spaceName, teamName, permission) {
|
|
190
|
+
updateTeamSpacePermission(orgName, spaceName, teamName, permission, raw) {
|
|
166
191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
192
|
const resp = yield this.axios.put(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/permissions/team`), {
|
|
168
193
|
teamName,
|
|
169
194
|
permission,
|
|
170
195
|
});
|
|
171
|
-
return resp.data;
|
|
196
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
172
197
|
});
|
|
173
198
|
}
|
|
174
199
|
/**
|
|
@@ -181,14 +206,14 @@ class High5Space extends Base_1.default {
|
|
|
181
206
|
* @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0)
|
|
182
207
|
* @returns Object containing an array of streams and the total number of results found in the database (independent of limit and page)
|
|
183
208
|
*/
|
|
184
|
-
searchStreamsOfSpace(_a) {
|
|
185
|
-
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, filters, sorting, limit = 25, page = 0,
|
|
209
|
+
searchStreamsOfSpace(_a, raw_1) {
|
|
210
|
+
return __awaiter(this, arguments, void 0, function* ({ orgName, spaceName, filters, sorting, limit = 25, page = 0 }, raw) {
|
|
186
211
|
const filtersDTO = filters === null || filters === void 0 ? void 0 : filters.map((f) => new searchFilter_1.SearchFilterDTO(f));
|
|
187
212
|
const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/streams/search?page=${page}&limit=${limit}`), {
|
|
188
213
|
filters: filtersDTO,
|
|
189
214
|
sorting: sorting,
|
|
190
215
|
});
|
|
191
|
-
return (0, paginatedResponseHelper_1.createPaginatedResponse)(resp);
|
|
216
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? Object.assign(Object.assign({}, resp), { data: (0, paginatedResponseHelper_1.createPaginatedResponse)(resp) }) : (0, paginatedResponseHelper_1.createPaginatedResponse)(resp));
|
|
192
217
|
});
|
|
193
218
|
}
|
|
194
219
|
/**
|
|
@@ -198,12 +223,12 @@ class High5Space extends Base_1.default {
|
|
|
198
223
|
* @param newSpaceName New name for the space
|
|
199
224
|
* @returns The updated space
|
|
200
225
|
*/
|
|
201
|
-
renameSpace(orgName, spaceName, newSpaceName) {
|
|
226
|
+
renameSpace(orgName, spaceName, newSpaceName, raw) {
|
|
202
227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
203
228
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/name`), {
|
|
204
229
|
newSpaceName,
|
|
205
230
|
});
|
|
206
|
-
return resp.data;
|
|
231
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
207
232
|
});
|
|
208
233
|
}
|
|
209
234
|
/**
|
|
@@ -213,12 +238,29 @@ class High5Space extends Base_1.default {
|
|
|
213
238
|
* @param enableDev Specifies to the front-end whether to display the versions under development of Wave Engines and Node Catalogs
|
|
214
239
|
* @returns The updated space
|
|
215
240
|
*/
|
|
216
|
-
enableDev(orgName, spaceName, enableDev) {
|
|
241
|
+
enableDev(orgName, spaceName, enableDev, raw) {
|
|
217
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
218
243
|
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/dev`), {
|
|
219
244
|
enableDev,
|
|
220
245
|
});
|
|
221
|
-
return resp.data;
|
|
246
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Updates the avatar of the specified High5 space
|
|
251
|
+
* @param orgName Name of the organization
|
|
252
|
+
* @param spaceName Name of the space
|
|
253
|
+
* @param file Image as Javascript File
|
|
254
|
+
* @returns Space details with updated avatar
|
|
255
|
+
*/
|
|
256
|
+
updateAvatar(orgName, spaceName, file, raw) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
const data = new FormData();
|
|
259
|
+
data.append("avatar", file);
|
|
260
|
+
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/avatar`), data, {
|
|
261
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
262
|
+
});
|
|
263
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
222
264
|
});
|
|
223
265
|
}
|
|
224
266
|
getEndpoint(endpoint) {
|