@mittwald/api-client 0.0.0-development-33eafdf-20260921 → 0.0.0-development-b9f710a-20260923

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 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. */
@@ -214,8 +216,6 @@ const buildMarketplaceApi = (baseClient) => ({
214
216
  extensionListScopes: new ApiCallAsyncResourceFactory(descriptors.extensionListScopes, baseClient.marketplace.extensionListScopes).getApiResource,
215
217
  /** Get payment method details */
216
218
  customerGetPaymentMethod: new ApiCallAsyncResourceFactory(descriptors.marketplaceCustomerGetPaymentMethod, baseClient.marketplace.customerGetPaymentMethod).getApiResource,
217
- /** Get a specific OAuth2 client. */
218
- contributorGetOauthClient: new ApiCallAsyncResourceFactory(descriptors.contributorGetOauthClient, baseClient.marketplace.contributorGetOauthClient).getApiResource,
219
219
  });
220
220
  const buildConversationApi = (baseClient) => ({
221
221
  /** Get all conversation the authenticated user has created or has access to. */
@@ -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. */
@@ -410,8 +412,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
410
412
  customerGetPaymentMethod: this.requestFunctionFactory(descriptors.marketplaceCustomerGetPaymentMethod),
411
413
  /** Get the link to update the marketplace payment method */
412
414
  customerUpdatePaymentMethod: this.requestFunctionFactory(descriptors.marketplaceCustomerUpdatePaymentMethod),
413
- /** Get a specific OAuth2 client. */
414
- contributorGetOauthClient: this.requestFunctionFactory(descriptors.contributorGetOauthClient),
415
415
  };
416
416
  /** The conversation API allows you to manage your support conversations. */
417
417
  conversation = {
@@ -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",
@@ -2962,9 +2968,3 @@ export const verificationVerifyCompany = {
2962
2968
  method: "POST",
2963
2969
  operationId: "verification-verify-company",
2964
2970
  };
2965
- /** Get a specific OAuth2 client. */
2966
- export const contributorGetOauthClient = {
2967
- path: "/v2/oauth2/clients/{oauthClientId}",
2968
- method: "GET",
2969
- operationId: "contributor-get-oauth-client",
2970
- };
@@ -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. */
@@ -214,8 +216,6 @@ const buildMarketplaceApi = (baseClient) => ({
214
216
  extensionListScopes: new ApiCallAsyncResourceFactory(descriptors.extensionListScopes, baseClient.marketplace.extensionListScopes).getApiResource,
215
217
  /** Get payment method details */
216
218
  customerGetPaymentMethod: new ApiCallAsyncResourceFactory(descriptors.marketplaceCustomerGetPaymentMethod, baseClient.marketplace.customerGetPaymentMethod).getApiResource,
217
- /** Get a specific OAuth2 client. */
218
- contributorGetOauthClient: new ApiCallAsyncResourceFactory(descriptors.contributorGetOauthClient, baseClient.marketplace.contributorGetOauthClient).getApiResource,
219
219
  });
220
220
  const buildConversationApi = (baseClient) => ({
221
221
  /** Get all conversation the authenticated user has created or has access to. */
@@ -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. */
@@ -410,8 +412,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
410
412
  customerGetPaymentMethod: this.requestFunctionFactory(descriptors.marketplaceCustomerGetPaymentMethod),
411
413
  /** Get the link to update the marketplace payment method */
412
414
  customerUpdatePaymentMethod: this.requestFunctionFactory(descriptors.marketplaceCustomerUpdatePaymentMethod),
413
- /** Get a specific OAuth2 client. */
414
- contributorGetOauthClient: this.requestFunctionFactory(descriptors.contributorGetOauthClient),
415
415
  };
416
416
  /** The conversation API allows you to manage your support conversations. */
417
417
  conversation = {
@@ -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",
@@ -2962,9 +2968,3 @@ export const verificationVerifyCompany = {
2962
2968
  method: "POST",
2963
2969
  operationId: "verification-verify-company",
2964
2970
  };
2965
- /** Get a specific OAuth2 client. */
2966
- export const contributorGetOauthClient = {
2967
- path: "/v3-next/oauth2/clients/{oauthClientId}",
2968
- method: "GET",
2969
- operationId: "contributor-get-oauth-client",
2970
- };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.466.0';
1
+ export const MittwaldAPIClientVersion = '4.468.0';