Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | import {
DynamicSiteKeys, FullSiteObject
} from '@/types/api/sites';
import { CreateTextApi } from '@/types/api/twilio';
import {
FullUserObject, PagingTalkgroup, UserDepartment
} from '@/types/api/users';
export interface ActivateUserQueueItem {
action: 'activate-user';
phone: number;
department: UserDepartment;
}
export interface TwilioTextQueueItem {
action: 'twilio-text';
body: CreateTextApi['body'];
user: FullUserObject;
}
export interface PhoneNumberIssueQueueItem {
action: 'phone-issue';
count: number;
name: string;
number: number;
department: UserDepartment[];
}
export interface SendAnnouncementQueueItem {
action: 'announce';
body: string;
phone: number;
isTest: boolean;
department?: UserDepartment;
talkgroup?: PagingTalkgroup;
}
export interface SendPageQueueItem {
action: 'page';
key: string;
tg: PagingTalkgroup;
isTest: boolean;
len?: number; // The number of seconds in the page audio file
}
export interface SendUserAuthCodeQueueItem {
action: 'auth-code';
phone: number;
}
export interface TranscribeJobResultQueueItem {
action: 'transcribe';
'detail-type': string;
detail: {
TranscriptionJobName: string;
TranscriptionJobStatus: string;
};
}
export interface SiteStatusQueueItem {
action: 'site-status';
sites: {
[key: string]: Required<Pick<FullSiteObject, DynamicSiteKeys>>;
}
}
|