@mittwald/api-client 3.0.3 → 3.0.4

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.
@@ -0,0 +1,332 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MittwaldAPIV2ClientReact = void 0;
30
+ const react_1 = require("@mittwald/api-client-commons/react");
31
+ const descriptors = __importStar(require("./descriptors.js"));
32
+ __exportStar(require("@mittwald/react-use-promise/types"), exports);
33
+ const buildAppApi = (baseClient) => ({
34
+ /** get a specific `App` */
35
+ getApp: new react_1.ApiCallAsyncResourceFactory(descriptors.appGetApp, baseClient.app.getApp).getApiResource,
36
+ /** get a specific `AppInstallation` */
37
+ getAppinstallation: new react_1.ApiCallAsyncResourceFactory(descriptors.appGetAppinstallation, baseClient.app.getAppinstallation).getApiResource,
38
+ /** get a specific `AppVersion` */
39
+ getAppversion: new react_1.ApiCallAsyncResourceFactory(descriptors.appGetAppversion, baseClient.app.getAppversion).getApiResource,
40
+ /** get the missing requirements of an appInstallation for a specific target AppVersion */
41
+ getMissingDependenciesForAppinstallation: new react_1.ApiCallAsyncResourceFactory(descriptors.appGetMissingDependenciesForAppinstallation, baseClient.app.getMissingDependenciesForAppinstallation).getApiResource,
42
+ /** get a specific `SystemSoftware` */
43
+ getSystemsoftware: new react_1.ApiCallAsyncResourceFactory(descriptors.appGetSystemsoftware, baseClient.app.getSystemsoftware).getApiResource,
44
+ /** get a specific `SystemSoftwareVersion` */
45
+ getSystemsoftwareversion: new react_1.ApiCallAsyncResourceFactory(descriptors.appGetSystemsoftwareversion, baseClient.app.getSystemsoftwareversion).getApiResource,
46
+ /** get all `AppInstallations` inside a specific `Project` */
47
+ listAppinstallations: new react_1.ApiCallAsyncResourceFactory(descriptors.appListAppinstallations, baseClient.app.listAppinstallations).getApiResource,
48
+ /** get all available `Apps` */
49
+ listApps: new react_1.ApiCallAsyncResourceFactory(descriptors.appListApps, baseClient.app.listApps).getApiResource,
50
+ /** get all `AppVersions` of a specific `App` */
51
+ listAppversions: new react_1.ApiCallAsyncResourceFactory(descriptors.appListAppversions, baseClient.app.listAppversions).getApiResource,
52
+ /** get all available `SystemSoftware` */
53
+ listSystemsoftwares: new react_1.ApiCallAsyncResourceFactory(descriptors.appListSystemsoftwares, baseClient.app.listSystemsoftwares).getApiResource,
54
+ /** get all available `SystemSoftwareVersions` of a specific `SystemSoftware` */
55
+ listSystemsoftwareversions: new react_1.ApiCallAsyncResourceFactory(descriptors.appListSystemsoftwareversions, baseClient.app.listSystemsoftwareversions).getApiResource,
56
+ /** get all update candidates for a specific `AppVersion` */
57
+ listUpdateCandidatesForAppversion: new react_1.ApiCallAsyncResourceFactory(descriptors.appListUpdateCandidatesForAppversion, baseClient.app.listUpdateCandidatesForAppversion).getApiResource,
58
+ /** get runtime status of a specific `AppInstallation` */
59
+ retrieveStatus: new react_1.ApiCallAsyncResourceFactory(descriptors.appRetrieveStatus, baseClient.app.retrieveStatus).getApiResource,
60
+ });
61
+ const buildArticleApi = (baseClient) => ({
62
+ /** Get an Article. */
63
+ getArticle: new react_1.ApiCallAsyncResourceFactory(descriptors.articleGetArticle, baseClient.article.getArticle).getApiResource,
64
+ /** List Articles. */
65
+ listArticles: new react_1.ApiCallAsyncResourceFactory(descriptors.articleListArticles, baseClient.article.listArticles).getApiResource,
66
+ });
67
+ const buildBackupApi = (baseClient) => ({
68
+ /** List BackupSchedules belonging to a Project. */
69
+ listProjectBackupSchedules: new react_1.ApiCallAsyncResourceFactory(descriptors.backupListProjectBackupSchedules, baseClient.backup.listProjectBackupSchedules).getApiResource,
70
+ /** List Backups belonging to a Project. */
71
+ listProjectBackups: new react_1.ApiCallAsyncResourceFactory(descriptors.backupListProjectBackups, baseClient.backup.listProjectBackups).getApiResource,
72
+ /** Get a ProjectBackupSchedule. */
73
+ getProjectBackupSchedule: new react_1.ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
74
+ /** Get a ProjectBackup. */
75
+ getProjectBackup: new react_1.ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
76
+ });
77
+ const buildContractApi = (baseClient) => ({
78
+ /** Return the BaseItem of the Contract with the given ID. */
79
+ getBaseItemOfContract: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource,
80
+ /** Return the Contract for the given Domain. */
81
+ getDetailOfContractByDomain: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByDomain, baseClient.contract.getDetailOfContractByDomain).getApiResource,
82
+ /** Return the Contract for the given Project. */
83
+ getDetailOfContractByProject: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByProject, baseClient.contract.getDetailOfContractByProject).getApiResource,
84
+ /** Return the Contract for the given Server. */
85
+ getDetailOfContractByServer: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByServer, baseClient.contract.getDetailOfContractByServer).getApiResource,
86
+ /** Get the ContractItem with the given ID. */
87
+ getDetailOfContractItem: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractItem, baseClient.contract.getDetailOfContractItem).getApiResource,
88
+ /** Returns the Contract with the given ID. */
89
+ getDetailOfContract: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContract, baseClient.contract.getDetailOfContract).getApiResource,
90
+ /** Return the next TerminationDate for the ContractItem with the given ID. */
91
+ getNextTerminationDateForItem: new react_1.ApiCallAsyncResourceFactory(descriptors.contractGetNextTerminationDateForItem, baseClient.contract.getNextTerminationDateForItem).getApiResource,
92
+ /** Return a list of Contracts for the given Customer. */
93
+ listContracts: new react_1.ApiCallAsyncResourceFactory(descriptors.contractListContracts, baseClient.contract.listContracts).getApiResource,
94
+ /** Get details of an Invoice. */
95
+ invoiceDetailOfInvoice: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceDetailOfInvoice, baseClient.contract.invoiceDetailOfInvoice).getApiResource,
96
+ /** Get InvoiceSettings of a Customer. */
97
+ invoiceGetDetailOfInvoiceSettings: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceGetDetailOfInvoiceSettings, baseClient.contract.invoiceGetDetailOfInvoiceSettings).getApiResource,
98
+ /** List Invoices of a Customer. */
99
+ invoiceListCustomerInvoices: new react_1.ApiCallAsyncResourceFactory(descriptors.invoiceListCustomerInvoices, baseClient.contract.invoiceListCustomerInvoices).getApiResource,
100
+ /** Get Order for Customer. */
101
+ orderGetOrder: new react_1.ApiCallAsyncResourceFactory(descriptors.orderGetOrder, baseClient.contract.orderGetOrder).getApiResource,
102
+ /** Get list of Orders of a Customer. */
103
+ orderListCustomerOrders: new react_1.ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
104
+ /** Get list of Orders of a Project. */
105
+ orderListProjectOrders: new react_1.ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
106
+ });
107
+ const buildConversationApi = (baseClient) => ({
108
+ /** Get all conversation the authenticated user has created or has access to. */
109
+ listConversations: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationListConversations, baseClient.conversation.listConversations).getApiResource,
110
+ /** Get all message of the conversation. */
111
+ listMessagesByConversation: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationListMessagesByConversation, baseClient.conversation.listMessagesByConversation).getApiResource,
112
+ /** Get a specific conversation category. */
113
+ getCategory: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetCategory, baseClient.conversation.getCategory).getApiResource,
114
+ /** Get a support conversation. */
115
+ getConversation: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationGetConversation, baseClient.conversation.getConversation).getApiResource,
116
+ /** Get all conversation categories. */
117
+ listCategories: new react_1.ApiCallAsyncResourceFactory(descriptors.conversationListCategories, baseClient.conversation.listCategories).getApiResource,
118
+ });
119
+ const buildCronjobApi = (baseClient) => ({
120
+ /** List Cronjobs belonging to a Project. */
121
+ listCronjobs: new react_1.ApiCallAsyncResourceFactory(descriptors.cronjobListCronjobs, baseClient.cronjob.listCronjobs).getApiResource,
122
+ /** List CronjobExecutions belonging to a Cronjob. */
123
+ listExecutions: new react_1.ApiCallAsyncResourceFactory(descriptors.cronjobListExecutions, baseClient.cronjob.listExecutions).getApiResource,
124
+ /** Get a Cronjob. */
125
+ getCronjob: new react_1.ApiCallAsyncResourceFactory(descriptors.cronjobGetCronjob, baseClient.cronjob.getCronjob).getApiResource,
126
+ /** Get a CronjobExecution. */
127
+ getExecution: new react_1.ApiCallAsyncResourceFactory(descriptors.cronjobGetExecution, baseClient.cronjob.getExecution).getApiResource,
128
+ });
129
+ const buildCustomerApi = (baseClient) => ({
130
+ /** Get all customer categories. */
131
+ listOfCustomerCategories: new react_1.ApiCallAsyncResourceFactory(descriptors.customerListOfCustomerCategories, baseClient.customer.listOfCustomerCategories).getApiResource,
132
+ /** Get all customer profiles the authenticated user has access to. */
133
+ listCustomers: new react_1.ApiCallAsyncResourceFactory(descriptors.customerListCustomers, baseClient.customer.listCustomers).getApiResource,
134
+ /** Get a customer category. */
135
+ getCustomerCategory: new react_1.ApiCallAsyncResourceFactory(descriptors.customerGetCustomerCategory, baseClient.customer.getCustomerCategory).getApiResource,
136
+ /** Get a CustomerInvite. */
137
+ getCustomerInvite: new react_1.ApiCallAsyncResourceFactory(descriptors.customerGetCustomerInvite, baseClient.customer.getCustomerInvite).getApiResource,
138
+ /** Get a CustomerMembership. */
139
+ getCustomerMembership: new react_1.ApiCallAsyncResourceFactory(descriptors.customerGetCustomerMembership, baseClient.customer.getCustomerMembership).getApiResource,
140
+ /** Get a customer profile. */
141
+ getCustomer: new react_1.ApiCallAsyncResourceFactory(descriptors.customerGetCustomer, baseClient.customer.getCustomer).getApiResource,
142
+ /** Get a CustomerInvite by token. */
143
+ getCustomerTokenInvite: new react_1.ApiCallAsyncResourceFactory(descriptors.customerGetCustomerTokenInvite, baseClient.customer.getCustomerTokenInvite).getApiResource,
144
+ /** Check if the customer profile has a valid contract partner configured. */
145
+ isCustomerLegallyCompetent: new react_1.ApiCallAsyncResourceFactory(descriptors.customerIsCustomerLegallyCompetent, baseClient.customer.isCustomerLegallyCompetent).getApiResource,
146
+ /** List CustomerInvites belonging to the executing user. */
147
+ listCustomerInvites: new react_1.ApiCallAsyncResourceFactory(descriptors.customerListCustomerInvites, baseClient.customer.listCustomerInvites).getApiResource,
148
+ /** List CustomerMemberships belonging to the executing user. */
149
+ listCustomerMemberships: new react_1.ApiCallAsyncResourceFactory(descriptors.customerListCustomerMemberships, baseClient.customer.listCustomerMemberships).getApiResource,
150
+ /** List Invites belonging to a Customer. */
151
+ listInvitesForCustomer: new react_1.ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
152
+ /** List Memberships belonging to a Customer. */
153
+ listMembershipsForCustomer: new react_1.ApiCallAsyncResourceFactory(descriptors.customerListMembershipsForCustomer, baseClient.customer.listMembershipsForCustomer).getApiResource,
154
+ });
155
+ const buildDatabaseApi = (baseClient) => ({
156
+ /** List MySQLDatabases belonging to a Project. */
157
+ listMysqlDatabases: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseListMysqlDatabases, baseClient.database.listMysqlDatabases).getApiResource,
158
+ /** List MySQLUsers belonging to a Database. */
159
+ listMysqlUsers: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseListMysqlUsers, baseClient.database.listMysqlUsers).getApiResource,
160
+ /** List RedisDatabases belonging to a Project. */
161
+ listRedisDatabases: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseListRedisDatabases, baseClient.database.listRedisDatabases).getApiResource,
162
+ /** Get a MySQLDatabase. */
163
+ getMysqlDatabase: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseGetMysqlDatabase, baseClient.database.getMysqlDatabase).getApiResource,
164
+ /** Get a MySQLUser. */
165
+ getMysqlUser: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseGetMysqlUser, baseClient.database.getMysqlUser).getApiResource,
166
+ /** Get a RedisDatabase. */
167
+ getRedisDatabase: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseGetRedisDatabase, baseClient.database.getRedisDatabase).getApiResource,
168
+ /** Get a MySQLUser's PhpMyAdmin-URL. */
169
+ getMysqlUserPhpMyAdminUrl: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseGetMysqlUserPhpMyAdminUrl, baseClient.database.getMysqlUserPhpMyAdminUrl).getApiResource,
170
+ /** List available MySQL character sets and collations, optionally filtered by a MySQLVersion. */
171
+ listMysqlCharsets: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseListMysqlCharsets, baseClient.database.listMysqlCharsets).getApiResource,
172
+ /** List MySQLVersions. */
173
+ listMysqlVersions: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseListMysqlVersions, baseClient.database.listMysqlVersions).getApiResource,
174
+ /** List RedisVersions. */
175
+ listRedisVersions: new react_1.ApiCallAsyncResourceFactory(descriptors.databaseListRedisVersions, baseClient.database.listRedisVersions).getApiResource,
176
+ });
177
+ const buildDomainApi = (baseClient) => ({
178
+ /** gets a specific zone */
179
+ dnsZoneGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.dnsZoneGetSpecific, baseClient.domain.dnsZoneGetSpecific).getApiResource,
180
+ /** gets all dns zones by project id */
181
+ dnsZonesForProject: new react_1.ApiCallAsyncResourceFactory(descriptors.dnsZonesForProject, baseClient.domain.dnsZonesForProject).getApiResource,
182
+ /** Get a Domain. */
183
+ getDomain: new react_1.ApiCallAsyncResourceFactory(descriptors.domainGetDomain, baseClient.domain.getDomain).getApiResource,
184
+ /** Get a HandleSchema. */
185
+ getHandleFields: new react_1.ApiCallAsyncResourceFactory(descriptors.domainGetHandleFields, baseClient.domain.getHandleFields).getApiResource,
186
+ /** Get File Service Reference for a Screenshot of a domain. */
187
+ getScreenshotForDomain: new react_1.ApiCallAsyncResourceFactory(descriptors.domainGetScreenshotForDomain, baseClient.domain.getScreenshotForDomain).getApiResource,
188
+ /** Get a domain ownership. */
189
+ getSpecificDomainOwnership: new react_1.ApiCallAsyncResourceFactory(descriptors.domainGetSpecificDomainOwnership, baseClient.domain.getSpecificDomainOwnership).getApiResource,
190
+ /** List all domain ownerships of a project. */
191
+ listDomainOwnerships: new react_1.ApiCallAsyncResourceFactory(descriptors.domainListDomainOwnerships, baseClient.domain.listDomainOwnerships).getApiResource,
192
+ /** List Domains belonging to a Project. */
193
+ listDomains: new react_1.ApiCallAsyncResourceFactory(descriptors.domainListDomains, baseClient.domain.listDomains).getApiResource,
194
+ /** Get an Ingress. */
195
+ ingressGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.ingressGetSpecific, baseClient.domain.ingressGetSpecific).getApiResource,
196
+ /** List Ingresses the user has access to. */
197
+ ingressListAccessible: new react_1.ApiCallAsyncResourceFactory(descriptors.ingressListAccessible, baseClient.domain.ingressListAccessible).getApiResource,
198
+ /** List Ingresses belonging to a project. */
199
+ ingressListForProject: new react_1.ApiCallAsyncResourceFactory(descriptors.ingressListForProject, baseClient.domain.ingressListForProject).getApiResource,
200
+ });
201
+ const buildFileApi = (baseClient) => ({
202
+ /** Get a File's meta. */
203
+ getFileMeta: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFileMeta, baseClient.file.getFileMeta).getApiResource,
204
+ /** Get a Token's upload rules. */
205
+ getFileTokenRules: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFileTokenRules, baseClient.file.getFileTokenRules).getApiResource,
206
+ /** Get a Type's upload rules. */
207
+ getFileTypeRules: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFileTypeRules, baseClient.file.getFileTypeRules).getApiResource,
208
+ /** Get a File. */
209
+ getFile: new react_1.ApiCallAsyncResourceFactory(descriptors.fileGetFile, baseClient.file.getFile).getApiResource,
210
+ });
211
+ const buildMailApi = (baseClient) => ({
212
+ /** Get all deliveryboxes by project ID */
213
+ deliveryboxList: new react_1.ApiCallAsyncResourceFactory(descriptors.mailDeliveryboxList, baseClient.mail.deliveryboxList).getApiResource,
214
+ /** Get a specific deliverybox */
215
+ deliveryboxGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.mailDeliveryboxGetSpecific, baseClient.mail.deliveryboxGetSpecific).getApiResource,
216
+ /** Get all mail addresses for a project ID */
217
+ mailaddressList: new react_1.ApiCallAsyncResourceFactory(descriptors.mailMailaddressList, baseClient.mail.mailaddressList).getApiResource,
218
+ /** Get a specific mail address */
219
+ mailaddressGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.mailMailaddressGetSpecific, baseClient.mail.mailaddressGetSpecific).getApiResource,
220
+ /** Get settings for a given project ID */
221
+ projectsettingGetSpecific: new react_1.ApiCallAsyncResourceFactory(descriptors.mailProjectsettingGetSpecific, baseClient.mail.projectsettingGetSpecific).getApiResource,
222
+ });
223
+ const buildNotificationApi = (baseClient) => ({
224
+ /** Getting the subscription status of the subscription. */
225
+ newsletterGetInfo: new react_1.ApiCallAsyncResourceFactory(descriptors.newsletterGetInfo, baseClient.notification.newsletterGetInfo).getApiResource,
226
+ /** Get the counts for unread notifications of the user. */
227
+ scountUnreadNotifications: new react_1.ApiCallAsyncResourceFactory(descriptors.notificationsCountUnreadNotifications, baseClient.notification.scountUnreadNotifications).getApiResource,
228
+ /** List all unread notifications */
229
+ slistNotifications: new react_1.ApiCallAsyncResourceFactory(descriptors.notificationsListNotifications, baseClient.notification.slistNotifications).getApiResource,
230
+ });
231
+ const buildProjectApi = (baseClient) => ({
232
+ /** Get a ProjectInvite. */
233
+ getProjectInvite: new react_1.ApiCallAsyncResourceFactory(descriptors.projectGetProjectInvite, baseClient.project.getProjectInvite).getApiResource,
234
+ /** Get a ProjectMembership */
235
+ getProjectMembership: new react_1.ApiCallAsyncResourceFactory(descriptors.projectGetProjectMembership, baseClient.project.getProjectMembership).getApiResource,
236
+ /** Get a ProjectInvite by token. */
237
+ getProjectTokenInvite: new react_1.ApiCallAsyncResourceFactory(descriptors.projectGetProjectTokenInvite, baseClient.project.getProjectTokenInvite).getApiResource,
238
+ /** Get a Project. */
239
+ getProject: new react_1.ApiCallAsyncResourceFactory(descriptors.projectGetProject, baseClient.project.getProject).getApiResource,
240
+ /** Get the executing user's membership in a Project. */
241
+ getSelfMembershipForProject: new react_1.ApiCallAsyncResourceFactory(descriptors.projectGetSelfMembershipForProject, baseClient.project.getSelfMembershipForProject).getApiResource,
242
+ /** Get a Server. */
243
+ getServer: new react_1.ApiCallAsyncResourceFactory(descriptors.projectGetServer, baseClient.project.getServer).getApiResource,
244
+ /** List Invites belonging to a Project. */
245
+ listInvitesForProject: new react_1.ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
246
+ /** List Memberships belonging to a Project. */
247
+ listMembershipsForProject: new react_1.ApiCallAsyncResourceFactory(descriptors.projectListMembershipsForProject, baseClient.project.listMembershipsForProject).getApiResource,
248
+ /** List ProjectInvites belonging to the executing user. */
249
+ listProjectInvites: new react_1.ApiCallAsyncResourceFactory(descriptors.projectListProjectInvites, baseClient.project.listProjectInvites).getApiResource,
250
+ /** List ProjectMemberships belonging to the executing user. */
251
+ listProjectMemberships: new react_1.ApiCallAsyncResourceFactory(descriptors.projectListProjectMemberships, baseClient.project.listProjectMemberships).getApiResource,
252
+ /** List Projects belonging to the executing user. */
253
+ listProjects: new react_1.ApiCallAsyncResourceFactory(descriptors.projectListProjects, baseClient.project.listProjects).getApiResource,
254
+ /** List Servers belonging to the executing user. */
255
+ listServers: new react_1.ApiCallAsyncResourceFactory(descriptors.projectListServers, baseClient.project.listServers).getApiResource,
256
+ });
257
+ const buildProjectFileSystemApi = (baseClient) => ({
258
+ /** List directories belonging to a Project. */
259
+ getDirectories: new react_1.ApiCallAsyncResourceFactory(descriptors.projectFileSystemGetDirectories, baseClient.projectFileSystem.getDirectories).getApiResource,
260
+ /** Get a Project directory filesystem usage. */
261
+ getDiskUsage: new react_1.ApiCallAsyncResourceFactory(descriptors.projectFileSystemGetDiskUsage, baseClient.projectFileSystem.getDiskUsage).getApiResource,
262
+ /** Get a Project file's content. */
263
+ getFileContent: new react_1.ApiCallAsyncResourceFactory(descriptors.projectFileSystemGetFileContent, baseClient.projectFileSystem.getFileContent).getApiResource,
264
+ /** Get a Project's file/filesystem authorization token. */
265
+ getJwt: new react_1.ApiCallAsyncResourceFactory(descriptors.projectFileSystemGetJwt, baseClient.projectFileSystem.getJwt).getApiResource,
266
+ /** Get a Project file's information. */
267
+ listFiles: new react_1.ApiCallAsyncResourceFactory(descriptors.projectFileSystemListFiles, baseClient.projectFileSystem.listFiles).getApiResource,
268
+ });
269
+ const buildSshsftpUserApi = (baseClient) => ({
270
+ /** Get all SFTPUsers for a Project. */
271
+ sftpUserListSftpUsers: new react_1.ApiCallAsyncResourceFactory(descriptors.sftpUserListSftpUsers, baseClient.sshsftpUser.sftpUserListSftpUsers).getApiResource,
272
+ /** Get an SFTPUser. */
273
+ sftpUserGetSftpUser: new react_1.ApiCallAsyncResourceFactory(descriptors.sftpUserGetSftpUser, baseClient.sshsftpUser.sftpUserGetSftpUser).getApiResource,
274
+ /** Get all SSHUsers for a Project. */
275
+ sshUserListSshUsers: new react_1.ApiCallAsyncResourceFactory(descriptors.sshUserListSshUsers, baseClient.sshsftpUser.sshUserListSshUsers).getApiResource,
276
+ /** Get an SSHUser. */
277
+ sshUserGetSshUser: new react_1.ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
278
+ });
279
+ const buildUserApi = (baseClient) => ({
280
+ /** Get your verified Email-Address. */
281
+ getOwnEmail: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetOwnEmail, baseClient.user.getOwnEmail).getApiResource,
282
+ /** Get your current multi factor auth status. */
283
+ getMfaStatus: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
284
+ /** List all of your ApiTokens. */
285
+ listApiTokens: new react_1.ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
286
+ /** Get your stored ssh-keys. */
287
+ listSshKeys: new react_1.ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
288
+ /** Get a specific ApiToken. */
289
+ getApiToken: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetApiToken, baseClient.user.getApiToken).getApiResource,
290
+ /** Get a specific stored ssh-key. */
291
+ getSshKey: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetSshKey, baseClient.user.getSshKey).getApiResource,
292
+ /** Get your account information. */
293
+ getOwnAccount: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetOwnAccount, baseClient.user.getOwnAccount).getApiResource,
294
+ /** The timestamp of your latest password change. */
295
+ getPasswordUpdatedAt: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
296
+ /** Get personalized settings. */
297
+ getPersonalizedSettings: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
298
+ /** Get a specific session. */
299
+ getSession: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
300
+ /** Get profile information for a user. */
301
+ getUser: new react_1.ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
302
+ /** Submitted feedback of the given user. */
303
+ listFeedback: new react_1.ApiCallAsyncResourceFactory(descriptors.userListFeedback, baseClient.user.listFeedback).getApiResource,
304
+ /** List all sessions. */
305
+ listSessions: new react_1.ApiCallAsyncResourceFactory(descriptors.userListSessions, baseClient.user.listSessions).getApiResource,
306
+ /** Request a support code. */
307
+ supportCodeRequest: new react_1.ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
308
+ });
309
+ class MittwaldAPIV2ClientReact {
310
+ constructor(baseClient) {
311
+ this.app = buildAppApi(baseClient);
312
+ this.article = buildArticleApi(baseClient);
313
+ this.backup = buildBackupApi(baseClient);
314
+ this.contract = buildContractApi(baseClient);
315
+ this.conversation = buildConversationApi(baseClient);
316
+ this.cronjob = buildCronjobApi(baseClient);
317
+ this.customer = buildCustomerApi(baseClient);
318
+ this.database = buildDatabaseApi(baseClient);
319
+ this.domain = buildDomainApi(baseClient);
320
+ this.file = buildFileApi(baseClient);
321
+ this.mail = buildMailApi(baseClient);
322
+ this.notification = buildNotificationApi(baseClient);
323
+ this.project = buildProjectApi(baseClient);
324
+ this.projectFileSystem = buildProjectFileSystemApi(baseClient);
325
+ this.sshsftpUser = buildSshsftpUserApi(baseClient);
326
+ this.user = buildUserApi(baseClient);
327
+ }
328
+ static fromBaseClient(baseClient) {
329
+ return new MittwaldAPIV2ClientReact(baseClient);
330
+ }
331
+ }
332
+ exports.MittwaldAPIV2ClientReact = MittwaldAPIV2ClientReact;
@@ -1,10 +1,33 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.MittwaldAPIV2Client = void 0;
4
27
  /* eslint-disable */
