@annalib/anna-feature-biz-rules 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +63 -0
  2. package/advertiser-listing/index.d.ts +5 -0
  3. package/advertiser-listing/public-api.d.ts +5 -0
  4. package/advertiser-listing/src/advertiser-filter-modal/advertiser-filter-modal.component.d.ts +91 -0
  5. package/advertiser-listing/src/advertiser-filter-modal/models/advertiser-filter-modal.model.d.ts +13 -0
  6. package/advertiser-listing/src/advertiser-table-listing/advertiser-table-listing.component.d.ts +81 -0
  7. package/advertiser-listing/src/advertiser-table-listing/model/adv-table-listing.model.d.ts +24 -0
  8. package/advertiser-listing/src/advertiser-table-listing/services/adv-table-listing.service.d.ts +6 -0
  9. package/biz-rules-order-listing/index.d.ts +5 -0
  10. package/biz-rules-order-listing/public-api.d.ts +5 -0
  11. package/biz-rules-order-listing/src/biz-rules-order-listing.component.d.ts +139 -0
  12. package/biz-rules-order-listing/src/model/biz-rule-order-listing.constant.d.ts +35 -0
  13. package/biz-rules-order-listing/src/model/biz-rule-order-listing.model.d.ts +107 -0
  14. package/biz-rules-order-listing/src/service/automation-activated-and-pod.token.service.d.ts +24 -0
  15. package/biz-rules-order-listing/src/service/biz-rule-order-listing-backend.service.d.ts +18 -0
  16. package/business-rules/index.d.ts +5 -0
  17. package/business-rules/public-api.d.ts +27 -0
  18. package/business-rules/src/add-buyer-contact/models/add-buyer-contact.model.d.ts +13 -0
  19. package/business-rules/src/add-edit-buyer-contact-popup/add-edit-buyer-contact-popup.component.d.ts +53 -0
  20. package/business-rules/src/add-edit-buyer-contact-popup/services/buyer-contact-token.service.d.ts +6 -0
  21. package/business-rules/src/adu-rules/adu-rules.component.d.ts +88 -0
  22. package/business-rules/src/adu-rules/models/adu-rules.model.d.ts +84 -0
  23. package/business-rules/src/approval-config/approval-config.component.d.ts +49 -0
  24. package/business-rules/src/approval-config/services/approval-config.service.d.ts +10 -0
  25. package/business-rules/src/avatar/avatar.component.d.ts +18 -0
  26. package/business-rules/src/business-rule-page/business-rule-page.component.d.ts +95 -0
  27. package/business-rules/src/business-rule-page/models/business-rule-page.constants.d.ts +70 -0
  28. package/business-rules/src/business-rule-page/models/business-rule.model.d.ts +567 -0
  29. package/business-rules/src/business-rule-page/services/business-rule-common-SI-BI-logic.service.d.ts +19 -0
  30. package/business-rules/src/business-rules-history/business-rules-history.component.d.ts +44 -0
  31. package/business-rules/src/business-rules-history/models/biz-rule-history.model.d.ts +28 -0
  32. package/business-rules/src/business-rules-history-popup/business-rules-history-popup.component.d.ts +60 -0
  33. package/business-rules/src/business-rules-history-popup/models/business-rules-history-popup.model.d.ts +15 -0
  34. package/business-rules/src/buyer-contact-history/buyer-contact-history.component.d.ts +31 -0
  35. package/business-rules/src/buyer-contact-history/models/buyer-contact-history.model.d.ts +16 -0
  36. package/business-rules/src/buyer-contact-section/buyer-rep-contact-section.component.d.ts +43 -0
  37. package/business-rules/src/buyer-contact-section/models/buyer-contact.model.d.ts +52 -0
  38. package/business-rules/src/copy-biz-rules-popup/copy-biz-rules-popup.component.d.ts +91 -0
  39. package/business-rules/src/copy-biz-rules-popup/copy-business-rule-backend-service.token.d.ts +12 -0
  40. package/business-rules/src/copy-biz-rules-popup/models/copy-biz-rules.model.d.ts +47 -0
  41. package/business-rules/src/daypart-grouping-popup/daypart-grouping-popup.component.d.ts +31 -0
  42. package/business-rules/src/daypart-restrictions/daypart-restrictions.component.d.ts +62 -0
  43. package/business-rules/src/daypart-restrictions/pipe/replaceEnd.pipe.d.ts +7 -0
  44. package/business-rules/src/equivalent-and-higher-daypart/equivalent-and-higher-daypart.component.d.ts +39 -0
  45. package/business-rules/src/excluded-or-special-program/excluded-or-special-program.component.d.ts +58 -0
  46. package/business-rules/src/general-rules/general-rules.component.d.ts +105 -0
  47. package/business-rules/src/general-rules/models/general-rules-constant.d.ts +21 -0
  48. package/business-rules/src/inherit-biz-rule-approval-popup/inherit-biz-rule-approval-popup.component.d.ts +66 -0
  49. package/business-rules/src/inherit-biz-rule-approval-popup/models/inherit-biz-rule-approval-popup.model.d.ts +47 -0
  50. package/business-rules/src/inherit-biz-rule-approval-popup/services/inherit-biz-rule-approval-popup.service.d.ts +9 -0
  51. package/business-rules/src/make-good-rules/make-good-rules.component.d.ts +86 -0
  52. package/business-rules/src/make-good-rules/models/make-good-rules.model.d.ts +98 -0
  53. package/business-rules/src/make-good-rules/validators/relaxedValidation.d.ts +2 -0
  54. package/business-rules/src/mass-copy-biz-rules-popup/mass-copy-biz-rules-popup.component.d.ts +59 -0
  55. package/business-rules/src/mass-copy-biz-rules-popup/models/mass-copy-biz-rules.model.d.ts +32 -0
  56. package/fesm2022/annalib-anna-feature-biz-rules-advertiser-listing.mjs +768 -0
  57. package/fesm2022/annalib-anna-feature-biz-rules-advertiser-listing.mjs.map +1 -0
  58. package/fesm2022/annalib-anna-feature-biz-rules-biz-rules-order-listing.mjs +1068 -0
  59. package/fesm2022/annalib-anna-feature-biz-rules-biz-rules-order-listing.mjs.map +1 -0
  60. package/fesm2022/annalib-anna-feature-biz-rules-business-rules.mjs +6987 -0
  61. package/fesm2022/annalib-anna-feature-biz-rules-business-rules.mjs.map +1 -0
  62. package/fesm2022/annalib-anna-feature-biz-rules.mjs +88 -0
  63. package/fesm2022/annalib-anna-feature-biz-rules.mjs.map +1 -0
  64. package/index.d.ts +5 -0
  65. package/lib/anna-feature-biz-rules.module.d.ts +20 -0
  66. package/package.json +45 -0
  67. package/public-api.d.ts +1 -0
