Skip to content

Commit d6d68c9

Browse files
committed
Update build files
1 parent 48e07e9 commit d6d68c9

4 files changed

Lines changed: 69 additions & 51 deletions

File tree

definition/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket.chat/apps-ts-definition",
3-
"version": "1.28.0",
3+
"version": "1.28.1",
44
"description": "Contains the TypeScript definitions for the Rocket.Chat Applications.",
55
"main": "index.js",
66
"typings": "index",

server/AppManager.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IGetAppsFilter } from './IGetAppsFilter';
88
import { AppAccessorManager, AppApiManager, AppExternalComponentManager, AppLicenseManager, AppListenerManager, AppSchedulerManager, AppSettingsManager, AppSlashCommandManager } from './managers';
99
import { IMarketplaceInfo } from './marketplace';
1010
import { ProxiedApp } from './ProxiedApp';
11-
import { AppLogStorage, AppMetadataStorage } from './storage';
11+
import { AppLogStorage, AppMetadataStorage, IAppStorageItem } from './storage';
1212
import { AppSourceStorage } from './storage/AppSourceStorage';
1313
export interface IAppInstallParameters {
1414
enable: boolean;
@@ -101,6 +101,16 @@ export declare class AppManager {
101101
update(appPackage: Buffer, permissionsGranted: Array<IPermission>, updateOptions?: {
102102
loadApp: boolean;
103103
}): Promise<AppFabricationFulfillment>;
104+
/**
105+
* Updates the local instance of an app.
106+
*
107+
* If the second parameter is a Buffer of an app package,
108+
* unpackage and instantiate the app's main class
109+
*
110+
* With an instance of a ProxiedApp, start it up and replace
111+
* the reference in the local app collection
112+
*/
113+
updateLocal(stored: IAppStorageItem, appPackageOrInstance: ProxiedApp | Buffer): Promise<void>;
104114
getLanguageContent(): {
105115
[key: string]: object;
106116
};
@@ -117,6 +127,7 @@ export declare class AppManager {
117127
private runStartUpProcess;
118128
private installApp;
119129
private initializeApp;
130+
private purgeAppConfig;
120131
/**
121132
* Determines if the App's required settings are set or not.
122133
* Should a packageValue be provided and not empty, then it's considered set.

server/AppManager.js

Lines changed: 55 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/AppManager.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)