@scaleway/sdk-webhosting 2.9.0 → 2.11.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.
@@ -10,7 +10,8 @@ const HOSTING_TRANSIENT_STATUSES = [
10
10
  "delivering",
11
11
  "deleting",
12
12
  "migrating",
13
- "updating"
13
+ "updating",
14
+ "payment_pending"
14
15
  ];
15
16
  //#endregion
16
17
  export { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES };
@@ -164,6 +164,7 @@ const unmarshalOfferCommitment = (data) => {
164
164
  billingOperationPath: data.billing_operation_path,
165
165
  durationInMonth: data.duration_in_month,
166
166
  id: data.id,
167
+ isDefault: data.is_default,
167
168
  next: data.next ? unmarshalOfferCommitment(data.next) : void 0,
168
169
  price: data.price ? unmarshalMoney(data.price) : void 0,
169
170
  type: data.type
@@ -15,7 +15,7 @@ export type DomainDnsAction = 'unknown_dns_action' | 'auto_config_all_records' |
15
15
  export type DomainStatus = 'unknown_status' | 'valid' | 'invalid' | 'validating' | 'error';
16
16
  export type DomainZoneOwner = 'unknown_zone_owner' | 'external' | 'scaleway' | 'online' | 'webhosting';
17
17
  export type HostingProvider = 'unknown_provider' | 'elements' | 'dedibox';
18
- export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating' | 'updating';
18
+ export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating' | 'updating' | 'payment_pending' | 'payment_failed';
19
19
  export type ListBackupsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
20
20
  export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc';
21
21
  export type ListDatabasesRequestOrderBy = 'database_name_asc' | 'database_name_desc';
@@ -88,6 +88,10 @@ export interface OfferCommitment {
88
88
  * Offer commitment type.
89
89
  */
90
90
  type: CommitmentType;
91
+ /**
92
+ * True if the commitment is the default one for that offer.
93
+ */
94
+ isDefault: boolean;
91
95
  /**
92
96
  * Offer commitment name.
93
97
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-webhosting",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "Scaleway SDK webhosting",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@scaleway/random-name": "5.1.4",
35
- "@scaleway/sdk-std": "2.4.2"
35
+ "@scaleway/sdk-std": "2.4.3"
36
36
  },
37
37
  "devDependencies": {
38
- "@scaleway/sdk-client": "^2.4.0",
38
+ "@scaleway/sdk-client": "^2.4.1",
39
39
  "@repo/configs": "^0.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@scaleway/sdk-client": "^2.4.0"
42
+ "@scaleway/sdk-client": "^2.4.1"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=20.20.2"