@mittwald/api-client 4.248.0 → 4.250.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,6 +186,8 @@ const buildCronjobApi = (baseClient) => ({
186
186
  getCronjob: new ApiCallAsyncResourceFactory(descriptors.cronjobGetCronjob, baseClient.cronjob.getCronjob).getApiResource,
187
187
  /** Get a CronjobExecution. */
188
188
  getExecution: new ApiCallAsyncResourceFactory(descriptors.cronjobGetExecution, baseClient.cronjob.getExecution).getApiResource,
189
+ /** Get a CronjobExecution analysis for failed executions. */
190
+ getExecutionAnalysis: new ApiCallAsyncResourceFactory(descriptors.cronjobGetExecutionAnalysis, baseClient.cronjob.getExecutionAnalysis).getApiResource,
189
191
  });
190
192
  const buildCustomerApi = (baseClient) => ({
191
193
  /** List Invites belonging to a Customer. */
@@ -377,6 +377,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
377
377
  getExecution: this.requestFunctionFactory(descriptors.cronjobGetExecution),
378
378
  /** Update a Cronjob's app id. */
379
379
  updateCronjobAppId: this.requestFunctionFactory(descriptors.cronjobUpdateCronjobAppId),
380
+ /** Get a CronjobExecution analysis for failed executions. */
381
+ getExecutionAnalysis: this.requestFunctionFactory(descriptors.cronjobGetExecutionAnalysis),
380
382
  };
381
383
  /** The customer API allows you to manage your own organizations and users. */
382
384
  customer = {
@@ -2590,3 +2590,9 @@ export const verificationVerifyCompany = {
2590
2590
  method: "POST",
2591
2591
  operationId: "verification-verify-company",
2592
2592
  };
2593
+ /** Get a CronjobExecution analysis for failed executions. */
2594
+ export const cronjobGetExecutionAnalysis = {
2595
+ path: "/v2/cronjobs/{cronjobId}/executions/{executionId}/analysis",
2596
+ method: "GET",
2597
+ operationId: "cronjob-get-execution-analysis",
2598
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.247.0';
1
+ export const MittwaldAPIClientVersion = '4.249.0';
@@ -1463,6 +1463,17 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV2Client) => {
1463
1463
  id?: string;
1464
1464
  } | undefined;
1465
1465
  }>;
1466
+ /** Get a CronjobExecution analysis for failed executions. */
1467
+ getExecutionAnalysis: (conf: {
1468
+ executionId: string;
1469
+ cronjobId: string;
1470
+ headers?: {
1471
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1472
+ "x-access-token"?: string | undefined;
1473
+ } | undefined;
1474
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1475
+ message: string;
1476
+ }>;
1466
1477
  };
1467
1478
  declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
1468
1479
  /** List Invites belonging to a Customer. */
@@ -11964,6 +11964,73 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
11964
11964
  }, 412, "application/json"> | import("@mittwald/api-client-commons").Response<{
11965
11965
  [x: string]: unknown;
11966
11966
  }, 429, "application/json">>>;
11967
+ /** Get a CronjobExecution analysis for failed executions. */
11968
+ getExecutionAnalysis: (request: {
11969
+ executionId: string;
11970
+ cronjobId: string;
11971
+ headers?: {
11972
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
11973
+ "x-access-token"?: string | undefined;
11974
+ } | undefined;
11975
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
11976
+ headers?: Partial<{
11977
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
11978
+ }>;
11979
+ } & {
11980
+ pathParameters: {
11981
+ executionId: string;
11982
+ cronjobId: string;
11983
+ };
11984
+ } & {
11985
+ headers: {
11986
+ "x-access-token"?: string | undefined;
11987
+ } & Partial<{
11988
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
11989
+ }>;
11990
+ }, import("@mittwald/api-client-commons").Response<{
11991
+ message: string;
11992
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
11993
+ [x: string]: unknown;
11994
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
11995
+ [x: string]: unknown;
11996
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
11997
+ [x: string]: unknown;
11998
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
11999
+ [x: string]: unknown;
12000
+ }, 412, "application/json"> | import("@mittwald/api-client-commons").Response<{
12001
+ [x: string]: unknown;
12002
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
12003
+ [x: string]: unknown;
12004
+ }, 500, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
12005
+ headers?: Partial<{
12006
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
12007
+ }>;
12008
+ } & {
12009
+ pathParameters: {
12010
+ executionId: string;
12011
+ cronjobId: string;
12012
+ };
12013
+ } & {
12014
+ headers: {
12015
+ "x-access-token"?: string | undefined;
12016
+ } & Partial<{
12017
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
12018
+ }>;
12019
+ }, import("@mittwald/api-client-commons").Response<{
12020
+ message: string;
12021
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
12022
+ [x: string]: unknown;
12023
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
12024
+ [x: string]: unknown;
12025
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
12026
+ [x: string]: unknown;
12027
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
12028
+ [x: string]: unknown;
12029
+ }, 412, "application/json"> | import("@mittwald/api-client-commons").Response<{
12030
+ [x: string]: unknown;
12031
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
12032
+ [x: string]: unknown;
12033
+ }, 500, "application/json">>>;
11967
12034
  };
