@mittwald/cli 1.0.0-alpha.25 → 1.0.0-alpha.26

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 (209) hide show
  1. package/README.md +655 -179
  2. package/dist/esm/GetBaseCommand.d.ts +1 -1
  3. package/dist/esm/ListBaseCommand.d.ts +1 -1
  4. package/dist/esm/commands/app/dependency/list.d.ts +1 -1
  5. package/dist/esm/commands/app/dependency/versions.d.ts +1 -1
  6. package/dist/esm/commands/app/get.d.ts +1 -1
  7. package/dist/esm/commands/app/ssh.js +1 -1
  8. package/dist/esm/commands/{project/backup → backup}/create.d.ts +3 -1
  9. package/dist/esm/commands/{project/backup → backup}/create.js +8 -6
  10. package/dist/esm/commands/{project/backup → backup}/delete.d.ts +3 -1
  11. package/dist/esm/commands/{project/backup → backup}/delete.js +3 -1
  12. package/dist/esm/commands/{project/backup → backup}/download.d.ts +4 -2
  13. package/dist/esm/commands/{project/backup → backup}/download.js +8 -6
  14. package/dist/esm/commands/{project/backup → backup}/get.d.ts +4 -2
  15. package/dist/esm/commands/{project/backup → backup}/get.js +7 -5
  16. package/dist/esm/commands/{project/backup → backup}/list.d.ts +5 -3
  17. package/dist/esm/commands/{project/backup → backup}/list.js +5 -3
  18. package/dist/esm/commands/{project/backupschedule → backup/schedule}/list.d.ts +2 -0
  19. package/dist/esm/commands/{project/backupschedule → backup/schedule}/list.js +2 -0
  20. package/dist/esm/commands/context/get.d.ts +1 -1
  21. package/dist/esm/commands/conversation/categories.d.ts +11 -4
  22. package/dist/esm/commands/conversation/categories.js +11 -3
  23. package/dist/esm/commands/conversation/list.d.ts +11 -4
  24. package/dist/esm/commands/conversation/list.js +11 -3
  25. package/dist/esm/commands/conversation/show.js +0 -3
  26. package/dist/esm/commands/{project/cronjob → cronjob}/execution/get.d.ts +5 -4
  27. package/dist/esm/commands/{project/cronjob → cronjob}/execution/get.js +5 -6
  28. package/dist/esm/commands/{project/cronjob → cronjob}/execution/list.d.ts +6 -4
  29. package/dist/esm/commands/{project/cronjob → cronjob}/execution/list.js +4 -2
  30. package/dist/esm/commands/{project/cronjob → cronjob}/execution/logs.d.ts +3 -1
  31. package/dist/esm/commands/{project/cronjob → cronjob}/execution/logs.js +4 -2
  32. package/dist/esm/{generated/cronjob/getCronjob.d.ts → commands/cronjob/get.d.ts} +5 -5
  33. package/dist/esm/commands/cronjob/get.js +20 -0
  34. package/dist/esm/commands/{project/cronjob → cronjob}/list.d.ts +5 -3
  35. package/dist/esm/commands/{project/cronjob → cronjob}/list.js +5 -3
  36. package/dist/esm/commands/database/mysql/charsets.d.ts +1 -1
  37. package/dist/esm/commands/database/mysql/create.js +2 -2
  38. package/dist/esm/commands/database/mysql/delete.js +2 -2
  39. package/dist/esm/commands/database/mysql/get.d.ts +2 -2
  40. package/dist/esm/commands/database/mysql/get.js +2 -2
  41. package/dist/esm/commands/database/mysql/phpmyadmin.js +1 -1
  42. package/dist/esm/commands/database/mysql/user/get.d.ts +1 -1
  43. package/dist/esm/commands/database/mysql/user/get.js +1 -1
  44. package/dist/esm/commands/database/mysql/versions.d.ts +1 -1
  45. package/dist/esm/commands/database/redis/create.js +1 -1
  46. package/dist/esm/commands/database/redis/get.d.ts +2 -2
  47. package/dist/esm/commands/database/redis/get.js +1 -1
  48. package/dist/esm/commands/domain/dnszone/get.d.ts +14 -2
  49. package/dist/esm/commands/domain/dnszone/get.js +18 -5
  50. package/dist/esm/commands/domain/dnszone/list.d.ts +12 -2
  51. package/dist/esm/commands/domain/dnszone/list.js +15 -5
  52. package/dist/esm/commands/domain/get.d.ts +13 -2
  53. package/dist/esm/commands/domain/get.js +18 -5
  54. package/dist/esm/commands/domain/ownership/get.d.ts +14 -2
  55. package/dist/esm/commands/domain/ownership/get.js +18 -5
  56. package/dist/esm/commands/domain/virtualhost/get.d.ts +1 -1
  57. package/dist/esm/commands/domain/virtualhost/list.js +4 -1
  58. package/dist/esm/commands/mail/address/create.js +1 -1
  59. package/dist/esm/commands/mail/address/delete.js +2 -2
  60. package/dist/esm/commands/mail/address/get.d.ts +15 -2
  61. package/dist/esm/commands/mail/address/get.js +21 -5
  62. package/dist/esm/commands/mail/address/list.d.ts +3 -3
  63. package/dist/esm/commands/mail/address/list.js +1 -1
  64. package/dist/esm/commands/mail/deliverybox/get.d.ts +15 -2
  65. package/dist/esm/commands/mail/deliverybox/get.js +21 -5
  66. package/dist/esm/commands/mail/deliverybox/list.d.ts +3 -3
  67. package/dist/esm/commands/mail/deliverybox/list.js +1 -1
  68. package/dist/esm/commands/org/get.d.ts +1 -1
  69. package/dist/esm/commands/org/invite/list-own.d.ts +1 -1
  70. package/dist/esm/commands/org/list.d.ts +1 -1
  71. package/dist/esm/commands/org/membership/list-own.d.ts +1 -1
  72. package/dist/esm/commands/org/membership/list.d.ts +3 -0
  73. package/dist/esm/commands/project/create.js +1 -1
  74. package/dist/esm/commands/project/filesystem/usage.js +1 -1
  75. package/dist/esm/commands/project/get.d.ts +1 -1
  76. package/dist/esm/commands/project/get.js +1 -1
  77. package/dist/esm/commands/project/invite/get.d.ts +13 -2
  78. package/dist/esm/commands/project/invite/get.js +18 -5
  79. package/dist/esm/commands/project/invite/list-own.d.ts +10 -3
  80. package/dist/esm/commands/project/invite/list-own.js +10 -2
  81. package/dist/esm/commands/project/invite/list.d.ts +10 -4
  82. package/dist/esm/commands/project/invite/list.js +13 -7
  83. package/dist/esm/commands/project/list.d.ts +2 -3
  84. package/dist/esm/commands/project/membership/get-own.d.ts +11 -3
  85. package/dist/esm/commands/project/membership/get-own.js +14 -9
  86. package/dist/esm/commands/project/membership/get.d.ts +13 -2
  87. package/dist/esm/commands/project/membership/get.js +18 -5
  88. package/dist/esm/commands/project/membership/list-own.d.ts +10 -3
  89. package/dist/esm/commands/project/membership/list-own.js +10 -2
  90. package/dist/esm/commands/project/membership/list.d.ts +10 -4
  91. package/dist/esm/commands/project/membership/list.js +15 -7
  92. package/dist/esm/commands/project/ssh.js +2 -2
  93. package/dist/esm/commands/server/get.d.ts +15 -2
  94. package/dist/esm/commands/server/get.js +17 -5
  95. package/dist/esm/commands/server/list.d.ts +10 -3
  96. package/dist/esm/commands/server/list.js +10 -2
  97. package/dist/esm/commands/{project/sftp-user → sftp-user}/list.d.ts +5 -3
  98. package/dist/esm/commands/{project/sftp-user → sftp-user}/list.js +4 -2
  99. package/dist/esm/commands/{project/ssh-user → ssh-user}/list.d.ts +5 -3
  100. package/dist/esm/commands/{project/ssh-user → ssh-user}/list.js +4 -2
  101. package/dist/esm/commands/user/api-token/get.d.ts +13 -2
  102. package/dist/esm/commands/user/api-token/get.js +18 -5
  103. package/dist/esm/commands/user/api-token/list.d.ts +10 -3
  104. package/dist/esm/commands/user/api-token/list.js +10 -2
  105. package/dist/esm/commands/user/get.d.ts +1 -1
  106. package/dist/esm/commands/user/session/get.d.ts +13 -2
  107. package/dist/esm/commands/user/session/get.js +18 -5
  108. package/dist/esm/commands/user/session/list.d.ts +10 -3
  109. package/dist/esm/commands/user/session/list.js +10 -2
  110. package/dist/esm/commands/user/ssh-key/get.d.ts +13 -2
  111. package/dist/esm/commands/user/ssh-key/get.js +18 -5
  112. package/dist/esm/commands/user/ssh-key/list.d.ts +10 -3
  113. package/dist/esm/commands/user/ssh-key/list.js +10 -2
  114. package/dist/esm/lib/database/common.js +1 -1
  115. package/dist/esm/lib/database/mysql/connect.js +2 -2
  116. package/dist/esm/lib/database/redis/connect.js +2 -2
  117. package/dist/esm/lib/project/hooks.js +2 -2
  118. package/dist/esm/lib/project/shortId.js +1 -1
  119. package/dist/esm/rendering/process/components/ProcessConfirmation.d.ts +1 -1
  120. package/dist/esm/rendering/process/components/ProcessInput.d.ts +1 -1
  121. package/dist/esm/rendering/react/RenderBaseCommand.d.ts +2 -2
  122. package/package.json +31 -30
  123. package/dist/esm/commands/domain/get-handle.d.ts +0 -3
  124. package/dist/esm/commands/domain/get-handle.js +0 -6
  125. package/dist/esm/commands/project/cronjob/get.d.ts +0 -3
  126. package/dist/esm/commands/project/cronjob/get.js +0 -6
  127. package/dist/esm/generated/conversation/getCategory.d.ts +0 -16
  128. package/dist/esm/generated/conversation/getCategory.js +0 -25
  129. package/dist/esm/generated/conversation/getConversation.d.ts +0 -16
  130. package/dist/esm/generated/conversation/getConversation.js +0 -25
  131. package/dist/esm/generated/conversation/listCategories.d.ts +0 -13
  132. package/dist/esm/generated/conversation/listCategories.js +0 -15
  133. package/dist/esm/generated/conversation/listConversations.d.ts +0 -13
  134. package/dist/esm/generated/conversation/listConversations.js +0 -15
  135. package/dist/esm/generated/conversation/listMessagesByConversation.d.ts +0 -13
  136. package/dist/esm/generated/conversation/listMessagesByConversation.js +0 -22
  137. package/dist/esm/generated/cronjob/getCronjob.js +0 -25
  138. package/dist/esm/generated/cronjob/getExecution.d.ts +0 -16
  139. package/dist/esm/generated/cronjob/getExecution.js +0 -29
  140. package/dist/esm/generated/domain/dnsZoneGetSpecific.d.ts +0 -16
  141. package/dist/esm/generated/domain/dnsZoneGetSpecific.js +0 -25
  142. package/dist/esm/generated/domain/dnsZonesForProject.d.ts +0 -14
  143. package/dist/esm/generated/domain/dnsZonesForProject.js +0 -24
  144. package/dist/esm/generated/domain/getDomain.d.ts +0 -16
  145. package/dist/esm/generated/domain/getDomain.js +0 -25
  146. package/dist/esm/generated/domain/getHandleFields.d.ts +0 -16
  147. package/dist/esm/generated/domain/getHandleFields.js +0 -25
  148. package/dist/esm/generated/domain/getSpecificDomainOwnership.d.ts +0 -16
  149. package/dist/esm/generated/domain/getSpecificDomainOwnership.js +0 -25
  150. package/dist/esm/generated/file/getFile.d.ts +0 -16
  151. package/dist/esm/generated/file/getFile.js +0 -25
  152. package/dist/esm/generated/file/getFileMeta.d.ts +0 -14
  153. package/dist/esm/generated/file/getFileMeta.js +0 -24
  154. package/dist/esm/generated/file/getFileTokenRules.d.ts +0 -16
  155. package/dist/esm/generated/file/getFileTokenRules.js +0 -25
  156. package/dist/esm/generated/file/getFileTypeRules.d.ts +0 -16
  157. package/dist/esm/generated/file/getFileTypeRules.js +0 -25
  158. package/dist/esm/generated/mail/deliveryboxGetSpecific.d.ts +0 -16
  159. package/dist/esm/generated/mail/deliveryboxGetSpecific.js +0 -25
  160. package/dist/esm/generated/mail/mailaddressGetSpecific.d.ts +0 -16
  161. package/dist/esm/generated/mail/mailaddressGetSpecific.js +0 -25
  162. package/dist/esm/generated/mail/mailaddressList.d.ts +0 -13
  163. package/dist/esm/generated/mail/mailaddressList.js +0 -22
  164. package/dist/esm/generated/mail/projectsettingGetSpecific.d.ts +0 -14
  165. package/dist/esm/generated/mail/projectsettingGetSpecific.js +0 -24
  166. package/dist/esm/generated/notification/newsletterGetInfo.d.ts +0 -14
  167. package/dist/esm/generated/notification/newsletterGetInfo.js +0 -16
  168. package/dist/esm/generated/notification/scountUnreadNotifications.d.ts +0 -14
  169. package/dist/esm/generated/notification/scountUnreadNotifications.js +0 -16
  170. package/dist/esm/generated/notification/slistNotifications.d.ts +0 -13
  171. package/dist/esm/generated/notification/slistNotifications.js +0 -15
  172. package/dist/esm/generated/project/getProject.d.ts +0 -16
  173. package/dist/esm/generated/project/getProject.js +0 -25
  174. package/dist/esm/generated/project/getProjectInvite.d.ts +0 -16
  175. package/dist/esm/generated/project/getProjectInvite.js +0 -25
  176. package/dist/esm/generated/project/getProjectMembership.d.ts +0 -16
  177. package/dist/esm/generated/project/getProjectMembership.js +0 -25
  178. package/dist/esm/generated/project/getSelfMembershipForProject.d.ts +0 -14
  179. package/dist/esm/generated/project/getSelfMembershipForProject.js +0 -24
  180. package/dist/esm/generated/project/getServer.d.ts +0 -16
  181. package/dist/esm/generated/project/getServer.js +0 -25
  182. package/dist/esm/generated/project/listInvitesForProject.d.ts +0 -13
  183. package/dist/esm/generated/project/listInvitesForProject.js +0 -22
  184. package/dist/esm/generated/project/listMembershipsForProject.d.ts +0 -13
  185. package/dist/esm/generated/project/listMembershipsForProject.js +0 -22
  186. package/dist/esm/generated/project/listProjectInvites.d.ts +0 -13
  187. package/dist/esm/generated/project/listProjectInvites.js +0 -15
  188. package/dist/esm/generated/project/listProjectMemberships.d.ts +0 -13
  189. package/dist/esm/generated/project/listProjectMemberships.js +0 -15
  190. package/dist/esm/generated/project/listProjects.d.ts +0 -13
  191. package/dist/esm/generated/project/listProjects.js +0 -15
  192. package/dist/esm/generated/project/listServers.d.ts +0 -13
  193. package/dist/esm/generated/project/listServers.js +0 -15
  194. package/dist/esm/generated/user/getApiToken.d.ts +0 -16
  195. package/dist/esm/generated/user/getApiToken.js +0 -25
  196. package/dist/esm/generated/user/getPersonalizedSettings.d.ts +0 -14
  197. package/dist/esm/generated/user/getPersonalizedSettings.js +0 -24
  198. package/dist/esm/generated/user/getSession.d.ts +0 -16
  199. package/dist/esm/generated/user/getSession.js +0 -25
  200. package/dist/esm/generated/user/getSshKey.d.ts +0 -16
  201. package/dist/esm/generated/user/getSshKey.js +0 -25
  202. package/dist/esm/generated/user/listApiTokens.d.ts +0 -13
  203. package/dist/esm/generated/user/listApiTokens.js +0 -15
  204. package/dist/esm/generated/user/listFeedback.d.ts +0 -13
  205. package/dist/esm/generated/user/listFeedback.js +0 -22
  206. package/dist/esm/generated/user/listSessions.d.ts +0 -13
  207. package/dist/esm/generated/user/listSessions.js +0 -15
  208. package/dist/esm/generated/user/listSshKeys.d.ts +0 -13
  209. package/dist/esm/generated/user/listSshKeys.js +0 -15
