Skip to content

Commit

Permalink
add missing isDelegable prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MalpenZibo committed Nov 19, 2024
1 parent 6dac364 commit dfcfdbb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api-clients/open-api/apiGatewayApi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,8 @@ components:
type: string
isSignalHubEnabled:
type: boolean
isDelegable:
type: boolean
EServiceAttributes:
description: the attributes set associated to the EService
properties:
Expand Down
10 changes: 10 additions & 0 deletions packages/api-clients/open-api/bffApi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12973,6 +12973,8 @@ components:
$ref: "#/components/schemas/EServiceMode"
isSignalHubEnabled:
type: boolean
isDelegable:
type: boolean
EServiceSeed:
type: object
additionalProperties: false
Expand All @@ -12992,6 +12994,8 @@ components:
$ref: "#/components/schemas/EServiceMode"
isSignalHubEnabled:
type: boolean
isDelegable:
type: boolean
UpdateEServiceDescriptorQuotas:
required:
- voucherLifespan
Expand Down Expand Up @@ -13239,6 +13243,8 @@ components:
$ref: "#/components/schemas/Mail"
isSignalHubEnabled:
type: boolean
isDelegable:
type: boolean
ProducerEServiceDetails:
type: object
additionalProperties: false
Expand Down Expand Up @@ -13267,6 +13273,8 @@ components:
$ref: "#/components/schemas/EServiceRiskAnalysis"
isSignalHubEnabled:
type: boolean
isDelegable:
type: boolean
EServiceMode:
type: string
description: Risk Analysis Mode
Expand Down Expand Up @@ -13394,6 +13402,8 @@ components:
$ref: "#/components/schemas/Mail"
isSignalHubEnabled:
type: boolean
isDelegable:
type: boolean
EServiceDoc:
type: object
additionalProperties: false
Expand Down
1 change: 1 addition & 0 deletions packages/api-gateway/src/services/catalogService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,6 @@ export async function enhanceEservice(
serverUrls: latestNonDraftDescriptor.serverUrls,
producer: producerOrganization,
isSignalHubEnabled: eservice.isSignalHubEnabled,
isDelegable: eservice.isDelegable,
};
}
2 changes: 2 additions & 0 deletions packages/backend-for-frontend/src/api/catalogApiConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export function toBffCatalogDescriptorEService(
toBffCatalogApiEserviceRiskAnalysis
),
isSignalHubEnabled: eservice.isSignalHubEnabled,
isDelegable: eservice.isDelegable,
};
}

Expand Down Expand Up @@ -265,6 +266,7 @@ export function toBffCatalogApiProducerDescriptorEService(
),
descriptors: notDraftDecriptors,
isSignalHubEnabled: eservice.isSignalHubEnabled,
isDelegable: eservice.isDelegable,
};
}

Expand Down
1 change: 1 addition & 0 deletions packages/backend-for-frontend/src/model/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,6 @@ export const ConfigurationEservice = z.object({
descriptor: ConfigurationDescriptor,
riskAnalysis: z.array(ConfigurationRiskAnalysis),
isSignalHubEnabled: z.boolean().optional(),
isDelegable: z.boolean().optional(),
});
export type ConfigurationEservice = z.infer<typeof ConfigurationEservice>;
2 changes: 2 additions & 0 deletions packages/backend-for-frontend/src/services/catalogService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ export function catalogServiceBuilder(
toBffCatalogApiEserviceRiskAnalysis
),
isSignalHubEnabled: eservice.isSignalHubEnabled,
isDelegable: eservice.isDelegable,
};
},
updateEServiceDescription: async (
Expand Down Expand Up @@ -1131,6 +1132,7 @@ export function catalogServiceBuilder(
importedEservice.descriptor.agreementApprovalPolicy,
},
isSignalHubEnabled: importedEservice.isSignalHubEnabled,
isDelegable: importedEservice.isDelegable,
};

const pollEServiceById = createPollingByCondition(() =>
Expand Down
1 change: 1 addition & 0 deletions packages/backend-for-frontend/src/utilities/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export function buildJsonConfig(
technology: eservice.technology,
mode: eservice.mode,
isSignalHubEnabled: eservice.isSignalHubEnabled,
isDelegable: eservice.isDelegable,
descriptor: {
interface: descriptor.interface && {
prettyName: descriptor.interface.prettyName,
Expand Down

0 comments on commit dfcfdbb

Please sign in to comment.