refactor(ticket.service): remove validity time interfaces from ticket service

This commit is contained in:
2026-08-13 15:13:48 -03:00
parent f428a88ba8
commit 308af52ad5
2 changed files with 0 additions and 29 deletions

View File

@@ -1,17 +0,0 @@
export interface TimeWindowValidityTime {
id: number;
type: 'time_window';
is_valid: boolean;
start_time?: string;
end_time?: string;
}
export interface FixedWindowValidityTime {
id: number;
type: 'fixed_window';
is_valid: boolean;
fixed_starts_at?: string;
fixed_expires_at?: string;
}
export type ValidityTime = TimeWindowValidityTime | FixedWindowValidityTime;

View File

@@ -3,16 +3,6 @@ import { firstValueFrom } from 'rxjs';
import { BaseApiService } from '../../../../../../core/services/base-api.service';
import { TenantService } from '../../../../../../core/services/tenant.service';
import { ValidityTime } from '../../../../../../core/services/validity-time.interface';
export interface TicketValidityGroupResponse {
id: number;
validity_times: ValidityTime[];
starts_at: string | null;
expires_at: string | null;
is_valid: boolean;
is_expired: boolean;
}
export interface TicketResponse {
id: number;
@@ -22,8 +12,6 @@ export interface TicketResponse {
description: string | null;
source_catalog_item_id: number | null;
source_variant_id: number | null;
validity_times?: ValidityTime[];
validity_groups?: TicketValidityGroupResponse[];
starts_at: string | null;
expires_at: string | null;
used_at: string | null;