Skip to content

Commit da44aa2

Browse files
authored
Optimize ORD document structure for better presentation (#19)
Signed-off-by: Simon Heimler <simon.heimler@sap.com>
1 parent c9f2fb0 commit da44aa2

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

src/api/open-resource-discovery/v1/data/document.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@ const astronomyV1ApiResource: APIResource = {
6060
extensible: {
6161
supported: 'no',
6262
},
63-
entityTypeMappings: [
63+
exposedEntityTypes: [
6464
{
65-
entityTypeTargets: [
66-
{
67-
ordId: `${appNamespace}:entityType:Constellation:v1`,
68-
},
69-
],
65+
ordId: `${appNamespace}:entityType:Constellation:v1`,
7066
},
7167
],
7268
}
@@ -136,13 +132,9 @@ const odmFinanceCostObjectV1EventResource: EventResource = {
136132
extensible: {
137133
supported: 'no',
138134
},
139-
entityTypeMappings: [
135+
exposedEntityTypes: [
140136
{
141-
entityTypeTargets: [
142-
{
143-
ordId: 'sap.odm.finance:entityType:CostObject:v1',
144-
},
145-
],
137+
ordId: 'sap.odm.finance:entityType:CostObject:v1',
146138
},
147139
],
148140
}
@@ -159,9 +151,9 @@ export const ordDocument: ORDDocument = {
159151
describedSystemInstance: describedSystemInstance,
160152
products: [product],
161153
packages: [ordReferenceAppApiPackage, ordReferenceAppEventsPackage],
162-
consumptionBundles: [noAuthConsumptionBundle],
163154
apiResources: [astronomyV1ApiResource, crmV1ApiResource],
164155
eventResources: [odmFinanceCostObjectV1EventResource],
156+
consumptionBundles: [noAuthConsumptionBundle],
165157
entityTypes: [constellationEntityType],
166158
tombstones: [
167159
{

0 commit comments

Comments
 (0)