diff --git a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts index ae5d23a8e..c22bb7719 100644 --- a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts @@ -23,6 +23,7 @@ export type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen' diff --git a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts index 0f416a737..e5760aa20 100644 --- a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts @@ -3,6 +3,7 @@ import { isJSONObject, unmarshalArrayOfObject, + unmarshalDate, unmarshalMoney, } from '@scaleway/sdk-client' import type { @@ -228,7 +229,9 @@ const unmarshalPublicCatalogProductPropertiesInstance = ( } return { + offerId: data.offer_id, range: data.range, + recommendedReplacementOfferIds: data.recommended_replacement_offer_ids, } as PublicCatalogProductPropertiesInstance } @@ -332,6 +335,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => { return { description: data.description, + endOfLifeAt: unmarshalDate(data.end_of_life_at), environmentalImpactEstimation: data.environmental_impact_estimation ? unmarshalPublicCatalogProductEnvironmentalImpactEstimation( data.environmental_impact_estimation, @@ -349,6 +353,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => { : undefined, serviceCategory: data.service_category, sku: data.sku, + status: data.status, unitOfMeasure: data.unit_of_measure ? unmarshalPublicCatalogProductUnitOfMeasure(data.unit_of_measure) : undefined, diff --git a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts index c79241eed..33224db0e 100644 --- a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts @@ -13,6 +13,14 @@ export type PublicCatalogProductPropertiesHardwareCPUArch = | 'riscv' | 'apple_silicon' +export type PublicCatalogProductStatus = + | 'unknown_status' + | 'public_beta' + | 'preview' + | 'general_availability' + | 'end_of_deployment' + | 'end_of_support' + export type PublicCatalogProductUnitOfMeasureCountableUnit = | 'unknown_countable_unit' | 'chunk' @@ -211,6 +219,14 @@ export interface PublicCatalogProductPropertiesInstance { * The range of the Instance server. */ range: string + /** + * The offer ID of the Instance server. + */ + offerId: string + /** + * The recommended replacement offer IDs of the Instance server. + */ + recommendedReplacementOfferIds: string[] } export interface PublicCatalogProductEnvironmentalImpactEstimation { @@ -329,6 +345,14 @@ export interface PublicCatalogProduct { * The unit of measure of the product. */ unitOfMeasure?: PublicCatalogProductUnitOfMeasure + /** + * The status of the product. + */ + status: PublicCatalogProductStatus + /** + * The end of life date of the product. + */ + endOfLifeAt?: Date } export interface ListPublicCatalogProductsResponse {