@c8y/toolkit
Version:
Toolkit for Cumulocity applications, allows to e.g. deploy an application to an instance of Cumulocity.
34 lines (33 loc) • 1.14 kB
TypeScript
import { IManifest } from '@c8y/client';
/**
* Converts the provided file data to application data.
*
* @param fileData - The file data to convert.
* @returns The application data.
*/
export declare function dataToAppData(fileData: any): any;
/**
* Gets the name from the application data.
*
* @param appData - The application data.
* @param fallbackStr - The fallback string to use if name is not found.
* @returns The name of the application.
*/
export declare function getName(appData: IManifest, fallbackStr?: string): string;
/**
* Gets the key from the application data.
*
* @param appData - The application data.
* @param name - The name to use in case the key is not found.
* @returns The key of the application.
*/
export declare function getKey(appData: IManifest, name: string): string;
export declare function getContextPath(appData: IManifest, name: string): string;
declare const environmentVariables: {
C8Y_URL: string;
C8Y_PASSWORD: string;
C8Y_USER: string;
C8Y_TENANT: string;
};
export declare function getFromEnvVar(envVar: keyof typeof environmentVariables): string | undefined;
export {};