All files / src/tools/auth0/handlers index.ts

100% Statements 31/31
100% Branches 0/0
100% Functions 0/0
100% Lines 31/31

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71  1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x         1x                                                                 1x      
//TODO:
import * as rules from './rules';
import * as rulesConfigs from './rulesConfigs';
import * as hooks from './hooks';
import * as pages from './pages';
import * as resourceServers from './resourceServers';
import * as databases from './databases';
import * as connections from './connections';
import * as clients from './clients';
import * as tenant from './tenant';
import * as emailProvider from './emailProvider';
import * as emailTemplates from './emailTemplates';
import * as clientGrants from './clientGrants';
import * as guardianFactors from './guardianFactors';
import * as guardianFactorProviders from './guardianFactorProviders';
import * as guardianFactorTemplates from './guardianFactorTemplates';
import * as guardianPolicies from './guardianPolicies';
import * as guardianPhoneFactorSelectedProvider from './guardianPhoneFactorSelectedProvider';
import * as guardianPhoneFactorMessageTypes from './guardianPhoneFactorMessageTypes';
import * as roles from './roles';
import * as branding from './branding';
import * as prompts from './prompts';
import * as migrations from './migrations';
import * as actions from './actions';
import * as triggers from './triggers';
import * as organizations from './organizations';
import * as attackProtection from './attackProtection';
import * as logStreams from './logStreams';
import * as customDomains from './customDomains';
import * as themes from './themes';
 
import { AssetTypes } from '../../../types';
import APIHandler from './default';
 
const auth0ApiHandlers: { [key in AssetTypes]: any } = {
  rules,
  rulesConfigs,
  hooks,
  pages,
  resourceServers,
  clients,
  databases,
  connections,
  tenant,
  emailProvider,
  emailTemplates,
  clientGrants,
  guardianFactors,
  guardianFactorProviders,
  guardianFactorTemplates,
  guardianPolicies,
  guardianPhoneFactorSelectedProvider,
  guardianPhoneFactorMessageTypes,
  roles,
  branding,
  //@ts-ignore because prompts have not been universally implemented yet
  prompts,
  migrations,
  actions,
  triggers,
  organizations,
  attackProtection,
  logStreams,
  customDomains,
  themes,
};
 
export default auth0ApiHandlers as {
  [key in AssetTypes]: { default: typeof APIHandler; excludeSchema?: any; schema: any };
}; // TODO: apply stronger types to schema properties