import * as rxjs from 'rxjs'; import { Subject, BehaviorSubject } from 'rxjs'; import * as i0 from '@angular/core'; import { EventEmitter } from '@angular/core'; import { ISvgOrIconTypeInGTTable, SvgOrIconNames } from '@annalib/anna-core'; import { MessageBoxData } from '@annalib/anna-design-components-lib'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; declare enum BizRuleStatus { AWAITING_APPROVAL = "AWAITING_APPROVAL", APPROVED = "APPROVED", SELLER_SAVED = "SELLER_SAVED" } declare enum BizHistoryType { STATION = "station", ADVERTISER = "advertiser", ORDER = "order" } declare class BuyerContactInfo { Email: string; Name: string; ContactNumber: string; } declare class GenericBusinessRuleCommonSIBILogicService { stationIdFilterFromUrlForStationBizTab: any; filtersFromTheUrlForAdvertiserBizTab: any; stationIdfiltersFromTheUrlForAdvertiserBizTab: any; popupFiltersFromTheUrlForAdvertiserBizTab: any; filtersFromTheUrlForOrderBizTab: any; popupfiltersFromTheUrlForOrderBizTab: any; buyerDetailsChanged$: Subject<{ primaryBuyer: BuyerContactInfo; secondaryBuyer: BuyerContactInfo; }>; private businessRulesSubject; businessRules$: rxjs.Observable; notifyBusinessRulesChanged(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare enum OrderMetrics { rating = "GRP", imps = "IMP('000)" } type OrderRoute = "WOZ" | "WOC Unlinked" | "WOC Linked" | "Others" | "Non electronic" | "Medialine" | "WOP" | "Darwin"; declare class PrimaryOrderPanelService { parentContainerScrolled: Subject; isPrimaryOrderPanelOpen$: BehaviorSubject; getOrderMetricsDropdownValues(): { id: number; text: OrderMetrics; }[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DRROrderGenericData { station: string; market: string; orderId: string; revisionNo: number; roId: number | null; alternateOrderId: string; primaryAEName: string; region: string; agencyName: string; location: string; advertiserName: string; flightStartDate: string; flightEndDate: string; revisionStartDate: string; orderRoute: string; revisionType: REVISIONTYPES; revisionTypeForEasyFilters: REVISIONTYPES; campaignId: number; isPayForPerformanceOrder: boolean; isWriteEnabledOrder: boolean; annaEnteredRepOrder: boolean; isStarred: boolean; stationId: number; constructor(data: any); } type REVISIONTYPES = "ANNA" | "BUYER" | "SELLER USER"; type REVISIONSTATUSES = `Seller Pending` | `Buyer Pending` | `Seller Reconfirm` | `SM Pending` | `Rev Generated` | `Rev Discarded` | `O/S Spots` | `O/S UD`; declare class AdditionalDRROrderGenericData extends DRROrderGenericData { iconClass: string; constructor(data: any); } declare enum StatusCodeAndBackgroundColors { "Seller Pending" = "#F7F2D1", "Seller Reconfirm" = "#D9D1F7", "Buyer Pending" = "#D5E3F4", "SM Pending" = "#FEE7D2", "Rev Discarded" = "#FDD8D5", "Rev Generated" = "#DBF0E4", "O/S Spots" = "#EFEFEF", "O/S UD" = "#EFEFEF" } declare enum StatusCodeAndClass { "Seller Pending" = "seller-pending", "Seller Reconfirm" = "seller-reconfirm", "Buyer Pending" = "buyer-pending", "SM Pending" = "sm-pending", "Rev Generated" = "rev-generated", "Rev Discarded" = "rev-discarded", "O/S Spots" = "os-spots", "O/S UD" = "os-ud" } interface RevisionListingPayloadForSeller { loggedInUserId: number; StationId: number; isEquivalized: boolean; isNormalized: boolean; demoId?: number; } interface RevisionListingPayloadForBuyer { BuyerId: string; OgId: number; isEquivalized: boolean; isNormalized: boolean; demoId?: number; } declare class ANNAOfferSpecificDRROrderDataForBuyer extends AdditionalDRROrderGenericData { primaryBuyer: string; secondaryBuyer: string; timeoutDateTimeForDisplay: string; timeoutDate: string; timeoutTime: string; offerCount: number; showNeedsAttentionIcon: boolean; includeOrderInBubbleCount: boolean; orderRevisionStatus: REVISIONSTATUSES; orderRevisionStatusForEasyFilter: REVISIONSTATUSES; offeredMGsValueDisplay: string; offeredMGsValue: string; offeredADUsValueDisplay: string; offeredADUsValue: number; outstandingSpotsValueDisplay: string; outstandingSpotsValue: number; uDProjectionValueDisplay: string; uDProjectionValue: number; backgroundColor: string; poDandAAKey: ISvgOrIconTypeInGTTable[]; statusAndNeedsAttentionActionKey: { showObjectKey: boolean; svgOrIconName: any; svgOrIconTooltipMsg: string; }[]; gtClass: string; buyerNames: string; repUserNames: string; constructor(data: any); static convertToCommaSeperatedString(arrList: any[]): string; } declare class ANNAOfferSpecificDRROrderDataForSeller extends AdditionalDRROrderGenericData { productCode: string; offerCount: number; orderRevisionStatus: REVISIONSTATUSES; orderRevisionStatusForEasyFilter: REVISIONSTATUSES; showNeedsAttentionIcon: boolean; includeOrderInBubbleCount: boolean; offeredMGsValueDisplay: string; offeredMGsValue: string; offeredADUsValueDisplay: string; offeredADUsValue: number; outstandingSpotsValueDisplay: string; outstandingSpotsValue: number; uDProjectionValueDisplay: string; uDProjectionValue: number; backgroundColor: string; statusAndNeedsAttentionActionKey: ISvgOrIconTypeInGTTable[]; statusAndNeedsAttentionKey: string; gtClass: string; poDandAAKey: ISvgOrIconTypeInGTTable[]; isDeletedAtTraffic: boolean; creditAdusValue: number; creditAdusValueDisplay: string; sellerTimeoutTime: string; sellerTimeoutDate: string; sellerTimeoutTimeForDisplay: string; buyerTimeoutTime: string; buyerTimeoutDate: string; buyerTimeoutTimeForDisplay: string; sellerTimeoutDateAndTime: string; buyerTimeoutDateAndTime: string; constructor(data: any); } declare class UserOfferSpecificDRROrderDataForSeller extends AdditionalDRROrderGenericData { userMGValue: number; userMGValueDisplay: string; outstandingPreemptionsValueDisplay: string; outstandingPreemptionsValue: number; userADUValue: number; userADUValueDisplay: string; audienceDeficitValue: number; audienceDeficitValueDisplay: string; userChangesValue: number; userChangesValueDisplay: string; buyerChangesValue: number; buyerChangesValueDisplay: string; buyerGrpChangesValue: number; buyerImpChangesValue: number; buyerGrpChangesValueDisplay: string; buyerImpChangesValueDisplay: string; productCode: string; isDeletedAtTraffic: boolean; poDandAAKey: ISvgOrIconTypeInGTTable[]; displayRevisionType: string; buyerAddedValue: any; buyerDeletedValue: any; buyerAddedValueDisplay: any; buyerDeletedValueDisplay: any; constructor(data: any); } declare enum RevisionTypeAndDisplayRevisionType { "SELLER USER" = "Seller User", "BUYER" = "Buyer", "ANNA" = "ANNA" } declare class GenericDailyRevisionService { orderInfo: DRROrderGenericData; selectedStationId: any; selectedOgId: number; fromOrderRevisionsPage: boolean; fromOrderHistoryPage: boolean; spotsApprovalFiltersAppliedRouteChange: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class OrderListingConstants { static readonly InFlightAndUpcoming = "In-flight & Upcoming"; static readonly Completed = "Completed"; static readonly BlankAndDeleted = "Blank & Deleted"; static readonly Deleted = "Deleted"; static readonly TodaysANNAOffers = "Today\u2019s ANNA Offers"; static readonly TodaysUserOffers = "Today\u2019s User Offers"; static readonly OffersAwaitingApproval = "Offers Awaiting Approval"; static readonly RATING = "RATING"; static readonly IMPRESSIONS = "IMPRESSIONS"; static readonly GRP = "GRP"; static readonly TvRevenueAndDigital = "TV & Digital"; static readonly DRR = "Daily Revisions"; static readonly TvRevenue = "TV Revenue"; static readonly TV = "TV"; static readonly OtherRevenue = "Other Revenue"; static readonly AnnaOrderEntry = "ANNA ORDER ENTRY"; } declare class ActionCommentsPopupComponent { private modalService; title: string; allowEdit: boolean; applyCloseButtonText: { apply: string; cancel: string; }; commented: EventEmitter<{ spotData: any; comment: string; }>; userActed: EventEmitter; cancel: EventEmitter; comment: string; infoMessage: MessageBoxData; disableApply: boolean; private actionCommentModal; actionCommentModalRef: any; originalComment: any; spotData: any; constructor(modalService: NgbModal); openModal(data: any, comment: string, customTopMessage?: string): void; cancelClicked(): void; closeModal(): void; apply(): void; reasonChanged(): void; enableDisableApply(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface OfferRejectedReasonAndCommentPopupData { reasons: { title: string; isSelected: boolean; }[]; comment: string; isDisabled: boolean; disableApply: boolean; disableCommentBox: boolean; commentBoxPlaceholder: string; excludeFutureOffers: boolean; } declare class OfferRejectionPopupComponent { private modalService; spotType: any; rejectionHeader: string; rejectionPopupData: { showActionInRejectionPopup: boolean; allowActionInRejectionPopup: boolean; rejectActionComment: string[] | any; excludeFromFutureOffers: boolean; rejectionHeader: string; }; isSubmitCommentButtonEnabled: boolean; offerRjectionPossibleReasons: string[]; hideExcludePECheckbox: boolean; apply: EventEmitter<{ comments: string[]; excludeFutureOffers: boolean; }>; cancel: EventEmitter; userActed: EventEmitter; offerRejectedReasonAndCommentPopupData: OfferRejectedReasonAndCommentPopupData; private offerRejectionReasonAndCommentModal; offerRejectionReasonAndCommentModalRef: any; rejectionReasonHasSpecialCharacter: boolean; revertToApproveIfCancelClickedInPopup: boolean; constructor(modalService: NgbModal); setRevertToApproveIfCancelClickedInPopup(revertToApproveIfCancelClickedInPopup: boolean): void; openOfferRejectionReasonAndCommentModal(): void; changesMadeInCommentBox(e: any): void; reasonTextChanged(event: any): void; closeOfferRejectionReasonAndCommentModal(): void; applyOfferRejectionReasonSelectedAndComment(): void; prepareCommentsArray(): string[]; isOfferRejectionReasonsChanged(): boolean; disableEnableOfferRejectedReasonAndCommentPopupApplyButton(): void; offerRejectionReasonCheckedOrUnchecked(index: number): void; excludeFutureOffers(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type SolvedTypeFromBE = "LINE" | "ROLLING_ESTIMATES" | "ESTIMATES" | "AVERAGE" | "MODIFIED"; declare enum ESTIMATEPRIORITIES { AverageRTG = "AverageRTG", BookedRTG = "BookedRTG", RollingEstimate = "RollingEstimate", StationEstimate = "StationEstimate" } declare class SpotApprovalGenericInFeatureSharedLibService { static returnTooltipAndIconForSolvedType(solvedType: SolvedTypeFromBE, metric: string, valueToUse: number): { icon: SvgOrIconNames; tooltipMsg: string; }; static returnEstimatePriorities(data: any, estimatePriority: ESTIMATEPRIORITIES[]): string[]; static returnEstimateValueBasedOnKeyForRTGMetric(BEData: any, key: ESTIMATEPRIORITIES): number | string; static returnEstimateValueBasedOnKeyForIMPSMetric(data: any, key: ESTIMATEPRIORITIES): number | string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class GenericFeatureRelatedConstants { static readonly ProjectedGrpOrImpsMessage = "ANNA calculates projected RTG/IMPS values using either the computed estimates or the actual posted data, depending on what is available. If posted data has not yet been received, ANNA will use the computed estimates as the projected value. Once the actual posted data is received, the projection will automatically update to reflect the real, posted values. This ensures that projected data is always based on the most accurate and up-to-date information."; } export { ANNAOfferSpecificDRROrderDataForBuyer, ANNAOfferSpecificDRROrderDataForSeller, ActionCommentsPopupComponent, AdditionalDRROrderGenericData, BizHistoryType, BizRuleStatus, BuyerContactInfo, DRROrderGenericData, ESTIMATEPRIORITIES, GenericBusinessRuleCommonSIBILogicService, GenericDailyRevisionService, GenericFeatureRelatedConstants, OfferRejectionPopupComponent, OrderListingConstants, OrderMetrics, PrimaryOrderPanelService, RevisionTypeAndDisplayRevisionType, SpotApprovalGenericInFeatureSharedLibService, StatusCodeAndBackgroundColors, StatusCodeAndClass, UserOfferSpecificDRROrderDataForSeller }; export type { OrderRoute, REVISIONSTATUSES, RevisionListingPayloadForBuyer, RevisionListingPayloadForSeller, SolvedTypeFromBE };