mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat(api): enhance messenger events typing
This commit is contained in:
parent
2fe70c89b9
commit
7bd9d9e687
10
api/src/eventemitter.d.ts
vendored
10
api/src/eventemitter.d.ts
vendored
@ -28,6 +28,7 @@ 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';
|
||||||
@ -38,7 +39,6 @@ import { EHook, type DeleteResult } from '@/utils/generics/base-repository';
|
|||||||
import { type SubscriberUpdateDto } from './chat/dto/subscriber.dto';
|
import { type SubscriberUpdateDto } from './chat/dto/subscriber.dto';
|
||||||
|
|
||||||
import '@nestjs/event-emitter';
|
import '@nestjs/event-emitter';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Module declaration that extends the NestJS EventEmitter with custom event types and methods.
|
* @description Module declaration that extends the NestJS EventEmitter with custom event types and methods.
|
||||||
*/
|
*/
|
||||||
@ -52,10 +52,10 @@ declare module '@nestjs/event-emitter' {
|
|||||||
messenger_settings: TDefinition<
|
messenger_settings: TDefinition<
|
||||||
object,
|
object,
|
||||||
{
|
{
|
||||||
get_started_button: unknown;
|
get_started_button: Setting;
|
||||||
access_token: unknown;
|
access_token: Setting;
|
||||||
composer_input_disabled: unknown;
|
composer_input_disabled: CheckboxSetting;
|
||||||
greeting_text: unknown;
|
greeting_text: TextSetting;
|
||||||
}
|
}
|
||||||
>;
|
>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user