Custom Configuration and TypedClient

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; }

            }

Parents
  • Missing the step to inject it into the Angular Portal code/repo

    imxclient.exe inject-package /inject imx-modules\imx-api-qbm.tgz,imx-modules\imx-api-qer.tgz,imx-modules\imx-api-dpr.tgz,imx-modules\imx-api-att.tgz,imx-modules\imx-api-arc.tgz,imx-modules\imx-api-aob.tgz,imx-modules\imx-api-rps.tgz,imx-modules\imx-api-tsb.tgz,imx-modules\imx-api-pol.tgz,imx-modules\imx-api-cpl.tgz,imx-modules\imx-qbm-dbts.tgz,imx-modules\imx-api-aad.tgz,imx-modules\imx-api-o3t.tgz,imx-modules\imx-api-rms.tgz,imx-modules\imx-api-rmb.tgz,imx-modules\imx-api-uci.tgz,imx-modules\imx-api-ccc.tgz

Reply
  • Missing the step to inject it into the Angular Portal code/repo

    imxclient.exe inject-package /inject imx-modules\imx-api-qbm.tgz,imx-modules\imx-api-qer.tgz,imx-modules\imx-api-dpr.tgz,imx-modules\imx-api-att.tgz,imx-modules\imx-api-arc.tgz,imx-modules\imx-api-aob.tgz,imx-modules\imx-api-rps.tgz,imx-modules\imx-api-tsb.tgz,imx-modules\imx-api-pol.tgz,imx-modules\imx-api-cpl.tgz,imx-modules\imx-qbm-dbts.tgz,imx-modules\imx-api-aad.tgz,imx-modules\imx-api-o3t.tgz,imx-modules\imx-api-rms.tgz,imx-modules\imx-api-rmb.tgz,imx-modules\imx-api-uci.tgz,imx-modules\imx-api-ccc.tgz

Children