@mittwald/api-client 4.215.0 → 4.216.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 +2 -2
- package/dist/esm/generated/v2/client.js +10 -4
- package/dist/esm/generated/v2/descriptors.js +30 -12
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +12 -8
- package/dist/types/generated/v2/client.d.ts +342 -135
- package/dist/types/generated/v2/descriptors.d.ts +10 -4
- package/dist/types/generated/v2/types.d.ts +235 -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. */
|
|
@@ -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. */
|
|
@@ -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",
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.215.0';
|
|
@@ -858,6 +858,13 @@ declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
858
858
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.OrderCustomerOrder[]>;
|
|
859
859
|
};
|
|
860
860
|
declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
861
|
+
/** Get a Contributor. */
|
|
862
|
+
extensionGetContributor: (conf: {
|
|
863
|
+
contributorId: string;
|
|
864
|
+
headers?: {
|
|
865
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
866
|
+
} | undefined;
|
|
867
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("@mittwald/api-client-commons").Simplify<import("./types.js").MittwaldAPIV2.Paths.V2ContributorsContributorId.Get.Responses.$200.Content.ApplicationJson>>;
|
|
861
868
|
/** Get Contributor Billing Information. */
|
|
862
869
|
contributorGetBillingInformation: (conf: {
|
|
863
870
|
contributorId: string;
|
|
@@ -948,13 +955,6 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
948
955
|
totalNet: number;
|
|
949
956
|
webLink: string;
|
|
950
957
|
}[]>;
|
|
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
958
|
/** Request an Access Token for the Incoming Invoice file. */
|
|
959
959
|
contributorReceiptGetFileAccessToken: (conf: {
|
|
960
960
|
contributorId: string;
|
|
@@ -1067,7 +1067,9 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1067
1067
|
"x-access-token"?: string | undefined;
|
|
1068
1068
|
} | undefined;
|
|
1069
1069
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1070
|
+
context?: "project" | "customer";
|
|
1070
1071
|
extensionId?: string;
|
|
1072
|
+
referencedId?: string;
|
|
1071
1073
|
}[]>;
|
|
1072
1074
|
/** Get the Contract Strategy of an Extension Instance */
|
|
1073
1075
|
extensionGetExtensionInstanceContract: (conf: {
|
|
@@ -1152,7 +1154,9 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1152
1154
|
"x-access-token"?: string | undefined;
|
|
1153
1155
|
} | undefined;
|
|
1154
1156
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1157
|
+
context?: "project" | "customer";
|
|
1155
1158
|
extensionId?: string;
|
|
1159
|
+
referencedId?: string;
|
|
1156
1160
|
}[]>;
|
|
1157
1161
|
/** Get the public key to verify the webhook signature. */
|
|
1158
1162
|
extensionGetPublicKey: (conf: {
|
|
@@ -2243,7 +2247,7 @@ declare const buildLeadFyndrApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2243
2247
|
limit?: number | undefined;
|
|
2244
2248
|
skip?: number | undefined;
|
|
2245
2249
|
page?: number | undefined;
|
|
2246
|
-
sort?: "potential" | "relevance" | undefined;
|
|
2250
|
+
sort?: "potential" | "relevance" | "company" | undefined;
|
|
2247
2251
|
order?: "asc" | "desc" | undefined;
|
|
2248
2252
|
} | undefined;
|
|
2249
2253
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|