11968
12035
  /** The customer API allows you to manage your own organizations and users. */
11969
12036
  readonly customer: {
@@ -20049,9 +20116,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
20049
20116
  token: string;
20050
20117
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
20051
20118
  name?: "SecondFactorRequired" | undefined;
20052
- }, 202, "application/json"> | import("@mittwald/api-client-commons").Response<{
20053
- [x: string]: unknown;
20054
- }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
20119
+ }, 202, "application/json"> | import("@mittwald/api-client-commons").Response<import("@mittwald/api-client-commons").Simplify<import("./types.js").MittwaldAPIV2.Paths.V2Authenticate.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
20055
20120
  type: "ValidationError";
20056
20121
  message?: string | undefined;
20057
20122
  validationErrors: import("./types.js").MittwaldAPIV2.Components.Schemas.CommonsValidationErrorSchema[];
@@ -20072,9 +20137,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
20072
20137
  token: string;
20073
20138
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
20074
20139
  name?: "SecondFactorRequired" | undefined;
20075
- }, 202, "application/json"> | import("@mittwald/api-client-commons").Response<{
20076
- [x: string]: unknown;
20077
- }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
20140
+ }, 202, "application/json"> | import("@mittwald/api-client-commons").Response<import("@mittwald/api-client-commons").Simplify<import("./types.js").MittwaldAPIV2.Paths.V2Authenticate.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
20078
20141
  type: "ValidationError";
20079
20142
  message?: string | undefined;
20080
20143
  validationErrors: import("./types.js").MittwaldAPIV2.Components.Schemas.CommonsValidationErrorSchema[];
@@ -867,3 +867,5 @@ export declare const verificationDetectPhishingEmail: OpenAPIOperation<RequestTy
867
867
  export declare const verificationVerifyAddress: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$500.Content.Empty>, 500, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
868
868
  /** Check if a company exists. */
869
869
  export declare const verificationVerifyCompany: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$412.Content.Empty>, 412, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.$500.Content.Empty>, 500, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyCompany.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
870
+ /** Get a CronjobExecution analysis for failed executions. */
871
+ export declare const cronjobGetExecutionAnalysis: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$412.Content.ApplicationJson>, 412, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CronjobsCronjobIdExecutionsExecutionIdAnalysis.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -1730,6 +1730,10 @@ export declare namespace MittwaldAPIV2 {
1730
1730
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
1731
1731
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
1732
1732
  }
1733
+ namespace CronjobGetExecutionAnalysis {
1734
+ type RequestData = InferredRequestData<typeof descriptors.cronjobGetExecutionAnalysis>;
1735
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.cronjobGetExecutionAnalysis, TStatus>;
1736
+ }
1733
1737
  }
