Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAK] Marketplace standalone page and app request flow #27389

Merged
merged 149 commits into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from 126 commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
cc2c9b3
WIP: Removing marketplace from admin menu
rique223 Nov 25, 2022
f8ccb95
feat: :sparkles: Finish moving marketplace out of the admin menu
rique223 Nov 28, 2022
3aa1dc9
Tests
rique223 Nov 29, 2022
9d22459
Merge branch 'develop' into feat/new-marketplace
rique223 Nov 29, 2022
ea0f267
chore: sidebar
dougfabris Dec 1, 2022
fc59338
Merge branch 'develop' into feat/new-marketplace
dougfabris Dec 1, 2022
55186f7
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Dec 6, 2022
e3bd430
Lint
rique223 Dec 6, 2022
3e1fe90
Merge branch 'develop' into feat/new-marketplace
rique223 Dec 7, 2022
a3a7b5e
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Dec 8, 2022
86b42e0
Merge branch 'develop' into feat/new-marketplace
rique223 Dec 9, 2022
d9ce422
Merge branch 'develop' into feat/new-marketplace
dougfabris Dec 13, 2022
0bbf698
chore: tweaks
dougfabris Dec 14, 2022
19db3ea
Review
rique223 Dec 15, 2022
b4812b2
Merge branch 'develop' into feat/new-marketplace
rique223 Dec 18, 2022
ea8c721
[IMPROVE] New marketplace routes (#27471)
rique223 Jan 7, 2023
dea7556
Merge branch 'develop' into feat/new-marketplace
dougfabris Jan 9, 2023
7a491ef
Merge branch 'develop' into feat/new-marketplace
dougfabris Jan 9, 2023
83ed24c
chore: replace refactored sidebar
dougfabris Jan 9, 2023
58996ce
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Jan 10, 2023
76b0878
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Jan 10, 2023
2257474
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 10, 2023
b230f12
[NEW] Create enterprise apps page (#27500)
rique223 Jan 11, 2023
61b4c2d
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 11, 2023
20b0d1e
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Jan 11, 2023
f9485cb
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 12, 2023
1d1d31b
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Jan 17, 2023
870088f
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 18, 2023
916d7b3
[NEW] Implement first phase of the app request flow (#27521)
rique223 Jan 19, 2023
9082da7
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into feat…
tiagoevanp Jan 20, 2023
e527e7c
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
tiagoevanp Jan 20, 2023
094e190
[NEW] Create generic upsell modal component (#27769)
felipe-rod123 Jan 20, 2023
5bdc9c3
Merge remote-tracking branch 'origin' into feat/new-marketplace
rique223 Jan 23, 2023
9b3df27
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 24, 2023
2a7bf44
[NEW] Create upsell modal (#27756)
felipe-rod123 Jan 25, 2023
8f4f623
feat: notify admins when an end user requests to use an app
Jan 26, 2023
ed6912e
fix: change the url to marketplace apps on rocket.chat notification t…
Jan 26, 2023
4a64b8d
fix: remove extra space and fix rest typings for notify admin endpoint
Jan 26, 2023
a45c87d
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 26, 2023
3c09448
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 26, 2023
b7da9af
Fix AdministrationList test
rique223 Jan 26, 2023
52bdbef
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 26, 2023
90acf3e
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 27, 2023
adf727e
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 27, 2023
7dc1693
Merge branch 'develop' into feat/new-marketplace
rique223 Jan 30, 2023
1ea8f0d
feat: allow iframe modal to dynamically set its height. Also, adds a …
Jan 30, 2023
ec352f6
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 1, 2023
f866944
fix: change the border color on modal to avoid problems with dark mode
Feb 3, 2023
0309bbe
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into feat…
tiagoevanp Feb 4, 2023
9e25bd7
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 6, 2023
f3d926f
[NEW] Complete sidebar sections and new style (#27762)
tiagoevanp Feb 6, 2023
f3b818d
[NEW] App request phase 2 (#27797)
rique223 Feb 7, 2023
68bbd79
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
Feb 7, 2023
12ce5be
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 7, 2023
6bcce2b
Fix Save Changes button appearing for end-users and App menu option u…
rique223 Feb 7, 2023
71e075f
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 7, 2023
828e441
fix: handle site url that doesnt contains backslash at the end of string
Feb 7, 2023
ca49a7f
feat: disable request app button when a request is made
Feb 7, 2023
3bd4694
Merge pull request #27858 from RocketChat/feat/admin-rocket-cat-notif…
Feb 7, 2023
8329c27
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 7, 2023
606014b
feat: :sparkles: Add new documentation link to app details page detai…
rique223 Feb 7, 2023
74cfa47
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 8, 2023
3e23fbf
[NEW] App licenses (#27848)
d-gubert Feb 8, 2023
073792b
fix: :bug: App requests tab appearing for end users
rique223 Feb 8, 2023
1f6583b
fix: :bug: Bring disabled app status back
rique223 Feb 8, 2023
db1fa13
fix: :bug: Subscription option showing for end-users and wrong icon f…
rique223 Feb 8, 2023
7bade97
fix: end users not receiving the notification
Feb 9, 2023
ae66813
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
Feb 9, 2023
fe27948
fix: :bug: Update button not appearing
rique223 Feb 9, 2023
163ef63
fix: improve request app access modal spacing
Feb 10, 2023
8b442e8
fix: :bug: Wrong labels for unseen request status and admin calls in …
rique223 Feb 10, 2023
c2084e3
Merge remote-tracking branch 'origin/develop' into feat/new-marketplace
d-gubert Feb 10, 2023
feacbca
Fix unseen requests tag behavior
rique223 Feb 10, 2023
9248808
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 10, 2023
9b9dcdd
Change apps page title based on current route context
rique223 Feb 10, 2023
6e6cac2
[NEW] Create `EnterpriseTrialEnded` banner (#27731)
felipe-rod123 Feb 12, 2023
a72c2e0
[NEW] Update view logs action icon in `AppMenu` (#27997)
tiagoevanp Feb 12, 2023
9f3531b
[NEW] Create page for "No private apps installed" (#27708)
felipe-rod123 Feb 12, 2023
1ce2d78
Lint
rique223 Feb 13, 2023
615536e
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 13, 2023
70d94fe
Improve visibility of app details page tabs
rique223 Feb 13, 2023
a8f8b6b
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 13, 2023
fca5617
Fix migration
rique223 Feb 13, 2023
6d6a47b
Fix rest.js
rique223 Feb 13, 2023
a6a723f
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 13, 2023
e16bea6
Fix license imports
d-gubert Feb 13, 2023
8dc17b3
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 13, 2023
aa8a180
[NEW] Create header components for marketplace view (#27697)
felipe-rod123 Feb 13, 2023
d74f9f5
Merge remote-tracking branch 'origin/develop' into feat/new-marketplace
d-gubert Feb 13, 2023
f1e0a67
Merge remote-tracking branch 'origin/develop' into feat/new-marketplace
d-gubert Feb 13, 2023
f7b9500
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 13, 2023
5fbdf1d
Fix translation file
d-gubert Feb 13, 2023
aa7594e
feat: :sparkles: Create new requested sorting option
rique223 Feb 14, 2023
fcae15e
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 14, 2023
b4568e8
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 14, 2023
c8372a6
Merge remote-tracking branch 'origin/develop' into feat/new-marketplace
d-gubert Feb 14, 2023
8f18158
Merge remote-tracking branch 'origin/develop' into feat/new-marketplace
d-gubert Feb 14, 2023
1c52c51
Re add conflicted migration
d-gubert Feb 14, 2023
12d9123
[NEW] Create pre-install modal for apps limitation (#27752)
felipe-rod123 Feb 15, 2023
d1f2e1c
Merge remote-tracking branch 'origin/develop' into feat/new-marketplace
d-gubert Feb 15, 2023
434b933
fix: :lipstick: Marketplace labels color tokens
rique223 Feb 15, 2023
849dd57
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 15, 2023
e0e14d2
[NEW] Create uninstall modal for grandfathered apps (#28045)
felipe-rod123 Feb 15, 2023
821174b
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 15, 2023
e43471e
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 16, 2023
8d10c30
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 16, 2023
31027bd
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 16, 2023
1a73e1e
[NEW] App record digital signature validation (#28047)
tapiarafael Feb 16, 2023
dc63258
Fix translation
d-gubert Feb 16, 2023
545af8f
Probable grandfathered apps asterisk logic
rique223 Feb 16, 2023
901d2d7
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 16, 2023
f9534d5
change returns to promises
tapiarafael Feb 15, 2023
3f4e4f9
Add migrated field to rest response of apps
d-gubert Feb 16, 2023
1383d28
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 16, 2023
b99dbae
Chore: Move apps management to ee (#28059)
tapiarafael Feb 16, 2023
130a8f1
Type guard review
rique223 Feb 16, 2023
8732e2c
Merge branch 'develop' into feat/new-marketplace
rodrigok Feb 16, 2023
460fb0f
fix: :bug: Bring t.has back
rique223 Feb 16, 2023
06dc647
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 16, 2023
667b43f
Update Apps-Engine version
d-gubert Feb 16, 2023
2ac3a8a
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 16, 2023
d9445a8
fix: :label: Context type of apps limitation components
rique223 Feb 16, 2023
30bcf8e
Unifying migrations
d-gubert Feb 16, 2023
fcabe1b
Fix i18n typo
d-gubert Feb 16, 2023
10f5890
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 16, 2023
d3d029d
[NEW] Block enable option for apps limit (#28055)
tiagoevanp Feb 17, 2023
b82d40e
Fix review -1
ggazzo Feb 17, 2023
cf2d8a4
Revert unnecessary translation changes
rodrigok Feb 17, 2023
c7af9d6
Merge branch 'develop' into feat/new-marketplace
casalsgh Feb 17, 2023
60f6456
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 17, 2023
b49a8b9
Fix Review - 2
ggazzo Feb 17, 2023
954793d
WIP fix spec
ggazzo Feb 17, 2023
582a42f
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
ggazzo Feb 17, 2023
f991937
Reviews
rique223 Feb 17, 2023
86b05de
Wrong name for usePermission hook on test file
rique223 Feb 17, 2023
4f1d35c
Improve types on new apps endpoint
d-gubert Feb 17, 2023
6f801eb
Merge branch 'develop' into feat/new-marketplace
d-gubert Feb 17, 2023
91e4391
test: :white_check_mark: Fix AppsModelList and AdministrationList uni…
rique223 Feb 17, 2023
5112e35
Merge branch 'feat/new-marketplace' of github.com:RocketChat/Rocket.C…
rique223 Feb 17, 2023
30340ff
Merge branch 'develop' into feat/new-marketplace
rique223 Feb 17, 2023
77968f2
Fix review - 3
ggazzo Feb 17, 2023
02b1b8a
remove email
sampaiodiego Feb 17, 2023
c976d00
use logger
sampaiodiego Feb 17, 2023
2eaad50
Add migration to remove unused apps settings
d-gubert Feb 17, 2023
6c4efaa
Remove usage of deprecated setting
d-gubert Feb 17, 2023
efaa3d3
Fix lint
d-gubert Feb 17, 2023
60f51e9
use single migration
sampaiodiego Feb 17, 2023
d2552fb
Merge branch 'develop' into feat/new-marketplace
casalsgh Feb 18, 2023
9be74fc
Merge branch 'develop' into feat/new-marketplace
ggazzo Feb 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/activation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ProxiedApp } from '@rocket.chat/apps-engine/server/ProxiedApp';
import type { AppStatus } from '@rocket.chat/apps-engine/definition/AppStatus';
import { Users } from '@rocket.chat/models';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppActivationBridge extends ActivationBridge {
// eslint-disable-next-line no-empty-function
Expand Down
6 changes: 3 additions & 3 deletions apps/meteor/app/apps/server/bridges/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { IApiRequest, IApiEndpoint, IApi } from '@rocket.chat/apps-engine/d
import type { AppApi } from '@rocket.chat/apps-engine/server/managers/AppApi';
import type { RequestMethod } from '@rocket.chat/apps-engine/definition/accessors';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { authenticationMiddleware } from '../../../api/server/middlewares/authentication';

const apiServer = express();
Expand Down Expand Up @@ -55,7 +55,7 @@ export class AppApisBridge extends ApiBridge {
});
}

public registerApi({ api, computedPath, endpoint }: AppApi, appId: string): void {
public async registerApi({ api, computedPath, endpoint }: AppApi, appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is registering the api: "${endpoint.path}" (${computedPath})`);

this._verifyApi(api, endpoint);
Expand All @@ -79,7 +79,7 @@ export class AppApisBridge extends ApiBridge {
}
}

public unregisterApis(appId: string): void {
public async unregisterApis(appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is unregistering all apis`);

if (this.appRouters.get(appId)) {
Expand Down
6 changes: 6 additions & 0 deletions apps/meteor/app/apps/server/bridges/bridges.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { UiInteractionBridge } from './uiInteraction';
import { AppSchedulerBridge } from './scheduler';
import { AppVideoConferenceBridge } from './videoConferences';
import { AppOAuthAppsBridge } from './oauthApps';
import { AppInternalFederationBridge } from './internalFederation';

export class RealAppBridges extends AppBridges {
constructor(orch) {
Expand All @@ -45,6 +46,7 @@ export class RealAppBridges extends AppBridges {
this._cloudWorkspaceBridge = new AppCloudBridge(orch);
this._videoConfBridge = new AppVideoConferenceBridge(orch);
this._oAuthBridge = new AppOAuthAppsBridge(orch);
this._internalFedBridge = new AppInternalFederationBridge(orch);
}

getCommandBridge() {
Expand Down Expand Up @@ -126,4 +128,8 @@ export class RealAppBridges extends AppBridges {
getOAuthAppsBridge() {
return this._oAuthBridge;
}

getInternalFederationBridge() {
return this._internalFedBridge;
}
}
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CloudWorkspaceBridge } from '@rocket.chat/apps-engine/server/bridges/Cl
import type { IWorkspaceToken } from '@rocket.chat/apps-engine/definition/cloud/IWorkspaceToken';

import { getWorkspaceAccessTokenWithScope } from '../../../cloud/server';
import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

const boundGetWorkspaceAccessToken = Meteor.bindEnvironment(getWorkspaceAccessTokenWithScope);

Expand Down
16 changes: 8 additions & 8 deletions apps/meteor/app/apps/server/bridges/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { CommandBridge } from '@rocket.chat/apps-engine/server/bridges/CommandBr
import type { IMessage, RequiredField, SlashCommand } from '@rocket.chat/core-typings';

import { slashCommands } from '../../../utils/server';
import { Utilities } from '../../lib/misc/Utilities';
import type { AppServerOrchestrator } from '../orchestrator';
import { Utilities } from '../../../../ee/lib/misc/Utilities';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { parseParameters } from '../../../../lib/utils/parseParameters';

export class AppCommandsBridge extends CommandBridge {
Expand All @@ -18,7 +18,7 @@ export class AppCommandsBridge extends CommandBridge {
this.disabledCommands = new Map();
}

protected doesCommandExist(command: string, appId: string): boolean {
protected async doesCommandExist(command: string, appId: string): Promise<boolean> {
this.orch.debugLog(`The App ${appId} is checking if "${command}" command exists.`);

if (typeof command !== 'string' || command.length === 0) {
Expand All @@ -30,7 +30,7 @@ export class AppCommandsBridge extends CommandBridge {
return typeof slashCommands.commands[cmd] === 'object' || this.disabledCommands.has(cmd);
}

protected enableCommand(command: string, appId: string): void {
protected async enableCommand(command: string, appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is attempting to enable the command: "${command}"`);

if (typeof command !== 'string' || command.trim().length === 0) {
Expand All @@ -48,7 +48,7 @@ export class AppCommandsBridge extends CommandBridge {
this.orch.getNotifier().commandUpdated(cmd);
}

protected disableCommand(command: string, appId: string): void {
protected async disableCommand(command: string, appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is attempting to disable the command: "${command}"`);

if (typeof command !== 'string' || command.trim().length === 0) {
Expand All @@ -74,7 +74,7 @@ export class AppCommandsBridge extends CommandBridge {
}

// command: { command, paramsExample, i18nDescription, executor: function }
protected modifyCommand(command: ISlashCommand, appId: string): void {
protected async modifyCommand(command: ISlashCommand, appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is attempting to modify the command: "${command}"`);

this._verifyCommand(command);
Expand All @@ -99,7 +99,7 @@ export class AppCommandsBridge extends CommandBridge {
this.orch.getNotifier().commandUpdated(cmd);
}

protected registerCommand(command: ISlashCommand, appId: string): void {
protected async registerCommand(command: ISlashCommand, appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is registering the command: "${command.command}"`);

this._verifyCommand(command);
Expand All @@ -122,7 +122,7 @@ export class AppCommandsBridge extends CommandBridge {
this.orch.getNotifier().commandAdded(command.command.toLowerCase());
}

protected unregisterCommand(command: string, appId: string): void {
protected async unregisterCommand(command: string, appId: string): Promise<void> {
this.orch.debugLog(`The App ${appId} is unregistering the command: "${command}"`);

if (typeof command !== 'string' || command.trim().length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/details.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ISetting } from '@rocket.chat/apps-engine/definition/settings';
import { AppDetailChangesBridge as DetailChangesBridge } from '@rocket.chat/apps-engine/server/bridges/AppDetailChangesBridge';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppDetailChangesBridge extends DetailChangesBridge {
// eslint-disable-next-line no-empty-function
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/environmental.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EnvironmentalVariableBridge } from '@rocket.chat/apps-engine/server/bridges/EnvironmentalVariableBridge';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppEnvironmentalVariableBridge extends EnvironmentalVariableBridge {
allowed: Array<string>;
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { HttpBridge } from '@rocket.chat/apps-engine/server/bridges/HttpBridge';
import type { IHttpResponse } from '@rocket.chat/apps-engine/definition/accessors';
import type { IHttpBridgeRequestInfo } from '@rocket.chat/apps-engine/server/bridges';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { fetch } from '../../../../server/lib/http/fetch';

const isGetOrHead = (method: string): boolean => ['GET', 'HEAD'].includes(method.toUpperCase());
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ISetting } from '@rocket.chat/apps-engine/definition/settings';
import type { ISubscription } from '@rocket.chat/core-typings';
import { Settings } from '@rocket.chat/models';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { Subscriptions } from '../../../models/server';

export class AppInternalBridge extends InternalBridge {
Expand Down
12 changes: 12 additions & 0 deletions apps/meteor/app/apps/server/bridges/internalFederation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { IInternalFederationBridge } from '@rocket.chat/apps-engine/server/bridges/IInternalFederationBridge';
import { FederationKeys } from '@rocket.chat/models';

export class AppInternalFederationBridge implements IInternalFederationBridge {
async getPrivateKey(): Promise<string | null> {
return FederationKeys.getKey('private');
}

async getPublicKey(): Promise<string | null> {
return FederationKeys.getKey('public');
}
}
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/livechat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { LivechatVisitors } from '@rocket.chat/models';
import { getRoom } from '../../../livechat/server/api/lib/livechat';
import { Livechat } from '../../../livechat/server/lib/Livechat';
import { Users, LivechatDepartment, LivechatRooms } from '../../../models/server';
import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { Livechat as LivechatTyped } from '../../../livechat/server/lib/LivechatTyped';

export class AppLivechatBridge extends LivechatBridge {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Messages, Users, Subscriptions } from '../../../models/server';
import { updateMessage } from '../../../lib/server/functions/updateMessage';
import { executeSendMessage } from '../../../lib/server/methods/sendMessage';
import notifications from '../../../notifications/server/lib/Notifications';
import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppMessageBridge extends MessageBridge {
// eslint-disable-next-line no-empty-function
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/oauthApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { OAuthApps, Users } from '@rocket.chat/models';
import { Random } from 'meteor/random';
import { v4 as uuidv4 } from 'uuid';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppOAuthAppsBridge extends OAuthAppsBridge {
constructor(private readonly orch: AppServerOrchestrator) {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/persistence.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PersistenceBridge } from '@rocket.chat/apps-engine/server/bridges/PersistenceBridge';
import type { RocketChatAssociationRecord } from '@rocket.chat/apps-engine/definition/metadata';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppPersistenceBridge extends PersistenceBridge {
// eslint-disable-next-line no-empty-function
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { IMessage } from '@rocket.chat/apps-engine/definition/messages';
import { Meteor } from 'meteor/meteor';
import type { ISubscription, IUser as ICoreUser } from '@rocket.chat/core-typings';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { Rooms, Subscriptions, Users } from '../../../models/server';
import { addUserToRoom } from '../../../lib/server/functions/addUserToRoom';

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { IProcessor, IOnetimeSchedule, IRecurringSchedule, IJobContext } fr
import { StartupType } from '@rocket.chat/apps-engine/definition/scheduler';
import { SchedulerBridge } from '@rocket.chat/apps-engine/server/bridges/SchedulerBridge';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

function _callProcessor(processor: IProcessor['processor']): (job: Job) => Promise<void> {
return (job) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ISetting } from '@rocket.chat/apps-engine/definition/settings';
import { ServerSettingBridge } from '@rocket.chat/apps-engine/server/bridges/ServerSettingBridge';
import { Settings } from '@rocket.chat/models';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppSettingBridge extends ServerSettingBridge {
// eslint-disable-next-line no-empty-function
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/uiInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { IUIKitInteraction } from '@rocket.chat/apps-engine/definition/uiki
import type { IUser } from '@rocket.chat/apps-engine/definition/users';
import { api } from '@rocket.chat/core-services';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class UiInteractionBridge extends UiIntBridge {
// eslint-disable-next-line no-empty-function
Expand Down
4 changes: 2 additions & 2 deletions apps/meteor/app/apps/server/bridges/uploads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type { IUpload } from '@rocket.chat/apps-engine/definition/uploads';
import type { IUploadDetails } from '@rocket.chat/apps-engine/definition/uploads/IUploadDetails';

import { FileUpload } from '../../../file-upload/server';
import { determineFileType } from '../../lib/misc/determineFileType';
import type { AppServerOrchestrator } from '../orchestrator';
import { determineFileType } from '../../../../ee/lib/misc/determineFileType';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

const getUploadDetails = (details: IUploadDetails): Partial<IUploadDetails> => {
if (details.visitorToken) {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Subscriptions, Users as UsersRaw } from '@rocket.chat/models';

import { setUserAvatar, checkUsernameAvailability, deleteUser, getUserCreatedByApp } from '../../../lib/server/functions';
import { Users } from '../../../models/server';
import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class AppUserBridge extends UserBridge {
// eslint-disable-next-line no-empty-function
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/videoConferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { AppVideoConference, VideoConference } from '@rocket.chat/apps-engi
import type { IVideoConfProvider } from '@rocket.chat/apps-engine/definition/videoConfProviders';
import { VideoConf } from '@rocket.chat/core-services';

import type { AppServerOrchestrator } from '../orchestrator';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';
import { videoConfProviders } from '../../../../server/lib/videoConfProviders';
import type { AppVideoConferencesConverter } from '../converters/videoConferences';

Expand Down
100 changes: 0 additions & 100 deletions apps/meteor/app/apps/server/communication/methods.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/converters/departments.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import LivechatDepartment from '../../../models/server/models/LivechatDepartment';
import { transformMappedData } from '../../lib/misc/transformMappedData';
import { transformMappedData } from '../../../../ee/lib/misc/transformMappedData';

export class AppDepartmentsConverter {
constructor(orch) {
Expand Down
Loading