@mittwald/api-client 3.1.22 → 3.1.23

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.
Files changed (46) hide show
  1. package/dist/index.d.mts +16 -0
  2. package/dist/index.d.ts +16 -0
  3. package/dist/index.mjs +1164 -0
  4. package/dist/{cjs/generated/v2/client-react.d.ts → react.d.mts} +270 -265
  5. package/dist/{esm/generated/v2/client-react.d.ts → react.d.ts} +270 -265
  6. package/dist/react.mjs +744 -0
  7. package/dist/shared/api-client.f3482d23.d.mts +25479 -0
  8. package/dist/shared/api-client.f3482d23.d.ts +25479 -0
  9. package/dist/shared/api-client.f512b243.mjs +1467 -0
  10. package/dist/version.d.ts +1 -1
  11. package/dist/version.js +1 -1
  12. package/package.json +93 -54
  13. package/dist/cjs/generated/v2/client-react.js +0 -347
  14. package/dist/cjs/generated/v2/client.d.ts +0 -9982
  15. package/dist/cjs/generated/v2/client.js +0 -678
  16. package/dist/cjs/generated/v2/descriptors.d.ts +0 -593
  17. package/dist/cjs/generated/v2/descriptors.js +0 -1772
  18. package/dist/cjs/generated/v2/types.d.ts +0 -14896
  19. package/dist/cjs/generated/v2/types.js +0 -2
  20. package/dist/cjs/index.d.ts +0 -3
  21. package/dist/cjs/index.js +0 -7
  22. package/dist/cjs/react.d.ts +0 -1
  23. package/dist/cjs/react.js +0 -5
  24. package/dist/cjs/v2/default.d.ts +0 -12
  25. package/dist/cjs/v2/default.js +0 -70
  26. package/dist/cjs/v2/react.d.ts +0 -3
  27. package/dist/cjs/v2/react.js +0 -7
  28. package/dist/cjs/version.d.ts +0 -1
  29. package/dist/cjs/version.js +0 -4
  30. package/dist/esm/generated/v2/client-react.js +0 -351
  31. package/dist/esm/generated/v2/client.d.ts +0 -9982
  32. package/dist/esm/generated/v2/client.js +0 -648
  33. package/dist/esm/generated/v2/descriptors.d.ts +0 -593
  34. package/dist/esm/generated/v2/descriptors.js +0 -1764
  35. package/dist/esm/generated/v2/types.d.ts +0 -14896
  36. package/dist/esm/generated/v2/types.js +0 -1
  37. package/dist/esm/index.d.ts +0 -3
  38. package/dist/esm/index.js +0 -2
  39. package/dist/esm/react.d.ts +0 -1
  40. package/dist/esm/react.js +0 -1
  41. package/dist/esm/v2/default.d.ts +0 -12
  42. package/dist/esm/v2/default.js +0 -53
  43. package/dist/esm/v2/react.d.ts +0 -3
  44. package/dist/esm/v2/react.js +0 -3
  45. package/dist/esm/version.d.ts +0 -1
  46. package/dist/esm/version.js +0 -1
