@mittwald/api-client 4.275.0 → 4.276.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.
@@ -112,6 +112,8 @@ const buildContractApi = (baseClient) => ({
112
112
  orderListCustomerOrders: new ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
113
113
  /** Get list of Orders of a Project. */
114
114
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
115
+ /** Return the AI Hosting Contract for the given Customer. */
116
+ getDetailOfContractByAiHosting: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByAiHosting, baseClient.contract.getDetailOfContractByAiHosting).getApiResource,
115
117
  });
116
118
  const buildMarketplaceApi = (baseClient) => ({
117
119
  /** Get a Contributor. */
@@ -202,6 +202,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
202
202
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
203
203
  /** Preview TariffChange. */
204
204
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
205
+ /** Return the AI Hosting Contract for the given Customer. */
206
+ getDetailOfContractByAiHosting: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByAiHosting),
205
207
  };
206
208
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
207
209
  marketplace = {
@@ -2626,3 +2626,9 @@ export const verificationVerifyCompany = {
2626
2626
  method: "POST",
2627
2627
  operationId: "verification-verify-company",
2628
2628
  };
2629
+ /** Return the AI Hosting Contract for the given Customer. */
2630
+ export const contractGetDetailOfContractByAiHosting = {
2631
+ path: "/v2/customers/{customerId}/ai-hosting/contract",
2632
+ method: "GET",
2633
+ operationId: "contract-get-detail-of-contract-by-ai-hosting",
2634
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.274.0';
1
+ export const MittwaldAPIClientVersion = '4.275.0';
@@ -901,6 +901,21 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
901
901
  templateNames?: string[] | undefined;
902
902
  } | undefined;
903
903
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
904
+ /** Return the AI Hosting Contract for the given Customer. */
905
+ getDetailOfContractByAiHosting: (conf: {
906
+ customerId: string;
907
+ headers?: {
908
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
909
+ "x-access-token"?: string | undefined;
910
+ } | undefined;
911
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
912
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
913
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
914
+ contractId: string;
915
+ contractNumber: string;
916
+ customerId: string;
917
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
918
+ }>;
904
919
  };
905
920
  declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
906
921
  /** Get a Contributor. */
@@ -6428,6 +6428,68 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
6428
6428
  }, 422, "application/json"> | import("@mittwald/api-client-commons").Response<{
6429
6429
  [x: string]: unknown;
6430
6430
  }, 429, "application/json">>>;
6431
+ /** Return the AI Hosting Contract for the given Customer. */
6432
+ getDetailOfContractByAiHosting: (request: {
6433
+ customerId: string;
6434
+ headers?: {
6435
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
6436
+ "x-access-token"?: string | undefined;
6437
+ } | undefined;
6438
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
6439
+ headers?: Partial<{
6440
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6441
+ }>;
6442
+ } & {
6443
+ pathParameters: {
6444
+ customerId: string;
6445
+ };
6446
+ } & {
6447
+ headers: {
6448
+ "x-access-token"?: string | undefined;
6449
+ } & Partial<{
6450
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6451
+ }>;
6452
+ }, import("@mittwald/api-client-commons").Response<{
6453
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
6454
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
6455
+ contractId: string;
6456
+ contractNumber: string;
6457
+ customerId: string;
6458
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
6459
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
6460
+ [x: string]: unknown;
6461
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
6462
+ [x: string]: unknown;
6463
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
6464
+ [x: string]: unknown;
6465
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
6466
+ headers?: Partial<{
6467
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6468
+ }>;
6469
+ } & {
6470
+ pathParameters: {
6471
+ customerId: string;
6472
+ };
6473
+ } & {
6474
+ headers: {
6475
+ "x-access-token"?: string | undefined;
6476
+ } & Partial<{
6477
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
6478
+ }>;
6479
+ }, import("@mittwald/api-client-commons").Response<{
6480
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
6481
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
6482
+ contractId: string;
6483
+ contractNumber: string;
6484
+ customerId: string;
6485
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
6486
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
6487
+ [x: string]: unknown;
6488
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
6489
+ [x: string]: unknown;
6490
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
6491
+ [x: string]: unknown;
6492
+ }, 429, "application/json">>>;
6431
6493
  };
6432
6494
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
6433
6495
  readonly marketplace: {
@@ -879,3 +879,5 @@ export declare const verificationDetectPhishingEmail: OpenAPIOperation<RequestTy
879
879
  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">>;
880
880
  /** Check if a company exists. */
881
881
  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">>;
882
+ /** Return the AI Hosting Contract for the given Customer. */
883
+ export declare const contractGetDetailOfContractByAiHosting: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingContract.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -1754,6 +1754,10 @@ export declare namespace MittwaldAPIV2 {
1754
1754
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
1755
1755
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
1756
1756
  }
1757
+ namespace ContractGetDetailOfContractByAiHosting {
1758
+ type RequestData = InferredRequestData<typeof descriptors.contractGetDetailOfContractByAiHosting>;
1759
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.contractGetDetailOfContractByAiHosting, TStatus>;
1760
+ }
1757
1761
  }
1758
1762
  namespace Components {
1759
1763
  namespace Schemas {
@@ -27971,5 +27975,51 @@ export declare namespace MittwaldAPIV2 {
27971
27975
  }
27972
27976
  }
27973
27977
  }
27978
+ namespace V2CustomersCustomerIdAiHostingContract {
27979
+ namespace Get {
27980
+ namespace Parameters {
27981
+ type Path = {
27982
+ customerId: string;
27983
+ };
27984
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
27985
+ type Query = {};
27986
+ }
27987
+ namespace Responses {
27988
+ namespace $200 {
27989
+ namespace Content {
27990
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.ContractContract;
27991
+ }
27992
+ }
27993
+ namespace $400 {
27994
+ namespace Content {
27995
+ interface ApplicationJson {
27996
+ [k: string]: unknown;
27997
+ }
27998
+ }
27999
+ }
28000
+ namespace $404 {
28001
+ namespace Content {
28002
+ interface ApplicationJson {
28003
+ [k: string]: unknown;
28004
+ }
28005
+ }
28006
+ }
28007
+ namespace $429 {
28008
+ namespace Content {
28009
+ interface ApplicationJson {
28010
+ [k: string]: unknown;
28011
+ }
28012
+ }
28013
+ }
28014
+ namespace Default {
28015
+ namespace Content {
28016
+ interface ApplicationJson {
28017
+ [k: string]: unknown;
28018
+ }
28019
+ }
28020
+ }
28021
+ }
28022
+ }
28023
+ }
27974
28024
  }
27975
28025
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.274.0';
1
+ export declare const MittwaldAPIClientVersion = '4.275.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.275.0",
3
+ "version": "4.276.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.275.0",
49
+ "@mittwald/api-client-commons": "^4.276.0",
50
50
  "browser-or-node": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@mittwald/api-code-generator": "^4.275.0",
53
+ "@mittwald/api-code-generator": "^4.276.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": "cb71d8ac7d06c2df84a65c3b1062f649dd1d18d9"
83
+ "gitHead": "cb04ba04edecb918f3b680c9d3f452499b1e671a"
84
84
  }