@mittwald/api-client 0.0.0-development-e096ee7-20240924 → 0.0.0-development-6c87013-20250624

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.
@@ -107,6 +107,48 @@ const buildContractApi = (baseClient) => ({
107
107
  /** Get list of Orders of a Project. */
108
108
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
109
109
  });
110
+ const buildMarketplaceApi = (baseClient) => ({
111
+ /** Get Contributor Billing Information. */
112
+ contributorGetBillingInformation: new ApiCallAsyncResourceFactory(descriptors.contributorGetBillingInformation, baseClient.marketplace.contributorGetBillingInformation).getApiResource,
113
+ /** Get the Stripe Billing Portal Link for a Customer */
114
+ contributorGetCustomerBillingPortalLink: new ApiCallAsyncResourceFactory(descriptors.contributorGetCustomerBillingPortalLink, baseClient.marketplace.contributorGetCustomerBillingPortalLink).getApiResource,
115
+ /** Get the Stripe Dashboard Link for a Contributor. */
116
+ contributorGetLoginLink: new ApiCallAsyncResourceFactory(descriptors.contributorGetLoginLink, baseClient.marketplace.contributorGetLoginLink).getApiResource,
117
+ /** List incoming Invoices of a Contributor. */
118
+ contributorListIncomingInvoices: new ApiCallAsyncResourceFactory(descriptors.contributorListIncomingInvoices, baseClient.marketplace.contributorListIncomingInvoices).getApiResource,
119
+ /** List all invoices on behalf of a contributor. */
120
+ contributorListOnbehalfInvoices: new ApiCallAsyncResourceFactory(descriptors.contributorListOnbehalfInvoices, baseClient.marketplace.contributorListOnbehalfInvoices).getApiResource,
121
+ /** Request an Access Token for the Incoming Invoice file. */
122
+ contributorReceiptGetFileAccessToken: new ApiCallAsyncResourceFactory(descriptors.contributorReceiptGetFileAccessToken, baseClient.marketplace.contributorReceiptGetFileAccessToken).getApiResource,
123
+ /** List ExtensionInstances. */
124
+ extensionListExtensionInstances: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensionInstances, baseClient.marketplace.extensionListExtensionInstances).getApiResource,
125
+ /** Get an ExtensionInstance. */
126
+ extensionGetExtensionInstance: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstance, baseClient.marketplace.extensionGetExtensionInstance).getApiResource,
127
+ /** Get Extension of own contributor. */
128
+ extensionGetOwnExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetOwnExtension, baseClient.marketplace.extensionGetOwnExtension).getApiResource,
129
+ /** Get a Contributor. */
130
+ extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
131
+ /** Get the Contract Strategy of an Extension Instance */
132
+ extensionGetExtensionInstanceContract: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstanceContract, baseClient.marketplace.extensionGetExtensionInstanceContract).getApiResource,
133
+ /** Get the ExtensionInstance of a specific customer and extension, if existing. */
134
+ extensionGetExtensionInstanceForCustomer: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstanceForCustomer, baseClient.marketplace.extensionGetExtensionInstanceForCustomer).getApiResource,
135
+ /** Get the ExtensionInstance of a specific project and extension, if existing. */
136
+ extensionGetExtensionInstanceForProject: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstanceForProject, baseClient.marketplace.extensionGetExtensionInstanceForProject).getApiResource,
137
+ /** Get an Extension. */
138
+ extensionGetExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtension, baseClient.marketplace.extensionGetExtension).getApiResource,
139
+ /** Get the public key to verify the webhook signature. */
140
+ extensionGetPublicKey: new ApiCallAsyncResourceFactory(descriptors.extensionGetPublicKey, baseClient.marketplace.extensionGetPublicKey).getApiResource,
141
+ /** List Contributors. */
142
+ extensionListContributors: new ApiCallAsyncResourceFactory(descriptors.extensionListContributors, baseClient.marketplace.extensionListContributors).getApiResource,
143
+ /** List Extensions. */
144
+ extensionListExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensions, baseClient.marketplace.extensionListExtensions).getApiResource,
145
+ /** List Extensions of own contributor. */
146
+ extensionListOwnExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListOwnExtensions, baseClient.marketplace.extensionListOwnExtensions).getApiResource,
147
+ /** List Scopes. */
148
+ extensionListScopes: new ApiCallAsyncResourceFactory(descriptors.extensionListScopes, baseClient.marketplace.extensionListScopes).getApiResource,
149
+ /** Get payment method details */
150
+ customerGetPaymentMethod: new ApiCallAsyncResourceFactory(descriptors.marketplaceCustomerGetPaymentMethod, baseClient.marketplace.customerGetPaymentMethod).getApiResource,
151
+ });
110
152
  const buildConversationApi = (baseClient) => ({
111
153
  /** Get all conversation the authenticated user has created or has access to. */
112
154
  listConversations: new ApiCallAsyncResourceFactory(descriptors.conversationListConversations, baseClient.conversation.listConversations).getApiResource,
@@ -136,8 +178,12 @@ const buildCronjobApi = (baseClient) => ({
136
178
  getExecution: new ApiCallAsyncResourceFactory(descriptors.cronjobGetExecution, baseClient.cronjob.getExecution).getApiResource,
137
179
  });
138
180
  const buildCustomerApi = (baseClient) => ({
181
+ /** List Invites belonging to a Customer. */
182
+ listInvitesForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
139
183
  /** Get all customer profiles the authenticated user has access to. */
140
184
  listCustomers: new ApiCallAsyncResourceFactory(descriptors.customerListCustomers, baseClient.customer.listCustomers).getApiResource,
185
+ /** Gets the Wallet of the Customer. */
186
+ getWallet: new ApiCallAsyncResourceFactory(descriptors.customerGetWallet, baseClient.customer.getWallet).getApiResource,
141
187
  /** Get a CustomerInvite. */
142
188
  getCustomerInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerInvite, baseClient.customer.getCustomerInvite).getApiResource,
143
189
  /** Get a CustomerMembership. */
@@ -146,14 +192,16 @@ const buildCustomerApi = (baseClient) => ({
146
192
  getCustomer: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomer, baseClient.customer.getCustomer).getApiResource,
147
193
  /** Get a CustomerInvite by token. */
148
194
  getCustomerTokenInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerTokenInvite, baseClient.customer.getCustomerTokenInvite).getApiResource,
195
+ /** Get your LeadFyndr request. */
196
+ getLeadFyndrProfileRequest: new ApiCallAsyncResourceFactory(descriptors.customerGetLeadFyndrProfileRequest, baseClient.customer.getLeadFyndrProfileRequest).getApiResource,
197
+ /** Get your LeadFyndr profile. */
198
+ getLeadFyndrProfile: new ApiCallAsyncResourceFactory(descriptors.customerGetLeadFyndrProfile, baseClient.customer.getLeadFyndrProfile).getApiResource,
149
199
  /** Check if the customer profile has a valid contract partner configured. */
150
200
  isCustomerLegallyCompetent: new ApiCallAsyncResourceFactory(descriptors.customerIsCustomerLegallyCompetent, baseClient.customer.isCustomerLegallyCompetent).getApiResource,
151
201
  /** List CustomerInvites belonging to the executing user. */
152
202
  listCustomerInvites: new ApiCallAsyncResourceFactory(descriptors.customerListCustomerInvites, baseClient.customer.listCustomerInvites).getApiResource,
153
203
  /** List CustomerMemberships belonging to the executing user. */
154
204
  listCustomerMemberships: new ApiCallAsyncResourceFactory(descriptors.customerListCustomerMemberships, baseClient.customer.listCustomerMemberships).getApiResource,
155
- /** List Invites belonging to a Customer. */
156
- listInvitesForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
157
205
  /** List Memberships belonging to a Customer. */
158
206
  listMembershipsForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListMembershipsForCustomer, baseClient.customer.listMembershipsForCustomer).getApiResource,
159
207
  });
