import { CurrencyPipe } from "@angular/common"; import { ISvgOrIconTypeInGTTable, SvgOrIconNames } from "@annalib/anna-core"; import { TypeOfCalendar } from "@annalib/anna-design-components-lib"; import { OrderMetrics } from "@annalib/anna-feature-shared-lib"; import { MeasurementAgencyInOrderSummary } from "../../primary-order-panel/models/primary-order-panel.model"; export type SPOTDETAILVIEWS = "SellerView" | "BuyerView"; export declare enum UserTypeEnum { BUYER = "BUYER", SELLER = "SELLER" } export declare class IdText { id: number; text: string; constructor(id: number, text: string); } export declare class YearQuarterFilterData { year: number; displayQuarters: IdText[]; constructor(obj: any); } export interface ISpotDataPerQuarter { StartDate: string; EndDate: string; IsCurrentQuarter: boolean; IsAllSpots: boolean; Spots: ISpotData[]; IsPostedSpotsPresent: boolean; IsNormalized?: boolean; DemoId?: number; SelectedView: "SellerView" | "BuyerView"; } export interface IGroupDataPerQuarter { StartDate: string; EndDate: string; IsCurrentQuarter: boolean; IsAllSpots: boolean; Groups: IGroupData[]; IsNormalized?: boolean; DemoId?: number; } export interface IGroupData { GroupId: string | null; Spots: ISpotData[]; } export interface ICustomizableColumnsForSpotDetails { name: string; objectKey: string; isFixed: boolean; isChecked: boolean; } export declare class IconActionForBookedRatingColumn { id: any; data: string; iconClass: string; showIcon: boolean; disabledIcon: boolean; linkClass: string; showLink: boolean; disabledLink: boolean; showTooltip: boolean; typeOfData: "STRING" | "ICON_TEXT_ACTION"; additionalTextBeforeLink: string; disableTooltip: boolean; tooltipData: any; tooltipClass: string; constructor(data: any, showRatingTooltip: boolean); } export declare class IconActionForBookedImpsColumn { id: any; data: string; iconClass: string; showIcon: boolean; disabledIcon: boolean; linkClass: string; showLink: boolean; disabledLink: boolean; showTooltip: boolean; typeOfData: "STRING" | "ICON_TEXT_ACTION"; additionalTextBeforeLink: string; disableTooltip: boolean; tooltipData: any; tooltipClass: string; constructor(data: any, showImpsTooltip: boolean); } export declare class IconActionForBookedRateColumn { id: any; data: string; iconClass: string; showIcon: boolean; disabledIcon: boolean; linkClass: string; showLink: boolean; disabledLink: boolean; showTooltip: boolean; typeOfData: "STRING" | "ICON_TEXT_ACTION"; additionalTextBeforeLink: string; disableTooltip: boolean; tooltipData: any; tooltipClass: string; constructor(data: any, showLURVoilation: boolean, showRateRtgOrImpsTooltip: boolean, metricType: OrderMetrics); } export declare enum MeasurementAgencyInSpotDetails { NielsenMonthlies = "Nielsen (Sweeps)", NielsenOvernights = "Nielsen (Overnights)", ComscorePulse = "Comscore (Pulse)", ComscorePerson = "Comscore (Persons)" } export declare class SpotTableData { SellerLine: number; SpotNumber: number; Origin: string; SpotStatus: string; DisplaytSpotStatusBI: string; AirStatus: string; AiredProgram: string; SeeMG: string; MGFor: string; Length: string; DP: string; InventoryCode: string; SellerProgInvCode: string; Program: string; WeekNumber: number; Week: string; ScheduleFlightWeek: string; AirDateAndTime: string; AirDate: string; RevenueClass: string; StartTime: string; EndTime: string; StartTimeForFilter: string; EndTimeForFilter: string; ScheduledDay: string; BookedRate: number | string; DisplayRate: string; BookedRatingOrImpressions: number | string; PostedRatingsOrImpressions: number | string; DemoNormalizedOrderedRtgOrImp: string; DemoNormalizedPostedRtgOrImp: string; SpotId: string; Metric: string; StatusBeforeMarkingSpot: string; IsAired: boolean; IsPosted: boolean; IsLateRun: boolean; IsLURViolated: boolean; IsMarkForMakeGood: boolean; IsMarkForCredit: boolean; IsBuyerRequestedForCredit: boolean; IsSellerRequestedForCredit: boolean; AllowUserToMarkForMakeGood: boolean; AllowUserToMarkForCredit: boolean; AllowUserToMarkForMakeGoodBeforeMarkingSpot: boolean; AllowUserToMarkForCreditBeforeMarkingSpot: boolean; AllowUserToUndoMarkForMakeGood: boolean; AllowUserToUndoMarkForCredit: boolean; IsPreempted: boolean; IsDisabled: boolean; iconClass: string; IsSelected: boolean; GroupId: string | null; LastRowOfGroup: boolean; gtClass: string; AdId: string; SpotDate: string; buyerProgramName: string; SellerProgramName: string; BuyerLine: number; WeeklyAUR: number | string; DisplayWeeklyAUR: string; AURTG: number | string; AUIMPS: number | string; BookedIMPS: any; PostedImpressions: any; PostedRating: any; ActualPostedImpressions: number; ActualPostedRatings: number; ActualProjectedImpressions: number; ActualProjectedRatings: number; BookedRTG: number | string; ProjectedRtg: string; ProjectedImpressions: string; NormalizedOrderedRating: string; NormalizedOrderedImpressions: string; NormalizedPostedRating: string; NormalizedPostedImpressions: string; StartAndEndTimeForDisplay: string; targetLUR: string; loweLimitForBookedRateInPercent: string; upperLimitForBookedRateInPercent: string; displayRateActionKey: IconActionForBookedRateColumn[]; displayRateTooltipKey: any; displayRatingActionKey: IconActionForBookedRateColumn[]; displayRatingTooltipKey: any; displayImpsActionKey: IconActionForBookedRateColumn[]; displayImpsTooltipKey: any; displayGRP: string; displayIMPS: string; BuyerLineForDisplay: any; originActionKey: IconAction[]; originTooltipKey: any; IsViolating: boolean; IsViolated: boolean; WeeklyAURatings: string; WeeklyAUImpressions: string; BookedRating: string; BookedImpression: string; RollingEstimateRating: string; RollingEstimateImpression: string; StationEstimateRating: string; StationEstimateImpression: string; estimatePriorityUpperLabelVal: string; estimatePriorityLowerLabelVal: string; showIfBookedFilterSelected: boolean; showIfBookedToDateFilterSelected: boolean; showIfAiredFilterSelected: boolean; showIfPostedFilterSelected: boolean; showIfScheduledFilterSelected: boolean; showIfToBeScheduledFilterSelected: boolean; showIfDroppedFilterSelected: boolean; showIfPoliticalRateViolationsFilterSelected: boolean; showIfCandidateToCandidateViolationsFilterSelected: boolean; showIfViolatedFilterSelected: boolean; showIfViolatingFilterSelected: boolean; showIfLateRunsSelected: boolean; ActualOrderedRatings: any; ActualOrderedImpressions: any; measurementAgency: MeasurementAgencyInSpotDetails; postedImpressionsActionKey: ISvgOrIconTypeInGTTable[]; postedGrpActionKey: ISvgOrIconTypeInGTTable[]; constructor(estimatePriorityList: string[], obj: any, currencyPipe: CurrencyPipe, showLURVoilation: boolean, showRateRtgOrImpsTooltip: boolean, metricType: any, orderLevelMeasurementAgency: MeasurementAgencyInOrderSummary); showPulseOrOvernightIcon(measurementAgency: MeasurementAgencyInSpotDetails, orderLevelMeasurementAgency: MeasurementAgencyInOrderSummary): { iconName: SvgOrIconNames; tooltipText: string; }; } export declare class IconAction { id: any; data: string; iconClass: string; showIcon: boolean; disabledIcon: boolean; linkClass: string; showLink: boolean; disabledLink: boolean; showTooltip: boolean; typeOfData: "STRING" | "ICON_TEXT_ACTION"; additionalTextBeforeLink: string; disableTooltip: boolean; tooltipData: any; tooltipClass: string; constructor(data: number | string, tooltiptext: string, iconClass: string); } export declare class TotalRowForSpotDetails { totalSpots: number; totalBookedRate: number | string; totalAUR: number | string; totalRtgOrdered: number | string; totalImpOrdered: number | string; totalRtgPosted: number | string; totalImpPosted: number | string; totalRtgProjected: number | string; totalImpsProjected: number | string; totalClearedSpots: number | string; clearedSpotRate: string; clearedSpotPercentage: string; totalNormalizedImpressionsBooked: number; totalNormalizedRTGBooked: number; totalNormalizedRTGPosted: number; totalNormalizedImpressionsPosted: number; constructor(data: SpotTableData[], currecyPipe: CurrencyPipe); } export declare class TotalRowForSpotDetailsForGroupedData { totalSpots: number; totalRate: number | string; totalNullRate: number; totalRTGOrdered: number | string; totalIMPSOrdered: number | string; totalNullRTGOrdered: number; totalNullIMPSOrdered: number; totalRTGPosted: number | string; totalNullRTGPosted: number; totalIMPSPosted: number | string; totalNullIMPSPosted: number; totalAUR: number | string; totalAURTG: number | string; totalAUIMPS: number | string; totalNullAUR: number; totalNullAURTG: number; totalNullAUIMPS: number; totalNormalizedRTGBooked: number; totalNormalizedIMPSBooked: number; totalNormalizedRTGPosted: number; totalNormalizedIMPSPosted: number; totalRtgProjected: number | string; totalImpsProjected: number | string; constructor(data: any, currencyPipe: CurrencyPipe); } export interface ISpotData { SpotId: string; LineNumber: number; SpotNumber: number; Origin: string; Status: string; AirStatus: string; AirDate: string; AiredProgram: string; SeeMG: string; MGFor: string; Length: string; IsciCode: string; Daypart: string; InventoryCode: string; Program: string; WeekNumber: number; WeekStartDate: string; SpotDate: string; AirDateAndTime: string; ScheduledDay: string; Rate: number; RevenueClass: string; StartTime: string; EndTime: string; StartTimeForFilter: string; EndTimeForFilter: string; Metric: string; OrderedRatingsOrImpressions: number; PostedRatingsOrImpressions: number; BuyerProgramName: string; BuyerLine: number; WeeklyAUR: number; WeeklyAURatingOrImpressions: number; IsAired: boolean; IsPosted: boolean; IsLURViolated: boolean; IsMarkForMakeGood: boolean; IsMarkForCredit: boolean; IsBuyerRequestedForCredit: boolean; IsSellerRequestedForCredit: boolean; AllowUserToMarkForMakeGood: boolean; AllowUserToMarkForCredit: boolean; AllowUserToMarkForMakeGoodBeforeMarkingSpot: boolean; AllowUserToMarkForCreditBeforeMarkingSpot: boolean; AllowUserToUndoMarkForMakeGood: boolean; AllowUserToUndoMarkForCredit: boolean; StatusBeforeMarkingSpot: string; IsPreempted: boolean; DisplaytSpotStatusBI?: string; } export interface IMarkForCreditOrMgRequest { OrderId: string; StationId: number; Spots: string[]; } export interface ISpotQuarterFilter { IsAllSpotsSelected: boolean; StartDate: string; EndDate: string; SelectedCalendarType: TypeOfCalendar; } export interface ISpotsRequest { OrderId: string; StationId: number; IsAllSpotsSelected: boolean; IsCurrentQuarterSelected: boolean; IsNormalized?: boolean; StartDate: string; EndDate: string; StandardDemoId?: number; } export interface OrderInfoForSpotDetails { campaignStartDate: string; campaignEndDate: string; is_DR_order?: boolean; orderId: string; channelId: string; orderFlightStatus: string; orderType: string; } export type QuarterFilter = { startDate: string; endDate: string; isAll: boolean; }; export type MgCreditType = "Credit" | "MakeGood";