dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
66 lines (65 loc) • 2.61 kB
TypeScript
import type { HtmlBuilder } from '../utils/inject/injector';
export declare const DOCUMENTS_DIR = "documents";
export declare const DOCUMENT_TYPES_DIR = "document-types";
/**
* Injecting the agent script into the index.html.
* If it is an internal app (appId: dynatrace.*) it will not inject the selfmonAgentConfig so the actions from the agent will correlate with the top level session.
* @param html
* @param agentUrl
* @param distDir path where the ui is located e.g. dist/ui or dist/widgets/actions/action-1
* @param appId
* @param uiFiles
*/
export declare function injectAgent(html: HtmlBuilder, agentUrl: string, distDir: string, appId: string): Promise<void>;
/** Get the list of function files from functions directory */
export declare function getFunctionFiles(options: {
/** The current working directory of the project */
cwd: string;
/** Relative path where the functions are located */
functionsFolder: string;
/** Glob for function files */
glob: string;
}): string[];
/** Get the list of function files from functions directory */
export declare function printFunctionsInfo(options: {
/** The current working directory of the project */
cwd: string;
/** Relative path where the functions are located */
functionsDir: string;
/** Glob for function files */
glob: string;
/** Server url location */
url: string;
}): void;
/** Returns a printable list of project actions (new implementation) */
export declare function printActionInfo(options: {
/** The current working directory of the project */
cwd: string;
/** The current working directory of the project */
actionsDir: string;
/** Server url location */
url: string;
/** The environment url */
environmentUrl: string;
/** The location app ids */
locationAppIds: string;
}): Promise<void>;
/** Returns all the filePaths resulting from the glob string passed. */
export declare function globFilesFromRoot(root: string, globString: string): Promise<string[]>;
/** Returns a printable list of project settings widgets */
export declare function printSettingsWidgetsInfo(options: {
/** The current working directory of the project */
cwd: string;
/** Location of the settings widgets */
widgetSettingsDir: string;
/** Server url location */
url: string;
/** The environment url */
environmentUrl: string;
}): Promise<void>;
/** Returns a printable list of app documents */
export declare function printDocumentsInfo(options: {
cwd: string;
appId: string;
documentsDir: string;
}): Promise<void>;