@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.
Files changed (162) hide show
  1. package/README.md +145 -163
  2. package/dist/esm/Translator.js +2 -1
  3. package/dist/esm/commands/app/copy.js +1 -1
  4. package/dist/esm/commands/app/{install → create}/node.d.ts +3 -2
  5. package/dist/esm/commands/app/create/node.js +13 -0
  6. package/dist/esm/commands/app/{install → create}/php.d.ts +3 -2
  7. package/dist/esm/commands/app/create/php.js +13 -0
  8. package/dist/esm/commands/app/dependency/update.js +2 -2
  9. package/dist/esm/commands/app/dependency/versions.js +1 -1
  10. package/dist/esm/commands/app/list.js +6 -1
  11. package/dist/esm/commands/app/ssh.d.ts +11 -0
  12. package/dist/esm/commands/app/ssh.js +46 -0
  13. package/dist/esm/commands/app/uninstall.js +1 -1
  14. package/dist/esm/commands/app/versions.js +1 -1
  15. package/dist/esm/commands/conversation/close.js +1 -1
  16. package/dist/esm/commands/conversation/create.js +1 -1
  17. package/dist/esm/commands/conversation/reply.js +1 -1
  18. package/dist/esm/commands/conversation/show.js +2 -2
  19. package/dist/esm/commands/conversation/show2.js +1 -3
  20. package/dist/esm/commands/database/mysql/charsets.js +1 -3
  21. package/dist/esm/commands/database/mysql/create.js +3 -3
  22. package/dist/esm/commands/database/mysql/delete.js +1 -1
  23. package/dist/esm/commands/database/mysql/get.js +1 -1
  24. package/dist/esm/commands/database/mysql/list.js +1 -1
  25. package/dist/esm/commands/database/mysql/phpmyadmin.js +2 -2
  26. package/dist/esm/commands/database/mysql/user/get.js +1 -1
  27. package/dist/esm/commands/database/mysql/user/list.js +1 -3
  28. package/dist/esm/commands/database/redis/create.js +2 -2
  29. package/dist/esm/commands/database/redis/get.js +1 -1
  30. package/dist/esm/commands/database/redis/list.js +1 -1
  31. package/dist/esm/commands/domain/list.js +1 -3
  32. package/dist/esm/commands/domain/ownership/list.js +1 -1
  33. package/dist/esm/commands/domain/virtualhost/create.js +2 -2
  34. package/dist/esm/commands/domain/virtualhost/delete.js +1 -1
  35. package/dist/esm/commands/domain/virtualhost/get.js +4 -4
  36. package/dist/esm/commands/domain/virtualhost/list.js +1 -1
  37. package/dist/esm/commands/mail/address/create.js +1 -1
  38. package/dist/esm/commands/mail/address/delete.js +1 -1
  39. package/dist/esm/commands/mail/address/list.js +1 -3
  40. package/dist/esm/commands/mail/deliverybox/list.d.ts +11 -4
  41. package/dist/esm/commands/mail/deliverybox/list.js +13 -8
  42. package/dist/esm/commands/org/delete.js +1 -1
  43. package/dist/esm/commands/org/get.js +2 -2
  44. package/dist/esm/commands/org/invite/list-own.js +1 -1
  45. package/dist/esm/commands/org/invite/list.js +1 -1
  46. package/dist/esm/commands/org/invite/revoke.js +2 -2
  47. package/dist/esm/commands/org/invite.js +1 -1
  48. package/dist/esm/commands/org/list.js +1 -3
  49. package/dist/esm/commands/org/membership/list-own.js +2 -4
  50. package/dist/esm/commands/org/membership/list.d.ts +1 -0
  51. package/dist/esm/commands/org/membership/list.js +2 -2
  52. package/dist/esm/commands/org/membership/revoke.js +3 -3
  53. package/dist/esm/commands/project/backup/create.js +2 -2
  54. package/dist/esm/commands/project/backup/delete.js +1 -1
  55. package/dist/esm/commands/project/backup/download.js +3 -3
  56. package/dist/esm/commands/project/backup/list.js +1 -1
  57. package/dist/esm/commands/project/backupschedule/list.js +1 -1
  58. package/dist/esm/commands/project/create.js +2 -2
  59. package/dist/esm/commands/project/cronjob/execution/get.js +1 -1
  60. package/dist/esm/commands/project/cronjob/execution/list.js +1 -3
  61. package/dist/esm/commands/project/cronjob/execution/logs.js +4 -3
  62. package/dist/esm/commands/project/cronjob/list.js +1 -3
  63. package/dist/esm/commands/project/delete.js +1 -1
  64. package/dist/esm/commands/project/filesystem/usage.js +2 -2
  65. package/dist/esm/commands/project/get.js +4 -4
  66. package/dist/esm/commands/project/membership/list.js +1 -1
  67. package/dist/esm/commands/project/ssh.js +1 -1
  68. package/dist/esm/commands/user/api-token/revoke.js +1 -1
  69. package/dist/esm/commands/user/get.d.ts +14 -2
  70. package/dist/esm/commands/user/get.js +19 -5
  71. package/dist/esm/commands/user/ssh-key/delete.js +1 -1
  72. package/dist/esm/generated/conversation/getCategory.js +1 -1
  73. package/dist/esm/generated/conversation/getConversation.js +1 -1
  74. package/dist/esm/generated/conversation/listCategories.js +1 -3
  75. package/dist/esm/generated/conversation/listConversations.js +1 -3
  76. package/dist/esm/generated/conversation/listMessagesByConversation.js +1 -3
  77. package/dist/esm/generated/cronjob/getCronjob.js +1 -1
  78. package/dist/esm/generated/cronjob/getExecution.js +1 -1
  79. package/dist/esm/generated/domain/dnsZoneGetSpecific.js +1 -1
  80. package/dist/esm/generated/domain/dnsZonesForProject.js +1 -1
  81. package/dist/esm/generated/domain/getDomain.js +1 -1
  82. package/dist/esm/generated/domain/getHandleFields.js +1 -1
  83. package/dist/esm/generated/domain/getSpecificDomainOwnership.js +1 -1
  84. package/dist/esm/generated/file/getFile.js +1 -1
  85. package/dist/esm/generated/file/getFileMeta.js +1 -1
  86. package/dist/esm/generated/file/getFileTokenRules.js +1 -1
  87. package/dist/esm/generated/file/getFileTypeRules.js +1 -1
  88. package/dist/esm/generated/mail/deliveryboxGetSpecific.js +1 -1
  89. package/dist/esm/generated/mail/mailaddressGetSpecific.js +1 -1
  90. package/dist/esm/generated/mail/mailaddressList.js +1 -3
  91. package/dist/esm/generated/mail/projectsettingGetSpecific.js +1 -1
  92. package/dist/esm/generated/notification/newsletterGetInfo.js +1 -1
  93. package/dist/esm/generated/notification/scountUnreadNotifications.js +1 -1
  94. package/dist/esm/generated/notification/slistNotifications.js +1 -3
  95. package/dist/esm/generated/project/getProject.js +1 -1
  96. package/dist/esm/generated/project/getProjectInvite.js +1 -1
  97. package/dist/esm/generated/project/getProjectMembership.js +1 -1
  98. package/dist/esm/generated/project/getSelfMembershipForProject.js +1 -1
  99. package/dist/esm/generated/project/getServer.js +1 -1
  100. package/dist/esm/generated/project/listInvitesForProject.js +1 -3
  101. package/dist/esm/generated/project/listMembershipsForProject.js +1 -3
  102. package/dist/esm/generated/project/listProjectInvites.js +1 -3
  103. package/dist/esm/generated/project/listProjectMemberships.js +1 -3
  104. package/dist/esm/generated/project/listProjects.js +1 -3
  105. package/dist/esm/generated/project/listServers.js +1 -3
  106. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +1 -1
  107. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +1 -3
  108. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +1 -1
  109. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +1 -3
  110. package/dist/esm/generated/user/getApiToken.js +1 -1
  111. package/dist/esm/generated/user/getPersonalizedSettings.js +1 -1
  112. package/dist/esm/generated/user/getSession.js +1 -1
  113. package/dist/esm/generated/user/getSshKey.js +1 -1
  114. package/dist/esm/generated/user/listApiTokens.js +1 -3
  115. package/dist/esm/generated/user/listFeedback.js +1 -3
  116. package/dist/esm/generated/user/listSessions.js +1 -3
  117. package/dist/esm/generated/user/listSshKeys.js +1 -3
  118. package/dist/esm/lib/app/Installer.d.ts +1 -1
  119. package/dist/esm/lib/app/Installer.js +2 -2
  120. package/dist/esm/lib/app/flags.d.ts +1 -0
  121. package/dist/esm/lib/app/flags.js +6 -0
  122. package/dist/esm/lib/app/hooks.js +7 -8
  123. package/dist/esm/lib/app/install.js +24 -1
  124. package/dist/esm/lib/app/uuid.js +2 -1
  125. package/dist/esm/lib/app/versions.js +2 -6
  126. package/dist/esm/lib/app/wait.js +1 -1
  127. package/dist/esm/lib/database/common.js +1 -1
  128. package/dist/esm/lib/database/mysql/connect.js +2 -2
  129. package/dist/esm/lib/database/mysql/flags.js +1 -1
  130. package/dist/esm/lib/database/redis/connect.js +1 -1
  131. package/dist/esm/lib/database/redis/flags.js +1 -1
  132. package/dist/esm/lib/project/hooks.js +1 -1
  133. package/dist/esm/lib/project/ingress.js +1 -1
  134. package/dist/esm/lib/project/shortId.js +1 -1
  135. package/dist/esm/lib/projectbackup/hooks.js +2 -2
  136. package/dist/esm/rendering/lib/getTerminalWidth.d.ts +1 -1
  137. package/dist/esm/rendering/lib/getTerminalWidth.js +1 -1
  138. package/dist/esm/rendering/react/RenderBaseCommand.js +5 -1
  139. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationDetails.js +6 -2
  140. package/dist/esm/rendering/react/components/Conversation/ConversationMeta.js +1 -3
  141. package/dist/esm/rendering/react/components/Table/model/Column.d.ts +1 -1
  142. package/dist/esm/rendering/react/components/Table/model/Column.js +5 -2
  143. package/dist/esm/rendering/react/components/Table/model/ColumnOptions.js +1 -1
  144. package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.d.ts +1 -0
  145. package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.js +9 -0
  146. package/dist/esm/rendering/react/hooks/useMyUserProfile.js +1 -3
  147. package/dist/esm/rendering/react/measure/MeasureContextProvider.js +6 -2
  148. package/package.json +5 -7
  149. package/dist/esm/commands/app/install/node.js +0 -13
  150. package/dist/esm/commands/app/install/php.js +0 -13
  151. package/dist/esm/commands/domain/tld/get.d.ts +0 -3
  152. package/dist/esm/commands/domain/tld/get.js +0 -6
  153. package/dist/esm/commands/domain/tld/list.d.ts +0 -9
  154. package/dist/esm/commands/domain/tld/list.js +0 -6
  155. package/dist/esm/generated/domain/getToplevelDomain.d.ts +0 -16
  156. package/dist/esm/generated/domain/getToplevelDomain.js +0 -25
  157. package/dist/esm/generated/domain/listToplevelDomains.d.ts +0 -13
  158. package/dist/esm/generated/domain/listToplevelDomains.js +0 -17
  159. package/dist/esm/generated/mail/deliveryboxList.d.ts +0 -13
  160. package/dist/esm/generated/mail/deliveryboxList.js +0 -24
  161. package/dist/esm/generated/user/getUser.d.ts +0 -14
  162. package/dist/esm/generated/user/getUser.js +0 -16