5
28
  /* prettier-ignore */
6
29
  /* This file is auto-generated with acg (@mittwald/api-code-generator) */
7
- const descriptors = require("./descriptors.js");
30
+ const descriptors = __importStar(require("./descriptors.js"));
8
31
  const api_client_commons_1 = require("@mittwald/api-client-commons");
9
32
  class MittwaldAPIV2Client extends api_client_commons_1.ApiClientBase {
10
33
  constructor() {
@@ -599,5 +599,3 @@ export declare const userVerifyEmail: OpenAPIOperation<RequestType<Simplify<Mitt
599
599
  export declare const userVerifyPhoneNumber: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.$409.Content.ApplicationJson>, 409, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2UsersUserIdPhoneVerify.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
600
600
  /** Verify your registration. */
601
601
  export declare const userVerifyRegistration: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$200.Content.Empty>, 200, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2VerifyRegistration.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
602
- /** List Metrics. */
603
- export declare const metricsListMetricsInternal: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.InternalV2Metrics.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.InternalV2Metrics.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.InternalV2Metrics.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.InternalV2Metrics.Get.Responses.$200.Content.ApplicationOctetStream>, 200, "application/octet-stream"> | Response<Simplify<MittwaldAPIV2.Paths.InternalV2Metrics.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.InternalV2Metrics.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
@@ -5,7 +5,7 @@ exports.databaseCreateMysqlDatabase = exports.databaseListMysqlDatabases = expor
5
5
  exports.domainResendDomainEmail = exports.domainListDomains = exports.domainListDomainOwnerships = exports.domainVerifyDomainOwnership = exports.domainGetSpecificDomainOwnership = exports.domainGetScreenshotForDomain = exports.domainGetHandleFields = exports.domainDeleteDomain = exports.domainGetDomain = exports.domainDeclareProcessChangeHandles = exports.domainDeclareProcessChangeAuthcode = exports.domainDeclareNameservers = exports.domainCreateAuthcode2ForDomain = exports.domainCreateAuthcodeForDomain = exports.domainCheckDomainAvailability = exports.domainChangeProjectOfDomain = exports.domainChangeOwnercOfDomain = exports.domainAbortDeclareProcess = exports.dnsZonesForProject = exports.dnsZoneGetSpecific = exports.dnsSubZoneCreate = exports.dnsRecordTxtSet = exports.dnsRecordSrvSet = exports.dnsRecordMxSetManaged = exports.dnsRecordMxSetCustom = exports.dnsRecordCnameSet = exports.dnsRecordAsetManagedByIngress = exports.dnsRecordAsetCustom = exports.databaseUpdateRedisDatabaseDescription = exports.databaseUpdateRedisDatabaseConfiguration = exports.databaseUpdateMysqlUserPassword = exports.databaseUpdateMysqlDatabaseDescription = exports.databaseUpdateMysqlDatabaseDefaultCharset = exports.databaseListRedisVersions = exports.databaseListMysqlVersions = exports.databaseListMysqlCharsets = exports.databaseGetMysqlUserPhpMyAdminUrl = exports.databaseEnableMysqlUser = exports.databaseDisableMysqlUser = exports.databaseDeleteRedisDatabase = exports.databaseGetRedisDatabase = exports.databaseDeleteMysqlUser = exports.databaseUpdateMysqlUser = exports.databaseGetMysqlUser = exports.databaseDeleteMysqlDatabase = exports.databaseGetMysqlDatabase = exports.databaseCreateRedisDatabase = exports.databaseListRedisDatabases = exports.databaseCreateMysqlUser = exports.databaseListMysqlUsers = void 0;
6
6
  exports.orderPreviewOrder = exports.orderListProjectOrders = exports.orderListCustomerOrders = exports.orderGetOrder = exports.orderCreateTariffChange = exports.orderCreateOrder = exports.notificationsReadNotification = exports.notificationsReadAllNotifications = exports.notificationsListNotifications = exports.notificationsCountUnreadNotifications = exports.newsletterSubscribeUser = exports.newsletterUnsubscribeUser = exports.newsletterGetInfo = exports.mailProjectsettingUpdateWhitelist = exports.mailProjectsettingUpdateBlacklist = exports.mailProjectsettingGetSpecific = exports.mailMailaddressUpdateSpamprotection = exports.mailMailaddressUpdateQuota = exports.mailMailaddressUpdatePassword = exports.mailMailaddressUpdateForwardaddresses = exports.mailMailaddressUpdateCatchall = exports.mailMailaddressUpdateAutoresponder = exports.mailMailaddressUpdateAddress = exports.mailMailaddressDelete = exports.mailMailaddressGetSpecific = exports.mailMailaddressCreate = exports.mailMailaddressList = exports.mailDeliveryboxUpdatePassword = exports.mailDeliveryboxUpdateDescription = exports.mailDeliveryboxDelete = exports.mailDeliveryboxGetSpecific = exports.mailDeliveryboxCreate = exports.mailDeliveryboxList = exports.invoiceListCustomerInvoices = exports.invoiceUpdateInvoiceSettings = exports.invoiceGetDetailOfInvoiceSettings = exports.invoiceDetailOfInvoice = exports.ingressTls = exports.ingressRequestAcmeCertificateIssuance = exports.ingressPaths = exports.ingressListForProject = exports.ingressListAccessible = exports.ingressDelete = exports.ingressGetSpecific = exports.ingressCreate = exports.fileGetFile = exports.fileGetFileTypeRules = exports.fileGetFileTokenRules = exports.fileGetFileMeta = exports.fileCreateFile = void 0;
7
7
  exports.sshUserUpdateSshUser = exports.sshUserDeleteSshUser = exports.sshUserGetSshUser = exports.sshUserCreateSshUser = exports.sshUserListSshUsers = exports.sftpUserUpdateSftpUser = exports.sftpUserDeleteSftpUser = exports.sftpUserGetSftpUser = exports.sftpUserCreateSftpUser = exports.sftpUserListSftpUsers = exports.servicetokenAuthenticateService = exports.relocationCreateLegacyTariffChange = exports.redirectusCreateRelocation = exports.projectUpdateServerDescription = exports.projectUpdateProjectDescription = exports.projectResendProjectInviteMail = exports.projectListServers = exports.projectListProjects = exports.projectListProjectMemberships = exports.projectListProjectInvites = exports.projectListMembershipsForProject = exports.projectListInvitesForProject = exports.projectLeaveProject = exports.projectGetServer = exports.projectGetSelfMembershipForProject = exports.projectGetProject = exports.projectGetProjectTokenInvite = exports.projectFileSystemListFiles = exports.projectFileSystemGetJwt = exports.projectFileSystemGetFileContent = exports.projectFileSystemGetDiskUsage = exports.projectFileSystemGetDirectories = exports.projectDeleteServerAvatar = exports.projectRequestServerAvatarUpload = exports.projectDeleteProject = exports.projectUpdateProjectMembership = exports.projectDeleteProjectMembership = exports.projectGetProjectMembership = exports.projectDeleteProjectInvite = exports.projectGetProjectInvite = exports.projectDeleteProjectAvatar = exports.projectRequestProjectAvatarUpload = exports.projectDeclineProjectInvite = exports.projectCreateProject = exports.projectCreateProjectInvite = exports.projectAcceptProjectInvite = exports.passwordValidationGetPasswordPolicy = exports.pageinsightsListPerformanceDataForProject = exports.pageinsightsGetPerformanceData = exports.orderPreviewTariffChange = void 0;
8
- exports.metricsListMetricsInternal = exports.userVerifyRegistration = exports.userVerifyPhoneNumber = exports.userVerifyEmail = exports.userSupportCodeRequest = exports.userResendVerificationEmail = exports.userRemoveAvatar = exports.userRequestAvatarUpload = exports.userRegister = exports.userLogout = exports.userTerminateAllSessions = exports.userListSessions = exports.userListFeedback = exports.userInitPasswordReset = exports.userInitMfa = exports.userUpdatePersonalInformation = exports.userGetUser = exports.userTerminateSession = exports.userGetSession = exports.userUpdatePersonalizedSettings = exports.userGetPersonalizedSettings = exports.userGetPasswordUpdatedAt = exports.userUpdateAccount = exports.userGetOwnAccount = exports.userDeleteUser = exports.userDeleteSshKey = exports.userEditSshKey = exports.userGetSshKey = exports.userDeleteApiToken = exports.userEditApiToken = exports.userGetApiToken = exports.userCreateSshKey = exports.userListSshKeys = exports.userCreateFeedback = exports.userCreateApiToken = exports.userListApiTokens = exports.userConfirmPasswordReset = exports.userDisableMfa = exports.userConfirmMfa = exports.userResetRecoverycodes = exports.userGetMfaStatus = exports.userCheckToken = exports.userChangePassword = exports.userChangeEmail = exports.userGetOwnEmail = exports.userAuthenticate = exports.userAuthenticateMfa = exports.userRemovePhoneNumber = exports.userAddPhoneNumber = void 0;
8
+ exports.userVerifyRegistration = exports.userVerifyPhoneNumber = exports.userVerifyEmail = exports.userSupportCodeRequest = exports.userResendVerificationEmail = exports.userRemoveAvatar = exports.userRequestAvatarUpload = exports.userRegister = exports.userLogout = exports.userTerminateAllSessions = exports.userListSessions = exports.userListFeedback = exports.userInitPasswordReset = exports.userInitMfa = exports.userUpdatePersonalInformation = exports.userGetUser = exports.userTerminateSession = exports.userGetSession = exports.userUpdatePersonalizedSettings = exports.userGetPersonalizedSettings = exports.userGetPasswordUpdatedAt = exports.userUpdateAccount = exports.userGetOwnAccount = exports.userDeleteUser = exports.userDeleteSshKey = exports.userEditSshKey = exports.userGetSshKey = exports.userDeleteApiToken = exports.userEditApiToken = exports.userGetApiToken = exports.userCreateSshKey = exports.userListSshKeys = exports.userCreateFeedback = exports.userCreateApiToken = exports.userListApiTokens = exports.userConfirmPasswordReset = exports.userDisableMfa = exports.userConfirmMfa = exports.userResetRecoverycodes = exports.userGetMfaStatus = exports.userCheckToken = exports.userChangePassword = exports.userChangeEmail = exports.userGetOwnEmail = exports.userAuthenticate = exports.userAuthenticateMfa = exports.userRemovePhoneNumber = exports.userAddPhoneNumber = void 0;
9
9
  /** execute a runtime concerning action on a specific `AppInstallation` */
10
10
  exports.appExecuteAction = {
11
11
  path: "/v2/appinstallations/{appInstallationId}/actions/{action}",
@@ -1794,9 +1794,3 @@ exports.userVerifyRegistration = {
1794
1794
  method: "POST",
1795
1795
  operationId: "user-verify-registration",
1796
1796
  };
1797
- /** List Metrics. */
1798
- exports.metricsListMetricsInternal = {
1799
- path: "/internal-v2/metrics",
1800
- method: "GET",
1801
- operationId: "metrics-list-metrics-internal",
1802
- };
@@ -13310,35 +13310,5 @@ export declare module MittwaldAPIV2 {
13310
13310
  }
13311
13311
  }
13312
13312
  }
13313
- namespace InternalV2Metrics {
13314
- namespace Get {
13315
- namespace Parameters {
13316
- type Path = {};
13317
- type Header = {};
13318
- type Query = {};
13319
- }
13320
- namespace Responses {
13321
- namespace $200 {
13322
- namespace Content {
13323
- type ApplicationOctetStream = string;
13324
- }
13325
- }
13326
- namespace $500 {
13327
- namespace Content {
13328
- interface ApplicationJson {
13329
- [k: string]: unknown;
13330
- }
13331
- }
13332
- }
13333
- namespace Default {
13334
- namespace Content {
13335
- interface ApplicationJson {
13336
- [k: string]: unknown;
13337
- }
13338
- }
13339
- }
13340
- }
13341
- }
13342
- }
13343
13313
  }
