@mittwald/api-client 4.215.0 → 4.217.0
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/dist/esm/generated/v2/client-react.js +4 -2
- package/dist/esm/generated/v2/client.js +12 -4
- package/dist/esm/generated/v2/descriptors.js +36 -12
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +21 -8
- package/dist/types/generated/v2/client.d.ts +389 -135
- package/dist/types/generated/v2/descriptors.d.ts +12 -4
- package/dist/types/generated/v2/types.d.ts +279 -53
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -110,6 +110,8 @@ const buildContractApi = (baseClient) => ({
|
|
|
110
110
|
orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
|
|
111
111
|
});
|
|
112
112
|
const buildMarketplaceApi = (baseClient) => ({
|
|
113
|
+
/** Get a Contributor. */
|
|
114
|
+
extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
|
|
113
115
|
/** Get Contributor Billing Information. */
|
|
114
116
|
contributorGetBillingInformation: new ApiCallAsyncResourceFactory(descriptors.contributorGetBillingInformation, baseClient.marketplace.contributorGetBillingInformation).getApiResource,
|
|
115
117
|
/** Get the Stripe Billing Portal Link for a Customer */
|
|
@@ -122,8 +124,6 @@ const buildMarketplaceApi = (baseClient) => ({
|
|
|
122
124
|
contributorListIncomingInvoices: new ApiCallAsyncResourceFactory(descriptors.contributorListIncomingInvoices, baseClient.marketplace.contributorListIncomingInvoices).getApiResource,
|
|
123
125
|
/** List all invoices on behalf of a contributor. */
|
|
124
126
|
contributorListOnbehalfInvoices: new ApiCallAsyncResourceFactory(descriptors.contributorListOnbehalfInvoices, baseClient.marketplace.contributorListOnbehalfInvoices).getApiResource,
|
|
125
|
-
/** Get a Contributor. */
|
|
126
|
-
extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
|
|
127
127
|
/** Request an Access Token for the Incoming Invoice file. */
|
|
128
128
|
contributorReceiptGetFileAccessToken: new ApiCallAsyncResourceFactory(descriptors.contributorReceiptGetFileAccessToken, baseClient.marketplace.contributorReceiptGetFileAccessToken).getApiResource,
|
|
129
129
|
/** List ExtensionInstances. */
|
|
@@ -236,6 +236,8 @@ const buildDomainApi = (baseClient) => ({
|
|
|
236
236
|
listDomains: new ApiCallAsyncResourceFactory(descriptors.domainListDomains, baseClient.domain.listDomains).getApiResource,
|
|
237
237
|
/** Get a DNSZone. */
|
|
238
238
|
dnsGetDnsZone: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZone, baseClient.domain.dnsGetDnsZone).getApiResource,
|
|
239
|
+
/** Get a zone file for a DNSZone. */
|
|
240
|
+
dnsGetZoneFile: new ApiCallAsyncResourceFactory(descriptors.dnsGetZoneFile, baseClient.domain.dnsGetZoneFile).getApiResource,
|
|
239
241
|
/** List DNSZones belonging to a Project. */
|
|
240
242
|
dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
|
|
241
243
|
/** Get a Domain. */
|
|
@@ -199,6 +199,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
199
199
|
};
|
|
200
200
|
/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
|
|
201
201
|
marketplace = {
|
|
202
|
+
/** Get a Contributor. */
|
|
203
|
+
extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor),
|
|
204
|
+
/** Delete a Contributor. */
|
|
205
|
+
contributorDeleteContributor: this.requestFunctionFactory(descriptors.contributorDeleteContributor),
|
|
206
|
+
/** Patch Contributor. */
|
|
207
|
+
contributorPatchContributor: this.requestFunctionFactory(descriptors.contributorPatchContributor),
|
|
202
208
|
/** Express interest to be a contributor. */
|
|
203
209
|
contributorExpressInterestToContribute: this.requestFunctionFactory(descriptors.contributorExpressInterestToContribute),
|
|
204
210
|
/** Get Contributor Billing Information. */
|
|
@@ -215,12 +221,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
215
221
|
contributorListIncomingInvoices: this.requestFunctionFactory(descriptors.contributorListIncomingInvoices),
|
|
216
222
|
/** List all invoices on behalf of a contributor. */
|
|
217
223
|
contributorListOnbehalfInvoices: this.requestFunctionFactory(descriptors.contributorListOnbehalfInvoices),
|
|
218
|
-
/** Get a Contributor. */
|
|
219
|
-
extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor),
|
|
220
|
-
/** Patch Contributor. */
|
|
221
|
-
contributorPatchContributor: this.requestFunctionFactory(descriptors.contributorPatchContributor),
|
|
222
224
|
/** Request an Access Token for the Incoming Invoice file. */
|
|
223
225
|
contributorReceiptGetFileAccessToken: this.requestFunctionFactory(descriptors.contributorReceiptGetFileAccessToken),
|
|
226
|
+
/** Add a deviating avatar to a Contributor. */
|
|
227
|
+
contributorRequestDeviatingContributorAvatarUpload: this.requestFunctionFactory(descriptors.contributorRequestDeviatingContributorAvatarUpload),
|
|
228
|
+
/** Delete deviating contributor avatar und return to the inherited customer avatar. */
|
|
229
|
+
contributorResetContributorAvatar: this.requestFunctionFactory(descriptors.contributorResetContributorAvatar),
|
|
224
230
|
/** Rotate the secret for an extension instance. */
|
|
225
231
|
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance),
|
|
226
232
|
/** Authenticate your external application using the extensionInstanceSecret. */
|
|
@@ -486,6 +492,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
486
492
|
dnsGetDnsZone: this.requestFunctionFactory(descriptors.dnsGetDnsZone),
|
|
487
493
|
/** Delete a DNSZone. */
|
|
488
494
|
dnsDeleteDnsZone: this.requestFunctionFactory(descriptors.dnsDeleteDnsZone),
|
|
495
|
+
/** Get a zone file for a DNSZone. */
|
|
496
|
+
dnsGetZoneFile: this.requestFunctionFactory(descriptors.dnsGetZoneFile),
|
|
489
497
|
/** List DNSZones belonging to a Project. */
|
|
490
498
|
dnsListDnsZones: this.requestFunctionFactory(descriptors.dnsListDnsZones),
|
|
491
499
|
/** Set a record set on a DNSZone to managed. */
|
|
@@ -454,6 +454,24 @@ export const contractListContracts = {
|
|
|
454
454
|
method: "GET",
|
|
455
455
|
operationId: "contract-list-contracts",
|
|
456
456
|
};
|
|
457
|
+
/** Get a Contributor. */
|
|
458
|
+
export const extensionGetContributor = {
|
|
459
|
+
path: "/v2/contributors/{contributorId}",
|
|
460
|
+
method: "GET",
|
|
461
|
+
operationId: "extension-get-contributor",
|
|
462
|
+
};
|
|
463
|
+
/** Delete a Contributor. */
|
|
464
|
+
export const contributorDeleteContributor = {
|
|
465
|
+
path: "/v2/contributors/{contributorId}",
|
|
466
|
+
method: "DELETE",
|
|
467
|
+
operationId: "contributor-delete-contributor",
|
|
468
|
+
};
|
|
469
|
+
/** Patch Contributor. */
|
|
470
|
+
export const contributorPatchContributor = {
|
|
471
|
+
path: "/v2/contributors/{contributorId}",
|
|
472
|
+
method: "PATCH",
|
|
473
|
+
operationId: "contributor-patch-contributor",
|
|
474
|
+
};
|
|
457
475
|
/** Express interest to be a contributor. */
|
|
458
476
|
export const contributorExpressInterestToContribute = {
|
|
459
477
|
path: "/v2/customers/{customerId}/contributor",
|
|
@@ -502,24 +520,24 @@ export const contributorListOnbehalfInvoices = {
|
|
|
502
520
|
method: "GET",
|
|
503
521
|
operationId: "contributor-list-onbehalf-invoices",
|
|
504
522
|
};
|
|
505
|
-
/** Get a Contributor. */
|
|
506
|
-
export const extensionGetContributor = {
|
|
507
|
-
path: "/v2/contributors/{contributorId}",
|
|
508
|
-
method: "GET",
|
|
509
|
-
operationId: "extension-get-contributor",
|
|
510
|
-
};
|
|
511
|
-
/** Patch Contributor. */
|
|
512
|
-
export const contributorPatchContributor = {
|
|
513
|
-
path: "/v2/contributors/{contributorId}",
|
|
514
|
-
method: "PATCH",
|
|
515
|
-
operationId: "contributor-patch-contributor",
|
|
516
|
-
};
|
|
517
523
|
/** Request an Access Token for the Incoming Invoice file. */
|
|
518
524
|
export const contributorReceiptGetFileAccessToken = {
|
|
519
525
|
path: "/v2/contributors/{contributorId}/invoices/incoming/{contributorReceiptId}/file-access-token",
|
|
520
526
|
method: "GET",
|
|
521
527
|
operationId: "contributor-receipt-get-file-access-token",
|
|
522
528
|
};
|
|
529
|
+
/** Add a deviating avatar to a Contributor. */
|
|
530
|
+
export const contributorRequestDeviatingContributorAvatarUpload = {
|
|
531
|
+
path: "/v2/contributors/{contributorId}/avatar",
|
|
532
|
+
method: "POST",
|
|
533
|
+
operationId: "contributor-request-deviating-contributor-avatar-upload",
|
|
534
|
+
};
|
|
535
|
+
/** Delete deviating contributor avatar und return to the inherited customer avatar. */
|
|
536
|
+
export const contributorResetContributorAvatar = {
|
|
537
|
+
path: "/v2/contributors/{contributorId}/avatar",
|
|
538
|
+
method: "DELETE",
|
|
539
|
+
operationId: "contributor-reset-contributor-avatar",
|
|
540
|
+
};
|
|
523
541
|
/** Rotate the secret for an extension instance. */
|
|
524
542
|
export const contributorRotateSecretForExtensionInstance = {
|
|
525
543
|
path: "/v2/contributors/{contributorId}/extensions/{extensionId}/extension-instances/{extensionInstanceId}/secret",
|
|
@@ -1048,6 +1066,12 @@ export const dnsDeleteDnsZone = {
|
|
|
1048
1066
|
method: "DELETE",
|
|
1049
1067
|
operationId: "dns-delete-dns-zone",
|
|
1050
1068
|
};
|
|
1069
|
+
/** Get a zone file for a DNSZone. */
|
|
1070
|
+
export const dnsGetZoneFile = {
|
|
1071
|
+
path: "/v2/dns-zones/{dnsZoneId}/zone-file",
|
|
1072
|
+
method: "GET",
|
|
1073
|
+
operationId: "dns-get-zone-file",
|
|
1074
|
+
};
|
|
1051
1075
|
/** List DNSZones belonging to a Project. */
|
|
1052
1076
|
export const dnsListDnsZones = {
|
|
1053
1077
|
path: "/v2/projects/{projectId}/dns-zones",
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.216.0';
|
|
@@ -777,6 +777,7 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
777
777
|
queryParameters?: {
|
|
778
778
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
779
779
|
invoiceTypes?: ("REGULAR" | "REISSUE" | "CORRECTION" | "CANCELLATION")[] | undefined;
|
|
780
|
+
status?: ("CONFIRMED" | "PAID" | "PARTIALLY_PAID" | "OVERPAID")[] | undefined;
|
|
780
781
|
search?: string | undefined;
|
|
781
782
|
limit?: number | undefined;
|
|
782
783
|
skip?: number | undefined;
|
|
@@ -858,6 +859,13 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
858
859
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
|
|
859
860
|
};
|
|
860
861
|
declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
862
|
+
/** Get a Contributor. */
|
|
863
|
+
extensionGetContributor: (conf: {
|
|
864
|
+
contributorId: string;
|
|
865
|
+
headers?: {
|
|
866
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("@mittwald/api-client-commons").Simplify<import("./types.js").MittwaldAPIV2.Paths.V2ContributorsContributorId.Get.Responses.$200.Content.ApplicationJson>>;
|
|
861
869
|
/** Get Contributor Billing Information. */
|
|
862
870
|
contributorGetBillingInformation: (conf: {
|
|
863
871
|
contributorId: string;
|
|
@@ -948,13 +956,6 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
948
956
|
totalNet: number;
|
|
949
957
|
webLink: string;
|
|
950
958
|
}[]>;
|
|
951
|
-
/** Get a Contributor. */
|
|
952
|
-
extensionGetContributor: (conf: {
|
|
953
|
-
contributorId: string;
|
|
954
|
-
headers?: {
|
|
955
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
956
|
-
} | undefined;
|
|
957
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("@mittwald/api-client-commons").Simplify<import("./types.js").MittwaldAPIV2.Paths.V2ContributorsContributorId.Get.Responses.$200.Content.ApplicationJson>>;
|
|
958
959
|
/** Request an Access Token for the Incoming Invoice file. */
|
|
959
960
|
contributorReceiptGetFileAccessToken: (conf: {
|
|
960
961
|
contributorId: string;
|
|
@@ -1067,7 +1068,9 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1067
1068
|
"x-access-token"?: string | undefined;
|
|
1068
1069
|
} | undefined;
|
|
1069
1070
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1071
|
+
context?: "project" | "customer";
|
|
1070
1072
|
extensionId?: string;
|
|
1073
|
+
referencedId?: string;
|
|
1071
1074
|
}[]>;
|
|
1072
1075
|
/** Get the Contract Strategy of an Extension Instance */
|
|
1073
1076
|
extensionGetExtensionInstanceContract: (conf: {
|
|
@@ -1152,7 +1155,9 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1152
1155
|
"x-access-token"?: string | undefined;
|
|
1153
1156
|
} | undefined;
|
|
1154
1157
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1158
|
+
context?: "project" | "customer";
|
|
1155
1159
|
extensionId?: string;
|
|
1160
|
+
referencedId?: string;
|
|
1156
1161
|
}[]>;
|
|
1157
1162
|
/** Get the public key to verify the webhook signature. */
|
|
1158
1163
|
extensionGetPublicKey: (conf: {
|
|
@@ -1775,6 +1780,14 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1775
1780
|
txt: import("./types.js").MittwaldAPIV2.Components.Schemas.DnsRecordTXT;
|
|
1776
1781
|
};
|
|
1777
1782
|
}>;
|
|
1783
|
+
/** Get a zone file for a DNSZone. */
|
|
1784
|
+
dnsGetZoneFile: (conf: {
|
|
1785
|
+
dnsZoneId: string;
|
|
1786
|
+
headers?: {
|
|
1787
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1788
|
+
"x-access-token"?: string | undefined;
|
|
1789
|
+
} | undefined;
|
|
1790
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<string>;
|
|
1778
1791
|
/** List DNSZones belonging to a Project. */
|
|
1779
1792
|
dnsListDnsZones: (conf: {
|
|
1780
1793
|
projectId: string;
|
|
@@ -2243,7 +2256,7 @@ declare const buildLeadFyndrApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2243
2256
|
limit?: number | undefined;
|
|
2244
2257
|
skip?: number | undefined;
|
|
2245
2258
|
page?: number | undefined;
|
|
2246
|
-
sort?: "potential" | "relevance" | undefined;
|
|
2259
|
+
sort?: "potential" | "relevance" | "company" | undefined;
|
|
2247
2260
|
order?: "asc" | "desc" | undefined;
|
|
2248
2261
|
} | undefined;
|
|
2249
2262
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|