@mittwald/api-client 4.303.0 → 4.305.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.
@@ -132,6 +132,8 @@ const buildContractApi = (baseClient) => ({
132
132
  orderListCustomerOrders: new ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
133
133
  /** Get list of Orders of a Project. */
134
134
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
135
+ /** Return the Contract for the given License. */
136
+ getDetailOfContractByLicense: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByLicense, baseClient.contract.getDetailOfContractByLicense).getApiResource,
135
137
  });
136
138
  const buildMarketplaceApi = (baseClient) => ({
137
139
  /** Get a Contributor. */
@@ -235,6 +235,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
235
235
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
236
236
  /** Preview TariffChange. */
237
237
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
238
+ /** Return the Contract for the given License. */
239
+ getDetailOfContractByLicense: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByLicense),
238
240
  };
239
241
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
240
242
  marketplace = {
@@ -2692,3 +2692,9 @@ export const verificationVerifyCompany = {
2692
2692
  method: "POST",
2693
2693
  operationId: "verification-verify-company",
2694
2694
  };
2695
+ /** Return the Contract for the given License. */
2696
+ export const contractGetDetailOfContractByLicense = {
2697
+ path: "/v2/licenses/{licenseId}/contract",
2698
+ method: "GET",
2699
+ operationId: "contract-get-detail-of-contract-by-license",
2700
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.302.0';
1
+ export const MittwaldAPIClientVersion = '4.304.0';
@@ -1024,6 +1024,21 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
1024
1024
  templateNames?: string[] | undefined;
1025
1025
  } | undefined;
1026
1026
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
1027
+ /** Return the Contract for the given License. */
1028
+ getDetailOfContractByLicense: (conf: {
1029
+ licenseId: string;
1030
+ headers?: {
1031
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1032
+ "x-access-token"?: string | undefined;
1033
+ } | undefined;
1034
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
1035
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
1036
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
1037
+ contractId: string;
1038
+ contractNumber: string;
1039
+ customerId: string;
1040
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
1041
+ }>;
1027
1042
  };
1028
1043
  declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
1029
1044
  /** Get a Contributor. */
@@ -7395,6 +7395,68 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
7395
7395
  }, 422, "application/json"> | import("@mittwald/api-client-commons").Response<{
7396
7396
  [x: string]: unknown;
7397
7397
  }, 429, "application/json">>>;
7398
+ /** Return the Contract for the given License. */
7399
+ getDetailOfContractByLicense: (request: {
7400
+ licenseId: string;
7401
+ headers?: {
7402
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
7403
+ "x-access-token"?: string | undefined;
7404
+ } | undefined;
7405
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
7406
+ headers?: Partial<{
7407
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
7408
+ }>;
7409
+ } & {
7410
+ pathParameters: {
7411
+ licenseId: string;
7412
+ };
7413
+ } & {
7414
+ headers: {
7415
+ "x-access-token"?: string | undefined;
7416
+ } & Partial<{
7417
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
7418
+ }>;
7419
+ }, import("@mittwald/api-client-commons").Response<{
7420
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
7421
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
7422
+ contractId: string;
7423
+ contractNumber: string;
7424
+ customerId: string;
7425
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
7426
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
7427
+ [x: string]: unknown;
7428
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
7429
+ [x: string]: unknown;
7430
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
7431
+ [x: string]: unknown;
7432
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
7433
+ headers?: Partial<{
7434
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
7435
+ }>;
7436
+ } & {
7437
+ pathParameters: {
7438
+ licenseId: string;
7439
+ };
7440
+ } & {
7441
+ headers: {
7442
+ "x-access-token"?: string | undefined;
7443
+ } & Partial<{
7444
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
7445
+ }>;
7446
+ }, import("@mittwald/api-client-commons").Response<{
7447
+ additionalItems?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem[] | undefined;
7448
+ baseItem: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractContractItem;
7449
+ contractId: string;
7450
+ contractNumber: string;
7451
+ customerId: string;
7452
+ termination?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContractTermination | undefined;
7453
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
7454
+ [x: string]: unknown;
7455
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
7456
+ [x: string]: unknown;
7457
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
7458
+ [x: string]: unknown;
7459
+ }, 429, "application/json">>>;
7398
7460
  };
