@mittwald/api-client
Advanced tools
Comparing version 1.0.0-alpha.16 to 1.0.0-alpha.17
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import * as descriptors from "./descriptors.js"; | ||
import ApiClientBase from "@mittwald/api-client-commons/dist/core/ApiClientBase.js"; | ||
import { ApiClientBase } from "@mittwald/api-client-commons"; | ||
export class MittwaldAPIV2Client extends ApiClientBase { | ||
@@ -111,2 +111,8 @@ /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */ | ||
listContracts: this.requestFunctionFactory(descriptors.contractListContracts), | ||
/** Return the Contract for the given Domain. */ | ||
deprecatedContractGetDetailOfContractByDomain: this.requestFunctionFactory(descriptors.deprecatedContractGetDetailOfContractByDomain), | ||
/** Return the Contract for the given Project. */ | ||
deprecatedContractGetDetailOfContractByProject: this.requestFunctionFactory(descriptors.deprecatedContractGetDetailOfContractByProject), | ||
/** Return the Contract for the given Server. */ | ||
deprecatedContractGetDetailOfContractByServer: this.requestFunctionFactory(descriptors.deprecatedContractGetDetailOfContractByServer), | ||
/** Get InvoiceSettings of a Customer. */ | ||
@@ -113,0 +119,0 @@ deprecatedInvoiceInvoiceSettings: this.requestFunctionFactory(descriptors.deprecatedInvoiceInvoiceSettings), |
@@ -237,3 +237,3 @@ /** execute a runtime concerning action on a specific `AppInstallation` */ | ||
export const contractGetDetailOfContractByDomain = { | ||
path: "/v2/domains/{domainId}/contracts", | ||
path: "/v2/domains/{domainId}/contract", | ||
method: "GET", | ||
@@ -244,3 +244,3 @@ operationId: "contract-get-detail-of-contract-by-domain", | ||
export const contractGetDetailOfContractByProject = { | ||
path: "/v2/projects/{projectId}/contracts", | ||
path: "/v2/projects/{projectId}/contract", | ||
method: "GET", | ||
@@ -251,3 +251,3 @@ operationId: "contract-get-detail-of-contract-by-project", | ||
export const contractGetDetailOfContractByServer = { | ||
path: "/v2/servers/{serverId}/contracts", | ||
path: "/v2/servers/{serverId}/contract", | ||
method: "GET", | ||
@@ -742,2 +742,20 @@ operationId: "contract-get-detail-of-contract-by-server", | ||
}; | ||
/** Return the Contract for the given Domain. */ | ||
export const deprecatedContractGetDetailOfContractByDomain = { | ||
path: "/v2/domains/{domainId}/contracts", | ||
method: "GET", | ||
operationId: "deprecated-contract-get-detail-of-contract-by-domain", | ||
}; | ||
/** Return the Contract for the given Project. */ | ||
export const deprecatedContractGetDetailOfContractByProject = { | ||
path: "/v2/projects/{projectId}/contracts", | ||
method: "GET", | ||
operationId: "deprecated-contract-get-detail-of-contract-by-project", | ||
}; | ||
/** Return the Contract for the given Server. */ | ||
export const deprecatedContractGetDetailOfContractByServer = { | ||
path: "/v2/servers/{serverId}/contracts", | ||
method: "GET", | ||
operationId: "deprecated-contract-get-detail-of-contract-by-server", | ||
}; | ||
/** Get InvoiceSettings of a Customer. */ | ||
@@ -1877,1 +1895,7 @@ export const deprecatedInvoiceInvoiceSettings = { | ||
}; | ||
/** Register a tariff change for a legacy tariff. */ | ||
export const relocationCreateLegacyTariffChange = { | ||
path: "/v2/legacy-tariff-change", | ||
method: "POST", | ||
operationId: "relocation-create-legacy-tariff-change", | ||
}; |
@@ -1,2 +0,2 @@ | ||
import ApiClientError from "@mittwald/api-client-commons/dist/core/ApiClientError.js"; | ||
import { ApiClientError } from "@mittwald/api-client-commons"; | ||
import MittwaldApiV2Client from "./generated/v2/client.js"; | ||
@@ -3,0 +3,0 @@ export class MittwaldAPIClient extends MittwaldApiV2Client { |
{ | ||
"name": "@mittwald/api-client", | ||
"description": "Auto-generated client for the mittwald API", | ||
"version": "1.0.0-alpha.16", | ||
"version": "1.0.0-alpha.17", | ||
"license": "MIT", | ||
"repository": "github:mittwald/api-client-js", | ||
"author": { | ||
"name": "Mittwald CM Service GmbH & Co. KG", | ||
"email": "opensource@mittwald.de" | ||
}, | ||
"homepage": "https://developer.mittwald.de", | ||
@@ -12,13 +16,8 @@ "bugs": { | ||
"type": "module", | ||
"author": { | ||
"name": "Mittwald CM Service GmbH & Co. KG", | ||
"email": "opensource@mittwald.de" | ||
"exports": { | ||
"./v2": { | ||
"import": "./dist/v2.js", | ||
"default": "./dist-cjs/v2.js" | ||
} | ||
}, | ||
"keywords": [ | ||
"mittwald", | ||
"api", | ||
"client", | ||
"sdk", | ||
"rest" | ||
], | ||
"scripts": { | ||
@@ -30,7 +29,14 @@ "copy:dts": "yarn run -T copyfiles -u 1 src/**/*.d.ts dist", | ||
"generate:client:v2": "curl --silent https://api.mittwald.de/openapi | ./transform-openapi.sh | yarn acg generate --name MittwaldAPIV2 - src/generated/v2 --optionalHeader x-access-token", | ||
"post:generate": "yarn run -T compile && yarn copy:dts" | ||
"post:generate": "yarn run -T compile && yarn run -T compile:cjs && yarn copy:dts" | ||
}, | ||
"files": [ | ||
"dist/**/*.{js,d.ts}" | ||
"{dist,dist-cjs}/**/*.{js,d.ts}" | ||
], | ||
"keywords": [ | ||
"mittwald", | ||
"api", | ||
"client", | ||
"sdk", | ||
"rest" | ||
], | ||
"dependencies": { | ||
@@ -37,0 +43,0 @@ "@mittwald/api-client-commons": "^1.0.0" |
@@ -34,3 +34,3 @@ # mittwald API JavaScript client | ||
```typescript | ||
import MittwaldAPIClient from "@mittwald/api-client/dist/v2.js"; | ||
import MittwaldAPIClient from "@mittwald/api-client/v2"; | ||
``` | ||
@@ -52,3 +52,3 @@ | ||
```typescript | ||
import MittwaldAPIClient from "@mittwald/api-client/dist/v2.js"; | ||
import MittwaldAPIClient from "@mittwald/api-client/v2"; | ||
@@ -55,0 +55,0 @@ const mittwaldApi = MittwaldAPIClient.newWithToken("your-access-token"); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1740168
19
33913