@mittwald/api-client 1.0.0-alpha.16 → 1.0.0-alpha.18
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.
- package/README.md +2 -2
- package/dist/generated/v2/client.d.ts +55 -4
- package/dist/generated/v2/client.js +7 -1
- package/dist/generated/v2/descriptors.d.ts +15 -7
- package/dist/generated/v2/descriptors.js +27 -3
- package/dist/generated/v2/types.d.ts +177 -3
- package/dist/v2.js +1 -1
- package/dist-cjs/generated/v2/client.d.ts +5995 -0
- package/dist-cjs/generated/v2/client.js +712 -0
- package/dist-cjs/generated/v2/descriptors.d.ts +637 -0
- package/dist-cjs/generated/v2/descriptors.js +1905 -0
- package/dist-cjs/index.d.ts +1 -0
- package/dist-cjs/index.js +2 -0
- package/dist-cjs/v2.d.ts +10 -0
- package/dist-cjs/v2.js +58 -0
- package/package.json +20 -14
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ yarn add @mittwald/api-client
|
|
|
31
31
|
Import the client:
|
|
32
32
|
|
|
33
33
|
```typescript
|
|
34
|
-
import MittwaldAPIClient from "@mittwald/api-client/
|
|
34
|
+
import MittwaldAPIClient from "@mittwald/api-client/v2";
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
To create a client instance you can use one of the following factory method for
|
|
@@ -48,7 +48,7 @@ on how to obtain an API token and how to get started with the API.
|
|
|
48
48
|
## Example
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
|
-
import MittwaldAPIClient from "@mittwald/api-client/
|
|
51
|
+
import MittwaldAPIClient from "@mittwald/api-client/v2";
|
|
52
52
|
|
|
53
53
|
const mittwaldApi = MittwaldAPIClient.newWithToken("your-access-token");
|
|
54
54
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="./types.d.ts" />
|
|
2
|
-
import ApiClientBase from "@mittwald/api-client-commons
|
|
2
|
+
import { ApiClientBase } from "@mittwald/api-client-commons";
|
|
3
3
|
export declare class MittwaldAPIV2Client extends ApiClientBase {
|
|
4
4
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
5
5
|
readonly app: {
|
|
@@ -779,7 +779,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
779
779
|
headers: {
|
|
780
780
|
"x-access-token"?: string | undefined;
|
|
781
781
|
};
|
|
782
|
-
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.
|
|
782
|
+
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
783
783
|
/** Return the Contract for the given Project. */
|
|
784
784
|
getDetailOfContractByProject: (request: {
|
|
785
785
|
pathParameters: {
|
|
@@ -796,7 +796,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
796
796
|
headers: {
|
|
797
797
|
"x-access-token"?: string | undefined;
|
|
798
798
|
};
|
|
799
|
-
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.
|
|
799
|
+
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
800
800
|
/** Return the Contract for the given Server. */
|
|
801
801
|
getDetailOfContractByServer: (request: {
|
|
802
802
|
pathParameters: {
|
|
@@ -813,7 +813,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
813
813
|
headers: {
|
|
814
814
|
"x-access-token"?: string | undefined;
|
|
815
815
|
};
|
|
816
|
-
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.
|
|
816
|
+
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
817
817
|
/** Get the ContractItem with the given ID. */
|
|
818
818
|
getDetailOfContractItem: (request: {
|
|
819
819
|
pathParameters: {
|
|
@@ -886,6 +886,57 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
886
886
|
"x-access-token"?: string | undefined;
|
|
887
887
|
};
|
|
888
888
|
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdContracts.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
889
|
+
/** Return the Contract for the given Domain. */
|
|
890
|
+
deprecatedContractGetDetailOfContractByDomain: (request: {
|
|
891
|
+
pathParameters: {
|
|
892
|
+
domainId: string;
|
|
893
|
+
};
|
|
894
|
+
headers?: {
|
|
895
|
+
"x-access-token"?: string | undefined;
|
|
896
|
+
} | undefined;
|
|
897
|
+
}) => import("@mittwald/api-client-commons/dist/types/RequestFunction.js").ResponsePromise<import("@mittwald/api-client-commons/dist/types/OpenAPIOperation.js").OpenAPIOperation<object & {
|
|
898
|
+
pathParameters: {
|
|
899
|
+
domainId: string;
|
|
900
|
+
};
|
|
901
|
+
} & {
|
|
902
|
+
headers: {
|
|
903
|
+
"x-access-token"?: string | undefined;
|
|
904
|
+
};
|
|
905
|
+
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
906
|
+
/** Return the Contract for the given Project. */
|
|
907
|
+
deprecatedContractGetDetailOfContractByProject: (request: {
|
|
908
|
+
pathParameters: {
|
|
909
|
+
projectId: string;
|
|
910
|
+
};
|
|
911
|
+
headers?: {
|
|
912
|
+
"x-access-token"?: string | undefined;
|
|
913
|
+
} | undefined;
|
|
914
|
+
}) => import("@mittwald/api-client-commons/dist/types/RequestFunction.js").ResponsePromise<import("@mittwald/api-client-commons/dist/types/OpenAPIOperation.js").OpenAPIOperation<object & {
|
|
915
|
+
pathParameters: {
|
|
916
|
+
projectId: string;
|
|
917
|
+
};
|
|
918
|
+
} & {
|
|
919
|
+
headers: {
|
|
920
|
+
"x-access-token"?: string | undefined;
|
|
921
|
+
};
|
|
922
|
+
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
923
|
+
/** Return the Contract for the given Server. */
|
|
924
|
+
deprecatedContractGetDetailOfContractByServer: (request: {
|
|
925
|
+
pathParameters: {
|
|
926
|
+
serverId: string;
|
|
927
|
+
};
|
|
928
|
+
headers?: {
|
|
929
|
+
"x-access-token"?: string | undefined;
|
|
930
|
+
} | undefined;
|
|
931
|
+
}) => import("@mittwald/api-client-commons/dist/types/RequestFunction.js").ResponsePromise<import("@mittwald/api-client-commons/dist/types/OpenAPIOperation.js").OpenAPIOperation<object & {
|
|
932
|
+
pathParameters: {
|
|
933
|
+
serverId: string;
|
|
934
|
+
};
|
|
935
|
+
} & {
|
|
936
|
+
headers: {
|
|
937
|
+
"x-access-token"?: string | undefined;
|
|
938
|
+
};
|
|
939
|
+
}, import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Components.Schemas.ContractContract, 200, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | import("@mittwald/api-client-commons/dist/types/Response.js").Response<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json">>>;
|
|
889
940
|
/** Get InvoiceSettings of a Customer. */
|
|
890
941
|
deprecatedInvoiceInvoiceSettings: (request: {
|
|
891
942
|
pathParameters: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* prettier-ignore */
|
|
3
3
|
/* This file is auto-generated with acg (@mittwald/api-code-generator) */
|
|
4
4
|
import * as descriptors from "./descriptors.js";
|
|
5
|
-
import ApiClientBase from "@mittwald/api-client-commons
|
|
5
|
+
import { ApiClientBase } from "@mittwald/api-client-commons";
|
|
6
6
|
export class MittwaldAPIV2Client extends ApiClientBase {
|
|
7
7
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
8
8
|
app = {
|
|
@@ -107,6 +107,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
107
107
|
getNextTerminationDateForItem: this.requestFunctionFactory(descriptors.contractGetNextTerminationDateForItem),
|
|
108
108
|
/** Return a list of Contracts for the given Customer. */
|
|
109
109
|
listContracts: this.requestFunctionFactory(descriptors.contractListContracts),
|
|
110
|
+
/** Return the Contract for the given Domain. */
|
|
111
|
+
deprecatedContractGetDetailOfContractByDomain: this.requestFunctionFactory(descriptors.deprecatedContractGetDetailOfContractByDomain),
|
|
112
|
+
/** Return the Contract for the given Project. */
|
|
113
|
+
deprecatedContractGetDetailOfContractByProject: this.requestFunctionFactory(descriptors.deprecatedContractGetDetailOfContractByProject),
|
|
114
|
+
/** Return the Contract for the given Server. */
|
|
115
|
+
deprecatedContractGetDetailOfContractByServer: this.requestFunctionFactory(descriptors.deprecatedContractGetDetailOfContractByServer),
|
|
110
116
|
/** Get InvoiceSettings of a Customer. */
|
|
111
117
|
deprecatedInvoiceInvoiceSettings: this.requestFunctionFactory(descriptors.deprecatedInvoiceInvoiceSettings),
|
|
112
118
|
/** Update InvoiceSettings of a Customer. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="./types.d.ts" />
|
|
2
|
-
import { Simplify } from "@mittwald/api-client-commons/
|
|
3
|
-
import { Request } from "@mittwald/api-client-commons/
|
|
4
|
-
import { Response } from "@mittwald/api-client-commons/
|
|
5
|
-
import { OpenAPIOperation } from "@mittwald/api-client-commons/
|
|
2
|
+
import { Simplify } from "@mittwald/api-client-commons/types";
|
|
3
|
+
import { Request } from "@mittwald/api-client-commons/types";
|
|
4
|
+
import { Response } from "@mittwald/api-client-commons/types";
|
|
5
|
+
import { OpenAPIOperation } from "@mittwald/api-client-commons/types";
|
|
6
6
|
/** execute a runtime concerning action on a specific `AppInstallation` */
|
|
7
7
|
export declare const appExecuteAction: OpenAPIOperation<Request<Simplify<MittwaldAPIV2.Paths.V2AppinstallationsAppInstallationIdActionsAction.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2AppinstallationsAppInstallationIdActionsAction.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2AppinstallationsAppInstallationIdActionsAction.Post.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2AppinstallationsAppInstallationIdActionsAction.Post.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2AppinstallationsAppInstallationIdActionsAction.Post.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
8
8
|
/** get a specific `App` */
|
|
@@ -82,11 +82,11 @@ export declare const contractCancelContractTermination: OpenAPIOperation<Request
|
|
|
82
82
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
83
83
|
export declare const contractGetBaseItemOfContract: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ContractsContractIdBaseItems.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContractsContractIdBaseItems.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2ContractsContractIdBaseItems.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2ContractsContractIdBaseItems.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2ContractsContractIdBaseItems.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2ContractsContractIdBaseItems.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
84
84
|
/** Return the Contract for the given Domain. */
|
|
85
|
-
export declare const contractGetDetailOfContractByDomain: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.
|
|
85
|
+
export declare const contractGetDetailOfContractByDomain: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContract.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
86
86
|
/** Return the Contract for the given Project. */
|
|
87
|
-
export declare const contractGetDetailOfContractByProject: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.
|
|
87
|
+
export declare const contractGetDetailOfContractByProject: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContract.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
88
88
|
/** Return the Contract for the given Server. */
|
|
89
|
-
export declare const contractGetDetailOfContractByServer: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.
|
|
89
|
+
export declare const contractGetDetailOfContractByServer: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2ServersServerIdContract.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
90
90
|
/** Get the ContractItem with the given ID. */
|
|
91
91
|
export declare const contractGetDetailOfContractItem: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ContractsContractIdItemsContractItemId.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContractsContractIdItemsContractItemId.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2ContractsContractIdItemsContractItemId.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2ContractsContractIdItemsContractItemId.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2ContractsContractIdItemsContractItemId.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2ContractsContractIdItemsContractItemId.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
92
92
|
/** Returns the Contract with the given ID. */
|
|
@@ -249,6 +249,12 @@ export declare const databaseUpdateMysqlDatabaseDescription: OpenAPIOperation<Re
|
|
|
249
249
|
export declare const databaseUpdateMysqlUserPassword: OpenAPIOperation<Request<Simplify<MittwaldAPIV2.Paths.V2MysqlUsersIdPassword.Patch.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2MysqlUsersIdPassword.Patch.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2MysqlUsersIdPassword.Patch.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2MysqlUsersIdPassword.Patch.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2MysqlUsersIdPassword.Patch.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2MysqlUsersIdPassword.Patch.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
250
250
|
/** Update a RedisDatabase's description. */
|
|
251
251
|
export declare const databaseUpdateRedisDatabaseDescription: OpenAPIOperation<Request<Simplify<MittwaldAPIV2.Paths.V2RedisDatabasesIdDescription.Patch.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2RedisDatabasesIdDescription.Patch.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2RedisDatabasesIdDescription.Patch.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2RedisDatabasesIdDescription.Patch.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2RedisDatabasesIdDescription.Patch.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2RedisDatabasesIdDescription.Patch.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
252
|
+
/** Return the Contract for the given Domain. */
|
|
253
|
+
export declare const deprecatedContractGetDetailOfContractByDomain: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2DomainsDomainIdContracts.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
254
|
+
/** Return the Contract for the given Project. */
|
|
255
|
+
export declare const deprecatedContractGetDetailOfContractByProject: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2ProjectsProjectIdContracts.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
256
|
+
/** Return the Contract for the given Server. */
|
|
257
|
+
export declare const deprecatedContractGetDetailOfContractByServer: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2ServersServerIdContracts.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
252
258
|
/** Get InvoiceSettings of a Customer. */
|
|
253
259
|
export declare const deprecatedInvoiceInvoiceSettings: OpenAPIOperation<Request<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesettings.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesettings.Get.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesettings.Get.Responses.$200.Content.ApplicationJson, 200, "application/json"> | Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesettings.Get.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesettings.Get.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2CustomersCustomerIdInvoicesettings.Get.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
254
260
|
/** Update InvoiceSettings of a Customer. */
|
|
@@ -627,3 +633,5 @@ export declare const userVerifyEmail: OpenAPIOperation<Request<Simplify<Mittwald
|
|
|
627
633
|
export declare const userVerifyPhoneNumber: OpenAPIOperation<Request<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$409.Content.ApplicationJson, 409, "application/json"> | Response<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
628
634
|
/** Verify your registration */
|
|
629
635
|
export declare const userVerifyRegistration: OpenAPIOperation<Request<Simplify<MittwaldAPIV2.Paths.V2SignupRegistrationVerification.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2SignupRegistrationVerification.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2SignupRegistrationVerification.Post.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2SignupRegistrationVerification.Post.Responses.$400.Content.ApplicationJson, 400, "application/json"> | Response<MittwaldAPIV2.Paths.V2SignupRegistrationVerification.Post.Responses.$404.Content.ApplicationJson, 404, "application/json"> | Response<MittwaldAPIV2.Paths.V2SignupRegistrationVerification.Post.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
636
|
+
/** Register a tariff change for a legacy tariff. */
|
|
637
|
+
export declare const relocationCreateLegacyTariffChange: OpenAPIOperation<Request<Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Parameters.Header>>, Response<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Responses.$201.Content.ApplicationJson, 201, "application/json"> | Response<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Responses.Default.Content.ApplicationJson, "default", "application/json">>;
|
|
@@ -234,19 +234,19 @@ export const contractGetBaseItemOfContract = {
|
|
|
234
234
|
};
|
|
235
235
|
/** Return the Contract for the given Domain. */
|
|
236
236
|
export const contractGetDetailOfContractByDomain = {
|
|
237
|
-
path: "/v2/domains/{domainId}/
|
|
237
|
+
path: "/v2/domains/{domainId}/contract",
|
|
238
238
|
method: "GET",
|
|
239
239
|
operationId: "contract-get-detail-of-contract-by-domain",
|
|
240
240
|
};
|
|
241
241
|
/** Return the Contract for the given Project. */
|
|
242
242
|
export const contractGetDetailOfContractByProject = {
|
|
243
|
-
path: "/v2/projects/{projectId}/
|
|
243
|
+
path: "/v2/projects/{projectId}/contract",
|
|
244
244
|
method: "GET",
|
|
245
245
|
operationId: "contract-get-detail-of-contract-by-project",
|
|
246
246
|
};
|
|
247
247
|
/** Return the Contract for the given Server. */
|
|
248
248
|
export const contractGetDetailOfContractByServer = {
|
|
249
|
-
path: "/v2/servers/{serverId}/
|
|
249
|
+
path: "/v2/servers/{serverId}/contract",
|
|
250
250
|
method: "GET",
|
|
251
251
|
operationId: "contract-get-detail-of-contract-by-server",
|
|
252
252
|
};
|
|
@@ -736,6 +736,24 @@ export const databaseUpdateRedisDatabaseDescription = {
|
|
|
736
736
|
method: "PATCH",
|
|
737
737
|
operationId: "database-update-redis-database-description",
|
|
738
738
|
};
|
|
739
|
+
/** Return the Contract for the given Domain. */
|
|
740
|
+
export const deprecatedContractGetDetailOfContractByDomain = {
|
|
741
|
+
path: "/v2/domains/{domainId}/contracts",
|
|
742
|
+
method: "GET",
|
|
743
|
+
operationId: "deprecated-contract-get-detail-of-contract-by-domain",
|
|
744
|
+
};
|
|
745
|
+
/** Return the Contract for the given Project. */
|
|
746
|
+
export const deprecatedContractGetDetailOfContractByProject = {
|
|
747
|
+
path: "/v2/projects/{projectId}/contracts",
|
|
748
|
+
method: "GET",
|
|
749
|
+
operationId: "deprecated-contract-get-detail-of-contract-by-project",
|
|
750
|
+
};
|
|
751
|
+
/** Return the Contract for the given Server. */
|
|
752
|
+
export const deprecatedContractGetDetailOfContractByServer = {
|
|
753
|
+
path: "/v2/servers/{serverId}/contracts",
|
|
754
|
+
method: "GET",
|
|
755
|
+
operationId: "deprecated-contract-get-detail-of-contract-by-server",
|
|
756
|
+
};
|
|
739
757
|
/** Get InvoiceSettings of a Customer. */
|
|
740
758
|
export const deprecatedInvoiceInvoiceSettings = {
|
|
741
759
|
path: "/v2/customers/{customerId}/invoicesettings",
|
|
@@ -1870,3 +1888,9 @@ export const userVerifyRegistration = {
|
|
|
1870
1888
|
method: "POST",
|
|
1871
1889
|
operationId: "user-verify-registration",
|
|
1872
1890
|
};
|
|
1891
|
+
/** Register a tariff change for a legacy tariff. */
|
|
1892
|
+
export const relocationCreateLegacyTariffChange = {
|
|
1893
|
+
path: "/v2/legacy-tariff-change",
|
|
1894
|
+
method: "POST",
|
|
1895
|
+
operationId: "relocation-create-legacy-tariff-change",
|
|
1896
|
+
};
|
|
@@ -3851,7 +3851,7 @@ declare namespace MittwaldAPIV2 {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
}
|
|
3853
3853
|
|
|
3854
|
-
namespace
|
|
3854
|
+
namespace V2DomainsDomainIdContract {
|
|
3855
3855
|
namespace Get {
|
|
3856
3856
|
namespace Parameters {
|
|
3857
3857
|
export type Path = {
|
|
@@ -3898,7 +3898,7 @@ declare namespace MittwaldAPIV2 {
|
|
|
3898
3898
|
}
|
|
3899
3899
|
}
|
|
3900
3900
|
|
|
3901
|
-
namespace
|
|
3901
|
+
namespace V2ProjectsProjectIdContract {
|
|
3902
3902
|
namespace Get {
|
|
3903
3903
|
namespace Parameters {
|
|
3904
3904
|
export type Path = {
|
|
@@ -3945,7 +3945,7 @@ declare namespace MittwaldAPIV2 {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
3947
|
|
|
3948
|
-
namespace
|
|
3948
|
+
namespace V2ServersServerIdContract {
|
|
3949
3949
|
namespace Get {
|
|
3950
3950
|
namespace Parameters {
|
|
3951
3951
|
export type Path = {
|
|
@@ -7627,6 +7627,147 @@ declare namespace MittwaldAPIV2 {
|
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
7629
7629
|
|
|
7630
|
+
namespace V2DomainsDomainIdContracts {
|
|
7631
|
+
namespace Get {
|
|
7632
|
+
namespace Parameters {
|
|
7633
|
+
export type Path = {
|
|
7634
|
+
domainId: string;
|
|
7635
|
+
};
|
|
7636
|
+
|
|
7637
|
+
export type Header =
|
|
7638
|
+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
7639
|
+
|
|
7640
|
+
export type Query = {};
|
|
7641
|
+
}
|
|
7642
|
+
namespace Responses {
|
|
7643
|
+
namespace $200 {
|
|
7644
|
+
namespace Content {
|
|
7645
|
+
export type ApplicationJson =
|
|
7646
|
+
MittwaldAPIV2.Components.Schemas.ContractContract;
|
|
7647
|
+
}
|
|
7648
|
+
}
|
|
7649
|
+
|
|
7650
|
+
namespace $400 {
|
|
7651
|
+
namespace Content {
|
|
7652
|
+
export interface ApplicationJson {
|
|
7653
|
+
[k: string]: unknown;
|
|
7654
|
+
}
|
|
7655
|
+
}
|
|
7656
|
+
}
|
|
7657
|
+
|
|
7658
|
+
namespace $404 {
|
|
7659
|
+
namespace Content {
|
|
7660
|
+
export interface ApplicationJson {
|
|
7661
|
+
[k: string]: unknown;
|
|
7662
|
+
}
|
|
7663
|
+
}
|
|
7664
|
+
}
|
|
7665
|
+
|
|
7666
|
+
namespace Default {
|
|
7667
|
+
namespace Content {
|
|
7668
|
+
export interface ApplicationJson {
|
|
7669
|
+
[k: string]: unknown;
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7672
|
+
}
|
|
7673
|
+
}
|
|
7674
|
+
}
|
|
7675
|
+
}
|
|
7676
|
+
|
|
7677
|
+
namespace V2ProjectsProjectIdContracts {
|
|
7678
|
+
namespace Get {
|
|
7679
|
+
namespace Parameters {
|
|
7680
|
+
export type Path = {
|
|
7681
|
+
projectId: string;
|
|
7682
|
+
};
|
|
7683
|
+
|
|
7684
|
+
export type Header =
|
|
7685
|
+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
7686
|
+
|
|
7687
|
+
export type Query = {};
|
|
7688
|
+
}
|
|
7689
|
+
namespace Responses {
|
|
7690
|
+
namespace $200 {
|
|
7691
|
+
namespace Content {
|
|
7692
|
+
export type ApplicationJson =
|
|
7693
|
+
MittwaldAPIV2.Components.Schemas.ContractContract;
|
|
7694
|
+
}
|
|
7695
|
+
}
|
|
7696
|
+
|
|
7697
|
+
namespace $400 {
|
|
7698
|
+
namespace Content {
|
|
7699
|
+
export interface ApplicationJson {
|
|
7700
|
+
[k: string]: unknown;
|
|
7701
|
+
}
|
|
7702
|
+
}
|
|
7703
|
+
}
|
|
7704
|
+
|
|
7705
|
+
namespace $404 {
|
|
7706
|
+
namespace Content {
|
|
7707
|
+
export interface ApplicationJson {
|
|
7708
|
+
[k: string]: unknown;
|
|
7709
|
+
}
|
|
7710
|
+
}
|
|
7711
|
+
}
|
|
7712
|
+
|
|
7713
|
+
namespace Default {
|
|
7714
|
+
namespace Content {
|
|
7715
|
+
export interface ApplicationJson {
|
|
7716
|
+
[k: string]: unknown;
|
|
7717
|
+
}
|
|
7718
|
+
}
|
|
7719
|
+
}
|
|
7720
|
+
}
|
|
7721
|
+
}
|
|
7722
|
+
}
|
|
7723
|
+
|
|
7724
|
+
namespace V2ServersServerIdContracts {
|
|
7725
|
+
namespace Get {
|
|
7726
|
+
namespace Parameters {
|
|
7727
|
+
export type Path = {
|
|
7728
|
+
serverId: string;
|
|
7729
|
+
};
|
|
7730
|
+
|
|
7731
|
+
export type Header =
|
|
7732
|
+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
7733
|
+
|
|
7734
|
+
export type Query = {};
|
|
7735
|
+
}
|
|
7736
|
+
namespace Responses {
|
|
7737
|
+
namespace $200 {
|
|
7738
|
+
namespace Content {
|
|
7739
|
+
export type ApplicationJson =
|
|
7740
|
+
MittwaldAPIV2.Components.Schemas.ContractContract;
|
|
7741
|
+
}
|
|
7742
|
+
}
|
|
7743
|
+
|
|
7744
|
+
namespace $400 {
|
|
7745
|
+
namespace Content {
|
|
7746
|
+
export interface ApplicationJson {
|
|
7747
|
+
[k: string]: unknown;
|
|
7748
|
+
}
|
|
7749
|
+
}
|
|
7750
|
+
}
|
|
7751
|
+
|
|
7752
|
+
namespace $404 {
|
|
7753
|
+
namespace Content {
|
|
7754
|
+
export interface ApplicationJson {
|
|
7755
|
+
[k: string]: unknown;
|
|
7756
|
+
}
|
|
7757
|
+
}
|
|
7758
|
+
}
|
|
7759
|
+
|
|
7760
|
+
namespace Default {
|
|
7761
|
+
namespace Content {
|
|
7762
|
+
export interface ApplicationJson {
|
|
7763
|
+
[k: string]: unknown;
|
|
7764
|
+
}
|
|
7765
|
+
}
|
|
7766
|
+
}
|
|
7767
|
+
}
|
|
7768
|
+
}
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7630
7771
|
namespace V2CustomersCustomerIdInvoicesettings {
|
|
7631
7772
|
namespace Get {
|
|
7632
7773
|
namespace Parameters {
|
|
@@ -15418,5 +15559,38 @@ declare namespace MittwaldAPIV2 {
|
|
|
15418
15559
|
}
|
|
15419
15560
|
}
|
|
15420
15561
|
}
|
|
15562
|
+
|
|
15563
|
+
namespace V2LegacyTariffChange {
|
|
15564
|
+
namespace Post {
|
|
15565
|
+
namespace Parameters {
|
|
15566
|
+
export type Path = {};
|
|
15567
|
+
|
|
15568
|
+
export interface RequestBody {
|
|
15569
|
+
[k: string]: unknown;
|
|
15570
|
+
}
|
|
15571
|
+
|
|
15572
|
+
export type Header = {};
|
|
15573
|
+
|
|
15574
|
+
export type Query = {};
|
|
15575
|
+
}
|
|
15576
|
+
namespace Responses {
|
|
15577
|
+
namespace $201 {
|
|
15578
|
+
namespace Content {
|
|
15579
|
+
export interface ApplicationJson {
|
|
15580
|
+
messageId: string;
|
|
15581
|
+
}
|
|
15582
|
+
}
|
|
15583
|
+
}
|
|
15584
|
+
|
|
15585
|
+
namespace Default {
|
|
15586
|
+
namespace Content {
|
|
15587
|
+
export interface ApplicationJson {
|
|
15588
|
+
[k: string]: unknown;
|
|
15589
|
+
}
|
|
15590
|
+
}
|
|
15591
|
+
}
|
|
15592
|
+
}
|
|
15593
|
+
}
|
|
15594
|
+
}
|
|
15421
15595
|
}
|
|
15422
15596
|
}
|
package/dist/v2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ApiClientError from "@mittwald/api-client-commons
|
|
1
|
+
import { ApiClientError } from "@mittwald/api-client-commons";
|
|
2
2
|
import MittwaldApiV2Client from "./generated/v2/client.js";
|
|
3
3
|
export class MittwaldAPIClient extends MittwaldApiV2Client {
|
|
4
4
|
apiToken;
|