@mittwald/cli 1.0.0-alpha.21 → 1.0.0-alpha.22
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/README.md +111 -149
- package/dist/esm/Translator.js +2 -1
- package/dist/esm/commands/app/copy.js +1 -1
- package/dist/esm/commands/app/{install → create}/node.d.ts +3 -2
- package/dist/esm/commands/app/create/node.js +13 -0
- package/dist/esm/commands/app/{install → create}/php.d.ts +3 -2
- package/dist/esm/commands/app/create/php.js +13 -0
- package/dist/esm/commands/app/dependency/update.js +2 -2
- package/dist/esm/commands/app/dependency/versions.js +1 -1
- package/dist/esm/commands/app/list.js +6 -1
- package/dist/esm/commands/app/ssh.d.ts +11 -0
- package/dist/esm/commands/app/ssh.js +46 -0
- package/dist/esm/commands/app/uninstall.js +1 -1
- package/dist/esm/commands/app/versions.js +1 -1
- package/dist/esm/commands/conversation/close.js +1 -1
- package/dist/esm/commands/conversation/create.js +1 -1
- package/dist/esm/commands/conversation/reply.js +1 -1
- package/dist/esm/commands/conversation/show.js +2 -2
- package/dist/esm/commands/conversation/show2.js +1 -3
- package/dist/esm/commands/database/mysql/charsets.js +1 -3
- package/dist/esm/commands/database/mysql/create.js +3 -3
- package/dist/esm/commands/database/mysql/delete.js +1 -1
- package/dist/esm/commands/database/mysql/get.js +1 -1
- package/dist/esm/commands/database/mysql/list.js +1 -1
- package/dist/esm/commands/database/mysql/phpmyadmin.js +2 -2
- package/dist/esm/commands/database/mysql/user/get.js +1 -1
- package/dist/esm/commands/database/mysql/user/list.js +1 -3
- package/dist/esm/commands/database/redis/create.js +2 -2
- package/dist/esm/commands/database/redis/get.js +1 -1
- package/dist/esm/commands/database/redis/list.js +1 -1
- package/dist/esm/commands/domain/list.js +1 -3
- package/dist/esm/commands/domain/ownership/list.js +1 -1
- package/dist/esm/commands/domain/virtualhost/create.js +2 -2
- package/dist/esm/commands/domain/virtualhost/delete.js +1 -1
- package/dist/esm/commands/domain/virtualhost/get.js +4 -4
- package/dist/esm/commands/domain/virtualhost/list.js +1 -1
- package/dist/esm/commands/mail/address/create.js +1 -1
- package/dist/esm/commands/mail/address/delete.js +1 -1
- package/dist/esm/commands/mail/address/list.js +1 -3
- package/dist/esm/commands/org/delete.js +1 -1
- package/dist/esm/commands/org/get.js +2 -2
- package/dist/esm/commands/org/invite/list-own.js +1 -1
- package/dist/esm/commands/org/invite/list.js +1 -1
- package/dist/esm/commands/org/invite/revoke.js +2 -2
- package/dist/esm/commands/org/invite.js +1 -1
- package/dist/esm/commands/org/list.js +1 -3
- package/dist/esm/commands/org/membership/list-own.js +2 -4
- package/dist/esm/commands/org/membership/list.d.ts +1 -0
- package/dist/esm/commands/org/membership/list.js +2 -2
- package/dist/esm/commands/org/membership/revoke.js +3 -3
- package/dist/esm/commands/project/backup/create.js +2 -2
- package/dist/esm/commands/project/backup/delete.js +1 -1
- package/dist/esm/commands/project/backup/download.js +3 -3
- package/dist/esm/commands/project/backup/list.js +1 -1
- package/dist/esm/commands/project/backupschedule/list.js +1 -1
- package/dist/esm/commands/project/create.js +2 -2
- package/dist/esm/commands/project/cronjob/execution/get.js +1 -1
- package/dist/esm/commands/project/cronjob/execution/list.js +1 -3
- package/dist/esm/commands/project/cronjob/execution/logs.js +4 -3
- package/dist/esm/commands/project/cronjob/list.js +1 -3
- package/dist/esm/commands/project/delete.js +1 -1
- package/dist/esm/commands/project/filesystem/usage.js +2 -2
- package/dist/esm/commands/project/get.js +4 -4
- package/dist/esm/commands/project/membership/list.js +1 -1
- package/dist/esm/commands/project/ssh.js +1 -1
- package/dist/esm/commands/user/api-token/revoke.js +1 -1
- package/dist/esm/commands/user/ssh-key/delete.js +1 -1
- package/dist/esm/generated/conversation/getCategory.js +1 -1
- package/dist/esm/generated/conversation/getConversation.js +1 -1
- package/dist/esm/generated/conversation/listCategories.js +1 -3
- package/dist/esm/generated/conversation/listConversations.js +1 -3
- package/dist/esm/generated/conversation/listMessagesByConversation.js +1 -3
- package/dist/esm/generated/cronjob/getCronjob.js +1 -1
- package/dist/esm/generated/cronjob/getExecution.js +1 -1
- package/dist/esm/generated/domain/dnsZoneGetSpecific.js +1 -1
- package/dist/esm/generated/domain/dnsZonesForProject.js +1 -1
- package/dist/esm/generated/domain/getDomain.js +1 -1
- package/dist/esm/generated/domain/getHandleFields.js +1 -1
- package/dist/esm/generated/domain/getSpecificDomainOwnership.js +1 -1
- package/dist/esm/generated/file/getFile.js +1 -1
- package/dist/esm/generated/file/getFileMeta.js +1 -1
- package/dist/esm/generated/file/getFileTokenRules.js +1 -1
- package/dist/esm/generated/file/getFileTypeRules.js +1 -1
- package/dist/esm/generated/mail/deliveryboxGetSpecific.js +1 -1
- package/dist/esm/generated/mail/deliveryboxList.js +1 -3
- package/dist/esm/generated/mail/mailaddressGetSpecific.js +1 -1
- package/dist/esm/generated/mail/mailaddressList.js +1 -3
- package/dist/esm/generated/mail/projectsettingGetSpecific.js +1 -1
- package/dist/esm/generated/notification/newsletterGetInfo.js +1 -1
- package/dist/esm/generated/notification/scountUnreadNotifications.js +1 -1
- package/dist/esm/generated/notification/slistNotifications.js +1 -3
- package/dist/esm/generated/project/getProject.js +1 -1
- package/dist/esm/generated/project/getProjectInvite.js +1 -1
- package/dist/esm/generated/project/getProjectMembership.js +1 -1
- package/dist/esm/generated/project/getSelfMembershipForProject.js +1 -1
- package/dist/esm/generated/project/getServer.js +1 -1
- package/dist/esm/generated/project/listInvitesForProject.js +1 -3
- package/dist/esm/generated/project/listMembershipsForProject.js +1 -3
- package/dist/esm/generated/project/listProjectInvites.js +1 -3
- package/dist/esm/generated/project/listProjectMemberships.js +1 -3
- package/dist/esm/generated/project/listProjects.js +1 -3
- package/dist/esm/generated/project/listServers.js +1 -3
- package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +1 -1
- package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +1 -3
- package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +1 -1
- package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +1 -3
- package/dist/esm/generated/user/getApiToken.js +1 -1
- package/dist/esm/generated/user/getPersonalizedSettings.js +1 -1
- package/dist/esm/generated/user/getSession.js +1 -1
- package/dist/esm/generated/user/getSshKey.js +1 -1
- package/dist/esm/generated/user/getUser.js +1 -1
- package/dist/esm/generated/user/listApiTokens.js +1 -3
- package/dist/esm/generated/user/listFeedback.js +1 -3
- package/dist/esm/generated/user/listSessions.js +1 -3
- package/dist/esm/generated/user/listSshKeys.js +1 -3
- package/dist/esm/lib/app/Installer.d.ts +1 -1
- package/dist/esm/lib/app/Installer.js +2 -2
- package/dist/esm/lib/app/hooks.js +7 -8
- package/dist/esm/lib/app/install.js +1 -1
- package/dist/esm/lib/app/uuid.js +2 -1
- package/dist/esm/lib/app/versions.js +2 -6
- package/dist/esm/lib/app/wait.js +1 -1
- package/dist/esm/lib/database/common.js +1 -1
- package/dist/esm/lib/database/mysql/connect.js +2 -2
- package/dist/esm/lib/database/mysql/flags.js +1 -1
- package/dist/esm/lib/database/redis/connect.js +1 -1
- package/dist/esm/lib/database/redis/flags.js +1 -1
- package/dist/esm/lib/project/hooks.js +1 -1
- package/dist/esm/lib/project/ingress.js +1 -1
- package/dist/esm/lib/project/shortId.js +1 -1
- package/dist/esm/lib/projectbackup/hooks.js +2 -2
- package/dist/esm/rendering/lib/getTerminalWidth.d.ts +1 -1
- package/dist/esm/rendering/lib/getTerminalWidth.js +1 -1
- package/dist/esm/rendering/react/RenderBaseCommand.js +5 -1
- package/dist/esm/rendering/react/components/AppInstallation/AppInstallationDetails.js +5 -2
- package/dist/esm/rendering/react/components/Conversation/ConversationMeta.js +1 -3
- package/dist/esm/rendering/react/components/Table/model/Column.d.ts +1 -1
- package/dist/esm/rendering/react/components/Table/model/Column.js +5 -2
- package/dist/esm/rendering/react/components/Table/model/ColumnOptions.js +1 -1
- package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.d.ts +1 -0
- package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.js +9 -0
- package/dist/esm/rendering/react/hooks/useMyUserProfile.js +1 -3
- package/dist/esm/rendering/react/measure/MeasureContextProvider.js +6 -2
- package/package.json +5 -7
- package/dist/esm/commands/app/install/node.js +0 -13
- package/dist/esm/commands/app/install/php.js +0 -13
- package/dist/esm/commands/domain/tld/get.d.ts +0 -3
- package/dist/esm/commands/domain/tld/get.js +0 -6
- package/dist/esm/commands/domain/tld/list.d.ts +0 -9
- package/dist/esm/commands/domain/tld/list.js +0 -6
- package/dist/esm/generated/domain/getToplevelDomain.d.ts +0 -16
- package/dist/esm/generated/domain/getToplevelDomain.js +0 -25
- package/dist/esm/generated/domain/listToplevelDomains.d.ts +0 -13
- package/dist/esm/generated/domain/listToplevelDomains.js +0 -17
|
@@ -20,7 +20,7 @@ const ProjectSpecs = ({ projectId, spec }) => {
|
|
|
20
20
|
if ("cpu" in spec) {
|
|
21
21
|
const { apiClient } = useRenderContext();
|
|
22
22
|
const usage = usePromise((id) => apiClient.projectFileSystem.getDiskUsage({
|
|
23
|
-
|
|
23
|
+
projectId: id,
|
|
24
24
|
}), [projectId]);
|
|
25
25
|
const used = usage.data?.usedBytes ? (_jsxs(Text, { children: [" ", "(", _jsx(Value, { children: _jsx(ByteFormat, { bytes: usage.data?.usedBytes }) }), " ", "used)"] })) : undefined;
|
|
26
26
|
return (_jsx(SingleResult, { title: "Compute resources", rows: {
|
|
@@ -39,9 +39,9 @@ const ProjectCustomer = ({ customer }) => {
|
|
|
39
39
|
};
|
|
40
40
|
const GetProject = ({ response }) => {
|
|
41
41
|
const { apiClient } = useRenderContext();
|
|
42
|
-
const customer = usePromise((id) => apiClient.customer.getCustomer({
|
|
42
|
+
const customer = usePromise((id) => apiClient.customer.getCustomer({ customerId: id }), [response.customerId]);
|
|
43
43
|
const vhosts = usePromise((id) => apiClient.domain.ingressListForProject({
|
|
44
|
-
|
|
44
|
+
projectId: id,
|
|
45
45
|
}), [response.id]);
|
|
46
46
|
assertStatus(customer, 200);
|
|
47
47
|
assertStatus(vhosts, 200);
|
|
@@ -72,7 +72,7 @@ export class Get extends RenderBaseCommand {
|
|
|
72
72
|
formatter = new GetFormatter(new ComponentPrinter((r) => _jsx(GetProject, { response: r })));
|
|
73
73
|
render() {
|
|
74
74
|
const projectId = usePromise(() => withProjectId(this.apiClient, Get, this.flags, this.args, this.config), []);
|
|
75
|
-
const projectResponse = usePromise((id) => this.apiClient.project.getProject({
|
|
75
|
+
const projectResponse = usePromise((id) => this.apiClient.project.getProject({ id }), [projectId]);
|
|
76
76
|
assertStatus(projectResponse, 200);
|
|
77
77
|
if (this.flags.output === "json") {
|
|
78
78
|
return _jsx(RenderJson, { name: "project", data: projectResponse.data });
|
|
@@ -6,7 +6,7 @@ export default class List extends GeneratedProjectListMembershipsForProject {
|
|
|
6
6
|
return Promise.all(data.map(async (item) => {
|
|
7
7
|
const out = structuredClone(item);
|
|
8
8
|
const userResponse = await this.apiClient.user.getUser({
|
|
9
|
-
|
|
9
|
+
userId: item.userId,
|
|
10
10
|
});
|
|
11
11
|
if (userResponse.status === 200) {
|
|
12
12
|
out.user = userResponse.data;
|
|
@@ -9,7 +9,7 @@ export default class Ssh extends BaseCommand {
|
|
|
9
9
|
const { args } = await this.parse(Ssh);
|
|
10
10
|
const id = await withProjectId(this.apiClient, Ssh, {}, args, this.config);
|
|
11
11
|
const projectResponse = await this.apiClient.project.getProject({
|
|
12
|
-
|
|
12
|
+
id,
|
|
13
13
|
});
|
|
14
14
|
const userResponse = await this.apiClient.user.getOwnAccount();
|
|
15
15
|
assertStatus(projectResponse, 200);
|
|
@@ -14,7 +14,7 @@ export default class Revoke extends DeleteBaseCommand {
|
|
|
14
14
|
async deleteResource() {
|
|
15
15
|
const { args } = await this.parse(Revoke);
|
|
16
16
|
const response = await this.apiClient.user.deleteApiToken({
|
|
17
|
-
|
|
17
|
+
apiTokenId: args.id,
|
|
18
18
|
});
|
|
19
19
|
assertStatus(response, 204);
|
|
20
20
|
}
|
|
@@ -15,7 +15,7 @@ export default class Delete extends DeleteBaseCommand {
|
|
|
15
15
|
const { args } = await this.parse(Delete);
|
|
16
16
|
const { id } = args;
|
|
17
17
|
const response = await this.apiClient.user.deleteSshKey({
|
|
18
|
-
|
|
18
|
+
sshKeyId: id,
|
|
19
19
|
});
|
|
20
20
|
assertStatus(response, 204);
|
|
21
21
|
}
|
|
@@ -16,7 +16,7 @@ export class GeneratedConversationGetCategory extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.conversation.getCategory({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedConversationGetConversation extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.conversation.getConversation({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -7,9 +7,7 @@ export class GeneratedConversationListCategories extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.conversation.listCategories(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.conversation.listCategories((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedConversationListConversations extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.conversation.listConversations(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.conversation.listConversations((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -14,9 +14,7 @@ export class GeneratedConversationListMessagesByConversation extends ListBaseCom
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
conversationId: this.flags["conversation-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.conversation.listMessagesByConversation(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.conversation.listMessagesByConversation((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -16,7 +16,7 @@ export class GeneratedCronjobGetCronjob extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.cronjob.getCronjob({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -20,7 +20,7 @@ export class GeneratedCronjobGetExecution extends GetBaseCommand {
|
|
|
20
20
|
};
|
|
21
21
|
async getData() {
|
|
22
22
|
return await this.apiClient.cronjob.getExecution({
|
|
23
|
-
|
|
23
|
+
...(await this.mapParams(this.args)),
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedDnsZoneGetSpecific extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.domain.dnsZoneGetSpecific({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -15,7 +15,7 @@ export class GeneratedDnsZonesForProject extends GetBaseCommand {
|
|
|
15
15
|
static args = {};
|
|
16
16
|
async getData() {
|
|
17
17
|
return await this.apiClient.domain.dnsZonesForProject({
|
|
18
|
-
|
|
18
|
+
...(await this.mapParams(this.args)),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedDomainGetDomain extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.domain.getDomain({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedDomainGetHandleFields extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.domain.getHandleFields({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedDomainGetSpecificDomainOwnership extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.domain.getSpecificDomainOwnership({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -15,7 +15,7 @@ export class GeneratedFileGetFileMeta extends GetBaseCommand {
|
|
|
15
15
|
static args = {};
|
|
16
16
|
async getData() {
|
|
17
17
|
return await this.apiClient.file.getFileMeta({
|
|
18
|
-
|
|
18
|
+
...(await this.mapParams(this.args)),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedFileGetFileTokenRules extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.file.getFileTokenRules({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedFileGetFileTypeRules extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.file.getFileTypeRules({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedMailDeliveryboxGetSpecific extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.mail.deliveryboxGetSpecific({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -14,9 +14,7 @@ export class GeneratedMailDeliveryboxList extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
projectId: this.flags["project-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.mail.deliveryboxList(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.mail.deliveryboxList((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -16,7 +16,7 @@ export class GeneratedMailMailaddressGetSpecific extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.mail.mailaddressGetSpecific({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -14,9 +14,7 @@ export class GeneratedMailMailaddressList extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
projectId: this.flags["project-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.mail.mailaddressList(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.mail.mailaddressList((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -15,7 +15,7 @@ export class GeneratedMailProjectsettingGetSpecific extends GetBaseCommand {
|
|
|
15
15
|
static args = {};
|
|
16
16
|
async getData() {
|
|
17
17
|
return await this.apiClient.mail.projectsettingGetSpecific({
|
|
18
|
-
|
|
18
|
+
...(await this.mapParams(this.args)),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
mapParams(input) {
|
|
@@ -7,7 +7,7 @@ export class GeneratedNewsletterGetInfo extends GetBaseCommand {
|
|
|
7
7
|
static args = {};
|
|
8
8
|
async getData() {
|
|
9
9
|
return await this.apiClient.notification.newsletterGetInfo({
|
|
10
|
-
|
|
10
|
+
...(await this.mapParams(this.args)),
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
mapParams(input) {
|
|
@@ -7,7 +7,7 @@ export class GeneratedNotificationsCountUnreadNotifications extends GetBaseComma
|
|
|
7
7
|
static args = {};
|
|
8
8
|
async getData() {
|
|
9
9
|
return await this.apiClient.notification.scountUnreadNotifications({
|
|
10
|
-
|
|
10
|
+
...(await this.mapParams(this.args)),
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
mapParams(input) {
|
|
@@ -7,9 +7,7 @@ export class GeneratedNotificationsListNotifications extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.notification.slistNotifications(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.notification.slistNotifications((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -16,7 +16,7 @@ export class GeneratedProjectGetProject extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.project.getProject({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedProjectGetProjectInvite extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.project.getProjectInvite({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedProjectGetProjectMembership extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.project.getProjectMembership({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -15,7 +15,7 @@ export class GeneratedProjectGetSelfMembershipForProject extends GetBaseCommand
|
|
|
15
15
|
static args = {};
|
|
16
16
|
async getData() {
|
|
17
17
|
return await this.apiClient.project.getSelfMembershipForProject({
|
|
18
|
-
|
|
18
|
+
...(await this.mapParams(this.args)),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedProjectGetServer extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.project.getServer({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -14,9 +14,7 @@ export class GeneratedProjectListInvitesForProject extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
projectId: this.flags["project-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.project.listInvitesForProject(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.project.listInvitesForProject((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -14,9 +14,7 @@ export class GeneratedProjectListMembershipsForProject extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
projectId: this.flags["project-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.project.listMembershipsForProject(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.project.listMembershipsForProject((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedProjectListProjectInvites extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.project.listProjectInvites(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.project.listProjectInvites((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedProjectListProjectMemberships extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.project.listProjectMemberships(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.project.listProjectMemberships((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedProjectListProjects extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.project.listProjects(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.project.listProjects((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedProjectListServers extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.project.listServers(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.project.listServers((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -16,7 +16,7 @@ export class GeneratedSftpUserGetSftpUser extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.sshsftpUser.sftpUserGetSftpUser({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -14,9 +14,7 @@ export class GeneratedSftpUserListSftpUsers extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
projectId: this.flags["project-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.sshsftpUser.sftpUserListSftpUsers(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.sshsftpUser.sftpUserListSftpUsers((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -16,7 +16,7 @@ export class GeneratedSshUserGetSshUser extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.sshsftpUser.sshUserGetSshUser({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -14,9 +14,7 @@ export class GeneratedSshUserListSshUsers extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
projectId: this.flags["project-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.sshsftpUser.sshUserListSshUsers(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.sshsftpUser.sshUserListSshUsers((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -16,7 +16,7 @@ export class GeneratedUserGetApiToken extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.user.getApiToken({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -15,7 +15,7 @@ export class GeneratedUserGetPersonalizedSettings extends GetBaseCommand {
|
|
|
15
15
|
static args = {};
|
|
16
16
|
async getData() {
|
|
17
17
|
return await this.apiClient.user.getPersonalizedSettings({
|
|
18
|
-
|
|
18
|
+
...(await this.mapParams(this.args)),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedUserGetSession extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.user.getSession({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -16,7 +16,7 @@ export class GeneratedUserGetSshKey extends GetBaseCommand {
|
|
|
16
16
|
};
|
|
17
17
|
async getData() {
|
|
18
18
|
return await this.apiClient.user.getSshKey({
|
|
19
|
-
|
|
19
|
+
...(await this.mapParams(this.args)),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
mapParams(input) {
|
|
@@ -7,7 +7,7 @@ export class GeneratedUserGetUser extends GetBaseCommand {
|
|
|
7
7
|
static args = {};
|
|
8
8
|
async getData() {
|
|
9
9
|
return await this.apiClient.user.getUser({
|
|
10
|
-
|
|
10
|
+
...(await this.mapParams(this.args)),
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
mapParams(input) {
|
|
@@ -7,9 +7,7 @@ export class GeneratedUserListApiTokens extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.user.listApiTokens(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.user.listApiTokens((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -14,9 +14,7 @@ export class GeneratedUserListFeedback extends ListBaseCommand {
|
|
|
14
14
|
const pathParams = {
|
|
15
15
|
userId: this.flags["user-id"],
|
|
16
16
|
};
|
|
17
|
-
return await this.apiClient.user.listFeedback(
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
17
|
+
return await this.apiClient.user.listFeedback((await this.mapParams(pathParams)));
|
|
20
18
|
}
|
|
21
19
|
mapParams(input) {
|
|
22
20
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedUserListSessions extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.user.listSessions(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.user.listSessions((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -7,9 +7,7 @@ export class GeneratedUserListSshKeys extends ListBaseCommand {
|
|
|
7
7
|
};
|
|
8
8
|
async getData() {
|
|
9
9
|
const pathParams = {};
|
|
10
|
-
return await this.apiClient.user.listSshKeys(
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
10
|
+
return await this.apiClient.user.listSshKeys((await this.mapParams(pathParams)));
|
|
13
11
|
}
|
|
14
12
|
mapParams(input) {
|
|
15
13
|
return input;
|
|
@@ -14,7 +14,7 @@ export declare class AppInstaller<TFlagName extends AvailableFlagName> {
|
|
|
14
14
|
private static makeDescription;
|
|
15
15
|
constructor(appId: string, appName: string, appSupportedFlags: readonly TFlagName[]);
|
|
16
16
|
get flags(): RelevantFlagInput<readonly TFlagName[]>;
|
|
17
|
-
exec(apiClient: MittwaldAPIV2Client, args: ArgOutput, flags: OutputFlags<RelevantFlagInput<(TFlagName | "
|
|
17
|
+
exec(apiClient: MittwaldAPIV2Client, args: ArgOutput, flags: OutputFlags<RelevantFlagInput<(TFlagName | "wait")[]>>, config: Config): Promise<AppInstallationResult>;
|
|
18
18
|
render(result: AppInstallationResult, flags: {
|
|
19
19
|
quiet: boolean;
|
|
20
20
|
}): React.ReactNode;
|
|
@@ -12,7 +12,7 @@ export class AppInstaller {
|
|
|
12
12
|
appSupportedFlags;
|
|
13
13
|
description;
|
|
14
14
|
static makeDescription(appName) {
|
|
15
|
-
return `Creates new ${appName}
|
|
15
|
+
return `Creates new ${appName} installation.`;
|
|
16
16
|
}
|
|
17
17
|
constructor(appId, appName, appSupportedFlags) {
|
|
18
18
|
this.appId = appId;
|
|
@@ -27,7 +27,7 @@ export class AppInstaller {
|
|
|
27
27
|
const process = makeProcessRenderer(flags, `Installing ${this.appName}`);
|
|
28
28
|
const projectId = await withProjectId(apiClient, "flag", flags, args, config);
|
|
29
29
|
await autofillFlags(apiClient, process, this.appSupportedFlags, flags, projectId, this.appName);
|
|
30
|
-
const appVersion = await normalizeToAppVersionUuid(apiClient, flags.version, process, this.appId);
|
|
30
|
+
const appVersion = await normalizeToAppVersionUuid(apiClient, "version" in flags ? flags.version : "latest", process, this.appId);
|
|
31
31
|
const [appInstallationId, eventId] = await triggerAppInstallation(apiClient, process, projectId, flags, appVersion);
|
|
32
32
|
let successText;
|
|
33
33
|
if (flags.wait) {
|