@scaleway/sdk-webhosting 2.4.1 → 2.5.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/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1/api.gen.js +2 -0
- package/dist/v1/content.gen.js +6 -4
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/index.gen.js +3 -1
- package/dist/v1/marshalling.gen.js +75 -62
- package/dist/v1/types.gen.d.ts +46 -18
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/validation-rules.gen.js +13 -11
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BACKUP_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite } from "./marshalling.gen.js";
|
|
3
3
|
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Web Hosting backup API.
|
|
@@ -788,4 +789,5 @@ var WebsiteAPI = class extends API {
|
|
|
788
789
|
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites/${validatePathParam("domainName", request.domainName)}/reset`
|
|
789
790
|
}, unmarshalWebsite);
|
|
790
791
|
};
|
|
792
|
+
//#endregion
|
|
791
793
|
export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI };
|
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
//#region src/v1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link BackupStatus}. */
|
|
2
|
-
|
|
3
|
+
var BACKUP_TRANSIENT_STATUSES = ["restoring"];
|
|
3
4
|
/** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
|
|
4
|
-
|
|
5
|
+
var DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
|
|
5
6
|
/** Lists transient statutes of the enum {@link DomainStatus}. */
|
|
6
|
-
|
|
7
|
+
var DOMAIN_TRANSIENT_STATUSES = ["validating"];
|
|
7
8
|
/** Lists transient statutes of the enum {@link HostingStatus}. */
|
|
8
|
-
|
|
9
|
+
var HOSTING_TRANSIENT_STATUSES = [
|
|
9
10
|
"delivering",
|
|
10
11
|
"deleting",
|
|
11
12
|
"migrating",
|
|
12
13
|
"updating"
|
|
13
14
|
];
|
|
15
|
+
//#endregion
|
|
14
16
|
export { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES };
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { AutoConfigDomainDns, Backup, BackupApiGetBackupRequest, BackupApiGetProgressRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiListRecentProgressesRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, BillingMode, CheckFreeDomainAvailabilityResponse, CheckFreeDomainAvailabilityResponseUnavailableReason, CheckUserOwnsDomainResponse, CommitmentType, 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, FreeDomain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingDomainsRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiMigrateControlPanelRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiResetHostingRequest, HostingApiUpdateHostingFreeDomainRequest, HostingApiUpdateHostingRequest, HostingDomain, HostingDomainCustomDomain, HostingStatus, HostingSummary, HostingUser, ListBackupItemsResponse, ListBackupsRequestOrderBy, ListBackupsResponse, ListControlPanelsResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListFreeRootDomainsResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferCommitment, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, Progress, ProgressStatus, ProgressSummary, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiCreateWebsiteRequest, WebsiteApiDeleteWebsiteRequest, WebsiteApiListWebsitesRequest, WebsiteApiResetWebsiteRequest, } from './types.gen.js';
|
|
4
|
+
export type { AutoConfigDomainDns, Backup, BackupApiGetBackupRequest, BackupApiGetProgressRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiListRecentProgressesRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, BillingMode, CheckFreeDomainAvailabilityResponse, CheckFreeDomainAvailabilityResponseUnavailableReason, CheckUserOwnsDomainResponse, CommitmentType, 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, FreeDomain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingDomainsRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiMigrateControlPanelRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiResetHostingRequest, HostingApiUpdateHostingFreeDomainRequest, HostingApiUpdateHostingRequest, HostingCommitment, HostingDomain, HostingDomainCustomDomain, HostingStatus, HostingSummary, HostingUser, ListBackupItemsResponse, ListBackupsRequestOrderBy, ListBackupsResponse, ListControlPanelsResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListFreeRootDomainsResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferCommitment, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, Progress, ProgressStatus, ProgressSummary, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiCreateWebsiteRequest, WebsiteApiDeleteWebsiteRequest, WebsiteApiListWebsitesRequest, WebsiteApiResetWebsiteRequest, } from './types.gen.js';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -3,6 +3,7 @@ import { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMA
|
|
|
3
3
|
import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite } from "./marshalling.gen.js";
|
|
4
4
|
import { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
BACKUP_TRANSIENT_STATUSES: () => BACKUP_TRANSIENT_STATUSES,
|
|
8
9
|
BackupAPI: () => BackupAPI,
|
|
@@ -73,4 +74,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
73
74
|
unmarshalSession: () => unmarshalSession,
|
|
74
75
|
unmarshalWebsite: () => unmarshalWebsite
|
|
75
76
|
});
|
|
76
|
-
|
|
77
|
+
//#endregion
|
|
78
|
+
export { BACKUP_TRANSIENT_STATUSES, BackupAPI, ControlPanelAPI, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HOSTING_TRANSIENT_STATUSES, HostingAPI, MailAccountAPI, OfferAPI, validation_rules_gen_exports as ValidationRules, WebsiteAPI, index_gen_exports, marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
-
|
|
2
|
+
//#region src/v1/marshalling.gen.ts
|
|
3
|
+
var unmarshalBackup = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
5
6
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -9,21 +10,21 @@ const unmarshalBackup = (data) => {
|
|
|
9
10
|
totalItems: data.total_items
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
var unmarshalDatabaseUser = (data) => {
|
|
13
14
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DatabaseUser' failed as data isn't a dictionary.`);
|
|
14
15
|
return {
|
|
15
16
|
databases: data.databases,
|
|
16
17
|
username: data.username
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
+
var unmarshalDatabase = (data) => {
|
|
20
21
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Database' failed as data isn't a dictionary.`);
|
|
21
22
|
return {
|
|
22
23
|
databaseName: data.database_name,
|
|
23
24
|
users: data.users
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
var unmarshalFtpAccount = (data) => {
|
|
27
28
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FtpAccount' failed as data isn't a dictionary.`);
|
|
28
29
|
return {
|
|
29
30
|
path: data.path,
|
|
@@ -56,7 +57,7 @@ var unmarshalHostingDomain = (data) => {
|
|
|
56
57
|
subdomain: data.subdomain
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
+
var unmarshalHostingSummary = (data) => {
|
|
60
61
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingSummary' failed as data isn't a dictionary.`);
|
|
61
62
|
return {
|
|
62
63
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -73,14 +74,14 @@ const unmarshalHostingSummary = (data) => {
|
|
|
73
74
|
updatedAt: unmarshalDate(data.updated_at)
|
|
74
75
|
};
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
+
var unmarshalMailAccount = (data) => {
|
|
77
78
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'MailAccount' failed as data isn't a dictionary.`);
|
|
78
79
|
return {
|
|
79
80
|
domain: data.domain,
|
|
80
81
|
username: data.username
|
|
81
82
|
};
|
|
82
83
|
};
|
|
83
|
-
|
|
84
|
+
var unmarshalWebsite = (data) => {
|
|
84
85
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Website' failed as data isn't a dictionary.`);
|
|
85
86
|
return {
|
|
86
87
|
domain: data.domain,
|
|
@@ -95,7 +96,7 @@ var unmarshalFreeDomain = (data) => {
|
|
|
95
96
|
slug: data.slug
|
|
96
97
|
};
|
|
97
98
|
};
|
|
98
|
-
|
|
99
|
+
var unmarshalCheckFreeDomainAvailabilityResponse = (data) => {
|
|
99
100
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckFreeDomainAvailabilityResponse' failed as data isn't a dictionary.`);
|
|
100
101
|
return {
|
|
101
102
|
freeDomain: data.free_domain ? unmarshalFreeDomain(data.free_domain) : void 0,
|
|
@@ -103,7 +104,7 @@ const unmarshalCheckFreeDomainAvailabilityResponse = (data) => {
|
|
|
103
104
|
reason: data.reason ? data.reason : void 0
|
|
104
105
|
};
|
|
105
106
|
};
|
|
106
|
-
|
|
107
|
+
var unmarshalCheckUserOwnsDomainResponse = (data) => {
|
|
107
108
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckUserOwnsDomainResponse' failed as data isn't a dictionary.`);
|
|
108
109
|
return { ownsDomain: data.owns_domain };
|
|
109
110
|
};
|
|
@@ -127,7 +128,7 @@ var unmarshalNameserver = (data) => {
|
|
|
127
128
|
status: data.status
|
|
128
129
|
};
|
|
129
130
|
};
|
|
130
|
-
|
|
131
|
+
var unmarshalDnsRecords = (data) => {
|
|
131
132
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DnsRecords' failed as data isn't a dictionary.`);
|
|
132
133
|
return {
|
|
133
134
|
autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
|
|
@@ -137,7 +138,7 @@ const unmarshalDnsRecords = (data) => {
|
|
|
137
138
|
status: data.status
|
|
138
139
|
};
|
|
139
140
|
};
|
|
140
|
-
|
|
141
|
+
var unmarshalDomain = (data) => {
|
|
141
142
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
|
|
142
143
|
return {
|
|
143
144
|
autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
|
|
@@ -156,15 +157,6 @@ var unmarshalPlatformControlPanelUrls = (data) => {
|
|
|
156
157
|
webmail: data.webmail
|
|
157
158
|
};
|
|
158
159
|
};
|
|
159
|
-
var unmarshalControlPanel = (data) => {
|
|
160
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`);
|
|
161
|
-
return {
|
|
162
|
-
available: data.available,
|
|
163
|
-
availableLanguages: data.available_languages,
|
|
164
|
-
logoUrl: data.logo_url,
|
|
165
|
-
name: data.name
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
160
|
var unmarshalOfferCommitment = (data) => {
|
|
169
161
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferCommitment' failed as data isn't a dictionary.`);
|
|
170
162
|
return {
|
|
@@ -177,6 +169,15 @@ var unmarshalOfferCommitment = (data) => {
|
|
|
177
169
|
type: data.type
|
|
178
170
|
};
|
|
179
171
|
};
|
|
172
|
+
var unmarshalControlPanel = (data) => {
|
|
173
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`);
|
|
174
|
+
return {
|
|
175
|
+
available: data.available,
|
|
176
|
+
availableLanguages: data.available_languages,
|
|
177
|
+
logoUrl: data.logo_url,
|
|
178
|
+
name: data.name
|
|
179
|
+
};
|
|
180
|
+
};
|
|
180
181
|
var unmarshalOfferOption = (data) => {
|
|
181
182
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferOption' failed as data isn't a dictionary.`);
|
|
182
183
|
return {
|
|
@@ -197,6 +198,15 @@ var unmarshalPlatformControlPanel = (data) => {
|
|
|
197
198
|
urls: data.urls ? unmarshalPlatformControlPanelUrls(data.urls) : void 0
|
|
198
199
|
};
|
|
199
200
|
};
|
|
201
|
+
var unmarshalHostingCommitment = (data) => {
|
|
202
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingCommitment' failed as data isn't a dictionary.`);
|
|
203
|
+
return {
|
|
204
|
+
deleteHostingAtEnd: data.delete_hosting_at_end,
|
|
205
|
+
endAt: unmarshalDate(data.end_at),
|
|
206
|
+
offerCommitment: data.offer_commitment ? unmarshalOfferCommitment(data.offer_commitment) : void 0,
|
|
207
|
+
startAt: unmarshalDate(data.start_at)
|
|
208
|
+
};
|
|
209
|
+
};
|
|
200
210
|
var unmarshalHostingUser = (data) => {
|
|
201
211
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingUser' failed as data isn't a dictionary.`);
|
|
202
212
|
return {
|
|
@@ -234,9 +244,10 @@ var unmarshalPlatform = (data) => {
|
|
|
234
244
|
number: data.number
|
|
235
245
|
};
|
|
236
246
|
};
|
|
237
|
-
|
|
247
|
+
var unmarshalHosting = (data) => {
|
|
238
248
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Hosting' failed as data isn't a dictionary.`);
|
|
239
249
|
return {
|
|
250
|
+
commitment: data.commitment ? unmarshalHostingCommitment(data.commitment) : void 0,
|
|
240
251
|
createdAt: unmarshalDate(data.created_at),
|
|
241
252
|
dnsStatus: data.dns_status,
|
|
242
253
|
domain: data.domain,
|
|
@@ -273,70 +284,70 @@ var unmarshalBackupItemGroup = (data) => {
|
|
|
273
284
|
type: data.type
|
|
274
285
|
};
|
|
275
286
|
};
|
|
276
|
-
|
|
287
|
+
var unmarshalListBackupItemsResponse = (data) => {
|
|
277
288
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackupItemsResponse' failed as data isn't a dictionary.`);
|
|
278
289
|
return {
|
|
279
290
|
groups: unmarshalArrayOfObject(data.groups, unmarshalBackupItemGroup),
|
|
280
291
|
totalCount: data.total_count
|
|
281
292
|
};
|
|
282
293
|
};
|
|
283
|
-
|
|
294
|
+
var unmarshalListBackupsResponse = (data) => {
|
|
284
295
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackupsResponse' failed as data isn't a dictionary.`);
|
|
285
296
|
return {
|
|
286
297
|
backups: unmarshalArrayOfObject(data.backups, unmarshalBackup),
|
|
287
298
|
totalCount: data.total_count
|
|
288
299
|
};
|
|
289
300
|
};
|
|
290
|
-
|
|
301
|
+
var unmarshalListControlPanelsResponse = (data) => {
|
|
291
302
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListControlPanelsResponse' failed as data isn't a dictionary.`);
|
|
292
303
|
return {
|
|
293
304
|
controlPanels: unmarshalArrayOfObject(data.control_panels, unmarshalControlPanel),
|
|
294
305
|
totalCount: data.total_count
|
|
295
306
|
};
|
|
296
307
|
};
|
|
297
|
-
|
|
308
|
+
var unmarshalListDatabaseUsersResponse = (data) => {
|
|
298
309
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDatabaseUsersResponse' failed as data isn't a dictionary.`);
|
|
299
310
|
return {
|
|
300
311
|
totalCount: data.total_count,
|
|
301
312
|
users: unmarshalArrayOfObject(data.users, unmarshalDatabaseUser)
|
|
302
313
|
};
|
|
303
314
|
};
|
|
304
|
-
|
|
315
|
+
var unmarshalListDatabasesResponse = (data) => {
|
|
305
316
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDatabasesResponse' failed as data isn't a dictionary.`);
|
|
306
317
|
return {
|
|
307
318
|
databases: unmarshalArrayOfObject(data.databases, unmarshalDatabase),
|
|
308
319
|
totalCount: data.total_count
|
|
309
320
|
};
|
|
310
321
|
};
|
|
311
|
-
|
|
322
|
+
var unmarshalListFreeRootDomainsResponse = (data) => {
|
|
312
323
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFreeRootDomainsResponse' failed as data isn't a dictionary.`);
|
|
313
324
|
return {
|
|
314
325
|
rootDomains: data.root_domains,
|
|
315
326
|
totalCount: data.total_count
|
|
316
327
|
};
|
|
317
328
|
};
|
|
318
|
-
|
|
329
|
+
var unmarshalListFtpAccountsResponse = (data) => {
|
|
319
330
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFtpAccountsResponse' failed as data isn't a dictionary.`);
|
|
320
331
|
return {
|
|
321
332
|
ftpAccounts: unmarshalArrayOfObject(data.ftp_accounts, unmarshalFtpAccount),
|
|
322
333
|
totalCount: data.total_count
|
|
323
334
|
};
|
|
324
335
|
};
|
|
325
|
-
|
|
336
|
+
var unmarshalListHostingsResponse = (data) => {
|
|
326
337
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHostingsResponse' failed as data isn't a dictionary.`);
|
|
327
338
|
return {
|
|
328
339
|
hostings: unmarshalArrayOfObject(data.hostings, unmarshalHostingSummary),
|
|
329
340
|
totalCount: data.total_count
|
|
330
341
|
};
|
|
331
342
|
};
|
|
332
|
-
|
|
343
|
+
var unmarshalListMailAccountsResponse = (data) => {
|
|
333
344
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListMailAccountsResponse' failed as data isn't a dictionary.`);
|
|
334
345
|
return {
|
|
335
346
|
mailAccounts: unmarshalArrayOfObject(data.mail_accounts, unmarshalMailAccount),
|
|
336
347
|
totalCount: data.total_count
|
|
337
348
|
};
|
|
338
349
|
};
|
|
339
|
-
|
|
350
|
+
var unmarshalListOffersResponse = (data) => {
|
|
340
351
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
|
|
341
352
|
return {
|
|
342
353
|
offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
|
|
@@ -352,18 +363,18 @@ var unmarshalProgressSummary = (data) => {
|
|
|
352
363
|
status: data.status
|
|
353
364
|
};
|
|
354
365
|
};
|
|
355
|
-
|
|
366
|
+
var unmarshalListRecentProgressesResponse = (data) => {
|
|
356
367
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRecentProgressesResponse' failed as data isn't a dictionary.`);
|
|
357
368
|
return { progresses: unmarshalArrayOfObject(data.progresses, unmarshalProgressSummary) };
|
|
358
369
|
};
|
|
359
|
-
|
|
370
|
+
var unmarshalListWebsitesResponse = (data) => {
|
|
360
371
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWebsitesResponse' failed as data isn't a dictionary.`);
|
|
361
372
|
return {
|
|
362
373
|
totalCount: data.total_count,
|
|
363
374
|
websites: unmarshalArrayOfObject(data.websites, unmarshalWebsite)
|
|
364
375
|
};
|
|
365
376
|
};
|
|
366
|
-
|
|
377
|
+
var unmarshalProgress = (data) => {
|
|
367
378
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Progress' failed as data isn't a dictionary.`);
|
|
368
379
|
return {
|
|
369
380
|
backupItemGroups: unmarshalArrayOfObject(data.backup_item_groups, unmarshalBackupItemGroup),
|
|
@@ -372,14 +383,14 @@ const unmarshalProgress = (data) => {
|
|
|
372
383
|
status: data.status
|
|
373
384
|
};
|
|
374
385
|
};
|
|
375
|
-
|
|
386
|
+
var unmarshalResetHostingPasswordResponse = (data) => {
|
|
376
387
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ResetHostingPasswordResponse' failed as data isn't a dictionary.`);
|
|
377
388
|
return {
|
|
378
389
|
oneTimePassword: data.one_time_password,
|
|
379
390
|
oneTimePasswordB64: data.one_time_password_b64
|
|
380
391
|
};
|
|
381
392
|
};
|
|
382
|
-
|
|
393
|
+
var unmarshalResourceSummary = (data) => {
|
|
383
394
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ResourceSummary' failed as data isn't a dictionary.`);
|
|
384
395
|
return {
|
|
385
396
|
databasesCount: data.databases_count,
|
|
@@ -388,11 +399,11 @@ const unmarshalResourceSummary = (data) => {
|
|
|
388
399
|
websitesCount: data.websites_count
|
|
389
400
|
};
|
|
390
401
|
};
|
|
391
|
-
|
|
402
|
+
var unmarshalRestoreBackupItemsResponse = (data) => {
|
|
392
403
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RestoreBackupItemsResponse' failed as data isn't a dictionary.`);
|
|
393
404
|
return { progressId: data.progress_id };
|
|
394
405
|
};
|
|
395
|
-
|
|
406
|
+
var unmarshalRestoreBackupResponse = (data) => {
|
|
396
407
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RestoreBackupResponse' failed as data isn't a dictionary.`);
|
|
397
408
|
return { progressId: data.progress_id };
|
|
398
409
|
};
|
|
@@ -407,22 +418,22 @@ var unmarshalDomainAvailability = (data) => {
|
|
|
407
418
|
zoneName: data.zone_name
|
|
408
419
|
};
|
|
409
420
|
};
|
|
410
|
-
|
|
421
|
+
var unmarshalSearchDomainsResponse = (data) => {
|
|
411
422
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SearchDomainsResponse' failed as data isn't a dictionary.`);
|
|
412
423
|
return { domainsAvailable: unmarshalArrayOfObject(data.domains_available, unmarshalDomainAvailability) };
|
|
413
424
|
};
|
|
414
|
-
|
|
425
|
+
var unmarshalSession = (data) => {
|
|
415
426
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Session' failed as data isn't a dictionary.`);
|
|
416
427
|
return { url: data.url };
|
|
417
428
|
};
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
429
|
+
var marshalBackupApiRestoreBackupItemsRequest = (request, defaults) => ({ item_ids: request.itemIds });
|
|
430
|
+
var marshalDatabaseApiAssignDatabaseUserRequest = (request, defaults) => ({ username: request.username });
|
|
431
|
+
var marshalDatabaseApiChangeDatabaseUserPasswordRequest = (request, defaults) => ({ password: request.password });
|
|
421
432
|
var marshalCreateDatabaseRequestUser = (request, defaults) => ({
|
|
422
433
|
password: request.password,
|
|
423
434
|
username: request.username
|
|
424
435
|
});
|
|
425
|
-
|
|
436
|
+
var marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
|
|
426
437
|
database_name: request.databaseName,
|
|
427
438
|
...resolveOneOf([{
|
|
428
439
|
param: "new_user",
|
|
@@ -432,12 +443,12 @@ const marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
|
|
|
432
443
|
value: request.existingUsername
|
|
433
444
|
}])
|
|
434
445
|
});
|
|
435
|
-
|
|
446
|
+
var marshalDatabaseApiCreateDatabaseUserRequest = (request, defaults) => ({
|
|
436
447
|
password: request.password,
|
|
437
448
|
username: request.username
|
|
438
449
|
});
|
|
439
|
-
|
|
440
|
-
|
|
450
|
+
var marshalDatabaseApiUnassignDatabaseUserRequest = (request, defaults) => ({ username: request.username });
|
|
451
|
+
var marshalDnsApiCheckUserOwnsDomainRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
|
|
441
452
|
var marshalAutoConfigDomainDns = (request, defaults) => ({
|
|
442
453
|
all_records: request.allRecords,
|
|
443
454
|
mail_records: request.mailRecords,
|
|
@@ -449,7 +460,7 @@ var marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
|
|
|
449
460
|
name: request.name,
|
|
450
461
|
type: request.type
|
|
451
462
|
});
|
|
452
|
-
|
|
463
|
+
var marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
|
|
453
464
|
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns, defaults) : void 0,
|
|
454
465
|
custom_records: request.customRecords !== void 0 ? request.customRecords.map((elt) => marshalSyncDomainDnsRecordsRequestRecord(elt, defaults)) : void 0,
|
|
455
466
|
update_all_records: request.updateAllRecords,
|
|
@@ -457,17 +468,17 @@ const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
|
|
|
457
468
|
update_nameservers: request.updateNameservers,
|
|
458
469
|
update_web_records: request.updateWebRecords
|
|
459
470
|
});
|
|
460
|
-
|
|
471
|
+
var marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = (request, defaults) => ({
|
|
461
472
|
root_domain: request.rootDomain,
|
|
462
473
|
slug: request.slug
|
|
463
474
|
});
|
|
464
|
-
|
|
465
|
-
|
|
475
|
+
var marshalFtpAccountApiChangeFtpAccountPasswordRequest = (request, defaults) => ({ password: request.password });
|
|
476
|
+
var marshalFtpAccountApiCreateFtpAccountRequest = (request, defaults) => ({
|
|
466
477
|
password: request.password,
|
|
467
478
|
path: request.path,
|
|
468
479
|
username: request.username
|
|
469
480
|
});
|
|
470
|
-
|
|
481
|
+
var marshalHostingApiAddCustomDomainRequest = (request, defaults) => ({ domain_name: request.domainName });
|
|
471
482
|
var marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
|
|
472
483
|
update_all_records: request.updateAllRecords,
|
|
473
484
|
update_mail_record: request.updateMailRecord,
|
|
@@ -478,12 +489,13 @@ var marshalOfferOptionRequest = (request, defaults) => ({
|
|
|
478
489
|
id: request.id,
|
|
479
490
|
quantity: request.quantity
|
|
480
491
|
});
|
|
481
|
-
|
|
492
|
+
var marshalHostingApiCreateHostingRequest = (request, defaults) => ({
|
|
482
493
|
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns, defaults) : void 0,
|
|
483
494
|
domain: request.domain,
|
|
484
495
|
domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(request.domainConfiguration, defaults) : void 0,
|
|
485
496
|
email: request.email,
|
|
486
497
|
language: request.language,
|
|
498
|
+
offer_commitment_id: request.offerCommitmentId,
|
|
487
499
|
offer_id: request.offerId,
|
|
488
500
|
offer_options: request.offerOptions !== void 0 ? request.offerOptions.map((elt) => marshalOfferOptionRequest(elt, defaults)) : void 0,
|
|
489
501
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -491,33 +503,34 @@ const marshalHostingApiCreateHostingRequest = (request, defaults) => ({
|
|
|
491
503
|
subdomain: request.subdomain,
|
|
492
504
|
tags: request.tags
|
|
493
505
|
});
|
|
494
|
-
|
|
495
|
-
|
|
506
|
+
var marshalHostingApiDeleteHostingDomainsRequest = (request, defaults) => ({ domains: request.domains });
|
|
507
|
+
var marshalHostingApiMigrateControlPanelRequest = (request, defaults) => ({
|
|
496
508
|
control_panel_name: request.controlPanelName,
|
|
497
509
|
offer_id: request.offerId
|
|
498
510
|
});
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
511
|
+
var marshalHostingApiRemoveCustomDomainRequest = (request, defaults) => ({ domain_name: request.domainName });
|
|
512
|
+
var marshalHostingApiUpdateHostingFreeDomainRequest = (request, defaults) => ({ free_domain: request.freeDomain });
|
|
513
|
+
var marshalHostingApiUpdateHostingRequest = (request, defaults) => ({
|
|
502
514
|
email: request.email,
|
|
503
515
|
offer_id: request.offerId,
|
|
504
516
|
offer_options: request.offerOptions !== void 0 ? request.offerOptions.map((elt) => marshalOfferOptionRequest(elt, defaults)) : void 0,
|
|
505
517
|
protected: request.protected,
|
|
506
518
|
tags: request.tags
|
|
507
519
|
});
|
|
508
|
-
|
|
520
|
+
var marshalMailAccountApiChangeMailAccountPasswordRequest = (request, defaults) => ({
|
|
509
521
|
domain: request.domain,
|
|
510
522
|
password: request.password,
|
|
511
523
|
username: request.username
|
|
512
524
|
});
|
|
513
|
-
|
|
525
|
+
var marshalMailAccountApiCreateMailAccountRequest = (request, defaults) => ({
|
|
514
526
|
domain: request.domain,
|
|
515
527
|
password: request.password,
|
|
516
528
|
username: request.username
|
|
517
529
|
});
|
|
518
|
-
|
|
530
|
+
var marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
|
|
519
531
|
domain: request.domain,
|
|
520
532
|
username: request.username
|
|
521
533
|
});
|
|
522
|
-
|
|
534
|
+
var marshalWebsiteApiCreateWebsiteRequest = (request, defaults) => ({ domain_name: request.domainName });
|
|
535
|
+
//#endregion
|
|
523
536
|
export { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite };
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -78,24 +78,6 @@ export interface HostingDomainCustomDomain {
|
|
|
78
78
|
*/
|
|
79
79
|
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
80
80
|
}
|
|
81
|
-
export interface ControlPanel {
|
|
82
|
-
/**
|
|
83
|
-
* Control panel name.
|
|
84
|
-
*/
|
|
85
|
-
name: string;
|
|
86
|
-
/**
|
|
87
|
-
* Define if the control panel type is available to order.
|
|
88
|
-
*/
|
|
89
|
-
available: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* URL of the control panel's logo.
|
|
92
|
-
*/
|
|
93
|
-
logoUrl: string;
|
|
94
|
-
/**
|
|
95
|
-
* List of available languages for the control panel.
|
|
96
|
-
*/
|
|
97
|
-
availableLanguages: StdLanguageCode[];
|
|
98
|
-
}
|
|
99
81
|
export interface OfferCommitment {
|
|
100
82
|
/**
|
|
101
83
|
* Offer commitment ID.
|
|
@@ -126,6 +108,24 @@ export interface OfferCommitment {
|
|
|
126
108
|
*/
|
|
127
109
|
next?: OfferCommitment;
|
|
128
110
|
}
|
|
111
|
+
export interface ControlPanel {
|
|
112
|
+
/**
|
|
113
|
+
* Control panel name.
|
|
114
|
+
*/
|
|
115
|
+
name: string;
|
|
116
|
+
/**
|
|
117
|
+
* Define if the control panel type is available to order.
|
|
118
|
+
*/
|
|
119
|
+
available: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* URL of the control panel's logo.
|
|
122
|
+
*/
|
|
123
|
+
logoUrl: string;
|
|
124
|
+
/**
|
|
125
|
+
* List of available languages for the control panel.
|
|
126
|
+
*/
|
|
127
|
+
availableLanguages: StdLanguageCode[];
|
|
128
|
+
}
|
|
129
129
|
export interface OfferOption {
|
|
130
130
|
/**
|
|
131
131
|
* Option ID.
|
|
@@ -284,6 +284,26 @@ export interface Nameserver {
|
|
|
284
284
|
*/
|
|
285
285
|
isDefault: boolean;
|
|
286
286
|
}
|
|
287
|
+
export interface HostingCommitment {
|
|
288
|
+
/**
|
|
289
|
+
* Offer commitment for the specified hosting.
|
|
290
|
+
*/
|
|
291
|
+
offerCommitment?: OfferCommitment;
|
|
292
|
+
/**
|
|
293
|
+
* Date and time the commitment started.
|
|
294
|
+
*/
|
|
295
|
+
startAt?: Date;
|
|
296
|
+
/**
|
|
297
|
+
* Date and time the commitment ends.
|
|
298
|
+
*/
|
|
299
|
+
endAt?: Date;
|
|
300
|
+
/**
|
|
301
|
+
* The hosting may be deleted, automatically renewed, or switched to
|
|
302
|
+
its configured post-commitment offer, which may have a different
|
|
303
|
+
price and billing period.
|
|
304
|
+
*/
|
|
305
|
+
deleteHostingAtEnd: boolean;
|
|
306
|
+
}
|
|
287
307
|
export interface HostingUser {
|
|
288
308
|
/**
|
|
289
309
|
* Main Web Hosting control panel username.
|
|
@@ -1203,6 +1223,10 @@ export interface Hosting {
|
|
|
1203
1223
|
* Domain configuration block (subdomain, optional custom domain, and DNS settings).
|
|
1204
1224
|
*/
|
|
1205
1225
|
domainInfo?: HostingDomain;
|
|
1226
|
+
/**
|
|
1227
|
+
* Commitment details to which the hosting is engaged.
|
|
1228
|
+
*/
|
|
1229
|
+
commitment?: HostingCommitment;
|
|
1206
1230
|
}
|
|
1207
1231
|
export type HostingApiAddCustomDomainRequest = {
|
|
1208
1232
|
/**
|
|
@@ -1267,6 +1291,10 @@ export type HostingApiCreateHostingRequest = {
|
|
|
1267
1291
|
* Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_update_* fields instead).
|
|
1268
1292
|
*/
|
|
1269
1293
|
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
1294
|
+
/**
|
|
1295
|
+
* Offer commitment ID to which the hosting will be engaged.
|
|
1296
|
+
*/
|
|
1297
|
+
offerCommitmentId?: string;
|
|
1270
1298
|
};
|
|
1271
1299
|
export type HostingApiCreateSessionRequest = {
|
|
1272
1300
|
/**
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
BackupApiListBackupsRequest: () => BackupApiListBackupsRequest,
|
|
4
5
|
ControlPanelApiListControlPanelsRequest: () => ControlPanelApiListControlPanelsRequest,
|
|
@@ -11,74 +12,75 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
11
12
|
OfferApiListOffersRequest: () => OfferApiListOffersRequest,
|
|
12
13
|
WebsiteApiListWebsitesRequest: () => WebsiteApiListWebsitesRequest
|
|
13
14
|
});
|
|
14
|
-
|
|
15
|
+
var BackupApiListBackupsRequest = {
|
|
15
16
|
page: { greaterThan: 0 },
|
|
16
17
|
pageSize: {
|
|
17
18
|
greaterThan: 0,
|
|
18
19
|
lessThanOrEqual: 100
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
var ControlPanelApiListControlPanelsRequest = {
|
|
22
23
|
page: { greaterThan: 0 },
|
|
23
24
|
pageSize: {
|
|
24
25
|
greaterThan: 0,
|
|
25
26
|
lessThanOrEqual: 100
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
var DatabaseApiListDatabaseUsersRequest = {
|
|
29
30
|
page: { greaterThan: 0 },
|
|
30
31
|
pageSize: {
|
|
31
32
|
greaterThan: 0,
|
|
32
33
|
lessThanOrEqual: 100
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
var DatabaseApiListDatabasesRequest = {
|
|
36
37
|
page: { greaterThan: 0 },
|
|
37
38
|
pageSize: {
|
|
38
39
|
greaterThan: 0,
|
|
39
40
|
lessThanOrEqual: 100
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
+
var FreeDomainApiListFreeRootDomainsRequest = {
|
|
43
44
|
page: { greaterThan: 0 },
|
|
44
45
|
pageSize: {
|
|
45
46
|
greaterThan: 0,
|
|
46
47
|
lessThanOrEqual: 100
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
+
var FtpAccountApiListFtpAccountsRequest = {
|
|
50
51
|
page: { greaterThan: 0 },
|
|
51
52
|
pageSize: {
|
|
52
53
|
greaterThan: 0,
|
|
53
54
|
lessThanOrEqual: 100
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
+
var HostingApiListHostingsRequest = {
|
|
57
58
|
page: { greaterThan: 0 },
|
|
58
59
|
pageSize: {
|
|
59
60
|
greaterThan: 0,
|
|
60
61
|
lessThanOrEqual: 100
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
|
-
|
|
64
|
+
var MailAccountApiListMailAccountsRequest = {
|
|
64
65
|
page: { greaterThan: 0 },
|
|
65
66
|
pageSize: {
|
|
66
67
|
greaterThan: 0,
|
|
67
68
|
lessThanOrEqual: 100
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
|
|
71
|
+
var OfferApiListOffersRequest = {
|
|
71
72
|
page: { greaterThan: 0 },
|
|
72
73
|
pageSize: {
|
|
73
74
|
greaterThan: 0,
|
|
74
75
|
lessThanOrEqual: 100
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
|
-
|
|
78
|
+
var WebsiteApiListWebsitesRequest = {
|
|
78
79
|
page: { greaterThan: 0 },
|
|
79
80
|
pageSize: {
|
|
80
81
|
greaterThan: 0,
|
|
81
82
|
lessThanOrEqual: 100
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
+
//#endregion
|
|
86
|
+
export { BackupApiListBackupsRequest, ControlPanelApiListControlPanelsRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccountApiListFtpAccountsRequest, HostingApiListHostingsRequest, MailAccountApiListMailAccountsRequest, OfferApiListOffersRequest, WebsiteApiListWebsitesRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-webhosting",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Scaleway SDK webhosting",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|