@mittwald/api-client
Advanced tools
Comparing version 0.0.0-development-7c0a25b-20240611 to 0.0.0-development-e096ee7-20240924
@@ -77,2 +77,4 @@ import { ApiCallAsyncResourceFactory } from "@mittwald/api-client-commons/react"; | ||
getBaseItemOfContract: new ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource, | ||
/** Return the Contract for the given Certificate. */ | ||
getDetailOfContractByCertificate: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByCertificate, baseClient.contract.getDetailOfContractByCertificate).getApiResource, | ||
/** Return the Contract for the given Domain. */ | ||
@@ -138,8 +140,4 @@ getDetailOfContractByDomain: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByDomain, baseClient.contract.getDetailOfContractByDomain).getApiResource, | ||
const buildCustomerApi = (baseClient) => ({ | ||
/** Get all customer categories. */ | ||
listOfCustomerCategories: new ApiCallAsyncResourceFactory(descriptors.customerListOfCustomerCategories, baseClient.customer.listOfCustomerCategories).getApiResource, | ||
/** Get all customer profiles the authenticated user has access to. */ | ||
listCustomers: new ApiCallAsyncResourceFactory(descriptors.customerListCustomers, baseClient.customer.listCustomers).getApiResource, | ||
/** Get a customer category. */ | ||
getCustomerCategory: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerCategory, baseClient.customer.getCustomerCategory).getApiResource, | ||
/** Get a CustomerInvite. */ | ||
@@ -201,2 +199,4 @@ getCustomerInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerInvite, baseClient.customer.getCustomerInvite).getApiResource, | ||
listTlds: new ApiCallAsyncResourceFactory(descriptors.domainListTlds, baseClient.domain.listTlds).getApiResource, | ||
/** Suggest a list of domains based on a prompt using AI. */ | ||
suggest: new ApiCallAsyncResourceFactory(descriptors.domainSuggest, baseClient.domain.suggest).getApiResource, | ||
/** List Ingresses. */ | ||
@@ -206,2 +206,10 @@ ingressListIngresses: new ApiCallAsyncResourceFactory(descriptors.ingressListIngresses, baseClient.domain.ingressListIngresses).getApiResource, | ||
ingressGetIngress: new ApiCallAsyncResourceFactory(descriptors.ingressGetIngress, baseClient.domain.ingressGetIngress).getApiResource, | ||
/** List CertificateRequests belonging to a Project or an Ingress. */ | ||
sslListCertificateRequests: new ApiCallAsyncResourceFactory(descriptors.sslListCertificateRequests, baseClient.domain.sslListCertificateRequests).getApiResource, | ||
/** Get a CertificateRequest. */ | ||
sslGetCertificateRequest: new ApiCallAsyncResourceFactory(descriptors.sslGetCertificateRequest, baseClient.domain.sslGetCertificateRequest).getApiResource, | ||
/** Get a Certificate. */ | ||
sslGetCertificate: new ApiCallAsyncResourceFactory(descriptors.sslGetCertificate, baseClient.domain.sslGetCertificate).getApiResource, | ||
/** List Certificates belonging to a Project or an Ingress. */ | ||
sslListCertificates: new ApiCallAsyncResourceFactory(descriptors.sslListCertificates, baseClient.domain.sslListCertificates).getApiResource, | ||
}); | ||
@@ -233,3 +241,3 @@ const buildMarketplaceApi = (baseClient) => ({ | ||
getFile: new ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource, | ||
/** Get a File. */ | ||
/** Get a File with user-friendly url. */ | ||
getFileWithName: new ApiCallAsyncResourceFactory(descriptors.fileGetFileWithName, baseClient.file.getFileWithName).getApiResource, | ||
@@ -370,3 +378,3 @@ }); | ||
database; | ||
/** The domain API allows you to manage your domains, DNS records and ingress resources. */ | ||
/** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */ | ||
domain; | ||
@@ -373,0 +381,0 @@ /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */ |
@@ -47,2 +47,4 @@ /* eslint-disable */ | ||
listUpdateCandidatesForAppversion: this.requestFunctionFactory(descriptors.appListUpdateCandidatesForAppversion), | ||
/** Replace a MySQL Database with another MySQL Database. */ | ||
replaceDatabase: this.requestFunctionFactory(descriptors.appReplaceDatabase), | ||
/** Request a copy of an AppInstallation. */ | ||
@@ -152,2 +154,4 @@ requestAppinstallationCopy: this.requestFunctionFactory(descriptors.appRequestAppinstallationCopy), | ||
getBaseItemOfContract: this.requestFunctionFactory(descriptors.contractGetBaseItemOfContract), | ||
/** Return the Contract for the given Certificate. */ | ||
getDetailOfContractByCertificate: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByCertificate), | ||
/** Return the Contract for the given Domain. */ | ||
@@ -194,2 +198,37 @@ getDetailOfContractByDomain: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByDomain), | ||
}; | ||
/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */ | ||
marketplace = { | ||
/** Rotate the secret for an extension instance. */ | ||
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance), | ||
/** Authenticate your external application using the extensionInstanceSecret. */ | ||
extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance), | ||
/** Consent to extension scopes. */ | ||
extensionConsentToExtensionScopes: this.requestFunctionFactory(descriptors.extensionConsentToExtensionScopes), | ||
/** List ExtensionInstances. */ | ||
extensionListExtensionInstances: this.requestFunctionFactory(descriptors.extensionListExtensionInstances), | ||
/** Create an ExtensionInstance. */ | ||
extensionCreateExtensionInstance: this.requestFunctionFactory(descriptors.extensionCreateExtensionInstance), | ||
/** Create an access token retrieval key for an extension instance. */ | ||
extensionCreateRetrievalKey: this.requestFunctionFactory(descriptors.extensionCreateRetrievalKey), | ||
/** Get an ExtensionInstance. */ | ||
extensionGetExtensionInstance: this.requestFunctionFactory(descriptors.extensionGetExtensionInstance), | ||
/** Delete an ExtensionInstance. */ | ||
extensionDeleteExtensionInstance: this.requestFunctionFactory(descriptors.extensionDeleteExtensionInstance), | ||
/** Disable an ExtensionInstance. */ | ||
extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance), | ||
/** Dry run a webhook with random or given values. */ | ||
extensionDryRunWebhook: this.requestFunctionFactory(descriptors.extensionDryRunWebhook), | ||
/** Enable an ExtensionInstance. */ | ||
extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance), | ||
/** Get a Contributor. */ | ||
extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor), | ||
/** Get an Extension. */ | ||
extensionGetExtension: this.requestFunctionFactory(descriptors.extensionGetExtension), | ||
/** Get the public key to verify the webhook signature. */ | ||
extensionGetPublicKey: this.requestFunctionFactory(descriptors.extensionGetPublicKey), | ||
/** List Contributors. */ | ||
extensionListContributors: this.requestFunctionFactory(descriptors.extensionListContributors), | ||
/** List Extensions. */ | ||
extensionListExtensions: this.requestFunctionFactory(descriptors.extensionListExtensions), | ||
}; | ||
/** The conversation API allows you to manage your support conversations. */ | ||
@@ -253,6 +292,2 @@ conversation = { | ||
acceptCustomerInvite: this.requestFunctionFactory(descriptors.customerAcceptCustomerInvite), | ||
/** Get all customer categories. */ | ||
listOfCustomerCategories: this.requestFunctionFactory(descriptors.customerListOfCustomerCategories), | ||
/** Create a new customer category. */ | ||
createCategory: this.requestFunctionFactory(descriptors.customerCreateCategory), | ||
/** Create a CustomerInvite. */ | ||
@@ -266,8 +301,2 @@ createCustomerInvite: this.requestFunctionFactory(descriptors.customerCreateCustomerInvite), | ||
declineCustomerInvite: this.requestFunctionFactory(descriptors.customerDeclineCustomerInvite), | ||
/** Get a customer category. */ | ||
getCustomerCategory: this.requestFunctionFactory(descriptors.customerGetCustomerCategory), | ||
/** Update a customer category. */ | ||
updateCategory: this.requestFunctionFactory(descriptors.customerUpdateCategory), | ||
/** Delete a customer category. */ | ||
deleteCategory: this.requestFunctionFactory(descriptors.customerDeleteCategory), | ||
/** Get a CustomerInvite. */ | ||
@@ -378,3 +407,3 @@ getCustomerInvite: this.requestFunctionFactory(descriptors.customerGetCustomerInvite), | ||
}; | ||
/** The domain API allows you to manage your domains, DNS records and ingress resources. */ | ||
/** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */ | ||
domain = { | ||
@@ -409,6 +438,2 @@ /** Create a DNSZone. */ | ||
deleteDomain: this.requestFunctionFactory(descriptors.domainDeleteDomain), | ||
/** Generate a list of domains from an input using AI. */ | ||
generateFromInput: this.requestFunctionFactory(descriptors.domainGenerateFromInput), | ||
/** Generate a list of domains from an input using AI, based on previously generated Domains and a context modification. */ | ||
generateInContext: this.requestFunctionFactory(descriptors.domainGenerateInContext), | ||
/** Get the latest screenshot's FileReference belonging to a Domain. */ | ||
@@ -422,2 +447,4 @@ getLatestScreenshot: this.requestFunctionFactory(descriptors.domainGetLatestScreenshot), | ||
resendDomainEmail: this.requestFunctionFactory(descriptors.domainResendDomainEmail), | ||
/** Suggest a list of domains based on a prompt using AI. */ | ||
suggest: this.requestFunctionFactory(descriptors.domainSuggest), | ||
/** Update the auth code of a Domain. */ | ||
@@ -439,2 +466,4 @@ updateDomainAuthCode: this.requestFunctionFactory(descriptors.domainUpdateDomainAuthCode), | ||
ingressIngressVerifyOwnership: this.requestFunctionFactory(descriptors.ingressIngressVerifyOwnership), | ||
/** List Ingresses compatible with a certificate. */ | ||
ingressListIngressesCompatibleWithCertificate: this.requestFunctionFactory(descriptors.ingressListIngressesCompatibleWithCertificate), | ||
/** Update the paths of an Ingress. */ | ||
@@ -446,36 +475,23 @@ ingressUpdateIngressPaths: this.requestFunctionFactory(descriptors.ingressUpdateIngressPaths), | ||
ingressUpdateIngressTls: this.requestFunctionFactory(descriptors.ingressUpdateIngressTls), | ||
/** Check the replacement of a Certificate. */ | ||
sslCheckReplaceCertificate: this.requestFunctionFactory(descriptors.sslCheckReplaceCertificate), | ||
/** List CertificateRequests belonging to a Project or an Ingress. */ | ||
sslListCertificateRequests: this.requestFunctionFactory(descriptors.sslListCertificateRequests), | ||
/** Create a CertificateRequest. */ | ||
sslCreateCertificateRequest: this.requestFunctionFactory(descriptors.sslCreateCertificateRequest), | ||
/** Delete a CertificateRequest. */ | ||
sslDeleteCertificateRequest: this.requestFunctionFactory(descriptors.sslDeleteCertificateRequest), | ||
/** Delete a Certificate. */ | ||
sslDeleteCertificate: this.requestFunctionFactory(descriptors.sslDeleteCertificate), | ||
/** Get a CertificateRequest. */ | ||
sslGetCertificateRequest: this.requestFunctionFactory(descriptors.sslGetCertificateRequest), | ||
/** Get a Certificate. */ | ||
sslGetCertificate: this.requestFunctionFactory(descriptors.sslGetCertificate), | ||
/** Update a Certificate. */ | ||
sslReplaceCertificate: this.requestFunctionFactory(descriptors.sslReplaceCertificate), | ||
/** List Certificates belonging to a Project or an Ingress. */ | ||
sslListCertificates: this.requestFunctionFactory(descriptors.sslListCertificates), | ||
/** Update the certificate of a CertificateRequest. */ | ||
sslSetCertificateRequestCertificate: this.requestFunctionFactory(descriptors.sslSetCertificateRequestCertificate), | ||
}; | ||
/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */ | ||
marketplace = { | ||
/** Authenticate your external application using the extensionInstanceSecret. */ | ||
extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance), | ||
/** Consent to extension scopes. */ | ||
extensionConsentToExtensionScopes: this.requestFunctionFactory(descriptors.extensionConsentToExtensionScopes), | ||
/** List ExtensionInstances. */ | ||
extensionListExtensionInstances: this.requestFunctionFactory(descriptors.extensionListExtensionInstances), | ||
/** Create an ExtensionInstance. */ | ||
extensionCreateExtensionInstance: this.requestFunctionFactory(descriptors.extensionCreateExtensionInstance), | ||
/** Create an access token retrieval key for an extension instance. */ | ||
extensionCreateRetrievalKey: this.requestFunctionFactory(descriptors.extensionCreateRetrievalKey), | ||
/** Get an ExtensionInstance. */ | ||
extensionGetExtensionInstance: this.requestFunctionFactory(descriptors.extensionGetExtensionInstance), | ||
/** Delete an ExtensionInstance. */ | ||
extensionDeleteExtensionInstance: this.requestFunctionFactory(descriptors.extensionDeleteExtensionInstance), | ||
/** Disable an ExtensionInstance. */ | ||
extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance), | ||
/** Enable an ExtensionInstance. */ | ||
extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance), | ||
/** Get a Contributor. */ | ||
extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor), | ||
/** Get an Extension. */ | ||
extensionGetExtension: this.requestFunctionFactory(descriptors.extensionGetExtension), | ||
/** Get the public key to verify the webhook signature. */ | ||
extensionGetPublicKey: this.requestFunctionFactory(descriptors.extensionGetPublicKey), | ||
/** List Contributors. */ | ||
extensionListContributors: this.requestFunctionFactory(descriptors.extensionListContributors), | ||
/** List Extensions. */ | ||
extensionListExtensions: this.requestFunctionFactory(descriptors.extensionListExtensions), | ||
/** Rotate the secret for an extension instance. */ | ||
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance), | ||
}; | ||
/** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */ | ||
@@ -493,3 +509,3 @@ file = { | ||
getFile: this.requestFunctionFactory(descriptors.fileGetFile), | ||
/** Get a File. */ | ||
/** Get a File with user-friendly url. */ | ||
getFileWithName: this.requestFunctionFactory(descriptors.fileGetFileWithName), | ||
@@ -496,0 +512,0 @@ }; |
@@ -1,2 +0,3 @@ | ||
export { assertStatus, assertOneOfStatus } from "@mittwald/api-client-commons"; | ||
export { assertStatus, assertOneOfStatus, extractTotalCountHeader, } from "@mittwald/api-client-commons"; | ||
export * as Commons from "@mittwald/api-client-commons"; | ||
export { MittwaldAPIClient as MittwaldAPIV2Client } from "./v2/default.js"; |
@@ -1,1 +0,1 @@ | ||
export const MittwaldAPIClientVersion = '0.0.0-development-04b7288-20240610'; | ||
export const MittwaldAPIClientVersion = '4.61.1'; |
@@ -1,3 +0,4 @@ | ||
export { assertStatus, assertOneOfStatus } from "@mittwald/api-client-commons"; | ||
export { assertStatus, assertOneOfStatus, extractTotalCountHeader, } from "@mittwald/api-client-commons"; | ||
export * as Commons from "@mittwald/api-client-commons"; | ||
export { MittwaldAPIClient as MittwaldAPIV2Client } from "./v2/default.js"; | ||
export type { MittwaldAPIV2 } from "./generated/v2/types.js"; |
@@ -1,1 +0,1 @@ | ||
export declare const MittwaldAPIClientVersion = '0.0.0-development-04b7288-20240610'; | ||
export declare const MittwaldAPIClientVersion = '4.61.1'; |
{ | ||
"name": "@mittwald/api-client", | ||
"version": "0.0.0-development-7c0a25b-20240611", | ||
"version": "0.0.0-development-e096ee7-20240924", | ||
"author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>", | ||
@@ -40,3 +40,3 @@ "type": "module", | ||
"build:fetch-openapi": "curl --location --fail --silent https://api.mittwald.de/v2/openapi.json > spec/openapi.json", | ||
"build:fetch-openapi-dev": "curl --location --fail --silent https://api-public.dev.mittwald.systems/v2/openapi.json > spec/openapi-dev.json", | ||
"build:fetch-openapi-dev": "curl --location --fail --silent https://developer.mittwald.de/specs/openapi-v2-dev.json > spec/openapi-dev.json", | ||
"build:write-version-file": "run tsx dev/writeVersion.ts", | ||
@@ -46,15 +46,16 @@ "format": "run prettier --write '**/*.{ts,tsx,yaml,yml,json,md,mdx,js}'", | ||
"test": "", | ||
"test:client-generation-clean": "git diff --exit-code" | ||
"test:client-generation-clean": "git diff --exit-code", | ||
"test:compile": "run tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@mittwald/api-client-commons": "^0.0.0-development-7c0a25b-20240611", | ||
"browser-or-node": "^3.0.0-pre.0" | ||
"@mittwald/api-client-commons": "^0.0.0-development-e096ee7-20240924", | ||
"browser-or-node": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@mittwald/api-code-generator": "^0.0.0-development-7c0a25b-20240611", | ||
"@mittwald/react-use-promise": "^2.3.12", | ||
"@types/node": "^20.11.25", | ||
"@types/react": "^18.2.64", | ||
"@typescript-eslint/eslint-plugin": "^7.1.1", | ||
"@typescript-eslint/parser": "^7.1.1", | ||
"@mittwald/api-code-generator": "^0.0.0-development-e096ee7-20240924", | ||
"@mittwald/react-use-promise": "^2.5.0", | ||
"@types/node": "^20.14.14", | ||
"@types/react": "^18.3.3", | ||
"@typescript-eslint/eslint-plugin": "^7.18.0", | ||
"@typescript-eslint/parser": "^7.18.0", | ||
"concurrently": "^8.2.2", | ||
@@ -64,13 +65,13 @@ "eslint": "^8.57.0", | ||
"eslint-plugin-json": "^3.1.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"has-flag": "^5.0.1", | ||
"prettier": "^3.2.5", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-jsdoc": "^1.3.0", | ||
"prettier-plugin-pkgsort": "^0.2.1", | ||
"prettier-plugin-sort-json": "^3.1.0", | ||
"react": "^18.2.0", | ||
"react": "^18.3.1", | ||
"read-pkg": "^9.0.1", | ||
"rimraf": "^5.0.5", | ||
"tsx": "^4.7.1", | ||
"typescript": "5.4.2" | ||
"rimraf": "^5.0.10", | ||
"tsx": "^4.16.5", | ||
"typescript": "5.5.4" | ||
}, | ||
@@ -85,3 +86,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "6e1f85a8f705547fa14be6279e7380b9fd7d4aa9" | ||
"gitHead": "e93211612e230da1167088de10ad01bde7ede483" | ||
} |
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2681635
51779
0