diff --git a/api/schema/contentSources.json b/api/schema/contentSources.json index a021a4bd..13641c5b 100644 --- a/api/schema/contentSources.json +++ b/api/schema/contentSources.json @@ -252,7 +252,7 @@ }, "type": "object" }, - "api.ModuleInfoResponse": { + "api.PackageSourcesResponse": { "properties": { "arch": { "description": "Architecture of the module", @@ -266,10 +266,18 @@ "description": "Description of the module", "type": "string" }, + "end_date": { + "description": "End date of the lifecycle", + "type": "string" + }, "name": { "description": "Name of the module", "type": "string" }, + "start_date": { + "description": "Start date of the lifecycle", + "type": "string" + }, "stream": { "description": "Stream of the module", "type": "string" @@ -1177,7 +1185,7 @@ "package_sources": { "description": "List of the module streams for the package", "items": { - "$ref": "#/components/schemas/api.ModuleInfoResponse" + "$ref": "#/components/schemas/api.PackageSourcesResponse" }, "type": "array" }, diff --git a/src/store/service/contentSourcesApi.ts b/src/store/service/contentSourcesApi.ts index a9e4c55c..1c7add2a 100644 --- a/src/store/service/contentSourcesApi.ts +++ b/src/store/service/contentSourcesApi.ts @@ -639,15 +639,19 @@ export type ApiRepositoryRpmCollectionResponse = { links?: ApiLinks | undefined; meta?: ApiResponseMetadata | undefined; }; -export type ApiModuleInfoResponse = { +export type ApiPackageSourcesResponse = { /** Architecture of the module */ arch?: string | undefined; /** Context of the module */ context?: string | undefined; /** Description of the module */ description?: string | undefined; + /** End date of the lifecycle */ + end_date?: string | undefined; /** Name of the module */ name?: string | undefined; + /** Start date of the lifecycle */ + start_date?: string | undefined; /** Stream of the module */ stream?: string | undefined; /** Type of rpm (can be either 'package' or 'module') */ @@ -659,7 +663,7 @@ export type ApiSearchRpmResponse = { /** Package name found */ package_name?: string | undefined; /** List of the module streams for the package */ - package_sources?: ApiModuleInfoResponse[] | undefined; + package_sources?: ApiPackageSourcesResponse[] | undefined; /** Summary of the package found */ summary?: string | undefined; };