fix(api): decentralize extensions typing

This commit is contained in:
yassinedorbozgithub 2024-10-19 11:33:15 +01:00
parent 3c14ddd76a
commit 39d8d65f82

View File

@ -34,7 +34,6 @@ import {
type NlpValue, type NlpValue,
} from '@/nlp/schemas/nlp-value.schema'; } from '@/nlp/schemas/nlp-value.schema';
import { type Setting } from '@/setting/schemas/setting.schema'; import { type Setting } from '@/setting/schemas/setting.schema';
import type { CheckboxSetting, TextSetting } from '@/setting/schemas/types';
import { type Invitation } from '@/user/schemas/invitation.schema'; import { type Invitation } from '@/user/schemas/invitation.schema';
import { type Model } from '@/user/schemas/model.schema'; import { type Model } from '@/user/schemas/model.schema';
import { type Permission } from '@/user/schemas/permission.schema'; import { type Permission } from '@/user/schemas/permission.schema';
@ -54,17 +53,7 @@ declare module '@nestjs/event-emitter' {
operations: O; operations: O;
} }
interface IHookExtensionsOperationMap { interface IHookExtensionsOperationMap {}
messenger: TDefinition<
object,
{
get_started_button: Setting;
access_token: Setting;
composer_input_disabled: CheckboxSetting;
greeting_text: TextSetting;
}
>;
}
interface IHookSettingsGroupLabelOperationMap { interface IHookSettingsGroupLabelOperationMap {
chatbot_settings: TDefinition< chatbot_settings: TDefinition<