UNPKG

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.

34 lines (33 loc) 1.2 kB
export type Token = `Bearer ${string}` | `Token ${string}`; /** Uploads an app to the hub manager */ export declare function uploadAppToHubManager(options: { appId: string; /** The authentication token issued by the hub manager */ token: Token; /** Optional hub channels */ channels?: string[]; /** The app archive (ZIP) */ archive: Buffer; /** The version of the app */ version: string; /** Buffer containing the release notes */ releaseNotes: Buffer | undefined; /** Publish url */ hubManagerDeploymentUrl: string; }): Promise<string>; /** Uploads an app to the hub console */ export declare function uploadAppToHubConsole(options: { appId: string; version: string; token: Token; autoApprove?: boolean; channelId?: string; artifact: Buffer; releaseNotes?: Buffer; hubConsoleBaseUrl: string; }): Promise<string>; /** * Depending on the token it will return the proper endpoint for publishing an app. * If the token string starts with 'Token' it will return the legacy path and otherwise it will return the new path. */ export declare function getHubManagerEndpointForPublish(token: Token, appId: string): string;