Citas: doble confirmacion (1ra telefonica con quien/cuando, 2da = llegada/check-in) + filtro rapido Por confirmar
This commit is contained in:
@@ -68,6 +68,10 @@ export interface Appointment {
|
||||
notes?: string;
|
||||
package_finished?: boolean;
|
||||
package_finished_date?: string | null;
|
||||
// 1ra confirmación (teléfono). La 2da es la llegada (state 'arrived').
|
||||
phone_confirmed?: boolean;
|
||||
phone_confirmed_at?: string | null;
|
||||
phone_confirmed_by?: string | null;
|
||||
}
|
||||
|
||||
export interface Bloqueo {
|
||||
@@ -915,6 +919,11 @@ export const odooApi = {
|
||||
return data;
|
||||
},
|
||||
|
||||
async phoneConfirm(id: number, confirmed: boolean): Promise<{ status: string; appointment: Appointment }> {
|
||||
const { data } = await axios.post(`${ODOO_BASE}/skeen/frontend/v1/appointments/${id}/phone_confirm`, { confirmed });
|
||||
return data;
|
||||
},
|
||||
|
||||
// Chat interno entre usuarios de la plataforma
|
||||
async getChatUsers(): Promise<{ status: string; users: ChatUser[] }> {
|
||||
const { data } = await axios.post(`${ODOO_BASE}/skeen/frontend/v1/chat/users`);
|
||||
|
||||
Reference in New Issue
Block a user