1734
1738
  namespace Components {
1735
1739
  namespace Schemas {
@@ -2245,6 +2249,9 @@ export declare namespace MittwaldAPIV2 {
2245
2249
  ports?: string[];
2246
2250
  volumes?: string[];
2247
2251
  }
2252
+ interface ContainerDeploy {
2253
+ resources?: MittwaldAPIV2.Components.Schemas.ContainerResources;
2254
+ }
2248
2255
  interface ContainerServiceRequest {
2249
2256
  /**
2250
2257
  * Defaults to image config on empty
@@ -2270,6 +2277,13 @@ export declare namespace MittwaldAPIV2 {
2270
2277
  ports?: string[];
2271
2278
  volumes?: string[];
2272
2279
  }
2280
+ interface ContainerResourceSpec {
2281
+ cpus?: string;
2282
+ memory?: string;
2283
+ }
2284
+ interface ContainerResources {
2285
+ limits?: MittwaldAPIV2.Components.Schemas.ContainerResourceSpec;
2286
+ }
2273
2287
  interface ContainerServiceResponse {
2274
2288
  deploy?: MittwaldAPIV2.Components.Schemas.ContainerDeploy;
2275
2289
  deployedState: MittwaldAPIV2.Components.Schemas.ContainerServiceState;
@@ -4235,6 +4249,9 @@ export declare namespace MittwaldAPIV2 {
4235
4249
  mailbox?: MittwaldAPIV2.Components.Schemas.MailmigrationMailbox;
4236
4250
  projectId: string;
4237
4251
  }
4252
+ interface MailmigrationCheckMigrationIsPossibleErrorActiveMailArchiveForAddress {
4253
+ address: string;
4254
+ }
4238
4255
  interface MailmigrationCheckMigrationIsPossibleErrorAlreadyExistingMailAddress {
4239
4256
  address: string;
4240
4257
  }
@@ -5418,18 +5435,8 @@ export declare namespace MittwaldAPIV2 {
5418
5435
  }
5419
5436
  type VerificationEmailOrigin = "IS_MITTWALD" | "IS_NOT_MITTWALD" | "COULD_BE_MITTWALD";
5420
5437
  type ContainerVolumeSortOrder = "nameAsc" | "nameDesc" | "storageAsc" | "storageDesc";
5421
- interface MailmigrationCheckMigrationIsPossibleErrorActiveMailArchiveForAddress {
5422
- address: string;
5423
- }
5424
- interface ContainerDeploy {
5425
- resources?: MittwaldAPIV2.Components.Schemas.ContainerResources;
5426
- }
5427
- interface ContainerResourceSpec {
5428
- cpus?: string;
5429
- memory?: string;
5430
- }
5431
- interface ContainerResources {
5432
- limits?: MittwaldAPIV2.Components.Schemas.ContainerResourceSpec;
5438
+ interface CronjobCronjobExecutionAnalysis {
5439
+ message: string;
5433
5440
  }
5434
5441
  interface CommonsAddress {
5435
5442
  street: string;
@@ -25134,9 +25141,7 @@ export declare namespace MittwaldAPIV2 {
25134
25141
  }
25135
25142
  namespace $400 {
25136
25143
  namespace Content {
25137
- interface ApplicationJson {
25138
- [k: string]: unknown;
25139
- }
25144
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.CommonsValidationErrors | MittwaldAPIV2.Components.Schemas.CommonsError;
25140
25145
  }
25141
25146
  }
25142
25147
  namespace $401 {
@@ -27476,5 +27481,73 @@ export declare namespace MittwaldAPIV2 {
27476
27481
  }
27477
27482
  }
27478
27483
  }
27484
+ namespace V2CronjobsCronjobIdExecutionsExecutionIdAnalysis {
27485
+ namespace Get {
27486
+ namespace Parameters {
27487
+ type Path = {
27488
+ executionId: string;
27489
+ cronjobId: string;
27490
+ };
27491
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
27492
+ type Query = {};
27493
+ }
27494
+ namespace Responses {
27495
+ namespace $200 {
27496
+ namespace Content {
27497
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.CronjobCronjobExecutionAnalysis;
27498
+ }
27499
+ }
27500
+ namespace $400 {
27501
+ namespace Content {
27502
+ interface ApplicationJson {
27503
+ [k: string]: unknown;
27504
+ }
27505
+ }
27506
+ }
27507
+ namespace $403 {
27508
+ namespace Content {
27509
+ interface ApplicationJson {
27510
+ [k: string]: unknown;
27511
+ }
27512
+ }
27513
+ }
27514
+ namespace $404 {
27515
+ namespace Content {
27516
+ interface ApplicationJson {
27517
+ [k: string]: unknown;
27518
+ }
27519
+ }
27520
+ }
27521
+ namespace $412 {
27522
+ namespace Content {
27523
+ interface ApplicationJson {
27524
+ [k: string]: unknown;
27525
+ }
27526
+ }
27527
+ }
27528
+ namespace $429 {
27529
+ namespace Content {
27530
+ interface ApplicationJson {
27531
+ [k: string]: unknown;
27532
+ }
27533
+ }
27534
+ }
27535
+ namespace $500 {
27536
+ namespace Content {
27537
+ interface ApplicationJson {
27538
+ [k: string]: unknown;
27539
+ }
27540
+ }
27541
+ }
27542
+ namespace Default {
27543
+ namespace Content {
27544
+ interface ApplicationJson {
27545
+ [k: string]: unknown;
27546
+ }
27547
+ }
27548
+ }
27549
+ }
27550
+ }
27551
+ }
27479
27552
  }
27480
27553
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.247.0';
1
+ export declare const MittwaldAPIClientVersion = '4.249.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.248.0",
3
+ "version": "4.250.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -46,11 +46,11 @@
46
46
  "test:compile": "run tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@mittwald/api-client-commons": "^4.248.0",
49
+ "@mittwald/api-client-commons": "^4.250.0",
50
50
  "browser-or-node": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@mittwald/api-code-generator": "^4.248.0",
53
+ "@mittwald/api-code-generator": "^4.250.0",
54
54
  "@mittwald/react-use-promise": "^2.6.2",
55
55
  "@types/node": "^22.18.11",
56
56
  "@types/react": "^18.3.26",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "7c40e960c450197eb655698a511a1e97e597c843"
83
+ "gitHead": "fdba291d41759a2dadac70428deb9804da3ce260"
84
84
  }