@@ -180,12 +228,12 @@ const buildDatabaseApi = (baseClient) => ({
180
228
  listRedisVersions: new ApiCallAsyncResourceFactory(descriptors.databaseListRedisVersions, baseClient.database.listRedisVersions).getApiResource,
181
229
  });
182
230
  const buildDomainApi = (baseClient) => ({
231
+ /** List Domains */
232
+ listDomains: new ApiCallAsyncResourceFactory(descriptors.domainListDomains, baseClient.domain.listDomains).getApiResource,
183
233
  /** Get a DNSZone. */
184
234
  dnsGetDnsZone: new ApiCallAsyncResourceFactory(descriptors.dnsGetDnsZone, baseClient.domain.dnsGetDnsZone).getApiResource,
185
235
  /** List DNSZones belonging to a Project. */
186
236
  dnsListDnsZones: new ApiCallAsyncResourceFactory(descriptors.dnsListDnsZones, baseClient.domain.dnsListDnsZones).getApiResource,
187
- /** List Domains */
188
- listDomains: new ApiCallAsyncResourceFactory(descriptors.domainListDomains, baseClient.domain.listDomains).getApiResource,
189
237
  /** Get a Domain. */
190
238
  getDomain: new ApiCallAsyncResourceFactory(descriptors.domainGetDomain, baseClient.domain.getDomain).getApiResource,
191
239
  /** Get the latest screenshot's FileReference belonging to a Domain. */
@@ -209,22 +257,6 @@ const buildDomainApi = (baseClient) => ({
209
257
  /** List Certificates belonging to a Project or an Ingress. */
210
258
  sslListCertificates: new ApiCallAsyncResourceFactory(descriptors.sslListCertificates, baseClient.domain.sslListCertificates).getApiResource,
211
259
  });
212
- const buildMarketplaceApi = (baseClient) => ({
213
- /** List ExtensionInstances. */
214
- extensionListExtensionInstances: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensionInstances, baseClient.marketplace.extensionListExtensionInstances).getApiResource,
215
- /** Get an ExtensionInstance. */
216
- extensionGetExtensionInstance: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstance, baseClient.marketplace.extensionGetExtensionInstance).getApiResource,
217
- /** Get a Contributor. */
218
- extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
219
- /** Get an Extension. */
220
- extensionGetExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtension, baseClient.marketplace.extensionGetExtension).getApiResource,
221
- /** Get the public key to verify the webhook signature. */
222
- extensionGetPublicKey: new ApiCallAsyncResourceFactory(descriptors.extensionGetPublicKey, baseClient.marketplace.extensionGetPublicKey).getApiResource,
223
- /** List Contributors. */
224
- extensionListContributors: new ApiCallAsyncResourceFactory(descriptors.extensionListContributors, baseClient.marketplace.extensionListContributors).getApiResource,
225
- /** List Extensions. */
226
- extensionListExtensions: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensions, baseClient.marketplace.extensionListExtensions).getApiResource,
227
- });
228
260
  const buildFileApi = (baseClient) => ({
229
261
  /** Get a File's meta. */
230
262
  getFileMeta: new ApiCallAsyncResourceFactory(descriptors.fileGetFileMeta, baseClient.file.getFileMeta).getApiResource,
@@ -294,6 +326,10 @@ const buildProjectApi = (baseClient) => ({
294
326
  listProjects: new ApiCallAsyncResourceFactory(descriptors.projectListProjects, baseClient.project.listProjects).getApiResource,
295
327
  /** List Servers belonging to the executing user. */
296
328
  listServers: new ApiCallAsyncResourceFactory(descriptors.projectListServers, baseClient.project.listServers).getApiResource,
329
+ /** Get storage space Statistics belonging to a Project. */
330
+ storagespaceGetProjectStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetProjectStatistics, baseClient.project.storagespaceGetProjectStatistics).getApiResource,
331
+ /** Get storage space Statistics belonging to a Server. */
332
+ storagespaceGetServerStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetServerStatistics, baseClient.project.storagespaceGetServerStatistics).getApiResource,
297
333
  });
