EndemolShineGroup/acl

View on GitHub
src/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
export interface Grants {
  // [env]: boolean
  [key: string]: boolean;
}

export interface Permissions {
  // [job] : envs
  [key: string]: Grants;
}

export interface Roles {
  //[role] : jobs
  [key: string]: Permissions;
}

export interface GrantQuery {
  roles: string[];
  permissions: string[];
  environments: string[];
  any?: boolean;
}

// Basic types
export interface StringObj {
  [key: string]: string;
}