@mittwald/api-client 3.0.29 → 3.1.1

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 (45) hide show
  1. package/dist/chunk-LELXC74W.js +1770 -0
  2. package/dist/client-739be67c.d.ts +25271 -0
  3. package/dist/index.cjs +2627 -0
  4. package/dist/{cjs/v2/default.d.ts → index.d.cts} +8 -4
  5. package/dist/{esm/v2/default.d.ts → index.d.ts} +8 -4
  6. package/dist/index.js +1440 -0
  7. package/dist/react.cjs +1360 -0
  8. package/dist/{cjs/generated/v2/client-react.d.ts → react.d.cts} +453 -390
  9. package/dist/{esm/generated/v2/client-react.d.ts → react.d.ts} +453 -390
  10. package/dist/react.js +830 -0
  11. package/dist/version.d.ts +1 -1
  12. package/dist/version.js +1 -1
  13. package/package.json +17 -25
  14. package/dist/cjs/generated/v2/client-react.js +0 -334
  15. package/dist/cjs/generated/v2/client.d.ts +0 -9695
  16. package/dist/cjs/generated/v2/client.js +0 -658
  17. package/dist/cjs/generated/v2/descriptors.d.ts +0 -589
  18. package/dist/cjs/generated/v2/descriptors.js +0 -1760
  19. package/dist/cjs/generated/v2/types.d.ts +0 -14795
  20. package/dist/cjs/generated/v2/types.js +0 -2
  21. package/dist/cjs/index.d.ts +0 -3
  22. package/dist/cjs/index.js +0 -7
  23. package/dist/cjs/react.d.ts +0 -1
  24. package/dist/cjs/react.js +0 -5
  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 -336
  31. package/dist/esm/generated/v2/client.d.ts +0 -9695
  32. package/dist/esm/generated/v2/client.js +0 -628
  33. package/dist/esm/generated/v2/descriptors.d.ts +0 -589
  34. package/dist/esm/generated/v2/descriptors.js +0 -1752
  35. package/dist/esm/generated/v2/types.d.ts +0 -14795
  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.js +0 -53
  42. package/dist/esm/v2/react.d.ts +0 -3
  43. package/dist/esm/v2/react.js +0 -3
  44. package/dist/esm/version.d.ts +0 -1
  45. package/dist/esm/version.js +0 -1
