@mittwald/cli 1.0.0-alpha.21 → 1.0.0-alpha.24
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 +145 -163
- 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/mail/deliverybox/list.d.ts +11 -4
- package/dist/esm/commands/mail/deliverybox/list.js +13 -8
- 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/get.d.ts +14 -2
- package/dist/esm/commands/user/get.js +19 -5
- 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/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/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/flags.d.ts +1 -0
- package/dist/esm/lib/app/flags.js +6 -0
- package/dist/esm/lib/app/hooks.js +7 -8
- package/dist/esm/lib/app/install.js +24 -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 +6 -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
- package/dist/esm/generated/mail/deliveryboxList.d.ts +0 -13
- package/dist/esm/generated/mail/deliveryboxList.js +0 -24
- package/dist/esm/generated/user/getUser.d.ts +0 -14
- package/dist/esm/generated/user/getUser.js +0 -16
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Simplify } from "@mittwald/api-client-commons";
|
|
2
|
-
import { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
3
|
-
import { SuccessfulResponse } from "../../../types.js";
|
|
4
|
-
import { GeneratedDomainListToplevelDomains, Response } from "../../../generated/domain/listToplevelDomains.js";
|
|
5
|
-
type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2ToplevelDomains.Get.Responses.$200.Content.ApplicationJson[number]>;
|
|
6
|
-
export default class List extends GeneratedDomainListToplevelDomains<ResponseItem> {
|
|
7
|
-
protected mapData(data: SuccessfulResponse<Response, 200>["data"]): MittwaldAPIV2.Components.Schemas.DomainTopLevel[];
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
2
|
-
import { GetBaseCommand } from "../../GetBaseCommand.js";
|
|
3
|
-
export type PathParams = MittwaldAPIV2.Paths.V2ToplevelDomainsTld.Get.Parameters.Path;
|
|
4
|
-
type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["domain"]["getToplevelDomain"]>>;
|
|
5
|
-
export declare abstract class GeneratedDomainGetToplevelDomain extends GetBaseCommand<typeof GeneratedDomainGetToplevelDomain, APIResponse> {
|
|
6
|
-
static description: string;
|
|
7
|
-
static flags: {
|
|
8
|
-
[x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
|
|
9
|
-
};
|
|
10
|
-
static args: {
|
|
11
|
-
tld: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
|
|
12
|
-
};
|
|
13
|
-
protected getData(): Promise<APIResponse>;
|
|
14
|
-
protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* prettier-ignore */
|
|
3
|
-
/* This file is auto-generated with acg (@mittwald/api-code-generator) */
|
|
4
|
-
import { Args } from "@oclif/core";
|
|
5
|
-
import { GetBaseCommand } from "../../GetBaseCommand.js";
|
|
6
|
-
export class GeneratedDomainGetToplevelDomain extends GetBaseCommand {
|
|
7
|
-
static description = "Get a toplevel domain.";
|
|
8
|
-
static flags = {
|
|
9
|
-
...GetBaseCommand.baseFlags,
|
|
10
|
-
};
|
|
11
|
-
static args = {
|
|
12
|
-
tld: Args.string({
|
|
13
|
-
description: "undefined",
|
|
14
|
-
required: true,
|
|
15
|
-
}),
|
|
16
|
-
};
|
|
17
|
-
async getData() {
|
|
18
|
-
return await this.apiClient.domain.getToplevelDomain({
|
|
19
|
-
pathParameters: await this.mapParams(this.args),
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
mapParams(input) {
|
|
23
|
-
return input;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
2
|
-
import { ListBaseCommand } from "../../ListBaseCommand.js";
|
|
3
|
-
export type PathParams = MittwaldAPIV2.Paths.V2ToplevelDomains.Get.Parameters.Path;
|
|
4
|
-
export type Response = Awaited<ReturnType<MittwaldAPIV2Client["domain"]["listToplevelDomains"]>>;
|
|
5
|
-
export declare abstract class GeneratedDomainListToplevelDomains<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedDomainListToplevelDomains, TItem, Response> {
|
|
6
|
-
static description: string;
|
|
7
|
-
static args: {};
|
|
8
|
-
static flags: {
|
|
9
|
-
[x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
|
|
10
|
-
};
|
|
11
|
-
getData(): Promise<Response>;
|
|
12
|
-
protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ListBaseCommand } from "../../ListBaseCommand.js";
|
|
2
|
-
export class GeneratedDomainListToplevelDomains extends ListBaseCommand {
|
|
3
|
-
static description = "List all supported toplevel domains.";
|
|
4
|
-
static args = {};
|
|
5
|
-
static flags = {
|
|
6
|
-
...ListBaseCommand.baseFlags,
|
|
7
|
-
};
|
|
8
|
-
async getData() {
|
|
9
|
-
const pathParams = {};
|
|
10
|
-
return await this.apiClient.domain.listToplevelDomains({
|
|
11
|
-
pathParameters: await this.mapParams(pathParams),
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
mapParams(input) {
|
|
15
|
-
return input;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
2
|
-
import { ListBaseCommand } from "../../ListBaseCommand.js";
|
|
3
|
-
export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdDeliveryboxes.Get.Parameters.Path;
|
|
4
|
-
export type Response = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["deliveryboxList"]>>;
|
|
5
|
-
export declare abstract class GeneratedMailDeliveryboxList<TItem extends Record<string, unknown>> extends ListBaseCommand<typeof GeneratedMailDeliveryboxList, TItem, Response> {
|
|
6
|
-
static description: string;
|
|
7
|
-
static args: {};
|
|
8
|
-
static flags: {
|
|
9
|
-
"project-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
10
|
-
};
|
|
11
|
-
getData(): Promise<Response>;
|
|
12
|
-
protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
|
|
13
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Flags } from "@oclif/core";
|
|
2
|
-
import { ListBaseCommand } from "../../ListBaseCommand.js";
|
|
3
|
-
export class GeneratedMailDeliveryboxList extends ListBaseCommand {
|
|
4
|
-
static description = "Get all deliveryboxes by project ID";
|
|
5
|
-
static args = {};
|
|
6
|
-
static flags = {
|
|
7
|
-
...ListBaseCommand.baseFlags,
|
|
8
|
-
"project-id": Flags.string({
|
|
9
|
-
description: "Project ID the deliveryboxes are related to",
|
|
10
|
-
required: true,
|
|
11
|
-
}),
|
|
12
|
-
};
|
|
13
|
-
async getData() {
|
|
14
|
-
const pathParams = {
|
|
15
|
-
projectId: this.flags["project-id"],
|
|
16
|
-
};
|
|
17
|
-
return await this.apiClient.mail.deliveryboxList({
|
|
18
|
-
pathParameters: await this.mapParams(pathParams),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
mapParams(input) {
|
|
22
|
-
return input;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
2
|
-
import { GetBaseCommand } from "../../GetBaseCommand.js";
|
|
3
|
-
export type PathParams = MittwaldAPIV2.Paths.V2UsersUserId.Get.Parameters.Path;
|
|
4
|
-
type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["user"]["getUser"]>>;
|
|
5
|
-
export declare abstract class GeneratedUserGetUser extends GetBaseCommand<typeof GeneratedUserGetUser, APIResponse> {
|
|
6
|
-
static description: string;
|
|
7
|
-
static flags: {
|
|
8
|
-
[x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
|
|
9
|
-
};
|
|
10
|
-
static args: {};
|
|
11
|
-
protected getData(): Promise<APIResponse>;
|
|
12
|
-
protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { GetBaseCommand } from "../../GetBaseCommand.js";
|
|
2
|
-
export class GeneratedUserGetUser extends GetBaseCommand {
|
|
3
|
-
static description = "Get profile information for a user.";
|
|
4
|
-
static flags = {
|
|
5
|
-
...GetBaseCommand.baseFlags,
|
|
6
|
-
};
|
|
7
|
-
static args = {};
|
|
8
|
-
async getData() {
|
|
9
|
-
return await this.apiClient.user.getUser({
|
|
10
|
-
pathParameters: await this.mapParams(this.args),
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
mapParams(input) {
|
|
14
|
-
return input;
|
|
15
|
-
}
|
|
16
|
-
}
|