Enums
Once loaded by the application, the enums are exposed under namespace: sap.pdms.ipro.api.
So you any application or ipro can simply use an enum in javascript like this:
sap.pdms.ipro.api.ContextSelector.SELECTED
It is recommended that at the top of the file we're you're using the enum, you're aliasing it to a local variable. E.g.:
// at the top of the file
var iproApi = sap.pdms.ipro.api;
// somewhere below in the file
iproApi.ContextSelector.SELECTED