@@ -0,0 +1,60 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { Router } from "@angular/router";
3
+ import { AnnaFilterService, AnnaGlobalConfigService, AnnaSortService, IGtGeneralConfig, IGtTableHeader } from "@annalib/anna-core";
4
+ import { IdText } from "@annalib/anna-design-components-lib";
5
+ import { BizHistoryType } from "@annalib/anna-feature-lib/anna-feature-shared-lib";
6
+ import { NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
7
+ import { HistoryData } from "./models/business-rules-history-popup.model";
8
+ import * as i0 from "@angular/core";
9
+ export declare class BusinessRulesHistoryPopupComponent implements OnInit, OnChanges {
10
+ private modalService;
11
+ private router;
12
+ private annaFilterService;
13
+ private annaSortService;
14
+ private annaGlobalConfig;
15
+ loading: boolean;
16
+ historyTableData: HistoryData[];
17
+ componentName: BizHistoryType;
18
+ advertiserIdText: IdText;
19
+ stationIdText: IdText;
20
+ closeModal: EventEmitter<any>;
21
+ historyPopupRef: NgbModalRef;
22
+ BizHistoryType: typeof BizHistoryType;
23
+ tableHeaders: IGtTableHeader[];
24
+ gtGeneralConfig: IGtGeneralConfig;
25
+ gtDimension: {
26
+ rowHeight: number;
27
+ headerHeight: number;
28
+ dataOnTopHeight: number;
29
+ marginFromBottom: number;
30
+ };
31
+ historyTableDataCloned: HistoryData[];
32
+ private historyPopupModal;
33
+ constructor(modalService: NgbModal, router: Router, annaFilterService: AnnaFilterService, annaSortService: AnnaSortService, annaGlobalConfig: AnnaGlobalConfigService);
34
+ ngOnInit(): void;
35
+ ngOnChanges(changes: SimpleChanges): void;
36
+ initFilters(): void;
37
+ setTableConfigData(): void;
38
+ openModal(): void;
39
+ createParamsForStationHistory(revisionNumber: number, stationId: number | string): {
40
+ stationId: number;
41
+ historyNo: number;
42
+ type: BizHistoryType;
43
+ };
44
+ createParamsForAdvertiserHistory(revisionNumber: number | string, stationId: number | string, advertiserId: number | string, eosUserType?: "REP" | "BUYER"): {
45
+ stationId: number;
46
+ historyNo: number | string;
47
+ type: BizHistoryType;
48
+ advertiserId: number | string;
49
+ EosUserType: "REP" | "BUYER";
50
+ };
51
+ redirectToBizHistory(row: {
52
+ data: HistoryData;
53
+ }): void;
54
+ filterAppliedToTable(filteredData: HistoryData[]): void;
55
+ sortingAppliedToTable(sortedData: HistoryData[]): void;
56
+ closeHistoryPopup(): void;
57
+ getTableHeaders(): IGtTableHeader[];
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<BusinessRulesHistoryPopupComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<BusinessRulesHistoryPopupComponent, "anna-feature-business-rules-history-popup", never, { "loading": { "alias": "loading"; "required": false; }; "historyTableData": { "alias": "historyTableData"; "required": false; }; "componentName": { "alias": "componentName"; "required": false; }; "advertiserIdText": { "alias": "advertiserIdText"; "required": false; }; "stationIdText": { "alias": "stationIdText"; "required": false; }; }, { "closeModal": "closeModal"; }, never, never, true, never>;
60
+ }
@@ -0,0 +1,15 @@
1
+ import { TextAction } from "@annalib/anna-core";
2
+ import { BizHistoryType } from "@annalib/anna-feature-lib/anna-feature-shared-lib";
3
+ export declare class HistoryList {
4
+ histories: HistoryData[];
5
+ constructor(historyList: any, type: BizHistoryType);
6
+ }
7
+ export declare class HistoryData {
8
+ user: number;
9
+ status: string;
10
+ updatedOn: string;
11
+ revisionNumber: number;
12
+ textActionsViewLink: TextAction[];
13
+ navigateTo?: "BUYER-CONTACT-HISTORY" | "REP-CONTACT-HISTORY" | "ADVERTISER-BUSINESS-RULES-HISTORY";
14
+ constructor(data: any, index: number, type: BizHistoryType);
15
+ }
@@ -0,0 +1,31 @@
1
+ import { OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { ActivatedRoute } from "@angular/router";
3
+ import { AnnaGlobalConfigService, IGtGeneralConfig, IGtTableHeader } from "@annalib/anna-core";
4
+ import { BusinessPageType } from "../business-rule-page/models/business-rule-page.constants";
5
+ import { BuyerContactHistoryDetails, BuyerContactsForHistory } from "./models/buyer-contact-history.model";
6
+ import * as i0 from "@angular/core";
7
+ export declare class BuyerContactHistoryComponent implements OnChanges, OnInit {
8
+ private globalConfig;
9
+ private route;
10
+ type: BusinessPageType;
11
+ buyerContactHistoryDetails: BuyerContactHistoryDetails;
12
+ loading: boolean;
13
+ tableHeaders: IGtTableHeader[];
14
+ userType: "SELLER" | "BUYER";
15
+ gtGeneralConfig: IGtGeneralConfig;
16
+ gtDimension: {
17
+ rowHeight: number;
18
+ headerHeight: number;
19
+ dataOnTopHeight: number;
20
+ marginFromBottom: number;
21
+ };
22
+ eosUserType: "BUYER" | "REP";
23
+ buyerContactTableData: BuyerContactsForHistory[];
24
+ constructor(globalConfig: AnnaGlobalConfigService, route: ActivatedRoute);
25
+ ngOnChanges(changes: SimpleChanges): void;
26
+ ngOnInit(): void;
27
+ detectURLChanges(): void;
28
+ setTableConfigData(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<BuyerContactHistoryComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuyerContactHistoryComponent, "anna-feature-buyer-contact-history", never, { "buyerContactHistoryDetails": { "alias": "buyerContactHistoryDetails"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": false; }; "userType": { "alias": "userType"; "required": false; }; }, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,16 @@
1
+ export declare class BuyerContactHistoryDetails {
2
+ updatedByUser: string;
3
+ updatedOnTime: string;
4
+ advertiserName: string;
5
+ orderNumber: string;
6
+ stationName: string;
7
+ ogName: string;
8
+ buyerContacts: BuyerContactsForHistory[];
9
+ constructor(data: any);
10
+ }
11
+ export declare class BuyerContactsForHistory {
12
+ buyerName: string;
13
+ email: string;
14
+ phoneNumber: string;
15
+ constructor(data: any);
16
+ }
@@ -0,0 +1,43 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { NgbModal, NgbModalOptions, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
3
+ import { BusinessPageType } from "../business-rule-page/models/business-rule-page.constants";
4
+ import { BuyerContactRequest, BuyerRepContactPopupActionEnum, EOSApplicationUserType, RepAndBuyerContactDetails, RepAndBuyerContactList } from "./models/buyer-contact.model";
5
+ import * as i0 from "@angular/core";
6
+ export declare class BuyerContactSectionComponent implements OnInit, OnChanges {
7
+ private modalService;
8
+ buyerContactList: RepAndBuyerContactList;
9
+ repUserContactList: RepAndBuyerContactList;
10
+ isBusinessRulesInEditMode: boolean;
11
+ businessRulesPageType: BusinessPageType;
12
+ isBuyerBizRulesApprovalRequired: boolean;
13
+ aclWritePermission: boolean;
14
+ isTrafficOrder: boolean;
15
+ stationId: number;
16
+ hideRepTooltipForRepUsers: boolean;
17
+ saveBuyerEmitter: EventEmitter<any>;
18
+ BusinessPageType: typeof BusinessPageType;
19
+ EOSApplicationUserType: typeof EOSApplicationUserType;
20
+ BuyerRepContactPopupActionEnum: typeof BuyerRepContactPopupActionEnum;
21
+ MAX_COUNT_OF_AVATARS_TO_DISPLAY: number;
22
+ userType: EOSApplicationUserType;
23
+ firstFiveBuyers: RepAndBuyerContactDetails[];
24
+ remainingBuyers: RepAndBuyerContactDetails[];
25
+ remainingCount: number;
26
+ private buyerContactModal;
27
+ buyerContactModalReference: NgbModalRef;
28
+ ngbModalOptions: NgbModalOptions;
29
+ typeOfAction: BuyerRepContactPopupActionEnum;
30
+ addBuyerToolTip: string;
31
+ userList: RepAndBuyerContactList;
32
+ canDeleteAllBuyers: boolean;
33
+ constructor(modalService: NgbModal);
34
+ ngOnInit(): void;
35
+ ngOnChanges(changes: SimpleChanges): void;
36
+ openModal(actionType: BuyerRepContactPopupActionEnum, userType: EOSApplicationUserType): void;
37
+ closeModal(event: boolean): void;
38
+ popupModalConfig(): void;
39
+ saveBuyerContact(event: BuyerContactRequest[]): void;
40
+ checkCanDeleteAllBuyers(): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<BuyerContactSectionComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuyerContactSectionComponent, "anna-feature-buyer-rep-contact-section", never, { "buyerContactList": { "alias": "buyerContactList"; "required": true; }; "repUserContactList": { "alias": "repUserContactList"; "required": true; }; "isBusinessRulesInEditMode": { "alias": "isBusinessRulesInEditMode"; "required": true; }; "businessRulesPageType": { "alias": "businessRulesPageType"; "required": true; }; "isBuyerBizRulesApprovalRequired": { "alias": "isBuyerBizRulesApprovalRequired"; "required": true; }; "aclWritePermission": { "alias": "aclWritePermission"; "required": true; }; "isTrafficOrder": { "alias": "isTrafficOrder"; "required": false; }; "stationId": { "alias": "stationId"; "required": false; }; "hideRepTooltipForRepUsers": { "alias": "hideRepTooltipForRepUsers"; "required": false; }; }, { "saveBuyerEmitter": "saveBuyerEmitter"; }, never, never, true, never>;
43
+ }
@@ -0,0 +1,52 @@
1
+ export declare enum BuyerLevel {
2
+ ORDER = "ORDER",
3
+ ADVERTISER = "ADVERTISER"
4
+ }
5
+ export declare enum BuyerLevelText {
6
+ ORDER = "Order",
7
+ ADVERTISER = "Advertiser"
8
+ }
9
+ export declare enum EOSApplicationUserType {
10
+ BUYER = "BUYER",
11
+ REP = "REP"
12
+ }
13
+ export declare enum EOSUserTypeText {
14
+ BUYER = "buyer",
15
+ REP = "rep"
16
+ }
17
+ export declare enum BuyerRepContactPopupActionEnum {
18
+ ADD = "ADD",
19
+ EDIT = "EDIT"
20
+ }
21
+ export declare class RepAndBuyerContactDetails {
22
+ initials: string;
23
+ firstName: string;
24
+ lastName: string;
25
+ phoneNumber: string;
26
+ email: string;
27
+ disableEdit: boolean;
28
+ buyerLevel: string;
29
+ isEditMode: boolean;
30
+ isDeleted: boolean;
31
+ allowEmailEdit: boolean;
32
+ isFirstNameInvalid: boolean;
33
+ isLastNameInvalid: boolean;
34
+ isPhoneNumberInvalid: boolean;
35
+ isEmailInvalid: boolean;
36
+ isDuplicateEmail: boolean;
37
+ buyerLevelMsg?: string;
38
+ constructor(data: any, userType: EOSApplicationUserType);
39
+ static computeInitials(firstName: string, lastName: string): string;
40
+ }
41
+ export declare class RepAndBuyerContactList {
42
+ users: RepAndBuyerContactDetails[];
43
+ hideEditButton: boolean;
44
+ constructor(data: any, userType: EOSApplicationUserType);
45
+ }
46
+ export declare class BuyerContactRequest {
47
+ firstName: string;
48
+ lastName: string;
49
+ email: string;
50
+ phone: string;
51
+ constructor(data: RepAndBuyerContactDetails);
52
+ }
@@ -0,0 +1,91 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { AnnaGlobalConfigService, IConfirmationPopupConfig, ICustomMultiSelect, ICustomSingleSelect, IRadioButtonComponentConfig } from "@annalib/anna-core";
3
+ import { IdText, SingleSelectIdText } from "@annalib/anna-design-components-lib";
4
+ import { GenericBusinessRuleCommonSIBILogicService } from "@annalib/anna-feature-lib/anna-feature-shared-lib";
5
+ import { NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
6
+ import { ToastrService } from "ngx-toastr";
7
+ import { BizRulesResponse } from "../business-rule-page/models/business-rule.model";
8
+ import { BusinessRuleLevelConstant, BusinessRuleSectionNameForCopyBizRule } from "../business-rule-page/models/business-rule-page.constants";
9
+ import { IBusinessRuleTabService } from "./copy-business-rule-backend-service.token";
10
+ import { AdvertiserAndOrders, AdvertisersIdText, OrderIdText, StationWithAdvertisersAndOrders } from "./models/copy-biz-rules.model";
11
+ import * as i0 from "@angular/core";
12
+ export declare class CopyBizRulesPopupComponent implements OnInit, OnChanges {
13
+ private modalService;
14
+ private annaGlobalConfig;
15
+ consumingProjectBusinessRuleService: IBusinessRuleTabService;
16
+ private toastr;
17
+ private businessRuleService;
18
+ station: IdText;
19
+ defaultSelectedCopyFrom: BusinessRuleLevelConstant;
20
+ modalTitle: string;
21
+ copyToText: string;
22
+ currentBizRules: BizRulesResponse;
23
+ radioConfig: IRadioButtonComponentConfig;
24
+ isStationLevelBizRuleTab: boolean;
25
+ OwnershipGroup: IdText;
26
+ isPayForPerformanceOrder: boolean;
27
+ initiateLoader: EventEmitter<boolean>;
28
+ sendCopiedBizRules: EventEmitter<BizRulesResponse>;
29
+ copyBizRulesChanged: EventEmitter<boolean>;
30
+ private copyRulesTemplate;
31
+ copyRulesModalReference: NgbModalRef;
32
+ rulesThatCanBeCopied: {
33
+ name: BusinessRuleSectionNameForCopyBizRule;
34
+ isSelected: boolean;
35
+ }[];
36
+ rulesThatCanBeCopiedClone: {
37
+ name: BusinessRuleSectionNameForCopyBizRule;
38
+ isSelected: boolean;
39
+ }[];
40
+ stationList: StationWithAdvertisersAndOrders;
41
+ stationListClone: StationWithAdvertisersAndOrders;
42
+ advertiserList: AdvertiserAndOrders;
43
+ selectedAdvertisers: AdvertisersIdText[];
44
+ orderListForAdvertiser: any | OrderIdText[];
45
+ selectedRadioToCopyFrom: BusinessRuleLevelConstant;
46
+ selectedOrder: SingleSelectIdText;
47
+ config: IConfirmationPopupConfig;
48
+ businessRuleLevelConstant: typeof BusinessRuleLevelConstant;
49
+ selectedStation: SingleSelectIdText;
50
+ advMultiSelectConfig: ICustomMultiSelect;
51
+ advSingleSelectConfig: ICustomSingleSelect;
52
+ orderSingleSelectConfig: ICustomSingleSelect;
53
+ stationSingleSelectConfig: ICustomSingleSelect;
54
+ copyButtonDisabled: boolean;
55
+ loading: boolean;
56
+ isExcludedSpecialProgramPresent: boolean;
57
+ isdefaultStationIdPresentInList: boolean;
58
+ constructor(modalService: NgbModal, annaGlobalConfig: AnnaGlobalConfigService, consumingProjectBusinessRuleService: IBusinessRuleTabService, toastr: ToastrService, businessRuleService: GenericBusinessRuleCommonSIBILogicService);
59
+ ngOnInit(): void;
60
+ ngOnChanges(changes: SimpleChanges): void;
61
+ getorderListForAdvertiser(): void;
62
+ createAdvSingleSelectConfig(): void;
63
+ createStationSingleSelectConfig(): void;
64
+ createOrderSingleSelectConfig(): void;
65
+ createAdvMultiSelectConfig(): void;
66
+ checkIfDefaultStation(): void;
67
+ prepareStationDropdownData(response: any, currentAdvertiserNameOrOrderId: string): void;
68
+ openModal(): void;
69
+ copyFromRadioButtonChange(event: any): void;
70
+ advertiserSelectionChange(advertiserList: AdvertisersIdText[]): void;
71
+ advertiserSingleSelected(event: SingleSelectIdText): void;
72
+ stationSingleSelected(event: SingleSelectIdText): void;
73
+ orderSelectionChange(event: SingleSelectIdText): void;
74
+ checkAndPopulateAdvertiserDropdown(): void;
75
+ checkAndPopulateOrderDropdown(): void;
76
+ checkExcludedSpecialProgram(): void;
77
+ closeModal(): void;
78
+ resetCopyBizRuleAndCloseModal(): void;
79
+ resetAllDropdownFilter(): void;
80
+ updateDropdownPlaceholder(): void;
81
+ copyBusinessRules(): void;
82
+ fetchAndCopyStationLevelBizRules(): void;
83
+ fetchAndCopyAdvertiserLevelBizRules(): void;
84
+ fetchAndCopyOrderLevelBizRules(): void;
85
+ copyRulesFromSelected(bizRulesToCopyFrom: BizRulesResponse): void;
86
+ resetcopyBizPopup(): void;
87
+ checkIfCopyButtonEnabled(): void;
88
+ businessRulesSelectionChanged(): void;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<CopyBizRulesPopupComponent, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<CopyBizRulesPopupComponent, "anna-feature-app-copy-biz-rules-popup", never, { "station": { "alias": "station"; "required": false; }; "defaultSelectedCopyFrom": { "alias": "defaultSelectedCopyFrom"; "required": false; }; "modalTitle": { "alias": "modalTitle"; "required": false; }; "copyToText": { "alias": "copyToText"; "required": false; }; "currentBizRules": { "alias": "currentBizRules"; "required": false; }; "radioConfig": { "alias": "radioConfig"; "required": false; }; "isStationLevelBizRuleTab": { "alias": "isStationLevelBizRuleTab"; "required": false; }; "OwnershipGroup": { "alias": "OwnershipGroup"; "required": false; }; "isPayForPerformanceOrder": { "alias": "isPayForPerformanceOrder"; "required": false; }; }, { "initiateLoader": "initiateLoader"; "sendCopiedBizRules": "sendCopiedBizRules"; "copyBizRulesChanged": "copyBizRulesChanged"; }, never, never, true, never>;
91
+ }
@@ -0,0 +1,12 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ import { Observable } from "rxjs";
3
+ import { IBulkCopyBizRulesPayload } from "../mass-copy-biz-rules-popup/models/mass-copy-biz-rules.model";
4
+ export declare const COPY_BUSINESS_RULE_POPUP_SERVICE: InjectionToken<IBusinessRuleTabService>;
5
+ export interface IBusinessRuleTabService {
6
+ getStationBusinessRules(stationId: number, isCallMadeFromCopyBizRules: boolean): Observable<any>;
7
+ getOrderBusinessRules(stationId: number, orderId: string, isCallMadeFromCopyBizRules: boolean): Observable<any>;
8
+ getAdvertiserBusinessRules(stationId: number, advertiserId: number, isCallMadeFromCopyBizRules: boolean): Observable<any>;
9
+ getAdvertiserAndOrder(stationId: number, ogId?: number): Observable<any>;
10
+ getAdvertiserAndOrderListForMassCopy(stationId: number, advertiserId?: number, orderId?: string): Observable<any>;
11
+ initiateBulkCopyOfBusinessRules(payload: IBulkCopyBizRulesPayload): Observable<any>;
12
+ }
@@ -0,0 +1,47 @@
1
+ export declare class RuleConstants {
2
+ static readonly MG = "make_good_rules";
3
+ static readonly ADU = "adu_rules";
4
+ static readonly DP = "day_and_daypart_restrictions";
5
+ static readonly EQ_ANF_HIGH_DP = "Equivalent_and_higher_daypart";
6
+ static readonly EXIC_AND_SIC = "excluded_programs_and_special_programs";
7
+ }
8
+ export declare class MessageConstants {
9
+ static readonly SERVER_ERROR_MSG = "Something went wrong! Please try again.";
10
+ }
11
+ export declare class DropDownPlaceholders {
12
+ static readonly SELECT_ADVERTISER = "Select Advertiser";
13
+ static readonly SELECT_ORDER = "Select Order";
14
+ static readonly SELECT_ADVERTISERS = "Select Advertisers";
15
+ static readonly NO_ADVERTISERS = "No Advertisers";
16
+ static readonly NO_ORDERS = "No Orders";
17
+ static readonly SELECT_STATION = "Select Station";
18
+ static readonly NO_STATION = "No Station";
19
+ }
20
+ export declare class AdvertiserAndOrders {
21
+ listOfAdvertiserAndOrder: Array<AdvertisersIdText>;
22
+ listOfAdvertiserAndOrderWithoutStatus: Array<AdvertisersIdText>;
23
+ constructor(data: any, currentAdvertiserNameOrOrderId: string);
24
+ }
25
+ export declare class AdvertisersIdText {
26
+ id: number;
27
+ text: string;
28
+ orders?: OrderIdText[];
29
+ isSelected: boolean;
30
+ constructor(item: any, addBizRuleStatusToAdvName?: boolean, currentAdvertiserNameOrOrderId?: string);
31
+ }
32
+ export declare class OrderIdText {
33
+ id: number;
34
+ text: string;
35
+ constructor(order: any);
36
+ }
37
+ export declare class StationIdText {
38
+ id: number;
39
+ text: string;
40
+ advertisersWithOrders: AdvertiserAndOrders;
41
+ isSelected: boolean;
42
+ constructor(data: any, currentAdvertiserNameOrOrderId: string, defaultStationId: number);
43
+ }
44
+ export declare class StationWithAdvertisersAndOrders {
45
+ listOfStations: Array<StationIdText>;
46
+ constructor(data: any, currentAdvertiserNameOrOrderId: string, defaultStationId: number);
47
+ }
@@ -0,0 +1,31 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
2
+ import { GenericBusinessRuleCommonSIBILogicService } from "@annalib/anna-feature-lib/anna-feature-shared-lib";
3
+ import { DaypartGroupsList } from "../business-rule-page/models/business-rule.model";
4
+ import * as i0 from "@angular/core";
5
+ export declare class DaypartGroupingPopupComponent implements OnChanges {
6
+ private cdr;
7
+ private businessRulesService;
8
+ daypartGroupsForPopup: DaypartGroupsList[];
9
+ modalTitle: string;
10
+ closeModal: EventEmitter<boolean>;
11
+ emitSavedDaypartGroups: EventEmitter<any>;
12
+ dragDaypart: string | null;
13
+ dragDaypartGroupIndex: number | null;
14
+ dragDaypartIndex: number | null;
15
+ disableSaveButton: boolean;
16
+ daypartGroups: DaypartGroupsList[];
17
+ initialDaypartGroups: DaypartGroupsList[];
18
+ constructor(cdr: ChangeDetectorRef, businessRulesService: GenericBusinessRuleCommonSIBILogicService);
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ onGroupNameChange(): void;
21
+ onDragAndDropDaypart(event: any): void;
22
+ checkDuplicate(): void;
23
+ addGroup(): void;
24
+ onSavingDayparts(): void;
25
+ cancelClicked(): void;
26
+ hasEmptyOrDuplicateGroupNames(groups: DaypartGroupsList[]): boolean;
27
+ filterNonEmptyGroups(groups: DaypartGroupsList[]): DaypartGroupsList[];
28
+ checkIfDaypartGroupsAreDifferent(initialGroups: DaypartGroupsList[], currentGroups: DaypartGroupsList[]): boolean;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaypartGroupingPopupComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaypartGroupingPopupComponent, "anna-feature-daypart-grouping-popup", never, { "daypartGroupsForPopup": { "alias": "daypartGroupsForPopup"; "required": false; }; "modalTitle": { "alias": "modalTitle"; "required": false; }; }, { "closeModal": "closeModal"; "emitSavedDaypartGroups": "emitSavedDaypartGroups"; }, never, never, true, never>;
31
+ }
@@ -0,0 +1,62 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { AnnaFilterService, AnnaGlobalConfigService, IGtGeneralConfig } from "@annalib/anna-core";
3
+ import { MessageBoxData } from "@annalib/anna-design-components-lib";
4
+ import { GenericBusinessRuleCommonSIBILogicService } from "@annalib/anna-feature-lib/anna-feature-shared-lib";
5
+ import { DayAndDaypartRestrictionForMgAndAdu, DaypartRestrictionDetails } from "../business-rule-page/models/business-rule.model";
6
+ import * as i0 from "@angular/core";
7
+ type DAYTYPE = "weekdays" | "saturday" | "sunday";
8
+ type MGADUTYPE = "MG" | "ADU";
9
+ export declare class DaypartRestrictionsComponent implements OnInit, OnChanges {
10
+ private annaFilterService;
11
+ private annaGlobalConfig;
12
+ private businessRuleService;
13
+ data: DayAndDaypartRestrictionForMgAndAdu[];
14
+ isDisabled: boolean;
15
+ highlightChanges: boolean;
16
+ noOfHighlightChanges: number;
17
+ dpChanges: EventEmitter<any[]>;
18
+ filterTabObjects: any[];
19
+ tooltip: any;
20
+ dayPartRestrictionsClonnedData: DayAndDaypartRestrictionForMgAndAdu[];
21
+ TIME_FORMAT_HTML: string;
22
+ detectChanges: {
23
+ rowNumber: number;
24
+ isMGSelected: boolean;
25
+ isADUSelected: boolean;
26
+ weekdays: boolean;
27
+ saturday: boolean;
28
+ sunday: boolean;
29
+ };
30
+ gtGeneralConfig: IGtGeneralConfig;
31
+ messageForDp: MessageBoxData;
32
+ readonly MG = "MG";
33
+ readonly ADU = "ADU";
34
+ readonly WEEKDAYS = "weekdays";
35
+ readonly SATURDAY = "saturday";
36
+ readonly SUNDAY = "sunday";
37
+ constructor(annaFilterService: AnnaFilterService, annaGlobalConfig: AnnaGlobalConfigService, businessRuleService: GenericBusinessRuleCommonSIBILogicService);
38
+ ngOnInit(): void;
39
+ ngOnChanges(changes: SimpleChanges): void;
40
+ setTableConfig(): void;
41
+ onContainerScroll(): void;
42
+ intialFilters(): void;
43
+ trackByFn(index: any, item: any): any;
44
+ bindTheValueToToolTip(tooltip: any): void;
45
+ openTooltip(tooltip: any): void;
46
+ closeTooltip(): void;
47
+ setMessageBoxData(): void;
48
+ checkIfTimeChanged(currentDay: DaypartRestrictionDetails, initialDay: DaypartRestrictionDetails, startTime: any, endTime: any): void;
49
+ onSavingTime(event: any, id: number, column: MGADUTYPE, dayType: DAYTYPE): void;
50
+ ifCheckboxesAreUnselected(days: any): any;
51
+ dayCheckboxClicked(data: DaypartRestrictionDetails, rowNum: number, column: MGADUTYPE, dayType: DAYTYPE): void;
52
+ onTimeTooltipClicked(rowNum: number, column: MGADUTYPE, dayType: DAYTYPE): void;
53
+ resetDayTypeProperties(): void;
54
+ copyAllMgOrAdu(copyFrom: MGADUTYPE): void;
55
+ copyDataCell(copyFrom: MGADUTYPE, row: DAYTYPE, id: number): void;
56
+ dayPartValuesChanged(): void;
57
+ dpTimerChanged(): void;
58
+ convertTo24HourFormat(timeArray: string[][]): string[];
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaypartRestrictionsComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaypartRestrictionsComponent, "anna-feature-daypart-restrictions", never, { "data": { "alias": "data"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "highlightChanges": { "alias": "highlightChanges"; "required": false; }; "noOfHighlightChanges": { "alias": "noOfHighlightChanges"; "required": false; }; }, { "dpChanges": "dpChanges"; }, never, never, true, never>;
61
+ }
62
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class ReplaceEndPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceEndPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<ReplaceEndPipe, "removeEndZero", true>;
7
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { AnnaGlobalConfigService, ICustomMultiSelect } from "@annalib/anna-core";
3
+ import { MessageBoxData } from "@annalib/anna-design-components-lib";
4
+ import { DayPartList, EquivalentOrHigherDayparts } from "../business-rule-page/models/business-rule.model";
5
+ import * as i0 from "@angular/core";
6
+ type EquivalentHigherType = "EQUIVALENT" | "HIGHER";
7
+ type MGADUTYPE = "MG" | "ADU";
8
+ export declare class EquivalentAndHigherDaypartComponent implements OnInit {
9
+ private annaGlobalConfig;
10
+ daypartEquivalenceRules: EquivalentOrHigherDayparts[];
11
+ isDisabled: boolean;
12
+ highlightChanges: boolean;
13
+ noOfHighlightChanges: number;
14
+ hideInfoMessage: boolean;
15
+ equivalencyRulesChanges: EventEmitter<any>;
16
+ readonly EQUIVALENT = "EQUIVALENT";
17
+ readonly HIGHER = "HIGHER";
18
+ readonly MG = "MG";
19
+ readonly ADU = "ADU";
20
+ dropdownConfig: ICustomMultiSelect;
21
+ dayPartInfoMessage: MessageBoxData;
22
+ rowIndexUnderEdit: number;
23
+ originalData: EquivalentOrHigherDayparts[];
24
+ constructor(annaGlobalConfig: AnnaGlobalConfigService);
25
+ ngOnInit(): void;
26
+ initVariables(): void;
27
+ equivalentDaypartSelectionChangedForMg(dropdownDaypartDataClicked: DayPartList[], daypart: EquivalentOrHigherDayparts): void;
28
+ changeBackground(event: MouseEvent): void;
29
+ resetBackground(event: MouseEvent): void;
30
+ higherDaypartSelectionChangedForMg(event: any, daypart: EquivalentOrHigherDayparts): void;
31
+ setDropdownConfig(): void;
32
+ dropdownOpened(daypart: EquivalentOrHigherDayparts, column: MGADUTYPE, subColumn: EquivalentHigherType): void;
33
+ resetSelectedDaypart(daypart: EquivalentOrHigherDayparts): void;
34
+ equivalencyValueChanged(): void;
35
+ onContainerScroll(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<EquivalentAndHigherDaypartComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<EquivalentAndHigherDaypartComponent, "anna-feature-equivalent-and-higher-daypart", never, { "daypartEquivalenceRules": { "alias": "daypartEquivalenceRules"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "highlightChanges": { "alias": "highlightChanges"; "required": false; }; "noOfHighlightChanges": { "alias": "noOfHighlightChanges"; "required": false; }; "hideInfoMessage": { "alias": "hideInfoMessage"; "required": false; }; }, { "equivalencyRulesChanges": "equivalencyRulesChanges"; }, never, never, true, never>;
38
+ }
39
+ export {};
@@ -0,0 +1,58 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { AnnaFilterService, AnnaGlobalConfigService, AnnaGtHelperService, AnnaNonEditableGenericTableComponent, AnnaSortService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo } from "@annalib/anna-core";
3
+ import { MessageBoxData } from "@annalib/anna-design-components-lib";
4
+ import { Inventory } from "../business-rule-page/models/business-rule.model";
5
+ import * as i0 from "@angular/core";
6
+ export declare class ExcludedOrSpecialProgramComponent implements OnInit, OnChanges {
7
+ private annaGlobalConfig;
8
+ private annaFilterService;
9
+ private annaSortService;
10
+ private gtHelperService;
11
+ tableHeaders: IGtTableHeader[];
12
+ nonSelectedInventories: Inventory[];
13
+ selectedInventories: Inventory[] | any[];
14
+ componentName: "EXCLUDED" | "SPECIAL";
15
+ noOfHighlightChanges: number;
16
+ editMode: boolean;
17
+ isHistoryPage: boolean;
18
+ showTotalRow: boolean;
19
+ inventoriesSelected: EventEmitter<Inventory[]>;
20
+ inventoriesNotSelected: EventEmitter<Inventory[]>;
21
+ modalClose: EventEmitter<any>;
22
+ tableDisplayData: Inventory[];
23
+ clonedTableDisplayData: Inventory[];
24
+ tableAllDataWithoutAnyColumnFilter: Inventory[];
25
+ selectedICCount: number;
26
+ totalRowInfo: ITotalRowInfo[];
27
+ gtGeneralConfig: IGtGeneralConfig;
28
+ gtDimension: {
29
+ rowHeight: number;
30
+ headerHeight: number;
31
+ dataOnTopHeight: number;
32
+ marginFromBottom: number;
33
+ };
34
+ messageForProgram: MessageBoxData;
35
+ disableClearAllBtn: boolean;
36
+ nonEditableGTComponent: AnnaNonEditableGenericTableComponent;
37
+ constructor(annaGlobalConfig: AnnaGlobalConfigService, annaFilterService: AnnaFilterService, annaSortService: AnnaSortService, gtHelperService: AnnaGtHelperService);
38
+ ngOnInit(): void;
39
+ ngOnChanges(changes: SimpleChanges): void;
40
+ setMessageBoxData(): void;
41
+ changeSelectedInventories(): void;
42
+ toggleCheckbox(event: {
43
+ columnKeys: string;
44
+ isCheckboxSelected: boolean;
45
+ rowData: Inventory;
46
+ }): void;
47
+ filterAppliedToTable(data: Inventory[]): void;
48
+ sortingAppliedToTable(data: Inventory[]): void;
49
+ clearAllFilter(): void;
50
+ initFilters(): void;
51
+ setTableConfig(): void;
52
+ createTotalRow(): void;
53
+ setCheckboxClass(selectedRowsCount: number): string;
54
+ updateTotalRow(): void;
55
+ totalRowIconClicked(colName: "adu-total" | "mg-total"): void;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedOrSpecialProgramComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExcludedOrSpecialProgramComponent, "anna-feature-excluded-or-special-program", never, { "tableHeaders": { "alias": "tableHeaders"; "required": false; }; "nonSelectedInventories": { "alias": "nonSelectedInventories"; "required": false; }; "selectedInventories": { "alias": "selectedInventories"; "required": false; }; "componentName": { "alias": "componentName"; "required": false; }; "noOfHighlightChanges": { "alias": "noOfHighlightChanges"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "isHistoryPage": { "alias": "isHistoryPage"; "required": false; }; "showTotalRow": { "alias": "showTotalRow"; "required": false; }; }, { "inventoriesSelected": "inventoriesSelected"; "inventoriesNotSelected": "inventoriesNotSelected"; "modalClose": "modalClose"; }, never, never, true, never>;
58
+ }