I've defined some custom configs in my CCC.CompositionApi.Server.Plugin.dll
I can see them in the APIServer Administration portal, however when building the typed client using the command .\imxclient compile-api /copyapi imx-api-ccc.tgz /packagename imx-api-ccc and copying it into my angular project along with my other custom API methods, the config is not appearing in TypedClient.ts
public class CCC_Configuration : IApiProviderFor<QER.CompositionApi.Portal.PortalApiProject>, IApiProvider
{
public void Build(IApiBuilder builder)
{
var configService = builder.Resolver.Resolve<IConfigService>();
var cccConfig = new CCC_Config();
// This call registers the object instance with the configuration
// service. This has the following effects:
// 1. The object's configurable properties will be exposed to
// the external configurator.
// 2. Changes made through external configuration will be directly
// applied to the configurable object.
configService.RegisterConfigurableObject(cccConfig);
builder.Resolver.Resolve<IServices>().Register<CCC_Config>(cccConfig);
}
}
[DisplayName("Custom configuration")]
public class CCC_Config
{
public CCC_Config()
{
EnableRequestsMenu = true;
EnableDelegationMenu = true;
EnableReportsMenu = true;
EnableResponsibilitiesMenu = true;
}
[DisplayName("Enable Requests menu")]
[Description("Enable the requests menu in the portal")]
public bool EnableRequestsMenu { get; set; }
[DisplayName("Enable Delegation menu")]
[Description("Enable the delegation menu in the portal")]
public bool EnableDelegationMenu { get; set; }
[DisplayName("Enable Reports menu")]
[Description("Enable the reports menu in the portal")]
public bool EnableReportsMenu { get; set; }
[DisplayName("Enable Responsibilities menu")]
[Description("Enable the responsibilities menu in the portal")]
public bool EnableResponsibilitiesMenu { get; set; }
}