@@ -74,14 +74,14 @@ export class Create extends ExecRenderBaseCommand {
74
74
  });
75
75
  const database = await p.runStep("fetching database", async () => {
76
76
  const r = await this.apiClient.database.getMysqlDatabase({
77
- id: db.id,
77
+ mysqlDatabaseId: db.id,
78
78
  });
79
79
  assertStatus(r, 200);
80
80
  return r.data;
81
81
  });
82
82
  const user = await p.runStep("fetching user", async () => {
83
83
  const r = await this.apiClient.database.getMysqlUser({
84
- id: db.userId,
84
+ mysqlUserId: db.userId,
85
85
  });
86
86
  assertStatus(r, 200);
87
87
  return r.data;
@@ -8,9 +8,9 @@ export default class Delete extends DeleteBaseCommand {
8
8
  static flags = { ...DeleteBaseCommand.baseFlags };
9
9
  static args = { ...mysqlArgs };
10
10
  async deleteResource() {
11
- const id = await withMySQLId(this.apiClient, this.flags, this.args, this.config);
11
+ const mysqlDatabaseId = await withMySQLId(this.apiClient, this.flags, this.args, this.config);
12
12
  const response = await this.apiClient.database.deleteMysqlDatabase({
13
- id,
13
+ mysqlDatabaseId,
14
14
  });
15
15
  assertStatus(response, 200);
16
16
  }
@@ -1,11 +1,11 @@
1
1
  import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
2
  import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2MysqlDatabasesId.Get.Parameters.Path;
3
+ export type PathParams = MittwaldAPIV2.Paths.V2MysqlDatabasesMysqlDatabaseId.Get.Parameters.Path;
4
4
  type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["database"]["getMysqlDatabase"]>>;
5
5
  export declare abstract class Get extends GetBaseCommand<typeof Get, APIResponse> {
6
6
  static description: string;
7
7
  static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
9
9
  };
10
10
  static args: {
11
11
  "database-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
@@ -7,9 +7,9 @@ export class Get extends GetBaseCommand {
7
7
  };
8
8
  static args = { ...mysqlArgs };
9
9
  async getData() {
10
- const id = await withMySQLId(this.apiClient, this.flags, this.args, this.config);
10
+ const mysqlDatabaseId = await withMySQLId(this.apiClient, this.flags, this.args, this.config);
11
11
  return await this.apiClient.database.getMysqlDatabase({
12
- id,
12
+ mysqlDatabaseId,
13
13
  });
14
14
  }
15
15
  }
@@ -17,7 +17,7 @@ export class PhpMyAdmin extends BaseCommand {
17
17
  throw new Error("no main user found.");
18
18
  }
19
19
  const pma = await this.apiClient.database.getMysqlUserPhpMyAdminUrl({
20
- id: mainUser.id,
20
+ mysqlUserId: mainUser.id,
21
21
  });
22
22
  assertStatus(pma, 200);
23
23
  await open(pma.data.url);
@@ -4,7 +4,7 @@ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["database"]["getMysqlU
4
4
  export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
5
  static description: string;
6
6
  static flags: {
7
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
7
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
8
8
  };
9
9
  static args: {
10
10
  id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
@@ -13,7 +13,7 @@ export default class Get extends GetBaseCommand {
13
13
  };
14
14
  async getData() {
15
15
  return await this.apiClient.database.getMysqlUser({
16
- id: this.args.id,
16
+ mysqlUserId: this.args.id,
17
17
  });
18
18
  }
19
19
  }
@@ -10,7 +10,7 @@ export declare class Versions extends ListBaseCommand<typeof Versions, ResponseI
10
10
  static description: string;
11
11
  static args: {};
12
12
  static flags: {
13
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
13
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
14
14
  };
15
15
  getData(): Promise<Response>;
16
16
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): MittwaldAPIV2.Components.Schemas.DatabaseMySqlVersion[];
@@ -67,7 +67,7 @@ export class Create extends ExecRenderBaseCommand {
67
67
  });
68
68
  const database = await p.runStep("fetching database", async () => {
69
69
  const r = await this.apiClient.database.getRedisDatabase({
70
- id: db.id,
70
+ redisDatabaseId: db.id,
71
71
  });
72
72
  assertStatus(r, 200);
73
73
  return r.data;
@@ -1,11 +1,11 @@
1
1
  import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
2
  import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
- export type PathParams = MittwaldAPIV2.Paths.V2RedisDatabasesId.Get.Parameters.Path;
3
+ export type PathParams = MittwaldAPIV2.Paths.V2RedisDatabasesRedisDatabaseId.Get.Parameters.Path;
4
4
  type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["database"]["getRedisDatabase"]>>;
5
5
  export declare class Get extends GetBaseCommand<typeof Get, APIResponse> {
6
6
  static description: string;
7
7
  static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
9
9
  };
10
10
  static args: {
11
11
  id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
@@ -13,7 +13,7 @@ export class Get extends GetBaseCommand {
13
13
  };
14
14
  async getData() {
15
15
  return await this.apiClient.database.getRedisDatabase({
16
- ...(await this.mapParams(this.args)),
16
+ redisDatabaseId: this.args.id,
17
17
  });
18
18
  }
19
19
  mapParams(input) {
@@ -1,3 +1,15 @@
1
- import { GeneratedDnsZoneGetSpecific } from "../../../generated/domain/dnsZoneGetSpecific.js";
2
- export default class Get extends GeneratedDnsZoneGetSpecific {
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2DnsZonesDnsZoneId.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["domain"]["dnsGetDnsZone"]>>;
5
+ export declare abstract class Get extends GetBaseCommand<typeof Get, APIResponse> {
6
+ static description: string;
7
+ static flags: {
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
9
+ };
10
+ static args: {
11
+ zoneId: 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,19 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedDnsZoneGetSpecific } from "../../../generated/domain/dnsZoneGetSpecific.js";
5
- export default class Get extends GeneratedDnsZoneGetSpecific {
1
+ import { Args } from "@oclif/core";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export class Get extends GetBaseCommand {
4
+ static description = "gets a specific zone";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ };
8
+ static args = {
9
+ zoneId: Args.string({
10
+ description: "id of the zone you want to get",
11
+ required: true,
12
+ }),
13
+ };
14
+ async getData() {
15
+ return await this.apiClient.domain.dnsGetDnsZone({
16
+ dnsZoneId: this.args.zoneId,
17
+ });
18
+ }
6
19
  }
@@ -1,3 +1,13 @@
1
- import { GeneratedDnsZonesForProject } from "../../../generated/domain/dnsZonesForProject.js";
2
- export default class Get extends GeneratedDnsZonesForProject {
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdDnsZones.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["domain"]["dnsListDnsZones"]>>;
5
+ export default class List extends GetBaseCommand<typeof List, APIResponse> {
6
+ static description: string;
7
+ static flags: {
8
+ "project-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string>;
9
+ };
10
+ static args: {};
11
+ protected getData(): Promise<APIResponse>;
3
12
  }
13
+ export {};
@@ -1,6 +1,16 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedDnsZonesForProject } from "../../../generated/domain/dnsZonesForProject.js";
5
- export default class Get extends GeneratedDnsZonesForProject {
1
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
2
+ import { projectFlags, withProjectId } from "../../../lib/project/flags.js";
3
+ export default class List extends GetBaseCommand {
4
+ static description = "gets all dns zones by project id";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ ...projectFlags,
8
+ };
9
+ static args = {};
10
+ async getData() {
11
+ const projectId = await withProjectId(this.apiClient, List, this.flags, this.args, this.config);
12
+ return await this.apiClient.domain.dnsListDnsZones({
13
+ projectId,
14
+ });
15
+ }
6
16
  }
@@ -1,3 +1,14 @@
1
- import { GeneratedDomainGetDomain } from "../../generated/domain/getDomain.js";
2
- export default class Get extends GeneratedDomainGetDomain {
1
+ import { MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../GetBaseCommand.js";
3
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["domain"]["getDomain"]>>;
4
+ export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
+ static description: string;
6
+ static flags: {
7
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
8
+ };
9
+ static args: {
10
+ "domain-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
11
+ };
12
+ protected getData(): Promise<APIResponse>;
3
13
  }
14
+ export {};
@@ -1,6 +1,19 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedDomainGetDomain } from "../../generated/domain/getDomain.js";
5
- export default class Get extends GeneratedDomainGetDomain {
1
+ import { Args } from "@oclif/core";
2
+ import { GetBaseCommand } from "../../GetBaseCommand.js";
3
+ export default class Get extends GetBaseCommand {
4
+ static description = "Get a domain.";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ };
8
+ static args = {
9
+ "domain-id": Args.string({
10
+ description: "The ID of the domain to get.",
11
+ required: true,
12
+ }),
13
+ };
14
+ async getData() {
15
+ return await this.apiClient.domain.getDomain({
16
+ domainId: this.args["domain-id"],
17
+ });
18
+ }
6
19
  }
@@ -1,3 +1,15 @@
1
- import { GeneratedDomainGetSpecificDomainOwnership } from "../../../generated/domain/getSpecificDomainOwnership.js";
2
- export default class Get extends GeneratedDomainGetSpecificDomainOwnership {
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2DomainOwnershipsDomainOwnershipId.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["domain"]["getDomainOwnership"]>>;
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").Flag<any>;
9
+ };
10
+ static args: {
11
+ domainOwnershipId: 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,19 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedDomainGetSpecificDomainOwnership } from "../../../generated/domain/getSpecificDomainOwnership.js";
5
- export default class Get extends GeneratedDomainGetSpecificDomainOwnership {
1
+ import { Args } from "@oclif/core";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export default class Get extends GetBaseCommand {
4
+ static description = "Get a domain ownership.";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ };
8
+ static args = {
9
+ domainOwnershipId: Args.string({
10
+ description: "The domain ownership ID.",
11
+ required: true,
12
+ }),
13
+ };
14
+ async getData() {
15
+ return await this.apiClient.domain.getDomainOwnership({
16
+ domainOwnershipId: this.args.domainOwnershipId,
17
+ });
18
+ }
6
19
  }
@@ -5,7 +5,7 @@ export type PathParams = MittwaldAPIV2.Paths.V2IngressesIngressId.Get.Parameters
5
5
  export declare class Get extends RenderBaseCommand<typeof Get> {
6
6
  static description: string;
7
7
  static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
9
9
  };
10
10
  static args: {
11
11
  "ingress-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
@@ -42,7 +42,10 @@ export class List extends ListBaseCommand {
42
42
  if ("url" in p.target) {
43
43
  return `${p.path} → url (${p.target.url})`;
44
44
  }
45
- return `${p.path} app (${p.target.installationId})`;
45
+ if ("installationId" in p.target) {
46
+ return `${p.path} → app (${p.target.installationId})`;
47
+ }
48
+ return `${p.path} → default`;
46
49
  })
47
50
  .join("\n"),
48
51
  },
@@ -71,7 +71,7 @@ export default class Create extends ExecRenderBaseCommand {
71
71
  const process = makeProcessRenderer(flags, "Creating a new mail address");
72
72
  const [password, passwordGenerated] = await this.getPassword(process);
73
73
  const response = await process.runStep("creating mail address", async () => {
74
- const response = await this.apiClient.mail.mailaddressCreate({
74
+ const response = await this.apiClient.mail.createMailAddress({
75
75
  projectId,
76
76
  data: {
77
77
  address: flags.address,
@@ -14,8 +14,8 @@ export default class Delete extends DeleteBaseCommand {
14
14
  }),
15
15
  };
16
16
  async deleteResource() {
17
- const response = await this.apiClient.mail.mailaddressDelete({
18
- id: this.args.id,
17
+ const response = await this.apiClient.mail.deleteMailAddress({
18
+ mailAddressId: this.args.id,
19
19
  });
20
20
  assertStatus(response, 200);
21
21
  }
@@ -1,3 +1,16 @@
1
- import { GeneratedMailMailaddressGetSpecific } from "../../../generated/mail/mailaddressGetSpecific.js";
2
- export default class Get extends GeneratedMailMailaddressGetSpecific {
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2MailAddressesMailAddressId.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["getMailAddress"]>>;
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").Flag<any>;
9
+ };
10
+ static args: {
11
+ id: 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;
3
15
  }
16
+ export {};
@@ -1,6 +1,22 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedMailMailaddressGetSpecific } from "../../../generated/mail/mailaddressGetSpecific.js";
5
- export default class Get extends GeneratedMailMailaddressGetSpecific {
1
+ import { Args } from "@oclif/core";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export default class Get extends GetBaseCommand {
4
+ static description = "Get a specific mail address";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ };
8
+ static args = {
9
+ id: Args.string({
10
+ description: "id of the address you want to get",
11
+ required: true,
12
+ }),
13
+ };
14
+ async getData() {
15
+ return await this.apiClient.mail.getMailAddress({
16
+ mailAddressId: this.args.id,
17
+ });
18
+ }
19
+ mapParams(input) {
20
+ return input;
21
+ }
6
22
  }
@@ -3,9 +3,9 @@ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
3
3
  import { SuccessfulResponse } from "../../../types.js";
4
4
  import { ListColumns } from "../../../Formatter.js";
5
5
  import { ListBaseCommand } from "../../../ListBaseCommand.js";
6
- type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMailaddresses.Get.Responses.$200.Content.ApplicationJson[number]>;
7
- export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdMailaddresses.Get.Parameters.Path;
8
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["mailaddressList"]>>;
6
+ type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMailAddresses.Get.Responses.$200.Content.ApplicationJson[number]>;
7
+ export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdMailAddresses.Get.Parameters.Path;
8
+ export type Response = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["listMailAddresses"]>>;
9
9
  export declare class List extends ListBaseCommand<typeof List, ResponseItem, Response> {
10
10
  static description: string;
11
11
  static args: {};
@@ -13,7 +13,7 @@ export class List extends ListBaseCommand {
13
13
  const pathParams = {
14
14
  projectId: this.flags["project-id"],
15
15
  };
16
- return await this.apiClient.mail.mailaddressList((await this.mapParams(pathParams)));
16
+ return await this.apiClient.mail.listMailAddresses((await this.mapParams(pathParams)));
17
17
  }
18
18
  mapData(data) {
19
19
  return data;
@@ -1,3 +1,16 @@
1
- import { GeneratedMailDeliveryboxGetSpecific } from "../../../generated/mail/deliveryboxGetSpecific.js";
2
- export default class Get extends GeneratedMailDeliveryboxGetSpecific {
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2DeliveryBoxesDeliveryBoxId.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["getDeliveryBox"]>>;
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").Flag<any>;
9
+ };
10
+ static args: {
11
+ id: 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;
3
15
  }
16
+ export {};
@@ -1,6 +1,22 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
- import { GeneratedMailDeliveryboxGetSpecific } from "../../../generated/mail/deliveryboxGetSpecific.js";
5
- export default class Get extends GeneratedMailDeliveryboxGetSpecific {
1
+ import { Args } from "@oclif/core";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ export default class Get extends GetBaseCommand {
4
+ static description = "Get a specific delivery box";
5
+ static flags = {
6
+ ...GetBaseCommand.baseFlags,
7
+ };
8
+ static args = {
9
+ id: Args.string({
10
+ description: "ID of the deliverybox you want to retrieve",
11
+ required: true,
12
+ }),
13
+ };
14
+ async getData() {
15
+ return await this.apiClient.mail.getDeliveryBox({
16
+ deliveryBoxId: this.args.id,
17
+ });
18
+ }
19
+ mapParams(input) {
20
+ return input;
21
+ }
6
22
  }
@@ -3,9 +3,9 @@ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
3
3
  import { SuccessfulResponse } from "../../../types.js";
4
4
  import { ListColumns } from "../../../Formatter.js";
5
5
  import { ListBaseCommand } from "../../../ListBaseCommand.js";
6
- type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdDeliveryboxes.Get.Responses.$200.Content.ApplicationJson[number]>;
7
- export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdDeliveryboxes.Get.Parameters.Path;
8
- export type Response = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["deliveryboxList"]>>;
6
+ type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdDeliveryBoxes.Get.Responses.$200.Content.ApplicationJson[number]>;
7
+ export type PathParams = MittwaldAPIV2.Paths.V2ProjectsProjectIdDeliveryBoxes.Get.Parameters.Path;
8
+ export type Response = Awaited<ReturnType<MittwaldAPIV2Client["mail"]["listDeliveryBoxes"]>>;
9
9
  export declare class List extends ListBaseCommand<typeof List, ResponseItem, Response> {
10
10
  static description: string;
11
11
  static args: {};
@@ -10,7 +10,7 @@ export class List extends ListBaseCommand {
10
10
  };
11
11
  async getData() {
12
12
  const projectId = await withProjectId(this.apiClient, List, this.flags, this.args, this.config);
13
- return await this.apiClient.mail.deliveryboxList({ projectId });
13
+ return await this.apiClient.mail.listDeliveryBoxes({ projectId });
14
14
  }
15
15
  mapData(data) {
16
16
  return data;
@@ -5,7 +5,7 @@ export type PathParams = MittwaldAPIV2.Paths.V2CustomersCustomerId.Get.Parameter
5
5
  export declare class Get extends RenderBaseCommand<typeof Get> {
6
6
  static description: string;
7
7
  static flags: {
8
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
9
9
  };
10
10
  static args: {
11
11
  "org-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string>;
@@ -13,7 +13,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
13
13
  static description: string;
14
14
  static args: {};
15
15
  static flags: {
16
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
16
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
17
17
  };
18
18
  getData(): Promise<Response>;
19
19
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<(MittwaldAPIV2.Components.Schemas.MembershipCustomerInvite | {
@@ -10,7 +10,7 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
10
10
  static description: string;
11
11
  static args: {};
12
12
  static flags: {
13
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
13
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
14
14
  };
15
15
  getData(): Promise<Response>;
16
16
  protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
@@ -13,7 +13,7 @@ export declare class ListOwn extends ListBaseCommand<typeof ListOwn, ResponseIte
13
13
  static description: string;
14
14
  static args: {};
15
15
  static flags: {
16
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
16
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
17
17
  };
18
18
  getData(): Promise<Response>;
19
19
  protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
@@ -20,6 +20,9 @@ export declare class List extends ListBaseCommand<typeof List, ResponseItem, Res
20
20
  user: {
21
21
  avatarRef?: string | undefined;
22
22
  email?: string | undefined;
23
+ employeeInformation?: {
24
+ department: string;
25
+ } | undefined;
23
26
  person: MittwaldAPIV2.Components.Schemas.CommonsPerson;
24
27
  phoneNumber?: string | undefined;
25
28
  registeredAt?: string | undefined;
@@ -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
- id: result.data.id,
45
+ projectId: result.data.id,
46
46
  headers: { "if-event-reached": eventId },
47
47
  });
48
48
  if (projectResponse.status === 200 &&
@@ -23,7 +23,7 @@ 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({ id }), [projectId]);
26
+ const project = usePromise((projectId) => this.apiClient.project.getProject({ projectId }), [projectId]);
27
27
  const projectDiskUsage = usePromise((id) => this.apiClient.projectFileSystem.getDiskUsage({
28
28
  projectId: id,
29
29
  }), [projectId]);
@@ -4,7 +4,7 @@ import { RenderBaseCommand } from "../../rendering/react/RenderBaseCommand.js";
4
4
  export declare class Get extends RenderBaseCommand<typeof Get> {
5
5
  static description: string;
6
6
  static flags: {
7
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
7
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
8
8
  };
9
9
  static args: {
10
10
  "project-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string>;
@@ -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({ id }), [projectId]);
75
+ const projectResponse = usePromise((projectId) => this.apiClient.project.getProject({ projectId }), [projectId]);
76
76
  assertStatus(projectResponse, 200);
77
77
  if (this.flags.output === "json") {
78
78
  return _jsx(RenderJson, { name: "project", data: projectResponse.data });
@@ -1,3 +1,14 @@
1
- import { GeneratedProjectGetProjectInvite } from "../../../generated/project/getProjectInvite.js";
2
- export default class Get extends GeneratedProjectGetProjectInvite {
1
+ import { MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../../GetBaseCommand.js";
3
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["project"]["getProjectInvite"]>>;
4
+ export default class Get extends GetBaseCommand<typeof Get, APIResponse> {
5
+ static description: string;
6
+ static flags: {
7
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").Flag<any>;
8
+ };
9
+ static args: {
10
+ "invite-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
11
+ };
12
+ protected getData(): Promise<APIResponse>;
3
13
  }
14
+ export {};