298
334
  const buildProjectFileSystemApi = (baseClient) => ({
299
335
  /** List directories belonging to a Project. */
@@ -330,8 +366,6 @@ const buildUserApi = (baseClient) => ({
330
366
  getApiToken: new ApiCallAsyncResourceFactory(descriptors.userGetApiToken, baseClient.user.getApiToken).getApiResource,
331
367
  /** Get a specific stored ssh-key. */
332
368
  getSshKey: new ApiCallAsyncResourceFactory(descriptors.userGetSshKey, baseClient.user.getSshKey).getApiResource,
333
- /** Get your account information. */
334
- getOwnAccount: new ApiCallAsyncResourceFactory(descriptors.userGetOwnAccount, baseClient.user.getOwnAccount).getApiResource,
335
369
  /** The timestamp of your latest password change. */
336
370
  getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
337
371
  /** Get personalized settings. */
@@ -362,6 +396,8 @@ export class MittwaldAPIV2ClientReact {
362
396
  container;
363
397
  /** The contract API allows you to manage your contracts and orders */
364
398
  contract;
399
+ /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
400
+ marketplace;
365
401
  /** The conversation API allows you to manage your support conversations. */
366
402
  conversation;
367
403
  /** The cronjob API allows you to manage cronjobs within a project. */
@@ -372,8 +408,6 @@ export class MittwaldAPIV2ClientReact {
372
408
  database;
373
409
  /** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */
374
410
  domain;
375
- /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
376
- marketplace;
377
411
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
378
412
  file;
379
413
  /** The mail API allows you to manage your mail accounts. */
@@ -396,12 +430,12 @@ export class MittwaldAPIV2ClientReact {
396
430
  this.backup = buildBackupApi(baseClient);
397
431
  this.container = buildContainerApi(baseClient);
398
432
  this.contract = buildContractApi(baseClient);
433
+ this.marketplace = buildMarketplaceApi(baseClient);
399
434
  this.conversation = buildConversationApi(baseClient);
400
435
  this.cronjob = buildCronjobApi(baseClient);
401
436
  this.customer = buildCustomerApi(baseClient);
402
437
  this.database = buildDatabaseApi(baseClient);
403
438
  this.domain = buildDomainApi(baseClient);
404
- this.marketplace = buildMarketplaceApi(baseClient);
405
439
  this.file = buildFileApi(baseClient);
406
440
  this.mail = buildMailApi(baseClient);
407
441
  this.notification = buildNotificationApi(baseClient);