package/dist/react.mjs ADDED
@@ -0,0 +1,744 @@
1
+ import { ApiCallAsyncResourceFactory } from '@mittwald/api-client-commons/react';
2
+ import { b as appGetApp, c as appGetAppinstallation, f as appGetAppversion, g as appGetMissingDependenciesForAppinstallation, h as appGetSystemsoftware, i as appGetSystemsoftwareversion, k as appListAppinstallations, m as appListApps, n as appListAppversions, o as appListSystemsoftwares, p as appListSystemsoftwareversions, q as appListUpdateCandidatesForAppversion, s as appRetrieveStatus, v as articleGetArticle, w as articleListArticles, z as backupListProjectBackupSchedules, B as backupListProjectBackups, D as backupGetProjectBackupSchedule, G as backupGetProjectBackup, O as contractGetBaseItemOfContract, P as contractGetDetailOfContractByDomain, Q as contractGetDetailOfContractByProject, R as contractGetDetailOfContractByServer, S as contractGetDetailOfContractItem, T as contractGetDetailOfContract, U as contractGetNextTerminationDateForItem, V as contractListContracts, W as invoiceDetailOfInvoice, X as invoiceGetDetailOfInvoiceSettings, Z as invoiceGetFileAccessToken, _ as invoiceListCustomerInvoices, a1 as orderGetOrder, a2 as orderListCustomerOrders, a3 as orderListProjectOrders, a6 as conversationListConversations, a8 as conversationListMessagesByConversation, aa as conversationGetCategory, ab as conversationGetConversationMembers, ac as conversationGetConversation, ae as conversationGetFileAccessToken, af as conversationListCategories, ak as cronjobListCronjobs, am as cronjobListExecutions, ao as cronjobGetCronjob, ar as cronjobGetExecution, au as customerListOfCustomerCategories, ax as customerListCustomers, aA as customerGetCustomerCategory, aD as customerGetCustomerInvite, aF as customerGetCustomerMembership, aI as customerGetCustomer, aL as customerGetCustomerTokenInvite, aM as customerIsCustomerLegallyCompetent, aO as customerListCustomerInvites, aP as customerListCustomerMemberships, aQ as customerListInvitesForCustomer, aR as customerListMembershipsForCustomer, aV as databaseListMysqlDatabases, aX as databaseListMysqlUsers, aZ as databaseListRedisDatabases, a$ as databaseGetMysqlDatabase, b1 as databaseGetMysqlUser, b4 as databaseGetRedisDatabase, b8 as databaseGetMysqlUserPhpMyAdminUrl, b9 as databaseListMysqlCharsets, ba as databaseListMysqlVersions, bb as databaseListRedisVersions, bp as dnsGetDnsZone, br as dnsListDnsZones, bz as domainGetDomain, bB as domainGetDomainOwnership, bC as domainGetLatestScreenshot, bD as domainListDomainOwnerships, bE as domainListDomains, bF as domainListTldContactSchemas, bG as domainListTlds, bM as ingressListIngresses, bO as ingressGetIngress, bU as fileGetFileMeta, bV as fileGetFileUploadTokenRules, bW as fileGetFileUploadTypeRules, bX as fileGetFile, bY as mailListDeliveryBoxes, b_ as mailListMailAddresses, c0 as mailGetDeliveryBox, c2 as mailGetMailAddress, c4 as mailListProjectMailSettings, bi as newsletterGetInfo, bk as notificationsCountUnreadNotifications, bl as notificationsListNotifications, cf as pageinsightsGetPerformanceData, cg as pageinsightsListPerformanceDataForProject, ch as passwordValidationGetPasswordPolicy, cm as userGetOwnEmail, cq as userGetMfaStatus, cv as userListApiTokens, cy as userListSshKeys, cA as userGetApiToken, cD as userGetSshKey, cH as userGetOwnAccount, cJ as userGetPasswordUpdatedAt, cK as userGetPersonalizedSettings, cM as userGetSession, cO as userGetUser, cS as userListFeedback, cT as userListSessions, c_ as userSupportCodeRequest, d3 as projectListInvitesForProject, d9 as projectGetProjectInvite, db as projectGetProjectMembership, de as projectGetProject, di as projectGetProjectTokenInvite, dj as projectGetSelfMembershipForProject, dk as projectGetServer, dm as projectListMembershipsForProject, dn as projectListProjectInvites, dp as projectListProjectMemberships, dq as projectListProjects, dr as projectListServers, dv as projectFileSystemGetDirectories, dw as projectFileSystemGetDiskUsage, dx as projectFileSystemGetFileContent, dy as projectFileSystemGetJwt, dz as projectFileSystemListFiles, dC as sftpUserListSftpUsers, dE as sftpUserGetSftpUser, dH as sshUserListSshUsers, dJ as sshUserGetSshUser } from './shared/api-client.f512b243.mjs';
3
+ import '@mittwald/react-use-promise';
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __publicField = (obj, key, value) => {
8
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
+ return value;
10
+ };
11
+ const buildAppApi = (baseClient) => ({
12
+ /** Get a specific `App`. */
13
+ getApp: new ApiCallAsyncResourceFactory(
14
+ appGetApp,
15
+ baseClient.app.getApp
16
+ ).getApiResource,
17
+ /** Get a specific `AppInstallation`. */
18
+ getAppinstallation: new ApiCallAsyncResourceFactory(
19
+ appGetAppinstallation,
20
+ baseClient.app.getAppinstallation
21
+ ).getApiResource,
22
+ /** Get a specific `AppVersion`. */
23
+ getAppversion: new ApiCallAsyncResourceFactory(
24
+ appGetAppversion,
25
+ baseClient.app.getAppversion
26
+ ).getApiResource,
27
+ /** Get the missing requirements of an appInstallation for a specific target AppVersion. */
28
+ getMissingDependenciesForAppinstallation: new ApiCallAsyncResourceFactory(
29
+ appGetMissingDependenciesForAppinstallation,
30
+ baseClient.app.getMissingDependenciesForAppinstallation
31
+ ).getApiResource,
32
+ /** Get a specific `SystemSoftware`. */
33
+ getSystemsoftware: new ApiCallAsyncResourceFactory(
34
+ appGetSystemsoftware,
35
+ baseClient.app.getSystemsoftware
36
+ ).getApiResource,
37
+ /** Get a specific `SystemSoftwareVersion`. */
38
+ getSystemsoftwareversion: new ApiCallAsyncResourceFactory(
39
+ appGetSystemsoftwareversion,
40
+ baseClient.app.getSystemsoftwareversion
41
+ ).getApiResource,
42
+ /** Get all `AppInstallations` inside a specific `Project`. */
43
+ listAppinstallations: new ApiCallAsyncResourceFactory(
44
+ appListAppinstallations,
45
+ baseClient.app.listAppinstallations
46
+ ).getApiResource,
47
+ /** Get all available `Apps`. */
48
+ listApps: new ApiCallAsyncResourceFactory(
49
+ appListApps,
50
+ baseClient.app.listApps
51
+ ).getApiResource,
52
+ /** Get all `AppVersions` of a specific `App`. */
53
+ listAppversions: new ApiCallAsyncResourceFactory(
54
+ appListAppversions,
55
+ baseClient.app.listAppversions
56
+ ).getApiResource,
57
+ /** Get all available `SystemSoftware`. */
58
+ listSystemsoftwares: new ApiCallAsyncResourceFactory(
59
+ appListSystemsoftwares,
60
+ baseClient.app.listSystemsoftwares
61
+ ).getApiResource,
62
+ /** Get all available `SystemSoftwareVersions` of a specific `SystemSoftware`. */
63
+ listSystemsoftwareversions: new ApiCallAsyncResourceFactory(
64
+ appListSystemsoftwareversions,
65
+ baseClient.app.listSystemsoftwareversions
66
+ ).getApiResource,
67
+ /** Get all update candidates for a specific `AppVersion`. */
68
+ listUpdateCandidatesForAppversion: new ApiCallAsyncResourceFactory(
69
+ appListUpdateCandidatesForAppversion,
70
+ baseClient.app.listUpdateCandidatesForAppversion
71
+ ).getApiResource,
72
+ /** Get runtime status of a specific `AppInstallation`. */
73
+ retrieveStatus: new ApiCallAsyncResourceFactory(
74
+ appRetrieveStatus,
75
+ baseClient.app.retrieveStatus
76
+ ).getApiResource
77
+ });
78
+ const buildArticleApi = (baseClient) => ({
79
+ /** Get an Article. */
80
+ getArticle: new ApiCallAsyncResourceFactory(
81
+ articleGetArticle,
82
+ baseClient.article.getArticle
83
+ ).getApiResource,
84
+ /** List Articles. */
85
+ listArticles: new ApiCallAsyncResourceFactory(
86
+ articleListArticles,
87
+ baseClient.article.listArticles
88
+ ).getApiResource
89
+ });
90
+ const buildBackupApi = (baseClient) => ({
91
+ /** List BackupSchedules belonging to a Project. */
92
+ listProjectBackupSchedules: new ApiCallAsyncResourceFactory(
93
+ backupListProjectBackupSchedules,
94
+ baseClient.backup.listProjectBackupSchedules
95
+ ).getApiResource,
96
+ /** List Backups belonging to a Project. */
97
+ listProjectBackups: new ApiCallAsyncResourceFactory(
98
+ backupListProjectBackups,
99
+ baseClient.backup.listProjectBackups
100
+ ).getApiResource,
101
+ /** Get a ProjectBackupSchedule. */
102
+ getProjectBackupSchedule: new ApiCallAsyncResourceFactory(
103
+ backupGetProjectBackupSchedule,
104
+ baseClient.backup.getProjectBackupSchedule
105
+ ).getApiResource,
106
+ /** Get a ProjectBackup. */
107
+ getProjectBackup: new ApiCallAsyncResourceFactory(
108
+ backupGetProjectBackup,
109
+ baseClient.backup.getProjectBackup
110
+ ).getApiResource
111
+ });
112
+ const buildContractApi = (baseClient) => ({
113
+ /** Return the BaseItem of the Contract with the given ID. */
114
+ getBaseItemOfContract: new ApiCallAsyncResourceFactory(
115
+ contractGetBaseItemOfContract,
116
+ baseClient.contract.getBaseItemOfContract
117
+ ).getApiResource,
118
+ /** Return the Contract for the given Domain. */
119
+ getDetailOfContractByDomain: new ApiCallAsyncResourceFactory(
120
+ contractGetDetailOfContractByDomain,
121
+ baseClient.contract.getDetailOfContractByDomain
122
+ ).getApiResource,
123
+ /** Return the Contract for the given Project. */
124
+ getDetailOfContractByProject: new ApiCallAsyncResourceFactory(
125
+ contractGetDetailOfContractByProject,
126
+ baseClient.contract.getDetailOfContractByProject
127
+ ).getApiResource,
128
+ /** Return the Contract for the given Server. */
129
+ getDetailOfContractByServer: new ApiCallAsyncResourceFactory(
130
+ contractGetDetailOfContractByServer,
131
+ baseClient.contract.getDetailOfContractByServer
132
+ ).getApiResource,
133
+ /** Get the ContractItem with the given ID. */
134
+ getDetailOfContractItem: new ApiCallAsyncResourceFactory(
135
+ contractGetDetailOfContractItem,
136
+ baseClient.contract.getDetailOfContractItem
137
+ ).getApiResource,
138
+ /** Returns the Contract with the given ID. */
139
+ getDetailOfContract: new ApiCallAsyncResourceFactory(
140
+ contractGetDetailOfContract,
141
+ baseClient.contract.getDetailOfContract
142
+ ).getApiResource,
143
+ /** Return the next TerminationDate for the ContractItem with the given ID. */
144
+ getNextTerminationDateForItem: new ApiCallAsyncResourceFactory(
145
+ contractGetNextTerminationDateForItem,
146
+ baseClient.contract.getNextTerminationDateForItem
147
+ ).getApiResource,
148
+ /** Return a list of Contracts for the given Customer. */
149
+ listContracts: new ApiCallAsyncResourceFactory(
150
+ contractListContracts,
151
+ baseClient.contract.listContracts
152
+ ).getApiResource,
153
+ /** Get details of an Invoice. */
154
+ invoiceDetailOfInvoice: new ApiCallAsyncResourceFactory(
155
+ invoiceDetailOfInvoice,
156
+ baseClient.contract.invoiceDetailOfInvoice
157
+ ).getApiResource,
158
+ /** Get InvoiceSettings of a Customer. */
159
+ invoiceGetDetailOfInvoiceSettings: new ApiCallAsyncResourceFactory(
160
+ invoiceGetDetailOfInvoiceSettings,
161
+ baseClient.contract.invoiceGetDetailOfInvoiceSettings
162
+ ).getApiResource,
163
+ /** Request an Access Token for the Invoice file. */
164
+ invoiceGetFileAccessToken: new ApiCallAsyncResourceFactory(
165
+ invoiceGetFileAccessToken,
166
+ baseClient.contract.invoiceGetFileAccessToken
167
+ ).getApiResource,
168
+ /** List Invoices of a Customer. */
169
+ invoiceListCustomerInvoices: new ApiCallAsyncResourceFactory(
170
+ invoiceListCustomerInvoices,
171
+ baseClient.contract.invoiceListCustomerInvoices
172
+ ).getApiResource,
173
+ /** Get Order for Customer. */
174
+ orderGetOrder: new ApiCallAsyncResourceFactory(
175
+ orderGetOrder,
176
+ baseClient.contract.orderGetOrder
177
+ ).getApiResource,
178
+ /** Get list of Orders of a Customer. */
179
+ orderListCustomerOrders: new ApiCallAsyncResourceFactory(
180
+ orderListCustomerOrders,
181
+ baseClient.contract.orderListCustomerOrders
182
+ ).getApiResource,
183
+ /** Get list of Orders of a Project. */
184
+ orderListProjectOrders: new ApiCallAsyncResourceFactory(
185
+ orderListProjectOrders,
186
+ baseClient.contract.orderListProjectOrders
187
+ ).getApiResource
188
+ });
189
+ const buildConversationApi = (baseClient) => ({
190
+ /** Get all conversation the authenticated user has created or has access to. */
191
+ listConversations: new ApiCallAsyncResourceFactory(
192
+ conversationListConversations,
193
+ baseClient.conversation.listConversations
194
+ ).getApiResource,
195
+ /** Get all message of the conversation. */
196
+ listMessagesByConversation: new ApiCallAsyncResourceFactory(
197
+ conversationListMessagesByConversation,
198
+ baseClient.conversation.listMessagesByConversation
199
+ ).getApiResource,
200
+ /** Get a specific conversation category. */
201
+ getCategory: new ApiCallAsyncResourceFactory(
202
+ conversationGetCategory,
203
+ baseClient.conversation.getCategory
204
+ ).getApiResource,
205
+ /** Get members of a support conversation. */
206
+ getConversationMembers: new ApiCallAsyncResourceFactory(
207
+ conversationGetConversationMembers,
208
+ baseClient.conversation.getConversationMembers
209
+ ).getApiResource,
210
+ /** Get a support conversation. */
211
+ getConversation: new ApiCallAsyncResourceFactory(
212
+ conversationGetConversation,
213
+ baseClient.conversation.getConversation
214
+ ).getApiResource,
215
+ /** Request an access token for the File belonging to the Conversation. */
216
+ getFileAccessToken: new ApiCallAsyncResourceFactory(
217
+ conversationGetFileAccessToken,
218
+ baseClient.conversation.getFileAccessToken
219
+ ).getApiResource,
220
+ /** Get all conversation categories. */
221
+ listCategories: new ApiCallAsyncResourceFactory(
222
+ conversationListCategories,
223
+ baseClient.conversation.listCategories
224
+ ).getApiResource
225
+ });
226
+ const buildCronjobApi = (baseClient) => ({
227
+ /** List Cronjobs belonging to a Project. */
228
+ listCronjobs: new ApiCallAsyncResourceFactory(
229
+ cronjobListCronjobs,
230
+ baseClient.cronjob.listCronjobs
231
+ ).getApiResource,
232
+ /** List CronjobExecutions belonging to a Cronjob. */
233
+ listExecutions: new ApiCallAsyncResourceFactory(
234
+ cronjobListExecutions,
235
+ baseClient.cronjob.listExecutions
236
+ ).getApiResource,
237
+ /** Get a Cronjob. */
238
+ getCronjob: new ApiCallAsyncResourceFactory(
239
+ cronjobGetCronjob,
240
+ baseClient.cronjob.getCronjob
241
+ ).getApiResource,
242
+ /** Get a CronjobExecution. */
243
+ getExecution: new ApiCallAsyncResourceFactory(
244
+ cronjobGetExecution,
245
+ baseClient.cronjob.getExecution
246
+ ).getApiResource
247
+ });
248
+ const buildCustomerApi = (baseClient) => ({
249
+ /** Get all customer categories. */
250
+ listOfCustomerCategories: new ApiCallAsyncResourceFactory(
251
+ customerListOfCustomerCategories,
252
+ baseClient.customer.listOfCustomerCategories
253
+ ).getApiResource,
254
+ /** Get all customer profiles the authenticated user has access to. */
255
+ listCustomers: new ApiCallAsyncResourceFactory(
256
+ customerListCustomers,
257
+ baseClient.customer.listCustomers
258
+ ).getApiResource,
259
+ /** Get a customer category. */
260
+ getCustomerCategory: new ApiCallAsyncResourceFactory(
261
+ customerGetCustomerCategory,
262
+ baseClient.customer.getCustomerCategory
263
+ ).getApiResource,
264
+ /** Get a CustomerInvite. */
265
+ getCustomerInvite: new ApiCallAsyncResourceFactory(
266
+ customerGetCustomerInvite,
267
+ baseClient.customer.getCustomerInvite
268
+ ).getApiResource,
269
+ /** Get a CustomerMembership. */
270
+ getCustomerMembership: new ApiCallAsyncResourceFactory(
271
+ customerGetCustomerMembership,
272
+ baseClient.customer.getCustomerMembership
273
+ ).getApiResource,
274
+ /** Get a customer profile. */
275
+ getCustomer: new ApiCallAsyncResourceFactory(
276
+ customerGetCustomer,
277
+ baseClient.customer.getCustomer
278
+ ).getApiResource,
279
+ /** Get a CustomerInvite by token. */
280
+ getCustomerTokenInvite: new ApiCallAsyncResourceFactory(
281
+ customerGetCustomerTokenInvite,
282
+ baseClient.customer.getCustomerTokenInvite
283
+ ).getApiResource,
284
+ /** Check if the customer profile has a valid contract partner configured. */
285
+ isCustomerLegallyCompetent: new ApiCallAsyncResourceFactory(
286
+ customerIsCustomerLegallyCompetent,
287
+ baseClient.customer.isCustomerLegallyCompetent
288
+ ).getApiResource,
289
+ /** List CustomerInvites belonging to the executing user. */
290
+ listCustomerInvites: new ApiCallAsyncResourceFactory(
291
+ customerListCustomerInvites,
292
+ baseClient.customer.listCustomerInvites
293
+ ).getApiResource,
294
+ /** List CustomerMemberships belonging to the executing user. */
295
+ listCustomerMemberships: new ApiCallAsyncResourceFactory(
296
+ customerListCustomerMemberships,
297
+ baseClient.customer.listCustomerMemberships
298
+ ).getApiResource,
299
+ /** List Invites belonging to a Customer. */
300
+ listInvitesForCustomer: new ApiCallAsyncResourceFactory(
301
+ customerListInvitesForCustomer,
302
+ baseClient.customer.listInvitesForCustomer
303
+ ).getApiResource,
304
+ /** List Memberships belonging to a Customer. */
305
+ listMembershipsForCustomer: new ApiCallAsyncResourceFactory(
306
+ customerListMembershipsForCustomer,
307
+ baseClient.customer.listMembershipsForCustomer
308
+ ).getApiResource
309
+ });
310
+ const buildDatabaseApi = (baseClient) => ({
311
+ /** List MySQLDatabases belonging to a Project. */
312
+ listMysqlDatabases: new ApiCallAsyncResourceFactory(
313
+ databaseListMysqlDatabases,
314
+ baseClient.database.listMysqlDatabases
315
+ ).getApiResource,
316
+ /** List MySQLUsers belonging to a Database. */
317
+ listMysqlUsers: new ApiCallAsyncResourceFactory(
318
+ databaseListMysqlUsers,
319
+ baseClient.database.listMysqlUsers
320
+ ).getApiResource,
321
+ /** List RedisDatabases belonging to a Project. */
322
+ listRedisDatabases: new ApiCallAsyncResourceFactory(
323
+ databaseListRedisDatabases,
324
+ baseClient.database.listRedisDatabases
325
+ ).getApiResource,
326
+ /** Get a MySQLDatabase. */
327
+ getMysqlDatabase: new ApiCallAsyncResourceFactory(
328
+ databaseGetMysqlDatabase,
329
+ baseClient.database.getMysqlDatabase
330
+ ).getApiResource,
331
+ /** Get a MySQLUser. */
332
+ getMysqlUser: new ApiCallAsyncResourceFactory(
333
+ databaseGetMysqlUser,
334
+ baseClient.database.getMysqlUser
335
+ ).getApiResource,
336
+ /** Get a RedisDatabase. */
337
+ getRedisDatabase: new ApiCallAsyncResourceFactory(
338
+ databaseGetRedisDatabase,
339
+ baseClient.database.getRedisDatabase
340
+ ).getApiResource,
341
+ /** Get a MySQLUser's PhpMyAdmin-URL. */
342
+ getMysqlUserPhpMyAdminUrl: new ApiCallAsyncResourceFactory(
343
+ databaseGetMysqlUserPhpMyAdminUrl,
344
+ baseClient.database.getMysqlUserPhpMyAdminUrl
345
+ ).getApiResource,
346
+ /** List available MySQL character sets and collations, optionally filtered by a MySQLVersion. */
347
+ listMysqlCharsets: new ApiCallAsyncResourceFactory(
348
+ databaseListMysqlCharsets,
349
+ baseClient.database.listMysqlCharsets
350
+ ).getApiResource,
351
+ /** List MySQLVersions. */
352
+ listMysqlVersions: new ApiCallAsyncResourceFactory(
353
+ databaseListMysqlVersions,
354
+ baseClient.database.listMysqlVersions
355
+ ).getApiResource,
356
+ /** List RedisVersions. */
357
+ listRedisVersions: new ApiCallAsyncResourceFactory(
358
+ databaseListRedisVersions,
359
+ baseClient.database.listRedisVersions
360
+ ).getApiResource
361
+ });
362
+ const buildDomainApi = (baseClient) => ({
363
+ /** Get a DNSZone. */
364
+ dnsGetDnsZone: new ApiCallAsyncResourceFactory(
365
+ dnsGetDnsZone,
366
+ baseClient.domain.dnsGetDnsZone
367
+ ).getApiResource,
368
+ /** List DNSZones belonging to a Project. */
369
+ dnsListDnsZones: new ApiCallAsyncResourceFactory(
370
+ dnsListDnsZones,
371
+ baseClient.domain.dnsListDnsZones
372
+ ).getApiResource,
373
+ /** Get a Domain. */
374
+ getDomain: new ApiCallAsyncResourceFactory(
375
+ domainGetDomain,
376
+ baseClient.domain.getDomain
377
+ ).getApiResource,
378
+ /** Get a DomainOwnership. */
379
+ getDomainOwnership: new ApiCallAsyncResourceFactory(
380
+ domainGetDomainOwnership,
381
+ baseClient.domain.getDomainOwnership
382
+ ).getApiResource,
383
+ /** Get the latest screenshot's FileReference belonging to a Domain. */
384
+ getLatestScreenshot: new ApiCallAsyncResourceFactory(
385
+ domainGetLatestScreenshot,
386
+ baseClient.domain.getLatestScreenshot
387
+ ).getApiResource,
388
+ /** List the DomainOwnerships of a project. */
389
+ listDomainOwnerships: new ApiCallAsyncResourceFactory(
390
+ domainListDomainOwnerships,
391
+ baseClient.domain.listDomainOwnerships
392
+ ).getApiResource,
393
+ /** List Domains belonging to a Project. */
394
+ listDomains: new ApiCallAsyncResourceFactory(
395
+ domainListDomains,
396
+ baseClient.domain.listDomains
397
+ ).getApiResource,
398
+ /** List the contact schemas for a TLD. */
399
+ listTldContactSchemas: new ApiCallAsyncResourceFactory(
400
+ domainListTldContactSchemas,
401
+ baseClient.domain.listTldContactSchemas
402
+ ).getApiResource,
403
+ /** List TLDs. */
404
+ listTlds: new ApiCallAsyncResourceFactory(
405
+ domainListTlds,
406
+ baseClient.domain.listTlds
407
+ ).getApiResource,
408
+ /** List Ingresses. */
409
+ ingressListIngresses: new ApiCallAsyncResourceFactory(
410
+ ingressListIngresses,
411
+ baseClient.domain.ingressListIngresses
412
+ ).getApiResource,
413
+ /** Get an Ingress. */
414
+ ingressGetIngress: new ApiCallAsyncResourceFactory(
415
+ ingressGetIngress,
416
+ baseClient.domain.ingressGetIngress
417
+ ).getApiResource
418
+ });
419
+ const buildFileApi = (baseClient) => ({
420
+ /** Get a File's meta. */
421
+ getFileMeta: new ApiCallAsyncResourceFactory(
422
+ fileGetFileMeta,
423
+ baseClient.file.getFileMeta
424
+ ).getApiResource,
425
+ /** Get a FileUploadToken's rules. */
426
+ getFileUploadTokenRules: new ApiCallAsyncResourceFactory(
427
+ fileGetFileUploadTokenRules,
428
+ baseClient.file.getFileUploadTokenRules
429
+ ).getApiResource,
430
+ /** Get a FileUploadType's rules. */
431
+ getFileUploadTypeRules: new ApiCallAsyncResourceFactory(
432
+ fileGetFileUploadTypeRules,
433
+ baseClient.file.getFileUploadTypeRules
434
+ ).getApiResource,
435
+ /** Get a File. */
436
+ getFile: new ApiCallAsyncResourceFactory(
437
+ fileGetFile,
438
+ baseClient.file.getFile
439
+ ).getApiResource
440
+ });
441
+ const buildMailApi = (baseClient) => ({
442
+ /** List DeliveryBoxes belonging to a Project. */
443
+ listDeliveryBoxes: new ApiCallAsyncResourceFactory(
444
+ mailListDeliveryBoxes,
445
+ baseClient.mail.listDeliveryBoxes
446
+ ).getApiResource,
447
+ /** List MailAddresses belonging to a Project. */
448
+ listMailAddresses: new ApiCallAsyncResourceFactory(
449
+ mailListMailAddresses,
450
+ baseClient.mail.listMailAddresses
451
+ ).getApiResource,
452
+ /** Get a DeliveryBox. */
453
+ getDeliveryBox: new ApiCallAsyncResourceFactory(
454
+ mailGetDeliveryBox,
455
+ baseClient.mail.getDeliveryBox
456
+ ).getApiResource,
457
+ /** Get a MailAddress. */
458
+ getMailAddress: new ApiCallAsyncResourceFactory(
459
+ mailGetMailAddress,
460
+ baseClient.mail.getMailAddress
461
+ ).getApiResource,
462
+ /** List mail settings of a Project. */
463
+ listProjectMailSettings: new ApiCallAsyncResourceFactory(
464
+ mailListProjectMailSettings,
465
+ baseClient.mail.listProjectMailSettings
466
+ ).getApiResource
467
+ });
468
+ const buildNotificationApi = (baseClient) => ({
469
+ /** Getting the subscription status of the subscription. */
470
+ newsletterGetInfo: new ApiCallAsyncResourceFactory(
471
+ newsletterGetInfo,
472
+ baseClient.notification.newsletterGetInfo
473
+ ).getApiResource,
474
+ /** Get the counts for unread notifications of the user. */
475
+ scountUnreadNotifications: new ApiCallAsyncResourceFactory(
476
+ notificationsCountUnreadNotifications,
477
+ baseClient.notification.scountUnreadNotifications
478
+ ).getApiResource,
479
+ /** List all unread notifications. */
480
+ slistNotifications: new ApiCallAsyncResourceFactory(
481
+ notificationsListNotifications,
482
+ baseClient.notification.slistNotifications
483
+ ).getApiResource
484
+ });
485
+ const buildPageInsightsApi = (baseClient) => ({
486
+ /** Get detailed performance data for a given domain and path. */
487
+ pageinsightsGetPerformanceData: new ApiCallAsyncResourceFactory(
488
+ pageinsightsGetPerformanceData,
489
+ baseClient.pageInsights.pageinsightsGetPerformanceData
490
+ ).getApiResource,
491
+ /** List websites (specified as domain and path) from a project where performance data is available. */
492
+ pageinsightsListPerformanceDataForProject: new ApiCallAsyncResourceFactory(
493
+ pageinsightsListPerformanceDataForProject,
494
+ baseClient.pageInsights.pageinsightsListPerformanceDataForProject
495
+ ).getApiResource
496
+ });
497
+ const buildUserApi = (baseClient) => ({
498
+ /** Get a PasswordPolicy. */
499
+ passwordValidationGetPasswordPolicy: new ApiCallAsyncResourceFactory(
500
+ passwordValidationGetPasswordPolicy,
501
+ baseClient.user.passwordValidationGetPasswordPolicy
502
+ ).getApiResource,
503
+ /** Get your verified Email-Address. */
504
+ getOwnEmail: new ApiCallAsyncResourceFactory(
505
+ userGetOwnEmail,
506
+ baseClient.user.getOwnEmail
507
+ ).getApiResource,
508
+ /** Get your current multi factor auth status. */
509
+ getMfaStatus: new ApiCallAsyncResourceFactory(
510
+ userGetMfaStatus,
511
+ baseClient.user.getMfaStatus
512
+ ).getApiResource,
513
+ /** List all of your ApiTokens. */
514
+ listApiTokens: new ApiCallAsyncResourceFactory(
515
+ userListApiTokens,
516
+ baseClient.user.listApiTokens
517
+ ).getApiResource,
518
+ /** Get your stored ssh-keys. */
519
+ listSshKeys: new ApiCallAsyncResourceFactory(
520
+ userListSshKeys,
521
+ baseClient.user.listSshKeys
522
+ ).getApiResource,
523
+ /** Get a specific ApiToken. */
524
+ getApiToken: new ApiCallAsyncResourceFactory(
525
+ userGetApiToken,
526
+ baseClient.user.getApiToken
527
+ ).getApiResource,
528
+ /** Get a specific stored ssh-key. */
529
+ getSshKey: new ApiCallAsyncResourceFactory(
530
+ userGetSshKey,
531
+ baseClient.user.getSshKey
532
+ ).getApiResource,
533
+ /** Get your account information. */
534
+ getOwnAccount: new ApiCallAsyncResourceFactory(
535
+ userGetOwnAccount,
536
+ baseClient.user.getOwnAccount
537
+ ).getApiResource,
538
+ /** The timestamp of your latest password change. */
539
+ getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(
540
+ userGetPasswordUpdatedAt,
541
+ baseClient.user.getPasswordUpdatedAt
542
+ ).getApiResource,
543
+ /** Get personalized settings. */
544
+ getPersonalizedSettings: new ApiCallAsyncResourceFactory(
545
+ userGetPersonalizedSettings,
546
+ baseClient.user.getPersonalizedSettings
547
+ ).getApiResource,
548
+ /** Get a specific session. */
549
+ getSession: new ApiCallAsyncResourceFactory(
550
+ userGetSession,
551
+ baseClient.user.getSession
552
+ ).getApiResource,
553
+ /** Get profile information for a user. */
554
+ getUser: new ApiCallAsyncResourceFactory(
555
+ userGetUser,
556
+ baseClient.user.getUser
557
+ ).getApiResource,
558
+ /** Submitted feedback of the given user. */
559
+ listFeedback: new ApiCallAsyncResourceFactory(
560
+ userListFeedback,
561
+ baseClient.user.listFeedback
562
+ ).getApiResource,
563
+ /** List all sessions. */
564
+ listSessions: new ApiCallAsyncResourceFactory(
565
+ userListSessions,
566
+ baseClient.user.listSessions
567
+ ).getApiResource,
568
+ /** Request a support code. */
569
+ supportCodeRequest: new ApiCallAsyncResourceFactory(
570
+ userSupportCodeRequest,
571
+ baseClient.user.supportCodeRequest
572
+ ).getApiResource
573
+ });
574
+ const buildProjectApi = (baseClient) => ({
575
+ /** List Invites belonging to a Project. */
576
+ listInvitesForProject: new ApiCallAsyncResourceFactory(
577
+ projectListInvitesForProject,
578
+ baseClient.project.listInvitesForProject
579
+ ).getApiResource,
580
+ /** Get a ProjectInvite. */
581
+ getProjectInvite: new ApiCallAsyncResourceFactory(
582
+ projectGetProjectInvite,
583
+ baseClient.project.getProjectInvite
584
+ ).getApiResource,
585
+ /** Get a ProjectMembership */
586
+ getProjectMembership: new ApiCallAsyncResourceFactory(
587
+ projectGetProjectMembership,
588
+ baseClient.project.getProjectMembership
589
+ ).getApiResource,
590
+ /** Get a Project. */
591
+ getProject: new ApiCallAsyncResourceFactory(
592
+ projectGetProject,
593
+ baseClient.project.getProject
594
+ ).getApiResource,
595
+ /** Get a ProjectInvite by token. */
596
+ getProjectTokenInvite: new ApiCallAsyncResourceFactory(
597
+ projectGetProjectTokenInvite,
598
+ baseClient.project.getProjectTokenInvite
599
+ ).getApiResource,
600
+ /** Get the executing user's membership in a Project. */
601
+ getSelfMembershipForProject: new ApiCallAsyncResourceFactory(
602
+ projectGetSelfMembershipForProject,
603
+ baseClient.project.getSelfMembershipForProject
604
+ ).getApiResource,
605
+ /** Get a Server. */
606
+ getServer: new ApiCallAsyncResourceFactory(
607
+ projectGetServer,
608
+ baseClient.project.getServer
609
+ ).getApiResource,
610
+ /** List Memberships belonging to a Project. */
611
+ listMembershipsForProject: new ApiCallAsyncResourceFactory(
612
+ projectListMembershipsForProject,
613
+ baseClient.project.listMembershipsForProject
614
+ ).getApiResource,
615
+ /** List ProjectInvites belonging to the executing user. */
616
+ listProjectInvites: new ApiCallAsyncResourceFactory(
617
+ projectListProjectInvites,
618
+ baseClient.project.listProjectInvites
619
+ ).getApiResource,
620
+ /** List ProjectMemberships belonging to the executing user. */
621
+ listProjectMemberships: new ApiCallAsyncResourceFactory(
622
+ projectListProjectMemberships,
623
+ baseClient.project.listProjectMemberships
624
+ ).getApiResource,
625
+ /** List Projects belonging to the executing user. */
626
+ listProjects: new ApiCallAsyncResourceFactory(
627
+ projectListProjects,
628
+ baseClient.project.listProjects
629
+ ).getApiResource,
630
+ /** List Servers belonging to the executing user. */
631
+ listServers: new ApiCallAsyncResourceFactory(
632
+ projectListServers,
633
+ baseClient.project.listServers
634
+ ).getApiResource
635
+ });
636
+ const buildProjectFileSystemApi = (baseClient) => ({
637
+ /** List directories belonging to a Project. */
638
+ getDirectories: new ApiCallAsyncResourceFactory(
639
+ projectFileSystemGetDirectories,
640
+ baseClient.projectFileSystem.getDirectories
641
+ ).getApiResource,
642
+ /** Get a Project directory filesystem usage. */
643
+ getDiskUsage: new ApiCallAsyncResourceFactory(
644
+ projectFileSystemGetDiskUsage,
645
+ baseClient.projectFileSystem.getDiskUsage
646
+ ).getApiResource,
647
+ /** Get a Project file's content. */
648
+ getFileContent: new ApiCallAsyncResourceFactory(
649
+ projectFileSystemGetFileContent,
650
+ baseClient.projectFileSystem.getFileContent
651
+ ).getApiResource,
652
+ /** Get a Project's file/filesystem authorization token. */
653
+ getJwt: new ApiCallAsyncResourceFactory(
654
+ projectFileSystemGetJwt,
655
+ baseClient.projectFileSystem.getJwt
656
+ ).getApiResource,
657
+ /** Get a Project file's information. */
658
+ listFiles: new ApiCallAsyncResourceFactory(
659
+ projectFileSystemListFiles,
660
+ baseClient.projectFileSystem.listFiles
661
+ ).getApiResource
662
+ });
663
+ const buildSshsftpUserApi = (baseClient) => ({
664
+ /** Get all SFTPUsers for a Project. */
665
+ sftpUserListSftpUsers: new ApiCallAsyncResourceFactory(
666
+ sftpUserListSftpUsers,
667
+ baseClient.sshsftpUser.sftpUserListSftpUsers
668
+ ).getApiResource,
669
+ /** Get an SFTPUser. */
670
+ sftpUserGetSftpUser: new ApiCallAsyncResourceFactory(
671
+ sftpUserGetSftpUser,
672
+ baseClient.sshsftpUser.sftpUserGetSftpUser
673
+ ).getApiResource,
674
+ /** Get all SSHUsers for a Project. */
675
+ sshUserListSshUsers: new ApiCallAsyncResourceFactory(
676
+ sshUserListSshUsers,
677
+ baseClient.sshsftpUser.sshUserListSshUsers
678
+ ).getApiResource,
679
+ /** Get an SSHUser. */
680
+ sshUserGetSshUser: new ApiCallAsyncResourceFactory(
681
+ sshUserGetSshUser,
682
+ baseClient.sshsftpUser.sshUserGetSshUser
683
+ ).getApiResource
684
+ });
685
+ class MittwaldAPIV2ClientReact {
686
+ constructor(baseClient) {
687
+ /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
688
+ __publicField(this, "app");
689
+ /** The article API allows you to read article information. */
690
+ __publicField(this, "article");
691
+ /** The backup API allows you to manage your project backups. */
692
+ __publicField(this, "backup");
693
+ /** The contract API allows you to manage your contracts and orders */
694
+ __publicField(this, "contract");
695
+ /** The conversation API allows you to manage your support conversations. */
696
+ __publicField(this, "conversation");
697
+ /** The cronjob API allows you to manage cronjobs within a project. */
698
+ __publicField(this, "cronjob");
699
+ /** The customer API allows you to manage your own organizations and users. */
700
+ __publicField(this, "customer");
701
+ /** The database API allows you to manage your databases, like MySQL and Redis databases. */
702
+ __publicField(this, "database");
703
+ /** The domain API allows you to manage your domains, DNS records and ingress resources. */
704
+ __publicField(this, "domain");
705
+ /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
706
+ __publicField(this, "file");
707
+ /** The mail API allows you to manage your mail accounts. */
708
+ __publicField(this, "mail");
709
+ /** The notification API allows you to manage your notifications. */
710
+ __publicField(this, "notification");
711
+ /** The page insights API allows you to get page insights information. */
712
+ __publicField(this, "pageInsights");
713
+ /** The user API allows you to manage your own user and access information of other users that might be visible to you. */
714
+ __publicField(this, "user");
715
+ /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
716
+ __publicField(this, "project");
717
+ /** The filesystem API allows you to directly access the filesystem of your project. */
718
+ __publicField(this, "projectFileSystem");
719
+ /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
720
+ __publicField(this, "sshsftpUser");
721
+ this.app = buildAppApi(baseClient);
722
+ this.article = buildArticleApi(baseClient);
723
+ this.backup = buildBackupApi(baseClient);
724
+ this.contract = buildContractApi(baseClient);
725
+ this.conversation = buildConversationApi(baseClient);
726
+ this.cronjob = buildCronjobApi(baseClient);
727
+ this.customer = buildCustomerApi(baseClient);
728
+ this.database = buildDatabaseApi(baseClient);
729
+ this.domain = buildDomainApi(baseClient);
730
+ this.file = buildFileApi(baseClient);
731
+ this.mail = buildMailApi(baseClient);
732
+ this.notification = buildNotificationApi(baseClient);
733
+ this.pageInsights = buildPageInsightsApi(baseClient);
734
+ this.user = buildUserApi(baseClient);
735
+ this.project = buildProjectApi(baseClient);
736
+ this.projectFileSystem = buildProjectFileSystemApi(baseClient);
737
+ this.sshsftpUser = buildSshsftpUserApi(baseClient);
738
+ }
739
+ static fromBaseClient(baseClient) {
740
+ return new MittwaldAPIV2ClientReact(baseClient);
741
+ }
742
+ }
743
+
744
+ export { MittwaldAPIV2ClientReact };