@scaleway/sdk-webhosting 1.1.2 → 1.2.0
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/v1/api.gen.cjs +202 -48
- package/dist/v1/api.gen.d.ts +118 -20
- package/dist/v1/api.gen.js +205 -51
- package/dist/v1/content.gen.cjs +4 -1
- package/dist/v1/content.gen.d.ts +3 -1
- package/dist/v1/content.gen.js +4 -1
- package/dist/v1/index.gen.cjs +10 -0
- package/dist/v1/index.gen.d.ts +2 -2
- package/dist/v1/index.gen.js +13 -3
- package/dist/v1/marshalling.gen.cjs +155 -35
- package/dist/v1/marshalling.gen.d.ts +9 -1
- package/dist/v1/marshalling.gen.js +155 -35
- package/dist/v1/types.gen.d.ts +260 -25
- package/dist/v1/validation-rules.gen.cjs +10 -0
- package/dist/v1/validation-rules.gen.d.ts +9 -0
- package/dist/v1/validation-rules.gen.js +10 -0
- package/package.json +6 -6
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,16 +1,125 @@
|
|
|
1
|
-
import { API, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
|
-
import { DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalSearchDomainsResponse, unmarshalDomain,
|
|
1
|
+
import { API, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
|
+
import { BACKUP_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
+
import { unmarshalListBackupsResponse, unmarshalBackup, unmarshalRestoreBackupResponse, unmarshalListBackupItemsResponse, marshalBackupApiRestoreBackupItemsRequest, unmarshalRestoreBackupItemsResponse, unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalSearchDomainsResponse, unmarshalDomain, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalHostingApiAddCustomDomainRequest, unmarshalHostingSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
7
|
+
class BackupAPI extends API {
|
|
8
|
+
/**
|
|
9
|
+
* Locality of this API.
|
|
10
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
11
|
+
*/
|
|
12
|
+
static LOCALITY = toApiLocality({
|
|
13
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
14
|
+
});
|
|
15
|
+
pageOfListBackups = (request) => this.client.fetch(
|
|
16
|
+
{
|
|
17
|
+
method: "GET",
|
|
18
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups`,
|
|
19
|
+
urlParams: urlParams(
|
|
20
|
+
["order_by", request.orderBy],
|
|
21
|
+
["page", request.page],
|
|
22
|
+
[
|
|
23
|
+
"page_size",
|
|
24
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
25
|
+
]
|
|
26
|
+
)
|
|
27
|
+
},
|
|
28
|
+
unmarshalListBackupsResponse
|
|
29
|
+
);
|
|
30
|
+
/**
|
|
31
|
+
* List all available backups for a hosting account.. List all available backups for a hosting account.
|
|
32
|
+
*
|
|
33
|
+
* @param request - The request {@link BackupApiListBackupsRequest}
|
|
34
|
+
* @returns A Promise of ListBackupsResponse
|
|
35
|
+
*/
|
|
36
|
+
listBackups = (request) => enrichForPagination("backups", this.pageOfListBackups, request);
|
|
37
|
+
/**
|
|
38
|
+
* Get info about a backup specified by the backup ID.. Get info about a backup specified by the backup ID.
|
|
39
|
+
*
|
|
40
|
+
* @param request - The request {@link BackupApiGetBackupRequest}
|
|
41
|
+
* @returns A Promise of Backup
|
|
42
|
+
*/
|
|
43
|
+
getBackup = (request) => this.client.fetch(
|
|
44
|
+
{
|
|
45
|
+
method: "GET",
|
|
46
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups/${validatePathParam("backupId", request.backupId)}`
|
|
47
|
+
},
|
|
48
|
+
unmarshalBackup
|
|
49
|
+
);
|
|
50
|
+
/**
|
|
51
|
+
* Waits for {@link Backup} to be in a final state.
|
|
52
|
+
*
|
|
53
|
+
* @param request - The request {@link BackupApiGetBackupRequest}
|
|
54
|
+
* @param options - The waiting options
|
|
55
|
+
* @returns A Promise of Backup
|
|
56
|
+
*/
|
|
57
|
+
waitForBackup = (request, options) => waitForResource(
|
|
58
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
59
|
+
!BACKUP_TRANSIENT_STATUSES.includes(res.status)
|
|
60
|
+
)),
|
|
61
|
+
this.getBackup,
|
|
62
|
+
request,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
/**
|
|
66
|
+
* Restore an entire backup to your hosting environment.. Restore an entire backup to your hosting environment.
|
|
67
|
+
*
|
|
68
|
+
* @param request - The request {@link BackupApiRestoreBackupRequest}
|
|
69
|
+
* @returns A Promise of RestoreBackupResponse
|
|
70
|
+
*/
|
|
71
|
+
restoreBackup = (request) => this.client.fetch(
|
|
72
|
+
{
|
|
73
|
+
body: "{}",
|
|
74
|
+
headers: jsonContentHeaders,
|
|
75
|
+
method: "POST",
|
|
76
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups/${validatePathParam("backupId", request.backupId)}/restore`
|
|
77
|
+
},
|
|
78
|
+
unmarshalRestoreBackupResponse
|
|
79
|
+
);
|
|
80
|
+
/**
|
|
81
|
+
* List items within a specific backup, grouped by type.. List items within a specific backup, grouped by type.
|
|
82
|
+
*
|
|
83
|
+
* @param request - The request {@link BackupApiListBackupItemsRequest}
|
|
84
|
+
* @returns A Promise of ListBackupItemsResponse
|
|
85
|
+
*/
|
|
86
|
+
listBackupItems = (request) => this.client.fetch(
|
|
87
|
+
{
|
|
88
|
+
method: "GET",
|
|
89
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backup-items`,
|
|
90
|
+
urlParams: urlParams(["backup_id", request.backupId])
|
|
91
|
+
},
|
|
92
|
+
unmarshalListBackupItemsResponse
|
|
93
|
+
);
|
|
94
|
+
/**
|
|
95
|
+
* Restore specific items from a backup (e.g., a database or mailbox).. Restore specific items from a backup (e.g., a database or mailbox).
|
|
96
|
+
*
|
|
97
|
+
* @param request - The request {@link BackupApiRestoreBackupItemsRequest}
|
|
98
|
+
* @returns A Promise of RestoreBackupItemsResponse
|
|
99
|
+
*/
|
|
100
|
+
restoreBackupItems = (request) => this.client.fetch(
|
|
101
|
+
{
|
|
102
|
+
body: JSON.stringify(
|
|
103
|
+
marshalBackupApiRestoreBackupItemsRequest(
|
|
104
|
+
request,
|
|
105
|
+
this.client.settings
|
|
106
|
+
)
|
|
107
|
+
),
|
|
108
|
+
headers: jsonContentHeaders,
|
|
109
|
+
method: "POST",
|
|
110
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/restore-backup-items`
|
|
111
|
+
},
|
|
112
|
+
unmarshalRestoreBackupItemsResponse
|
|
113
|
+
);
|
|
114
|
+
}
|
|
7
115
|
class ControlPanelAPI extends API {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Locality of this API.
|
|
118
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
119
|
+
*/
|
|
120
|
+
static LOCALITY = toApiLocality({
|
|
121
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
122
|
+
});
|
|
14
123
|
pageOfListControlPanels = (request = {}) => this.client.fetch(
|
|
15
124
|
{
|
|
16
125
|
method: "GET",
|
|
@@ -34,12 +143,13 @@ class ControlPanelAPI extends API {
|
|
|
34
143
|
listControlPanels = (request = {}) => enrichForPagination("controlPanels", this.pageOfListControlPanels, request);
|
|
35
144
|
}
|
|
36
145
|
class DatabaseAPI extends API {
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Locality of this API.
|
|
148
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
149
|
+
*/
|
|
150
|
+
static LOCALITY = toApiLocality({
|
|
151
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
152
|
+
});
|
|
43
153
|
/**
|
|
44
154
|
* "Create a new database within your hosting plan".
|
|
45
155
|
*
|
|
@@ -238,12 +348,13 @@ class DatabaseAPI extends API {
|
|
|
238
348
|
);
|
|
239
349
|
}
|
|
240
350
|
class DnsAPI extends API {
|
|
241
|
-
/**
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
351
|
+
/**
|
|
352
|
+
* Locality of this API.
|
|
353
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
354
|
+
*/
|
|
355
|
+
static LOCALITY = toApiLocality({
|
|
356
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
357
|
+
});
|
|
247
358
|
/**
|
|
248
359
|
* Get DNS records. Get the set of DNS records of a specified domain associated with a Web Hosting plan's domain.
|
|
249
360
|
*
|
|
@@ -260,6 +371,7 @@ class DnsAPI extends API {
|
|
|
260
371
|
/**
|
|
261
372
|
* Check whether you own this domain or not.. Check whether you own this domain or not.
|
|
262
373
|
*
|
|
374
|
+
* @deprecated
|
|
263
375
|
* @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
|
|
264
376
|
* @returns A Promise of CheckUserOwnsDomainResponse
|
|
265
377
|
*/
|
|
@@ -351,12 +463,13 @@ class DnsAPI extends API {
|
|
|
351
463
|
);
|
|
352
464
|
}
|
|
353
465
|
class OfferAPI extends API {
|
|
354
|
-
/**
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
466
|
+
/**
|
|
467
|
+
* Locality of this API.
|
|
468
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
469
|
+
*/
|
|
470
|
+
static LOCALITY = toApiLocality({
|
|
471
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
472
|
+
});
|
|
360
473
|
pageOfListOffers = (request = {}) => this.client.fetch(
|
|
361
474
|
{
|
|
362
475
|
method: "GET",
|
|
@@ -383,12 +496,13 @@ class OfferAPI extends API {
|
|
|
383
496
|
listOffers = (request = {}) => enrichForPagination("offers", this.pageOfListOffers, request);
|
|
384
497
|
}
|
|
385
498
|
class HostingAPI extends API {
|
|
386
|
-
/**
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
499
|
+
/**
|
|
500
|
+
* Locality of this API.
|
|
501
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
502
|
+
*/
|
|
503
|
+
static LOCALITY = toApiLocality({
|
|
504
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
505
|
+
});
|
|
392
506
|
/**
|
|
393
507
|
* Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer type required via the `offer_id` parameter.
|
|
394
508
|
*
|
|
@@ -422,6 +536,7 @@ class HostingAPI extends API {
|
|
|
422
536
|
],
|
|
423
537
|
["project_id", request.projectId],
|
|
424
538
|
["statuses", request.statuses],
|
|
539
|
+
["subdomain", request.subdomain],
|
|
425
540
|
["tags", request.tags]
|
|
426
541
|
)
|
|
427
542
|
},
|
|
@@ -535,14 +650,50 @@ class HostingAPI extends API {
|
|
|
535
650
|
},
|
|
536
651
|
unmarshalResourceSummary
|
|
537
652
|
);
|
|
653
|
+
/**
|
|
654
|
+
* Attach a custom domain to a webhosting.
|
|
655
|
+
*
|
|
656
|
+
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
657
|
+
* @returns A Promise of HostingSummary
|
|
658
|
+
*/
|
|
659
|
+
addCustomDomain = (request) => this.client.fetch(
|
|
660
|
+
{
|
|
661
|
+
body: JSON.stringify(
|
|
662
|
+
marshalHostingApiAddCustomDomainRequest(
|
|
663
|
+
request,
|
|
664
|
+
this.client.settings
|
|
665
|
+
)
|
|
666
|
+
),
|
|
667
|
+
headers: jsonContentHeaders,
|
|
668
|
+
method: "POST",
|
|
669
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/add-custom-domain`
|
|
670
|
+
},
|
|
671
|
+
unmarshalHostingSummary
|
|
672
|
+
);
|
|
673
|
+
/**
|
|
674
|
+
* Detach a custom domain from a webhosting.
|
|
675
|
+
*
|
|
676
|
+
* @param request - The request {@link HostingApiRemoveCustomDomainRequest}
|
|
677
|
+
* @returns A Promise of HostingSummary
|
|
678
|
+
*/
|
|
679
|
+
removeCustomDomain = (request) => this.client.fetch(
|
|
680
|
+
{
|
|
681
|
+
body: "{}",
|
|
682
|
+
headers: jsonContentHeaders,
|
|
683
|
+
method: "POST",
|
|
684
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
|
|
685
|
+
},
|
|
686
|
+
unmarshalHostingSummary
|
|
687
|
+
);
|
|
538
688
|
}
|
|
539
689
|
class FtpAccountAPI extends API {
|
|
540
|
-
/**
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
690
|
+
/**
|
|
691
|
+
* Locality of this API.
|
|
692
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
693
|
+
*/
|
|
694
|
+
static LOCALITY = toApiLocality({
|
|
695
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
696
|
+
});
|
|
546
697
|
/**
|
|
547
698
|
* Create a new FTP account within your hosting plan.. Create a new FTP account within your hosting plan.
|
|
548
699
|
*
|
|
@@ -615,12 +766,13 @@ class FtpAccountAPI extends API {
|
|
|
615
766
|
);
|
|
616
767
|
}
|
|
617
768
|
class MailAccountAPI extends API {
|
|
618
|
-
/**
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
769
|
+
/**
|
|
770
|
+
* Locality of this API.
|
|
771
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
772
|
+
*/
|
|
773
|
+
static LOCALITY = toApiLocality({
|
|
774
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
775
|
+
});
|
|
624
776
|
/**
|
|
625
777
|
* Create a new mail account within your hosting plan.. Create a new mail account within your hosting plan.
|
|
626
778
|
*
|
|
@@ -706,12 +858,13 @@ class MailAccountAPI extends API {
|
|
|
706
858
|
);
|
|
707
859
|
}
|
|
708
860
|
class WebsiteAPI extends API {
|
|
709
|
-
/**
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
861
|
+
/**
|
|
862
|
+
* Locality of this API.
|
|
863
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
864
|
+
*/
|
|
865
|
+
static LOCALITY = toApiLocality({
|
|
866
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
867
|
+
});
|
|
715
868
|
pageOfListWebsites = (request) => this.client.fetch(
|
|
716
869
|
{
|
|
717
870
|
method: "GET",
|
|
@@ -736,6 +889,7 @@ class WebsiteAPI extends API {
|
|
|
736
889
|
listWebsites = (request) => enrichForPagination("websites", this.pageOfListWebsites, request);
|
|
737
890
|
}
|
|
738
891
|
export {
|
|
892
|
+
BackupAPI,
|
|
739
893
|
ControlPanelAPI,
|
|
740
894
|
DatabaseAPI,
|
|
741
895
|
DnsAPI,
|
package/dist/v1/content.gen.cjs
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const BACKUP_TRANSIENT_STATUSES = ["restoring"];
|
|
3
4
|
const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
|
|
4
5
|
const DOMAIN_TRANSIENT_STATUSES = ["validating"];
|
|
5
6
|
const HOSTING_TRANSIENT_STATUSES = [
|
|
6
7
|
"delivering",
|
|
7
8
|
"deleting",
|
|
8
|
-
"migrating"
|
|
9
|
+
"migrating",
|
|
10
|
+
"updating"
|
|
9
11
|
];
|
|
12
|
+
exports.BACKUP_TRANSIENT_STATUSES = BACKUP_TRANSIENT_STATUSES;
|
|
10
13
|
exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
|
|
11
14
|
exports.DOMAIN_TRANSIENT_STATUSES = DOMAIN_TRANSIENT_STATUSES;
|
|
12
15
|
exports.HOSTING_TRANSIENT_STATUSES = HOSTING_TRANSIENT_STATUSES;
|
package/dist/v1/content.gen.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen';
|
|
1
|
+
import type { BackupStatus, DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen';
|
|
2
|
+
/** Lists transient statutes of the enum {@link BackupStatus}. */
|
|
3
|
+
export declare const BACKUP_TRANSIENT_STATUSES: BackupStatus[];
|
|
2
4
|
/** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
|
|
3
5
|
export declare const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: DomainAvailabilityStatus[];
|
|
4
6
|
/** Lists transient statutes of the enum {@link DomainStatus}. */
|
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
const BACKUP_TRANSIENT_STATUSES = ["restoring"];
|
|
1
2
|
const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
|
|
2
3
|
const DOMAIN_TRANSIENT_STATUSES = ["validating"];
|
|
3
4
|
const HOSTING_TRANSIENT_STATUSES = [
|
|
4
5
|
"delivering",
|
|
5
6
|
"deleting",
|
|
6
|
-
"migrating"
|
|
7
|
+
"migrating",
|
|
8
|
+
"updating"
|
|
7
9
|
];
|
|
8
10
|
export {
|
|
11
|
+
BACKUP_TRANSIENT_STATUSES,
|
|
9
12
|
DOMAIN_AVAILABILITY_TRANSIENT_STATUSES,
|
|
10
13
|
DOMAIN_TRANSIENT_STATUSES,
|
|
11
14
|
HOSTING_TRANSIENT_STATUSES
|
package/dist/v1/index.gen.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const api_gen = require("./api.gen.cjs");
|
|
|
4
4
|
const content_gen = require("./content.gen.cjs");
|
|
5
5
|
const marshalling_gen = require("./marshalling.gen.cjs");
|
|
6
6
|
const validationRules_gen = require("./validation-rules.gen.cjs");
|
|
7
|
+
exports.BackupAPI = api_gen.BackupAPI;
|
|
7
8
|
exports.ControlPanelAPI = api_gen.ControlPanelAPI;
|
|
8
9
|
exports.DatabaseAPI = api_gen.DatabaseAPI;
|
|
9
10
|
exports.DnsAPI = api_gen.DnsAPI;
|
|
@@ -12,9 +13,11 @@ exports.HostingAPI = api_gen.HostingAPI;
|
|
|
12
13
|
exports.MailAccountAPI = api_gen.MailAccountAPI;
|
|
13
14
|
exports.OfferAPI = api_gen.OfferAPI;
|
|
14
15
|
exports.WebsiteAPI = api_gen.WebsiteAPI;
|
|
16
|
+
exports.BACKUP_TRANSIENT_STATUSES = content_gen.BACKUP_TRANSIENT_STATUSES;
|
|
15
17
|
exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = content_gen.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
|
|
16
18
|
exports.DOMAIN_TRANSIENT_STATUSES = content_gen.DOMAIN_TRANSIENT_STATUSES;
|
|
17
19
|
exports.HOSTING_TRANSIENT_STATUSES = content_gen.HOSTING_TRANSIENT_STATUSES;
|
|
20
|
+
exports.marshalBackupApiRestoreBackupItemsRequest = marshalling_gen.marshalBackupApiRestoreBackupItemsRequest;
|
|
18
21
|
exports.marshalDatabaseApiAssignDatabaseUserRequest = marshalling_gen.marshalDatabaseApiAssignDatabaseUserRequest;
|
|
19
22
|
exports.marshalDatabaseApiChangeDatabaseUserPasswordRequest = marshalling_gen.marshalDatabaseApiChangeDatabaseUserPasswordRequest;
|
|
20
23
|
exports.marshalDatabaseApiCreateDatabaseRequest = marshalling_gen.marshalDatabaseApiCreateDatabaseRequest;
|
|
@@ -24,11 +27,13 @@ exports.marshalDnsApiCheckUserOwnsDomainRequest = marshalling_gen.marshalDnsApiC
|
|
|
24
27
|
exports.marshalDnsApiSyncDomainDnsRecordsRequest = marshalling_gen.marshalDnsApiSyncDomainDnsRecordsRequest;
|
|
25
28
|
exports.marshalFtpAccountApiChangeFtpAccountPasswordRequest = marshalling_gen.marshalFtpAccountApiChangeFtpAccountPasswordRequest;
|
|
26
29
|
exports.marshalFtpAccountApiCreateFtpAccountRequest = marshalling_gen.marshalFtpAccountApiCreateFtpAccountRequest;
|
|
30
|
+
exports.marshalHostingApiAddCustomDomainRequest = marshalling_gen.marshalHostingApiAddCustomDomainRequest;
|
|
27
31
|
exports.marshalHostingApiCreateHostingRequest = marshalling_gen.marshalHostingApiCreateHostingRequest;
|
|
28
32
|
exports.marshalHostingApiUpdateHostingRequest = marshalling_gen.marshalHostingApiUpdateHostingRequest;
|
|
29
33
|
exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalling_gen.marshalMailAccountApiChangeMailAccountPasswordRequest;
|
|
30
34
|
exports.marshalMailAccountApiCreateMailAccountRequest = marshalling_gen.marshalMailAccountApiCreateMailAccountRequest;
|
|
31
35
|
exports.marshalMailAccountApiRemoveMailAccountRequest = marshalling_gen.marshalMailAccountApiRemoveMailAccountRequest;
|
|
36
|
+
exports.unmarshalBackup = marshalling_gen.unmarshalBackup;
|
|
32
37
|
exports.unmarshalCheckUserOwnsDomainResponse = marshalling_gen.unmarshalCheckUserOwnsDomainResponse;
|
|
33
38
|
exports.unmarshalDatabase = marshalling_gen.unmarshalDatabase;
|
|
34
39
|
exports.unmarshalDatabaseUser = marshalling_gen.unmarshalDatabaseUser;
|
|
@@ -36,6 +41,9 @@ exports.unmarshalDnsRecords = marshalling_gen.unmarshalDnsRecords;
|
|
|
36
41
|
exports.unmarshalDomain = marshalling_gen.unmarshalDomain;
|
|
37
42
|
exports.unmarshalFtpAccount = marshalling_gen.unmarshalFtpAccount;
|
|
38
43
|
exports.unmarshalHosting = marshalling_gen.unmarshalHosting;
|
|
44
|
+
exports.unmarshalHostingSummary = marshalling_gen.unmarshalHostingSummary;
|
|
45
|
+
exports.unmarshalListBackupItemsResponse = marshalling_gen.unmarshalListBackupItemsResponse;
|
|
46
|
+
exports.unmarshalListBackupsResponse = marshalling_gen.unmarshalListBackupsResponse;
|
|
39
47
|
exports.unmarshalListControlPanelsResponse = marshalling_gen.unmarshalListControlPanelsResponse;
|
|
40
48
|
exports.unmarshalListDatabaseUsersResponse = marshalling_gen.unmarshalListDatabaseUsersResponse;
|
|
41
49
|
exports.unmarshalListDatabasesResponse = marshalling_gen.unmarshalListDatabasesResponse;
|
|
@@ -47,6 +55,8 @@ exports.unmarshalListWebsitesResponse = marshalling_gen.unmarshalListWebsitesRes
|
|
|
47
55
|
exports.unmarshalMailAccount = marshalling_gen.unmarshalMailAccount;
|
|
48
56
|
exports.unmarshalResetHostingPasswordResponse = marshalling_gen.unmarshalResetHostingPasswordResponse;
|
|
49
57
|
exports.unmarshalResourceSummary = marshalling_gen.unmarshalResourceSummary;
|
|
58
|
+
exports.unmarshalRestoreBackupItemsResponse = marshalling_gen.unmarshalRestoreBackupItemsResponse;
|
|
59
|
+
exports.unmarshalRestoreBackupResponse = marshalling_gen.unmarshalRestoreBackupResponse;
|
|
50
60
|
exports.unmarshalSearchDomainsResponse = marshalling_gen.unmarshalSearchDomainsResponse;
|
|
51
61
|
exports.unmarshalSession = marshalling_gen.unmarshalSession;
|
|
52
62
|
exports.ValidationRules = validationRules_gen;
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
|
|
1
|
+
export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
3
|
export * from './marshalling.gen';
|
|
4
|
-
export type { AutoConfigDomainDns, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest,
|
|
4
|
+
export type { AutoConfigDomainDns, Backup, BackupApiGetBackupRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabasesRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecords, DnsRecordsStatus, DnsRecordType, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingDomain, HostingDomainCustomDomain, HostingStatus, HostingSummary, HostingUser, ListBackupItemsResponse, ListBackupsRequestOrderBy, ListBackupsResponse, ListControlPanelsResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
2
|
-
import { DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalSearchDomainsResponse, unmarshalSession } from "./marshalling.gen.js";
|
|
1
|
+
import { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
2
|
+
import { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
+
import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, unmarshalBackup, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession } from "./marshalling.gen.js";
|
|
4
4
|
import * as validationRules_gen from "./validation-rules.gen.js";
|
|
5
5
|
export {
|
|
6
|
+
BACKUP_TRANSIENT_STATUSES,
|
|
7
|
+
BackupAPI,
|
|
6
8
|
ControlPanelAPI,
|
|
7
9
|
DOMAIN_AVAILABILITY_TRANSIENT_STATUSES,
|
|
8
10
|
DOMAIN_TRANSIENT_STATUSES,
|
|
@@ -15,6 +17,7 @@ export {
|
|
|
15
17
|
OfferAPI,
|
|
16
18
|
validationRules_gen as ValidationRules,
|
|
17
19
|
WebsiteAPI,
|
|
20
|
+
marshalBackupApiRestoreBackupItemsRequest,
|
|
18
21
|
marshalDatabaseApiAssignDatabaseUserRequest,
|
|
19
22
|
marshalDatabaseApiChangeDatabaseUserPasswordRequest,
|
|
20
23
|
marshalDatabaseApiCreateDatabaseRequest,
|
|
@@ -24,11 +27,13 @@ export {
|
|
|
24
27
|
marshalDnsApiSyncDomainDnsRecordsRequest,
|
|
25
28
|
marshalFtpAccountApiChangeFtpAccountPasswordRequest,
|
|
26
29
|
marshalFtpAccountApiCreateFtpAccountRequest,
|
|
30
|
+
marshalHostingApiAddCustomDomainRequest,
|
|
27
31
|
marshalHostingApiCreateHostingRequest,
|
|
28
32
|
marshalHostingApiUpdateHostingRequest,
|
|
29
33
|
marshalMailAccountApiChangeMailAccountPasswordRequest,
|
|
30
34
|
marshalMailAccountApiCreateMailAccountRequest,
|
|
31
35
|
marshalMailAccountApiRemoveMailAccountRequest,
|
|
36
|
+
unmarshalBackup,
|
|
32
37
|
unmarshalCheckUserOwnsDomainResponse,
|
|
33
38
|
unmarshalDatabase,
|
|
34
39
|
unmarshalDatabaseUser,
|
|
@@ -36,6 +41,9 @@ export {
|
|
|
36
41
|
unmarshalDomain,
|
|
37
42
|
unmarshalFtpAccount,
|
|
38
43
|
unmarshalHosting,
|
|
44
|
+
unmarshalHostingSummary,
|
|
45
|
+
unmarshalListBackupItemsResponse,
|
|
46
|
+
unmarshalListBackupsResponse,
|
|
39
47
|
unmarshalListControlPanelsResponse,
|
|
40
48
|
unmarshalListDatabaseUsersResponse,
|
|
41
49
|
unmarshalListDatabasesResponse,
|
|
@@ -47,6 +55,8 @@ export {
|
|
|
47
55
|
unmarshalMailAccount,
|
|
48
56
|
unmarshalResetHostingPasswordResponse,
|
|
49
57
|
unmarshalResourceSummary,
|
|
58
|
+
unmarshalRestoreBackupItemsResponse,
|
|
59
|
+
unmarshalRestoreBackupResponse,
|
|
50
60
|
unmarshalSearchDomainsResponse,
|
|
51
61
|
unmarshalSession
|
|
52
62
|
};
|