7399
7461
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
7400
7462
  readonly marketplace: {
@@ -901,3 +901,5 @@ export declare const verificationDetectPhishingEmail: OpenAPIOperation<RequestTy
901
901
  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.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ActionsVerifyAddress.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
902
902
  /** Check if a company exists. */
903
903
  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.Default.Content.ApplicationJson>, "default", "application/json">>;
904
+ /** Return the Contract for the given License. */
905
+ export declare const contractGetDetailOfContractByLicense: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2LicensesLicenseIdContract.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -1798,6 +1798,10 @@ export declare namespace MittwaldAPIV2 {
1798
1798
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
1799
1799
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
1800
1800
  }
1801
+ namespace ContractGetDetailOfContractByLicense {
1802
+ type RequestData = InferredRequestData<typeof descriptors.contractGetDetailOfContractByLicense>;
1803
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.contractGetDetailOfContractByLicense, TStatus>;
1804
+ }
1801
1805
  }
1802
1806
  namespace Components {
1803
1807
  namespace Schemas {
@@ -5806,6 +5810,10 @@ export declare namespace MittwaldAPIV2 {
5806
5810
  result: MittwaldAPIV2.Components.Schemas.VerificationEmailOrigin;
5807
5811
  }
5808
5812
  type VerificationEmailOrigin = "IS_MITTWALD" | "IS_NOT_MITTWALD" | "COULD_BE_MITTWALD";
5813
+ type VerificationVerifyAddressConfidence = "EXISTS" | "UNSURE" | "NON_EXISTENT";
5814
+ interface VerificationVerifyAddressResponse {
5815
+ exists: boolean;
5816
+ }
5809
5817
  type ContainerVolumeSortOrder = "nameAsc" | "nameDesc" | "storageAsc" | "storageDesc";
5810
5818
  interface CommonsAddress {
5811
5819
  street: string;
@@ -28863,9 +28871,7 @@ export declare namespace MittwaldAPIV2 {
28863
28871
  namespace Responses {
28864
28872
  namespace $200 {
28865
28873
  namespace Content {
28866
- interface ApplicationJson {
28867
- exists: boolean;
28868
- }
28874
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.VerificationVerifyAddressResponse;
28869
28875
  }
28870
28876
  }
28871
28877
  namespace $400 {
@@ -28932,5 +28938,51 @@ export declare namespace MittwaldAPIV2 {
28932
28938
  }
28933
28939
  }
28934
28940
  }
28941
+ namespace V2LicensesLicenseIdContract {
28942
+ namespace Get {
28943
+ namespace Parameters {
28944
+ type Path = {
28945
+ licenseId: string;
28946
+ };
28947
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
28948
+ type Query = {};
28949
+ }
28950
+ namespace Responses {
28951
+ namespace $200 {
28952
+ namespace Content {
28953
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.ContractContract;
28954
+ }
28955
+ }
28956
+ namespace $400 {
28957
+ namespace Content {
28958
+ interface ApplicationJson {
28959
+ [k: string]: unknown;
28960
+ }
28961
+ }
28962
+ }
28963
+ namespace $404 {
28964
+ namespace Content {
28965
+ interface ApplicationJson {
28966
+ [k: string]: unknown;
28967
+ }
28968
+ }
28969
+ }
28970
+ namespace $429 {
28971
+ namespace Content {
28972
+ interface ApplicationJson {
28973
+ [k: string]: unknown;
28974
+ }
28975
+ }
28976
+ }
28977
+ namespace Default {
28978
+ namespace Content {
28979
+ interface ApplicationJson {
28980
+ [k: string]: unknown;
28981
+ }
28982
+ }
28983
+ }
28984
+ }
28985
+ }
28986
+ }
28935
28987
  }
28936
28988
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.302.0';
1
+ export declare const MittwaldAPIClientVersion = '4.304.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.303.0",
3
+ "version": "4.305.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.303.0",
49
+ "@mittwald/api-client-commons": "^4.305.0",
50
50
  "browser-or-node": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@mittwald/api-code-generator": "^4.303.0",
53
+ "@mittwald/api-code-generator": "^4.305.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": "1b97644b11f5ea7cd470b711301766ae17d630cf"
83
+ "gitHead": "46b63576853aba493ac3275e4b942b3275467481"
84
84
  }