Skip to content

Commit ab80fac

Browse files
authored
Merge branch 'main' into v1.6506.0
2 parents 8ab3aed + ffb89e8 commit ab80fac

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import {
44
isJSONObject,
55
unmarshalArrayOfObject,
6+
unmarshalDate,
67
unmarshalMoney,
78
} from '@scaleway/sdk-client'
89
import type {
@@ -228,7 +229,9 @@ const unmarshalPublicCatalogProductPropertiesInstance = (
228229
}
229230

230231
return {
232+
offerId: data.offer_id,
231233
range: data.range,
234+
recommendedReplacementOfferIds: data.recommended_replacement_offer_ids,
232235
} as PublicCatalogProductPropertiesInstance
233236
}
234237

@@ -332,6 +335,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => {
332335

333336
return {
334337
description: data.description,
338+
endOfLifeAt: unmarshalDate(data.end_of_life_at),
335339
environmentalImpactEstimation: data.environmental_impact_estimation
336340
? unmarshalPublicCatalogProductEnvironmentalImpactEstimation(
337341
data.environmental_impact_estimation,
@@ -349,6 +353,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => {
349353
: undefined,
350354
serviceCategory: data.service_category,
351355
sku: data.sku,
356+
status: data.status,
352357
unitOfMeasure: data.unit_of_measure
353358
? unmarshalPublicCatalogProductUnitOfMeasure(data.unit_of_measure)
354359
: undefined,

packages_generated/product_catalog/src/v2alpha1/types.gen.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ export type PublicCatalogProductPropertiesHardwareCPUArch =
1313
| 'riscv'
1414
| 'apple_silicon'
1515

16+
export type PublicCatalogProductStatus =
17+
| 'unknown_status'
18+
| 'public_beta'
19+
| 'preview'
20+
| 'general_availability'
21+
| 'end_of_deployment'
22+
| 'end_of_support'
23+
1624
export type PublicCatalogProductUnitOfMeasureCountableUnit =
1725
| 'unknown_countable_unit'
1826
| 'chunk'
@@ -211,6 +219,14 @@ export interface PublicCatalogProductPropertiesInstance {
211219
* The range of the Instance server.
212220
*/
213221
range: string
222+
/**
223+
* The offer ID of the Instance server.
224+
*/
225+
offerId: string
226+
/**
227+
* The recommended replacement offer IDs of the Instance server.
228+
*/
229+
recommendedReplacementOfferIds: string[]
214230
}
215231

216232
export interface PublicCatalogProductEnvironmentalImpactEstimation {
@@ -329,6 +345,14 @@ export interface PublicCatalogProduct {
329345
* The unit of measure of the product.
330346
*/
331347
unitOfMeasure?: PublicCatalogProductUnitOfMeasure
348+
/**
349+
* The status of the product.
350+
*/
351+
status: PublicCatalogProductStatus
352+
/**
353+
* The end of life date of the product.
354+
*/
355+
endOfLifeAt?: Date
332356
}
333357

334358
export interface ListPublicCatalogProductsResponse {

0 commit comments

Comments
 (0)