@@ -10,7 +10,7 @@ export class List extends ListBaseCommand {
10
10
  async getData() {
11
11
  const projectId = await withProjectId(this.apiClient, List, this.flags, this.args, this.config);
12
12
  return await this.apiClient.backup.listProjectBackupSchedules({
13
- pathParameters: { projectId },
13
+ projectId,
14
14
  });
15
15
  }
16
16
  mapData(data) {
@@ -31,7 +31,7 @@ export default class Create extends ExecRenderBaseCommand {
31
31
  const serverId = await withServerId(this.apiClient, Create, flags, {}, this.config);
32
32
  const stepCreating = process.addStep(_jsx(Text, { children: "creating a new project" }));
33
33
  const result = await this.apiClient.project.createProject({
34
- pathParameters: { serverId },
34
+ serverId,
35
35
  data: { description },
36
36
  });
37
37
  assertStatus(result, 201);
@@ -42,7 +42,7 @@ export default class Create extends ExecRenderBaseCommand {
42
42
  const stepWaiting = process.addStep(_jsx(Text, { children: "waiting for project to be ready" }));
43
43
  await waitUntil(async () => {
44
44
  const projectResponse = await this.apiClient.project.getProject({
45
- pathParameters: { id: result.data.id },
45
+ id: result.data.id,
46
46
  headers: { "if-event-reached": eventId },
47
47
  });
48
48
  if (projectResponse.status === 200 &&
@@ -21,7 +21,7 @@ export class Get extends GetBaseCommand {
21
21
  cronjobId: this.args["cronjob-id"],
22
22
  };
23
23
  return await this.apiClient.cronjob.getExecution({
24
- pathParameters,
24
+ ...pathParameters,
25
25
  });
26
26
  }
27
27
  }
@@ -15,9 +15,7 @@ export class List extends ListBaseCommand {
15
15
  const pathParams = {
16
16
  cronjobId: this.flags["cronjob-id"],
17
17
  };
18
- return await this.apiClient.cronjob.listExecutions({
19
- pathParameters: pathParams,
20
- });
18
+ return await this.apiClient.cronjob.listExecutions(pathParams);
21
19
  }
22
20
  mapData(data) {
23
21
  return data;
@@ -32,10 +32,11 @@ export class Logs extends BaseCommand {
32
32
  const executionId = args["execution-id"];
33
33
  const usePager = process.stdin.isTTY && !flags["no-pager"];
34
34
  const cronJob = await this.apiClient.cronjob.getCronjob({
35
- pathParameters: { cronjobId },
35
+ cronjobId,
36
36
  });
37
37
  const execution = await this.apiClient.cronjob.getExecution({
38
- pathParameters: { cronjobId, executionId },
38
+ cronjobId,
39
+ executionId,
39
40
  });
40
41
  assertStatus(cronJob, 200);
41
42
  assertStatus(execution, 200);
@@ -52,7 +53,7 @@ export class Logs extends BaseCommand {
52
53
  },
53
54
  });
54
55
  // await this.apiClient.projectFileSystem.getFileContent({
55
- // pathParameters: { projectId },
56
+ // projectId ,
56
57
  // queryParameters: { file: execution.data.logPath, inline: true },
57
58
  // });
58
59
  if (usePager) {
@@ -12,9 +12,7 @@ export class List extends ListBaseCommand {
12
12
  const pathParams = {
13
13
  projectId: await withProjectId(this.apiClient, List, this.flags, this.args, this.config),
14
14
  };
15
- return await this.apiClient.cronjob.listCronjobs({
16
- pathParameters: pathParams,
17
- });
15
+ return await this.apiClient.cronjob.listCronjobs(pathParams);
18
16
  }
19
17
  mapData(data) {
20
18
  return data;
@@ -10,7 +10,7 @@ export default class Delete extends DeleteBaseCommand {
10
10
  async deleteResource() {
11
11
  const projectId = await withProjectId(this.apiClient, Delete, {}, this.args, this.config);
12
12
  const response = await this.apiClient.project.deleteProject({
13
- pathParameters: { projectId },
13
+ projectId,
14
14
  });
15
15
  assertStatus(response, 200);
16
16
  }
@@ -23,9 +23,9 @@ export class Usage extends RenderBaseCommand {
23
23
  static args = { ...projectArgs };
24
24
  render() {
25
25
  const projectId = usePromise(() => withProjectId(this.apiClient, Usage, this.flags, this.args, this.config), []);
26
- const project = usePromise((id) => this.apiClient.project.getProject({ pathParameters: { id } }), [projectId]);
26
+ const project = usePromise((id) => this.apiClient.project.getProject({ id }), [projectId]);
27
27
  const projectDiskUsage = usePromise((id) => this.apiClient.projectFileSystem.getDiskUsage({
28
- pathParameters: { projectId: id },
28
+ projectId: id,
29
29
  }), [projectId]);
30
30
  assertStatus(project, 200);
31
31
  assertStatus(projectDiskUsage, 200);
@@ -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
- pathParameters: { projectId: id },
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({ pathParameters: { customerId: id } }), [response.customerId]);
42
+ const customer = usePromise((id) => apiClient.customer.getCustomer({ customerId: id }), [response.customerId]);
43
43
  const vhosts = usePromise((id) => apiClient.domain.ingressListForProject({
44
- pathParameters: { projectId: id },
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({ pathParameters: { id } }), [projectId]);
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
- pathParameters: { userId: item.userId },
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
- pathParameters: { id },
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
- pathParameters: { apiTokenId: args.id },
17
+ apiTokenId: args.id,
18
18
  });
19
19
  assertStatus(response, 204);
20
20
  }
@@ -1,3 +1,15 @@
1
- import { GeneratedUserGetUser } from "../../generated/user/getUser.js";
2
- export default class Get extends GeneratedUserGetUser {
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 default class Get extends GetBaseCommand<typeof Get, 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
+ "user-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
+ };
13
+ protected getData(): Promise<APIResponse>;
3
14
  }
15
+ export {};
@@ -1,6 +1,20 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedUserGetUser } from "../../generated/user/getUser.js";
5
- export default class Get extends GeneratedUserGetUser {
1
+ import { GetBaseCommand } from "../../GetBaseCommand.js";
2
+ import { Args } from "@oclif/core";
3
+ export default class Get extends GetBaseCommand {
4
+ static description = "Get profile information for a user.";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ };
8
+ static args = {
9
+ "user-id": Args.string({
10
+ description: "The user ID to get information for; defaults to the special value 'self', which references to the currently authenticated user.",
11
+ default: "self",
12
+ required: true,
13
+ }),
14
+ };
15
+ async getData() {
16
+ return await this.apiClient.user.getUser({
17
+ userId: this.args["user-id"],
18
+ });
19
+ }
6
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
- pathParameters: { sshKeyId: id },
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
19
+ ...(await this.mapParams(this.args)),
20
20
  });
21
21
  }
22
22
  mapParams(input) {
@@ -16,7 +16,7 @@ export class GeneratedFileGetFile extends GetBaseCommand {
16
16
  };
17
17
  async getData() {
18
18
  return await this.apiClient.file.getFile({
19
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
19
+ ...(await this.mapParams(this.args)),
20
20
  });
21
21
  }
22
22
  mapParams(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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
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
- pathParameters: await this.mapParams(this.args),
19
+ ...(await this.mapParams(this.args)),
20
20
  });
21
21
  }
22
22
  mapParams(input) {