@mittwald/api-client 3.1.55 → 3.1.57

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