@mittwald/api-client 0.0.0-development-8265ff2-20260918 → 0.0.0-development-17fadec-20260922
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 +23 -0
- package/dist/esm/generated/v2/client-react.js +2 -0
- package/dist/esm/generated/v2/client.js +2 -0
- package/dist/esm/generated/v2/descriptors.js +6 -0
- package/dist/esm/generated/v3-next/client-react.js +2 -0
- package/dist/esm/generated/v3-next/client.js +2 -0
- package/dist/esm/generated/v3-next/descriptors.js +6 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +356 -344
- package/dist/types/generated/v2/client.d.ts +2784 -2717
- package/dist/types/generated/v2/descriptors.d.ts +2 -0
- package/dist/types/generated/v2/types.d.ts +206 -39
- package/dist/types/generated/v3-next/client-react.d.ts +356 -344
- package/dist/types/generated/v3-next/client.d.ts +2784 -2717
- package/dist/types/generated/v3-next/descriptors.d.ts +2 -0
- package/dist/types/generated/v3-next/types.d.ts +206 -39
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ see the [LICENSE](../../LICENSE) file for details.
|
|
|
18
18
|
- [Setting request parameters](#setting-request-parameters)
|
|
19
19
|
- [Path parameters](#path-parameters)
|
|
20
20
|
- [Headers, query parameters and request body](#headers-query-parameters-and-request-body)
|
|
21
|
+
- [Date and time values](#date-and-time-values)
|
|
21
22
|
- [Example](#example)
|
|
22
23
|
- [Usage in React](#usage-in-react)
|
|
23
24
|
- [Installation](#installation)
|
|
@@ -151,6 +152,28 @@ const response = await mittwaldApi.category.operation({
|
|
|
151
152
|
});
|
|
152
153
|
```
|
|
153
154
|
|
|
155
|
+
#### Date and time values
|
|
156
|
+
|
|
157
|
+
Wherever the API expects a date and time (an ISO 8601 string in the API
|
|
158
|
+
documentation), you can either pass that string yourself or simply pass a
|
|
159
|
+
JavaScript `Date`. `Date` values are converted to ISO 8601 before the request is
|
|
160
|
+
sent – in the request body (at any nesting depth), in query parameters, path
|
|
161
|
+
parameters and headers.
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
await mittwaldApi.contract.terminateContractItem({
|
|
165
|
+
contractId: "contract-id",
|
|
166
|
+
contractItemId: "contract-item-id",
|
|
167
|
+
data: {
|
|
168
|
+
terminationTargetDate: new Date("2024-12-10"),
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Note that this applies to `date-time` values only. Date-only values
|
|
174
|
+
(`YYYY-MM-DD`) still have to be passed as a string, and responses always contain
|
|
175
|
+
strings, never `Date` objects.
|
|
176
|
+
|
|
154
177
|
## Example
|
|
155
178
|
|
|
156
179
|
```typescript
|
|
@@ -172,6 +172,8 @@ const buildMarketplaceApi = (baseClient) => ({
|
|
|
172
172
|
contributorGetCustomerBillingPortalLink: new ApiCallAsyncResourceFactory(descriptors.contributorGetCustomerBillingPortalLink, baseClient.marketplace.contributorGetCustomerBillingPortalLink).getApiResource,
|
|
173
173
|
/** Get the Stripe Dashboard Link for a Contributor. */
|
|
174
174
|
contributorGetLoginLink: new ApiCallAsyncResourceFactory(descriptors.contributorGetLoginLink, baseClient.marketplace.contributorGetLoginLink).getApiResource,
|
|
175
|
+
/** Get a specific OAuth2 client. */
|
|
176
|
+
contributorGetOauthClient: new ApiCallAsyncResourceFactory(descriptors.contributorGetOauthClient, baseClient.marketplace.contributorGetOauthClient).getApiResource,
|
|
175
177
|
/** List ContractPartners of the contributor. */
|
|
176
178
|
contributorListContractPartnersOfContributor: new ApiCallAsyncResourceFactory(descriptors.contributorListContractPartnersOfContributor, baseClient.marketplace.contributorListContractPartnersOfContributor).getApiResource,
|
|
177
179
|
/** List incoming Invoices of a Contributor. */
|
|
@@ -298,6 +298,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
298
298
|
contributorGetCustomerBillingPortalLink: this.requestFunctionFactory(descriptors.contributorGetCustomerBillingPortalLink),
|
|
299
299
|
/** Get the Stripe Dashboard Link for a Contributor. */
|
|
300
300
|
contributorGetLoginLink: this.requestFunctionFactory(descriptors.contributorGetLoginLink),
|
|
301
|
+
/** Get a specific OAuth2 client. */
|
|
302
|
+
contributorGetOauthClient: this.requestFunctionFactory(descriptors.contributorGetOauthClient),
|
|
301
303
|
/** List ContractPartners of the contributor. */
|
|
302
304
|
contributorListContractPartnersOfContributor: this.requestFunctionFactory(descriptors.contributorListContractPartnersOfContributor),
|
|
303
305
|
/** List incoming Invoices of a Contributor. */
|
|
@@ -742,6 +742,12 @@ export const contributorGetLoginLink = {
|
|
|
742
742
|
method: "GET",
|
|
743
743
|
operationId: "contributor-get-login-link",
|
|
744
744
|
};
|
|
745
|
+
/** Get a specific OAuth2 client. */
|
|
746
|
+
export const contributorGetOauthClient = {
|
|
747
|
+
path: "/v2/oauth2/clients/{oauthClientId}",
|
|
748
|
+
method: "GET",
|
|
749
|
+
operationId: "contributor-get-oauth-client",
|
|
750
|
+
};
|
|
745
751
|
/** List ContractPartners of the contributor. */
|
|
746
752
|
export const contributorListContractPartnersOfContributor = {
|
|
747
753
|
path: "/v2/contributors/{contributorId}/contract-partners",
|
|
@@ -172,6 +172,8 @@ const buildMarketplaceApi = (baseClient) => ({
|
|
|
172
172
|
contributorGetCustomerBillingPortalLink: new ApiCallAsyncResourceFactory(descriptors.contributorGetCustomerBillingPortalLink, baseClient.marketplace.contributorGetCustomerBillingPortalLink).getApiResource,
|
|
173
173
|
/** Get the Stripe Dashboard Link for a Contributor. */
|
|
174
174
|
contributorGetLoginLink: new ApiCallAsyncResourceFactory(descriptors.contributorGetLoginLink, baseClient.marketplace.contributorGetLoginLink).getApiResource,
|
|
175
|
+
/** Get a specific OAuth2 client. */
|
|
176
|
+
contributorGetOauthClient: new ApiCallAsyncResourceFactory(descriptors.contributorGetOauthClient, baseClient.marketplace.contributorGetOauthClient).getApiResource,
|
|
175
177
|
/** List ContractPartners of the contributor. */
|
|
176
178
|
contributorListContractPartnersOfContributor: new ApiCallAsyncResourceFactory(descriptors.contributorListContractPartnersOfContributor, baseClient.marketplace.contributorListContractPartnersOfContributor).getApiResource,
|
|
177
179
|
/** List incoming Invoices of a Contributor. */
|
|
@@ -298,6 +298,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
298
298
|
contributorGetCustomerBillingPortalLink: this.requestFunctionFactory(descriptors.contributorGetCustomerBillingPortalLink),
|
|
299
299
|
/** Get the Stripe Dashboard Link for a Contributor. */
|
|
300
300
|
contributorGetLoginLink: this.requestFunctionFactory(descriptors.contributorGetLoginLink),
|
|
301
|
+
/** Get a specific OAuth2 client. */
|
|
302
|
+
contributorGetOauthClient: this.requestFunctionFactory(descriptors.contributorGetOauthClient),
|
|
301
303
|
/** List ContractPartners of the contributor. */
|
|
302
304
|
contributorListContractPartnersOfContributor: this.requestFunctionFactory(descriptors.contributorListContractPartnersOfContributor),
|
|
303
305
|
/** List incoming Invoices of a Contributor. */
|
|
@@ -742,6 +742,12 @@ export const contributorGetLoginLink = {
|
|
|
742
742
|
method: "GET",
|
|
743
743
|
operationId: "contributor-get-login-link",
|
|
744
744
|
};
|
|
745
|
+
/** Get a specific OAuth2 client. */
|
|
746
|
+
export const contributorGetOauthClient = {
|
|
747
|
+
path: "/v3-next/oauth2/clients/{oauthClientId}",
|
|
748
|
+
method: "GET",
|
|
749
|
+
operationId: "contributor-get-oauth-client",
|
|
750
|
+
};
|
|
745
751
|
/** List ContractPartners of the contributor. */
|
|
746
752
|
export const contributorListContractPartnersOfContributor = {
|
|
747
753
|
path: "/v3-next/contributors/{contributorId}/contract-partners",
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.467.0';
|