generated from bisco/codex-bootstrap
feat(frontend): add staff check-in flow
This commit is contained in:
@@ -52,6 +52,24 @@ export type ReservationConfirmResponse = {
|
||||
qr_code_image?: string;
|
||||
};
|
||||
|
||||
export type CheckInPreviewResponse = {
|
||||
status: 'valid';
|
||||
reservation_id: number;
|
||||
performance_id: number;
|
||||
show_title: string;
|
||||
starts_at: string;
|
||||
party_size: number;
|
||||
};
|
||||
|
||||
export type CheckInConfirmResponse = {
|
||||
status: 'checked_in';
|
||||
reservation_id: number;
|
||||
performance_id: number;
|
||||
party_size: number;
|
||||
checked_in_at: string;
|
||||
checked_in_by: number;
|
||||
};
|
||||
|
||||
type ShowListResponse = {
|
||||
results: ShowListItem[];
|
||||
};
|
||||
@@ -93,4 +111,12 @@ export class ShowsApiService {
|
||||
params: { token },
|
||||
});
|
||||
}
|
||||
|
||||
previewCheckIn(token: string): Observable<CheckInPreviewResponse> {
|
||||
return this.http.post<CheckInPreviewResponse>(`${this.apiBaseUrl}/check-ins/preview/`, { token });
|
||||
}
|
||||
|
||||
confirmCheckIn(token: string): Observable<CheckInConfirmResponse> {
|
||||
return this.http.post<CheckInConfirmResponse>(`${this.apiBaseUrl}/check-ins/confirm/`, { token });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user