package/dist/react.js ADDED
@@ -0,0 +1,830 @@
1
+ import {
2
+ __export,
3
+ __reExport,
4
+ appGetApp,
5
+ appGetAppinstallation,
6
+ appGetAppversion,
7
+ appGetMissingDependenciesForAppinstallation,
8
+ appGetSystemsoftware,
9
+ appGetSystemsoftwareversion,
10
+ appListAppinstallations,
11
+ appListApps,
12
+ appListAppversions,
13
+ appListSystemsoftwares,
14
+ appListSystemsoftwareversions,
15
+ appListUpdateCandidatesForAppversion,
16
+ appRetrieveStatus,
17
+ articleGetArticle,
18
+ articleListArticles,
19
+ backupGetProjectBackup,
20
+ backupGetProjectBackupSchedule,
21
+ backupListProjectBackupSchedules,
22
+ backupListProjectBackups,
23
+ contractGetBaseItemOfContract,
24
+ contractGetDetailOfContract,
25
+ contractGetDetailOfContractByDomain,
26
+ contractGetDetailOfContractByProject,
27
+ contractGetDetailOfContractByServer,
28
+ contractGetDetailOfContractItem,
29
+ contractGetNextTerminationDateForItem,
30
+ contractListContracts,
31
+ conversationGetCategory,
32
+ conversationGetConversation,
33
+ conversationListCategories,
34
+ conversationListConversations,
35
+ conversationListMessagesByConversation,
36
+ cronjobGetCronjob,
37
+ cronjobGetExecution,
38
+ cronjobListCronjobs,
39
+ cronjobListExecutions,
40
+ customerGetCustomer,
41
+ customerGetCustomerCategory,
42
+ customerGetCustomerInvite,
43
+ customerGetCustomerMembership,
44
+ customerGetCustomerTokenInvite,
45
+ customerIsCustomerLegallyCompetent,
46
+ customerListCustomerInvites,
47
+ customerListCustomerMemberships,
48
+ customerListCustomers,
49
+ customerListInvitesForCustomer,
50
+ customerListMembershipsForCustomer,
51
+ customerListOfCustomerCategories,
52
+ databaseGetMysqlDatabase,
53
+ databaseGetMysqlUser,
54
+ databaseGetMysqlUserPhpMyAdminUrl,
55
+ databaseGetRedisDatabase,
56
+ databaseListMysqlCharsets,
57
+ databaseListMysqlDatabases,
58
+ databaseListMysqlUsers,
59
+ databaseListMysqlVersions,
60
+ databaseListRedisDatabases,
61
+ databaseListRedisVersions,
62
+ dnsGetDnsZone,
63
+ dnsListDnsZones,
64
+ domainGetDomain,
65
+ domainGetDomainOwnership,
66
+ domainGetScreenshotForDomain,
67
+ domainListDomainOwnerships,
68
+ domainListDomains,
69
+ domainListTldContactSchemas,
70
+ domainListTlds,
71
+ fileGetFile,
72
+ fileGetFileMeta,
73
+ fileGetFileTokenRules,
74
+ fileGetFileTypeRules,
75
+ ingressGetSpecific,
76
+ ingressListAccessible,
77
+ ingressListForProject,
78
+ invoiceDetailOfInvoice,
79
+ invoiceGetDetailOfInvoiceSettings,
80
+ invoiceListCustomerInvoices,
81
+ mailGetDeliveryBox,
82
+ mailGetMailAddress,
83
+ mailListDeliveryBoxes,
84
+ mailListMailAddresses,
85
+ mailListProjectMailSettings,
86
+ newsletterGetInfo,
87
+ notificationsCountUnreadNotifications,
88
+ notificationsListNotifications,
89
+ orderGetOrder,
90
+ orderListCustomerOrders,
91
+ orderListProjectOrders,
92
+ pageinsightsGetPerformanceData,
93
+ pageinsightsListPerformanceDataForProject,
94
+ passwordValidationGetPasswordPolicy,
95
+ projectFileSystemGetDirectories,
96
+ projectFileSystemGetDiskUsage,
97
+ projectFileSystemGetFileContent,
98
+ projectFileSystemGetJwt,
99
+ projectFileSystemListFiles,
100
+ projectGetProject,
101
+ projectGetProjectInvite,
102
+ projectGetProjectMembership,
103
+ projectGetProjectTokenInvite,
104
+ projectGetSelfMembershipForProject,
105
+ projectGetServer,
106
+ projectListInvitesForProject,
107
+ projectListMembershipsForProject,
108
+ projectListProjectInvites,
109
+ projectListProjectMemberships,
110
+ projectListProjects,
111
+ projectListServers,
112
+ sftpUserGetSftpUser,
113
+ sftpUserListSftpUsers,
114
+ sshUserGetSshUser,
115
+ sshUserListSshUsers,
116
+ userGetApiToken,
117
+ userGetMfaStatus,
118
+ userGetOwnAccount,
119
+ userGetOwnEmail,
120
+ userGetPasswordUpdatedAt,
121
+ userGetPersonalizedSettings,
122
+ userGetSession,
123
+ userGetSshKey,
124
+ userGetUser,
125
+ userListApiTokens,
126
+ userListFeedback,
127
+ userListSessions,
128
+ userListSshKeys,
129
+ userSupportCodeRequest
130
+ } from "./chunk-LELXC74W.js";
131
+
132
+ // src/generated/v2/client-react.ts
133
+ var client_react_exports = {};
134
+ __export(client_react_exports, {
135
+ MittwaldAPIV2ClientReact: () => MittwaldAPIV2ClientReact
136
+ });
137
+ import { ApiCallAsyncResourceFactory } from "@mittwald/api-client-commons/react";
138
+ __reExport(client_react_exports, react_use_promise_star);
139
+ import * as react_use_promise_star from "@mittwald/react-use-promise";
140
+ var buildAppApi = (baseClient) => ({
141
+ /** get a specific `App` */
142
+ getApp: new ApiCallAsyncResourceFactory(
143
+ appGetApp,
144
+ baseClient.app.getApp
145
+ ).getApiResource,
146
+ /** get a specific `AppInstallation` */
147
+ getAppinstallation: new ApiCallAsyncResourceFactory(
148
+ appGetAppinstallation,
149
+ baseClient.app.getAppinstallation
150
+ ).getApiResource,
151
+ /** get a specific `AppVersion` */
152
+ getAppversion: new ApiCallAsyncResourceFactory(
153
+ appGetAppversion,
154
+ baseClient.app.getAppversion
155
+ ).getApiResource,
156
+ /** get the missing requirements of an appInstallation for a specific target AppVersion */
157
+ getMissingDependenciesForAppinstallation: new ApiCallAsyncResourceFactory(
158
+ appGetMissingDependenciesForAppinstallation,
159
+ baseClient.app.getMissingDependenciesForAppinstallation
160
+ ).getApiResource,
161
+ /** get a specific `SystemSoftware` */
162
+ getSystemsoftware: new ApiCallAsyncResourceFactory(
163
+ appGetSystemsoftware,
164
+ baseClient.app.getSystemsoftware
165
+ ).getApiResource,
166
+ /** get a specific `SystemSoftwareVersion` */
167
+ getSystemsoftwareversion: new ApiCallAsyncResourceFactory(
168
+ appGetSystemsoftwareversion,
169
+ baseClient.app.getSystemsoftwareversion
170
+ ).getApiResource,
171
+ /** get all `AppInstallations` inside a specific `Project` */
172
+ listAppinstallations: new ApiCallAsyncResourceFactory(
173
+ appListAppinstallations,
174
+ baseClient.app.listAppinstallations
175
+ ).getApiResource,
176
+ /** get all available `Apps` */
177
+ listApps: new ApiCallAsyncResourceFactory(
178
+ appListApps,
179
+ baseClient.app.listApps
180
+ ).getApiResource,
181
+ /** get all `AppVersions` of a specific `App` */
182
+ listAppversions: new ApiCallAsyncResourceFactory(
183
+ appListAppversions,
184
+ baseClient.app.listAppversions
185
+ ).getApiResource,
186
+ /** get all available `SystemSoftware` */
187
+ listSystemsoftwares: new ApiCallAsyncResourceFactory(
188
+ appListSystemsoftwares,
189
+ baseClient.app.listSystemsoftwares
190
+ ).getApiResource,
191
+ /** get all available `SystemSoftwareVersions` of a specific `SystemSoftware` */
192
+ listSystemsoftwareversions: new ApiCallAsyncResourceFactory(
193
+ appListSystemsoftwareversions,
194
+ baseClient.app.listSystemsoftwareversions
195
+ ).getApiResource,
196
+ /** get all update candidates for a specific `AppVersion` */
197
+ listUpdateCandidatesForAppversion: new ApiCallAsyncResourceFactory(
198
+ appListUpdateCandidatesForAppversion,
199
+ baseClient.app.listUpdateCandidatesForAppversion
200
+ ).getApiResource,
201
+ /** get runtime status of a specific `AppInstallation` */
202
+ retrieveStatus: new ApiCallAsyncResourceFactory(
203
+ appRetrieveStatus,
204
+ baseClient.app.retrieveStatus
205
+ ).getApiResource
206
+ });
207
+ var buildArticleApi = (baseClient) => ({
208
+ /** Get an Article. */
209
+ getArticle: new ApiCallAsyncResourceFactory(
210
+ articleGetArticle,
211
+ baseClient.article.getArticle
212
+ ).getApiResource,
213
+ /** List Articles. */
214
+ listArticles: new ApiCallAsyncResourceFactory(
215
+ articleListArticles,
216
+ baseClient.article.listArticles
217
+ ).getApiResource
218
+ });
219
+ var buildBackupApi = (baseClient) => ({
220
+ /** List BackupSchedules belonging to a Project. */
221
+ listProjectBackupSchedules: new ApiCallAsyncResourceFactory(
222
+ backupListProjectBackupSchedules,
223
+ baseClient.backup.listProjectBackupSchedules
224
+ ).getApiResource,
225
+ /** List Backups belonging to a Project. */
226
+ listProjectBackups: new ApiCallAsyncResourceFactory(
227
+ backupListProjectBackups,
228
+ baseClient.backup.listProjectBackups
229
+ ).getApiResource,
230
+ /** Get a ProjectBackupSchedule. */
231
+ getProjectBackupSchedule: new ApiCallAsyncResourceFactory(
232
+ backupGetProjectBackupSchedule,
233
+ baseClient.backup.getProjectBackupSchedule
234
+ ).getApiResource,
235
+ /** Get a ProjectBackup. */
236
+ getProjectBackup: new ApiCallAsyncResourceFactory(
237
+ backupGetProjectBackup,
238
+ baseClient.backup.getProjectBackup
239
+ ).getApiResource
240
+ });
241
+ var buildContractApi = (baseClient) => ({
242
+ /** Return the BaseItem of the Contract with the given ID. */
243
+ getBaseItemOfContract: new ApiCallAsyncResourceFactory(
244
+ contractGetBaseItemOfContract,
245
+ baseClient.contract.getBaseItemOfContract
246
+ ).getApiResource,
247
+ /** Return the Contract for the given Domain. */
248
+ getDetailOfContractByDomain: new ApiCallAsyncResourceFactory(
249
+ contractGetDetailOfContractByDomain,
250
+ baseClient.contract.getDetailOfContractByDomain
251
+ ).getApiResource,
252
+ /** Return the Contract for the given Project. */
253
+ getDetailOfContractByProject: new ApiCallAsyncResourceFactory(
254
+ contractGetDetailOfContractByProject,
255
+ baseClient.contract.getDetailOfContractByProject
256
+ ).getApiResource,
257
+ /** Return the Contract for the given Server. */
258
+ getDetailOfContractByServer: new ApiCallAsyncResourceFactory(
259
+ contractGetDetailOfContractByServer,
260
+ baseClient.contract.getDetailOfContractByServer
261
+ ).getApiResource,
262
+ /** Get the ContractItem with the given ID. */
263
+ getDetailOfContractItem: new ApiCallAsyncResourceFactory(
264
+ contractGetDetailOfContractItem,
265
+ baseClient.contract.getDetailOfContractItem
266
+ ).getApiResource,
267
+ /** Returns the Contract with the given ID. */
268
+ getDetailOfContract: new ApiCallAsyncResourceFactory(
269
+ contractGetDetailOfContract,
270
+ baseClient.contract.getDetailOfContract
271
+ ).getApiResource,
272
+ /** Return the next TerminationDate for the ContractItem with the given ID. */
273
+ getNextTerminationDateForItem: new ApiCallAsyncResourceFactory(
274
+ contractGetNextTerminationDateForItem,
275
+ baseClient.contract.getNextTerminationDateForItem
276
+ ).getApiResource,
277
+ /** Return a list of Contracts for the given Customer. */
278
+ listContracts: new ApiCallAsyncResourceFactory(
279
+ contractListContracts,
280
+ baseClient.contract.listContracts
281
+ ).getApiResource,
282
+ /** Get details of an Invoice. */
283
+ invoiceDetailOfInvoice: new ApiCallAsyncResourceFactory(
284
+ invoiceDetailOfInvoice,
285
+ baseClient.contract.invoiceDetailOfInvoice
286
+ ).getApiResource,
287
+ /** Get InvoiceSettings of a Customer. */
288
+ invoiceGetDetailOfInvoiceSettings: new ApiCallAsyncResourceFactory(
289
+ invoiceGetDetailOfInvoiceSettings,
290
+ baseClient.contract.invoiceGetDetailOfInvoiceSettings
291
+ ).getApiResource,
292
+ /** List Invoices of a Customer. */
293
+ invoiceListCustomerInvoices: new ApiCallAsyncResourceFactory(
294
+ invoiceListCustomerInvoices,
295
+ baseClient.contract.invoiceListCustomerInvoices
296
+ ).getApiResource,
297
+ /** Get Order for Customer. */
298
+ orderGetOrder: new ApiCallAsyncResourceFactory(
299
+ orderGetOrder,
300
+ baseClient.contract.orderGetOrder
301
+ ).getApiResource,
302
+ /** Get list of Orders of a Customer. */
303
+ orderListCustomerOrders: new ApiCallAsyncResourceFactory(
304
+ orderListCustomerOrders,
305
+ baseClient.contract.orderListCustomerOrders
306
+ ).getApiResource,
307
+ /** Get list of Orders of a Project. */
308
+ orderListProjectOrders: new ApiCallAsyncResourceFactory(
309
+ orderListProjectOrders,
310
+ baseClient.contract.orderListProjectOrders
311
+ ).getApiResource
312
+ });
313
+ var buildConversationApi = (baseClient) => ({
314
+ /** Get all conversation the authenticated user has created or has access to. */
315
+ listConversations: new ApiCallAsyncResourceFactory(
316
+ conversationListConversations,
317
+ baseClient.conversation.listConversations
318
+ ).getApiResource,
319
+ /** Get all message of the conversation. */
320
+ listMessagesByConversation: new ApiCallAsyncResourceFactory(
321
+ conversationListMessagesByConversation,
322
+ baseClient.conversation.listMessagesByConversation
323
+ ).getApiResource,
324
+ /** Get a specific conversation category. */
325
+ getCategory: new ApiCallAsyncResourceFactory(
326
+ conversationGetCategory,
327
+ baseClient.conversation.getCategory
328
+ ).getApiResource,
329
+ /** Get a support conversation. */
330
+ getConversation: new ApiCallAsyncResourceFactory(
331
+ conversationGetConversation,
332
+ baseClient.conversation.getConversation
333
+ ).getApiResource,
334
+ /** Get all conversation categories. */
335
+ listCategories: new ApiCallAsyncResourceFactory(
336
+ conversationListCategories,
337
+ baseClient.conversation.listCategories
338
+ ).getApiResource
339
+ });
340
+ var buildCronjobApi = (baseClient) => ({
341
+ /** List Cronjobs belonging to a Project. */
342
+ listCronjobs: new ApiCallAsyncResourceFactory(
343
+ cronjobListCronjobs,
344
+ baseClient.cronjob.listCronjobs
345
+ ).getApiResource,
346
+ /** List CronjobExecutions belonging to a Cronjob. */
347
+ listExecutions: new ApiCallAsyncResourceFactory(
348
+ cronjobListExecutions,
349
+ baseClient.cronjob.listExecutions
350
+ ).getApiResource,
351
+ /** Get a Cronjob. */
352
+ getCronjob: new ApiCallAsyncResourceFactory(
353
+ cronjobGetCronjob,
354
+ baseClient.cronjob.getCronjob
355
+ ).getApiResource,
356
+ /** Get a CronjobExecution. */
357
+ getExecution: new ApiCallAsyncResourceFactory(
358
+ cronjobGetExecution,
359
+ baseClient.cronjob.getExecution
360
+ ).getApiResource
361
+ });
362
+ var buildCustomerApi = (baseClient) => ({
363
+ /** Get all customer categories. */
364
+ listOfCustomerCategories: new ApiCallAsyncResourceFactory(
365
+ customerListOfCustomerCategories,
366
+ baseClient.customer.listOfCustomerCategories
367
+ ).getApiResource,
368
+ /** Get all customer profiles the authenticated user has access to. */
369
+ listCustomers: new ApiCallAsyncResourceFactory(
370
+ customerListCustomers,
371
+ baseClient.customer.listCustomers
372
+ ).getApiResource,
373
+ /** Get a customer category. */
374
+ getCustomerCategory: new ApiCallAsyncResourceFactory(
375
+ customerGetCustomerCategory,
376
+ baseClient.customer.getCustomerCategory
377
+ ).getApiResource,
378
+ /** Get a CustomerInvite. */
379
+ getCustomerInvite: new ApiCallAsyncResourceFactory(
380
+ customerGetCustomerInvite,
381
+ baseClient.customer.getCustomerInvite
382
+ ).getApiResource,
383
+ /** Get a CustomerMembership. */
384
+ getCustomerMembership: new ApiCallAsyncResourceFactory(
385
+ customerGetCustomerMembership,
386
+ baseClient.customer.getCustomerMembership
387
+ ).getApiResource,
388
+ /** Get a customer profile. */
389
+ getCustomer: new ApiCallAsyncResourceFactory(
390
+ customerGetCustomer,
391
+ baseClient.customer.getCustomer
392
+ ).getApiResource,
393
+ /** Get a CustomerInvite by token. */
394
+ getCustomerTokenInvite: new ApiCallAsyncResourceFactory(
395
+ customerGetCustomerTokenInvite,
396
+ baseClient.customer.getCustomerTokenInvite
397
+ ).getApiResource,
398
+ /** Check if the customer profile has a valid contract partner configured. */
399
+ isCustomerLegallyCompetent: new ApiCallAsyncResourceFactory(
400
+ customerIsCustomerLegallyCompetent,
401
+ baseClient.customer.isCustomerLegallyCompetent
402
+ ).getApiResource,
403
+ /** List CustomerInvites belonging to the executing user. */
404
+ listCustomerInvites: new ApiCallAsyncResourceFactory(
405
+ customerListCustomerInvites,
406
+ baseClient.customer.listCustomerInvites
407
+ ).getApiResource,
408
+ /** List CustomerMemberships belonging to the executing user. */
409
+ listCustomerMemberships: new ApiCallAsyncResourceFactory(
410
+ customerListCustomerMemberships,
411
+ baseClient.customer.listCustomerMemberships
412
+ ).getApiResource,
413
+ /** List Invites belonging to a Customer. */
414
+ listInvitesForCustomer: new ApiCallAsyncResourceFactory(
415
+ customerListInvitesForCustomer,
416
+ baseClient.customer.listInvitesForCustomer
417
+ ).getApiResource,
418
+ /** List Memberships belonging to a Customer. */
419
+ listMembershipsForCustomer: new ApiCallAsyncResourceFactory(
420
+ customerListMembershipsForCustomer,
421
+ baseClient.customer.listMembershipsForCustomer
422
+ ).getApiResource
423
+ });
424
+ var buildDatabaseApi = (baseClient) => ({
425
+ /** List MySQLDatabases belonging to a Project. */
426
+ listMysqlDatabases: new ApiCallAsyncResourceFactory(
427
+ databaseListMysqlDatabases,
428
+ baseClient.database.listMysqlDatabases
429
+ ).getApiResource,
430
+ /** List MySQLUsers belonging to a Database. */
431
+ listMysqlUsers: new ApiCallAsyncResourceFactory(
432
+ databaseListMysqlUsers,
433
+ baseClient.database.listMysqlUsers
434
+ ).getApiResource,
435
+ /** List RedisDatabases belonging to a Project. */
436
+ listRedisDatabases: new ApiCallAsyncResourceFactory(
437
+ databaseListRedisDatabases,
438
+ baseClient.database.listRedisDatabases
439
+ ).getApiResource,
440
+ /** Get a MySQLDatabase. */
441
+ getMysqlDatabase: new ApiCallAsyncResourceFactory(
442
+ databaseGetMysqlDatabase,
443
+ baseClient.database.getMysqlDatabase
444
+ ).getApiResource,
445
+ /** Get a MySQLUser. */
446
+ getMysqlUser: new ApiCallAsyncResourceFactory(
447
+ databaseGetMysqlUser,
448
+ baseClient.database.getMysqlUser
449
+ ).getApiResource,
450
+ /** Get a RedisDatabase. */
451
+ getRedisDatabase: new ApiCallAsyncResourceFactory(
452
+ databaseGetRedisDatabase,
453
+ baseClient.database.getRedisDatabase
454
+ ).getApiResource,
455
+ /** Get a MySQLUser's PhpMyAdmin-URL. */
456
+ getMysqlUserPhpMyAdminUrl: new ApiCallAsyncResourceFactory(
457
+ databaseGetMysqlUserPhpMyAdminUrl,
458
+ baseClient.database.getMysqlUserPhpMyAdminUrl
459
+ ).getApiResource,
460
+ /** List available MySQL character sets and collations, optionally filtered by a MySQLVersion. */
461
+ listMysqlCharsets: new ApiCallAsyncResourceFactory(
462
+ databaseListMysqlCharsets,
463
+ baseClient.database.listMysqlCharsets
464
+ ).getApiResource,
465
+ /** List MySQLVersions. */
466
+ listMysqlVersions: new ApiCallAsyncResourceFactory(
467
+ databaseListMysqlVersions,
468
+ baseClient.database.listMysqlVersions
469
+ ).getApiResource,
470
+ /** List RedisVersions. */
471
+ listRedisVersions: new ApiCallAsyncResourceFactory(
472
+ databaseListRedisVersions,
473
+ baseClient.database.listRedisVersions
474
+ ).getApiResource
475
+ });
476
+ var buildDomainApi = (baseClient) => ({
477
+ /** Get a DNSZone. */
478
+ dnsGetDnsZone: new ApiCallAsyncResourceFactory(
479
+ dnsGetDnsZone,
480
+ baseClient.domain.dnsGetDnsZone
481
+ ).getApiResource,
482
+ /** List DNSZones belonging to a Project. */
483
+ dnsListDnsZones: new ApiCallAsyncResourceFactory(
484
+ dnsListDnsZones,
485
+ baseClient.domain.dnsListDnsZones
486
+ ).getApiResource,
487
+ /** Get a Domain. */
488
+ getDomain: new ApiCallAsyncResourceFactory(
489
+ domainGetDomain,
490
+ baseClient.domain.getDomain
491
+ ).getApiResource,
492
+ /** Get a DomainOwnership. */
493
+ getDomainOwnership: new ApiCallAsyncResourceFactory(
494
+ domainGetDomainOwnership,
495
+ baseClient.domain.getDomainOwnership
496
+ ).getApiResource,
497
+ /** Get File Service Reference for a Screenshot of a domain. */
498
+ getScreenshotForDomain: new ApiCallAsyncResourceFactory(
499
+ domainGetScreenshotForDomain,
500
+ baseClient.domain.getScreenshotForDomain
501
+ ).getApiResource,
502
+ /** List the DomainOwnerships of a project. */
503
+ listDomainOwnerships: new ApiCallAsyncResourceFactory(
504
+ domainListDomainOwnerships,
505
+ baseClient.domain.listDomainOwnerships
506
+ ).getApiResource,
507
+ /** List Domains belonging to a Project. */
508
+ listDomains: new ApiCallAsyncResourceFactory(
509
+ domainListDomains,
510
+ baseClient.domain.listDomains
511
+ ).getApiResource,
512
+ /** List the contact schemas for a TLD. */
513
+ listTldContactSchemas: new ApiCallAsyncResourceFactory(
514
+ domainListTldContactSchemas,
515
+ baseClient.domain.listTldContactSchemas
516
+ ).getApiResource,
517
+ /** List TLDs. */
518
+ listTlds: new ApiCallAsyncResourceFactory(
519
+ domainListTlds,
520
+ baseClient.domain.listTlds
521
+ ).getApiResource,
522
+ /** Get an Ingress. */
523
+ ingressGetSpecific: new ApiCallAsyncResourceFactory(
524
+ ingressGetSpecific,
525
+ baseClient.domain.ingressGetSpecific
526
+ ).getApiResource,
527
+ /** List Ingresses the user has access to. */
528
+ ingressListAccessible: new ApiCallAsyncResourceFactory(
529
+ ingressListAccessible,
530
+ baseClient.domain.ingressListAccessible
531
+ ).getApiResource,
532
+ /** List Ingresses belonging to a project. */
533
+ ingressListForProject: new ApiCallAsyncResourceFactory(
534
+ ingressListForProject,
535
+ baseClient.domain.ingressListForProject
536
+ ).getApiResource
537
+ });
538
+ var buildFileApi = (baseClient) => ({
539
+ /** Get a File's meta. */
540
+ getFileMeta: new ApiCallAsyncResourceFactory(
541
+ fileGetFileMeta,
542
+ baseClient.file.getFileMeta
543
+ ).getApiResource,
544
+ /** Get a Token's upload rules. */
545
+ getFileTokenRules: new ApiCallAsyncResourceFactory(
546
+ fileGetFileTokenRules,
547
+ baseClient.file.getFileTokenRules
548
+ ).getApiResource,
549
+ /** Get a Type's upload rules. */
550
+ getFileTypeRules: new ApiCallAsyncResourceFactory(
551
+ fileGetFileTypeRules,
552
+ baseClient.file.getFileTypeRules
553
+ ).getApiResource,
554
+ /** Get a File. */
555
+ getFile: new ApiCallAsyncResourceFactory(
556
+ fileGetFile,
557
+ baseClient.file.getFile
558
+ ).getApiResource
559
+ });
560
+ var buildMailApi = (baseClient) => ({
561
+ /** List DeliveryBoxes belonging to a Project. */
562
+ listDeliveryBoxes: new ApiCallAsyncResourceFactory(
563
+ mailListDeliveryBoxes,
564
+ baseClient.mail.listDeliveryBoxes
565
+ ).getApiResource,
566
+ /** List MailAddresses belonging to a Project. */
567
+ listMailAddresses: new ApiCallAsyncResourceFactory(
568
+ mailListMailAddresses,
569
+ baseClient.mail.listMailAddresses
570
+ ).getApiResource,
571
+ /** Get a DeliveryBox. */
572
+ getDeliveryBox: new ApiCallAsyncResourceFactory(
573
+ mailGetDeliveryBox,
574
+ baseClient.mail.getDeliveryBox
575
+ ).getApiResource,
576
+ /** Get a MailAddress. */
577
+ getMailAddress: new ApiCallAsyncResourceFactory(
578
+ mailGetMailAddress,
579
+ baseClient.mail.getMailAddress
580
+ ).getApiResource,
581
+ /** List mail settings of a Project. */
582
+ listProjectMailSettings: new ApiCallAsyncResourceFactory(
583
+ mailListProjectMailSettings,
584
+ baseClient.mail.listProjectMailSettings
585
+ ).getApiResource
586
+ });
587
+ var buildNotificationApi = (baseClient) => ({
588
+ /** Getting the subscription status of the subscription. */
589
+ newsletterGetInfo: new ApiCallAsyncResourceFactory(
590
+ newsletterGetInfo,
591
+ baseClient.notification.newsletterGetInfo
592
+ ).getApiResource,
593
+ /** Get the counts for unread notifications of the user. */
594
+ scountUnreadNotifications: new ApiCallAsyncResourceFactory(
595
+ notificationsCountUnreadNotifications,
596
+ baseClient.notification.scountUnreadNotifications
597
+ ).getApiResource,
598
+ /** List all unread notifications. */
599
+ slistNotifications: new ApiCallAsyncResourceFactory(
600
+ notificationsListNotifications,
601
+ baseClient.notification.slistNotifications
602
+ ).getApiResource
603
+ });
604
+ var buildPageInsightsApi = (baseClient) => ({
605
+ /** Get detailed performance data for a given domain and path. */
606
+ pageinsightsGetPerformanceData: new ApiCallAsyncResourceFactory(
607
+ pageinsightsGetPerformanceData,
608
+ baseClient.pageInsights.pageinsightsGetPerformanceData
609
+ ).getApiResource,
610
+ /** List websites (specified as domain and path) from a project where performance data is available. */
611
+ pageinsightsListPerformanceDataForProject: new ApiCallAsyncResourceFactory(
612
+ pageinsightsListPerformanceDataForProject,
613
+ baseClient.pageInsights.pageinsightsListPerformanceDataForProject
614
+ ).getApiResource
615
+ });
616
+ var buildUserApi = (baseClient) => ({
617
+ /** Get a password policy. */
618
+ passwordValidationGetPasswordPolicy: new ApiCallAsyncResourceFactory(
619
+ passwordValidationGetPasswordPolicy,
620
+ baseClient.user.passwordValidationGetPasswordPolicy
621
+ ).getApiResource,
622
+ /** Get your verified Email-Address. */
623
+ getOwnEmail: new ApiCallAsyncResourceFactory(
624
+ userGetOwnEmail,
625
+ baseClient.user.getOwnEmail
626
+ ).getApiResource,
627
+ /** Get your current multi factor auth status. */
628
+ getMfaStatus: new ApiCallAsyncResourceFactory(
629
+ userGetMfaStatus,
630
+ baseClient.user.getMfaStatus
631
+ ).getApiResource,
632
+ /** List all of your ApiTokens. */
633
+ listApiTokens: new ApiCallAsyncResourceFactory(
634
+ userListApiTokens,
635
+ baseClient.user.listApiTokens
636
+ ).getApiResource,
637
+ /** Get your stored ssh-keys. */
638
+ listSshKeys: new ApiCallAsyncResourceFactory(
639
+ userListSshKeys,
640
+ baseClient.user.listSshKeys
641
+ ).getApiResource,
642
+ /** Get a specific ApiToken. */
643
+ getApiToken: new ApiCallAsyncResourceFactory(
644
+ userGetApiToken,
645
+ baseClient.user.getApiToken
646
+ ).getApiResource,
647
+ /** Get a specific stored ssh-key. */
648
+ getSshKey: new ApiCallAsyncResourceFactory(
649
+ userGetSshKey,
650
+ baseClient.user.getSshKey
651
+ ).getApiResource,
652
+ /** Get your account information. */
653
+ getOwnAccount: new ApiCallAsyncResourceFactory(
654
+ userGetOwnAccount,
655
+ baseClient.user.getOwnAccount
656
+ ).getApiResource,
657
+ /** The timestamp of your latest password change. */
658
+ getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(
659
+ userGetPasswordUpdatedAt,
660
+ baseClient.user.getPasswordUpdatedAt
661
+ ).getApiResource,
662
+ /** Get personalized settings. */
663
+ getPersonalizedSettings: new ApiCallAsyncResourceFactory(
664
+ userGetPersonalizedSettings,
665
+ baseClient.user.getPersonalizedSettings
666
+ ).getApiResource,
667
+ /** Get a specific session. */
668
+ getSession: new ApiCallAsyncResourceFactory(
669
+ userGetSession,
670
+ baseClient.user.getSession
671
+ ).getApiResource,
672
+ /** Get profile information for a user. */
673
+ getUser: new ApiCallAsyncResourceFactory(
674
+ userGetUser,
675
+ baseClient.user.getUser
676
+ ).getApiResource,
677
+ /** Submitted feedback of the given user. */
678
+ listFeedback: new ApiCallAsyncResourceFactory(
679
+ userListFeedback,
680
+ baseClient.user.listFeedback
681
+ ).getApiResource,
682
+ /** List all sessions. */
683
+ listSessions: new ApiCallAsyncResourceFactory(
684
+ userListSessions,
685
+ baseClient.user.listSessions
686
+ ).getApiResource,
687
+ /** Request a support code. */
688
+ supportCodeRequest: new ApiCallAsyncResourceFactory(
689
+ userSupportCodeRequest,
690
+ baseClient.user.supportCodeRequest
691
+ ).getApiResource
692
+ });
693
+ var buildProjectApi = (baseClient) => ({
694
+ /** Get a ProjectInvite. */
695
+ getProjectInvite: new ApiCallAsyncResourceFactory(
696
+ projectGetProjectInvite,
697
+ baseClient.project.getProjectInvite
698
+ ).getApiResource,
699
+ /** Get a ProjectMembership */
700
+ getProjectMembership: new ApiCallAsyncResourceFactory(
701
+ projectGetProjectMembership,
702
+ baseClient.project.getProjectMembership
703
+ ).getApiResource,
704
+ /** Get a Project. */
705
+ getProject: new ApiCallAsyncResourceFactory(
706
+ projectGetProject,
707
+ baseClient.project.getProject
708
+ ).getApiResource,
709
+ /** Get a ProjectInvite by token. */
710
+ getProjectTokenInvite: new ApiCallAsyncResourceFactory(
711
+ projectGetProjectTokenInvite,
712
+ baseClient.project.getProjectTokenInvite
713
+ ).getApiResource,
714
+ /** Get the executing user's membership in a Project. */
715
+ getSelfMembershipForProject: new ApiCallAsyncResourceFactory(
716
+ projectGetSelfMembershipForProject,
717
+ baseClient.project.getSelfMembershipForProject
718
+ ).getApiResource,
719
+ /** Get a Server. */
720
+ getServer: new ApiCallAsyncResourceFactory(
721
+ projectGetServer,
722
+ baseClient.project.getServer
723
+ ).getApiResource,
724
+ /** List Invites belonging to a Project. */
725
+ listInvitesForProject: new ApiCallAsyncResourceFactory(
726
+ projectListInvitesForProject,
727
+ baseClient.project.listInvitesForProject
728
+ ).getApiResource,
729
+ /** List Memberships belonging to a Project. */
730
+ listMembershipsForProject: new ApiCallAsyncResourceFactory(
731
+ projectListMembershipsForProject,
732
+ baseClient.project.listMembershipsForProject
733
+ ).getApiResource,
734
+ /** List ProjectInvites belonging to the executing user. */
735
+ listProjectInvites: new ApiCallAsyncResourceFactory(
736
+ projectListProjectInvites,
737
+ baseClient.project.listProjectInvites
738
+ ).getApiResource,
739
+ /** List ProjectMemberships belonging to the executing user. */
740
+ listProjectMemberships: new ApiCallAsyncResourceFactory(
741
+ projectListProjectMemberships,
742
+ baseClient.project.listProjectMemberships
743
+ ).getApiResource,
744
+ /** List Projects belonging to the executing user. */
745
+ listProjects: new ApiCallAsyncResourceFactory(
746
+ projectListProjects,
747
+ baseClient.project.listProjects
748
+ ).getApiResource,
749
+ /** List Servers belonging to the executing user. */
750
+ listServers: new ApiCallAsyncResourceFactory(
751
+ projectListServers,
752
+ baseClient.project.listServers
753
+ ).getApiResource
754
+ });
755
+ var buildProjectFileSystemApi = (baseClient) => ({
756
+ /** List directories belonging to a Project. */
757
+ getDirectories: new ApiCallAsyncResourceFactory(
758
+ projectFileSystemGetDirectories,
759
+ baseClient.projectFileSystem.getDirectories
760
+ ).getApiResource,
761
+ /** Get a Project directory filesystem usage. */
762
+ getDiskUsage: new ApiCallAsyncResourceFactory(
763
+ projectFileSystemGetDiskUsage,
764
+ baseClient.projectFileSystem.getDiskUsage
765
+ ).getApiResource,
766
+ /** Get a Project file's content. */
767
+ getFileContent: new ApiCallAsyncResourceFactory(
768
+ projectFileSystemGetFileContent,
769
+ baseClient.projectFileSystem.getFileContent
770
+ ).getApiResource,
771
+ /** Get a Project's file/filesystem authorization token. */
772
+ getJwt: new ApiCallAsyncResourceFactory(
773
+ projectFileSystemGetJwt,
774
+ baseClient.projectFileSystem.getJwt
775
+ ).getApiResource,
776
+ /** Get a Project file's information. */
777
+ listFiles: new ApiCallAsyncResourceFactory(
778
+ projectFileSystemListFiles,
779
+ baseClient.projectFileSystem.listFiles
780
+ ).getApiResource
781
+ });
782
+ var buildSshsftpUserApi = (baseClient) => ({
783
+ /** Get all SFTPUsers for a Project. */
784
+ sftpUserListSftpUsers: new ApiCallAsyncResourceFactory(
785
+ sftpUserListSftpUsers,
786
+ baseClient.sshsftpUser.sftpUserListSftpUsers
787
+ ).getApiResource,
788
+ /** Get an SFTPUser. */
789
+ sftpUserGetSftpUser: new ApiCallAsyncResourceFactory(
790
+ sftpUserGetSftpUser,
791
+ baseClient.sshsftpUser.sftpUserGetSftpUser
792
+ ).getApiResource,
793
+ /** Get all SSHUsers for a Project. */
794
+ sshUserListSshUsers: new ApiCallAsyncResourceFactory(
795
+ sshUserListSshUsers,
796
+ baseClient.sshsftpUser.sshUserListSshUsers
797
+ ).getApiResource,
798
+ /** Get an SSHUser. */
799
+ sshUserGetSshUser: new ApiCallAsyncResourceFactory(
800
+ sshUserGetSshUser,
801
+ baseClient.sshsftpUser.sshUserGetSshUser
802
+ ).getApiResource
803
+ });
804
+ var MittwaldAPIV2ClientReact = class _MittwaldAPIV2ClientReact {
805
+ constructor(baseClient) {
806
+ this.app = buildAppApi(baseClient);
807
+ this.article = buildArticleApi(baseClient);
808
+ this.backup = buildBackupApi(baseClient);
809
+ this.contract = buildContractApi(baseClient);
810
+ this.conversation = buildConversationApi(baseClient);
811
+ this.cronjob = buildCronjobApi(baseClient);
812
+ this.customer = buildCustomerApi(baseClient);
813
+ this.database = buildDatabaseApi(baseClient);
814
+ this.domain = buildDomainApi(baseClient);
815
+ this.file = buildFileApi(baseClient);
816
+ this.mail = buildMailApi(baseClient);
817
+ this.notification = buildNotificationApi(baseClient);
818
+ this.pageInsights = buildPageInsightsApi(baseClient);
819
+ this.user = buildUserApi(baseClient);
820
+ this.project = buildProjectApi(baseClient);
821
+ this.projectFileSystem = buildProjectFileSystemApi(baseClient);
822
+ this.sshsftpUser = buildSshsftpUserApi(baseClient);
823
+ }
824
+ static fromBaseClient(baseClient) {
825
+ return new _MittwaldAPIV2ClientReact(baseClient);
826
+ }
827
+ };
828
+ export {
829
+ MittwaldAPIV2ClientReact
830
+ };