mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
29 lines
589 B
TypeScript
29 lines
589 B
TypeScript
export type AlertCategory =
|
|
| 'CONTACT_ADD_SUCCESS'
|
|
| 'CONTACT_ADD_FAILED'
|
|
| 'CONTACT_UPDATE_SUCCESS'
|
|
| 'CONTACT_UPDATE_FAILED'
|
|
| 'CONTACT_DELETE_SUCCESS'
|
|
| 'CONTACT_DELETE_FAILED';
|
|
|
|
export interface PreDBContact {
|
|
display: string;
|
|
number: string;
|
|
avatar?: string;
|
|
}
|
|
|
|
export interface Contact extends PreDBContact {
|
|
id: number;
|
|
}
|
|
|
|
export interface ContactDeleteDTO {
|
|
id: number;
|
|
}
|
|
|
|
export enum ContactEvents {
|
|
GET_CONTACTS = 'npwd:getContacts',
|
|
ADD_CONTACT = 'npwd:addContacts',
|
|
UPDATE_CONTACT = 'npwd:updateContact',
|
|
DELETE_CONTACT = 'npwd:deleteContact',
|
|
}
|