Skip to content

Developer Tools ​

Developer Tools is an app designed to support developers during local development. With Developer Tools, developers can modify permissions and environment settings to test and troubleshoot their code.

How to install ​

  1. Install as developer dependency

    npm install -D @alliance/app-developer-tools --registry https://registry.webprovisions.io
  2. Add app to your Alliance configuration file.

    ts
    // alliance.config.ts
    import { defineConfig } from '@alliance/framework/config';
    
    export default defineConfig({
      server: {
        apps: ['@alliance/app-developer-tools'],
      },
    });

Capabilities ​

No available capabilities.

Managed Objects ​

currentUser ​

Object containing information about the current user.

Example

ts
// app.ts
import { queryObjects } from '@alliance/framework';

const query = queryObjects('currentUser');

const currentUser = await query.resolve();

Object Type ​

PropertyTypeDescription
displayNamestringUsers name
emailstringUsers email address
typestringUser type
objectIdstringUsers AD object id
permissions{ permission: Permission }[]Users permissions
workspaces{ workspace: Workspace }[]Workspaces that the current user has access to
Permission ​
PropertyTypeDescription
namestringPermission name
app{ name: string }App where the permission originates from
Workspace ​
PropertyTypeDescription
namestringWorkspace name
slugstringURL friendly workspace name

Query Args ​

No arguments.

currentWorkspace ​

Object containing information about the current workspace.

Example

ts
// app.ts
import { queryObjects } from '@alliance/framework';

const query = queryObjects('currentWorkspace');

const currentWorkspace = await query.resolve();

Object Type ​

PropertyTypeDescription
namestringWorkspace name
slugstringURL friendly workspace name

Query Args ​

No arguments.