The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps-engine/tests/test-data/bridges/serverSettingBridge.ts

41 lines
1.2 KiB

import { SettingType, type ISetting } from '../../../src/definition/settings';
import { ServerSettingBridge } from '../../../src/server/bridges';
export class TestsServerSettingBridge extends ServerSettingBridge {
public getAll(appId: string): Promise<Array<ISetting>> {
throw new Error('Method not implemented.');
}
public getOneById(id: string, appId: string): Promise<ISetting> {
return Promise.resolve({
id,
packageValue: 'packageValue',
value: 'value',
i18nLabel: 'i18nLabel',
i18nDescription: 'i18nDescription',
required: true,
public: true,
type: SettingType.STRING,
});
}
public hideGroup(name: string): Promise<void> {
throw new Error('Method not implemented.');
}
public hideSetting(id: string): Promise<void> {
throw new Error('Method not implemented.');
}
public isReadableById(id: string, appId: string): Promise<boolean> {
throw new Error('Method not implemented.');
}
public updateOne(setting: ISetting, appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
public incrementValue(id: ISetting['id'], value: number, appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
}