import { _SPCollection, _SPInstance, ISPQueryable } from "../spqueryable.js"; import { IFile } from "../files/types.js"; export declare class _AppCatalog extends _SPCollection { constructor(base: string | ISPQueryable, path?: string); /** * Get details of specific app from the app catalog * @param id - Specify the guid of the app */ getAppById(id: string): IApp; /** * Synchronize a solution to the Microsoft Teams App Catalog * @param id - Specify the guid of the app * @param useSharePointItemId (optional) - By default this REST call requires the SP Item id of the app, not the app id. * PnPjs will try to fetch the item id by default, you can still use this parameter to pass your own item id in the first parameter */ syncSolutionToTeams(id: string | number, useSharePointItemId?: boolean): Promise; /** * Uploads an app package. Not supported for batching * * @param filename Filename to create. * @param content app package data (eg: the .app or .sppkg file). * @param shouldOverWrite Should an app with the same name in the same location be overwritten? (default: true) * @returns Promise */ add(filename: string, content: string | ArrayBuffer | Blob, shouldOverWrite?: boolean): Promise; } export interface IAppCatalog extends _AppCatalog { } export declare const AppCatalog: import("../spqueryable.js").ISPInvokableFactory; export declare class _App extends _SPInstance { /** * This method deploys an app on the app catalog. It must be called in the context * of the tenant app catalog web or it will fail. * * @param skipFeatureDeployment Deploy the app to the entire tenant */ deploy(skipFeatureDeployment?: boolean): Promise; /** * This method retracts a deployed app on the app catalog. It must be called in the context * of the tenant app catalog web or it will fail. */ retract(): Promise; /** * This method allows an app which is already deployed to be installed on a web */ install(): Promise; /** * This method allows an app which is already installed to be uninstalled on a web * Note: when you use the REST API to uninstall a solution package from the site, it is not relocated to the recycle bin */ uninstall(): Promise; /** * This method allows an app which is already installed to be upgraded on a web */ upgrade(): Promise; /** * This method removes an app from the app catalog. It must be called in the context * of the tenant app catalog web or it will fail. */ remove(): Promise; private do; } export interface IApp extends _App { } export declare const App: import("../spqueryable.js").ISPInvokableFactory; /** * Result object after adding an app */ export interface IAppAddResult { /** * Contains metadata of the added app */ data: any; /** * A File instance to the item in SharePoint */ file: IFile; } //# sourceMappingURL=types.d.ts.map