13344
13314
  }
@@ -1,3 +1,3 @@
1
1
  export { assertStatus } from "@mittwald/api-client-commons";
2
- export { MittwaldAPIClient as MittwaldAPIV2Client } from "./v2.js";
2
+ export { MittwaldAPIClient as MittwaldAPIV2Client } from "./v2/default.js";
3
3
  export { MittwaldAPIV2 } from "./generated/v2/types.js";
package/dist/cjs/index.js CHANGED
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MittwaldAPIV2Client = exports.assertStatus = void 0;
4
4
  var api_client_commons_1 = require("@mittwald/api-client-commons");
5
5
  Object.defineProperty(exports, "assertStatus", { enumerable: true, get: function () { return api_client_commons_1.assertStatus; } });
6
- var v2_js_1 = require("./v2.js");
7
- Object.defineProperty(exports, "MittwaldAPIV2Client", { enumerable: true, get: function () { return v2_js_1.MittwaldAPIClient; } });
6
+ var default_js_1 = require("./v2/default.js");
7
+ Object.defineProperty(exports, "MittwaldAPIV2Client", { enumerable: true, get: function () { return default_js_1.MittwaldAPIClient; } });
@@ -0,0 +1 @@
1
+ export { MittwaldAPIClientReact as MittwaldAPIV2ClientReact } from "./v2/react.js";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MittwaldAPIV2ClientReact = void 0;
4
+ var react_js_1 = require("./v2/react.js");
5
+ Object.defineProperty(exports, "MittwaldAPIV2ClientReact", { enumerable: true, get: function () { return react_js_1.MittwaldAPIClientReact; } });
@@ -1,5 +1,5 @@
1
- import MittwaldApiV2Client from "./generated/v2/client.js";
2
- export type { MittwaldAPIV2 } from "./generated/v2/types.js";
1
+ import MittwaldApiV2Client from "../generated/v2/client.js";
2
+ export type { MittwaldAPIV2 } from "../generated/v2/types.js";
3
3
  export declare class MittwaldAPIClient extends MittwaldApiV2Client {
4
4
  private readonly apiToken;
5
5
  private constructor();
@@ -8,11 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.MittwaldAPIClient = void 0;
13
16
  const api_client_commons_1 = require("@mittwald/api-client-commons");
14
- const client_js_1 = require("./generated/v2/client.js");
15
- const version_js_1 = require("./version.js");
17
+ const client_js_1 = __importDefault(require("../generated/v2/client.js"));
18
+ const version_js_1 = require("../version.js");
16
19
  const browser_or_node_1 = require("browser-or-node");
17
20
  const defaultUserAgent = "mittwald-api-client/" + version_js_1.MittwaldAPIClientVersion;
18
21
  class MittwaldAPIClient extends client_js_1.default {
@@ -0,0 +1,3 @@
1
+ import { MittwaldAPIV2ClientReact as MittwaldAPIClientReact } from "../generated/v2/client-react.js";
2
+ export { MittwaldAPIV2ClientReact as MittwaldAPIClientReact } from "../generated/v2/client-react.js";
3
+ export default MittwaldAPIClientReact;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MittwaldAPIClientReact = void 0;
4
+ const client_react_js_1 = require("../generated/v2/client-react.js");
5
+ var client_react_js_2 = require("../generated/v2/client-react.js");
6
+ Object.defineProperty(exports, "MittwaldAPIClientReact", { enumerable: true, get: function () { return client_react_js_2.MittwaldAPIV2ClientReact; } });
7
+ exports.default = client_react_js_1.MittwaldAPIV2ClientReact;