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O,CAACC,GAAG,CAACpH,GAAG,CAAC,CAAC;;;;;;;;;;ACZ/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["./src/app/app-with-header/app-with-header.component.ts","./src/app/app-with-header/app-with-header.component.html","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.config.ts","./src/app/app.routes.ts","./src/app/banners/banners.component.ts","./src/app/banners/banners.component.html","./src/app/buyer-tier/resolvers/buyer-tier-resolver.service.ts","./src/app/company-settings/company-settings.service.ts","./src/app/core/guards/access-guard.service.ts","./src/app/core/guards/auth-guard.service.ts","./src/app/core/i18n/i18n.module.ts","./src/app/core/i18n/i18n.service.ts","./src/app/core/interceptors/base-url.interceptor.ts","./src/app/core/interceptors/header-authorized.interceptor.ts","./src/app/core/interceptors/unauthorized.interceptor.ts","./src/app/core/ngxs/adjustor/adjustor-getter.state.ts","./src/app/core/ngxs/adjustor/adjustor.actions.ts","./src/app/core/ngxs/adjustor/adjustor.state.ts","./src/app/core/ngxs/application-submission-buyer-exchange/application-submission-buyer-exchange.action.ts","./src/app/core/ngxs/application-submission-buyer-exchange/application-submission-buyer-exchange.state.ts","./src/app/core/ngxs/blacklist-policy/blacklist-policy.actions.ts","./src/app/core/ngxs/blacklist-policy/blacklist-policy.state.ts","./src/app/core/ngxs/buyer-adjustor-layout-policy/buyer-adjustor-layout-policy-getter.state.ts","./src/app/core/ngxs/buyer-adjustor-layout-policy/buyer-adjustor-layout-policy.actions.ts","./src/app/core/ngxs/buyer-adjustor-layout-policy/buyer-adjustor-layout-policy.state.ts","./src/app/core/ngxs/buyer-demographic-map/buyer-demographic-map.actions.ts","./src/app/core/ngxs/buyer-demographic-map/buyer-demographic-map.state.ts","./src/app/core/ngxs/buyer-demographics/buyer-demographics.actions.ts","./src/app/core/ngxs/buyer-demographics/buyer-demographics.state.ts","./src/app/core/ngxs/buyer-filter-layout-policy/buyer-filter-layout-policy-getter.state.ts","./src/app/core/ngxs/buyer-filter-layout-policy/buyer-filter-layout-policy.actions.ts","./src/app/core/ngxs/buyer-filter-layout-policy/buyer-filter-layout-policy.state.ts","./src/app/core/ngxs/buyer-seller/buyer-seller.actions.ts","./src/app/core/ngxs/buyer-seller/buyer-seller.state.ts","./src/app/core/ngxs/buyer-tier-filter/buyer-tier-filter-getter.state.ts","./src/app/core/ngxs/buyer-tier-filter/buyer-tier-filter.actions.ts","./src/app/core/ngxs/buyer-tier-filter/buyer-tier-filter.state.ts","./src/app/core/ngxs/buyer-tier-sales/buyer-tier-sales.actions.ts","./src/app/core/ngxs/buyer-tier-sales/buyer-tier-sales.state.ts","./src/app/core/ngxs/buyer-tier-seller/buyer-tier-seller.actions.ts","./src/app/core/ngxs/buyer-tier-seller/buyer-tier-seller.state.ts","./src/app/core/ngxs/buyer-tier/buyer-tier-getter.state.ts","./src/app/core/ngxs/buyer-tier/buyer-tier.actions.ts","./src/app/core/ngxs/buyer-tier/buyer-tier.state.ts","./src/app/core/ngxs/buyer/buyer.actions.ts","./src/app/core/ngxs/buyer/buyer.state.ts","./src/app/core/ngxs/chart/chart.actions.ts","./src/app/core/ngxs/chart/chart.state.ts","./src/app/core/ngxs/closure/closure-getter.state.ts","./src/app/core/ngxs/closure/closure.actions.ts","./src/app/core/ngxs/closure/closure.state.ts","./src/app/core/ngxs/company-payments/company-payments-getter.state.ts","./src/app/core/ngxs/company-payments/company-payments.actions.ts","./src/app/core/ngxs/company-payments/company-payments.state.ts","./src/app/core/ngxs/company/company-getter.state.ts","./src/app/core/ngxs/company/company.actions.ts","./src/app/core/ngxs/company/company.state.ts","./src/app/core/ngxs/contact/contact.actions.ts","./src/app/core/ngxs/contact/contact.state.ts","./src/app/core/ngxs/currency/currency.actions.ts","./src/app/core/ngxs/currency/currency.state.ts","./src/app/core/ngxs/document-sampling/document-sampling.actions.ts","./src/app/core/ngxs/document-sampling/document-sampling.state.ts","./src/app/core/ngxs/license/license-getter.state.ts","./src/app/core/ngxs/license/license.actions.ts","./src/app/core/ngxs/license/license.state.ts","./src/app/core/ngxs/limits/limits.actions.ts","./src/app/core/ngxs/limits/limits.state.ts","./src/app/core/ngxs/lobby/lobby.actions.ts","./src/app/core/ngxs/lobby/lobby.state.ts","./src/app/core/ngxs/notification/notification-getter.state.ts","./src/app/core/ngxs/notification/notification.actions.ts","./src/app/core/ngxs/notification/notification.state.ts","./src/app/core/ngxs/notification/notifications.mock.ts","./src/app/core/ngxs/opening-hours/opening-hours.actions.ts","./src/app/core/ngxs/opening-hours/opening-hours.state.ts","./src/app/core/ngxs/permission/permission.actions.ts","./src/app/core/ngxs/permission/permission.state.ts","./src/app/core/ngxs/recent-searches/recent-searches.actions.ts","./src/app/core/ngxs/recent-searches/recent-searches.state.ts","./src/app/core/ngxs/region/region-getter.state.ts","./src/app/core/ngxs/region/region.actions.ts","./src/app/core/ngxs/region/region.state.ts","./src/app/core/ngxs/report-document/report-document.actions.ts","./src/app/core/ngxs/report-document/report-document.state.ts","./src/app/core/ngxs/report/report.actions.ts","./src/app/core/ngxs/report/report.state.ts","./src/app/core/ngxs/requests/request-getter.state.ts","./src/app/core/ngxs/requests/requests-getter.state.ts","./src/app/core/ngxs/seller-commission/seller-commission.actions.ts","./src/app/core/ngxs/seller-commission/seller-commission.state.ts","./src/app/core/ngxs/seller-demographic-map/seller-demographic-map.actions.ts","./src/app/core/ngxs/seller-demographic-map/seller-demographic-map.state.ts","./src/app/core/ngxs/seller-demographics/seller-demographics.actions.ts","./src/app/core/ngxs/seller-demographics/seller-demographics.state.ts","./src/app/core/ngxs/seller-non-redirect-samples/seller-non-redirect-samples.actions.ts","./src/app/core/ngxs/seller-non-redirect-samples/seller-non-redirect-samples.state.ts","./src/app/core/ngxs/seller-reputation-finding/seller-reputation-finding.actions.ts","./src/app/core/ngxs/seller-reputation-finding/seller-reputation-finding.state.ts","./src/app/core/ngxs/seller-reputation/seller-reputation.actions.ts","./src/app/core/ngxs/seller-reputation/seller-reputation.state.ts","./src/app/core/ngxs/seller/seller.actions.ts","./src/app/core/ngxs/seller/seller.state.ts","./src/app/core/ngxs/session/session-getter.state.ts","./src/app/core/ngxs/session/session.actions.ts","./src/app/core/ngxs/session/session.state.ts","./src/app/core/ngxs/stream-adjustor-layout-policy/stream-adjustor-layout-policy-getter.state.ts","./src/app/core/ngxs/stream-adjustor-layout-policy/stream-adjustor-layout-policy.actions.ts","./src/app/core/ngxs/stream-adjustor-layout-policy/stream-adjustor-layout-policy.state.ts","./src/app/core/ngxs/stream-agent-seller/stream-agent-seller.actions.ts","./src/app/core/ngxs/stream-agent-seller/stream-agent-seller.state.ts","./src/app/core/ngxs/stream-agent/stream-agent.actions.ts","./src/app/core/ngxs/stream-agent/stream-agent.state.ts","./src/app/core/ngxs/stream-filter-layout-policy/stream-filter-layout-policy-getter.state.ts","./src/app/core/ngxs/stream-filter-layout-policy/stream-filter-layout-policy.actions.ts","./src/app/core/ngxs/stream-filter-layout-policy/stream-filter-layout-policy.state.ts","./src/app/core/ngxs/stream-filter/stream-filter-getter.state.ts","./src/app/core/ngxs/stream-filter/stream-filter.actions.ts","./src/app/core/ngxs/stream-filter/stream-filter.state.ts","./src/app/core/ngxs/stream-sales/stream-sales.actions.ts","./src/app/core/ngxs/stream-sales/stream-sales.state.ts","./src/app/core/ngxs/stream-seller/stream-seller.actions.ts","./src/app/core/ngxs/stream-seller/stream-seller.state.ts","./src/app/core/ngxs/stream/stream-getter.state.ts","./src/app/core/ngxs/stream/stream.actions.ts","./src/app/core/ngxs/stream/stream.state.ts","./src/app/core/ngxs/subscription/subscription.actions.ts","./src/app/core/ngxs/subscription/subscription.state.ts","./src/app/core/ngxs/team-member/team-member-getter.state.ts","./src/app/core/ngxs/team-member/team-member.actions.ts","./src/app/core/ngxs/team-member/team-member.state.ts","./src/app/core/ngxs/timezone/timezone-getter.state.ts","./src/app/core/ngxs/timezone/timezone.actions.ts","./src/app/core/ngxs/timezone/timezone.state.ts","./src/app/core/ngxs/trader/trader.actions.ts","./src/app/core/ngxs/trader/trader.state.ts","./src/app/core/ngxs/user/user-getter.state.ts","./src/app/core/ngxs/user/user.actions.ts","./src/app/core/ngxs/user/user.state.ts","./src/app/core/ngxs/utils/createIdsAndEntities.ts","./src/app/core/ngxs/utils/insertIdsAndEntities.ts","./src/app/core/raw-http-client/index.ts","./src/app/core/raw-http-client/raw-http-client.module.ts","./src/app/core/resolvers/company.resolver.ts","./src/app/core/resolvers/notifications.resolver.ts","./src/app/core/resolvers/regions.resolver.ts","./src/app/core/resolvers/timezones.resolver.ts","./src/app/core/services/auth.service.ts","./src/app/core/services/buyer-tier.service.ts","./src/app/core/services/notification.service.ts","./src/app/core/services/region.service.ts","./src/app/core/services/session.service.ts","./src/app/core/services/stream.service.ts","./src/app/core/services/team-management.service.ts","./src/app/core/services/timezone.service.ts","./src/app/main-header/main-header.component.ts","./src/app/main-header/main-header.component.html","./src/app/main-header/notifications-list/notifications-list.component.ts","./src/app/main-header/notifications-list/notifications-list.component.html","./src/app/not-found/not-found.component.ts","./src/app/not-found/not-found.component.html","./src/app/payments/payments.service.ts","./src/app/shared/components/notification-date/notification-date.component.ts","./src/app/shared/components/notification-date/notification-date.component.html","./src/app/shared/consts/iodc-client-settings.ts","./src/app/shared/models/buyer-tier/buyer-tier-characteristics.enum.ts","./src/app/shared/models/common/blacklist-policy/updated-blacklist-policy-field-name.enum.ts","./src/app/shared/models/common/journey-policies-characteristics.enum.ts","./src/app/shared/models/common/shared-component-actor-type.enum.ts","./src/app/shared/models/common/updated-entity-field-name.enum.ts","./src/app/shared/models/company/company-characteristic.enum.ts","./src/app/shared/models/company/payments/updated-payment-field-name.enum.ts","./src/app/shared/models/company/updated-company-field-name.enum.ts","./src/app/shared/models/limits/limit-characteristics.enum.ts","./src/app/shared/models/pagination-headers.enum.ts","./src/app/shared/models/seller/reputation/seller-reputation-characteristics.enum.ts","./src/app/shared/models/session/banner-message-type.enum.ts","./src/app/shared/models/session/client-type.enum.ts","./src/app/shared/models/session/link-area.enum.ts","./src/app/shared/models/session/menu-options.enum.ts","./src/app/shared/models/session/service-health.enum.ts","./src/app/shared/models/stream/stream-characteristic.enum.ts","./src/app/shared/pipes/mask-flag/mask-flag.pipe.ts","./src/app/shared/pipes/time-difference/time-difference.pipe.ts","./src/app/shared/pipes/time-duration/time-duration.pipe.ts","./src/app/shared/spinner/spinner.component.ts","./src/app/shared/spinner/spinner.component.html","./src/app/stream/resolvers/stream-resolver.service.ts","./src/environments/environment.ts","./src/main.ts","./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["import { RouterOutlet } from \"@angular/router\";\r\nimport { Component } from \"@angular/core\";\r\n\r\nimport { MainHeaderComponent } from \"../main-header/main-header.component\";\r\nimport { BannersComponent } from \"../banners/banners.component\";\r\n\r\n@Component({\r\n selector: 'app-with-header',\r\n templateUrl: './app-with-header.component.html',\r\n standalone: true,\r\n imports: [\r\n MainHeaderComponent,\r\n BannersComponent,\r\n RouterOutlet,\r\n ]\r\n})\r\nexport class AppWithHeaderComponent {\r\n\r\n}","\r\n\r\n","import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\nimport { I18nService } from './core/i18n/i18n.service';\r\nimport { SpinnerComponent } from \"./shared/spinner/spinner.component\";\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n standalone: true,\r\n imports: [RouterOutlet, SpinnerComponent],\r\n})\r\nexport class AppComponent {\r\n\r\n title = 'app';\r\n\r\n constructor(\r\n private i18nService: I18nService,\r\n ) {\r\n }\r\n}\r\n","\r\n\r\n\r\n","import {CurrencyPipe, DatePipe, DecimalPipe} from \"@angular/common\";\r\nimport {MaskFlagPipe} from \"./shared/pipes/mask-flag/mask-flag.pipe\";\r\nimport {TimeDurationPipe} from \"./shared/pipes/time-duration/time-duration.pipe\";\r\nimport {StateClass} from \"ngxs-reset-plugin/lib/internals\";\r\nimport {GetTimezonesRequestState, TimezoneState} from \"./core/ngxs/timezone/timezone.state\";\r\nimport {GetRegionsRequestState, RegionState} from \"./core/ngxs/region/region.state\";\r\nimport {GetSellerRequestState, SellerState} from \"./core/ngxs/seller/seller.state\";\r\nimport {\r\n GetLobbySummaryRequestState,\r\n GetLobbySummarySilentRequestState,\r\n LobbyState\r\n} from \"./core/ngxs/lobby/lobby.state\";\r\nimport {\r\n BlacklistPolicyState,\r\n GetBuyerTierBlacklistPoliciesRequestState, GetStreamBlacklistPoliciesRequestState,\r\n PatchBlacklistPolicyPeriodicityRequestState,\r\n PatchBlacklistPolicyRequestState\r\n} from \"./core/ngxs/blacklist-policy/blacklist-policy.state\";\r\nimport {BuyerState, GetBuyerRequestState} from \"./core/ngxs/buyer/buyer.state\";\r\nimport {BuyerSellerState, GetBuyerSellersRequestState} from \"./core/ngxs/buyer-seller/buyer-seller.state\";\r\nimport {\r\n GetStreamRequestState, PauseStreamRequestState, RequestStreamPriceChangeRequestState,\r\n ResumeStreamRequestState,\r\n StreamState,\r\n UpdateStreamRequestState\r\n} from \"./core/ngxs/stream/stream.state\";\r\nimport {ContactState, SendMessageRequestState} from \"./core/ngxs/contact/contact.state\";\r\nimport {GetNotificationsRequestState, NotificationState} from \"./core/ngxs/notification/notification.state\";\r\nimport {UserState} from \"./core/ngxs/user/user.state\";\r\nimport {\r\n AddAKACompanyNameRequestState,\r\n CompanyState,\r\n GetCompanyRequestState, RemoveAKACompanyNameRequestState,\r\n UpdateCompanyRequestState\r\n} from \"./core/ngxs/company/company.state\";\r\nimport {GetSessionRequestState, SessionState, UpdateSessionRequestState} from \"./core/ngxs/session/session.state\";\r\nimport {PermissionState} from \"./core/ngxs/permission/permission.state\";\r\nimport {\r\n AddLicenseRequestState,\r\n LicenseState,\r\n RemoveLicenseRequestState,\r\n UpdateLicenseRequestState\r\n} from \"./core/ngxs/license/license.state\";\r\nimport {\r\n CreateTeamMemberRequestState, RemoveTeamMemberRequestState,\r\n TeamMemberState,\r\n UpdateTeamMemberRequestState\r\n} from \"./core/ngxs/team-member/team-member.state\";\r\nimport {\r\n GetSubscriptionsRequestState,\r\n SubscriptionState,\r\n UpdateSubscriptionRequestState\r\n} from \"./core/ngxs/subscription/subscription.state\";\r\nimport {\r\n GetSellerCommissionRequestState,\r\n SellerCommissionState\r\n} from \"./core/ngxs/seller-commission/seller-commission.state\";\r\nimport {\r\n GetSellerReputationRequestState,\r\n SellerReputationState\r\n} from \"./core/ngxs/seller-reputation/seller-reputation.state\";\r\nimport {\r\n GetSellerReputationFindingsRequestState,\r\n MarkResolvedReputationFindingRequestState, RequestAssistanceFindingRequestState,\r\n SellerReputationFindingState\r\n} from \"./core/ngxs/seller-reputation-finding/seller-reputation-finding.state\";\r\nimport {\r\n GetSellerNonRedirectSamplesRequestState,\r\n SellerNonRedirectSamplesState\r\n} from \"./core/ngxs/seller-non-redirect-samples/seller-non-redirect-samples.state\";\r\nimport {\r\n GetSellerDemographicMapRequestState,\r\n SellerDemographicMapState\r\n} from \"./core/ngxs/seller-demographic-map/seller-demographic-map.state\";\r\nimport {\r\n GetSellerDemographicsRequestState,\r\n SellerDemographicsState\r\n} from \"./core/ngxs/seller-demographics/seller-demographics.state\";\r\nimport {\r\n DocumentSamplingState, GetDocumentSamplingNextRequestState,\r\n GetDocumentSamplingRequestState\r\n} from \"./core/ngxs/document-sampling/document-sampling.state\";\r\nimport {BuyerTierSalesState, GetBuyerTierSalesRequestState} from \"./core/ngxs/buyer-tier-sales/buyer-tier-sales.state\";\r\nimport {\r\n BuyerTierState, GetBuyerTierRequestState,\r\n PauseBuyerTierRequestState, RequestBuyerTierPriceChangeRequestState,\r\n ResumeBuyerTierRequestState, UpdateBuyerTierRequestState\r\n} from \"./core/ngxs/buyer-tier/buyer-tier.state\";\r\nimport {\r\n AddBuyerTierSellerRequestState,\r\n BuyerTierSellerState,\r\n GetBuyerTierSellersRequestState, RemoveBuyerTierSellerRequestState\r\n} from \"./core/ngxs/buyer-tier-seller/buyer-tier-seller.state\";\r\nimport {\r\n BuyerDemographicsState,\r\n GetBuyerDemographicsRequestState\r\n} from \"./core/ngxs/buyer-demographics/buyer-demographics.state\";\r\nimport {\r\n BuyerDemographicMapState,\r\n GetBuyerDemographicMapRequestState\r\n} from \"./core/ngxs/buyer-demographic-map/buyer-demographic-map.state\";\r\nimport {\r\n AddOpenPeriodRequestState,\r\n OpeningHoursState,\r\n RemoveOpenPeriodRequestState, UpdateBuyerTierOpenPeriodLimitRequestState, UpdateStreamOpenPeriodLimitRequestState\r\n} from \"./core/ngxs/opening-hours/opening-hours.state\";\r\nimport {AddClosureRequestState, ClosureState, RemoveClosureRequestState} from \"./core/ngxs/closure/closure.state\";\r\nimport {\r\n AddFreetextTierFilterRequestState,\r\n BuyerTierFilterState, CreateBuyerTierFilterRequestState, RemoveFreetextTierFilterRequestState,\r\n UpdateBuyerTierFilterRequestState\r\n} from \"./core/ngxs/buyer-tier-filter/buyer-tier-filter.state\";\r\nimport {\r\n BuyerFilterLayoutPolicyState,\r\n GetBuyerFilterLayoutPoliciesRequestState\r\n} from \"./core/ngxs/buyer-filter-layout-policy/buyer-filter-layout-policy.state\";\r\nimport {ChartState, GetChartRequestState} from \"./core/ngxs/chart/chart.state\";\r\nimport {\r\n BuyerAdjustorLayoutPolicyState, GetBuyerAdjustorLayoutPoliciesRequestState\r\n} from \"./core/ngxs/buyer-adjustor-layout-policy/buyer-adjustor-layout-policy.state\";\r\nimport {PostSearchTradersRequestState, TraderState} from \"./core/ngxs/trader/trader.state\";\r\nimport {GetStreamSalesRequestState, StreamSalesState} from \"./core/ngxs/stream-sales/stream-sales.state\";\r\nimport {GetStreamAgentRequestState, StreamAgentState} from \"./core/ngxs/stream-agent/stream-agent.state\";\r\nimport {\r\n DeleteBuyerTierLimitOverrideRequestState, DeleteStreamLimitOverrideRequestState,\r\n GetBuyerTierLimitsRequestState,\r\n GetStreamLimitsRequestState,\r\n LimitsState,\r\n PatchBuyerTierDayOfWeekLimitRequestState,\r\n PatchBuyerTierLimitPolicyFieldRequestState,\r\n PatchBuyerTierUseDayOfWeekLimitsRequestState,\r\n PatchStreamDayOfWeekLimitRequestState,\r\n PatchStreamLimitPolicyFieldRequestState,\r\n PatchStreamUseDayOfWeekLimitsRequestState,\r\n PutBuyerTierDayOfWeekLimitRequestState, PutBuyerTierLimitOverrideRequestState,\r\n PutStreamDayOfWeekLimitRequestState, PutStreamLimitOverrideRequestState\r\n} from \"./core/ngxs/limits/limits.state\";\r\nimport {\r\n GetStreamFilterLayoutPoliciesRequestState,\r\n StreamFilterLayoutPolicyState\r\n} from \"./core/ngxs/stream-filter-layout-policy/stream-filter-layout-policy.state\";\r\nimport {\r\n AddFreetextStreamFilterRequestState,\r\n CreateStreamFilterRequestState,\r\n DisableStreamFilterRequestState,\r\n EnableStreamFilterRequestState, RemoveFreetextStreamFilterRequestState,\r\n StreamFilterState,\r\n UpdateStreamFilterRequestState\r\n} from \"./core/ngxs/stream-filter/stream-filter.state\";\r\nimport {\r\n GetStreamAdjustorLayoutPoliciesRequestState,\r\n StreamAdjustorLayoutPolicyState\r\n} from \"./core/ngxs/stream-adjustor-layout-policy/stream-adjustor-layout-policy.state\";\r\nimport {\r\n AdjustorState,\r\n CreateBuyerTierAdjustorRequestState,\r\n CreateStreamAdjustorRequestState,\r\n DeleteBuyerTierAdjustmentRequestState,\r\n DeleteStreamAdjustmentRequestState,\r\n DisableBuyerTierAdjustorRequestState,\r\n DisableStreamAdjustorRequestState,\r\n EnableBuyerTierAdjustorRequestState,\r\n EnableStreamAdjustorRequestState,\r\n UpdateBuyerTierAdjustorRequestState,\r\n UpdateStreamAdjustorRequestState\r\n} from \"./core/ngxs/adjustor/adjustor.state\";\r\nimport {\r\n AddStreamSellerRequestState,\r\n GetStreamSellersRequestState, RemoveStreamSellerRequestState,\r\n StreamSellerState\r\n} from \"./core/ngxs/stream-seller/stream-seller.state\";\r\nimport {\r\n GetStreamAgentSellersRequestState,\r\n StreamAgentSellerState\r\n} from \"./core/ngxs/stream-agent-seller/stream-agent-seller.state\";\r\nimport {GetRecentSearchesRequestState, RecentSearchesState} from \"./core/ngxs/recent-searches/recent-searches.state\";\r\nimport {\r\n GetBuyerTierReportsListRequestState, GetSellerReportsListRequestState,\r\n GetStreamReportsListRequestState,\r\n ReportsState\r\n} from \"./core/ngxs/report/report.state\";\r\nimport {\r\n GetBuyerTierReportDocumentRequestState,\r\n GetBuyerTierReportDocumentsListRequestState,\r\n GetSellerReportDocumentRequestState,\r\n GetSellerReportDocumentsListRequestState,\r\n GetStreamReportDocumentRequestState,\r\n GetStreamReportDocumentsListRequestState,\r\n ReportDocumentState\r\n} from \"./core/ngxs/report-document/report-document.state\";\r\nimport {CurrencyState, GetCurrenciesRequestState} from \"./core/ngxs/currency/currency.state\";\r\nimport {\r\n CompanyPaymentsState,\r\n GetCompanyPaymentsRequestState, UpdateCompanyPaymentsRequestState\r\n} from \"./core/ngxs/company-payments/company-payments.state\";\r\nimport {ApplicationConfig, importProvidersFrom} from \"@angular/core\";\r\nimport {provideHttpClient, withInterceptors} from \"@angular/common/http\";\r\nimport {provideStore} from \"@ngxs/store\";\r\nimport {withNgxsReduxDevtoolsPlugin} from \"@ngxs/devtools-plugin\";\r\nimport {withNgxsResetPlugin} from \"ngxs-reset-plugin\";\r\nimport {withNgxsRequestsPlugin} from \"ngxs-requests-plugin\";\r\nimport {provideRouter, withRouterConfig} from \"@angular/router\";\r\nimport {I18nModule} from \"./core/i18n/i18n.module\";\r\nimport {RawHttpClientModule} from \"./core/raw-http-client\";\r\nimport {BrowserAnimationsModule} from \"@angular/platform-browser/animations\";\r\nimport {APP_ROUTES} from \"./app.routes\";\r\nimport {unauthorizedInterceptor} from \"./core/interceptors/unauthorized.interceptor\";\r\nimport {baseUrlInterceptor} from \"./core/interceptors/base-url.interceptor\";\r\nimport {headerAuthorizationInterceptor} from \"./core/interceptors/header-authorized.interceptor\";\r\nimport { ApplicationSubmissionBuyerExchangeState, GetApplicationSubmissionBuyerExchangeRequestState } from \"./core/ngxs/application-submission-buyer-exchange/application-submission-buyer-exchange.state\";\r\n\r\nconst PIPES = [\r\n CurrencyPipe,\r\n DecimalPipe,\r\n MaskFlagPipe,\r\n TimeDurationPipe,\r\n DatePipe,\r\n];\r\n\r\nconst states: StateClass[] = [\r\n TimezoneState,\r\n RegionState,\r\n SellerState,\r\n LobbyState,\r\n BlacklistPolicyState,\r\n BuyerState,\r\n BuyerSellerState,\r\n StreamState,\r\n ContactState,\r\n NotificationState,\r\n UserState,\r\n CompanyState,\r\n SessionState,\r\n PermissionState,\r\n LicenseState,\r\n TeamMemberState,\r\n SubscriptionState,\r\n SellerCommissionState,\r\n SellerReputationState,\r\n SellerReputationFindingState,\r\n SellerNonRedirectSamplesState,\r\n SellerDemographicMapState,\r\n SellerDemographicsState,\r\n DocumentSamplingState,\r\n BuyerTierSalesState,\r\n BuyerTierState,\r\n BuyerTierSellerState,\r\n BuyerDemographicsState,\r\n BuyerDemographicMapState,\r\n OpeningHoursState,\r\n ClosureState,\r\n BuyerTierFilterState,\r\n BuyerFilterLayoutPolicyState,\r\n ChartState,\r\n BuyerAdjustorLayoutPolicyState,\r\n TraderState,\r\n StreamSalesState,\r\n StreamAgentState,\r\n LimitsState,\r\n StreamFilterLayoutPolicyState,\r\n StreamFilterState,\r\n StreamAdjustorLayoutPolicyState,\r\n AdjustorState,\r\n StreamSellerState,\r\n StreamAgentSellerState,\r\n RecentSearchesState,\r\n ReportsState,\r\n ReportDocumentState,\r\n CurrencyState,\r\n CompanyPaymentsState,\r\n ApplicationSubmissionBuyerExchangeState,\r\n]\r\n\r\nexport const appConfig: ApplicationConfig = {\r\n providers: [\r\n PIPES,\r\n provideHttpClient(withInterceptors([\r\n unauthorizedInterceptor,\r\n baseUrlInterceptor,\r\n headerAuthorizationInterceptor,\r\n ])),\r\n provideRouter(APP_ROUTES, withRouterConfig({ paramsInheritanceStrategy: 'always' })),\r\n importProvidersFrom(I18nModule),\r\n importProvidersFrom(RawHttpClientModule),\r\n importProvidersFrom(BrowserAnimationsModule),\r\n provideStore(states),\r\n withNgxsReduxDevtoolsPlugin(),\r\n withNgxsResetPlugin(),\r\n withNgxsRequestsPlugin([\r\n GetTimezonesRequestState,\r\n GetRegionsRequestState,\r\n GetLobbySummaryRequestState,\r\n SendMessageRequestState,\r\n GetNotificationsRequestState,\r\n GetCompanyRequestState,\r\n UpdateCompanyRequestState,\r\n GetSessionRequestState,\r\n AddLicenseRequestState,\r\n UpdateLicenseRequestState,\r\n RemoveLicenseRequestState,\r\n AddAKACompanyNameRequestState,\r\n RemoveAKACompanyNameRequestState,\r\n UpdateSessionRequestState,\r\n GetSubscriptionsRequestState,\r\n UpdateSubscriptionRequestState,\r\n GetSellerRequestState,\r\n GetSellerCommissionRequestState,\r\n GetSellerReputationRequestState,\r\n MarkResolvedReputationFindingRequestState,\r\n RequestAssistanceFindingRequestState,\r\n GetSellerReputationFindingsRequestState,\r\n GetSellerNonRedirectSamplesRequestState,\r\n GetSellerDemographicMapRequestState,\r\n GetSellerDemographicsRequestState,\r\n GetDocumentSamplingRequestState,\r\n GetDocumentSamplingNextRequestState,\r\n GetBuyerRequestState,\r\n GetBuyerSellersRequestState,\r\n GetBuyerTierSellersRequestState,\r\n AddBuyerTierSellerRequestState,\r\n RemoveBuyerTierSellerRequestState,\r\n GetBuyerTierSalesRequestState,\r\n GetBuyerTierBlacklistPoliciesRequestState,\r\n PatchBlacklistPolicyRequestState,\r\n PatchBlacklistPolicyPeriodicityRequestState,\r\n GetBuyerDemographicsRequestState,\r\n GetBuyerDemographicMapRequestState,\r\n ResumeBuyerTierRequestState,\r\n PauseBuyerTierRequestState,\r\n UpdateBuyerTierRequestState,\r\n GetBuyerTierRequestState,\r\n AddClosureRequestState,\r\n RemoveClosureRequestState,\r\n RemoveOpenPeriodRequestState,\r\n AddOpenPeriodRequestState,\r\n UpdateBuyerTierOpenPeriodLimitRequestState,\r\n UpdateStreamOpenPeriodLimitRequestState,\r\n GetBuyerFilterLayoutPoliciesRequestState,\r\n UpdateBuyerTierFilterRequestState,\r\n CreateBuyerTierFilterRequestState,\r\n AddFreetextTierFilterRequestState,\r\n RemoveFreetextTierFilterRequestState,\r\n GetBuyerAdjustorLayoutPoliciesRequestState,\r\n CreateTeamMemberRequestState,\r\n UpdateTeamMemberRequestState,\r\n RemoveTeamMemberRequestState,\r\n GetChartRequestState,\r\n PostSearchTradersRequestState,\r\n RequestBuyerTierPriceChangeRequestState,\r\n GetStreamRequestState,\r\n GetStreamSalesRequestState,\r\n UpdateStreamRequestState,\r\n ResumeStreamRequestState,\r\n PauseStreamRequestState,\r\n GetStreamAgentRequestState,\r\n RequestStreamPriceChangeRequestState,\r\n GetStreamBlacklistPoliciesRequestState,\r\n GetBuyerTierLimitsRequestState,\r\n GetStreamLimitsRequestState,\r\n PatchBuyerTierUseDayOfWeekLimitsRequestState,\r\n PatchStreamUseDayOfWeekLimitsRequestState,\r\n PatchBuyerTierLimitPolicyFieldRequestState,\r\n PatchStreamLimitPolicyFieldRequestState,\r\n PutBuyerTierDayOfWeekLimitRequestState,\r\n PutStreamDayOfWeekLimitRequestState,\r\n PatchBuyerTierDayOfWeekLimitRequestState,\r\n PatchStreamDayOfWeekLimitRequestState,\r\n PutBuyerTierLimitOverrideRequestState,\r\n PutStreamLimitOverrideRequestState,\r\n DeleteBuyerTierLimitOverrideRequestState,\r\n DeleteStreamLimitOverrideRequestState,\r\n GetStreamFilterLayoutPoliciesRequestState,\r\n UpdateStreamFilterRequestState,\r\n EnableStreamFilterRequestState,\r\n DisableStreamFilterRequestState,\r\n CreateStreamFilterRequestState,\r\n AddFreetextStreamFilterRequestState,\r\n RemoveFreetextStreamFilterRequestState,\r\n GetStreamAdjustorLayoutPoliciesRequestState,\r\n EnableStreamAdjustorRequestState,\r\n EnableBuyerTierAdjustorRequestState,\r\n DisableBuyerTierAdjustorRequestState,\r\n DisableStreamAdjustorRequestState,\r\n CreateBuyerTierAdjustorRequestState,\r\n CreateStreamAdjustorRequestState,\r\n UpdateBuyerTierAdjustorRequestState,\r\n UpdateStreamAdjustorRequestState,\r\n DeleteBuyerTierAdjustmentRequestState,\r\n DeleteStreamAdjustmentRequestState,\r\n GetStreamSellersRequestState,\r\n AddStreamSellerRequestState,\r\n RemoveStreamSellerRequestState,\r\n GetStreamAgentSellersRequestState,\r\n GetRecentSearchesRequestState,\r\n GetLobbySummarySilentRequestState,\r\n GetStreamReportsListRequestState,\r\n GetBuyerTierReportsListRequestState,\r\n GetSellerReportsListRequestState,\r\n GetStreamReportDocumentsListRequestState,\r\n GetStreamReportDocumentRequestState,\r\n GetBuyerTierReportDocumentsListRequestState,\r\n GetBuyerTierReportDocumentRequestState,\r\n GetSellerReportDocumentsListRequestState,\r\n GetSellerReportDocumentRequestState,\r\n GetCompanyPaymentsRequestState,\r\n GetCurrenciesRequestState,\r\n UpdateCompanyPaymentsRequestState,\r\n GetApplicationSubmissionBuyerExchangeRequestState,\r\n ])\r\n]\r\n};\r\n","import { Routes } from '@angular/router';\r\n\r\nimport { BuyerTierResolverService } from './buyer-tier/resolvers/buyer-tier-resolver.service';\r\nimport { AccessGuardService } from './core/guards/access-guard.service';\r\nimport { AuthGuardService } from './core/guards/auth-guard.service';\r\nimport { NotificationsResolver } from './core/resolvers/notifications.resolver';\r\nimport { RegionsResolver } from './core/resolvers/regions.resolver';\r\nimport { TimezonesResolver } from './core/resolvers/timezones.resolver';\r\nimport { NotFoundComponent } from './not-found/not-found.component';\r\nimport { MenuOptions } from './shared/models/session/menu-options.enum';\r\nimport { StreamResolverService } from './stream/resolvers/stream-resolver.service';\r\nimport { CompanyResolver } from './core/resolvers/company.resolver';\r\nimport { AppWithHeaderComponent } from './app-with-header/app-with-header.component';\r\n\r\nexport const APP_ROUTES: Routes = [\r\n {\r\n path: '',\r\n resolve: [TimezonesResolver, RegionsResolver, NotificationsResolver],\r\n canActivate: [AuthGuardService],\r\n component: AppWithHeaderComponent,\r\n children: [\r\n {\r\n path: '',\r\n redirectTo: 'lobby',\r\n pathMatch: 'full',\r\n },\r\n {\r\n path: 'lobby',\r\n loadChildren: () => import('./lobby/lobby.routes').then(mod => mod.LOBBY_ROUTES),\r\n },\r\n {\r\n path: 'seller/:pseudonym',\r\n loadChildren: () => import('./seller/seller.routes').then(mod => mod.SELLER_ROUTES),\r\n data: {\r\n breadcrumb: 'TEMPLATE.BREADCRUMBS.SELLER'\r\n }\r\n },\r\n {\r\n path: 'buyer/:buyerPseudonym/tier/:buyerTierPseudonym',\r\n loadChildren: () => import('./buyer-tier/buyer-tier.routes').then(mod => mod.BUYER_TIER_ROUTS),\r\n data: {\r\n breadcrumb: 'TEMPLATE.BREADCRUMBS.BUYER_TIER'\r\n },\r\n resolve: [BuyerTierResolverService],\r\n },\r\n {\r\n path: 'stream-agent/:streamAgentPseudonym/stream/:streamPseudonym',\r\n loadChildren: () => import('./stream/stream.routes').then(mod => mod.STREAM_ROUTES),\r\n data: {\r\n breadcrumb: 'TEMPLATE.BREADCRUMBS.STREAM'\r\n },\r\n resolve: [StreamResolverService],\r\n },\r\n {\r\n path: 'integration',\r\n loadChildren: () => import('./integration/integration.routes').then(mod => mod.INTEGRATION_ROUTES),\r\n canActivate: [AccessGuardService],\r\n data: {hasAccess: MenuOptions.ShowIntegration},\r\n },\r\n {\r\n path: 'sites',\r\n loadChildren: () => import('./sites/sites.routes').then(mod => mod.SITES_ROUTES),\r\n canActivate: [AccessGuardService],\r\n data: {hasAccess: MenuOptions.ShowSites},\r\n },\r\n {\r\n path: 'company-settings/:pseudonym',\r\n loadChildren: () => import('./company-settings/company-settings.routes').then(mod => mod.COMPANY_SETTINGS_ROUTES),\r\n canActivate: [AccessGuardService],\r\n data: {hasAccess: MenuOptions.ShowCompanySettings},\r\n },\r\n {\r\n path: 'team-management/:pseudonym',\r\n loadChildren: () => import('./team-management/team-management.routes').then(mod => mod.TEAM_MANAGEMENT_ROUTES),\r\n canActivate: [AccessGuardService],\r\n resolve: [CompanyResolver],\r\n data: {hasAccess: MenuOptions.ShowCompanyTeams},\r\n },\r\n {\r\n path: 'contact-info',\r\n loadChildren: () => import('./contact-info/contact-info.routes').then(mod => mod.CONTACT_INFO_ROUTES),\r\n },\r\n {\r\n path: 'user-settings',\r\n loadChildren: () => import('./user-settings/user-settings.routes').then(mod => mod.USER_SETTINGS_ROUTES),\r\n },\r\n {\r\n path: 'notifications',\r\n loadChildren: () => import('./notifications/notifications.routes').then(mod => mod.NOTIFICATION_ROUTES),\r\n },\r\n {\r\n path: 'notifications-settings',\r\n loadChildren: () => import('./notifications-settings/notifications-settings.routing').then(mod => mod.NOTIFICATION_SETTINGS_ROUTES),\r\n },\r\n {\r\n path: 'payments/:pseudonym',\r\n loadChildren: () => import('./payments/payments.routes').then(mod => mod.PAYMENTS_ROUTES),\r\n canActivate: [AccessGuardService],\r\n data: {hasAccess: MenuOptions.ShowPaymentsOption},\r\n },\r\n ]\r\n },\r\n {\r\n path: 'identity',\r\n loadChildren: () => import('./identity/identity.routes').then(mod => mod.IDENTITY_ROUTES),\r\n },\r\n {\r\n path: 'sh',\r\n resolve: [RegionsResolver],\r\n canActivate: [AuthGuardService],\r\n loadChildren: () => import('./application-journey/application-journey.routes').then(mod => mod.APPLICATION_JOURNEY_ROUTES),\r\n },\r\n {\r\n path: '**',\r\n component: NotFoundComponent,\r\n }\r\n\r\n];\r\n\r\n","import {Component, OnDestroy, OnInit} from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { Observable, Subject, Subscription } from 'rxjs';\r\nimport { map, withLatestFrom } from 'rxjs/operators';\r\n\r\nimport { SessionService } from '../core/services/session.service';\r\nimport { IBannerMessage } from '../shared/models/session/banner-message.interface';\r\nimport { BannerMessageType } from '../shared/models/session/banner-message-type.enum';\r\nimport { LinkArea } from '../shared/models/session/link-area.enum';\r\nimport { PaymentsService } from '../payments/payments.service';\r\nimport { NgClass, AsyncPipe } from '@angular/common';\r\nimport { FlexModule } from '@angular/flex-layout/flex';\r\nimport { ExtendedModule } from '@angular/flex-layout/extended';\r\n\r\n@Component({\r\n selector: 'app-banners',\r\n templateUrl: './banners.component.html',\r\n styleUrls: ['./banners.component.less'],\r\n standalone: true,\r\n imports: [FlexModule, NgClass, ExtendedModule, AsyncPipe]\r\n})\r\n\r\nexport class BannersComponent implements OnInit, OnDestroy {\r\n\r\n selectedPaymentsCompanyId$: Observable = this.paymentsService.selectedCompanyId$;\r\n bannerMessages$: Observable;\r\n linkSubject$: Subject = new Subject();\r\n linkSubjectSubscription: Subscription;\r\n bannerType = BannerMessageType;\r\n\r\n constructor(\r\n private sessionService: SessionService,\r\n private paymentsService: PaymentsService,\r\n private router: Router,\r\n ) {\r\n }\r\n\r\n ngOnInit() {\r\n this.bannerMessages$ = this.sessionService.session$.pipe(\r\n map((session) => session?.bannerMessages)\r\n );\r\n\r\n this.linkSubjectSubscription = this.linkSubject$.pipe(\r\n withLatestFrom(this.selectedPaymentsCompanyId$)\r\n ).subscribe(([linkType, pseudonym]: [LinkArea, string]) => {\r\n switch (linkType) {\r\n case LinkArea.CompanyPayments: {\r\n this.router.navigate(['/payments', pseudonym]);\r\n }\r\n }\r\n });\r\n }\r\n\r\n goToArea(linkType: LinkArea) {\r\n this.linkSubject$.next(linkType);\r\n }\r\n\r\n ngOnDestroy() {\r\n this.linkSubjectSubscription.unsubscribe();\r\n }\r\n\r\n}\r\n","@for (banner of (bannerMessages$ | async); track $index) {\r\n
\r\n
{{ banner.message }}
\r\n @if (banner.linkText) {\r\n \r\n }\r\n
\r\n}\r\n\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { map, switchMap, take } from 'rxjs/operators';\r\n\r\nimport { BuyerTierGetterState } from '../../core/ngxs/buyer-tier/buyer-tier-getter.state';\r\nimport { BuyerTierService } from '../../core/services/buyer-tier.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class BuyerTierResolverService {\r\n\r\n constructor(\r\n private buyerTierService: BuyerTierService,\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.store.select(BuyerTierGetterState.getBuyerTierByPseudonym(route.params.buyerTierPseudonym)).pipe(\r\n map((buyerTier) => {\r\n if (buyerTier && buyerTier.openingHoursPseudonym) {\r\n return buyerTier;\r\n } else {\r\n return this.buyerTierService.getBuyerTierByPseudonym(\r\n route.params.buyerPseudonym, route.params.buyerTierPseudonym\r\n );\r\n }\r\n }),\r\n switchMap(() => this.buyerTierService.getBuyerTierRequestState$),\r\n take(1),\r\n );\r\n\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { AddAKACompanyName, GetCompany, RemoveAKACompanyName, UpdateCompany } from '../core/ngxs/company/company.actions';\r\nimport {\r\n AddAKACompanyNameRequestState, GetCompanyRequestState,\r\n RemoveAKACompanyNameRequestState,\r\n UpdateCompanyRequestState\r\n} from '../core/ngxs/company/company.state';\r\nimport { CompanyGetterState } from '../core/ngxs/company/company-getter.state';\r\nimport { ICompany } from '../shared/models/company/company.interface';\r\nimport { RequestGetterState } from \"../core/ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CompanySettingsService {\r\n company$: Observable = this.store.select(CompanyGetterState.getSelectedCompany);\r\n selectedCompanyId$: Observable = this.store.select(CompanyGetterState.getSelectedCompanyId);\r\n getCompanyRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetCompanyRequestState)\r\n );\r\n updateCompanyRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(UpdateCompanyRequestState)\r\n );\r\n addAKACompanyNameRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(AddAKACompanyNameRequestState)\r\n );\r\n removeAKACompanyNameRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(RemoveAKACompanyNameRequestState)\r\n );\r\n\r\n constructor(\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n getCompany(pseudonym: string) {\r\n this.store.dispatch(new GetCompany(pseudonym));\r\n return this.getCompanyRequestState$;\r\n }\r\n\r\n updateCompany(updatedField: { fieldName: string, value: string | number, pseudonym: string }) {\r\n return this.store.dispatch(new UpdateCompany(updatedField));\r\n }\r\n\r\n addAKAName(name: string, companyPseudonym: string) {\r\n return this.store.dispatch(new AddAKACompanyName({name, companyPseudonym}));\r\n }\r\n\r\n removeAKAName(name: string, companyPseudonym: string) {\r\n return this.store.dispatch(new RemoveAKACompanyName({name, companyPseudonym}));\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { map, take } from 'rxjs/operators';\r\n\r\nimport { MaskFlagPipe } from '../../shared/pipes/mask-flag/mask-flag.pipe';\r\nimport { SessionService } from '../services/session.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccessGuardService {\r\n\r\n constructor(\r\n private sessionService: SessionService,\r\n private router: Router,\r\n private maskFlagPipe: MaskFlagPipe\r\n ) {\r\n\r\n }\r\n\r\n public canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.sessionService.menuOptions$.pipe(\r\n map((menuOptions: number) => {\r\n const hasAccess = this.maskFlagPipe.transform(menuOptions, route.data.hasAccess);\r\n if (!hasAccess) {\r\n this.router.navigate(['/']);\r\n }\r\n return true;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, map, take, withLatestFrom } from 'rxjs/operators';\r\n\r\nimport { AuthService } from '../services/auth.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AuthGuardService {\r\n\r\n constructor(\r\n private authService: AuthService,\r\n ) {\r\n\r\n }\r\n\r\n public canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.authService.isUserLoaded$.pipe(\r\n filter((isLoaded) => isLoaded),\r\n withLatestFrom(this.authService.user$),\r\n map(([isLoaded, user]) => {\r\n if (!user) {\r\n this.authService.login();\r\n return false;\r\n }\r\n return true;\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\r\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\r\n\r\nimport { RawHttpClient } from '../raw-http-client';\r\n\r\nexport function TranslateHttpLoaderFactory(http: RawHttpClient) {\r\n return new TranslateHttpLoader(http, './assets/i18n/', '.json');\r\n}\r\n\r\n@NgModule({\r\n imports: [\r\n TranslateModule.forRoot(\r\n {\r\n loader: {\r\n provide: TranslateLoader,\r\n useFactory: TranslateHttpLoaderFactory,\r\n deps: [RawHttpClient]\r\n }\r\n }\r\n ),\r\n ],\r\n exports: [\r\n TranslateModule,\r\n ],\r\n})\r\nexport class I18nModule {\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Observable } from 'rxjs';\r\nimport { distinctUntilChanged, filter, map } from 'rxjs/operators';\r\n\r\nimport { ISession } from '../../shared/models/session/session.interface';\r\nimport { SessionService } from '../services/session.service';\r\n\r\nexport enum Languages {\r\n enus = 'en-US',\r\n engb = 'en-GB',\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class I18nService {\r\n\r\n session$: Observable = this.sessionService.session$;\r\n\r\n constructor(\r\n private translateService: TranslateService,\r\n private sessionService: SessionService,\r\n ) {\r\n this.translateService.setDefaultLang(Languages.enus);\r\n\r\n this.session$.pipe(\r\n filter((session) => !!session),\r\n map(session => session.preferences.locale),\r\n distinctUntilChanged(),\r\n ).subscribe((locale) => {\r\n this.translateService.use(locale);\r\n });\r\n }\r\n\r\n changeLang(lang: Languages) {\r\n this.translateService.use(lang);\r\n }\r\n\r\n}\r\n","import { HttpHandlerFn, HttpRequest} from '@angular/common/http';\r\n\r\nimport { environment } from '../../../environments/environment';\r\n\r\nexport function baseUrlInterceptor(req: HttpRequest, next: HttpHandlerFn) {\r\n if (/^https?:\\/\\//i.test(req.url)) {\r\n return next(req);\r\n }\r\n\r\n const baseUrl = /\\/$/.test(environment.baseServiceUrl) ?\r\n environment.baseServiceUrl.substring(0, environment.baseServiceUrl.length - 1) :\r\n environment.baseServiceUrl;\r\n\r\n const requestUrl = /^\\//.test(req.url) ? req.url.substring(1, req.url.length) : req.url;\r\n\r\n const requestWithBaseUrl = req.clone({\r\n url: baseUrl ? `${baseUrl}/${requestUrl}` : req.url,\r\n });\r\n\r\n return next(requestWithBaseUrl);\r\n}\r\n","import {HttpHandlerFn, HttpRequest} from '@angular/common/http';\r\nimport {inject} from '@angular/core';\r\nimport {User} from 'oidc-client';\r\nimport {Observable} from 'rxjs';\r\nimport {switchMap, take} from 'rxjs/operators';\r\n\r\nimport {AuthService} from '../services/auth.service';\r\n\r\nexport function headerAuthorizationInterceptor(req: HttpRequest, next: HttpHandlerFn) {\r\n\r\n const user$: Observable = inject(AuthService).user$;\r\n\r\n return user$.pipe(\r\n take(1),\r\n switchMap((user: User) => {\r\n if (user) {\r\n req = req.clone({headers: req.headers.set('Authorization', `${user.token_type} ${user.access_token}`)});\r\n }\r\n return next(req);\r\n })\r\n );\r\n}\r\n\r\n","import {HttpErrorResponse, HttpHandlerFn, HttpRequest} from '@angular/common/http';\r\nimport {inject} from '@angular/core';\r\nimport { throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\n\r\nimport { AuthService } from '../services/auth.service';\r\n\r\n export function unauthorizedInterceptor(req: HttpRequest, next: HttpHandlerFn) {\r\n const authService = inject(AuthService);\r\n return next(req).pipe(\r\n catchError(err => {\r\n if (err instanceof HttpErrorResponse && err.status === 401) {\r\n authService.cleanUserState();\r\n authService.manager.removeUser();\r\n authService.signInSilent();\r\n }\r\n return throwError(err);\r\n })\r\n );\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { IAdjustor } from '../../../shared/models/common/adjustor/adjustor.interface';\r\nimport { FilterFocalProperties } from '../../../shared/models/common/filters/filter-focal-properties.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport {\r\n BuyerAdjustorLayoutPolicyGetterState\r\n} from '../buyer-adjustor-layout-policy/buyer-adjustor-layout-policy-getter.state';\r\nimport {\r\n StreamAdjustorLayoutPolicyGetterState\r\n} from '../stream-adjustor-layout-policy/stream-adjustor-layout-policy-getter.state';\r\nimport { AdjustorState, AdjustorStateModel } from './adjustor.state';\r\n\r\n\r\nexport class AdjustorGetterState {\r\n @Selector([AdjustorState])\r\n static getAllAdjustors(state: AdjustorStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getTierAdjustorsByActorPseudonym(actorPseudonym: string, regionId: number) {\r\n return createSelector(\r\n [\r\n BuyerAdjustorLayoutPolicyGetterState.getAllAdjustorPolicies,\r\n AdjustorGetterState.getAllAdjustors,\r\n ],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n allAdjustors: IAdjustor[],\r\n ) => {\r\n const actorAdjustors = allAdjustors.filter(\r\n (actorAdjustor) => actorAdjustor.actorPseudonym === actorPseudonym\r\n );\r\n return actorAdjustors.map((actorAdjustor) => ({\r\n ...actorAdjustor,\r\n policy: allPolicies.find((policy) => policy.propertyId === actorAdjustor.propertyId && policy.regionId === regionId)\r\n }));\r\n }\r\n );\r\n }\r\n\r\n static getStreamAdjustorsByActorPseudonym(actorPseudonym: string, regionId: number) {\r\n return createSelector(\r\n [\r\n StreamAdjustorLayoutPolicyGetterState.getAllAdjustorPolicies,\r\n AdjustorGetterState.getAllAdjustors,\r\n ],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n allAdjustors: IAdjustor[],\r\n ) => {\r\n const actorAdjustors = allAdjustors.filter(\r\n (actorAdjustor) => actorAdjustor.actorPseudonym === actorPseudonym\r\n );\r\n return actorAdjustors.map((actorAdjustor) => ({\r\n ...actorAdjustor,\r\n policy: allPolicies.find((policy) => policy.propertyId === actorAdjustor.propertyId && policy.regionId === regionId)\r\n }));\r\n }\r\n );\r\n }\r\n\r\n static getAdjustorByActorPseudonymAndPropertyId(actorPseudonym: string, propertyId: FilterFocalProperties) {\r\n return createSelector(\r\n [AdjustorGetterState.getAllAdjustors],\r\n (allAdjustors: IAdjustor[]) => {\r\n return allAdjustors.find(\r\n (adjustor) => adjustor.actorPseudonym === actorPseudonym && adjustor.enabled && adjustor.propertyId === propertyId\r\n );\r\n }\r\n );\r\n }\r\n}\r\n","import { IAdjustor } from '../../../shared/models/common/adjustor/adjustor.interface';\r\nimport { ICreateAdjustorPayload } from '../../../shared/models/common/adjustor/create-adjustor-payload.interface';\r\nimport { IDeleteAdjustmentPayload } from '../../../shared/models/common/adjustor/delete-adjustment-payload.interface';\r\nimport { IEnableAdjustorPayload } from '../../../shared/models/common/adjustor/enable-adjustor-payload.interface';\r\nimport { IUpdateAdjustmentPayload } from '../../../shared/models/common/adjustor/update-adjustment-payload.interface';\r\n\r\nconst ActionTypes = {\r\n SET_ADJUSTORS: '[Adjustor] Set Adjustors',\r\n\r\n ENABLE_BUYER_TIER_ADJUSTOR: '[Adjustor] Enable Buyer Tier Adjustor',\r\n ENABLE_STREAM_ADJUSTOR: '[Adjustor] Enable Stream Adjustor',\r\n ENABLE_ADJUSTOR_SUCCESS: '[Adjustor] Enable Adjustor Success',\r\n ENABLE_ADJUSTOR_FAIL: '[Adjustor] Enable Adjustor Fail',\r\n\r\n DISABLE_BUYER_TIER_ADJUSTOR: '[Adjustor] Disable Buyer Tier Adjustor',\r\n DISABLE_STREAM_ADJUSTOR: '[Adjustor] Disable Stream Adjustor',\r\n DISABLE_ADJUSTOR_SUCCESS: '[Adjustor] Disable Adjustor Success',\r\n DISABLE_ADJUSTOR_FAIL: '[Adjustor] Disable Adjustor Fail',\r\n\r\n CREATE_BUYER_TIER_ADJUSTOR: '[Adjustor] Create Buyer Tier Adjustor',\r\n CREATE_STREAM_ADJUSTOR: '[Adjustor] Create Stream Adjustor',\r\n CREATE_ADJUSTOR_SUCCESS: '[Adjustor] Create Adjustor Success',\r\n CREATE_ADJUSTOR_FAIL: '[Adjustor] Create Adjustor Fail',\r\n\r\n UPDATE_BUYER_TIER_ADJUSTOR: '[Adjustor] Update Buyer Tier Adjustor',\r\n UPDATE_STREAM_ADJUSTOR: '[Adjustor] Update Stream Adjustor',\r\n UPDATE_ADJUSTOR_SUCCESS: '[Adjustor] Update Adjustor Success',\r\n UPDATE_ADJUSTOR_FAIL: '[Adjustor] Update Adjustor Fail',\r\n\r\n DELETE_BUYER_TIER_ADJUSTMENT: '[Adjustor] Delete Buyer Tier Adjustment',\r\n DELETE_STREAM_ADJUSTMENT: '[Adjustor] Delete Stream Adjustment',\r\n DELETE_ADJUSTMENT_SUCCESS: '[Adjustor] Delete Adjustment Success',\r\n DELETE_ADJUSTMENT_FAIL: '[Adjustor] Delete Adjustment Fail',\r\n};\r\n\r\nexport class SetAdjustors {\r\n static type = ActionTypes.SET_ADJUSTORS;\r\n\r\n constructor(public payload: IAdjustor[]) {\r\n }\r\n}\r\n\r\nexport class EnableBuyerTierAdjustor {\r\n static type = ActionTypes.ENABLE_BUYER_TIER_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: IEnableAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableStreamAdjustor {\r\n static type = ActionTypes.ENABLE_STREAM_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: IEnableAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableAdjustorSuccess {\r\n static type = ActionTypes.ENABLE_ADJUSTOR_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IEnableAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableAdjustorFail {\r\n static type = ActionTypes.ENABLE_ADJUSTOR_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class DisableBuyerTierAdjustor {\r\n static type = ActionTypes.DISABLE_BUYER_TIER_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: IEnableAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableStreamAdjustor {\r\n static type = ActionTypes.DISABLE_STREAM_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: IEnableAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableAdjustorSuccess {\r\n static type = ActionTypes.DISABLE_ADJUSTOR_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IEnableAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableAdjustorFail {\r\n static type = ActionTypes.DISABLE_ADJUSTOR_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class CreateBuyerTierAdjustor {\r\n static type = ActionTypes.CREATE_BUYER_TIER_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: ICreateAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class CreateStreamAdjustor {\r\n static type = ActionTypes.CREATE_STREAM_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: ICreateAdjustorPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class CreateAdjustorSuccess {\r\n static type = ActionTypes.CREATE_ADJUSTOR_SUCCESS;\r\n\r\n constructor(\r\n public payload: IAdjustor,\r\n public buyerTierPseudonym: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class CreateAdjustorFail {\r\n static type = ActionTypes.CREATE_ADJUSTOR_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTierAdjustor {\r\n static type = ActionTypes.UPDATE_BUYER_TIER_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: IUpdateAdjustmentPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateStreamAdjustor {\r\n static type = ActionTypes.UPDATE_STREAM_ADJUSTOR;\r\n\r\n constructor(\r\n public payload: IUpdateAdjustmentPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateAdjustorSuccess {\r\n static type = ActionTypes.UPDATE_ADJUSTOR_SUCCESS;\r\n\r\n constructor(\r\n public payload: IAdjustor,\r\n public buyerTierPseudonym: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateAdjustorFail {\r\n static type = ActionTypes.UPDATE_ADJUSTOR_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class DeleteBuyerTierAdjustment {\r\n static type = ActionTypes.DELETE_BUYER_TIER_ADJUSTMENT;\r\n\r\n constructor(\r\n public payload: IDeleteAdjustmentPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DeleteStreamAdjustment {\r\n static type = ActionTypes.DELETE_STREAM_ADJUSTMENT;\r\n\r\n constructor(\r\n public payload: IDeleteAdjustmentPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DeleteAdjustmentSuccess {\r\n static type = ActionTypes.DELETE_ADJUSTMENT_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IDeleteAdjustmentPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DeleteAdjustmentFail {\r\n static type = ActionTypes.DELETE_ADJUSTMENT_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IAdjustor } from '../../../shared/models/common/adjustor/adjustor.interface';\r\nimport { SharedComponentActorType } from '../../../shared/models/common/shared-component-actor-type.enum';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n CreateAdjustorFail,\r\n CreateAdjustorSuccess,\r\n CreateBuyerTierAdjustor, CreateStreamAdjustor,\r\n DeleteAdjustmentFail, DeleteAdjustmentSuccess,\r\n DeleteBuyerTierAdjustment, DeleteStreamAdjustment,\r\n DisableAdjustorFail,\r\n DisableAdjustorSuccess,\r\n DisableBuyerTierAdjustor, DisableStreamAdjustor,\r\n EnableAdjustorFail,\r\n EnableAdjustorSuccess,\r\n EnableBuyerTierAdjustor, EnableStreamAdjustor,\r\n SetAdjustors,\r\n UpdateAdjustorFail,\r\n UpdateAdjustorSuccess,\r\n UpdateBuyerTierAdjustor, UpdateStreamAdjustor\r\n} from './adjustor.actions';\r\n\r\n@RequestState('enableBuyerTierAdjustor')\r\n@Injectable()\r\nexport class EnableBuyerTierAdjustorRequestState {\r\n}\r\n\r\n@RequestState('enableStreamAdjustor')\r\n@Injectable()\r\nexport class EnableStreamAdjustorRequestState {\r\n}\r\n\r\n@RequestState('disableBuyerTierAdjustor')\r\n@Injectable()\r\nexport class DisableBuyerTierAdjustorRequestState {\r\n}\r\n\r\n@RequestState('disableStreamAdjustor')\r\n@Injectable()\r\nexport class DisableStreamAdjustorRequestState {\r\n}\r\n\r\n@RequestState('createBuyerTierAdjustor')\r\n@Injectable()\r\nexport class CreateBuyerTierAdjustorRequestState {\r\n}\r\n\r\n@RequestState('createStreamAdjustor')\r\n@Injectable()\r\nexport class CreateStreamAdjustorRequestState {\r\n}\r\n\r\n@RequestState('updateBuyerTierAdjustor')\r\n@Injectable()\r\nexport class UpdateBuyerTierAdjustorRequestState {\r\n}\r\n\r\n@RequestState('updateStreamAdjustor')\r\n@Injectable()\r\nexport class UpdateStreamAdjustorRequestState {\r\n}\r\n\r\n@RequestState('deleteBuyerTierAdjustment')\r\n@Injectable()\r\nexport class DeleteBuyerTierAdjustmentRequestState {\r\n}\r\n\r\n@RequestState('deleteStreamAdjustment')\r\n@Injectable()\r\nexport class DeleteStreamAdjustmentRequestState {\r\n}\r\n\r\nexport interface AdjustorStateModel {\r\n entities: { [key: string]: IAdjustor };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'adjustor',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n\r\n@Injectable()\r\nexport class AdjustorState {\r\n\r\n enableAdjustor(\r\n type: SharedComponentActorType,\r\n {dispatch}: StateContext,\r\n action: EnableBuyerTierAdjustor\r\n ) {\r\n const {payload: {parentPseudonym, childPseudonym, adjustorPseudonym}} = action;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/adjustor/${adjustorPseudonym}/enable`,\r\n requestState: EnableBuyerTierAdjustorRequestState,\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/adjustor/${adjustorPseudonym}/enable`,\r\n requestState: EnableStreamAdjustorRequestState,\r\n },\r\n };\r\n\r\n const request = this.httpClient.patch(entityData[type].path, {});\r\n\r\n return dispatch(createRequestAction({\r\n state: entityData[type].requestState,\r\n request,\r\n successAction: EnableAdjustorSuccess,\r\n failAction: EnableAdjustorFail,\r\n metadata: action.payload,\r\n }));\r\n }\r\n\r\n disableAdjustor(\r\n type: SharedComponentActorType,\r\n {dispatch}: StateContext,\r\n action: DisableBuyerTierAdjustor\r\n ) {\r\n const {payload: {parentPseudonym, childPseudonym, adjustorPseudonym}} = action;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/adjustor/${adjustorPseudonym}/disable`,\r\n requestState: DisableBuyerTierAdjustorRequestState,\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/adjustor/${adjustorPseudonym}/disable`,\r\n requestState: DisableStreamAdjustorRequestState,\r\n },\r\n };\r\n\r\n const request = this.httpClient.patch(entityData[type].path, {});\r\n\r\n return dispatch(createRequestAction({\r\n state: entityData[type].requestState,\r\n request,\r\n successAction: DisableAdjustorSuccess,\r\n failAction: DisableAdjustorFail,\r\n metadata: action.payload,\r\n }));\r\n }\r\n\r\n createAdjustor(\r\n type: SharedComponentActorType,\r\n {dispatch}: StateContext,\r\n action: CreateBuyerTierAdjustor\r\n ) {\r\n const {payload: {parentPseudonym, childPseudonym, policyPseudonym, childPseudonymsToInclude, ...data}} = action;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/adjustor/policy/${policyPseudonym}`,\r\n requestState: CreateBuyerTierAdjustorRequestState,\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/adjustor/policy/${policyPseudonym}`,\r\n requestState: CreateStreamAdjustorRequestState,\r\n },\r\n };\r\n\r\n const request = this.httpClient.put(entityData[type].path, {\r\n ...data,\r\n ...type === SharedComponentActorType.BuyerTier ? {tierPseudonymsToInclude: childPseudonymsToInclude}\r\n : {streamPseudonymsToInclude: childPseudonymsToInclude}\r\n });\r\n\r\n return dispatch(createRequestAction({\r\n state: entityData[type].requestState,\r\n request,\r\n successAction: CreateAdjustorSuccess,\r\n failAction: CreateAdjustorFail,\r\n metadata: childPseudonym,\r\n }));\r\n }\r\n\r\n updateAdjustor(\r\n type: SharedComponentActorType,\r\n {dispatch}: StateContext,\r\n action: UpdateBuyerTierAdjustor\r\n ) {\r\n const {payload: {parentPseudonym, childPseudonym, adjustorPseudonym, adjustmentPseudonym, childPseudonymsToInclude, ...data}} = action;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/adjustor/${adjustorPseudonym}/adjustment/${adjustmentPseudonym}`,\r\n requestState: UpdateBuyerTierAdjustorRequestState,\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/adjustor/${adjustorPseudonym}/adjustment/${adjustmentPseudonym}`,\r\n requestState: UpdateStreamAdjustorRequestState,\r\n },\r\n };\r\n\r\n const request = this.httpClient.post(entityData[type].path, {\r\n ...data,\r\n ...type === SharedComponentActorType.BuyerTier ? {tierPseudonymsToInclude: childPseudonymsToInclude}\r\n : {streamPseudonymsToInclude: childPseudonymsToInclude}\r\n });\r\n\r\n return dispatch(createRequestAction({\r\n state: entityData[type].requestState,\r\n request,\r\n successAction: UpdateAdjustorSuccess,\r\n failAction: UpdateAdjustorFail,\r\n metadata: childPseudonym,\r\n }));\r\n }\r\n\r\n deleteAdjustor(\r\n type: SharedComponentActorType,\r\n {dispatch}: StateContext,\r\n action: DeleteBuyerTierAdjustment\r\n ) {\r\n const {payload: {parentPseudonym, childPseudonym, adjustorPseudonym, adjustmentPseudonym}} = action;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/adjustor/${adjustorPseudonym}/adjustment/${adjustmentPseudonym}`,\r\n requestState: DeleteBuyerTierAdjustmentRequestState,\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/adjustor/${adjustorPseudonym}/adjustment/${adjustmentPseudonym}`,\r\n requestState: DeleteStreamAdjustmentRequestState,\r\n },\r\n };\r\n\r\n const request = this.httpClient.delete(entityData[type].path);\r\n\r\n return dispatch(createRequestAction({\r\n state: entityData[type].requestState,\r\n request,\r\n successAction: DeleteAdjustmentSuccess,\r\n failAction: DeleteAdjustmentFail,\r\n metadata: action.payload,\r\n }));\r\n }\r\n\r\n @Action(SetAdjustors)\r\n setAdjusters({patchState, getState}: StateContext, {payload: adjusters}: SetAdjustors) {\r\n if (!adjusters) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, adjusters, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(EnableBuyerTierAdjustor)\r\n enableBuyerTierAdjustor(ctx: StateContext, action: EnableBuyerTierAdjustor) {\r\n this.enableAdjustor(SharedComponentActorType.BuyerTier, ctx, action);\r\n }\r\n\r\n @Action(EnableStreamAdjustor)\r\n enableStreamAdjustor(ctx: StateContext, action: EnableBuyerTierAdjustor) {\r\n this.enableAdjustor(SharedComponentActorType.Stream, ctx, action);\r\n }\r\n\r\n @Action(EnableAdjustorSuccess)\r\n enableAdjustorSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: EnableAdjustorSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.adjustorPseudonym]: {...state.entities[metadata.adjustorPseudonym], enabled: true}\r\n }\r\n });\r\n }\r\n\r\n @Action(EnableAdjustorFail)\r\n enableAdjustorFail() {\r\n console.log('enableAdjustorFail - request error');\r\n }\r\n\r\n @Action(DisableBuyerTierAdjustor)\r\n disableBuyerTierAdjustor(ctx: StateContext, action: DisableBuyerTierAdjustor) {\r\n this.disableAdjustor(SharedComponentActorType.BuyerTier, ctx, action);\r\n }\r\n\r\n @Action(DisableStreamAdjustor)\r\n disableStreamAdjustor(ctx: StateContext, action: DisableBuyerTierAdjustor) {\r\n this.disableAdjustor(SharedComponentActorType.Stream, ctx, action);\r\n }\r\n\r\n @Action(DisableAdjustorSuccess)\r\n disableAdjustorSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: DisableAdjustorSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.adjustorPseudonym]: {...state.entities[metadata.adjustorPseudonym], enabled: false}\r\n }\r\n });\r\n }\r\n\r\n @Action(DisableAdjustorFail)\r\n disableAdjustorFail() {\r\n console.log('disableAdjustorFail - request error');\r\n }\r\n\r\n @Action(CreateBuyerTierAdjustor)\r\n createBuyerTierAdjustor(ctx: StateContext, action: CreateBuyerTierAdjustor) {\r\n this.createAdjustor(SharedComponentActorType.BuyerTier, ctx, action);\r\n }\r\n\r\n @Action(CreateStreamAdjustor)\r\n createStreamAdjustor(ctx: StateContext, action: CreateBuyerTierAdjustor) {\r\n this.createAdjustor(SharedComponentActorType.Stream, ctx, action);\r\n }\r\n\r\n @Action(CreateAdjustorSuccess)\r\n createAdjustorSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, buyerTierPseudonym}: CreateAdjustorSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ids: state.ids.indexOf(payload.pseudonym) === -1 ? [...state.ids, payload.pseudonym] : [...state.ids],\r\n entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, actorPseudonym: buyerTierPseudonym}\r\n }\r\n });\r\n }\r\n\r\n @Action(CreateAdjustorFail)\r\n createAdjustorFail() {\r\n console.log('createAdjustorFail - request error');\r\n }\r\n\r\n @Action(UpdateBuyerTierAdjustor)\r\n updateBuyerTierAdjustor(ctx: StateContext, action: UpdateBuyerTierAdjustor) {\r\n this.updateAdjustor(SharedComponentActorType.BuyerTier, ctx, action);\r\n }\r\n\r\n @Action(UpdateStreamAdjustor)\r\n updateStreamAdjustor(ctx: StateContext, action: UpdateBuyerTierAdjustor) {\r\n this.updateAdjustor(SharedComponentActorType.Stream, ctx, action);\r\n }\r\n\r\n @Action(UpdateAdjustorSuccess)\r\n updateAdjustorSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, buyerTierPseudonym}: UpdateAdjustorSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, actorPseudonym: buyerTierPseudonym}\r\n }\r\n });\r\n }\r\n\r\n @Action(UpdateAdjustorFail)\r\n updateAdjustorFail() {\r\n console.log('updateAdjustorFail - request error');\r\n }\r\n\r\n @Action(DeleteBuyerTierAdjustment)\r\n deleteBuyerTierAdjustment(ctx: StateContext, action: DeleteBuyerTierAdjustment) {\r\n this.deleteAdjustor(SharedComponentActorType.BuyerTier, ctx, action);\r\n }\r\n\r\n @Action(DeleteStreamAdjustment)\r\n deleteStreamAdjustment(ctx: StateContext, action: DeleteBuyerTierAdjustment) {\r\n this.deleteAdjustor(SharedComponentActorType.Stream, ctx, action);\r\n }\r\n\r\n @Action(DeleteAdjustmentSuccess)\r\n deleteAdjustmentSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: DeleteAdjustmentSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const adjustor = state.entities[metadata.adjustorPseudonym];\r\n\r\n const updatedAdjustor = {\r\n ...adjustor,\r\n adjustments: adjustor.adjustments.filter((adjustment) => adjustment.pseudonym !== metadata.adjustmentPseudonym),\r\n };\r\n\r\n const {[metadata.adjustorPseudonym]: currentEntity, ...updatedEntities} = state.entities;\r\n\r\n patchState({\r\n ids: adjustor.adjustments.length < 2 ? state.ids.filter((id) => id !== metadata.adjustorPseudonym) : state.ids,\r\n entities: adjustor.adjustments.length < 2 ? updatedEntities : {...state.entities, [metadata.adjustorPseudonym]: updatedAdjustor},\r\n });\r\n }\r\n\r\n @Action(DeleteAdjustmentFail)\r\n deleteAdjustmentFail() {\r\n console.log('deleteAdjustmentFail - request error');\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { IApplicationSubmissionBuyerExchange } from '../../../shared/models/application/application-submission-buyer-exchange.interface';\r\n\r\nconst ActionTypes = {\r\n GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE: '[ApplicationSubmissionBuyerExchange] Get Application Submission Buyer Exchange',\r\n GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE_SUCCESS: '[ApplicationSubmissionBuyerExchange] Get Application Submission Buyer Exchange Success',\r\n GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE_FAIL: '[ApplicationSubmissionBuyerExchange] Get Application Submission Buyer Exchange Fail',\r\n};\r\n\r\nexport class GetApplicationSubmissionBuyerExchange {\r\n static type = ActionTypes.GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE;\r\n\r\n constructor(public payload: {regionId: number, correlationHash: string }) {\r\n }\r\n}\r\n\r\nexport class GetApplicationSubmissionBuyerExchangeSuccess {\r\n static type = ActionTypes.GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE_SUCCESS;\r\n\r\n constructor(public payload: { items: IApplicationSubmissionBuyerExchange[] }, public metadata: string) {\r\n }\r\n}\r\n\r\nexport class GetApplicationSubmissionBuyerExchangeFail {\r\n static type = ActionTypes.GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IApplicationSubmissionBuyerExchange } from '../../../shared/models/application/application-submission-buyer-exchange.interface';\r\nimport {\r\n GetApplicationSubmissionBuyerExchange,\r\n GetApplicationSubmissionBuyerExchangeFail,\r\n GetApplicationSubmissionBuyerExchangeSuccess\r\n} from './application-submission-buyer-exchange.action';\r\n\r\n@RequestState('getApplicationSubmissionBuyerExchange')\r\n@Injectable()\r\nexport class GetApplicationSubmissionBuyerExchangeRequestState {\r\n}\r\n\r\nexport interface ApplicationSubmissionBuyerExchangeStateModel {\r\n entities: {\r\n [key: string]: IApplicationSubmissionBuyerExchange[];\r\n };\r\n}\r\n\r\n@State({\r\n name: 'applicationSubmissionBuyerExchange',\r\n defaults: {\r\n entities: {},\r\n }\r\n})\r\n@Injectable()\r\nexport class ApplicationSubmissionBuyerExchangeState {\r\n constructor(private httpClient: HttpClient) {\r\n }\r\n\r\n @Action(GetApplicationSubmissionBuyerExchange)\r\n getApplicationSubmissionBuyerExchange(\r\n {dispatch}: StateContext,\r\n {payload: {regionId, correlationHash}}: GetApplicationSubmissionBuyerExchange,\r\n ) {\r\n const request = this.httpClient.post(`applications/${regionId}/sh/exchanges`, {Value: correlationHash});\r\n\r\n return dispatch(createRequestAction({\r\n state: GetApplicationSubmissionBuyerExchangeRequestState,\r\n request,\r\n successAction: GetApplicationSubmissionBuyerExchangeSuccess,\r\n failAction: GetApplicationSubmissionBuyerExchangeFail,\r\n metadata: correlationHash,\r\n }));\r\n }\r\n\r\n @Action(GetApplicationSubmissionBuyerExchangeFail)\r\n getApplicationSubmissionBuyerExchangeFail() {\r\n console.log('getApplicationSubmissionBuyerExchangeFail - request error');\r\n }\r\n\r\n @Action(GetApplicationSubmissionBuyerExchangeSuccess)\r\n getApplicationSubmissionBuyerExchangeSuccess\r\n (\r\n {getState, patchState}: StateContext,\r\n {payload: {items}, metadata: correlationHash}: GetApplicationSubmissionBuyerExchangeSuccess\r\n ) {\r\n const state = getState();\r\n\r\n patchState({\r\n entities: {\r\n ...state.entities,\r\n [correlationHash]: items,\r\n },\r\n });\r\n }\r\n}\r\n","import { IBuyerTierBlacklistPolicy } from '../../../shared/models/buyer-tier/buyer-tier-blacklist-policy.interface';\r\nimport { IUpdateBlacklistPolicyPayload } from '../../../shared/models/common/blacklist-policy/update-blacklist-policy-payload.interface';\r\nimport { IUpdateBlacklistPolicyPeriodicityPayload } from '../../../shared/models/common/blacklist-policy/update-blacklist-policy-periodicity-payload.interface';\r\nimport { IStreamBlacklistPolicy } from '../../../shared/models/stream/stream-blacklist-policy.interface';\r\n\r\nconst ActionTypes = {\r\n GET_BUYER_BLACKLIST_POLICIES: '[BlacklistPolicy] Get Buyer Blacklist Policies',\r\n GET_BUYER_BLACKLIST_POLICIES_SUCCESS: '[BlacklistPolicy] Get Buyer Blacklist Policies Success',\r\n GET_BUYER_BLACKLIST_POLICIES_FAIL: '[BlacklistPolicy] Get Buyer Blacklist Policies Fail',\r\n\r\n GET_STREAM_BLACKLIST_POLICIES: '[BlacklistPolicy] Get Stream Blacklist Policies',\r\n GET_STREAM_BLACKLIST_POLICIES_SUCCESS: '[BlacklistPolicy] Get Stream Blacklist Policies Success',\r\n GET_STREAM_BLACKLIST_POLICIES_FAIL: '[BlacklistPolicy] Get Stream Blacklist Policies Fail',\r\n\r\n PATCH_BLACKLIST_POLICY: '[BlacklistPolicy] Patch Blacklist Policy',\r\n PATCH_BLACKLIST_POLICY_SUCCESS: '[BlacklistPolicy] Patch Blacklist Policy Success',\r\n PATCH_BLACKLIST_POLICY_FAIL: '[BlacklistPolicy] Patch Blacklist Policy Fail',\r\n\r\n PATCH_BLACKLIST_POLICY_PERIODICITY: '[BlacklistPolicy] Patch Blacklist Policy Periodicity',\r\n PATCH_BLACKLIST_POLICY_PERIODICITY_SUCCESS: '[BlacklistPolicy] Patch Blacklist Policy Periodicity Success',\r\n PATCH_BLACKLIST_POLICY_PERIODICITY_FAIL: '[BlacklistPolicy] Patch Blacklist Policy Periodicity Fail',\r\n};\r\n\r\nexport class GetBuyerBlacklistPolicies {\r\n static type = ActionTypes.GET_BUYER_BLACKLIST_POLICIES;\r\n\r\n constructor(public payload: { buyerPseudonym: string, buyerTierPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerBlacklistPoliciesSuccess {\r\n static type = ActionTypes.GET_BUYER_BLACKLIST_POLICIES_SUCCESS;\r\n\r\n constructor(\r\n public payload: IBuyerTierBlacklistPolicy,\r\n public metadata: { buyerPseudonym: string, buyerTierPseudonym: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetBuyerBlacklistPoliciesFail {\r\n static type = ActionTypes.GET_BUYER_BLACKLIST_POLICIES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class GetStreamBlacklistPolicies {\r\n static type = ActionTypes.GET_STREAM_BLACKLIST_POLICIES;\r\n\r\n constructor(public payload: { streamAgentPseudonym: string, streamPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class GetStreamBlacklistPoliciesSuccess {\r\n static type = ActionTypes.GET_STREAM_BLACKLIST_POLICIES_SUCCESS;\r\n\r\n constructor(\r\n public payload: IStreamBlacklistPolicy,\r\n public metadata: { streamAgentPseudonym: string, streamPseudonym: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetStreamBlacklistPoliciesFail {\r\n static type = ActionTypes.GET_STREAM_BLACKLIST_POLICIES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class PatchBlacklistPolicy {\r\n static type = ActionTypes.PATCH_BLACKLIST_POLICY;\r\n\r\n constructor(public payload: IUpdateBlacklistPolicyPayload) {\r\n }\r\n}\r\n\r\nexport class PatchBlacklistPolicySuccess {\r\n static type = ActionTypes.PATCH_BLACKLIST_POLICY_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateBlacklistPolicyPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class PatchBlacklistPolicyFail {\r\n static type = ActionTypes.PATCH_BLACKLIST_POLICY_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class PatchBlacklistPolicyPeriodicity {\r\n static type = ActionTypes.PATCH_BLACKLIST_POLICY_PERIODICITY;\r\n\r\n constructor(public payload: IUpdateBlacklistPolicyPeriodicityPayload) {\r\n }\r\n}\r\n\r\nexport class PatchBlacklistPolicyPeriodicitySuccess {\r\n static type = ActionTypes.PATCH_BLACKLIST_POLICY_PERIODICITY_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateBlacklistPolicyPeriodicityPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class PatchBlacklistPolicyPeriodicityFail {\r\n static type = ActionTypes.PATCH_BLACKLIST_POLICY_PERIODICITY_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IBlacklistPolicy } from '../../../shared/models/common/blacklist-policy/blacklist-policy.interface';\r\nimport { IUpdateBlacklistPolicyPayload } from '../../../shared/models/common/blacklist-policy/update-blacklist-policy-payload.interface';\r\nimport { IUpdateBlacklistPolicyPeriodicityPayload } from '../../../shared/models/common/blacklist-policy/update-blacklist-policy-periodicity-payload.interface';\r\nimport { UpdatedBlacklistPolicyFieldName } from '../../../shared/models/common/blacklist-policy/updated-blacklist-policy-field-name.enum';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetBuyerBlacklistPolicies,\r\n GetBuyerBlacklistPoliciesFail,\r\n GetBuyerBlacklistPoliciesSuccess,\r\n GetStreamBlacklistPolicies, GetStreamBlacklistPoliciesFail, GetStreamBlacklistPoliciesSuccess,\r\n PatchBlacklistPolicy,\r\n PatchBlacklistPolicyFail,\r\n PatchBlacklistPolicyPeriodicity,\r\n PatchBlacklistPolicyPeriodicityFail,\r\n PatchBlacklistPolicyPeriodicitySuccess,\r\n PatchBlacklistPolicySuccess\r\n} from './blacklist-policy.actions';\r\n\r\n@RequestState('getBuyerTierBlacklistPolicies')\r\n@Injectable()\r\nexport class GetBuyerTierBlacklistPoliciesRequestState {\r\n}\r\n\r\n@RequestState('getStreamBlacklistPoliciesRequestState')\r\n@Injectable()\r\nexport class GetStreamBlacklistPoliciesRequestState {\r\n}\r\n\r\n@RequestState('patchBlacklistPolicyRequestState')\r\n@Injectable()\r\nexport class PatchBlacklistPolicyRequestState {\r\n}\r\n\r\n@RequestState('patchBlacklistPolicyPeriodicityRequestState')\r\n@Injectable()\r\nexport class PatchBlacklistPolicyPeriodicityRequestState {\r\n}\r\n\r\nexport interface BlacklistPolicyStateModel {\r\n entities: { [key: string]: IBlacklistPolicy };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'blacklistPolicy',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BlacklistPolicyState {\r\n\r\n @Action(GetBuyerBlacklistPolicies)\r\n getBuyerBlacklistPolicies(\r\n {dispatch}: StateContext,\r\n {payload}: GetBuyerBlacklistPolicies\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym} = payload;\r\n const request = this.httpClient.get(`buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/blacklistpolicies`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierBlacklistPoliciesRequestState,\r\n request,\r\n failAction: GetBuyerBlacklistPoliciesFail,\r\n successAction: GetBuyerBlacklistPoliciesSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerBlacklistPoliciesFail)\r\n getBuyerBlacklistPoliciesFail() {\r\n console.log('getBuyerBlacklistPolicies - request error');\r\n }\r\n\r\n @Action(GetBuyerBlacklistPoliciesSuccess)\r\n getBuyerBlacklistPoliciesSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload: policies, metadata}: GetBuyerBlacklistPoliciesSuccess,\r\n ) {\r\n\r\n const policiesToSet = [\r\n {...policies.buyerPolicy, actorPseudonym: metadata.buyerPseudonym},\r\n {...policies.buyerTierPolicy, actorPseudonym: metadata.buyerTierPseudonym}\r\n ];\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, policiesToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetStreamBlacklistPolicies)\r\n getStreamBlacklistPolicies(\r\n {dispatch}: StateContext,\r\n {payload}: GetStreamBlacklistPolicies\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym} = payload;\r\n const request = this.httpClient.get(`streams/agent/${ streamAgentPseudonym }/stream/${ streamPseudonym }/blacklistpolicies`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamBlacklistPoliciesRequestState,\r\n request,\r\n failAction: GetStreamBlacklistPoliciesFail,\r\n successAction: GetStreamBlacklistPoliciesSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(GetStreamBlacklistPoliciesFail)\r\n getStreamBlacklistPoliciesFail() {\r\n console.log('getStreamBlacklistPolicies - request error');\r\n }\r\n\r\n @Action(GetStreamBlacklistPoliciesSuccess)\r\n getStreamBlacklistPoliciesSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload: policies, metadata}: GetStreamBlacklistPoliciesSuccess,\r\n ) {\r\n\r\n const policiesToSet = [\r\n {...policies.streamAgentPolicy, actorPseudonym: metadata.streamAgentPseudonym},\r\n {...policies.streamPolicy, actorPseudonym: metadata.streamPseudonym}\r\n ];\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, policiesToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(PatchBlacklistPolicy)\r\n patchBlacklistPolicy(\r\n {dispatch}: StateContext,\r\n {payload}: PatchBlacklistPolicy\r\n ) {\r\n\r\n const {blacklistPolicyPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(\r\n `blacklisting/policy/${blacklistPolicyPseudonym}/update/${fieldName}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchBlacklistPolicyRequestState,\r\n request,\r\n failAction: PatchBlacklistPolicyFail,\r\n successAction: PatchBlacklistPolicySuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PatchBlacklistPolicyFail)\r\n patchBlacklistPolicyFail() {\r\n console.log('patchBlacklistPolicy - request error');\r\n }\r\n\r\n @Action(PatchBlacklistPolicySuccess)\r\n patchBlacklistPolicySuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PatchBlacklistPolicySuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedPolicy = this.updatePolicy(metadata, state.entities[metadata.blacklistPolicyPseudonym]);\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.blacklistPolicyPseudonym]: updatedPolicy}\r\n });\r\n }\r\n\r\n @Action(PatchBlacklistPolicyPeriodicity)\r\n patchBlacklistPolicyPeriodicity(\r\n {dispatch}: StateContext,\r\n {payload}: PatchBlacklistPolicyPeriodicity\r\n ) {\r\n\r\n const {blacklistPolicyPseudonym, fieldName, periodicity, value} = payload;\r\n const request = this.httpClient.patch(\r\n `blacklisting/policy/${blacklistPolicyPseudonym}/update/${fieldName}/${periodicity}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchBlacklistPolicyPeriodicityRequestState,\r\n request,\r\n failAction: PatchBlacklistPolicyPeriodicityFail,\r\n successAction: PatchBlacklistPolicyPeriodicitySuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PatchBlacklistPolicyPeriodicityFail)\r\n patchBlacklistPolicyPeriodicityFail() {\r\n console.log('patchBlacklistPolicyPeriodicity - request error');\r\n }\r\n\r\n @Action(PatchBlacklistPolicyPeriodicitySuccess)\r\n patchBlacklistPolicyPeriodicitySuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PatchBlacklistPolicyPeriodicitySuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedPolicy = this.updatePolicyPeriodicity(metadata, state.entities[metadata.blacklistPolicyPseudonym]);\r\n\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities,\r\n [metadata.blacklistPolicyPseudonym]: updatedPolicy\r\n }\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n updatePolicy(data: IUpdateBlacklistPolicyPayload, policy: IBlacklistPolicy) {\r\n switch (data.fieldName) {\r\n case UpdatedBlacklistPolicyFieldName.Enabled: {\r\n return {...policy, enabled: data.value};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.Characteristics: {\r\n return {...policy, characteristics: data.value};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.DelayPeriodicity: {\r\n return {...policy, biddingPolicy: {...policy.biddingPolicy, periodicity: data.value}};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.DelayThresholdMin: {\r\n return {...policy, biddingPolicy: {...policy.biddingPolicy, value: data.value}};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.Level1Periodicity: {\r\n return {...policy, declinePolicy: {...policy.declinePolicy, periodicity: data.value}};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.Level1ThresholdMin: {\r\n return {...policy, declinePolicy: {...policy.declinePolicy, value: data.value}};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.Level2Periodicity: {\r\n return {...policy, salePolicy: {...policy.salePolicy, periodicity: data.value}};\r\n }\r\n case UpdatedBlacklistPolicyFieldName.Level2ThresholdMin: {\r\n return {...policy, salePolicy: {...policy.salePolicy, value: data.value}};\r\n }\r\n default: {\r\n return policy;\r\n }\r\n }\r\n }\r\n\r\n updatePolicyPeriodicity(data: IUpdateBlacklistPolicyPeriodicityPayload, policy: IBlacklistPolicy) {\r\n switch (data.fieldName) {\r\n case UpdatedBlacklistPolicyFieldName.Level1ThresholdMin: {\r\n return {\r\n ...policy,\r\n declinePolicy: {\r\n ...policy.declinePolicy,\r\n value: data.value,\r\n periodicity: data.periodicity\r\n }\r\n };\r\n }\r\n case UpdatedBlacklistPolicyFieldName.Level2ThresholdMin: {\r\n return {\r\n ...policy,\r\n salePolicy: {\r\n ...policy.declinePolicy,\r\n value: data.value,\r\n periodicity: data.periodicity\r\n }\r\n };\r\n }\r\n case UpdatedBlacklistPolicyFieldName.DelayThresholdMin: {\r\n return {\r\n ...policy,\r\n biddingPolicy: {\r\n ...policy.declinePolicy,\r\n value: data.value,\r\n periodicity: data.periodicity\r\n }\r\n };\r\n }\r\n default: {\r\n return policy;\r\n }\r\n }\r\n }\r\n\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { FilterGroupTypes } from '../../../shared/models/common/filters/filter-group-types.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { BuyerAdjustorLayoutPolicyState, BuyerAdjustorLayoutPolicyStateModel } from './buyer-adjustor-layout-policy.state';\r\n\r\nexport class BuyerAdjustorLayoutPolicyGetterState {\r\n\r\n @Selector([BuyerAdjustorLayoutPolicyState])\r\n static getAllAdjustorPolicies(state: BuyerAdjustorLayoutPolicyStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getAdjustorGroupsByRegionId(regionId: number) {\r\n return createSelector(\r\n [BuyerAdjustorLayoutPolicyGetterState.getAllAdjustorPolicies],\r\n (\r\n allAdjustorPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n const foundedAdjustors = allAdjustorPolicies.filter((adjustor) => adjustor.regionId === regionId);\r\n const groupTypes = foundedAdjustors.map((group) => group.groupType);\r\n return groupTypes.filter((groupType, index) => groupTypes.indexOf(groupType) === index);\r\n }\r\n );\r\n }\r\n\r\n static getAdjustorPoliciesByGroupType(regionId: number, groupType: FilterGroupTypes) {\r\n return createSelector(\r\n [BuyerAdjustorLayoutPolicyGetterState.getAllAdjustorPolicies],\r\n (\r\n allAdjustorPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n return allAdjustorPolicies.filter((policy) => policy.regionId === regionId && policy.groupType === Number(groupType));\r\n }\r\n );\r\n }\r\n\r\n}\r\n","import { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\n\r\nconst ActionTypes = {\r\n GET_LAYOUT_ADJUSTORS: '[BuyerAdjustorLayoutPolicy] Get Buyer Adjustor Layout Policies',\r\n GET_LAYOUT_ADJUSTORS_SUCCESS: '[BuyerAdjustorLayoutPolicy] Get Buyer Adjustor Layout Policies Success',\r\n GET_LAYOUT_ADJUSTORS_FAIL: '[BuyerAdjustorLayoutPolicy] Get Buyer Adjustor Layout Policies Fail',\r\n};\r\n\r\nexport class GetBuyerAdjustorLayoutPolicies {\r\n static type = ActionTypes.GET_LAYOUT_ADJUSTORS;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n\r\nexport class GetBuyerAdjustorLayoutPoliciesSuccess {\r\n static type = ActionTypes.GET_LAYOUT_ADJUSTORS_SUCCESS;\r\n\r\n constructor(public payload: {\r\n policies: IFilterLayoutPolicy[],\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerAdjustorLayoutPoliciesFail {\r\n static type = ActionTypes.GET_LAYOUT_ADJUSTORS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetBuyerAdjustorLayoutPolicies,\r\n GetBuyerAdjustorLayoutPoliciesFail,\r\n GetBuyerAdjustorLayoutPoliciesSuccess\r\n} from './buyer-adjustor-layout-policy.actions';\r\n\r\n@RequestState('getBuyerAdjustorLayoutPolicies')\r\n@Injectable()\r\nexport class GetBuyerAdjustorLayoutPoliciesRequestState {\r\n}\r\n\r\nexport interface BuyerAdjustorLayoutPolicyStateModel {\r\n entities: { [key: string]: IFilterLayoutPolicy };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerAdjustorLayoutPolicy',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerAdjustorLayoutPolicyState {\r\n @Action(GetBuyerAdjustorLayoutPolicies)\r\n getBuyerAdjustorLayoutPolicies({dispatch}: StateContext, {payload}: GetBuyerAdjustorLayoutPolicies) {\r\n\r\n const request = this.httpClient.get(`buyers/adjustor/policies/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerAdjustorLayoutPoliciesRequestState,\r\n request,\r\n failAction: GetBuyerAdjustorLayoutPoliciesFail,\r\n successAction: GetBuyerAdjustorLayoutPoliciesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerAdjustorLayoutPoliciesFail)\r\n getBuyerAdjustorLayoutPoliciesFail() {\r\n console.log('getBuyerAdjustorLayoutPoliciesFail - request error');\r\n }\r\n\r\n @Action(GetBuyerAdjustorLayoutPoliciesSuccess)\r\n getBuyerAdjustorLayoutPoliciesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload}: GetBuyerAdjustorLayoutPoliciesSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, payload.policies, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { IDemographicMap } from '../../../shared/models/demographics/demographic-map.interface';\r\n\r\nconst ActionTypes = {\r\n SET_BUYER_DEMOGRAPHIC_MAP: '[BuyerDemographicMap] Set Buyer Demographic Map',\r\n\r\n GET_BUYER_DEMOGRAPHIC_MAP: '[SellerDemographicMap] Get Buyer Demographic Map',\r\n GET_BUYER_DEMOGRAPHIC_MAP_SUCCESS: '[BuyerDemographicMap] Get Buyer Demographic Map Success',\r\n GET_BUYER_DEMOGRAPHIC_MAP_FAIL: '[BuyerDemographicMap] Get Buyer Demographic Map Fail',\r\n};\r\n\r\nexport class SetBuyerDemographicMap {\r\n static type = ActionTypes.SET_BUYER_DEMOGRAPHIC_MAP;\r\n\r\n constructor(public payload: {\r\n buyerDemographicMap: IDemographicMap;\r\n buyerPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerDemographicMap {\r\n static type = ActionTypes.GET_BUYER_DEMOGRAPHIC_MAP;\r\n\r\n constructor(public payload: {\r\n buyerPseudonym: string;\r\n regionalMapDemographicsPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerDemographicMapSuccess {\r\n static type = ActionTypes.GET_BUYER_DEMOGRAPHIC_MAP_SUCCESS;\r\n\r\n constructor(\r\n public payload: IDemographicMap,\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetBuyerDemographicMapFail {\r\n static type = ActionTypes.GET_BUYER_DEMOGRAPHIC_MAP_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IDemographicMap } from '../../../shared/models/demographics/demographic-map.interface';\r\nimport {\r\n GetBuyerDemographicMap,\r\n GetBuyerDemographicMapFail,\r\n GetBuyerDemographicMapSuccess,\r\n SetBuyerDemographicMap\r\n} from './buyer-demographic-map.actions';\r\n\r\n@RequestState('getBuyerDemographicMap')\r\n@Injectable()\r\nexport class GetBuyerDemographicMapRequestState {\r\n}\r\n\r\nexport interface BuyerDemographicMapStateModel {\r\n entities: { [key: string]: IDemographicMap };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerDemographicMap',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerDemographicMapState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n @Action(SetBuyerDemographicMap)\r\n setBuyerDemographicMap(\r\n {patchState, getState}: StateContext,\r\n {payload: {buyerDemographicMap, buyerPseudonym}}: SetBuyerDemographicMap\r\n ) {\r\n const state = getState();\r\n patchState({\r\n entities: {\r\n ...state.entities,\r\n [buyerPseudonym]: buyerDemographicMap\r\n },\r\n ids: state.ids.find(id => id === buyerPseudonym)\r\n ? [...state.ids]\r\n : [...state.ids, buyerPseudonym],\r\n });\r\n }\r\n\r\n @Action(GetBuyerDemographicMap)\r\n getBuyerDemographicMap(\r\n {dispatch}: StateContext,\r\n {payload: {buyerPseudonym, regionalMapDemographicsPseudonym}}: GetBuyerDemographicMap\r\n ) {\r\n const request = this.httpClient.get(\r\n `buyers/buyer/${buyerPseudonym}/demographics/captured/${regionalMapDemographicsPseudonym}/map`\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerDemographicMapRequestState,\r\n request,\r\n failAction: GetBuyerDemographicMapFail,\r\n successAction: GetBuyerDemographicMapSuccess,\r\n metadata: buyerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerDemographicMapFail)\r\n getBuyerDemographicMapFail() {\r\n console.log('getBuyerDemographicMap - request error');\r\n }\r\n\r\n @Action(GetBuyerDemographicMapSuccess)\r\n getBuyerDemographicMapSuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload: buyerDemographicMap, metadata: buyerPseudonym}: GetBuyerDemographicMapSuccess,\r\n ) {\r\n return dispatch(new SetBuyerDemographicMap({ buyerPseudonym, buyerDemographicMap }));\r\n }\r\n}\r\n","import { IDemographics } from '../../../shared/models/demographics/demographics.interface';\r\nimport { IDemographicsData } from '../../../shared/models/demographics/demographics-data.interface';\r\n\r\nconst ActionTypes = {\r\n SET_BUYER_DEMOGRAPHICS: '[BuyerDemographics] Set Buyer Demographics',\r\n\r\n GET_BUYER_DEMOGRAPHICS: '[SellerDemographics] Get Buyer Demographics',\r\n GET_BUYER_DEMOGRAPHICS_SUCCESS: '[SellerDemographics] Get Buyer Demographics Success',\r\n GET_BUYER_DEMOGRAPHICS_FAIL: '[SellerDemographics] Get Buyer Demographics Fail',\r\n};\r\n\r\nexport class SetBuyerDemographics {\r\n static type = ActionTypes.SET_BUYER_DEMOGRAPHICS;\r\n\r\n constructor(public payload: {\r\n buyerDemographics: IDemographics[];\r\n buyerPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerDemographics {\r\n static type = ActionTypes.GET_BUYER_DEMOGRAPHICS;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetBuyerDemographicsSuccess {\r\n static type = ActionTypes.GET_BUYER_DEMOGRAPHICS_SUCCESS;\r\n\r\n constructor(\r\n public payload: IDemographicsData,\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetBuyerDemographicsFail {\r\n static type = ActionTypes.GET_BUYER_DEMOGRAPHICS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IDemographicsData } from '../../../shared/models/demographics/demographics-data.interface';\r\nimport { GetBuyerDemographicMap } from '../buyer-demographic-map/buyer-demographic-map.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetBuyerDemographics,\r\n GetBuyerDemographicsFail,\r\n GetBuyerDemographicsSuccess,\r\n SetBuyerDemographics\r\n} from './buyer-demographics.actions';\r\n\r\n@RequestState('getBuyerDemographics')\r\n@Injectable()\r\nexport class GetBuyerDemographicsRequestState {\r\n}\r\n\r\nexport interface BuyerDemographicsStateModel {\r\n entities: { [key: string]: IDemographicsData };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerDemographics',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerDemographicsState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n @Action(SetBuyerDemographics)\r\n setBuyerDemographics(\r\n {patchState, getState}: StateContext,\r\n {payload: {buyerDemographics, buyerPseudonym}}: SetBuyerDemographics\r\n ) {\r\n const state = getState();\r\n\r\n const demographicsToSet = buyerDemographics.map((demographic) => ({...demographic, actorPseudonym: buyerPseudonym}));\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, demographicsToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetBuyerDemographics)\r\n getBuyerDemographics(\r\n {dispatch}: StateContext,\r\n {payload: buyerPseudonym}: GetBuyerDemographics\r\n ) {\r\n const request = this.httpClient.get(`buyers/buyer/${buyerPseudonym}/demographics`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerDemographicsRequestState,\r\n request,\r\n failAction: GetBuyerDemographicsFail,\r\n successAction: GetBuyerDemographicsSuccess,\r\n metadata: buyerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerDemographicsFail)\r\n getBuyerDemographicsFail() {\r\n console.log('getBuyerDemographics - request error');\r\n }\r\n\r\n @Action(GetBuyerDemographicsSuccess)\r\n getBuyerDemographicsSuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload: buyerDemographics, metadata: buyerPseudonym}: GetBuyerDemographicsSuccess,\r\n ) {\r\n return dispatch([\r\n new SetBuyerDemographics({ buyerPseudonym, buyerDemographics: buyerDemographics.demographics }),\r\n new GetBuyerDemographicMap({\r\n buyerPseudonym,\r\n regionalMapDemographicsPseudonym: buyerDemographics.regionalMapDemographicsPseudonym\r\n }),\r\n ]);\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { FilterGroupTypes } from '../../../shared/models/common/filters/filter-group-types.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { BuyerFilterLayoutPolicyState, BuyerFilterLayoutPolicyStateModel } from './buyer-filter-layout-policy.state';\r\n\r\nexport class BuyerFilterLayoutPolicyGetterState {\r\n\r\n @Selector([BuyerFilterLayoutPolicyState])\r\n static getAllFilterPolicies(state: BuyerFilterLayoutPolicyStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getFilterGroupsByRegionId(regionId: number) {\r\n return createSelector(\r\n [BuyerFilterLayoutPolicyGetterState.getAllFilterPolicies],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n const foundedFilters = allPolicies.filter((policy) => policy.regionId === regionId);\r\n const groupTypes = foundedFilters.map((group) => group.groupType);\r\n return groupTypes.filter((groupType, index) => groupTypes.indexOf(groupType) === index);\r\n }\r\n );\r\n }\r\n\r\n static getFilterPoliciesByGroupType(regionId: number, groupType: FilterGroupTypes) {\r\n return createSelector(\r\n [BuyerFilterLayoutPolicyGetterState.getAllFilterPolicies],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n return allPolicies.filter((policy) => policy.regionId === regionId && policy.groupType === Number(groupType));\r\n }\r\n );\r\n }\r\n\r\n}\r\n","import { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\n\r\nconst ActionTypes = {\r\n GET_LAYOUT_POLICIES: '[BuyerFilterLayoutPolicy] Get Buyer Filter Layout Policies',\r\n GET_LAYOUT_POLICIES_SUCCESS: '[BuyerFilterLayoutPolicy] Get Buyer Filter Layout Policies Success',\r\n GET_LAYOUT_POLICIES_FAIL: '[BuyerFilterLayoutPolicy] Get Buyer Filter Layout Policies Fail',\r\n};\r\n\r\nexport class GetBuyerFilterLayoutPolicies {\r\n static type = ActionTypes.GET_LAYOUT_POLICIES;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n\r\nexport class GetBuyerFilterLayoutPoliciesSuccess {\r\n static type = ActionTypes.GET_LAYOUT_POLICIES_SUCCESS;\r\n\r\n constructor(public payload: {\r\n policies: IFilterLayoutPolicy[],\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerFilterLayoutPoliciesFail {\r\n static type = ActionTypes.GET_LAYOUT_POLICIES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetBuyerFilterLayoutPolicies,\r\n GetBuyerFilterLayoutPoliciesFail,\r\n GetBuyerFilterLayoutPoliciesSuccess\r\n} from './buyer-filter-layout-policy.actions';\r\n\r\n@RequestState('getBuyerFilterLayoutPolicies')\r\n@Injectable()\r\nexport class GetBuyerFilterLayoutPoliciesRequestState {\r\n}\r\n\r\nexport interface BuyerFilterLayoutPolicyStateModel {\r\n entities: { [key: string]: IFilterLayoutPolicy };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerFilterLayoutPolicy',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerFilterLayoutPolicyState {\r\n @Action(GetBuyerFilterLayoutPolicies)\r\n getBuyerFilterLayoutPolicies({dispatch}: StateContext, {payload}: GetBuyerFilterLayoutPolicies) {\r\n\r\n const request = this.httpClient.get(`buyers/filter/policies/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerFilterLayoutPoliciesRequestState,\r\n request,\r\n failAction: GetBuyerFilterLayoutPoliciesFail,\r\n successAction: GetBuyerFilterLayoutPoliciesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerFilterLayoutPoliciesFail)\r\n getBuyerFilterLayoutPoliciesFail() {\r\n console.log('getBuyerFilterLayoutPoliciesFail - request error');\r\n }\r\n\r\n @Action(GetBuyerFilterLayoutPoliciesSuccess)\r\n getBuyerFilterLayoutPoliciesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload}: GetBuyerFilterLayoutPoliciesSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, payload.policies, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { IManagedSeller } from '../../../shared/models/common/seller-management/managed-seller.interface';\r\n\r\nconst ActionTypes = {\r\n GET_BUYER_SELLERS: '[BuyerSeller] Get Buyer Sellers',\r\n GET_BUYER_SELLERS_SUCCESS: '[BuyerSeller] Get Buyer Sellers Success',\r\n GET_BUYER_SELLERS_FAIL: '[BuyerSeller] Get Buyer Sellers Fail',\r\n};\r\n\r\nexport class GetBuyerSellers {\r\n static type = ActionTypes.GET_BUYER_SELLERS;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetBuyerSellersSuccess {\r\n static type = ActionTypes.GET_BUYER_SELLERS_SUCCESS;\r\n\r\n constructor(\r\n public payload: {sellers: IManagedSeller[]},\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class GetBuyerSellersFail {\r\n static type = ActionTypes.GET_BUYER_SELLERS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IManagedSeller } from '../../../shared/models/common/seller-management/managed-seller.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetBuyerSellers, GetBuyerSellersFail, GetBuyerSellersSuccess } from './buyer-seller.actions';\r\n\r\n@RequestState('getBuyerSellers')\r\n@Injectable()\r\nexport class GetBuyerSellersRequestState {\r\n}\r\n\r\nexport interface BuyerSellerStateModel {\r\n entities: { [key: string]: IManagedSeller };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerSeller',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerSellerState {\r\n\r\n @Action(GetBuyerSellers)\r\n getBuyerTier({dispatch}: StateContext, {payload}: GetBuyerSellers) {\r\n\r\n const request = this.httpClient.get(`buyers/buyer/${payload}/sellers`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerSellersRequestState,\r\n request,\r\n failAction: GetBuyerSellersFail,\r\n successAction: GetBuyerSellersSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerSellersFail)\r\n getBuyerSellersFail() {\r\n console.log('getBuyerSellersFail - request error');\r\n }\r\n\r\n @Action(GetBuyerSellersSuccess)\r\n getBuyerSellersSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {sellers}, metadata}: GetBuyerSellersSuccess,\r\n ) {\r\n\r\n const sellersToSet = sellers.map((item) => ({...item, actorPseudonym: metadata}));\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, sellersToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { IBuyerTierFilter } from '../../../shared/models/buyer-tier/filters/buyer-tier-filter.interface';\r\nimport { FilterFocalProperties } from '../../../shared/models/common/filters/filter-focal-properties.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { BuyerFilterLayoutPolicyGetterState } from '../buyer-filter-layout-policy/buyer-filter-layout-policy-getter.state';\r\nimport { BuyerTierFilterState, BuyerTierFilterStateModel } from './buyer-tier-filter.state';\r\n\r\nexport class BuyerTierFilterGetterState {\r\n @Selector([BuyerTierFilterState])\r\n static getAllBuyerTierFilters(state: BuyerTierFilterStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getFiltersByTierPseudonym(buyerTierPseudonym: string, regionId: number) {\r\n return createSelector(\r\n [\r\n BuyerFilterLayoutPolicyGetterState.getAllFilterPolicies,\r\n BuyerTierFilterGetterState.getAllBuyerTierFilters,\r\n ],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n allFilters: IBuyerTierFilter[],\r\n ) => {\r\n const tierFilters = allFilters.filter((tierFilter) => tierFilter.buyerTierPseudonym === buyerTierPseudonym && tierFilter.enabled);\r\n return tierFilters.map((tierFilter) => ({\r\n ...tierFilter, policy: allPolicies.find((policy) => policy.propertyId === tierFilter.propertyId && policy.regionId === regionId)\r\n }));\r\n }\r\n );\r\n }\r\n\r\n static getFilterByTierPseudonymAndPropertyId(buyerTierPseudonym: string, propertyId: FilterFocalProperties) {\r\n return createSelector(\r\n [BuyerTierFilterGetterState.getAllBuyerTierFilters],\r\n (allFilters: IBuyerTierFilter[]) => {\r\n return allFilters.find(\r\n (tierFilter) => tierFilter.buyerTierPseudonym === buyerTierPseudonym && tierFilter.enabled && tierFilter.propertyId === propertyId\r\n );\r\n }\r\n );\r\n }\r\n}\r\n","import { IBuyerTierFilter } from '../../../shared/models/buyer-tier/filters/buyer-tier-filter.interface';\r\nimport { ICreateBuyerTierFilterPayload } from '../../../shared/models/buyer-tier/filters/create-buyer-tier-filter-payload.interface';\r\nimport { IEnableBuyerTierFilterPayload } from '../../../shared/models/buyer-tier/filters/enable-buyer-tier-filter-payload.interface';\r\nimport { IUpdateBuyerTierFilterPayload } from '../../../shared/models/buyer-tier/filters/update-buyer-tier-filter-payload.interface';\r\nimport { IUpdateFreetextTierFilterPayload } from '../../../shared/models/buyer-tier/filters/update-freetext-tier-filter-payload.interface';\r\n\r\nconst ActionTypes = {\r\n SET_BUYER_TIER_FILTERS: '[BuyerTierFilter] Set Buyer Tier Filters',\r\n UPDATE_BUYER_TIER_FILTER: '[BuyerTierFilter] Update Buyer Tier Filter',\r\n UPDATE_BUYER_TIER_FILTER_SUCCESS: '[BuyerTierFilter] Update Buyer Tier Filter Success',\r\n UPDATE_BUYER_TIER_FILTER_FAIL: '[BuyerTierFilter] Update Buyer Tier Filter Fail',\r\n ENABLE_BUYER_TIER_FILTER: '[BuyerTierFilter] Enable Buyer Tier Filter',\r\n ENABLE_BUYER_TIER_FILTER_SUCCESS: '[BuyerTierFilter] Enable Buyer Tier Filter Success',\r\n ENABLE_BUYER_TIER_FILTER_FAIL: '[BuyerTierFilter] Enable Buyer Tier Filter Fail',\r\n DISABLE_BUYER_TIER_FILTER: '[BuyerTierFilter] Disable Buyer Tier Filter',\r\n DISABLE_BUYER_TIER_FILTER_SUCCESS: '[BuyerTierFilter] Disable Buyer Tier Filter Success',\r\n DISABLE_BUYER_TIER_FILTER_FAIL: '[BuyerTierFilter] Disable Buyer Tier Filter Fail',\r\n CREATE_BUYER_TIER_FILTER: '[BuyerTierFilter] Create Buyer Tier Filter',\r\n CREATE_BUYER_TIER_FILTER_SUCCESS: '[BuyerTierFilter] Create Buyer Tier Filter Success',\r\n CREATE_BUYER_TIER_FILTER_FAIL: '[BuyerTierFilter] Create Buyer Tier Filter Fail',\r\n ADD_FREETEXT_TIER_FILTER: '[BuyerTierFilter] Add Freetext Tier Filter',\r\n ADD_FREETEXT_TIER_FILTER_SUCCESS: '[BuyerTierFilter] Add Freetext Tier Filter Success',\r\n ADD_FREETEXT_TIER_FILTER_FAIL: '[BuyerTierFilter] Add Freetext Tier Filter Fail',\r\n REMOVE_FREETEXT_TIER_FILTER: '[BuyerTierFilter] Remove Freetext Tier Filter',\r\n REMOVE_FREETEXT_TIER_FILTER_SUCCESS: '[BuyerTierFilter] Remove Freetext Tier Filter Success',\r\n REMOVE_FREETEXT_TIER_FILTER_FAIL: '[BuyerTierFilter] Remove Freetext Tier Filter Fail',\r\n};\r\n\r\nexport class SetBuyerTierFilters {\r\n static type = ActionTypes.SET_BUYER_TIER_FILTERS;\r\n\r\n constructor(public payload: IBuyerTierFilter[]) {\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTierFilter {\r\n static type = ActionTypes.UPDATE_BUYER_TIER_FILTER;\r\n\r\n constructor(public payload: IUpdateBuyerTierFilterPayload) {\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTierFilterSuccess {\r\n static type = ActionTypes.UPDATE_BUYER_TIER_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IBuyerTierFilter,\r\n public metadata: IUpdateBuyerTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTierFilterFail {\r\n static type = ActionTypes.UPDATE_BUYER_TIER_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class EnableBuyerTierFilter {\r\n static type = ActionTypes.ENABLE_BUYER_TIER_FILTER;\r\n\r\n constructor(\r\n public payload: IEnableBuyerTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableBuyerTierFilterSuccess {\r\n static type = ActionTypes.ENABLE_BUYER_TIER_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IEnableBuyerTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableBuyerTierFilterFail {\r\n static type = ActionTypes.ENABLE_BUYER_TIER_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class DisableBuyerTierFilter {\r\n static type = ActionTypes.DISABLE_BUYER_TIER_FILTER;\r\n\r\n constructor(\r\n public payload: IEnableBuyerTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableBuyerTierFilterSuccess {\r\n static type = ActionTypes.DISABLE_BUYER_TIER_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IEnableBuyerTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableBuyerTierFilterFail {\r\n static type = ActionTypes.DISABLE_BUYER_TIER_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class CreateBuyerTierFilter {\r\n static type = ActionTypes.CREATE_BUYER_TIER_FILTER;\r\n\r\n constructor(public payload: ICreateBuyerTierFilterPayload) {\r\n }\r\n}\r\n\r\nexport class CreateBuyerTierFilterSuccess {\r\n static type = ActionTypes.CREATE_BUYER_TIER_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IBuyerTierFilter,\r\n public metadata: ICreateBuyerTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class CreateBuyerTierFilterFail {\r\n static type = ActionTypes.CREATE_BUYER_TIER_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class AddFreetextTierFilter {\r\n static type = ActionTypes.ADD_FREETEXT_TIER_FILTER;\r\n\r\n constructor(public payload: IUpdateFreetextTierFilterPayload) {\r\n }\r\n}\r\n\r\nexport class AddFreetextTierFilterSuccess {\r\n static type = ActionTypes.ADD_FREETEXT_TIER_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateFreetextTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class AddFreetextTierFilterFail {\r\n static type = ActionTypes.ADD_FREETEXT_TIER_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RemoveFreetextTierFilter {\r\n static type = ActionTypes.REMOVE_FREETEXT_TIER_FILTER;\r\n\r\n constructor(public payload: IUpdateFreetextTierFilterPayload) {\r\n }\r\n}\r\n\r\nexport class RemoveFreetextTierFilterSuccess {\r\n static type = ActionTypes.REMOVE_FREETEXT_TIER_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateFreetextTierFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class RemoveFreetextTierFilterFail {\r\n static type = ActionTypes.REMOVE_FREETEXT_TIER_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IBuyerTierFilter } from '../../../shared/models/buyer-tier/filters/buyer-tier-filter.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddFreetextTierFilter,\r\n AddFreetextTierFilterFail,\r\n AddFreetextTierFilterSuccess,\r\n CreateBuyerTierFilter,\r\n CreateBuyerTierFilterFail,\r\n CreateBuyerTierFilterSuccess,\r\n DisableBuyerTierFilter,\r\n DisableBuyerTierFilterFail,\r\n DisableBuyerTierFilterSuccess,\r\n EnableBuyerTierFilter,\r\n EnableBuyerTierFilterFail,\r\n EnableBuyerTierFilterSuccess,\r\n RemoveFreetextTierFilter,\r\n RemoveFreetextTierFilterFail,\r\n RemoveFreetextTierFilterSuccess,\r\n SetBuyerTierFilters,\r\n UpdateBuyerTierFilter,\r\n UpdateBuyerTierFilterFail,\r\n UpdateBuyerTierFilterSuccess\r\n} from './buyer-tier-filter.actions';\r\n\r\n@RequestState('updateBuyerTierFilter')\r\n@Injectable()\r\nexport class UpdateBuyerTierFilterRequestState {\r\n}\r\n\r\n@RequestState('enableBuyerTierFilter')\r\n@Injectable()\r\nexport class EnableBuyerTierFilterRequestState {\r\n}\r\n\r\n@RequestState('disableBuyerTierFilter')\r\n@Injectable()\r\nexport class DisableBuyerTierFilterRequestState {\r\n}\r\n\r\n@RequestState('createBuyerTierFilter')\r\n@Injectable()\r\nexport class CreateBuyerTierFilterRequestState {\r\n}\r\n\r\n@RequestState('addFreetextTierFilter')\r\n@Injectable()\r\nexport class AddFreetextTierFilterRequestState {\r\n}\r\n\r\n@RequestState('removeFreetextTierFilter')\r\n@Injectable()\r\nexport class RemoveFreetextTierFilterRequestState {\r\n}\r\n\r\nexport interface BuyerTierFilterStateModel {\r\n entities: { [key: string]: IBuyerTierFilter };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerTierFilter',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerTierFilterState {\r\n @Action(SetBuyerTierFilters)\r\n setBuyerTierFilters({patchState, getState}: StateContext, {payload: filters}: SetBuyerTierFilters) {\r\n if (!filters) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, filters, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(UpdateBuyerTierFilter)\r\n updateBuyerTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: UpdateBuyerTierFilter\r\n ) {\r\n const request = this.httpClient.post(\r\n `buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}/filter/${payload.filterPseudonym}`,\r\n {values: payload.values, characteristics: payload.characteristics, operator: payload.operator}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateBuyerTierFilterRequestState,\r\n request,\r\n failAction: UpdateBuyerTierFilterFail,\r\n successAction: UpdateBuyerTierFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(UpdateBuyerTierFilterSuccess)\r\n updateBuyerTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: UpdateBuyerTierFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, buyerTierPseudonym: metadata.buyerTierPseudonym}\r\n }\r\n });\r\n }\r\n\r\n @Action(UpdateBuyerTierFilterFail)\r\n updateBuyerTierFilterFail() {\r\n console.log('updateBuyerTierFilterFail - request error');\r\n }\r\n\r\n @Action(EnableBuyerTierFilter)\r\n enableBuyerTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: EnableBuyerTierFilter\r\n ) {\r\n\r\n const request = this.httpClient.request('patch',\r\n `buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}/filter/${payload.filterPseudonym}/enable`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: EnableBuyerTierFilterRequestState,\r\n request,\r\n failAction: EnableBuyerTierFilterFail,\r\n successAction: EnableBuyerTierFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(EnableBuyerTierFilterSuccess)\r\n enableBuyerTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: EnableBuyerTierFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {...state.entities[metadata.filterPseudonym], enabled: true}\r\n }\r\n });\r\n }\r\n\r\n @Action(EnableBuyerTierFilterFail)\r\n enableBuyerTierFilterFail() {\r\n console.log('enableBuyerTierFilterFail - request error');\r\n }\r\n\r\n @Action(DisableBuyerTierFilter)\r\n disableBuyerTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: DisableBuyerTierFilter\r\n ) {\r\n\r\n const request = this.httpClient.request('patch',\r\n `buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}/filter/${payload.filterPseudonym}/disable`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: DisableBuyerTierFilterRequestState,\r\n request,\r\n failAction: DisableBuyerTierFilterFail,\r\n successAction: DisableBuyerTierFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(DisableBuyerTierFilterSuccess)\r\n disableBuyerTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: DisableBuyerTierFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {...state.entities[metadata.filterPseudonym], enabled: false}\r\n }\r\n });\r\n }\r\n\r\n @Action(DisableBuyerTierFilterFail)\r\n disableBuyerTierFilterFail() {\r\n console.log('disableBuyerTierFilterFail - request error');\r\n }\r\n\r\n @Action(CreateBuyerTierFilter)\r\n createBuyerTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: CreateBuyerTierFilter\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, policyPseudonym, ...data} = payload;\r\n\r\n const request = this.httpClient.put(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/filter/policy/${policyPseudonym}`,\r\n data\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: CreateBuyerTierFilterRequestState,\r\n request,\r\n failAction: CreateBuyerTierFilterFail,\r\n successAction: CreateBuyerTierFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(CreateBuyerTierFilterSuccess)\r\n createBuyerTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: CreateBuyerTierFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ids: [...state.ids, payload.pseudonym],\r\n entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, buyerTierPseudonym: metadata.buyerTierPseudonym}\r\n }\r\n });\r\n }\r\n\r\n @Action(CreateBuyerTierFilterFail)\r\n createBuyerTierFilterFail() {\r\n console.log('createBuyerTierFilterFail - request error');\r\n }\r\n\r\n @Action(AddFreetextTierFilter)\r\n addFreetextTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: AddFreetextTierFilter\r\n ) {\r\n\r\n const request = this.httpClient.patch(\r\n `buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}/filter/${payload.filterPseudonym}/values`,\r\n {values: payload.values},\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: AddFreetextTierFilterRequestState,\r\n request,\r\n failAction: AddFreetextTierFilterFail,\r\n successAction: AddFreetextTierFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(AddFreetextTierFilterSuccess)\r\n addFreetextTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: AddFreetextTierFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {\r\n ...state.entities[metadata.filterPseudonym],\r\n values: [...state.entities[metadata.filterPseudonym].values, ...metadata.values],\r\n }\r\n }\r\n });\r\n }\r\n\r\n @Action(AddFreetextTierFilterFail)\r\n addFreetextTierFilterFail() {\r\n console.log('addFreetextTierFilterFail - request error');\r\n }\r\n\r\n\r\n @Action(RemoveFreetextTierFilter)\r\n removeFreetextTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: AddFreetextTierFilter\r\n ) {\r\n\r\n const request = this.httpClient.request('delete',\r\n `buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}/filter/${payload.filterPseudonym}/values`,\r\n {body: {values: payload.values}},\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveFreetextTierFilterRequestState,\r\n request,\r\n failAction: RemoveFreetextTierFilterFail,\r\n successAction: RemoveFreetextTierFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(RemoveFreetextTierFilterSuccess)\r\n removeFreetextTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: RemoveFreetextTierFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n const updatedValues = state.entities[metadata.filterPseudonym].values.filter((val) => {\r\n const foundVal = metadata.values.findIndex((removedValue) => removedValue === val);\r\n return foundVal === -1;\r\n });\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {\r\n ...state.entities[metadata.filterPseudonym],\r\n values: updatedValues,\r\n }\r\n }\r\n });\r\n }\r\n\r\n @Action(RemoveFreetextTierFilterFail)\r\n removeFreetextTierFilterFail() {\r\n console.log('removeFreetextTierFilterFail - request error');\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n\r\n","import { IBuyerTierSales } from '../../../shared/models/buyer-tier/buyer-tier-sales.interface';\r\nimport { BuyerTierSupplementalTableId } from '../../../shared/models/buyer-tier/buyer-tier-supplemental-table-id.enum';\r\n\r\nconst ActionTypes = {\r\n SET_BUYER_TIER_SALES: '[BuyerTierSales] Set Buyer Tier Sales',\r\n GET_BUYER_TIER_SALES: '[BuyerTierSales] Get Buyer Tier Sales',\r\n GET_BUYER_TIER_SALES_SUCCESS: '[BuyerTierSales] Get Buyer Tier Sales Success',\r\n GET_BUYER_TIER_SALES_FAIL: '[BuyerTierSales] Get Buyer Tier Sales Fail',\r\n SET_BUYER_TIER_SALES_CURRENT_CHART: '[BuyerTierSales] Set Buyer Tier Sales Current Chart',\r\n};\r\n\r\nexport class SetBuyerTierSales {\r\n static type = ActionTypes.SET_BUYER_TIER_SALES;\r\n\r\n constructor(public payload: IBuyerTierSales) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierSales {\r\n static type = ActionTypes.GET_BUYER_TIER_SALES;\r\n\r\n constructor(public payload: {\r\n buyerPseudonym: string;\r\n buyerTierPseudonym: string;\r\n timezoneId: number;\r\n startTime: string;\r\n endTime: string;\r\n supplementalTableId: BuyerTierSupplementalTableId;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierSalesSuccess {\r\n static type = ActionTypes.GET_BUYER_TIER_SALES_SUCCESS;\r\n\r\n constructor(public payload: IBuyerTierSales, public buyerTierPseudonym: string) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierSalesFail {\r\n static type = ActionTypes.GET_BUYER_TIER_SALES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class SetBuyerTierSalesCurrentChart {\r\n static type = ActionTypes.SET_BUYER_TIER_SALES_CURRENT_CHART;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { StateReset } from 'ngxs-reset-plugin';\r\n\r\nimport { IBuyerTierSales } from '../../../shared/models/buyer-tier/buyer-tier-sales.interface';\r\nimport { ChartState } from '../chart/chart.state';\r\nimport {\r\n GetBuyerTierSales,\r\n GetBuyerTierSalesFail,\r\n GetBuyerTierSalesSuccess,\r\n SetBuyerTierSalesCurrentChart\r\n} from './buyer-tier-sales.actions';\r\n\r\n\r\n@RequestState('getBuyerTierSales')\r\n@Injectable()\r\nexport class GetBuyerTierSalesRequestState {\r\n}\r\n\r\nexport interface BuyerTierSalesStateModel {\r\n entities: { [key: string]: IBuyerTierSales };\r\n ids: string[];\r\n currentChart: number;\r\n}\r\n\r\n@State({\r\n name: 'buyerTierSales',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n currentChart: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerTierSalesState {\r\n\r\n @Action(GetBuyerTierSales)\r\n getBuyerSales({dispatch}: StateContext, {payload}: GetBuyerTierSales) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, ...requestBody} = payload;\r\n\r\n const request = this.httpClient.post(`buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/sales`, requestBody);\r\n dispatch(new StateReset(ChartState));\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierSalesRequestState,\r\n request,\r\n failAction: GetBuyerTierSalesFail,\r\n successAction: GetBuyerTierSalesSuccess,\r\n metadata: payload.buyerTierPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerTierSalesFail)\r\n getBuyerCommissionFail() {\r\n console.log('getBuyerTierSalesFail - request error');\r\n }\r\n\r\n @Action(GetBuyerTierSalesSuccess)\r\n getBuyerSalesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: sales, buyerTierPseudonym}: GetBuyerTierSalesSuccess\r\n ) {\r\n const state = getState();\r\n\r\n patchState({\r\n entities: {...state.entities, [buyerTierPseudonym]: sales},\r\n ids: [...state.ids, buyerTierPseudonym],\r\n currentChart: state.currentChart || sales.initialChart\r\n });\r\n }\r\n\r\n @Action(SetBuyerTierSalesCurrentChart)\r\n setBuyerTierSalesCurrentChart(\r\n {patchState}: StateContext,\r\n {payload: currentChart}: SetBuyerTierSalesCurrentChart,\r\n ) {\r\n patchState({currentChart});\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n}\r\n","import { IAddBuyerTierSellerPayload } from '../../../shared/models/buyer-tier/add-buyer-tier-seller-payload.interface';\r\nimport { IManagedSeller } from '../../../shared/models/common/seller-management/managed-seller.interface';\r\n\r\nconst ActionTypes = {\r\n GET_BUYER_TIER_SELLERS: '[BuyerTierSeller] Get Buyer Tier Sellers',\r\n GET_BUYER_TIER_SELLERS_SUCCESS: '[BuyerTierSeller] Get Buyer Tier Sellers Success',\r\n GET_BUYER_TIER_SELLERS_FAIL: '[BuyerTierSeller] Get Buyer Tier Sellers Fail',\r\n ADD_BUYER_TIER_SELLER: '[BuyerTierSeller] Add Buyer Tier Seller',\r\n ADD_BUYER_TIER_SELLER_SUCCESS: '[BuyerTierSeller] Add Buyer Tier Seller Success',\r\n ADD_BUYER_TIER_SELLER_FAIL: '[BuyerTierSeller] Add Buyer Tier Seller Fail',\r\n REMOVE_BUYER_TIER_SELLER: '[BuyerTierSeller] Remove Buyer Tier Seller',\r\n REMOVE_BUYER_TIER_SELLER_SUCCESS: '[BuyerTierSeller] Remove Buyer Tier Seller Success',\r\n REMOVE_BUYER_TIER_SELLER_FAIL: '[BuyerTierSeller] Remove Buyer Tier Seller Fail',\r\n};\r\n\r\nexport class GetBuyerTierSellers {\r\n static type = ActionTypes.GET_BUYER_TIER_SELLERS;\r\n\r\n constructor(public payload: {buyerPseudonym: string, buyerTierPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierSellersSuccess {\r\n static type = ActionTypes.GET_BUYER_TIER_SELLERS_SUCCESS;\r\n\r\n constructor(\r\n public payload: {sellers: IManagedSeller[]},\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class GetBuyerTierSellersFail {\r\n static type = ActionTypes.GET_BUYER_TIER_SELLERS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n\r\nexport class AddBuyerTierSeller {\r\n static type = ActionTypes.ADD_BUYER_TIER_SELLER;\r\n\r\n constructor(public payload: IAddBuyerTierSellerPayload) {\r\n }\r\n}\r\n\r\nexport class AddBuyerTierSellerSuccess {\r\n static type = ActionTypes.ADD_BUYER_TIER_SELLER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IManagedSeller,\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class AddBuyerTierSellerFail {\r\n static type = ActionTypes.ADD_BUYER_TIER_SELLER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n\r\n\r\nexport class RemoveBuyerTierSeller {\r\n static type = ActionTypes.REMOVE_BUYER_TIER_SELLER;\r\n\r\n constructor(public payload: {buyerPseudonym: string, buyerTierPseudonym: string, managedSellerPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class RemoveBuyerTierSellerSuccess {\r\n static type = ActionTypes.REMOVE_BUYER_TIER_SELLER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class RemoveBuyerTierSellerFail {\r\n static type = ActionTypes.REMOVE_BUYER_TIER_SELLER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IManagedSeller } from '../../../shared/models/common/seller-management/managed-seller.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddBuyerTierSeller,\r\n AddBuyerTierSellerFail, AddBuyerTierSellerSuccess,\r\n GetBuyerTierSellers,\r\n GetBuyerTierSellersFail,\r\n GetBuyerTierSellersSuccess, RemoveBuyerTierSeller, RemoveBuyerTierSellerFail, RemoveBuyerTierSellerSuccess\r\n} from './buyer-tier-seller.actions';\r\n\r\n\r\n@RequestState('getBuyerTierSellers')\r\n@Injectable()\r\nexport class GetBuyerTierSellersRequestState {\r\n}\r\n\r\n@RequestState('addBuyerTierSeller')\r\n@Injectable()\r\nexport class AddBuyerTierSellerRequestState {\r\n}\r\n\r\n@RequestState('removeBuyerTierSeller')\r\n@Injectable()\r\nexport class RemoveBuyerTierSellerRequestState {\r\n}\r\n\r\nexport interface BuyerTierSellerStateModel {\r\n entities: { [key: string]: IManagedSeller };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerTierSeller',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerTierSellerState {\r\n\r\n @Action(GetBuyerTierSellers)\r\n getBuyerTierSellers(\r\n {dispatch}: StateContext,\r\n {payload: {buyerPseudonym, buyerTierPseudonym}}: GetBuyerTierSellers\r\n ) {\r\n\r\n const request = this.httpClient.get(`buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/sellers`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierSellersRequestState,\r\n request,\r\n failAction: GetBuyerTierSellersFail,\r\n successAction: GetBuyerTierSellersSuccess,\r\n metadata: buyerTierPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerTierSellersFail)\r\n getBuyerSellersFail() {\r\n console.log('getBuyerTierSellersFail - request error');\r\n }\r\n\r\n @Action(GetBuyerTierSellersSuccess)\r\n getBuyerSellersSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {sellers}, metadata}: GetBuyerTierSellersSuccess,\r\n ) {\r\n\r\n const sellersToSet = sellers.map((item) => ({...item, actorPseudonym: metadata}));\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, sellersToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(AddBuyerTierSeller)\r\n addBuyerTierSeller(\r\n {dispatch}: StateContext,\r\n {payload}: AddBuyerTierSeller\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, sellerPseudonym, ...body} = payload;\r\n\r\n const request = this.httpClient.put(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/seller/${sellerPseudonym}`,\r\n body\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: AddBuyerTierSellerRequestState,\r\n request,\r\n failAction: AddBuyerTierSellerFail,\r\n successAction: AddBuyerTierSellerSuccess,\r\n metadata: buyerTierPseudonym,\r\n }));\r\n }\r\n\r\n @Action(AddBuyerTierSellerFail)\r\n addBuyerSellerFail() {\r\n console.log('addBuyerTierSellerFail - request error');\r\n }\r\n\r\n @Action(AddBuyerTierSellerSuccess)\r\n addBuyerSellerSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: AddBuyerTierSellerSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ids: state.ids.indexOf(payload.pseudonym) === -1 ? [...state.ids, payload.pseudonym] : [...state.ids],\r\n entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, actorPseudonym: metadata}\r\n }\r\n });\r\n }\r\n\r\n @Action(RemoveBuyerTierSeller)\r\n removeBuyerTierSeller(\r\n {dispatch}: StateContext,\r\n {payload}: RemoveBuyerTierSeller\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, managedSellerPseudonym} = payload;\r\n\r\n const request = this.httpClient.delete(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/seller/${managedSellerPseudonym}`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveBuyerTierSellerRequestState,\r\n request,\r\n failAction: RemoveBuyerTierSellerFail,\r\n successAction: RemoveBuyerTierSellerSuccess,\r\n metadata: managedSellerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(RemoveBuyerTierSellerFail)\r\n removeBuyerSellerFail() {\r\n console.log('removeBuyerTierSellerFail - request error');\r\n }\r\n\r\n @Action(RemoveBuyerTierSellerSuccess)\r\n removeBuyerSellerSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: RemoveBuyerTierSellerSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedIds = state.ids.filter((id) => id !== metadata);\r\n\r\n const {[metadata]: currentEntity, ...updatedEntities} = state.entities;\r\n\r\n patchState({\r\n ids: updatedIds,\r\n entities: updatedEntities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { IBuyerTier } from '../../../shared/models/buyer-tier/buyer-tier.interface';\r\nimport { IBuyerTierFilter } from '../../../shared/models/buyer-tier/filters/buyer-tier-filter.interface';\r\nimport { IAdjustor } from '../../../shared/models/common/adjustor/adjustor.interface';\r\nimport { IClosure } from '../../../shared/models/common/opening-hours/closure.interface';\r\nimport { AdjustorGetterState } from '../adjustor/adjustor-getter.state';\r\nimport { BuyerTierFilterGetterState } from '../buyer-tier-filter/buyer-tier-filter-getter.state';\r\nimport { ClosureGetterState } from '../closure/closure-getter.state';\r\nimport { OpeningHoursState, OpeningHoursStateModel } from '../opening-hours/opening-hours.state';\r\nimport { RegionState, RegionStateModel } from '../region/region.state';\r\nimport { TimezoneState, TimezoneStateModel } from '../timezone/timezone.state';\r\nimport { BuyerTierState, BuyerTierStateModel } from './buyer-tier.state';\r\n\r\nexport class BuyerTierGetterState {\r\n @Selector([BuyerTierState])\r\n static getAllBuyerTiers(state: BuyerTierStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getBuyerTierByPseudonym(buyerTierPseudonym: string) {\r\n return createSelector(\r\n [\r\n BuyerTierState,\r\n OpeningHoursState,\r\n TimezoneState,\r\n ClosureGetterState.getAllClosures,\r\n BuyerTierFilterGetterState.getAllBuyerTierFilters,\r\n RegionState,\r\n AdjustorGetterState.getAllAdjustors\r\n ],\r\n (\r\n buyerTierState: BuyerTierStateModel,\r\n openingHoursState: OpeningHoursStateModel,\r\n timezoneState: TimezoneStateModel,\r\n allClosures: IClosure[],\r\n allFilters: IBuyerTierFilter[],\r\n regionState: RegionStateModel,\r\n allAdjustors: IAdjustor[]\r\n ) => {\r\n const buyerTier = buyerTierState.entities[buyerTierPseudonym];\r\n if (buyerTier) {\r\n const openingHours = openingHoursState.entities[buyerTier.openingHoursPseudonym];\r\n const closures = allClosures.filter((closure) => closure.actorPseudonym === buyerTierPseudonym);\r\n const closuresWithTimezone = closures.map((closure) => ({...closure, timezone: timezoneState.entities[closure.timezoneId]}));\r\n const filters = allFilters.filter((filter) => filter.buyerTierPseudonym === buyerTierPseudonym);\r\n const region = regionState.entities[buyerTierState.entities[buyerTierPseudonym]?.regionId];\r\n const adjustors = allAdjustors.filter((adjustor) => adjustor.actorPseudonym === buyerTierPseudonym);\r\n\r\n return {\r\n ...buyerTier,\r\n region,\r\n timezone: timezoneState.entities[openingHours?.timezoneId || region?.timeZoneId],\r\n openingHours: {\r\n ...openingHours,\r\n timezone: timezoneState.entities[openingHours?.timezoneId],\r\n closures: closuresWithTimezone,\r\n },\r\n filters,\r\n adjustors\r\n };\r\n }\r\n });\r\n }\r\n\r\n static getBuyerTiersByBuyerPseudonym(buyerPseudonym: string) {\r\n return createSelector([BuyerTierGetterState.getAllBuyerTiers], (buyerTiers: IBuyerTier[]) => {\r\n return buyerTiers.filter((buyerTier) => buyerTier.buyerPseudonym === buyerPseudonym);\r\n });\r\n }\r\n\r\n static getBuyerTierNameByPseudonym(buyerTierPseudonym: string) {\r\n return createSelector([BuyerTierState], (state: BuyerTierStateModel) => state.entities[buyerTierPseudonym]?.name);\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { IBuyerTier } from '../../../shared/models/buyer-tier/buyer-tier.interface';\r\n\r\nconst ActionTypes = {\r\n SET_BUYER_TIERS: '[BuyerTier] Set Buyer Tiers',\r\n RESUME_BUYER_TIER: '[BuyerTier] Resume Buyer Tiers',\r\n RESUME_BUYER_TIER_SUCCESS: '[BuyerTier] Resume Buyer Tiers Success',\r\n RESUME_BUYER_TIER_FAIL: '[BuyerTier] Resume Buyer Tiers Fail',\r\n PAUSE_BUYER_TIER: '[BuyerTier] Pause Buyer Tiers',\r\n PAUSE_BUYER_TIER_SUCCESS: '[BuyerTier] Pause Buyer Tiers Success',\r\n PAUSE_BUYER_TIER_FAIL: '[BuyerTier] Pause Buyer Tiers Fail',\r\n UPDATE_BUYER_TIER: '[BuyerTier] Update Buyer Tiers',\r\n UPDATE_BUYER_TIER_SUCCESS: '[BuyerTier] Update Buyer Tiers Success',\r\n UPDATE_BUYER_TIER_FAIL: '[BuyerTier] Update Buyer Tiers Fail',\r\n GET_BUYER_TIER: '[BuyerTier] Get Buyer Tiers',\r\n GET_BUYER_TIER_SUCCESS: '[BuyerTier] Get Buyer Tiers Success',\r\n GET_BUYER_TIER_FAIL: '[BuyerTier] Get Buyer Tiers Fail',\r\n REQUEST_BUYER_TIER_PRICE_CHANGE: '[BuyerTier] Request Buyer Tier Price Change',\r\n REQUEST_BUYER_TIER_PRICE_CHANGE_SUCCESS: '[BuyerTier] Request Buyer Tier Price Change Success',\r\n REQUEST_BUYER_TIER_PRICE_CHANGE_FAIL: '[BuyerTier] Request Buyer Tier Price Change Fail',\r\n};\r\n\r\nexport class SetBuyerTiers {\r\n static type = ActionTypes.SET_BUYER_TIERS;\r\n\r\n constructor(public payload: IBuyerTier[]) {\r\n }\r\n}\r\n\r\nexport class ResumeBuyerTier {\r\n static type = ActionTypes.RESUME_BUYER_TIER;\r\n\r\n constructor(public payload: {buyerPseudonym: string, buyerTierPseudonym: string, pseudonyms: string[]}) {\r\n\r\n }\r\n}\r\n\r\nexport class ResumeBuyerTierSuccess {\r\n static type = ActionTypes.RESUME_BUYER_TIER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: {buyerPseudonym: string, buyerTierPseudonym: string, pseudonyms: string[]},\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class ResumeBuyerTierFail {\r\n static type = ActionTypes.RESUME_BUYER_TIER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n\r\nexport class PauseBuyerTier {\r\n static type = ActionTypes.PAUSE_BUYER_TIER;\r\n\r\n constructor(public payload: {buyerPseudonym: string, buyerTierPseudonym: string, pausedUntil: string, pseudonyms: string[]}) {\r\n\r\n }\r\n}\r\n\r\nexport class PauseBuyerTierSuccess {\r\n static type = ActionTypes.PAUSE_BUYER_TIER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: {buyerPseudonym: string, buyerTierPseudonym: string, pausedUntil: string, pseudonyms: string[]},\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class PauseBuyerTierFail {\r\n static type = ActionTypes.PAUSE_BUYER_TIER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTier {\r\n static type = ActionTypes.UPDATE_BUYER_TIER;\r\n\r\n constructor(public payload: { fieldName: string, value: string | number | boolean, buyerPseudonym: string, buyerTierPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTierSuccess {\r\n static type = ActionTypes.UPDATE_BUYER_TIER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: {fieldName: string, value: string | number, buyerPseudonym: string, buyerTierPseudonym: string},\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class UpdateBuyerTierFail {\r\n static type = ActionTypes.UPDATE_BUYER_TIER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n\r\nexport class GetBuyerTier {\r\n static type = ActionTypes.GET_BUYER_TIER;\r\n\r\n constructor(public payload: { buyerPseudonym: string, buyerTierPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierSuccess {\r\n static type = ActionTypes.GET_BUYER_TIER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IBuyerTier,\r\n public buyerPseudonym: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class GetBuyerTierFail {\r\n static type = ActionTypes.GET_BUYER_TIER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n\r\n }\r\n}\r\n\r\nexport class RequestBuyerTierPriceChange {\r\n static type = ActionTypes.REQUEST_BUYER_TIER_PRICE_CHANGE;\r\n\r\n constructor(\r\n public payload: {\r\n buyerPseudonym: string,\r\n buyerTierPseudonym: string,\r\n requestPayload: { requestedPrice: number, comment: string }\r\n }\r\n ) {\r\n }\r\n}\r\n\r\nexport class RequestBuyerTierPriceChangeFail {\r\n static type = ActionTypes.REQUEST_BUYER_TIER_PRICE_CHANGE_FAIL;\r\n\r\n constructor(\r\n public payload: HttpErrorResponse\r\n ) {\r\n }\r\n}\r\n\r\nexport class RequestBuyerTierPriceChangeSuccess {\r\n static type = ActionTypes.REQUEST_BUYER_TIER_PRICE_CHANGE_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: string\r\n ) {\r\n }\r\n}\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IBuyerTier } from '../../../shared/models/buyer-tier/buyer-tier.interface';\r\nimport { BuyerTierCharacteristics } from '../../../shared/models/buyer-tier/buyer-tier-characteristics.enum';\r\nimport { UpdatedEntityFieldName } from '../../../shared/models/common/updated-entity-field-name.enum';\r\nimport { SetAdjustors } from '../adjustor/adjustor.actions';\r\nimport { SetBuyerTierFilters } from '../buyer-tier-filter/buyer-tier-filter.actions';\r\nimport { SetClosures } from '../closure/closure.actions';\r\nimport { SetOpeningHours } from '../opening-hours/opening-hours.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetBuyerTier,\r\n GetBuyerTierFail,\r\n GetBuyerTierSuccess,\r\n PauseBuyerTier,\r\n PauseBuyerTierFail,\r\n PauseBuyerTierSuccess,\r\n RequestBuyerTierPriceChange,\r\n RequestBuyerTierPriceChangeFail,\r\n RequestBuyerTierPriceChangeSuccess,\r\n ResumeBuyerTier,\r\n ResumeBuyerTierFail,\r\n ResumeBuyerTierSuccess,\r\n SetBuyerTiers,\r\n UpdateBuyerTier,\r\n UpdateBuyerTierFail,\r\n UpdateBuyerTierSuccess\r\n} from './buyer-tier.actions';\r\n\r\n@RequestState('resumeBuyerTier')\r\n@Injectable()\r\nexport class ResumeBuyerTierRequestState {\r\n}\r\n\r\n@RequestState('pauseBuyerTier')\r\n@Injectable()\r\nexport class PauseBuyerTierRequestState {\r\n}\r\n\r\n@RequestState('updateBuyerTier')\r\n@Injectable()\r\nexport class UpdateBuyerTierRequestState {\r\n}\r\n\r\n@RequestState('getBuyerTier')\r\n@Injectable()\r\nexport class GetBuyerTierRequestState {\r\n}\r\n\r\n@RequestState('requestBuyerTierPriceChange')\r\n@Injectable()\r\nexport class RequestBuyerTierPriceChangeRequestState {\r\n}\r\n\r\nexport interface BuyerTierStateModel {\r\n entities: { [key: string]: IBuyerTier };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyerTier',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerTierState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n\r\n static updateBuyerTierEntity(data, buyerTier) {\r\n switch (data.fieldName) {\r\n case UpdatedEntityFieldName.Enabled: {\r\n return {...buyerTier, enabled: data.value};\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_SellerManagement_Mode: {\r\n return {\r\n ...buyerTier, journeyPolicies: {\r\n ...buyerTier.journeyPolicies,\r\n sellerManagementPolicy: {...buyerTier.journeyPolicies.sellerManagementPolicy, mode: data.value}\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_SellerManagement_Inherit: {\r\n return {\r\n ...buyerTier, journeyPolicies: {\r\n ...buyerTier.journeyPolicies,\r\n sellerManagementPolicy: {\r\n ...buyerTier.journeyPolicies.sellerManagementPolicy,\r\n inheritManagementDecisions: data.value\r\n }\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_SellerManagement_RestrictionLevel: {\r\n return {\r\n ...buyerTier, journeyPolicies: {\r\n ...buyerTier.journeyPolicies,\r\n sellerManagementPolicy: {...buyerTier.journeyPolicies.sellerManagementPolicy, restrictionLevel: data.value}\r\n }\r\n };\r\n }\r\n }\r\n }\r\n\r\n @Action(SetBuyerTiers)\r\n setBuyerTiers({patchState, getState}: StateContext, {payload: buyerTiers}: SetBuyerTiers) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, buyerTiers, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(ResumeBuyerTier)\r\n resumeBuyerTier({dispatch}: StateContext, {payload}: ResumeBuyerTier) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, pseudonyms} = payload;\r\n const request = this.httpClient.post(`buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/resume`, {pseudonyms});\r\n\r\n return dispatch(createRequestAction({\r\n state: ResumeBuyerTierRequestState,\r\n request,\r\n failAction: ResumeBuyerTierFail,\r\n successAction: ResumeBuyerTierSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(ResumeBuyerTierFail)\r\n resumeBuyerTierFail() {\r\n console.log('resumeBuyerTierFail - request error');\r\n }\r\n\r\n @Action(ResumeBuyerTierSuccess)\r\n resumeBuyerTierSuccess(\r\n {patchState, getState, dispatch}: StateContext,\r\n {payload, metadata: {buyerPseudonym, buyerTierPseudonym, pseudonyms}}: ResumeBuyerTierSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n if (pseudonyms && pseudonyms.length) {\r\n const tiersToSet = pseudonyms.map((pseudonym) => (\r\n {...state.entities[pseudonym], pausedUntil: null}\r\n ));\r\n\r\n dispatch(new SetBuyerTiers(tiersToSet));\r\n }\r\n }\r\n\r\n @Action(PauseBuyerTier)\r\n pauseBuyerTier({dispatch}: StateContext, {payload}: PauseBuyerTier) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, pausedUntil, pseudonyms} = payload;\r\n const request = this.httpClient.post(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/pause/${pausedUntil}`, {pseudonyms: pseudonyms}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PauseBuyerTierRequestState,\r\n request,\r\n failAction: PauseBuyerTierFail,\r\n successAction: PauseBuyerTierSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PauseBuyerTierFail)\r\n pauseBuyerTierFail() {\r\n console.log('pauseBuyerTierFail - request error');\r\n }\r\n\r\n @Action(PauseBuyerTierSuccess)\r\n pauseBuyerTierSuccess(\r\n {patchState, getState, dispatch}: StateContext,\r\n {payload, metadata: {buyerPseudonym, buyerTierPseudonym, pausedUntil, pseudonyms}}: PauseBuyerTierSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n if (pseudonyms) {\r\n const tiersToSet = pseudonyms.map((pseudonym) => (\r\n {...state.entities[pseudonym], pausedUntil}\r\n ));\r\n dispatch(new SetBuyerTiers(tiersToSet));\r\n }\r\n\r\n }\r\n\r\n @Action(UpdateBuyerTier)\r\n updateBuyerTier({dispatch}: StateContext, {payload}: UpdateBuyerTier) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(`buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/update/${fieldName}`, {Value: value});\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateBuyerTierRequestState,\r\n request,\r\n failAction: UpdateBuyerTierFail,\r\n successAction: UpdateBuyerTierSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(UpdateBuyerTierFail)\r\n updateBuyerTierFail() {\r\n console.log('updateBuyerTierFail - request error');\r\n }\r\n\r\n @Action(UpdateBuyerTierSuccess)\r\n updateBuyerTierSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: UpdateBuyerTierSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n // TODO it works for updating disable/enable and sellerManagementPolicy, needs add conditions for updating other fields in the state\r\n\r\n const updatedBuyerTier = BuyerTierState.updateBuyerTierEntity(metadata, state.entities[metadata.buyerTierPseudonym]);\r\n\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities,\r\n [metadata.buyerTierPseudonym]: updatedBuyerTier\r\n }\r\n });\r\n }\r\n\r\n @Action(GetBuyerTier)\r\n getBuyerTier({dispatch}: StateContext, {payload}: GetBuyerTier) {\r\n\r\n const request = this.httpClient.get(`buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierRequestState,\r\n request,\r\n failAction: GetBuyerTierFail,\r\n successAction: GetBuyerTierSuccess,\r\n metadata: payload.buyerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerTierFail)\r\n getBuyerTierFail() {\r\n console.log('getBuyerTierFail - request error');\r\n }\r\n\r\n @Action(GetBuyerTierSuccess)\r\n getBuyerTierSuccess(\r\n {patchState, getState, dispatch}: StateContext,\r\n {payload, buyerPseudonym}: GetBuyerTierSuccess,\r\n ) {\r\n const {openingHours, filters, adjustors, ...buyerTier} = payload;\r\n const filtersToSet = filters ? filters.map((filter) => ({\r\n ...filter,\r\n buyerTierPseudonym: buyerTier.pseudonym\r\n })) : filters;\r\n const adjustorsToSet = adjustors ? adjustors.map((adjustor) => ({\r\n ...adjustor,\r\n actorPseudonym: buyerTier.pseudonym\r\n })) : adjustors;\r\n\r\n const {closures, ...openingHoursToSet} = openingHours;\r\n const closuresToSet = closures?.map((closure) => ({\r\n ...closure,\r\n actorPseudonym: buyerTier.pseudonym,\r\n }));\r\n\r\n dispatch([\r\n new SetOpeningHours([openingHoursToSet]),\r\n new SetClosures(closuresToSet),\r\n new SetBuyerTierFilters(filtersToSet),\r\n new SetAdjustors(adjustorsToSet),\r\n new SetBuyerTiers([{...buyerTier, openingHoursPseudonym: openingHours.pseudonym, buyerPseudonym}]),\r\n ]);\r\n }\r\n\r\n @Action(RequestBuyerTierPriceChange)\r\n requestBuyerTierPriceChange(\r\n {dispatch}: StateContext,\r\n {payload}: RequestBuyerTierPriceChange\r\n ) {\r\n\r\n const request = this.httpClient.put(\r\n `buyers/buyer/${payload.buyerPseudonym}/tier/${payload.buyerTierPseudonym}/commission`,\r\n payload.requestPayload);\r\n\r\n return dispatch(createRequestAction({\r\n state: RequestBuyerTierPriceChangeRequestState,\r\n request,\r\n successAction: RequestBuyerTierPriceChangeSuccess,\r\n failAction: RequestBuyerTierPriceChangeFail,\r\n metadata: payload.buyerTierPseudonym\r\n }));\r\n }\r\n\r\n @Action(RequestBuyerTierPriceChangeFail)\r\n requestBuyerTierPriceChangeFail() {\r\n console.log('requestBuyerTierPriceChangeFail - request error');\r\n }\r\n\r\n @Action(RequestBuyerTierPriceChangeSuccess)\r\n requestBuyerTierPriceChangeSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata: buyerTierPseudonym}: RequestBuyerTierPriceChangeSuccess\r\n ) {\r\n const state = getState();\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities,\r\n [buyerTierPseudonym]: {\r\n ...state.entities[buyerTierPseudonym],\r\n characteristics:\r\n (state.entities[buyerTierPseudonym].characteristics + BuyerTierCharacteristics.PriceChangeRequestPending)\r\n }\r\n }\r\n });\r\n }\r\n\r\n}\r\n\r\n","import { IBuyer } from '../../../shared/models/buyer/buyer.interface';\r\n\r\nconst ActionTypes = {\r\n SET_BUYERS: '[Buyer] Set Buyers',\r\n GET_BUYER: '[Buyer] Get Buyer',\r\n GET_BUYER_SUCCESS: '[Buyer] Get Buyer Success',\r\n GET_BUYER_FAIL: '[Buyer] Get Buyer Fail',\r\n};\r\n\r\nexport class SetBuyers {\r\n static type = ActionTypes.SET_BUYERS;\r\n\r\n constructor(public payload: IBuyer[]) {\r\n }\r\n}\r\n\r\nexport class GetBuyer {\r\n static type = ActionTypes.GET_BUYER;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetBuyerSuccess {\r\n static type = ActionTypes.GET_BUYER_SUCCESS;\r\n\r\n constructor(public payload: IBuyer) {\r\n }\r\n}\r\n\r\nexport class GetBuyerFail {\r\n static type = ActionTypes.GET_BUYER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IBuyer } from '../../../shared/models/buyer/buyer.interface';\r\nimport { IOpeningHours } from '../../../shared/models/common/opening-hours/opening-hours.interface';\r\nimport { SetAdjustors } from '../adjustor/adjustor.actions';\r\nimport { SetBuyerTiers } from '../buyer-tier/buyer-tier.actions';\r\nimport { SetBuyerTierFilters } from '../buyer-tier-filter/buyer-tier-filter.actions';\r\nimport { SetClosures } from '../closure/closure.actions';\r\nimport { SetOpeningHours } from '../opening-hours/opening-hours.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetBuyer, GetBuyerFail, GetBuyerSuccess, SetBuyers } from './buyer.actions';\r\n\r\n@RequestState('getBuyer')\r\n@Injectable()\r\nexport class GetBuyerRequestState {\r\n}\r\n\r\nexport interface BuyerStateModel {\r\n entities: { [key: string]: IBuyer };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'buyer',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class BuyerState {\r\n @Action(SetBuyers)\r\n setBuyers({patchState, getState}: StateContext, {payload: buyers}: SetBuyers) {\r\n if (!buyers) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, buyers, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetBuyer)\r\n getBuyer({dispatch}: StateContext, {payload}: GetBuyer) {\r\n\r\n const request = this.httpClient.get(`buyers/buyer/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerRequestState,\r\n request,\r\n failAction: GetBuyerFail,\r\n successAction: GetBuyerSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerFail)\r\n getBuyerFail() {\r\n console.log('getBuyerFail - request error');\r\n }\r\n\r\n @Action(GetBuyerSuccess)\r\n getBuyerSuccess(\r\n {dispatch}: StateContext,\r\n {payload}: GetBuyerSuccess\r\n ) {\r\n\r\n const openingHoursToSet: IOpeningHours[] = [];\r\n const {tiers, openingHours, ...buyer} = payload;\r\n openingHoursToSet.push(openingHours);\r\n\r\n const {buyerTiersToSet, filtersToSet, adjustorsToSet, closuresToSet} = tiers.reduce((acc, tier) => {\r\n const {openingHours: tierOpeningHours, filters, adjustors, ...tierToSet} = tier;\r\n\r\n const updatedFilters = filters ? filters.map((filter) => ({...filter, buyerTierPseudonym: tier.pseudonym})) : [];\r\n const updatedAdjustors = adjustors ? adjustors.map((adjustor) => ({...adjustor, buyerTierPseudonym: tier.pseudonym})) : [];\r\n\r\n const {closures, ...openingHoursBuyerTierToSet} = tierOpeningHours;\r\n\r\n openingHoursToSet.push(openingHoursBuyerTierToSet);\r\n\r\n const updatedClosures = closures?.map((closure) => ({\r\n ...closure,\r\n buyerTierPseudonym: tier.pseudonym,\r\n })) || [];\r\n\r\n return {\r\n buyerTiersToSet: [\r\n ...acc.buyerTiersToSet,\r\n {...tierToSet, buyerPseudonym: buyer.pseudonym, openingHoursPseudonym: tierOpeningHours.pseudonym},\r\n ],\r\n filtersToSet: [...acc.filtersToSet, ...updatedFilters],\r\n adjustorsToSet: [...acc.adjustorsToSet, ...updatedAdjustors],\r\n closuresToSet: [...acc.closuresToSet, ...updatedClosures]\r\n };\r\n }, {buyerTiersToSet: [], filtersToSet: [], adjustorsToSet: [], closuresToSet: []});\r\n\r\n dispatch([\r\n new SetBuyerTierFilters(filtersToSet),\r\n new SetAdjustors(adjustorsToSet),\r\n new SetOpeningHours(openingHoursToSet),\r\n new SetClosures(closuresToSet),\r\n new SetBuyers([{...buyer, openingHoursPseudonym: openingHours.pseudonym}]),\r\n new SetBuyerTiers(buyerTiersToSet),\r\n ]);\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n\r\n","import { IChart } from '../../../shared/models/chart/chart.interface';\r\nimport { ChartTypes } from '../../../shared/models/chart/chart-types.enum';\r\n\r\nconst ActionTypes = {\r\n GET_CHART: '[Chart] Get Chart',\r\n GET_CHART_SUCCESS: '[Chart] Get Chart Success',\r\n GET_CHART_FAIL: '[Chart] Get Chart Fail',\r\n};\r\n\r\nexport class GetChart {\r\n static type = ActionTypes.GET_CHART;\r\n\r\n constructor(public payload: {\r\n regionId: number;\r\n chartType: ChartTypes;\r\n startTime?: string;\r\n endTime?: string;\r\n focalPseudonym?: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetChartSuccess {\r\n static type = ActionTypes.GET_CHART_SUCCESS;\r\n\r\n constructor(public payload: {chart: IChart}, public metadata: {regionId: number, chartType: ChartTypes}) {\r\n }\r\n}\r\n\r\nexport class GetChartFail {\r\n static type = ActionTypes.GET_CHART_FAIL;\r\n\r\n constructor(public payload: Error, public metadata: {regionId: number, chartType: ChartTypes}) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IChart } from '../../../shared/models/chart/chart.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetChart, GetChartFail, GetChartSuccess } from './chart.actions';\r\n\r\n@RequestState('getChart')\r\n@Injectable()\r\nexport class GetChartRequestState {\r\n}\r\n\r\nexport interface ChartStateModel {\r\n entities: { [key: number]: IChart };\r\n ids: number[];\r\n}\r\n\r\n@State({\r\n name: 'chart',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class ChartState {\r\n\r\n @Action(GetChart)\r\n getChart({dispatch}: StateContext, {payload}: GetChart) {\r\n\r\n const request = this.httpClient.post(`charting/chart`, payload);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetChartRequestState,\r\n request,\r\n failAction: GetChartFail,\r\n successAction: GetChartSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(GetChartFail)\r\n getChartFail({patchState, getState}: StateContext, {payload, metadata}: GetChartFail) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(\r\n state,\r\n [{chartType: metadata.chartType, regionId: metadata.regionId, series: null}],\r\n 'chartType'\r\n );\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetChartSuccess)\r\n getChartSuccess({patchState, getState}: StateContext, {payload, metadata}: GetChartSuccess) {\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, [{...payload, regionId: metadata.regionId}], 'chartType');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { Selector } from '@ngxs/store';\r\n\r\nimport { ClosureState, ClosureStateModel } from './closure.state';\r\n\r\nexport class ClosureGetterState {\r\n @Selector([ClosureState])\r\n static getAllClosures(state: ClosureStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n}\r\n","import { IAddClosurePayload } from '../../../shared/models/common/opening-hours/add-closure-payload.interface';\r\nimport { IClosure } from '../../../shared/models/common/opening-hours/closure.interface';\r\nimport { SharedComponentActorType } from '../../../shared/models/common/shared-component-actor-type.enum';\r\n\r\nconst ActionTypes = {\r\n SET_CLOSURES: '[Closure] Set Closures',\r\n ADD_CLOSURE: '[Closure] Add Closure',\r\n ADD_CLOSURE_SUCCESS: '[Closure] Add Closure Success',\r\n ADD_CLOSURE_FAIL: '[Closure] Add Closure Fail',\r\n REMOVE_CLOSURE: '[Closure] Remove Closure',\r\n REMOVE_CLOSURE_SUCCESS: '[Closure] Remove Closure Success',\r\n REMOVE_CLOSURE_FAIL: '[Closure] Remove Closure Fail',\r\n};\r\n\r\nexport class SetClosures {\r\n static type = ActionTypes.SET_CLOSURES;\r\n\r\n constructor(public payload: IClosure[]) {\r\n }\r\n}\r\n\r\nexport class AddClosure {\r\n static type = ActionTypes.ADD_CLOSURE;\r\n\r\n constructor(public payload: {data: IAddClosurePayload, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class AddClosureSuccess {\r\n static type = ActionTypes.ADD_CLOSURE_SUCCESS;\r\n\r\n constructor(public payload: IClosure, public metadata: { childPseudonym: string, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class AddClosureFail {\r\n static type = ActionTypes.ADD_CLOSURE_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RemoveClosure {\r\n static type = ActionTypes.REMOVE_CLOSURE;\r\n\r\n constructor(public payload: {parentPseudonym: string, childPseudonym: string, closurePseudonym: string, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class RemoveClosureSuccess {\r\n static type = ActionTypes.REMOVE_CLOSURE_SUCCESS;\r\n\r\n constructor(public payload: string, public openingHoursClosurePseudonym: string) {\r\n }\r\n}\r\n\r\nexport class RemoveClosureFail {\r\n static type = ActionTypes.REMOVE_CLOSURE_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IClosure } from '../../../shared/models/common/opening-hours/closure.interface';\r\nimport { SharedComponentActorType } from '../../../shared/models/common/shared-component-actor-type.enum';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddClosure,\r\n AddClosureFail,\r\n AddClosureSuccess,\r\n RemoveClosure,\r\n RemoveClosureFail,\r\n RemoveClosureSuccess,\r\n SetClosures\r\n} from './closure.actions';\r\n\r\nexport interface ClosureStateModel {\r\n entities: { [key: string]: IClosure };\r\n ids: string[];\r\n}\r\n\r\n@RequestState('addClosure')\r\n@Injectable()\r\nexport class AddClosureRequestState {\r\n}\r\n\r\n@RequestState('removeClosure')\r\n@Injectable()\r\nexport class RemoveClosureRequestState {\r\n}\r\n\r\n@State({\r\n name: 'closure',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class ClosureState {\r\n @Action(SetClosures)\r\n setClosures({patchState, getState}: StateContext, {payload: closures}: SetClosures) {\r\n if (!closures) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, closures, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(AddClosure)\r\n addClosure({dispatch}: StateContext, {payload: {data, type}}: AddClosure) {\r\n const {parentPseudonym, childPseudonym, openingHourPseudonym, actorPseudonymsToInclude, ...restData} = data;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/closure/create`\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/closure/create`,\r\n },\r\n };\r\n\r\n const request = this.httpClient.post(entityData[type].path, {\r\n ...restData,\r\n ...type === SharedComponentActorType.BuyerTier ? {tierPseudonymsToInclude: actorPseudonymsToInclude}\r\n : {streamPseudonymsToInclude: actorPseudonymsToInclude}\r\n });\r\n\r\n return dispatch(createRequestAction({\r\n state: AddClosureRequestState,\r\n request,\r\n failAction: AddClosureFail,\r\n successAction: AddClosureSuccess,\r\n metadata: {childPseudonym, type},\r\n }));\r\n }\r\n\r\n @Action(AddClosureFail)\r\n addClosureFail() {\r\n console.log('addClosureFail - request error');\r\n }\r\n\r\n @Action(AddClosureSuccess)\r\n addClosureSuccess(\r\n {dispatch}: StateContext,\r\n {payload, metadata: {childPseudonym, type}}: AddClosureSuccess,\r\n ) {\r\n const closureToSet = {\r\n ...payload,\r\n actorPseudonym: childPseudonym\r\n };\r\n dispatch(new SetClosures([closureToSet]));\r\n }\r\n\r\n @Action(RemoveClosure)\r\n removeClosure({dispatch}: StateContext, {payload}: RemoveClosure) {\r\n const {parentPseudonym, childPseudonym, closurePseudonym, type} = payload;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/closure/${closurePseudonym}`\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/closure/${closurePseudonym}`,\r\n },\r\n };\r\n\r\n const request = this.httpClient.delete(entityData[type].path);\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveClosureRequestState,\r\n request,\r\n failAction: RemoveClosureFail,\r\n successAction: RemoveClosureSuccess,\r\n metadata: closurePseudonym,\r\n }));\r\n }\r\n\r\n @Action(RemoveClosureFail)\r\n removeClosureFail() {\r\n console.log('removeClosureFail - request error');\r\n }\r\n\r\n @Action(RemoveClosureSuccess)\r\n removeClosureSuccess(\r\n {dispatch, getState, patchState}: StateContext,\r\n {openingHoursClosurePseudonym}: RemoveClosureSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedIds = state.ids.filter((id) => id !== openingHoursClosurePseudonym);\r\n\r\n const {[openingHoursClosurePseudonym]: currentEntity, ...updatedEntities} = state.entities;\r\n\r\n patchState({\r\n ids: updatedIds,\r\n entities: updatedEntities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\nimport { CompanyPaymentsState, CompanyPaymentsStateModel } from './company-payments.state';\r\n\r\nexport class CompanyPaymentsGetterState {\r\n static getCompanyPaymentsByCompanyPseudonym(companyPseudonym: string) {\r\n return createSelector(\r\n [CompanyPaymentsState],\r\n (state: CompanyPaymentsStateModel) => state.entities && state.entities[companyPseudonym]) || null;\r\n }\r\n\r\n @Selector([CompanyPaymentsState])\r\n static getSelectedPaymentCompanyId(state: CompanyPaymentsStateModel) {\r\n return state.selectedCompanyId;\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\nimport { ICompanyPayments } from '../../../shared/models/company/payments/company-payments.interface';\r\nimport { UpdatedPaymentFieldName } from '../../../shared/models/company/payments/updated-payment-field-name.enum';\r\n\r\nconst ActionTypes = {\r\n GET_COMPANY_PAYMENTS: '[CompanyPayments] Get Company Payments',\r\n GET_COMPANY_PAYMENTS_SUCCESS: '[CompanyPayments] Get Company Payments Success',\r\n GET_COMPANY_PAYMENTS_FAIL: '[CompanyPayments] Get Company Payments Fail',\r\n PUT_COMPANY_PAYMENTS: '[CompanyPayments] Put Company Payments',\r\n PUT_COMPANY_PAYMENTS_SUCCESS: '[CompanyPayments] Put Company Payments Success',\r\n PUT_COMPANY_PAYMENTS_FAIL: '[CompanyPayments] Put Company Payments Fail',\r\n UPDATE_COMPANY_PAYMENTS: '[CompanyPayments] Update Company Payments',\r\n UPDATE_COMPANY_PAYMENTS_SUCCESS: '[CompanyPayments] Update Company Payments Success',\r\n UPDATE_COMPANY_PAYMENTS_FAIL: '[CompanyPayments] Update Company Payments Fail',\r\n SET_SELECTED_PAYMENTS_COMPANY_ID: '[CompanyPayments] Set Company Id',\r\n};\r\n\r\nexport class GetCompanyPayments {\r\n static type = ActionTypes.GET_COMPANY_PAYMENTS;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetCompanyPaymentsSuccess {\r\n static type = ActionTypes.GET_COMPANY_PAYMENTS_SUCCESS;\r\n\r\n constructor(\r\n public payload: ICompanyPayments,\r\n public metadata: string\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetCompanyPaymentsFail {\r\n static type = ActionTypes.GET_COMPANY_PAYMENTS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class PutCompanyPayments {\r\n static type = ActionTypes.PUT_COMPANY_PAYMENTS;\r\n\r\n constructor(public payload: {\r\n companyPseudonym: string,\r\n data: {regionId: number, currencyId: number},\r\n }) {\r\n }\r\n}\r\n\r\nexport class PutCompanyPaymentsSuccess {\r\n static type = ActionTypes.PUT_COMPANY_PAYMENTS_SUCCESS;\r\n\r\n constructor(\r\n public payload: ICompanyPayments,\r\n public metadata: string\r\n ) {\r\n }\r\n}\r\n\r\nexport class PutCompanyPaymentsFail {\r\n static type = ActionTypes.PUT_COMPANY_PAYMENTS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class UpdateCompanyPayments {\r\n static type = ActionTypes.UPDATE_COMPANY_PAYMENTS;\r\n\r\n constructor(public payload: { fieldName: UpdatedPaymentFieldName, value: string, companyPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class UpdateCompanyPaymentsSuccess {\r\n static type = ActionTypes.UPDATE_COMPANY_PAYMENTS_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: { fieldName: UpdatedPaymentFieldName, value: string, companyPseudonym: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateCompanyPaymentsFail {\r\n static type = ActionTypes.UPDATE_COMPANY_PAYMENTS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class SetSelectedPaymentsCompanyId {\r\n static type = ActionTypes.SET_SELECTED_PAYMENTS_COMPANY_ID;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ICompanyPayments } from '../../../shared/models/company/payments/company-payments.interface';\r\nimport { IPayments } from '../../../shared/models/company/payments/payments.interface';\r\nimport { UpdatedPaymentFieldName } from '../../../shared/models/company/payments/updated-payment-field-name.enum';\r\nimport { SetBankAccCharacteristic } from '../company/company.actions';\r\nimport {\r\n GetCompanyPayments,\r\n GetCompanyPaymentsFail,\r\n GetCompanyPaymentsSuccess,\r\n PutCompanyPayments,\r\n PutCompanyPaymentsFail,\r\n PutCompanyPaymentsSuccess,\r\n SetSelectedPaymentsCompanyId,\r\n UpdateCompanyPayments,\r\n UpdateCompanyPaymentsFail,\r\n UpdateCompanyPaymentsSuccess\r\n} from './company-payments.actions';\r\n\r\n@RequestState('getCompanyPayments')\r\n@Injectable()\r\nexport class GetCompanyPaymentsRequestState {\r\n}\r\n\r\n@RequestState('putCompanyPayments')\r\n@Injectable()\r\nexport class PutCompanyPaymentsRequestState {\r\n}\r\n\r\n@RequestState('updateCompanyPayments')\r\n@Injectable()\r\nexport class UpdateCompanyPaymentsRequestState {\r\n}\r\n\r\nexport interface CompanyPaymentsStateModel {\r\n entities: { [key: string]: ICompanyPayments };\r\n ids: string[];\r\n selectedCompanyId: string;\r\n}\r\n\r\n@State({\r\n name: 'companyPayments',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n selectedCompanyId: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class CompanyPaymentsState {\r\n\r\n static updatePayments(data: { fieldName: UpdatedPaymentFieldName, value: string }, payments: IPayments) {\r\n switch (data.fieldName) {\r\n case UpdatedPaymentFieldName.BankName: {\r\n return {...payments, bank: {...payments.bank, name: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.BankBranchTitle: {\r\n return {...payments, bank: {...payments.bank, branchTitle: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.BIC: {\r\n return {...payments, bank: {...payments.bank, bic: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.BankInstitutionId: {\r\n return {...payments, bank: {...payments.bank, institutionId: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.BankRoutingNumber: {\r\n return {...payments, bank: {...payments.bank, routingNumber: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.BankPhoneNumber: {\r\n return {...payments, bank: {...payments.bank, phoneNumber: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.BankAddress: {\r\n return {...payments, bank: {...payments.bank, address: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.IBAN: {\r\n return {...payments, accountHolder: {...payments.accountHolder, iban: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.AccountNumber: {\r\n return {...payments, accountHolder: {...payments.accountHolder, accountNumber: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.AccountHolderNameOnAccount: {\r\n return {...payments, accountHolder: {...payments.accountHolder, nameOnAccount: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.AccountHolderPhoneNumber: {\r\n return {...payments, accountHolder: {...payments.accountHolder, phoneNumber: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.AccountHolderAddress: {\r\n return {...payments, accountHolder: {...payments.accountHolder, address: data.value}};\r\n }\r\n case UpdatedPaymentFieldName.Notes: {\r\n return {...payments, notes: data.value};\r\n }\r\n }\r\n };\r\n\r\n @Action(GetCompanyPayments)\r\n getCompanyPayments(\r\n {dispatch}: StateContext, {payload: companyPseudonym}: GetCompanyPayments\r\n ) {\r\n const request = this.httpClient.get(`companies/company/${companyPseudonym}/payments`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetCompanyPaymentsRequestState,\r\n request,\r\n failAction: GetCompanyPaymentsFail,\r\n successAction: GetCompanyPaymentsSuccess,\r\n metadata: companyPseudonym\r\n }));\r\n }\r\n\r\n @Action(GetCompanyPaymentsSuccess)\r\n getCompanyPaymentsSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata: companyPseudonym}: GetCompanyPaymentsSuccess\r\n ) {\r\n const state = getState();\r\n patchState({\r\n ids: state.ids.indexOf(companyPseudonym) === -1 ? [...state.ids, companyPseudonym] : state.ids,\r\n entities: {...state.entities, [companyPseudonym]: payload},\r\n });\r\n }\r\n\r\n @Action(GetCompanyPaymentsFail)\r\n getCompanyPaymentsFail() {\r\n console.log('getCompanyPaymentsFail - request error');\r\n }\r\n\r\n @Action(PutCompanyPayments)\r\n putCompanyPayments(\r\n {dispatch}: StateContext,\r\n {payload: {companyPseudonym, data}}: PutCompanyPayments\r\n ) {\r\n const request = this.httpClient.put(`companies/company/${companyPseudonym}/payments`, data);\r\n\r\n return dispatch(createRequestAction({\r\n state: PutCompanyPaymentsRequestState,\r\n request,\r\n failAction: PutCompanyPaymentsFail,\r\n successAction: PutCompanyPaymentsSuccess,\r\n metadata: companyPseudonym\r\n }));\r\n }\r\n\r\n @Action(PutCompanyPaymentsSuccess)\r\n putCompanyPaymentsSuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload, metadata: companyPseudonym}: PutCompanyPaymentsSuccess\r\n ) {\r\n dispatch([\r\n new GetCompanyPaymentsSuccess(payload, companyPseudonym),\r\n new SetBankAccCharacteristic(companyPseudonym),\r\n ]);\r\n }\r\n\r\n @Action(PutCompanyPaymentsFail)\r\n putCompanyPaymentsFail() {\r\n console.log('putCompanyPaymentsFail - request error');\r\n }\r\n\r\n @Action(UpdateCompanyPayments)\r\n updateCompanyPayments(\r\n {dispatch}: StateContext,\r\n {payload: {companyPseudonym, value, fieldName}}: UpdateCompanyPayments\r\n ) {\r\n const request = this.httpClient.patch(`companies/company/${companyPseudonym}/payments/update/${fieldName}`, {Value: value});\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateCompanyPaymentsRequestState,\r\n request,\r\n failAction: UpdateCompanyPaymentsFail,\r\n successAction: UpdateCompanyPaymentsSuccess,\r\n metadata: {companyPseudonym, value, fieldName}\r\n }));\r\n }\r\n\r\n @Action(UpdateCompanyPaymentsSuccess)\r\n updateCompanyPaymentsSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: UpdateCompanyPaymentsSuccess\r\n ) {\r\n const state = getState();\r\n const paymentToUpdate = state.entities[metadata.companyPseudonym];\r\n const updatedPayment = CompanyPaymentsState.updatePayments(metadata, paymentToUpdate.payments);\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.companyPseudonym]: {...paymentToUpdate, payments: updatedPayment}}\r\n });\r\n }\r\n\r\n @Action(UpdateCompanyPaymentsFail)\r\n updateCompanyPaymentsFail() {\r\n console.log('updateCompanyPaymentsFail - request error');\r\n }\r\n\r\n @Action(SetSelectedPaymentsCompanyId)\r\n setSelectedPaymentsCompanyId(\r\n {patchState}: StateContext,\r\n {payload}: SetSelectedPaymentsCompanyId\r\n ) {\r\n patchState({\r\n selectedCompanyId: payload,\r\n });\r\n }\r\n\r\n\r\n constructor(private httpClient: HttpClient) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { ICompany } from '../../../shared/models/company/company.interface';\r\nimport { ILicense } from '../../../shared/models/license/license.interface';\r\nimport { ITeamMember } from '../../../shared/models/team-member/team-member.interface';\r\nimport { LicenseGetterState } from '../license/license-getter.state';\r\nimport { RegionState, RegionStateModel } from '../region/region.state';\r\nimport { TeamMemberGetterState } from '../team-member/team-member-getter.state';\r\nimport { CompanyState, CompanyStateModel } from './company.state';\r\n\r\nexport class CompanyGetterState {\r\n @Selector([CompanyState, RegionState, LicenseGetterState.getAllLicenses, TeamMemberGetterState.getAllTeamMembers])\r\n static getSelectedCompany(\r\n companyState: CompanyStateModel,\r\n regionState: RegionStateModel,\r\n licenses: ILicense[],\r\n teamMembers: ITeamMember[],\r\n ): ICompany {\r\n const company: ICompany = companyState.entities[companyState.selectedEntityId];\r\n const companyLicenses = licenses.filter((license) => license.companyPseudonym === company?.pseudonym);\r\n const companyTeamMembers = teamMembers.filter((teamMember) => teamMember.companyPseudonym === company?.pseudonym);\r\n return company ? {\r\n region: regionState.entities[company.regionId],\r\n licenses: companyLicenses,\r\n teamMembers: companyTeamMembers,\r\n ...company,\r\n } : null;\r\n }\r\n\r\n @Selector([CompanyState])\r\n static getSelectedCompanyId(state: CompanyStateModel) {\r\n return state.selectedEntityId;\r\n }\r\n\r\n static getCompanyByPseudonym(pseudonym: string) {\r\n return createSelector(\r\n [CompanyState],\r\n (state: CompanyStateModel) => {\r\n return state.entities && state.entities[pseudonym] || null;\r\n }\r\n );\r\n }\r\n}\r\n","import { ICompany } from '../../../shared/models/company/company.interface';\r\n\r\nconst ActionTypes = {\r\n GET_COMPANY: '[Company] Get Company',\r\n GET_COMPANY_SUCCESS: '[Company] Get Company Success',\r\n GET_COMPANY_FAIL: '[Company] Get Company Fail',\r\n UPDATE_COMPANY: '[Company] Update Company',\r\n UPDATE_COMPANY_SUCCESS: '[Company] Update Company Success',\r\n UPDATE_COMPANY_FAIL: '[Company] Update Company Fail',\r\n SET_COMPANY: '[Company] Set Company',\r\n SET_SELECTED_COMPANY_ID: '[Company] Set Selected Company Id',\r\n ADD_AKA_COMPANY_NAME: '[Company] Add Also Known As Company Name',\r\n ADD_AKA_COMPANY_NAME_SUCCESS: '[Company] Add Also Known As Company Name Success',\r\n ADD_AKA_COMPANY_NAME_FAIL: '[Company] Add Also Known As Company Name Fail',\r\n REMOVE_AKA_COMPANY_NAME: '[Company] Remove Also Known As Company Name',\r\n REMOVE_AKA_COMPANY_NAME_SUCCESS: '[Company] Remove Also Known As Company Name Success',\r\n REMOVE_AKA_COMPANY_NAME_FAIL: '[Company] Remove Also Known As Company Name Fail',\r\n SET_BANK_ACC_CHARACTERISTIC: '[Company] Set Bank Acc Characteristic',\r\n};\r\n\r\nexport class GetCompany {\r\n static type = ActionTypes.GET_COMPANY;\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetCompanySuccess {\r\n static type = ActionTypes.GET_COMPANY_SUCCESS;\r\n\r\n constructor(public payload: ICompany) {\r\n }\r\n}\r\n\r\nexport class GetCompanyFail {\r\n static type = ActionTypes.GET_COMPANY_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateCompany {\r\n static type = ActionTypes.UPDATE_COMPANY;\r\n\r\n constructor(public payload: { fieldName: string, value: string | number, pseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class UpdateCompanyFail {\r\n static type = ActionTypes.UPDATE_COMPANY_FAIL;\r\n\r\n constructor(public payload: { massage: string }) {\r\n }\r\n}\r\n\r\nexport class UpdateCompanySuccess {\r\n static type = ActionTypes.UPDATE_COMPANY_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public updatedField: { fieldName: string, value: string | number, pseudonym: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class SetCompany {\r\n static type = ActionTypes.SET_COMPANY;\r\n constructor(public payload: ICompany) {\r\n }\r\n}\r\n\r\nexport class SetSelectedCompanyId {\r\n static type = ActionTypes.SET_SELECTED_COMPANY_ID;\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class AddAKACompanyName {\r\n static type = ActionTypes.ADD_AKA_COMPANY_NAME;\r\n constructor(public payload: {companyPseudonym: string, name: string}) {\r\n }\r\n}\r\n\r\nexport class AddAKACompanyNameSuccess {\r\n static type = ActionTypes.ADD_AKA_COMPANY_NAME_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public addedAKAName: { companyPseudonym: string, name: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class AddAKACompanyNameFail {\r\n static type = ActionTypes.ADD_AKA_COMPANY_NAME_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RemoveAKACompanyName {\r\n static type = ActionTypes.REMOVE_AKA_COMPANY_NAME;\r\n constructor(public payload: {companyPseudonym: string, name: string}) {\r\n }\r\n}\r\n\r\nexport class RemoveAKACompanyNameSuccess {\r\n static type = ActionTypes.REMOVE_AKA_COMPANY_NAME_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public removedAKAName: { companyPseudonym: string, name: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class RemoveAKACompanyNameFail {\r\n static type = ActionTypes.REMOVE_AKA_COMPANY_NAME_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class SetBankAccCharacteristic {\r\n static type = ActionTypes.SET_BANK_ACC_CHARACTERISTIC;\r\n constructor(public payload: string) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ICompany } from '../../../shared/models/company/company.interface';\r\nimport { UpdatedCompanyFieldName } from '../../../shared/models/company/updated-company-field-name.enum';\r\nimport { SetLicenses } from '../license/license.actions';\r\nimport { SetTeamMembers } from '../team-member/team-member.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddAKACompanyName,\r\n AddAKACompanyNameFail,\r\n AddAKACompanyNameSuccess,\r\n GetCompany,\r\n GetCompanyFail,\r\n GetCompanySuccess,\r\n RemoveAKACompanyName,\r\n RemoveAKACompanyNameFail,\r\n RemoveAKACompanyNameSuccess,\r\n SetBankAccCharacteristic,\r\n SetCompany,\r\n SetSelectedCompanyId,\r\n UpdateCompany,\r\n UpdateCompanyFail,\r\n UpdateCompanySuccess\r\n} from './company.actions';\r\nimport { CompanyCharacteristic } from '../../../shared/models/company/company-characteristic.enum';\r\n\r\nexport interface CompanyStateModel {\r\n entities: { [key: number]: ICompany };\r\n ids: string[];\r\n selectedEntityId: string;\r\n}\r\n\r\n@RequestState('getCompany')\r\n@Injectable()\r\nexport class GetCompanyRequestState {\r\n}\r\n\r\n@RequestState('updateCompany')\r\n@Injectable()\r\nexport class UpdateCompanyRequestState {\r\n}\r\n\r\n@RequestState('addAKACompanyName')\r\n@Injectable()\r\nexport class AddAKACompanyNameRequestState {\r\n}\r\n\r\n@RequestState('removeAKACompanyName')\r\n@Injectable()\r\nexport class RemoveAKACompanyNameRequestState {\r\n}\r\n\r\n@State({\r\n name: 'company',\r\n defaults: {\r\n entities: null,\r\n ids: [],\r\n selectedEntityId: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class CompanyState {\r\n\r\n @Action(GetCompany)\r\n getCompany(ctx: StateContext, {payload}: GetCompany) {\r\n const request = this.httpClient.get(`companies/company/${payload}`);\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: GetCompanyRequestState,\r\n request,\r\n failAction: GetCompanyFail,\r\n successAction: GetCompanySuccess,\r\n }));\r\n }\r\n\r\n @Action(GetCompanyFail)\r\n getCompanyFail() {\r\n console.log('getCompanyFail - request error');\r\n }\r\n\r\n @Action(GetCompanySuccess)\r\n getCompanySuccess({getState, dispatch}: StateContext, {payload}: GetCompanySuccess) {\r\n if (!payload) {\r\n return;\r\n }\r\n const {licenses, teamMembers, ...company} = payload;\r\n const licensesToSet = licenses?.map((license) => ({...license, companyPseudonym: company.pseudonym}));\r\n const teamMembersToSet = teamMembers?.map((teamMember) => ({...teamMember, companyPseudonym: company.pseudonym}));\r\n dispatch([\r\n new SetLicenses(licensesToSet),\r\n new SetTeamMembers(teamMembersToSet),\r\n new SetCompany(company)\r\n ]);\r\n }\r\n\r\n @Action(SetCompany)\r\n setCompany({patchState, getState}: StateContext, {payload}: SetCompany) {\r\n if (!payload) {\r\n return;\r\n }\r\n const state = getState();\r\n const {entities, ids} = insertIdsAndEntities(state, [payload], 'pseudonym');\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(SetSelectedCompanyId)\r\n setSelectedCompanyId({patchState}: StateContext, {payload}: SetSelectedCompanyId) {\r\n patchState({\r\n selectedEntityId: payload,\r\n });\r\n }\r\n\r\n @Action(UpdateCompany)\r\n updateCompany(ctx: StateContext, {payload}: UpdateCompany) {\r\n\r\n const request = this.httpClient.patch(`companies/company/${payload.pseudonym}/update/${payload.fieldName}`, {Value: payload.value});\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: UpdateCompanyRequestState,\r\n request,\r\n failAction: UpdateCompanyFail,\r\n successAction: UpdateCompanySuccess,\r\n metadata: {...payload},\r\n }));\r\n }\r\n\r\n @Action(UpdateCompanyFail)\r\n updateCompanyFail() {\r\n console.log('updateCompanyFail - request error');\r\n }\r\n\r\n @Action(UpdateCompanySuccess)\r\n updateCompanySuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, updatedField: {fieldName, value}}: UpdateCompanySuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n let fieldNameToUpdate;\r\n\r\n if (fieldName.indexOf('Address') !== -1) {\r\n fieldNameToUpdate = 'address';\r\n\r\n let addressFieldName: string;\r\n\r\n if (fieldName === UpdatedCompanyFieldName.Address_Line1\r\n || fieldName === UpdatedCompanyFieldName.Address_Line2\r\n || fieldName === UpdatedCompanyFieldName.Address_Line3) {\r\n addressFieldName = fieldName.replace(fieldName[0], fieldName[0].toLowerCase()).replace('_', '');\r\n } else {\r\n const addressFieldSubstring = fieldName.substring(fieldName.indexOf('_') + 1);\r\n addressFieldName = addressFieldSubstring.replace(addressFieldSubstring[0], addressFieldSubstring[0].toLowerCase());\r\n }\r\n value = {\r\n ...state.entities[state.selectedEntityId].address,\r\n [addressFieldName]: value,\r\n };\r\n } else {\r\n fieldNameToUpdate = fieldName.replace(fieldName[0], fieldName[0].toLowerCase());\r\n }\r\n\r\n const updatedEntity: ICompany = {...state.entities[state.selectedEntityId], [fieldNameToUpdate]: value};\r\n\r\n patchState({\r\n entities: {...state.entities, [updatedEntity.pseudonym]: updatedEntity}\r\n });\r\n }\r\n\r\n @Action(AddAKACompanyName)\r\n addAKACompanyName(ctx: StateContext, {payload}: AddAKACompanyName) {\r\n\r\n const request = this.httpClient.patch(`companies/company/${payload.companyPseudonym}/alsoknownas/add/${payload.name}`, null);\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: AddAKACompanyNameRequestState,\r\n request,\r\n failAction: AddAKACompanyNameFail,\r\n successAction: AddAKACompanyNameSuccess,\r\n metadata: {...payload},\r\n }));\r\n }\r\n\r\n @Action(AddAKACompanyNameFail)\r\n addAKACompanyNameFail() {\r\n console.log('addAKACompanyNameFail - request error');\r\n }\r\n\r\n @Action(AddAKACompanyNameSuccess)\r\n addAKACompanyNameSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, addedAKAName: {name, companyPseudonym}}: AddAKACompanyNameSuccess,\r\n ) {\r\n const state = getState();\r\n const updatedEntity = {\r\n ...state.entities[companyPseudonym],\r\n alsoKnownAsNames: state.entities[companyPseudonym].alsoKnownAsNames ?\r\n [...state.entities[companyPseudonym].alsoKnownAsNames, name] : [name]\r\n };\r\n\r\n patchState({\r\n entities: {...state.entities, [companyPseudonym]: updatedEntity}\r\n });\r\n }\r\n\r\n @Action(RemoveAKACompanyName)\r\n removeAKACompanyName(ctx: StateContext, {payload}: RemoveAKACompanyName) {\r\n\r\n const request = this.httpClient.delete(`companies/company/${payload.companyPseudonym}/alsoknownas/remove/${payload.name}`);\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: RemoveAKACompanyNameRequestState,\r\n request,\r\n failAction: RemoveAKACompanyNameFail,\r\n successAction: RemoveAKACompanyNameSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(RemoveAKACompanyNameFail)\r\n removeAKACompanyNameFail() {\r\n console.log('removeAKACompanyNameFail - request error');\r\n }\r\n\r\n @Action(RemoveAKACompanyNameSuccess)\r\n removeAKACompanyNameSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, removedAKAName: {name, companyPseudonym}}: RemoveAKACompanyNameSuccess,\r\n ) {\r\n const state = getState();\r\n const updatedEntity = {\r\n ...state.entities[companyPseudonym],\r\n alsoKnownAsNames: state.entities[companyPseudonym].alsoKnownAsNames.filter((curName) => curName !== name)\r\n };\r\n\r\n patchState({\r\n entities: {...state.entities, [companyPseudonym]: updatedEntity}\r\n });\r\n }\r\n\r\n @Action(SetBankAccCharacteristic)\r\n setBankAccCharacteristic(\r\n {patchState, getState}: StateContext,\r\n {payload}: SetBankAccCharacteristic\r\n ) {\r\n const state = getState();\r\n const updatedCompany = {\r\n ...state.entities[payload],\r\n characteristics: state.entities[payload].characteristics + CompanyCharacteristic.HasBankAccount,\r\n };\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [payload]: updatedCompany}\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","const ActionTypes = {\r\n SEND_MESSAGE: '[Message] Send Message',\r\n SEND_MESSAGE_SUCCESS: '[Message] Send Message Success',\r\n SEND_MESSAGE_FAIL: '[Message] Send Message Fail',\r\n};\r\n\r\nexport class SendMessage {\r\n static type = ActionTypes.SEND_MESSAGE;\r\n\r\n constructor(public payload: { message: string }) {\r\n\r\n }\r\n}\r\n\r\nexport class SendMessageSuccess {\r\n static type = ActionTypes.SEND_MESSAGE_SUCCESS;\r\n\r\n constructor(public payload: { status: number }) {\r\n }\r\n}\r\n\r\nexport class SendMessageFail {\r\n static type = ActionTypes.SEND_MESSAGE_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import {HttpClient} from '@angular/common/http';\r\nimport {Injectable} from '@angular/core';\r\nimport {Action, State, Store} from '@ngxs/store';\r\nimport {createRequestAction, RequestState} from 'ngxs-requests-plugin';\r\n\r\nimport {SendMessage, SendMessageFail, SendMessageSuccess} from './contact.actions';\r\n\r\n\r\n@RequestState('sendMessage')\r\n@Injectable()\r\nexport class SendMessageRequestState {\r\n}\r\n\r\n@State({\r\n name: 'contact',\r\n defaults: {}\r\n})\r\n@Injectable()\r\nexport class ContactState {\r\n\r\n @Action(SendMessage)\r\n sendMessage({}, {payload}) {\r\n const request = this.httpClient.post(\r\n 'identity/inquiry', {Value: payload.message}\r\n );\r\n\r\n return this.store.dispatch(createRequestAction({\r\n state: SendMessageRequestState,\r\n request,\r\n failAction: SendMessageFail,\r\n successAction: SendMessageSuccess,\r\n }));\r\n }\r\n\r\n @Action(SendMessageFail)\r\n sendMessageFail() {\r\n console.log('sendMessageFail - request error');\r\n }\r\n\r\n @Action(SendMessageSuccess)\r\n sendMessageSuccess() {\r\n console.log('sendMessageSuccess - Success');\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n private store: Store,\r\n ) {\r\n\r\n }\r\n}\r\n","import { ICurrency } from '../../../shared/models/currency/currency.interface';\r\n\r\nconst ActionTypes = {\r\n GET_CURRENCIES: '[Currency] Get Currencies',\r\n GET_CURRENCIES_SUCCESS: '[Currency] Get Currencies Success',\r\n GET_CURRENCIES_FAIL: '[Currency] Get Currencies Fail',\r\n};\r\n\r\nexport class GetCurrencies {\r\n static type = ActionTypes.GET_CURRENCIES;\r\n}\r\n\r\nexport class GetCurrenciesSuccess {\r\n static type = ActionTypes.GET_CURRENCIES_SUCCESS;\r\n\r\n constructor(public payload: {currencies: ICurrency[]}) {\r\n }\r\n}\r\n\r\nexport class GetCurrenciesFail {\r\n static type = ActionTypes.GET_CURRENCIES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { ICurrency } from '../../../shared/models/currency/currency.interface';\r\n\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetCurrencies, GetCurrenciesFail, GetCurrenciesSuccess } from './currency.actions';\r\n\r\n\r\n@RequestState('getCurrenciesRequest')\r\n@Injectable()\r\nexport class GetCurrenciesRequestState {\r\n}\r\n\r\nexport interface CurrencyStateModel {\r\n entities: { [key: number]: ICurrency };\r\n ids: number[];\r\n}\r\n\r\n@State({\r\n name: 'currency',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class CurrencyState {\r\n\r\n @Action(GetCurrencies)\r\n getCurrencies(ctx: StateContext) {\r\n const request = this.httpClient.get('region/currencies');\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: GetCurrenciesRequestState,\r\n request,\r\n failAction: GetCurrenciesFail,\r\n successAction: GetCurrenciesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetCurrenciesFail)\r\n getCurrenciesFail() {\r\n console.log('GetCurrenciesFail - request error');\r\n }\r\n\r\n @Action(GetCurrenciesSuccess)\r\n getCurrenciesSuccess({patchState, getState}: StateContext, {payload: {currencies}}: GetCurrenciesSuccess) {\r\n if (!currencies) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, currencies, 'id');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { IDocumentSampling } from '../../../shared/models/reports/document-sampling.interface';\r\n\r\nconst ActionTypes = {\r\n GET_DOCUMENT_SAMPLING: '[DocumentSampling] Get Document Sampling',\r\n GET_DOCUMENT_SAMPLING_SUCCESS: '[DocumentSampling] Get Document Sampling Success',\r\n GET_DOCUMENT_SAMPLING_FAIL: '[DocumentSampling] Get Document Sampling Fail',\r\n};\r\n\r\nexport class GetDocumentSampling {\r\n static type = ActionTypes.GET_DOCUMENT_SAMPLING;\r\n\r\n constructor(public payload: {reportPseudonym: string, reportDocumentPseudonym: string, samplingPseudonym: string, page: number}) {\r\n }\r\n}\r\n\r\nexport class GetDocumentSamplingSuccess {\r\n static type = ActionTypes.GET_DOCUMENT_SAMPLING_SUCCESS;\r\n\r\n constructor(public payload: {sampling: IDocumentSampling}, public page: number) {\r\n }\r\n}\r\n\r\nexport class GetDocumentSamplingFail {\r\n static type = ActionTypes.GET_DOCUMENT_SAMPLING_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { PaginationHeaders } from '../../../shared/models/pagination-headers.enum';\r\nimport { IDocumentSampling } from '../../../shared/models/reports/document-sampling.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetDocumentSampling, GetDocumentSamplingFail, GetDocumentSamplingSuccess } from './document-sampling.actions';\r\n\r\n@RequestState('getDocumentSampling')\r\n@Injectable()\r\nexport class GetDocumentSamplingRequestState {\r\n}\r\n\r\n@RequestState('getDocumentSamplingNext')\r\n@Injectable()\r\nexport class GetDocumentSamplingNextRequestState {\r\n}\r\n\r\nexport interface DocumentSamplingStateModel {\r\n entities: { [key: string]: IDocumentSampling };\r\n ids: string[];\r\n pageSize: number;\r\n}\r\n\r\n@State({\r\n name: 'DocumentSampling',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n pageSize: 5,\r\n }\r\n})\r\n@Injectable()\r\nexport class DocumentSamplingState {\r\n\r\n @Action(GetDocumentSampling)\r\n getDocumentSampling(\r\n {dispatch, getState}: StateContext,\r\n {payload: {reportPseudonym, reportDocumentPseudonym, samplingPseudonym, page}}: GetDocumentSampling\r\n ) {\r\n\r\n const {pageSize} = getState();\r\n\r\n const request = this.httpClient.get(\r\n `reporting/report/${reportPseudonym}/document/${reportDocumentPseudonym}/sampling/${samplingPseudonym}`,\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageNumber]: page.toString(),\r\n [PaginationHeaders.PageSize]: pageSize.toString(),\r\n })\r\n },\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: page === 1 ? GetDocumentSamplingRequestState : GetDocumentSamplingNextRequestState,\r\n request,\r\n failAction: GetDocumentSamplingFail,\r\n successAction: GetDocumentSamplingSuccess,\r\n metadata: page,\r\n }));\r\n }\r\n\r\n @Action(GetDocumentSamplingFail)\r\n getDocumentSamplingFail() {\r\n console.log('getDocumentSampling - request error');\r\n }\r\n\r\n @Action(GetDocumentSamplingSuccess)\r\n getDocumentSamplingSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload: {sampling}, page}: GetDocumentSamplingSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const sample = state.entities[sampling.pseudonym];\r\n\r\n if (sample && page !== 1 && sampling.body.rows) {\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities, [sampling.pseudonym]: {\r\n ...sample,\r\n body: {\r\n rows: [...sample.body.rows, ...sampling.body.rows],\r\n },\r\n page,\r\n }\r\n }\r\n });\r\n\r\n } else if (page === 1) {\r\n const sampleToSet = {...sampling, page};\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, [sampleToSet], 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n}\r\n\r\n","import { Selector } from '@ngxs/store';\r\n\r\nimport { LicenseState, LicenseStateModel } from './license.state';\r\n\r\nexport class LicenseGetterState {\r\n @Selector([LicenseState])\r\n static getAllLicenses(state: LicenseStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n}\r\n","import { ILicense } from '../../../shared/models/license/license.interface';\r\n\r\nconst ActionTypes = {\r\n SET_LICENSES: '[License] Set Licenses',\r\n ADD_LICENSE: '[License] Add License',\r\n ADD_LICENSE_SUCCESS: '[License] Add License Success',\r\n ADD_LICENSE_FAIL: '[License] Add License Fail',\r\n UPDATE_LICENSE: '[License] Update License',\r\n UPDATE_LICENSE_SUCCESS: '[License] Update License Success',\r\n UPDATE_LICENSE_FAIL: '[License] Update License Fail',\r\n REMOVE_LICENSE: '[License] Remove License',\r\n REMOVE_LICENSE_SUCCESS: '[License] Remove License Success',\r\n REMOVE_LICENSE_FAIL: '[License] Remove License Fail',\r\n};\r\n\r\nexport class SetLicenses {\r\n static type = ActionTypes.SET_LICENSES;\r\n\r\n constructor(public payload: ILicense[]) {\r\n }\r\n}\r\n\r\nexport class AddLicense {\r\n static type = ActionTypes.ADD_LICENSE;\r\n\r\n constructor(public payload: {license: ILicense, companyPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class AddLicenseSuccess {\r\n static type = ActionTypes.ADD_LICENSE_SUCCESS;\r\n\r\n constructor(public payload: ILicense, public companyPseudonym: string) {\r\n }\r\n}\r\n\r\nexport class AddLicenseFail {\r\n static type = ActionTypes.ADD_LICENSE_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateLicense {\r\n static type = ActionTypes.UPDATE_LICENSE;\r\n\r\n constructor(public payload: {license: ILicense, companyPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class UpdateLicenseSuccess {\r\n static type = ActionTypes.UPDATE_LICENSE_SUCCESS;\r\n\r\n constructor(public payload: string, public license: {license: ILicense, companyPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class UpdateLicenseFail {\r\n static type = ActionTypes.UPDATE_LICENSE_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RemoveLicense {\r\n static type = ActionTypes.REMOVE_LICENSE;\r\n\r\n constructor(public payload: {licensePseudonym: string, companyPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class RemoveLicenseSuccess {\r\n static type = ActionTypes.REMOVE_LICENSE_SUCCESS;\r\n\r\n constructor(public payload: string, public licensePseudonym: string) {\r\n }\r\n}\r\n\r\nexport class RemoveLicenseFail {\r\n static type = ActionTypes.REMOVE_LICENSE_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ILicense } from '../../../shared/models/license/license.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddLicense,\r\n AddLicenseFail,\r\n AddLicenseSuccess, RemoveLicense, RemoveLicenseFail, RemoveLicenseSuccess,\r\n SetLicenses,\r\n UpdateLicense,\r\n UpdateLicenseFail,\r\n UpdateLicenseSuccess\r\n} from './license.actions';\r\n\r\nexport interface LicenseStateModel {\r\n entities: { [key: string]: ILicense };\r\n ids: string[];\r\n}\r\n\r\n@RequestState('addLicense')\r\n@Injectable()\r\nexport class AddLicenseRequestState {\r\n}\r\n\r\n@RequestState('updateLicense')\r\n@Injectable()\r\nexport class UpdateLicenseRequestState {\r\n}\r\n\r\n@RequestState('removeLicense')\r\n@Injectable()\r\nexport class RemoveLicenseRequestState {\r\n}\r\n\r\n@State({\r\n name: 'license',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class LicenseState {\r\n @Action(SetLicenses)\r\n setLicenses({patchState, getState}: StateContext, {payload: licenses}: SetLicenses) {\r\n if (!licenses) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, licenses, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(AddLicense)\r\n addLicense({dispatch}: StateContext, {payload}: AddLicense) {\r\n\r\n const request = this.httpClient.patch(\r\n `company/${payload.companyPseudonym}/license/add/${payload.license.type}`, {Value: payload.license.value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: AddLicenseRequestState,\r\n request,\r\n failAction: AddLicenseFail,\r\n successAction: AddLicenseSuccess,\r\n metadata: payload.companyPseudonym,\r\n }));\r\n }\r\n\r\n @Action(AddLicenseFail)\r\n addLicenseFail() {\r\n console.log('addLicenseFail - request error');\r\n }\r\n\r\n @Action(AddLicenseSuccess)\r\n addLicenseSuccess(\r\n {dispatch}: StateContext,\r\n {payload, companyPseudonym}: AddLicenseSuccess,\r\n ) {\r\n const addedLicense = {...payload, companyPseudonym};\r\n dispatch(new SetLicenses([addedLicense]));\r\n }\r\n\r\n @Action(UpdateLicense)\r\n updateLicense({dispatch}: StateContext, {payload}: UpdateLicense) {\r\n\r\n const request = this.httpClient.patch(\r\n `company/${payload.companyPseudonym}/license/update/${payload.license.pseudonym}`, {Value: payload.license.value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateLicenseRequestState,\r\n request,\r\n failAction: UpdateLicenseFail,\r\n successAction: UpdateLicenseSuccess,\r\n metadata: {license: payload.license, companyPseudonym: payload.companyPseudonym},\r\n }));\r\n }\r\n\r\n @Action(UpdateLicenseFail)\r\n updateLicenseFail() {\r\n console.log('updateLicenseFail - request error');\r\n }\r\n\r\n @Action(UpdateLicenseSuccess)\r\n updateLicenseSuccess(\r\n {dispatch}: StateContext,\r\n {payload, license}: UpdateLicenseSuccess,\r\n ) {\r\n const addedLicense = {...license.license, companyPseudonym: license.companyPseudonym};\r\n dispatch(new SetLicenses([addedLicense]));\r\n }\r\n\r\n @Action(RemoveLicense)\r\n removeLicense({dispatch}: StateContext, {payload}: RemoveLicense) {\r\n\r\n const request = this.httpClient.delete(`company/${payload.companyPseudonym}/license/remove/${payload.licensePseudonym}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveLicenseRequestState,\r\n request,\r\n failAction: RemoveLicenseFail,\r\n successAction: RemoveLicenseSuccess,\r\n metadata: payload.licensePseudonym\r\n }));\r\n }\r\n\r\n @Action(RemoveLicenseFail)\r\n removeLicenseFail() {\r\n console.log('removeLicenseFail - request error');\r\n }\r\n\r\n @Action(RemoveLicenseSuccess)\r\n removeLicenseSuccess(\r\n {dispatch, getState, patchState}: StateContext,\r\n {payload, licensePseudonym}: RemoveLicenseSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedIds = state.ids.filter((id) => id !== licensePseudonym);\r\n\r\n const {[licensePseudonym]: {}, ...updatedEntities} = state.entities;\r\n\r\n patchState({\r\n ids: updatedIds,\r\n entities: updatedEntities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n\r\n}\r\n\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport {\r\n IAddDayOfWeekLimitPayload\r\n} from '../../../shared/models/limits/add-day-of-week-limit-payload.interface';\r\nimport {\r\n ICreateLimitOverridePayload\r\n} from '../../../shared/models/limits/create-limit-override-payload.interface';\r\nimport { IDayOfWeekLimit } from '../../../shared/models/limits/day-of-week-limit.interface';\r\nimport {\r\n IDeleteLimitOverridePayload\r\n} from '../../../shared/models/limits/delete-limit-override-payload.interface';\r\nimport { ILimitOverride } from '../../../shared/models/limits/limit-override.interface';\r\nimport { ILimits } from '../../../shared/models/limits/limits.interface';\r\nimport {\r\n IUpdateDayOfWeekLimitPayload\r\n} from '../../../shared/models/limits/update-day-of-week-limit-payload.interface';\r\nimport { IUpdateLimitPayload } from '../../../shared/models/limits/update-limit-payload.interface';\r\n\r\n\r\n\r\nconst ActionTypes = {\r\n GET_BUYER_TIER_LIMITS: '[Limits] Get Buyer Tier Limits',\r\n GET_STREAM_LIMITS: '[Limits] Get Stream Limits',\r\n GET_LIMITS_SUCCESS: '[Limits] Get Limits Success',\r\n GET_LIMITS_FAIL: '[Limits] Get Limits Fail',\r\n\r\n PATCH_BUYER_TIER_USE_DAY_OF_WEEK_LIMITS: '[Limits] Patch Buyer Tier Use Day Of Week Limits',\r\n PATCH_STREAM_USE_DAY_OF_WEEK_LIMITS: '[Limits] Patch Stream Use Day Of Week Limits',\r\n PATCH_USE_DAY_OF_WEEK_LIMITS_SUCCESS: '[Limits] Patch Use Day Of Week Limits Success',\r\n PATCH_USE_DAY_OF_WEEK_LIMITS_FAIL: '[Limits] Patch Use Day Of Week Limits Fail',\r\n\r\n PATCH_BUYER_TIER_LIMIT_POLICY_FIELD: '[Limits] Patch Buyer Tier Limit Policy Field',\r\n PATCH_STREAM_LIMIT_POLICY_FIELD: '[Limits] Patch Stream Limit Policy Field',\r\n PATCH_LIMIT_POLICY_FIELD_SUCCESS: '[Limits] Patch Limit Policy Field Success',\r\n PATCH_LIMIT_POLICY_FIELD_FAIL: '[Limits] Patch Limit Policy Field Fail',\r\n\r\n PUT_BUYER_TIER_DAY_OF_WEEK_LIMIT: '[Limits] Put Buyer Tier Day Of Week Limit',\r\n PUT_STREAM_DAY_OF_WEEK_LIMIT: '[Limits] Put Stream Day Of Week Limit',\r\n PUT_DAY_OF_WEEK_LIMIT_SUCCESS: '[Limits] Put Day Of Week Limit Success',\r\n PUT_DAY_OF_WEEK_LIMIT_FAIL: '[Limits] Put Day Of Week Limit Fail',\r\n\r\n PATCH_BUYER_TIER_DAY_OF_WEEK_LIMIT: '[Limits] Patch Buyer Tier Day Of Week Limit',\r\n PATCH_STREAM_DAY_OF_WEEK_LIMIT: '[Limits] Patch Stream Day Of Week Limit',\r\n PATCH_DAY_OF_WEEK_LIMIT_SUCCESS: '[Limits] Patch Day Of Week Limit Success',\r\n PATCH_DAY_OF_WEEK_LIMIT_FAIL: '[Limits] Patch Day Of Week Limit Fail',\r\n\r\n PUT_BUYER_TIER_LIMIT_OVERRIDE: '[Limits] Put Buyer Tier Limit Override',\r\n PUT_STREAM_LIMIT_OVERRIDE: '[Limits] Put Stream Limit Override',\r\n PUT_LIMIT_OVERRIDE_SUCCESS: '[Limits] Put Limit Override Success',\r\n PUT_LIMIT_OVERRIDE_FAIL: '[Limits] Put Limit Override Fail',\r\n\r\n DELETE_BUYER_TIER_LIMIT_OVERRIDE: '[Limits] Delete Buyer Tier Limit Override',\r\n DELETE_STREAM_LIMIT_OVERRIDE: '[Limits] Delete Stream Limit Override',\r\n DELETE_LIMIT_OVERRIDE_SUCCESS: '[Limits] Delete Limit Override Success',\r\n DELETE_LIMIT_OVERRIDE_FAIL: '[Limits] Delete Limit Override Fail',\r\n};\r\n\r\nexport class GetBuyerTierLimits {\r\n static type = ActionTypes.GET_BUYER_TIER_LIMITS;\r\n\r\n constructor(public payload: { buyerPseudonym: string, buyerTierPseudonym: string }) {\r\n }\r\n}\r\n\r\n\r\nexport class GetStreamLimits {\r\n static type = ActionTypes.GET_STREAM_LIMITS;\r\n\r\n constructor(public payload: { streamAgentPseudonym: string, streamPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class GetLimitsSuccess {\r\n static type = ActionTypes.GET_LIMITS_SUCCESS;\r\n\r\n constructor(public payload: ILimits, public parentPseudonym: string) {\r\n }\r\n}\r\n\r\nexport class GetLimitsFail {\r\n static type = ActionTypes.GET_LIMITS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class PatchBuyerTierUseDayOfWeekLimits {\r\n static type = ActionTypes.PATCH_BUYER_TIER_USE_DAY_OF_WEEK_LIMITS;\r\n\r\n constructor(public payload: {\r\n buyerPseudonym: string,\r\n buyerTierPseudonym: string,\r\n limitPoliciesPseudonym: string,\r\n value: boolean,\r\n }) {\r\n }\r\n}\r\n\r\nexport class PatchStreamUseDayOfWeekLimits {\r\n static type = ActionTypes.PATCH_STREAM_USE_DAY_OF_WEEK_LIMITS;\r\n\r\n constructor(public payload: {\r\n streamAgentPseudonym: string,\r\n streamPseudonym: string,\r\n limitPoliciesPseudonym: string,\r\n value: boolean,\r\n }) {\r\n }\r\n}\r\n\r\nexport class PatchUseDayOfWeekLimitsSuccess {\r\n static type = ActionTypes.PATCH_USE_DAY_OF_WEEK_LIMITS_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: { limitPoliciesPseudonym: string, value: boolean }\r\n ) {\r\n }\r\n}\r\n\r\nexport class PatchUseDayOfWeekLimitsFail {\r\n static type = ActionTypes.PATCH_USE_DAY_OF_WEEK_LIMITS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class PatchBuyerTierLimitPolicyField {\r\n static type = ActionTypes.PATCH_BUYER_TIER_LIMIT_POLICY_FIELD;\r\n\r\n constructor(public payload: IUpdateLimitPayload) {\r\n }\r\n}\r\n\r\nexport class PatchStreamLimitPolicyField {\r\n static type = ActionTypes.PATCH_STREAM_LIMIT_POLICY_FIELD;\r\n\r\n constructor(public payload: IUpdateLimitPayload) {\r\n }\r\n}\r\n\r\nexport class PatchLimitPolicyFieldSuccess {\r\n static type = ActionTypes.PATCH_LIMIT_POLICY_FIELD_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateLimitPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class PatchLimitPolicyFieldFail {\r\n static type = ActionTypes.PATCH_LIMIT_POLICY_FIELD_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class PutBuyerTierDayOfWeekLimit {\r\n static type = ActionTypes.PUT_BUYER_TIER_DAY_OF_WEEK_LIMIT;\r\n\r\n constructor(public payload: IAddDayOfWeekLimitPayload) {\r\n }\r\n}\r\n\r\nexport class PutStreamDayOfWeekLimit {\r\n static type = ActionTypes.PUT_STREAM_DAY_OF_WEEK_LIMIT;\r\n\r\n constructor(public payload: IAddDayOfWeekLimitPayload) {\r\n }\r\n}\r\n\r\nexport class PutDayOfWeekLimitSuccess {\r\n static type = ActionTypes.PUT_DAY_OF_WEEK_LIMIT_SUCCESS;\r\n\r\n constructor(\r\n public payload: IDayOfWeekLimit,\r\n public metadata: IAddDayOfWeekLimitPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class PutDayOfWeekLimitFail {\r\n static type = ActionTypes.PUT_DAY_OF_WEEK_LIMIT_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class PatchBuyerTierDayOfWeekLimit {\r\n static type = ActionTypes.PATCH_BUYER_TIER_DAY_OF_WEEK_LIMIT;\r\n\r\n constructor(public payload: IUpdateDayOfWeekLimitPayload) {\r\n }\r\n}\r\n\r\nexport class PatchStreamDayOfWeekLimit {\r\n static type = ActionTypes.PATCH_STREAM_DAY_OF_WEEK_LIMIT;\r\n\r\n constructor(public payload: IUpdateDayOfWeekLimitPayload) {\r\n }\r\n}\r\n\r\nexport class PatchDayOfWeekLimitSuccess {\r\n static type = ActionTypes.PATCH_DAY_OF_WEEK_LIMIT_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateDayOfWeekLimitPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class PatchDayOfWeekLimitFail {\r\n static type = ActionTypes.PATCH_DAY_OF_WEEK_LIMIT_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class PutBuyerTierLimitOverride {\r\n static type = ActionTypes.PUT_BUYER_TIER_LIMIT_OVERRIDE;\r\n\r\n constructor(public payload: ICreateLimitOverridePayload) {\r\n }\r\n}\r\n\r\nexport class PutStreamLimitOverride {\r\n static type = ActionTypes.PUT_STREAM_LIMIT_OVERRIDE;\r\n\r\n constructor(public payload: ICreateLimitOverridePayload) {\r\n }\r\n}\r\n\r\nexport class PutLimitOverrideSuccess {\r\n static type = ActionTypes.PUT_LIMIT_OVERRIDE_SUCCESS;\r\n\r\n constructor(\r\n public payload: ILimitOverride,\r\n public metadata: ICreateLimitOverridePayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class PutLimitOverrideFail {\r\n static type = ActionTypes.PUT_LIMIT_OVERRIDE_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class DeleteBuyerTierLimitOverride {\r\n static type = ActionTypes.DELETE_BUYER_TIER_LIMIT_OVERRIDE;\r\n\r\n constructor(public payload: IDeleteLimitOverridePayload) {\r\n }\r\n}\r\n\r\nexport class DeleteStreamLimitOverride {\r\n static type = ActionTypes.DELETE_STREAM_LIMIT_OVERRIDE;\r\n\r\n constructor(public payload: IDeleteLimitOverridePayload) {\r\n }\r\n}\r\n\r\nexport class DeleteLimitOverrideSuccess {\r\n static type = ActionTypes.DELETE_LIMIT_OVERRIDE_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IDeleteLimitOverridePayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DeleteLimitOverrideFail {\r\n static type = ActionTypes.DELETE_LIMIT_OVERRIDE_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { LimitCharacteristics } from '../../../shared/models/limits/limit-characteristics.enum';\r\nimport { ILimits } from '../../../shared/models/limits/limits.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n DeleteBuyerTierLimitOverride,\r\n DeleteLimitOverrideFail,\r\n DeleteLimitOverrideSuccess, DeleteStreamLimitOverride,\r\n GetBuyerTierLimits,\r\n GetLimitsFail,\r\n GetLimitsSuccess,\r\n GetStreamLimits,\r\n PatchBuyerTierDayOfWeekLimit,\r\n PatchBuyerTierLimitPolicyField,\r\n PatchBuyerTierUseDayOfWeekLimits,\r\n PatchDayOfWeekLimitFail,\r\n PatchDayOfWeekLimitSuccess,\r\n PatchLimitPolicyFieldFail,\r\n PatchLimitPolicyFieldSuccess,\r\n PatchStreamDayOfWeekLimit, PatchStreamLimitPolicyField,\r\n PatchStreamUseDayOfWeekLimits,\r\n PatchUseDayOfWeekLimitsFail,\r\n PatchUseDayOfWeekLimitsSuccess,\r\n PutBuyerTierDayOfWeekLimit,\r\n PutBuyerTierLimitOverride,\r\n PutDayOfWeekLimitFail,\r\n PutDayOfWeekLimitSuccess,\r\n PutLimitOverrideFail,\r\n PutLimitOverrideSuccess, PutStreamDayOfWeekLimit, PutStreamLimitOverride\r\n} from './limits.actions';\r\n\r\n@RequestState('getBuyerTierLimits')\r\n@Injectable()\r\nexport class GetBuyerTierLimitsRequestState {\r\n}\r\n\r\n@RequestState('getStreamLimits')\r\n@Injectable()\r\nexport class GetStreamLimitsRequestState {\r\n}\r\n\r\n@RequestState('patchBuyerTierUseDayOfWeekLimits')\r\n@Injectable()\r\nexport class PatchBuyerTierUseDayOfWeekLimitsRequestState {\r\n}\r\n\r\n@RequestState('patchStreamUseDayOfWeekLimits')\r\n@Injectable()\r\nexport class PatchStreamUseDayOfWeekLimitsRequestState {\r\n}\r\n\r\n@RequestState('patchBuyerTierLimitPolicyField')\r\n@Injectable()\r\nexport class PatchBuyerTierLimitPolicyFieldRequestState {\r\n}\r\n\r\n@RequestState('patchStreamLimitPolicyField')\r\n@Injectable()\r\nexport class PatchStreamLimitPolicyFieldRequestState {\r\n}\r\n\r\n@RequestState('PutBuyerTierDayOfWeekLimit')\r\n@Injectable()\r\nexport class PutBuyerTierDayOfWeekLimitRequestState {\r\n}\r\n\r\n@RequestState('PutStreamDayOfWeekLimit')\r\n@Injectable()\r\nexport class PutStreamDayOfWeekLimitRequestState {\r\n}\r\n\r\n@RequestState('PatchBuyerTierDayOfWeekLimit')\r\n@Injectable()\r\nexport class PatchBuyerTierDayOfWeekLimitRequestState {\r\n}\r\n\r\n@RequestState('PatchStreamDayOfWeekLimit')\r\n@Injectable()\r\nexport class PatchStreamDayOfWeekLimitRequestState {\r\n}\r\n\r\n@RequestState('PutBuyerTierLimitOverride')\r\n@Injectable()\r\nexport class PutBuyerTierLimitOverrideRequestState {\r\n}\r\n\r\n@RequestState('PutStreamLimitOverride')\r\n@Injectable()\r\nexport class PutStreamLimitOverrideRequestState {\r\n}\r\n\r\n@RequestState('DeleteBuyerTierLimitOverride')\r\n@Injectable()\r\nexport class DeleteBuyerTierLimitOverrideRequestState {\r\n}\r\n\r\n@RequestState('DeleteStreamLimitOverride')\r\n@Injectable()\r\nexport class DeleteStreamLimitOverrideRequestState {\r\n}\r\n\r\nexport interface LimitsStateModel {\r\n entities: { [key: string]: ILimits };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'limits',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class LimitsState {\r\n\r\n @Action(GetBuyerTierLimits)\r\n getBuyerTierLimits(\r\n {dispatch}: StateContext,\r\n {payload: {buyerPseudonym, buyerTierPseudonym}}: GetBuyerTierLimits\r\n ) {\r\n const request = this.httpClient.get(`buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limits`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierLimitsRequestState,\r\n request,\r\n failAction: GetLimitsFail,\r\n successAction: GetLimitsSuccess,\r\n metadata: buyerTierPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetStreamLimits)\r\n getStreamLimits(\r\n {dispatch}: StateContext,\r\n {payload: {streamAgentPseudonym, streamPseudonym}}: GetStreamLimits\r\n ) {\r\n const request = this.httpClient.get(`streams/agent/${ streamAgentPseudonym }/stream/${ streamPseudonym }/limits`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamLimitsRequestState,\r\n request,\r\n failAction: GetLimitsFail,\r\n successAction: GetLimitsSuccess,\r\n metadata: streamPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetLimitsSuccess)\r\n getLimitsSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, parentPseudonym}: GetLimitsSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, [{...payload, parentPseudonym}], 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetLimitsFail)\r\n getLimitsFail() {\r\n console.log('getLimits - request error');\r\n }\r\n\r\n @Action(PatchBuyerTierUseDayOfWeekLimits)\r\n patchBuyerTierUseDayOfWeekLimits(\r\n {dispatch}: StateContext,\r\n {payload: {buyerPseudonym, buyerTierPseudonym, limitPoliciesPseudonym, value}}: PatchBuyerTierUseDayOfWeekLimits\r\n ) {\r\n const request = this.httpClient.patch(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limits/${limitPoliciesPseudonym}/dayofweek/toggleuse`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchBuyerTierUseDayOfWeekLimitsRequestState,\r\n request,\r\n failAction: PatchUseDayOfWeekLimitsFail,\r\n successAction: PatchUseDayOfWeekLimitsSuccess,\r\n metadata: {limitPoliciesPseudonym, value},\r\n }));\r\n }\r\n\r\n @Action(PatchStreamUseDayOfWeekLimits)\r\n patchStreamUseDayOfWeekLimits(\r\n {dispatch}: StateContext,\r\n {payload: {streamAgentPseudonym, streamPseudonym, limitPoliciesPseudonym, value}}: PatchStreamUseDayOfWeekLimits\r\n ) {\r\n const request = this.httpClient.patch(\r\n `streams/agent/${ streamAgentPseudonym }/stream/${streamPseudonym}/limits/${limitPoliciesPseudonym}/dayofweek/toggleuse`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchStreamUseDayOfWeekLimitsRequestState,\r\n request,\r\n failAction: PatchUseDayOfWeekLimitsFail,\r\n successAction: PatchUseDayOfWeekLimitsSuccess,\r\n metadata: {limitPoliciesPseudonym, value},\r\n }));\r\n }\r\n\r\n @Action(PatchUseDayOfWeekLimitsFail)\r\n patchUseDayOfWeekLimitsFail() {\r\n console.log('patchUseDayOfWeekLimits - request error');\r\n }\r\n\r\n @Action(PatchUseDayOfWeekLimitsSuccess)\r\n patchUseDayOfWeekLimitsSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PatchUseDayOfWeekLimitsSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const characteristics = metadata.value ?\r\n state.entities[metadata.limitPoliciesPseudonym].dailyLimit.characteristics + LimitCharacteristics.UseDayOfWeekLimits :\r\n state.entities[metadata.limitPoliciesPseudonym].dailyLimit.characteristics - LimitCharacteristics.UseDayOfWeekLimits;\r\n\r\n const updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n dailyLimit: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit,\r\n characteristics,\r\n }\r\n };\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.limitPoliciesPseudonym]: updatedLimits}\r\n });\r\n }\r\n\r\n @Action(PatchBuyerTierLimitPolicyField)\r\n patchBuyerTierLimitPolicyField(\r\n {dispatch}: StateContext,\r\n {payload}: PatchBuyerTierLimitPolicyField\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, limitPolicyPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limit/${limitPolicyPseudonym}/update/${fieldName}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchBuyerTierLimitPolicyFieldRequestState,\r\n request,\r\n failAction: PatchLimitPolicyFieldFail,\r\n successAction: PatchLimitPolicyFieldSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PatchStreamLimitPolicyField)\r\n patchStreamLimitPolicyField(\r\n {dispatch}: StateContext,\r\n {payload}: PatchStreamLimitPolicyField\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, limitPolicyPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/limit/${limitPolicyPseudonym}/update/${fieldName}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchStreamLimitPolicyFieldRequestState,\r\n request,\r\n failAction: PatchLimitPolicyFieldFail,\r\n successAction: PatchLimitPolicyFieldSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PatchLimitPolicyFieldFail)\r\n patchLimitPolicyFieldFail() {\r\n console.log('patchLimitPolicyField - request error');\r\n }\r\n\r\n @Action(PatchLimitPolicyFieldSuccess)\r\n patchLimitPolicyFieldSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PatchLimitPolicyFieldSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const updatedLimits = {\r\n ...state.entities[metadata.limitsPseudonym],\r\n [metadata.limitName]: {\r\n ...state.entities[metadata.limitsPseudonym][metadata.limitName],\r\n [metadata.fieldName.toLowerCase()]: metadata.value,\r\n }\r\n };\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.limitsPseudonym]: updatedLimits}\r\n });\r\n }\r\n\r\n @Action(PutBuyerTierDayOfWeekLimit)\r\n putBuyerTierDayOfWeekLimit(\r\n {dispatch}: StateContext,\r\n {payload}: PutBuyerTierDayOfWeekLimit\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, limitPoliciesPseudonym, dayOfWeek, value} = payload;\r\n const request = this.httpClient.put(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limits/${limitPoliciesPseudonym}/dayofweek/${dayOfWeek}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PutBuyerTierDayOfWeekLimitRequestState,\r\n request,\r\n failAction: PutDayOfWeekLimitFail,\r\n successAction: PutDayOfWeekLimitSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PutStreamDayOfWeekLimit)\r\n putStreamDayOfWeekLimit(\r\n {dispatch}: StateContext,\r\n {payload}: PutBuyerTierDayOfWeekLimit\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, limitPoliciesPseudonym, dayOfWeek, value} = payload;\r\n const request = this.httpClient.put(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/limits/${limitPoliciesPseudonym}/dayofweek/${dayOfWeek}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PutStreamDayOfWeekLimitRequestState,\r\n request,\r\n failAction: PutDayOfWeekLimitFail,\r\n successAction: PutDayOfWeekLimitSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PutDayOfWeekLimitFail)\r\n putDayOfWeekLimitFail() {\r\n console.log('putDayOfWeekLimit - request error');\r\n }\r\n\r\n @Action(PutDayOfWeekLimitSuccess)\r\n putDayOfWeekLimitSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PutDayOfWeekLimitSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n dailyLimit: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit,\r\n daysOfWeek: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek,\r\n [metadata.dayOfWeek.toLowerCase()]: payload,\r\n }\r\n }\r\n };\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.limitPoliciesPseudonym]: updatedLimits}\r\n });\r\n }\r\n\r\n @Action(PatchBuyerTierDayOfWeekLimit)\r\n patchBuyerTierDayOfWeekLimit(\r\n {dispatch}: StateContext,\r\n {payload}: PatchBuyerTierDayOfWeekLimit\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, limitPolicyDayOfWeekPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limitdayofweek/${limitPolicyDayOfWeekPseudonym}/update/${fieldName}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PatchBuyerTierDayOfWeekLimitRequestState,\r\n request,\r\n failAction: PatchDayOfWeekLimitFail,\r\n successAction: PatchDayOfWeekLimitSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PatchStreamDayOfWeekLimit)\r\n patchStreamDayOfWeekLimit(\r\n {dispatch}: StateContext,\r\n {payload}: PatchStreamDayOfWeekLimit\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, limitPolicyDayOfWeekPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/limitdayofweek/${limitPolicyDayOfWeekPseudonym}/update/${fieldName}`,\r\n {Value: value}\r\n );\r\n return dispatch(createRequestAction({\r\n state: PatchStreamDayOfWeekLimitRequestState,\r\n request,\r\n failAction: PatchDayOfWeekLimitFail,\r\n successAction: PatchDayOfWeekLimitSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PatchDayOfWeekLimitFail)\r\n patchDayOfWeekLimitFail() {\r\n console.log('patchDayOfWeekLimit - request error');\r\n }\r\n\r\n @Action(PatchDayOfWeekLimitSuccess)\r\n patchDayOfWeekLimitSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PatchDayOfWeekLimitSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n dailyLimit: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit,\r\n daysOfWeek: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek,\r\n [metadata.dayOfWeek.toLowerCase()]: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek[metadata.dayOfWeek.toLowerCase()],\r\n [metadata.fieldName.toLowerCase()]: metadata.value,\r\n }\r\n }\r\n },\r\n };\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.limitPoliciesPseudonym]: updatedLimits}\r\n });\r\n }\r\n\r\n @Action(PutBuyerTierLimitOverride)\r\n putBuyerTierLimitOverride(\r\n {dispatch}: StateContext,\r\n {payload}: PutBuyerTierLimitOverride\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, limitPolicyPseudonym, dayOfWeek, limitName, ...body} = payload;\r\n const request = this.httpClient.put(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limit/${limitPolicyPseudonym}/override`,\r\n {...body}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PutBuyerTierLimitOverrideRequestState,\r\n request,\r\n failAction: PutLimitOverrideFail,\r\n successAction: PutLimitOverrideSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PutStreamLimitOverride)\r\n putStreamLimitOverride(\r\n {dispatch}: StateContext,\r\n {payload}: PutStreamLimitOverride\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, limitPolicyPseudonym, dayOfWeek, limitName, ...body} = payload;\r\n const request = this.httpClient.put(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/limit/${limitPolicyPseudonym}/override`,\r\n {...body}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PutStreamLimitOverrideRequestState,\r\n request,\r\n failAction: PutLimitOverrideFail,\r\n successAction: PutLimitOverrideSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(PutLimitOverrideFail)\r\n putLimitOverrideFail() {\r\n console.log('putLimitOverride - request error');\r\n }\r\n\r\n @Action(PutLimitOverrideSuccess)\r\n putLimitOverrideSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: PutLimitOverrideSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n let updatedLimits;\r\n\r\n if (metadata.dayOfWeek) {\r\n const dayOfWeek = metadata.dayOfWeek.toLowerCase();\r\n const overrides = state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek[dayOfWeek].overrides ?\r\n [...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek[dayOfWeek].overrides, payload] : [payload];\r\n updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n dailyLimit: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit,\r\n daysOfWeek: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek,\r\n [dayOfWeek]: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek[dayOfWeek],\r\n overrides,\r\n },\r\n },\r\n },\r\n };\r\n } else {\r\n const overrides = state.entities[metadata.limitPoliciesPseudonym][metadata.limitName].overrides ?\r\n [...state.entities[metadata.limitPoliciesPseudonym][metadata.limitName].overrides, payload] : [payload];\r\n updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n [metadata.limitName]: {\r\n ...state.entities[metadata.limitPoliciesPseudonym][metadata.limitName],\r\n overrides,\r\n },\r\n };\r\n }\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.limitPoliciesPseudonym]: updatedLimits}\r\n });\r\n }\r\n\r\n @Action(DeleteBuyerTierLimitOverride)\r\n deleteBuyerTierLimitOverride(\r\n {dispatch}: StateContext,\r\n {payload}: DeleteBuyerTierLimitOverride\r\n ) {\r\n\r\n const {buyerPseudonym, buyerTierPseudonym, limitPolicyPseudonym, limitPolicyOverridePseudonym} = payload;\r\n const request = this.httpClient.delete(\r\n `buyers/buyer/${buyerPseudonym}/tier/${buyerTierPseudonym}/limit/${limitPolicyPseudonym}/override/${limitPolicyOverridePseudonym}`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: DeleteBuyerTierLimitOverrideRequestState,\r\n request,\r\n failAction: DeleteLimitOverrideFail,\r\n successAction: DeleteLimitOverrideSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(DeleteStreamLimitOverride)\r\n deleteStreamLimitOverride(\r\n {dispatch}: StateContext,\r\n {payload}: DeleteStreamLimitOverride\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, limitPolicyPseudonym, limitPolicyOverridePseudonym} = payload;\r\n const request = this.httpClient.delete(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/limit/${limitPolicyPseudonym}/override/${limitPolicyOverridePseudonym}`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: DeleteStreamLimitOverrideRequestState,\r\n request,\r\n failAction: DeleteLimitOverrideFail,\r\n successAction: DeleteLimitOverrideSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(DeleteLimitOverrideFail)\r\n deleteLimitOverrideFail() {\r\n console.log('deleteLimitOverride - request error');\r\n }\r\n\r\n @Action(DeleteLimitOverrideSuccess)\r\n deleteLimitOverrideSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: DeleteLimitOverrideSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n let updatedLimits;\r\n\r\n if (metadata.dayOfWeek) {\r\n const dayOfWeek = metadata.dayOfWeek.toLowerCase();\r\n const overrides = state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek[dayOfWeek].overrides?.filter(\r\n (override) => override.pseudonym !== metadata.limitPolicyOverridePseudonym,\r\n );\r\n updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n dailyLimit: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit,\r\n daysOfWeek: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek,\r\n [dayOfWeek]: {\r\n ...state.entities[metadata.limitPoliciesPseudonym].dailyLimit.daysOfWeek[dayOfWeek],\r\n overrides: overrides.length ? overrides : null,\r\n }\r\n }\r\n },\r\n };\r\n } else {\r\n const overrides = state.entities[metadata.limitPoliciesPseudonym][metadata.limitName].overrides?.filter(\r\n (override) => override.pseudonym !== metadata.limitPolicyOverridePseudonym,\r\n );\r\n updatedLimits = {\r\n ...state.entities[metadata.limitPoliciesPseudonym],\r\n [metadata.limitName]: {\r\n ...state.entities[metadata.limitPoliciesPseudonym][metadata.limitName],\r\n overrides: overrides.length ? overrides : null,\r\n },\r\n };\r\n }\r\n\r\n patchState({\r\n ...state,\r\n entities: {...state.entities, [metadata.limitPoliciesPseudonym]: updatedLimits}\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n}\r\n","import { ILobbySummary } from '../../../shared/models/lobby-summary.interface';\r\n\r\nconst ActionTypes = {\r\n GET_LOBBY_SUMMARY: '[Lobby Summary] Get Lobby Summary',\r\n GET_LOBBY_SUMMARY_SUCCESS: '[Lobby Summary] Get Lobby Summary Success',\r\n GET_LOBBY_SUMMARY_FAIL: '[Lobby Summary] Get Lobby Summary Fail',\r\n\r\n SET_HIDE_INACTIVE_ITEMS_OPTIONS: '[Lobby Summary] Hide Lobby Summary Inactive Items'\r\n};\r\n\r\nexport class GetLobbySummary {\r\n static type = ActionTypes.GET_LOBBY_SUMMARY;\r\n constructor(public payload = false) {\r\n }\r\n}\r\n\r\nexport class GetLobbySummarySuccess {\r\n static type = ActionTypes.GET_LOBBY_SUMMARY_SUCCESS;\r\n\r\n constructor(public payload: ILobbySummary) {\r\n }\r\n}\r\n\r\nexport class GetLobbySummaryFail {\r\n static type = ActionTypes.GET_LOBBY_SUMMARY_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class SetHideInactiveLobbySummaryItemsOptions {\r\n static type = ActionTypes.SET_HIDE_INACTIVE_ITEMS_OPTIONS;\r\n constructor(public payload: Partial<{[key: string]: Partial<{\r\n isHideInactiveSellers: boolean;\r\n isHideInactiveStreams: boolean;\r\n isHideInactiveTiers: boolean;\r\n }>}>) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { SetBuyerTiers } from '../buyer-tier/buyer-tier.actions';\r\nimport { SetSellers } from '../seller/seller.actions';\r\nimport { SetStreams } from '../stream/stream.actions';\r\nimport {\r\n GetLobbySummary,\r\n GetLobbySummaryFail,\r\n GetLobbySummarySuccess,\r\n SetHideInactiveLobbySummaryItemsOptions\r\n} from './lobby.actions';\r\n\r\n\r\n@RequestState('getLobbySummary')\r\n@Injectable()\r\nexport class GetLobbySummaryRequestState {\r\n}\r\n\r\n@RequestState('getLobbySummarySilent')\r\n@Injectable()\r\nexport class GetLobbySummarySilentRequestState {\r\n}\r\n\r\nexport interface LobbySummaryStateModel {\r\n regionIds: number[];\r\n sellerIds: string[];\r\n buyerIds: string[];\r\n dataAgentIds: string[];\r\n hideInactive: Partial<{[key: string]: Partial<{\r\n isHideInactiveSellers: boolean;\r\n isHideInactiveStreams: boolean;\r\n isHideInactiveTiers: boolean;\r\n }>}>;\r\n}\r\n\r\n@State({\r\n name: 'lobbySummary',\r\n defaults: {\r\n regionIds: [],\r\n sellerIds: [],\r\n buyerIds: [],\r\n dataAgentIds: [],\r\n hideInactive: {}\r\n }\r\n})\r\n@Injectable()\r\nexport class LobbyState {\r\n\r\n @Action(GetLobbySummary)\r\n getLobbySummary(\r\n ctx: StateContext,\r\n {payload: isSilent}: GetLobbySummary) {\r\n const request = this.httpClient.get('lobby/summary');\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: isSilent ? GetLobbySummarySilentRequestState : GetLobbySummaryRequestState,\r\n request,\r\n failAction: GetLobbySummaryFail,\r\n successAction: GetLobbySummarySuccess,\r\n }));\r\n }\r\n\r\n @Action(GetLobbySummaryFail)\r\n getLobbySummaryFail() {\r\n console.log('getLobbySummaryFail - request error');\r\n }\r\n\r\n @Action(GetLobbySummarySuccess)\r\n getLobbySummarySuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload: {sellers, buyerTiers, streams}}: GetLobbySummarySuccess,\r\n ) {\r\n\r\n const regionIds = [];\r\n\r\n const sellerIds = sellers?.map((seller) => {\r\n if (regionIds.indexOf(seller.regionId) === -1) {\r\n regionIds.push(seller.regionId);\r\n }\r\n return seller.pseudonym;\r\n });\r\n const buyerIds = buyerTiers?.map((buyerTier) => {\r\n if (regionIds.indexOf(buyerTier.regionId) === -1) {\r\n regionIds.push(buyerTier.regionId);\r\n }\r\n return buyerTier.pseudonym;\r\n });\r\n const dataAgentIds = streams?.map((dataAgent) => {\r\n if (regionIds.indexOf(dataAgent.regionId) === -1) {\r\n regionIds.push(dataAgent.regionId);\r\n }\r\n return dataAgent.pseudonym;\r\n });\r\n dispatch([\r\n new SetSellers(sellers),\r\n new SetBuyerTiers(buyerTiers),\r\n new SetStreams(streams),\r\n ]);\r\n\r\n patchState({\r\n regionIds,\r\n sellerIds,\r\n buyerIds,\r\n dataAgentIds,\r\n });\r\n }\r\n\r\n @Action(SetHideInactiveLobbySummaryItemsOptions)\r\n setHideInactiveLobbySummaryItemsOptions(\r\n {patchState}: StateContext,\r\n {payload}: SetHideInactiveLobbySummaryItemsOptions,\r\n ) {\r\n return patchState({\r\n hideInactive: payload\r\n });\r\n }\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { Selector } from '@ngxs/store';\r\n\r\nimport { NotificationState, NotificationStateModel } from './notification.state';\r\n\r\n\r\nexport class NotificationGetterState {\r\n @Selector([NotificationState])\r\n static getAllNotifications(state: NotificationStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n}\r\n","import { INotification } from '../../../shared/models/notification.interface';\r\n\r\nconst ActionTypes = {\r\n GET_NOTIFICATIONS: '[Notification] Get Notifications',\r\n GET_NOTIFICATIONS_SUCCESS: '[Notification] Get Notifications Success',\r\n GET_NOTIFICATIONS_FAIL: '[Notification] Get Notifications Fail',\r\n};\r\n\r\nexport class GetNotifications {\r\n static type = ActionTypes.GET_NOTIFICATIONS;\r\n}\r\n\r\nexport class GetNotificationsSuccess {\r\n static type = ActionTypes.GET_NOTIFICATIONS_SUCCESS;\r\n\r\n constructor(public payload: {notifications: INotification[]}) {\r\n }\r\n}\r\n\r\nexport class GetNotificationsFail {\r\n static type = ActionTypes.GET_NOTIFICATIONS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { of } from 'rxjs';\r\n\r\nimport { INotification } from '../../../shared/models/notification.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetNotifications, GetNotificationsFail, GetNotificationsSuccess } from './notification.actions';\r\nimport { notificationsMock } from './notifications.mock';\r\n\r\n\r\n@RequestState('getNotifications')\r\n@Injectable()\r\nexport class GetNotificationsRequestState {\r\n}\r\n\r\nexport interface NotificationStateModel {\r\n entities: { [key: number]: INotification };\r\n ids: number[];\r\n}\r\n\r\n@State({\r\n name: 'notification',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class NotificationState {\r\n\r\n @Action(GetNotifications)\r\n getNotifications(ctx: StateContext) {\r\n\r\n // TODO update when back end would be ready\r\n // const request = this.httpClient.get('notifications');\r\n\r\n const request = of({notifications: notificationsMock});\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: GetNotificationsRequestState,\r\n request,\r\n failAction: GetNotificationsFail,\r\n successAction: GetNotificationsSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetNotificationsFail)\r\n getNotificationsFail() {\r\n console.log('getNotificationsFail - request error');\r\n }\r\n\r\n @Action(GetNotificationsSuccess)\r\n getNotificationsSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {notifications}}: GetNotificationsSuccess\r\n ) {\r\n if (!notifications) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, notifications, 'id');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { INotification } from '../../../shared/models/notification.interface';\r\n\r\nexport const notificationsMock: INotification[] = [\r\n {id: 1, title: 'Notification 1', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', date: '2020-04-20T14:41:44.1108646Z', status: 'active'},\r\n {id: 2, title: 'Notification 2', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', date: '2020-04-18T10:51:10.125Z', status: 'active'},\r\n {id: 3, title: 'Notification 3', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', date: '2020-04-21T05:51:10.125Z', status: 'important'},\r\n {id: 4, title: 'Notification 4', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', date: '2020-04-21T06:51:10.125Z', status: 'important'},\r\n {id: 5, title: 'Notification 5', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', date: '2020-04-16T10:51:10.125Z', status: 'important'},\r\n {id: 6, title: 'Notification 6', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco', date: '2020-04-21T07:21:10.125Z', status: 'important'},\r\n {id: 7, title: 'Notification 7', body: 'Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco', date: '2020-04-21T08:23:10.125Z', status: 'important'},\r\n];\r\n","import { IAddOpenPeriodPayload } from '../../../shared/models/common/opening-hours/add-open-period-payload.interface';\r\nimport { IOpeningHours } from '../../../shared/models/common/opening-hours/opening-hours.interface';\r\nimport {\r\n IRemoveOpenPeriodPayload\r\n} from '../../../shared/models/common/opening-hours/remove-open-period-payload.interface';\r\nimport {\r\n IUpdateOpenPeriodLimitPayload\r\n} from '../../../shared/models/common/opening-hours/update-open-period-limit-payload.interface';\r\nimport {\r\n IUpdateOpenPeriodPayload\r\n} from '../../../shared/models/common/opening-hours/update-open-period-payload.interface';\r\nimport { SharedComponentActorType } from '../../../shared/models/common/shared-component-actor-type.enum';\r\n\r\n\r\nconst ActionTypes = {\r\n SET_OPENING_HOURS: '[OpeningHours] Set OpeningHours',\r\n REMOVE_OPEN_PERIOD: '[OpeningHours] Remove Open Period',\r\n REMOVE_OPEN_PERIOD_SUCCESS: '[OpeningHours] Remove Open Period Success',\r\n REMOVE_OPEN_PERIOD_FAIL: '[OpeningHours] Remove Open Period Fail',\r\n UPDATE_OPEN_PERIOD: '[OpeningHours] Update Open Period',\r\n UPDATE_OPEN_PERIOD_SUCCESS: '[OpeningHours] Update Open Period Success',\r\n UPDATE_OPEN_PERIOD_FAIL: '[OpeningHours] Update Open Period Fail',\r\n ADD_OPEN_PERIOD: '[OpeningHours] Add Open Period',\r\n ADD_OPEN_PERIOD_SUCCESS: '[OpeningHours] Add Open Period Success',\r\n ADD_OPEN_PERIOD_FAIL: '[OpeningHours] Add Open Period Fail',\r\n UPDATE_OPEN_PERIOD_LIMIT: '[OpeningHours] Update Open Period Limit',\r\n UPDATE_OPEN_PERIOD_LIMIT_SUCCESS: '[OpeningHours] Update Open Period Limit Success',\r\n UPDATE_OPEN_PERIOD_LIMIT_FAIL: '[OpeningHours] Update Open Period Limit Fail',\r\n};\r\n\r\nexport class SetOpeningHours {\r\n static type = ActionTypes.SET_OPENING_HOURS;\r\n\r\n constructor(public payload: IOpeningHours[]) {\r\n }\r\n}\r\n\r\nexport class RemoveOpenPeriod {\r\n static type = ActionTypes.REMOVE_OPEN_PERIOD;\r\n\r\n constructor(public payload: {data: IRemoveOpenPeriodPayload, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class RemoveOpenPeriodSuccess {\r\n static type = ActionTypes.REMOVE_OPEN_PERIOD_SUCCESS;\r\n\r\n constructor(public payload: string, public metadata: IRemoveOpenPeriodPayload) {\r\n }\r\n}\r\n\r\nexport class RemoveOpenPeriodFail {\r\n static type = ActionTypes.REMOVE_OPEN_PERIOD_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateOpenPeriod {\r\n static type = ActionTypes.UPDATE_OPEN_PERIOD;\r\n\r\n constructor(public payload: {data: IUpdateOpenPeriodPayload, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class UpdateOpenPeriodSuccess {\r\n static type = ActionTypes.UPDATE_OPEN_PERIOD_SUCCESS;\r\n\r\n constructor(public payload: string, public metadata: IUpdateOpenPeriodPayload) {\r\n }\r\n}\r\n\r\nexport class UpdateOpenPeriodFail {\r\n static type = ActionTypes.UPDATE_OPEN_PERIOD_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class AddOpenPeriod {\r\n static type = ActionTypes.ADD_OPEN_PERIOD;\r\n\r\n constructor(public payload: {data: IAddOpenPeriodPayload, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class AddOpenPeriodSuccess {\r\n static type = ActionTypes.ADD_OPEN_PERIOD_SUCCESS;\r\n\r\n constructor(public payload: IOpeningHours, public metadata: IAddOpenPeriodPayload) {\r\n }\r\n}\r\n\r\nexport class AddOpenPeriodFail {\r\n static type = ActionTypes.ADD_OPEN_PERIOD_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateOpenPeriodLimit {\r\n static type = ActionTypes.UPDATE_OPEN_PERIOD_LIMIT;\r\n\r\n constructor(public payload: {data: IUpdateOpenPeriodLimitPayload, type: SharedComponentActorType}) {\r\n }\r\n}\r\n\r\nexport class UpdateOpenPeriodLimitSuccess {\r\n static type = ActionTypes.UPDATE_OPEN_PERIOD_LIMIT_SUCCESS;\r\n\r\n constructor(public payload: string, public metadata: IUpdateOpenPeriodLimitPayload) {\r\n }\r\n}\r\n\r\nexport class UpdateOpenPeriodLimitFail {\r\n static type = ActionTypes.UPDATE_OPEN_PERIOD_LIMIT_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport moment from 'moment';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IOpeningHours } from '../../../shared/models/common/opening-hours/opening-hours.interface';\r\nimport { SharedComponentActorType } from '../../../shared/models/common/shared-component-actor-type.enum';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddOpenPeriod,\r\n AddOpenPeriodFail,\r\n AddOpenPeriodSuccess,\r\n RemoveOpenPeriod,\r\n RemoveOpenPeriodFail,\r\n RemoveOpenPeriodSuccess,\r\n SetOpeningHours,\r\n UpdateOpenPeriod,\r\n UpdateOpenPeriodFail,\r\n UpdateOpenPeriodLimit,\r\n UpdateOpenPeriodLimitFail,\r\n UpdateOpenPeriodLimitSuccess,\r\n UpdateOpenPeriodSuccess,\r\n} from './opening-hours.actions';\r\n\r\n@RequestState('removeOpenPeriod')\r\n@Injectable()\r\nexport class RemoveOpenPeriodRequestState {\r\n}\r\n\r\n@RequestState('updateOpenPeriod')\r\n@Injectable()\r\nexport class UpdateOpenPeriodRequestState {\r\n}\r\n\r\n@RequestState('updateBuyerTierOpenPeriodLimit')\r\n@Injectable()\r\nexport class UpdateBuyerTierOpenPeriodLimitRequestState {\r\n}\r\n\r\n@RequestState('updateStreamOpenPeriodLimit')\r\n@Injectable()\r\nexport class UpdateStreamOpenPeriodLimitRequestState {\r\n}\r\n\r\n@RequestState('addOpenPeriod')\r\n@Injectable()\r\nexport class AddOpenPeriodRequestState {\r\n}\r\n\r\nexport interface OpeningHoursStateModel {\r\n entities: { [key: string]: IOpeningHours };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'openingHours',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class OpeningHoursState {\r\n @Action(SetOpeningHours)\r\n setOpeningHours({patchState, getState, dispatch}: StateContext, {payload: openingHours}: SetOpeningHours) {\r\n if (!openingHours) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, openingHours, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(RemoveOpenPeriod)\r\n removeOpenPeriod({dispatch}: StateContext, {payload: {data, type}}: RemoveOpenPeriod) {\r\n const {parentPseudonym, childPseudonym, dayOfWeek, openingHoursPeriodPseudonym, openingHoursPseudonym, pseudonymsToInclude} = data;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/openinghours/day/${openingHoursPeriodPseudonym}`,\r\n\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/openinghours/day/${openingHoursPeriodPseudonym}`,\r\n },\r\n };\r\n\r\n const request = this.httpClient.delete(entityData[type].path, {body: {pseudonymsToInclude}});\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveOpenPeriodRequestState,\r\n request,\r\n failAction: RemoveOpenPeriodFail,\r\n successAction: RemoveOpenPeriodSuccess,\r\n metadata: data,\r\n }));\r\n }\r\n\r\n @Action(RemoveOpenPeriodFail)\r\n removeOpenPeriodFail() {\r\n console.log('removeOpenPeriodFail - request error');\r\n }\r\n\r\n @Action(RemoveOpenPeriodSuccess)\r\n removeOpenPeriodSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: RemoveOpenPeriodSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n const openingHours = state.entities[metadata.openingHoursPseudonym];\r\n const dayOfWeek = metadata.dayOfWeek.toLowerCase();\r\n const updatedPeriods = openingHours[dayOfWeek].filter((period) =>\r\n metadata.pseudonymsToInclude.findIndex(pseudonym => pseudonym === period.pseudonym) === -1\r\n );\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.openingHoursPseudonym]: {...openingHours, [dayOfWeek]: updatedPeriods}\r\n }\r\n });\r\n }\r\n\r\n @Action(UpdateOpenPeriod)\r\n updateOpenPeriod({dispatch}: StateContext, {payload: {data, type}}: UpdateOpenPeriod) {\r\n const {parentPseudonym, childPseudonym, dayOfWeek, durationMin, openingHoursPeriodPseudonym, openingHoursPseudonym, startTimeOffsetMin} = data;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/openinghours/day/${openingHoursPeriodPseudonym}`,\r\n\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/openinghours/day/${openingHoursPeriodPseudonym}`,\r\n },\r\n };\r\n\r\n const request = this.httpClient.patch(entityData[type].path, {startTimeOffsetMin, durationMin});\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateOpenPeriodRequestState,\r\n request,\r\n failAction: UpdateOpenPeriodFail,\r\n successAction: UpdateOpenPeriodSuccess,\r\n metadata: data,\r\n }));\r\n }\r\n\r\n @Action(UpdateOpenPeriodFail)\r\n updateOpenPeriodFail() {\r\n console.log('updateOpenPeriodFail - request error');\r\n }\r\n\r\n @Action(UpdateOpenPeriodSuccess)\r\n updateOpenPeriodSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: UpdateOpenPeriodSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n const openingHours = state.entities[metadata.openingHoursPseudonym];\r\n const dayOfWeek = metadata.dayOfWeek.toLowerCase();\r\n const updatedPeriods = openingHours[dayOfWeek].map((period) => {\r\n if (period.pseudonym === metadata.openingHoursPeriodPseudonym) {\r\n const startTimeOffset = moment.utc(moment.duration(metadata.startTimeOffsetMin * 60000, 'millisecond').asMilliseconds()).format('HH:mm:ss');\r\n const duration = moment.utc(moment.duration(metadata.durationMin * 60000, 'millisecond').asMilliseconds()).format('HH:mm:ss');\r\n return {...period, startTimeOffset, duration};\r\n } else {\r\n return period;\r\n }\r\n });\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.openingHoursPseudonym]: {...openingHours, [dayOfWeek]: updatedPeriods}\r\n }\r\n });\r\n }\r\n\r\n @Action(AddOpenPeriod)\r\n addOpenPeriod({dispatch}: StateContext, {payload: {data, type}}: AddOpenPeriod) {\r\n const {parentPseudonym, childPseudonym, dayOfWeek, duration, openingHoursPseudonym, startTimeOffset} = data;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/openinghours/day/create/${dayOfWeek}`,\r\n\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/openinghours/day/create/${dayOfWeek}`,\r\n },\r\n };\r\n\r\n const request = this.httpClient.post(entityData[type].path, {startTimeOffset, duration});\r\n\r\n return dispatch(createRequestAction({\r\n state: AddOpenPeriodRequestState,\r\n request,\r\n failAction: AddOpenPeriodFail,\r\n successAction: AddOpenPeriodSuccess,\r\n metadata: data,\r\n }));\r\n }\r\n\r\n @Action(AddOpenPeriodFail)\r\n addOpenPeriodFail() {\r\n console.log('addOpenPeriodFail - request error');\r\n }\r\n\r\n @Action(AddOpenPeriodSuccess)\r\n addOpenPeriodSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: AddOpenPeriodSuccess,\r\n ) {\r\n const state = getState();\r\n const openingHours = state.entities[metadata.openingHoursPseudonym];\r\n const dayOfWeek = metadata.dayOfWeek.toLowerCase();\r\n const dayOpeningHours = openingHours[dayOfWeek] || [];\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities,\r\n [metadata.openingHoursPseudonym]: {...openingHours, [dayOfWeek]: [...dayOpeningHours, payload]}\r\n }\r\n });\r\n }\r\n\r\n @Action(UpdateOpenPeriodLimit)\r\n updateOpenPeriodLimit({dispatch}: StateContext, {payload}: UpdateOpenPeriodLimit) {\r\n const {data: {\r\n parentPseudonym,\r\n childPseudonym,\r\n openingHoursPeriodPseudonym,\r\n value\r\n }, type} = payload;\r\n\r\n const entityData = {\r\n [SharedComponentActorType.BuyerTier]: {\r\n path: `buyers/buyer/${parentPseudonym}/tier/${childPseudonym}/openinghours/day/${openingHoursPeriodPseudonym}/setting/limit`,\r\n requestState: UpdateBuyerTierOpenPeriodLimitRequestState,\r\n },\r\n [SharedComponentActorType.Stream]: {\r\n path: `streams/agent/${parentPseudonym}/stream/${childPseudonym}/openinghours/day/${openingHoursPeriodPseudonym}/setting/limit`,\r\n requestState: UpdateStreamOpenPeriodLimitRequestState,\r\n }\r\n };\r\n\r\n const request = this.httpClient.patch(\r\n entityData[type].path,\r\n {Value: Number(value)});\r\n\r\n return dispatch(createRequestAction({\r\n state: entityData[type].requestState,\r\n request,\r\n failAction: UpdateOpenPeriodLimitFail,\r\n successAction: UpdateOpenPeriodLimitSuccess,\r\n metadata: payload.data,\r\n }));\r\n }\r\n\r\n @Action(UpdateOpenPeriodLimitFail)\r\n updateOpenPeriodLimitFail() {\r\n console.log('updateOpenPeriodLimitFail - request error');\r\n }\r\n\r\n @Action(UpdateOpenPeriodLimitSuccess)\r\n UpdateOpenPeriodLimitSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: UpdateOpenPeriodLimitSuccess,\r\n ) {\r\n const state = getState();\r\n const openingHours = state.entities[metadata.openingHoursPseudonym];\r\n const dayOfWeek = metadata.dayOfWeek.toLowerCase();\r\n\r\n const updatedPeriods = openingHours[dayOfWeek].map((period) => {\r\n return (period.pseudonym === metadata.openingHoursPeriodPseudonym) ?\r\n {...period, settingProfile: {...period.settingProfile, limit: metadata.value}} : period;\r\n });\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities,\r\n [metadata.openingHoursPseudonym]: {\r\n ...openingHours,\r\n [dayOfWeek]: updatedPeriods,\r\n }\r\n }\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n\r\n}\r\n","import { IPermission } from '../../../shared/models/session/permission.interface';\r\n\r\nconst ActionTypes = {\r\n SET_PERMISSIONS: '[Permission] Set Permissions',\r\n};\r\n\r\nexport class SetPermissions {\r\n static type = ActionTypes.SET_PERMISSIONS;\r\n\r\n constructor(public payload: IPermission[]) {\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\n\r\nimport { IPermission } from '../../../shared/models/session/permission.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { SetPermissions } from './permission.actions';\r\n\r\nexport interface PermissionStateModel {\r\n entities: { [key: string]: IPermission };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'permission',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class PermissionState {\r\n @Action(SetPermissions)\r\n setPermissions({patchState, getState}: StateContext, {payload: permissions}: SetPermissions) {\r\n if (!permissions) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, permissions, 'name');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n}\r\n\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { ProfileType } from '../../../shared/models/common/recent-searches/profile-type.enum';\r\n\r\n\r\nconst ActionTypes = {\r\n GET_RECENT_SEARCHES: '[RecentSearches] Get Recent Searches',\r\n GET_RECENT_SEARCHES_SUCCESS: '[RecentSearches] Get Recent Searches Success',\r\n GET_RECENT_SEARCHES_FAIL: '[RecentSearches] Get Recent Searches Fail',\r\n};\r\n\r\nexport class GetRecentSearches {\r\n static type = ActionTypes.GET_RECENT_SEARCHES;\r\n\r\n constructor(public payload: {profileType: ProfileType, pageSize: number}) {\r\n }\r\n}\r\n\r\nexport class GetRecentSearchesSuccess {\r\n static type = ActionTypes.GET_RECENT_SEARCHES_SUCCESS;\r\n\r\n constructor(public payload: {items: string[]}, public metadata: {pageSize: number, profileType: ProfileType}) {\r\n }\r\n}\r\n\r\nexport class GetRecentSearchesFail {\r\n static type = ActionTypes.GET_RECENT_SEARCHES_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { StateReset } from 'ngxs-reset-plugin';\r\n\r\nimport { IRecentSearchItem } from '../../../shared/models/common/recent-searches/recent-search-item.interface';\r\nimport { PaginationHeaders } from '../../../shared/models/pagination-headers.enum';\r\nimport { GetRecentSearches, GetRecentSearchesFail, GetRecentSearchesSuccess } from './recent-searches.actions';\r\n\r\nexport interface RecentSearchesStateModel {\r\n entities: { [key: string]: IRecentSearchItem[] };\r\n ids: number[];\r\n pageSize: number;\r\n}\r\n\r\n@RequestState('getRecentSearches')\r\n@Injectable()\r\nexport class GetRecentSearchesRequestState {\r\n}\r\n\r\n@State({\r\n name: 'recentSearches',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n pageSize: 10,\r\n }\r\n}\r\n)\r\n@Injectable()\r\nexport class RecentSearchesState {\r\n @Action(GetRecentSearches)\r\n getRecentSearches(\r\n {dispatch, getState}: StateContext,\r\n {payload: {profileType, pageSize}}: GetRecentSearches\r\n ) {\r\n\r\n const request = this.httpClient.get(\r\n `identity/session/profile/${profileType}`,\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageSize]: pageSize.toString(),\r\n }),\r\n }\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetRecentSearchesRequestState,\r\n request,\r\n failAction: GetRecentSearchesFail,\r\n successAction: GetRecentSearchesSuccess,\r\n metadata: {pageSize, profileType}\r\n }));\r\n }\r\n\r\n @Action(GetRecentSearchesFail)\r\n getRecentSearchesFail(\r\n {dispatch}: StateContext,\r\n ) {\r\n dispatch(new StateReset(RecentSearchesState));\r\n }\r\n\r\n @Action(GetRecentSearchesSuccess)\r\n getRecentSearchesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {items}, metadata: {pageSize, profileType}}: GetRecentSearchesSuccess,\r\n ) {\r\n const state = getState();\r\n const regexp = /(?[^~]+)(~~(?\\d+))?/;\r\n\r\n const updatedItems: IRecentSearchItem[] = items.map((item) => {\r\n const match = regexp.exec(item);\r\n const {search, regionId} = match.groups;\r\n return {\r\n search,\r\n regionId: Number(regionId)\r\n };\r\n });\r\n\r\n const updatedIds = [...new Set([...state.ids, profileType])];\r\n\r\n patchState({\r\n entities: {\r\n ...state.entities,\r\n [profileType]: updatedItems,\r\n },\r\n ids: updatedIds,\r\n pageSize,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient\r\n ) {\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { RegionState, RegionStateModel } from './region.state';\r\n\r\nexport class RegionGetterState {\r\n @Selector([RegionState])\r\n static getAllRegions(state: RegionStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getRegionById(regionId: number) {\r\n return createSelector(\r\n [RegionState],\r\n (state: RegionStateModel) => state.entities[regionId]);\r\n }\r\n}\r\n","import { IRegion } from '../../../shared/models/region.interface';\r\n\r\nconst ActionTypes = {\r\n GET_REGIONS: '[Region] Get Regions',\r\n GET_REGIONS_SUCCESS: '[Region] Get Regions Success',\r\n GET_REGIONS_FAIL: '[Region] Get Regions Fail',\r\n};\r\n\r\nexport class GetRegions {\r\n static type = ActionTypes.GET_REGIONS;\r\n}\r\n\r\nexport class GetRegionsSuccess {\r\n static type = ActionTypes.GET_REGIONS_SUCCESS;\r\n\r\n constructor(public payload: {regions: IRegion[]}) {\r\n }\r\n}\r\n\r\nexport class GetRegionsFail {\r\n static type = ActionTypes.GET_REGIONS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IRegion } from '../../../shared/models/region.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetRegions, GetRegionsFail, GetRegionsSuccess } from './region.actions';\r\n\r\n\r\n@RequestState('getRegions')\r\n@Injectable()\r\nexport class GetRegionsRequestState {\r\n}\r\n\r\nexport interface RegionStateModel {\r\n entities: { [key: number]: IRegion };\r\n ids: number[];\r\n}\r\n\r\n@State({\r\n name: 'region',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class RegionState {\r\n\r\n @Action(GetRegions)\r\n getRegions(ctx: StateContext) {\r\n const request = this.httpClient.get('region/regions');\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: GetRegionsRequestState,\r\n request,\r\n failAction: GetRegionsFail,\r\n successAction: GetRegionsSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetRegionsFail)\r\n getRegionsFail(ctx: StateContext) {\r\n console.log('getRegionsFail - request error');\r\n }\r\n\r\n @Action(GetRegionsSuccess)\r\n getRegionsSuccess({patchState, getState}: StateContext, {payload: {regions}}: GetRegionsSuccess) {\r\n if (!regions) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, regions, 'id');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { IGetReportDocumentPayload } from '../../../shared/models/reports/get-report-document-payload.interface';\r\nimport {\r\n IGetReportDocumentsListPayload\r\n} from '../../../shared/models/reports/get-report-documents-list-payload.interface';\r\nimport { IReportDocument } from '../../../shared/models/reports/report-document.interface';\r\n\r\nconst ActionTypes = {\r\n\r\n GET_STREAM_REPORT_DOCUMENTS_LIST: '[ReportDocument] Get Stream Report Documents List',\r\n GET_STREAM_REPORT_DOCUMENTS_LIST_SUCCESS: '[ReportDocument] Get Stream Report Documents List Success',\r\n GET_STREAM_REPORT_DOCUMENTS_LIST_FAIL: '[ReportDocument] Get Stream Report Documents List Fail',\r\n\r\n GET_STREAM_REPORT_DOCUMENT: '[ReportDocument] Get Stream Report Document Instance',\r\n GET_STREAM_REPORT_DOCUMENT_SUCCESS: '[ReportDocument] Get Stream Report Document Instance Success',\r\n GET_STREAM_REPORT_DOCUMENT_FAIL: '[ReportDocument] Get Stream Report Document Instance Fail',\r\n\r\n GET_BUYER_TIER_REPORT_DOCUMENTS_LIST: '[ReportDocument] Get Buyer Tier Report Documents List',\r\n GET_BUYER_TIER_REPORT_DOCUMENTS_LIST_SUCCESS: '[ReportDocument] Get Buyer Tier Report Documents List Success',\r\n GET_BUYER_TIER_REPORT_DOCUMENTS_LIST_FAIL: '[ReportDocument] Get Buyer Tier Report Documents List Fail',\r\n\r\n GET_BUYER_TIER_REPORT_DOCUMENT: '[ReportDocument] Get Buyer Tier Report Document Instance',\r\n GET_BUYER_TIER_REPORT_DOCUMENT_SUCCESS: '[ReportDocument] Get Buyer Tier Report Document Instance Success',\r\n GET_BUYER_TIER_REPORT_DOCUMENT_FAIL: '[ReportDocument] Get Buyer Tier Report Document Instance Fail',\r\n\r\n GET_SELLER_REPORT_DOCUMENTS_LIST: '[ReportDocument] Get Seller Report Documents List',\r\n GET_SELLER_REPORT_DOCUMENTS_LIST_SUCCESS: '[ReportDocument] Get Seller Report Documents List Success',\r\n GET_SELLER_REPORT_DOCUMENTS_LIST_FAIL: '[ReportDocument] Get Seller Report Documents List Fail',\r\n\r\n GET_SELLER_REPORT_DOCUMENT: '[ReportDocument] Get Seller Report Document Instance',\r\n GET_SELLER_REPORT_DOCUMENT_SUCCESS: '[ReportDocument] Get Seller Report Document Success Instance',\r\n GET_SELLER_REPORT_DOCUMENT_FAIL: '[ReportDocument] Get Seller Report Document Fail Instance',\r\n};\r\n\r\nexport class GetStreamReportDocumentsList {\r\n static type = ActionTypes.GET_STREAM_REPORT_DOCUMENTS_LIST;\r\n\r\n constructor(public payload: IGetReportDocumentsListPayload) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportDocumentsListSuccess {\r\n static type = ActionTypes.GET_STREAM_REPORT_DOCUMENTS_LIST_SUCCESS;\r\n\r\n constructor(\r\n public payload: { documents: IReportDocument[] },\r\n public metadata: {actorPseudonym: string; reportPseudonym: string; }) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportDocumentsListFail {\r\n static type = ActionTypes.GET_STREAM_REPORT_DOCUMENTS_LIST_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportDocument {\r\n static type = ActionTypes.GET_STREAM_REPORT_DOCUMENT;\r\n\r\n constructor(public payload: IGetReportDocumentPayload) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportDocumentSuccess {\r\n static type = ActionTypes.GET_STREAM_REPORT_DOCUMENT_SUCCESS;\r\n\r\n constructor(public payload: { document: IReportDocument }, public metadata: number) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportDocumentFail {\r\n static type = ActionTypes.GET_STREAM_REPORT_DOCUMENT_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportDocumentsList {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORT_DOCUMENTS_LIST;\r\n\r\n constructor(public payload: IGetReportDocumentsListPayload) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportDocumentsListSuccess {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORT_DOCUMENTS_LIST_SUCCESS;\r\n\r\n constructor(\r\n public payload: { documents: IReportDocument[] },\r\n public metadata: {actorPseudonym: string; reportPseudonym: string; }\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportDocumentsListFail {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORT_DOCUMENTS_LIST_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportDocument {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORT_DOCUMENT;\r\n\r\n constructor(public payload: IGetReportDocumentPayload) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportDocumentSuccess {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORT_DOCUMENT_SUCCESS;\r\n\r\n constructor(public payload: { document: IReportDocument }, public metadata: number) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportDocumentFail {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORT_DOCUMENT_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportDocumentsList {\r\n static type = ActionTypes.GET_SELLER_REPORT_DOCUMENTS_LIST;\r\n\r\n constructor(public payload: IGetReportDocumentsListPayload) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportDocumentsListSuccess {\r\n static type = ActionTypes.GET_SELLER_REPORT_DOCUMENTS_LIST_SUCCESS;\r\n\r\n constructor(\r\n public payload: { documents: IReportDocument[] },\r\n public metadata: {actorPseudonym: string; reportPseudonym: string; }\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportDocumentsListFail {\r\n static type = ActionTypes.GET_SELLER_REPORT_DOCUMENTS_LIST_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportDocument {\r\n static type = ActionTypes.GET_SELLER_REPORT_DOCUMENT;\r\n\r\n constructor(public payload: IGetReportDocumentPayload) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportDocumentSuccess {\r\n static type = ActionTypes.GET_SELLER_REPORT_DOCUMENT_SUCCESS;\r\n\r\n constructor(public payload: { document: IReportDocument }, public metadata: number) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportDocumentFail {\r\n static type = ActionTypes.GET_SELLER_REPORT_DOCUMENT_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { PaginationHeaders } from '../../../shared/models/pagination-headers.enum';\r\nimport { IReportDocument } from '../../../shared/models/reports/report-document.interface';\r\nimport { createIdsAndEntities } from '../utils/createIdsAndEntities';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetBuyerTierReportDocument,\r\n GetBuyerTierReportDocumentFail,\r\n GetBuyerTierReportDocumentsList,\r\n GetBuyerTierReportDocumentsListFail,\r\n GetBuyerTierReportDocumentsListSuccess,\r\n GetBuyerTierReportDocumentSuccess,\r\n GetSellerReportDocument,\r\n GetSellerReportDocumentFail,\r\n GetSellerReportDocumentsList,\r\n GetSellerReportDocumentsListFail,\r\n GetSellerReportDocumentsListSuccess,\r\n GetSellerReportDocumentSuccess,\r\n GetStreamReportDocument,\r\n GetStreamReportDocumentFail,\r\n GetStreamReportDocumentsList,\r\n GetStreamReportDocumentsListFail,\r\n GetStreamReportDocumentsListSuccess,\r\n GetStreamReportDocumentSuccess\r\n} from './report-document.actions';\r\n\r\n@RequestState('getStreamReportDocumentsList')\r\n@Injectable()\r\nexport class GetStreamReportDocumentsListRequestState {\r\n}\r\n\r\n@RequestState('getStreamReportDocument')\r\n@Injectable()\r\nexport class GetStreamReportDocumentRequestState {\r\n}\r\n\r\n@RequestState('getBuyerTierReportDocumentsList')\r\n@Injectable()\r\nexport class GetBuyerTierReportDocumentsListRequestState {\r\n}\r\n\r\n@RequestState('getBuyerTierReportDocument')\r\n@Injectable()\r\nexport class GetBuyerTierReportDocumentRequestState {\r\n}\r\n\r\n@RequestState('getSellerReportDocumentsList')\r\n@Injectable()\r\nexport class GetSellerReportDocumentsListRequestState {\r\n}\r\n\r\n@RequestState('getSellerReportDocument')\r\n@Injectable()\r\nexport class GetSellerReportDocumentRequestState {\r\n}\r\n\r\nexport interface ReportDocumentStateModel {\r\n entities: { [key: string]: IReportDocument };\r\n ids: string[];\r\n pageSize: number;\r\n}\r\n\r\n@State({\r\n name: 'reportDocument',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n pageSize: 5,\r\n }\r\n})\r\n@Injectable()\r\nexport class ReportDocumentState {\r\n\r\n @Action(GetStreamReportDocumentsList)\r\n getStreamReportDocumentsList(\r\n {dispatch, getState}: StateContext,\r\n {\r\n payload: {\r\n parentActorPseudonym: streamAgentPseudonym,\r\n childActorPseudonym: streamPseudonym,\r\n reportPseudonym\r\n }\r\n }: GetStreamReportDocumentsList\r\n ) {\r\n const request = this.httpClient.get(\r\n `streams/agent/${ streamAgentPseudonym }/stream/${ streamPseudonym }/report/${ reportPseudonym }/documents`\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamReportDocumentsListRequestState,\r\n request,\r\n failAction: GetStreamReportDocumentsListFail,\r\n successAction: GetStreamReportDocumentsListSuccess,\r\n metadata: {actorPseudonym: streamPseudonym, reportPseudonym},\r\n }));\r\n }\r\n\r\n @Action(GetStreamReportDocumentsListFail)\r\n getStreamReportDocumentsListFail() {\r\n console.log('getStreamReportDocumentsListFail - request error');\r\n }\r\n\r\n @Action(GetStreamReportDocument)\r\n getStreamReportDocument(\r\n {dispatch, getState}: StateContext,\r\n {payload: {parentActorPseudonym, childActorPseudonym, reportDocumentPseudonym, reportPseudonym, page, pageSize}}: GetStreamReportDocument\r\n ) {\r\n const {pageSize: defaultPageSize} = getState();\r\n const request = this.httpClient.get(\r\n `streams/agent/${ parentActorPseudonym }/stream/${ childActorPseudonym }/report/${ reportPseudonym }/document/${ reportDocumentPseudonym }`,\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageNumber]: page.toString(),\r\n [PaginationHeaders.PageSize]: pageSize?.toString() || defaultPageSize.toString(),\r\n })\r\n },\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamReportDocumentRequestState,\r\n request,\r\n failAction: GetStreamReportDocumentFail,\r\n successAction: GetStreamReportDocumentSuccess,\r\n metadata: page,\r\n }));\r\n }\r\n\r\n @Action(GetStreamReportDocumentFail)\r\n getStreamReportDocumentFail() {\r\n console.log('getStreamReportDocumentFail - request error');\r\n }\r\n\r\n @Action(GetBuyerTierReportDocumentsList)\r\n getBuyerTierReportDocumentsList(\r\n {dispatch, getState}: StateContext,\r\n {payload: {parentActorPseudonym, childActorPseudonym, reportPseudonym}}: GetBuyerTierReportDocumentsList\r\n ) {\r\n const request = this.httpClient.get(\r\n `buyers/buyer/${ parentActorPseudonym }/tier/${ childActorPseudonym }/report/${ reportPseudonym }/documents`\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierReportDocumentsListRequestState,\r\n request,\r\n failAction: GetBuyerTierReportDocumentsListFail,\r\n successAction: GetBuyerTierReportDocumentsListSuccess,\r\n metadata: {actorPseudonym: childActorPseudonym, reportPseudonym},\r\n }));\r\n }\r\n\r\n @Action(GetBuyerTierReportDocumentsListFail)\r\n getBuyerTierReportDocumentsListFail() {\r\n console.log('getBuyerTierReportDocumentsListFail - request error');\r\n }\r\n\r\n @Action(GetBuyerTierReportDocument)\r\n getBuyerTierReportDocument(\r\n {dispatch, getState}: StateContext,\r\n {payload: {parentActorPseudonym, childActorPseudonym, reportDocumentPseudonym, reportPseudonym, page, pageSize}}: GetBuyerTierReportDocument\r\n ) {\r\n const {pageSize: defaultPageSize} = getState();\r\n const request = this.httpClient.get(\r\n `buyers/buyer/${ parentActorPseudonym }/tier/${ childActorPseudonym }/report/${ reportPseudonym }/document/${ reportDocumentPseudonym }`,\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageNumber]: page.toString(),\r\n [PaginationHeaders.PageSize]: pageSize?.toString() || defaultPageSize.toString(),\r\n })\r\n },\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierReportDocumentRequestState,\r\n request,\r\n failAction: GetBuyerTierReportDocumentFail,\r\n successAction: GetBuyerTierReportDocumentSuccess,\r\n metadata: page,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerTierReportDocumentFail)\r\n getBuyerTierReportDocumentFail() {\r\n console.log('getBuyerTierReportDocumentFail - request error');\r\n }\r\n\r\n @Action(GetSellerReportDocumentsList)\r\n getSellerReportDocumentsList(\r\n {dispatch, getState}: StateContext,\r\n {payload: {parentActorPseudonym: sellerPseudonym, reportPseudonym}}: GetSellerReportDocumentsList\r\n ) {\r\n const request = this.httpClient.get(`sellers/seller/${sellerPseudonym}/report/${reportPseudonym}/documents`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerReportDocumentsListRequestState,\r\n request,\r\n failAction: GetSellerReportDocumentsListFail,\r\n successAction: GetSellerReportDocumentsListSuccess,\r\n metadata: {actorPseudonym: sellerPseudonym, reportPseudonym},\r\n }));\r\n }\r\n\r\n @Action(GetSellerReportDocumentsListFail)\r\n getSellerReportDocumentsListFail() {\r\n console.log('getSellerReportDocumentsList - request error');\r\n }\r\n\r\n @Action(GetSellerReportDocument)\r\n getSellerReportDocument(\r\n {dispatch, getState}: StateContext,\r\n {payload: {parentActorPseudonym: sellerPseudonym, reportDocumentPseudonym, reportPseudonym, page, pageSize}}: GetSellerReportDocument\r\n ) {\r\n const {pageSize: defaultPageSize} = getState();\r\n const request = this.httpClient.get(\r\n `sellers/seller/${sellerPseudonym}/report/${reportPseudonym}/document/${reportDocumentPseudonym}`,\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageNumber]: page.toString(),\r\n [PaginationHeaders.PageSize]: pageSize?.toString() || defaultPageSize.toString(),\r\n })\r\n },\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerReportDocumentRequestState,\r\n request,\r\n failAction: GetSellerReportDocumentFail,\r\n successAction: GetSellerReportDocumentSuccess,\r\n metadata: page,\r\n }));\r\n }\r\n\r\n @Action(GetSellerReportDocumentFail)\r\n getSellerReportDocumentFail() {\r\n console.log('getSellerReportDocument - request error');\r\n }\r\n\r\n @Action([\r\n GetStreamReportDocumentsListSuccess,\r\n GetBuyerTierReportDocumentsListSuccess,\r\n GetSellerReportDocumentsListSuccess,\r\n ])\r\n getReportDocumentsListSuccess(\r\n {getState, patchState}: StateContext,\r\n {\r\n payload: {documents},\r\n metadata: {actorPseudonym, reportPseudonym}\r\n }: GetStreamReportDocumentsListSuccess,\r\n ) {\r\n const documentsToSet = documents.map((document) => ({...document, reportPseudonym, actorPseudonym}));\r\n\r\n const {entities, ids} = createIdsAndEntities(documentsToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action([\r\n GetStreamReportDocumentSuccess,\r\n GetBuyerTierReportDocumentSuccess,\r\n GetSellerReportDocumentSuccess,\r\n ])\r\n getReportDocumentSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload: {document}, metadata: page}: GetStreamReportDocumentSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const curDocument = state.entities[document.pseudonym];\r\n\r\n if (curDocument && page !== 1) {\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities, [document.pseudonym]: {\r\n reportPseudonym: curDocument.reportPseudonym,\r\n actorPseudonym: curDocument.actorPseudonym,\r\n ...document,\r\n body: {\r\n ...document.body,\r\n rows: document.body.rows ? [...curDocument.body.rows, ...document.body.rows] : curDocument.body.rows,\r\n },\r\n page,\r\n }\r\n }\r\n });\r\n\r\n } else if (page === 1) {\r\n const documentToSet = {\r\n ...document,\r\n page,\r\n reportPseudonym: state.entities[document.pseudonym].reportPseudonym,\r\n actorPseudonym: state.entities[document.pseudonym].actorPseudonym,\r\n };\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, [documentToSet], 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n}\r\n\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { IGetReportsListPayload } from '../../../shared/models/reports/get-reports-list-payload.interface';\r\nimport { IReport } from '../../../shared/models/reports/report.interface';\r\n\r\nconst ActionTypes = {\r\n GET_STREAM_REPORTS_LIST: '[Report] Get Stream Reports List',\r\n GET_STREAM_REPORTS_LIST_SUCCESS: '[Report] Get Stream Reports List Success',\r\n GET_STREAM_REPORTS_LIST_FAIL: '[Report] Get Stream Reports List Fail',\r\n\r\n GET_BUYER_TIER_REPORTS_LIST: '[Report] Get Buyer Tier Reports List',\r\n GET_BUYER_TIER_REPORTS_LIST_SUCCESS: '[Report] Get Buyer Tier Reports List Success',\r\n GET_BUYER_TIER_REPORTS_LIST_FAIL: '[Report] Get Buyer Tier Reports List Fail',\r\n\r\n GET_SELLER_REPORTS_LIST: '[Report] Get Seller Reports List',\r\n GET_SELLER_REPORTS_LIST_SUCCESS: '[Report] Get Seller Reports List Success',\r\n GET_SELLER_REPORTS_LIST_FAIL: '[Report] Get Seller Reports List Fail',\r\n};\r\n\r\nexport class GetStreamReportsList {\r\n static type = ActionTypes.GET_STREAM_REPORTS_LIST;\r\n\r\n constructor(public payload: IGetReportsListPayload) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportsListSuccess {\r\n static type = ActionTypes.GET_STREAM_REPORTS_LIST_SUCCESS;\r\n\r\n constructor(public payload: {reports: IReport[]}, public metadata: string) {\r\n }\r\n}\r\n\r\nexport class GetStreamReportsListFail {\r\n static type = ActionTypes.GET_STREAM_REPORTS_LIST_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportsList {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORTS_LIST;\r\n\r\n constructor(\r\n public payload: IGetReportsListPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportsListSuccess {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORTS_LIST_SUCCESS;\r\n\r\n constructor(\r\n public payload: {reports: IReport[]},\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetBuyerTierReportsListFail {\r\n static type = ActionTypes.GET_BUYER_TIER_REPORTS_LIST_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportsList {\r\n static type = ActionTypes.GET_SELLER_REPORTS_LIST;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportsListSuccess {\r\n static type = ActionTypes.GET_SELLER_REPORTS_LIST_SUCCESS;\r\n\r\n constructor(public payload: {reports: IReport[]}, public metadata: string) {\r\n }\r\n}\r\n\r\nexport class GetSellerReportsListFail {\r\n static type = ActionTypes.GET_SELLER_REPORTS_LIST_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IReport } from '../../../shared/models/reports/report.interface';\r\nimport { createIdsAndEntities } from '../utils/createIdsAndEntities';\r\nimport {\r\n GetBuyerTierReportsList,\r\n GetBuyerTierReportsListFail,\r\n GetBuyerTierReportsListSuccess,\r\n GetSellerReportsList,\r\n GetSellerReportsListFail,\r\n GetSellerReportsListSuccess,\r\n GetStreamReportsList,\r\n GetStreamReportsListFail,\r\n GetStreamReportsListSuccess\r\n} from './report.actions';\r\n\r\n@RequestState('getStreamReportsList')\r\n@Injectable()\r\nexport class GetStreamReportsListRequestState {\r\n}\r\n\r\n@RequestState('getBuyerTierReportsList')\r\n@Injectable()\r\nexport class GetBuyerTierReportsListRequestState {\r\n}\r\n\r\n@RequestState('getSellerReportsList')\r\n@Injectable()\r\nexport class GetSellerReportsListRequestState {\r\n}\r\n\r\nexport interface ReportStateModel {\r\n entities: { [key: string]: IReport };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'reports',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class ReportsState {\r\n\r\n @Action(GetStreamReportsList)\r\n getStreamReportsList(\r\n {dispatch}: StateContext,\r\n {payload: {parentActorPseudonym, childActorPseudonym}}: GetStreamReportsList\r\n ) {\r\n const request = this.httpClient.get(`streams/agent/${ parentActorPseudonym }/stream/${ childActorPseudonym }/reports`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamReportsListRequestState,\r\n request,\r\n failAction: GetStreamReportsListFail,\r\n successAction: GetStreamReportsListSuccess,\r\n metadata: childActorPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetBuyerTierReportsList)\r\n getBuyerTierReportsList(\r\n {dispatch}: StateContext,\r\n {payload: {parentActorPseudonym, childActorPseudonym}}: GetBuyerTierReportsList\r\n ) {\r\n const request = this.httpClient.get(`buyers/buyer/${ parentActorPseudonym }/tier/${ childActorPseudonym }/reports`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetBuyerTierReportsListRequestState,\r\n request,\r\n failAction: GetBuyerTierReportsListFail,\r\n successAction: GetBuyerTierReportsListSuccess,\r\n metadata: childActorPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetSellerReportsList)\r\n getSellerReportsList(\r\n {dispatch}: StateContext,\r\n {payload: sellerPseudonym}: GetSellerReportsList\r\n ) {\r\n const request = this.httpClient.get(`sellers/seller/${sellerPseudonym}/reports`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerReportsListRequestState,\r\n request,\r\n failAction: GetSellerReportsListFail,\r\n successAction: GetSellerReportsListSuccess,\r\n metadata: sellerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetStreamReportsListFail)\r\n getStreamReportsListFail() {\r\n console.log('GetStreamReportsListFail - request error');\r\n }\r\n\r\n @Action(GetBuyerTierReportsListFail)\r\n getBuyerTierReportsListFail() {\r\n console.log('getBuyerTierReportsListFail - request error');\r\n }\r\n\r\n @Action(GetSellerReportsListFail)\r\n getSellerReportsListFail() {\r\n console.log('getSellerReportsList - request error');\r\n }\r\n\r\n @Action([\r\n GetStreamReportsListSuccess,\r\n GetBuyerTierReportsListSuccess,\r\n GetSellerReportsListSuccess,\r\n ])\r\n getReportsListSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload: {reports}, metadata: actorPseudonym}: GetStreamReportsListSuccess,\r\n ) {\r\n\r\n const reportsToSet = reports.map((report) => ({...report, actorPseudonym}));\r\n\r\n const {entities, ids} = createIdsAndEntities(reportsToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n}\r\n\r\n","import {createSelector} from \"@ngxs/store\";\r\nimport {IRequest} from \"ngxs-requests-plugin\";\r\n\r\nexport class RequestGetterState {\r\n static getState(stateClass) {\r\n return createSelector([stateClass], (state: IRequest) =>\r\n state\r\n );\r\n }\r\n}\r\n","import { Selector } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\n\r\nimport {\r\n CreateBuyerTierAdjustorRequestState,\r\n DeleteBuyerTierAdjustmentRequestState,\r\n UpdateBuyerTierAdjustorRequestState\r\n} from '../adjustor/adjustor.state';\r\nimport { GetBuyerAdjustorLayoutPoliciesRequestState } from '../buyer-adjustor-layout-policy/buyer-adjustor-layout-policy.state';\r\nimport { GetBuyerDemographicMapRequestState } from '../buyer-demographic-map/buyer-demographic-map.state';\r\nimport { GetBuyerDemographicsRequestState } from '../buyer-demographics/buyer-demographics.state';\r\nimport { GetBuyerFilterLayoutPoliciesRequestState } from '../buyer-filter-layout-policy/buyer-filter-layout-policy.state';\r\nimport { GetBuyerSellersRequestState } from '../buyer-seller/buyer-seller.state';\r\nimport {\r\n GetBuyerTierRequestState,\r\n PauseBuyerTierRequestState, RequestBuyerTierPriceChangeRequestState,\r\n ResumeBuyerTierRequestState,\r\n} from '../buyer-tier/buyer-tier.state';\r\nimport {\r\n AddFreetextTierFilterRequestState,\r\n CreateBuyerTierFilterRequestState, RemoveFreetextTierFilterRequestState,\r\n UpdateBuyerTierFilterRequestState\r\n} from '../buyer-tier-filter/buyer-tier-filter.state';\r\nimport {\r\n AddBuyerTierSellerRequestState,\r\n GetBuyerTierSellersRequestState,\r\n RemoveBuyerTierSellerRequestState\r\n} from '../buyer-tier-seller/buyer-tier-seller.state';\r\nimport { GetChartRequestState } from '../chart/chart.state';\r\nimport { AddClosureRequestState } from '../closure/closure.state';\r\nimport {\r\n GetCompanyRequestState,\r\n} from '../company/company.state';\r\nimport { SendMessageRequestState } from '../contact/contact.state';\r\nimport { GetLobbySummaryRequestState } from '../lobby/lobby.state';\r\nimport { GetNotificationsRequestState } from '../notification/notification.state';\r\nimport { GetRegionsRequestState } from '../region/region.state';\r\nimport { GetSellerReputationRequestState } from '../seller-reputation/seller-reputation.state';\r\nimport { GetSellerReputationFindingsRequestState } from '../seller-reputation-finding/seller-reputation-finding.state';\r\nimport { GetSessionRequestState } from '../session/session.state';\r\nimport {\r\n GetStreamRequestState,\r\n PauseStreamRequestState, RequestStreamPriceChangeRequestState,\r\n ResumeStreamRequestState,\r\n UpdateStreamRequestState\r\n} from '../stream/stream.state';\r\nimport { GetStreamSalesRequestState } from '../stream-sales/stream-sales.state';\r\nimport { GetSubscriptionsRequestState } from '../subscription/subscription.state';\r\nimport { GetTimezonesRequestState } from '../timezone/timezone.state';\r\nimport {\r\n GetBuyerTierReportsListRequestState,\r\n GetSellerReportsListRequestState,\r\n GetStreamReportsListRequestState\r\n} from '../report/report.state';\r\nimport {\r\n GetBuyerTierReportDocumentRequestState,\r\n GetBuyerTierReportDocumentsListRequestState,\r\n GetSellerReportDocumentRequestState,\r\n GetSellerReportDocumentsListRequestState,\r\n GetStreamReportDocumentRequestState,\r\n GetStreamReportDocumentsListRequestState\r\n} from \"../report-document/report-document.state\";\r\nimport {\r\n GetDocumentSamplingNextRequestState,\r\n GetDocumentSamplingRequestState\r\n} from \"../document-sampling/document-sampling.state\";\r\nimport { GetApplicationSubmissionBuyerExchangeRequestState } from '../application-submission-buyer-exchange/application-submission-buyer-exchange.state';\r\n\r\nexport class RequestsGetterState {\r\n @Selector([\r\n GetTimezonesRequestState,\r\n GetRegionsRequestState,\r\n GetLobbySummaryRequestState,\r\n SendMessageRequestState,\r\n GetNotificationsRequestState,\r\n GetCompanyRequestState,\r\n GetSessionRequestState,\r\n GetSubscriptionsRequestState,\r\n GetSellerReputationRequestState,\r\n GetSellerReputationFindingsRequestState,\r\n GetBuyerDemographicsRequestState,\r\n GetBuyerDemographicMapRequestState,\r\n ResumeBuyerTierRequestState,\r\n PauseBuyerTierRequestState,\r\n GetBuyerTierRequestState,\r\n AddClosureRequestState,\r\n GetBuyerFilterLayoutPoliciesRequestState,\r\n UpdateBuyerTierFilterRequestState,\r\n CreateBuyerTierFilterRequestState,\r\n AddFreetextTierFilterRequestState,\r\n RemoveFreetextTierFilterRequestState,\r\n GetBuyerAdjustorLayoutPoliciesRequestState,\r\n CreateBuyerTierAdjustorRequestState,\r\n UpdateBuyerTierAdjustorRequestState,\r\n DeleteBuyerTierAdjustmentRequestState,\r\n GetChartRequestState,\r\n GetBuyerTierSellersRequestState,\r\n GetBuyerSellersRequestState,\r\n AddBuyerTierSellerRequestState,\r\n RemoveBuyerTierSellerRequestState,\r\n RequestBuyerTierPriceChangeRequestState,\r\n GetStreamRequestState,\r\n GetStreamSalesRequestState,\r\n UpdateStreamRequestState,\r\n ResumeStreamRequestState,\r\n PauseStreamRequestState,\r\n RequestStreamPriceChangeRequestState,\r\n GetBuyerTierReportsListRequestState,\r\n GetBuyerTierReportDocumentRequestState,\r\n GetBuyerTierReportDocumentsListRequestState,\r\n\r\n GetStreamReportsListRequestState,\r\n GetStreamReportDocumentRequestState,\r\n GetStreamReportDocumentsListRequestState,\r\n\r\n GetSellerReportsListRequestState,\r\n GetSellerReportDocumentRequestState,\r\n GetSellerReportDocumentsListRequestState,\r\n\r\n GetDocumentSamplingRequestState,\r\n GetDocumentSamplingNextRequestState,\r\n GetApplicationSubmissionBuyerExchangeRequestState,\r\n ])\r\n static getShowRequestsSpinner(...state: IRequest[]) {\r\n return !!state.find((request) => request.loading === true );\r\n }\r\n}\r\n","import { ISellerCommission } from '../../../shared/models/seller/seller-commission.interface';\r\nimport { SupplementalTableId } from '../../../shared/models/seller/supplemental-table-id.enum';\r\n\r\nconst ActionTypes = {\r\n GET_SELLER_COMMISSION: '[Seller] Get Seller Commission',\r\n GET_SELLER_COMMISSION_SUCCESS: '[Seller] Get Seller Commission Success',\r\n GET_SELLER_COMMISSION_FAIL: '[Seller] Get Seller Commission Fail',\r\n SET_SELLER_COMMISSION_CURRENT_CHART: '[Seller] Set Seller Commission Current Chart',\r\n};\r\n\r\nexport class GetSellerCommission {\r\n static type = ActionTypes.GET_SELLER_COMMISSION;\r\n\r\n constructor(public payload: {\r\n pseudonym: string;\r\n timezoneId: number;\r\n startTime: string;\r\n endTime: string;\r\n supplementalTableId: SupplementalTableId;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetSellerCommissionSuccess {\r\n static type = ActionTypes.GET_SELLER_COMMISSION_SUCCESS;\r\n\r\n constructor(\r\n public payload: ISellerCommission,\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetSellerCommissionFail {\r\n static type = ActionTypes.GET_SELLER_COMMISSION_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class SetSellerCommissionCurrentChart {\r\n static type = ActionTypes.SET_SELLER_COMMISSION_CURRENT_CHART;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { StateReset } from 'ngxs-reset-plugin';\r\n\r\nimport { ISellerCommission } from '../../../shared/models/seller/seller-commission.interface';\r\nimport { ChartState } from '../chart/chart.state';\r\nimport {\r\n GetSellerCommission,\r\n GetSellerCommissionFail,\r\n GetSellerCommissionSuccess,\r\n SetSellerCommissionCurrentChart\r\n} from './seller-commission.actions';\r\n\r\n@RequestState('getSellerCommission')\r\n@Injectable()\r\nexport class GetSellerCommissionRequestState {\r\n}\r\n\r\nexport interface SellerCommissionStateModel {\r\n entities: { [key: string]: ISellerCommission };\r\n ids: string[];\r\n selectedEntityId: string;\r\n currentChart: number;\r\n}\r\n\r\n@State({\r\n name: 'sellerCommission',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n selectedEntityId: null,\r\n currentChart: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerCommissionState {\r\n\r\n @Action(GetSellerCommission)\r\n getSellerCommission({dispatch}: StateContext, {payload}: GetSellerCommission) {\r\n\r\n const {pseudonym, ...requestBody} = payload;\r\n const request = this.httpClient.post(`sellers/seller/${pseudonym}/commission`, requestBody);\r\n dispatch(new StateReset(ChartState));\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerCommissionRequestState,\r\n request,\r\n failAction: GetSellerCommissionFail,\r\n successAction: GetSellerCommissionSuccess,\r\n metadata: pseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetSellerCommissionFail)\r\n getSellerCommissionFail() {\r\n console.log('getSellerCommissionFail - request error');\r\n }\r\n\r\n @Action(GetSellerCommissionSuccess)\r\n getSellerCommissionSuccess(\r\n {dispatch, getState, patchState}: StateContext,\r\n {payload: commission, metadata: sellerPseudonym}: GetSellerCommissionSuccess\r\n ) {\r\n const state = getState();\r\n\r\n patchState({\r\n entities: {...state.entities, [sellerPseudonym]: commission},\r\n selectedEntityId: sellerPseudonym,\r\n currentChart: state.currentChart || commission.initialChart ,\r\n ids: [...state.ids, sellerPseudonym],\r\n });\r\n }\r\n\r\n @Action(SetSellerCommissionCurrentChart)\r\n setBuyerTierSalesCurrentChart(\r\n {patchState}: StateContext,\r\n {payload: currentChart}: SetSellerCommissionCurrentChart,\r\n ) {\r\n patchState({currentChart});\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n\r\n}\r\n","import { IDemographicMap } from '../../../shared/models/demographics/demographic-map.interface';\r\n\r\nconst ActionTypes = {\r\n SET_SELLER_DEMOGRAPHIC_MAP: '[SellerDemographicMap] Set Seller Demographic Map',\r\n\r\n GET_SELLER_DEMOGRAPHIC_MAP: '[SellerDemographicMap] Get Seller Demographic Map',\r\n GET_SELLER_DEMOGRAPHIC_MAP_SUCCESS: '[SellerDemographicMap] Get Seller Demographic Map Success',\r\n GET_SELLER_DEMOGRAPHIC_MAP_FAIL: '[SellerDemographicMap] Get Seller Demographic Map Fail',\r\n};\r\n\r\nexport class SetSellerDemographicMap {\r\n static type = ActionTypes.SET_SELLER_DEMOGRAPHIC_MAP;\r\n\r\n constructor(public payload: {\r\n sellerDemographicMap: IDemographicMap;\r\n sellerPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetSellerDemographicMap {\r\n static type = ActionTypes.GET_SELLER_DEMOGRAPHIC_MAP;\r\n\r\n constructor(public payload: {\r\n sellerPseudonym: string;\r\n regionalMapDemographicsPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetSellerDemographicMapSuccess {\r\n static type = ActionTypes.GET_SELLER_DEMOGRAPHIC_MAP_SUCCESS;\r\n\r\n constructor(\r\n public payload: IDemographicMap,\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetSellerDemographicMapFail {\r\n static type = ActionTypes.GET_SELLER_DEMOGRAPHIC_MAP_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IDemographicMap } from '../../../shared/models/demographics/demographic-map.interface';\r\nimport {\r\n GetSellerDemographicMap,\r\n GetSellerDemographicMapFail,\r\n GetSellerDemographicMapSuccess,\r\n SetSellerDemographicMap\r\n} from './seller-demographic-map.actions';\r\n\r\n@RequestState('getSellerDemographicMap')\r\n@Injectable()\r\nexport class GetSellerDemographicMapRequestState {\r\n}\r\n\r\nexport interface SellerDemographicMapStateModel {\r\n entities: { [key: string]: IDemographicMap };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'sellerDemographicMap',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerDemographicMapState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n @Action(SetSellerDemographicMap)\r\n setSellerDemographicMap(\r\n {patchState, getState}: StateContext,\r\n {payload: {sellerDemographicMap, sellerPseudonym}}: SetSellerDemographicMap\r\n ) {\r\n const state = getState();\r\n patchState({\r\n entities: {\r\n ...state.entities,\r\n [sellerPseudonym]: sellerDemographicMap\r\n },\r\n ids: state.ids.find(id => id === sellerPseudonym)\r\n ? [...state.ids]\r\n : [...state.ids, sellerPseudonym],\r\n });\r\n }\r\n\r\n @Action(GetSellerDemographicMap)\r\n getSellerDemographicMap(\r\n {dispatch}: StateContext,\r\n {payload: {sellerPseudonym, regionalMapDemographicsPseudonym}}: GetSellerDemographicMap\r\n ) {\r\n const request = this.httpClient.get(\r\n `sellers/seller/${sellerPseudonym}/demographics/captured/${regionalMapDemographicsPseudonym}/map`\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerDemographicMapRequestState,\r\n request,\r\n failAction: GetSellerDemographicMapFail,\r\n successAction: GetSellerDemographicMapSuccess,\r\n metadata: sellerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetSellerDemographicMapFail)\r\n getSellerDemographicMapFail() {\r\n console.log('getSellerDemographicMap - request error');\r\n }\r\n\r\n @Action(GetSellerDemographicMapSuccess)\r\n getSellerDemographicMapSuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload: sellerDemographicMap, metadata: sellerPseudonym}: GetSellerDemographicMapSuccess,\r\n ) {\r\n return dispatch(new SetSellerDemographicMap({ sellerPseudonym, sellerDemographicMap }));\r\n }\r\n}\r\n","import { IDemographics } from '../../../shared/models/demographics/demographics.interface';\r\nimport { IDemographicsData } from '../../../shared/models/demographics/demographics-data.interface';\r\n\r\nconst ActionTypes = {\r\n SET_SELLER_DEMOGRAPHICS: '[SellerDemographics] Set Seller Demographics',\r\n\r\n GET_SELLER_DEMOGRAPHICS: '[SellerDemographics] Get Seller Demographics',\r\n GET_SELLER_DEMOGRAPHICS_SUCCESS: '[SellerDemographics] Get Seller Demographics Success',\r\n GET_SELLER_DEMOGRAPHICS_FAIL: '[SellerDemographics] Get Seller Demographics Fail',\r\n};\r\n\r\nexport class SetSellerDemographics {\r\n static type = ActionTypes.SET_SELLER_DEMOGRAPHICS;\r\n\r\n constructor(public payload: {\r\n sellerDemographics: IDemographics[];\r\n sellerPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetSellerDemographics {\r\n static type = ActionTypes.GET_SELLER_DEMOGRAPHICS;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetSellerDemographicsSuccess {\r\n static type = ActionTypes.GET_SELLER_DEMOGRAPHICS_SUCCESS;\r\n\r\n constructor(\r\n public payload: IDemographicsData,\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetSellerDemographicsFail {\r\n static type = ActionTypes.GET_SELLER_DEMOGRAPHICS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IDemographicsData } from '../../../shared/models/demographics/demographics-data.interface';\r\nimport { GetSellerDemographicMap } from '../seller-demographic-map/seller-demographic-map.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetSellerDemographics,\r\n GetSellerDemographicsFail,\r\n GetSellerDemographicsSuccess,\r\n SetSellerDemographics,\r\n} from './seller-demographics.actions';\r\n\r\n@RequestState('getSellerDemographics')\r\n@Injectable()\r\nexport class GetSellerDemographicsRequestState {\r\n}\r\n\r\nexport interface SellerDemographicsStateModel {\r\n entities: { [key: string]: IDemographicsData };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'sellerDemographics',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerDemographicsState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n @Action(SetSellerDemographics)\r\n setSellerDemographics(\r\n {patchState, getState}: StateContext,\r\n {payload: {sellerDemographics, sellerPseudonym}}: SetSellerDemographics\r\n ) {\r\n const state = getState();\r\n const demographicsToSet = sellerDemographics.map((demographic) => ({...demographic, actorPseudonym: sellerPseudonym}));\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, demographicsToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetSellerDemographics)\r\n getSellerDemographics(\r\n {dispatch}: StateContext,\r\n {payload: sellerPseudonym}: GetSellerDemographics\r\n ) {\r\n const request = this.httpClient.get(`sellers/seller/${sellerPseudonym}/demographics`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerDemographicsRequestState,\r\n request,\r\n failAction: GetSellerDemographicsFail,\r\n successAction: GetSellerDemographicsSuccess,\r\n metadata: sellerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetSellerDemographicsFail)\r\n getSellerDemographicsFail() {\r\n console.log('getSellerDemographics - request error');\r\n }\r\n\r\n @Action(GetSellerDemographicsSuccess)\r\n getSellerDemographicsSuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload: sellerDemographics, metadata: sellerPseudonym}: GetSellerDemographicsSuccess,\r\n ) {\r\n return dispatch([\r\n new SetSellerDemographics({ sellerPseudonym, sellerDemographics: sellerDemographics.demographics }),\r\n new GetSellerDemographicMap({\r\n sellerPseudonym,\r\n regionalMapDemographicsPseudonym: sellerDemographics.regionalMapDemographicsPseudonym\r\n }),\r\n ]);\r\n }\r\n}\r\n","import { ISellerNonRedirectSample } from '../../../shared/models/seller/seller-non-redirect-sample.interface';\r\n\r\nconst ActionTypes = {\r\n SET_SELLER_NON_REDIRECT_SAMPLES: '[Seller] Set Seller Non Redirect Samples',\r\n GET_SELLER_NON_REDIRECT_SAMPLES: '[Seller] Get Seller Non Redirect Samples',\r\n GET_SELLER_NON_REDIRECT_SAMPLES_SUCCESS: '[Seller] Get Seller Non Redirect Samples Success',\r\n GET_SELLER_NON_REDIRECT_SAMPLES_FAIL: '[Seller] Get Seller Non Redirect Samples Fail',\r\n};\r\n\r\nexport class SetSellerNonRedirectSamples {\r\n static type = ActionTypes.SET_SELLER_NON_REDIRECT_SAMPLES;\r\n\r\n constructor(public payload: ISellerNonRedirectSample[]) {\r\n }\r\n}\r\n\r\nexport class GetSellerNonRedirectSamples {\r\n static type = ActionTypes.GET_SELLER_NON_REDIRECT_SAMPLES;\r\n\r\n constructor(public payload: {\r\n pseudonym: string;\r\n page: number;\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetSellerNonRedirectSamplesSuccess {\r\n static type = ActionTypes.GET_SELLER_NON_REDIRECT_SAMPLES_SUCCESS;\r\n\r\n constructor(public payload: {\r\n items: ISellerNonRedirectSample[]\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetSellerNonRedirectSamplesFail {\r\n static type = ActionTypes.GET_SELLER_NON_REDIRECT_SAMPLES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { PaginationHeaders } from '../../../shared/models/pagination-headers.enum';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetSellerNonRedirectSamples,\r\n GetSellerNonRedirectSamplesFail,\r\n GetSellerNonRedirectSamplesSuccess,\r\n SetSellerNonRedirectSamples\r\n} from './seller-non-redirect-samples.actions';\r\n\r\n@RequestState('getSellerNonRedirectSamples')\r\n@Injectable()\r\nexport class GetSellerNonRedirectSamplesRequestState {\r\n}\r\n\r\nexport interface SellerNonRedirectSamplesStateModel {\r\n entities: { [key: string]: any };\r\n ids: string[];\r\n page: number;\r\n pageSize: number;\r\n hasNext: boolean;\r\n}\r\n\r\n@State({\r\n name: 'sellerNonRedirectSamples',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n page: 1,\r\n pageSize: 5,\r\n hasNext: true,\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerNonRedirectSamplesState {\r\n\r\n @Action(GetSellerNonRedirectSamples)\r\n getSellerNonRedirectSamples(\r\n {dispatch, getState, patchState}: StateContext,\r\n {payload: {pseudonym, page}}: GetSellerNonRedirectSamples\r\n ) {\r\n const {pageSize} = getState();\r\n const request = this.httpClient.get(\r\n `sellers/seller/${pseudonym}/nonredirects`,\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageSize]: pageSize.toString(),\r\n [PaginationHeaders.PageNumber]: page.toString()\r\n }),\r\n }\r\n );\r\n patchState({page});\r\n return dispatch(createRequestAction({\r\n state: GetSellerNonRedirectSamplesRequestState,\r\n request,\r\n failAction: GetSellerNonRedirectSamplesFail,\r\n successAction: GetSellerNonRedirectSamplesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetSellerNonRedirectSamplesFail)\r\n getSellerNonRedirectSamplesFail() {\r\n console.log('GetSellerNonRedirectSamplesFail - request error');\r\n }\r\n\r\n @Action(GetSellerNonRedirectSamplesSuccess)\r\n getSellerNonRedirectSamplesSuccess(\r\n {dispatch, getState, patchState}: StateContext,\r\n {payload: {items}}: GetSellerNonRedirectSamplesSuccess\r\n ) {\r\n const {pageSize} = getState();\r\n patchState({\r\n hasNext: items.length >= pageSize,\r\n });\r\n return dispatch(new SetSellerNonRedirectSamples(items));\r\n }\r\n\r\n @Action(SetSellerNonRedirectSamples)\r\n setSellerNonRedirectSamples(\r\n {patchState, getState}: StateContext,\r\n {payload: samples}: SetSellerNonRedirectSamples\r\n ) {\r\n const state = getState();\r\n const { entities, ids } = insertIdsAndEntities(state, samples, 'correlationId');\r\n patchState({\r\n entities,\r\n ids\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n}\r\n","import { ISellerReputationFinding } from '../../../shared/models/seller/reputation/seller-reputation-finding.interface';\r\nimport { SellerReputationTableId } from '../../../shared/models/seller/reputation/seller-reputation-table-id.enum';\r\n\r\nconst ActionTypes = {\r\n GET_SELLER_REPUTATION_FINDINGS: '[SellerReputationFinding] Get Seller Reputation Findings',\r\n GET_SELLER_REPUTATION_FINDINGS_SUCCESS: '[SellerReputationFinding] Get Seller Reputation Findings Success',\r\n GET_SELLER_REPUTATION_FINDINGS_FAIL: '[SellerReputationFinding] Get Seller Reputation Findings Fail',\r\n MARK_RESOLVED_REPUTATION_FINDING: '[SellerReputationFinding] Mark Resolved Reputation Finding',\r\n MARK_RESOLVED_REPUTATION_FINDING_SUCCESS: '[SellerReputationFinding] Mark Resolved Reputation Finding Success',\r\n MARK_RESOLVED_REPUTATION_FINDING_FAIL: '[SellerReputationFinding] Mark Resolved Reputation Finding Resolve Fail',\r\n REQUEST_ASSISTANCE_REPUTATION_FINDING: '[SellerReputationFinding] Request Assistance Reputation Finding Resolve',\r\n REQUEST_ASSISTANCE_REPUTATION_FINDING_SUCCESS: '[SellerReputationFinding] Request Assistance Reputation Finding Resolve Success',\r\n REQUEST_ASSISTANCE_REPUTATION_FINDING_FAIL: '[SellerReputationFinding] Request Assistance Reputation Finding Resolve Fail',\r\n};\r\n\r\nexport class GetSellerReputationFindings {\r\n static type = ActionTypes.GET_SELLER_REPUTATION_FINDINGS;\r\n\r\n constructor(public payload: { sellerPseudonym: string, reputationTableId: SellerReputationTableId }) {\r\n }\r\n}\r\n\r\nexport class GetSellerReputationFindingsSuccess {\r\n static type = ActionTypes.GET_SELLER_REPUTATION_FINDINGS_SUCCESS;\r\n\r\n constructor(\r\n public payload: { findings: ISellerReputationFinding[]},\r\n public metadata: { sellerPseudonym: string, reputationTableId: SellerReputationTableId }\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetSellerReputationFindingsFail {\r\n static type = ActionTypes.GET_SELLER_REPUTATION_FINDINGS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class MarkResolvedReputationFinding {\r\n static type = ActionTypes.MARK_RESOLVED_REPUTATION_FINDING;\r\n\r\n constructor(public payload: { sellerPseudonym: string, findingPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class MarkResolvedReputationFindingSuccess {\r\n static type = ActionTypes.MARK_RESOLVED_REPUTATION_FINDING_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: { sellerPseudonym: string, findingPseudonym: string }\r\n ) {\r\n }\r\n}\r\n\r\nexport class MarkResolvedReputationFindingFail {\r\n static type = ActionTypes.MARK_RESOLVED_REPUTATION_FINDING_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RequestAssistanceReputationFinding {\r\n static type = ActionTypes.REQUEST_ASSISTANCE_REPUTATION_FINDING;\r\n\r\n constructor(public payload: { sellerPseudonym: string, findingPseudonym: string, value: string }) {\r\n }\r\n}\r\n\r\nexport class RequestAssistanceReputationFindingSuccess {\r\n static type = ActionTypes.REQUEST_ASSISTANCE_REPUTATION_FINDING_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: { sellerPseudonym: string, findingPseudonym: string, value: string }\r\n ) {}\r\n}\r\n\r\nexport class RequestAssistanceReputationFindingFail {\r\n static type = ActionTypes.REQUEST_ASSISTANCE_REPUTATION_FINDING_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { SellerReputationCharacteristics } from '../../../shared/models/seller/reputation/seller-reputation-characteristics.enum';\r\nimport { ISellerReputationFinding } from '../../../shared/models/seller/reputation/seller-reputation-finding.interface';\r\nimport {\r\n GetSellerReputationFindings,\r\n GetSellerReputationFindingsFail,\r\n GetSellerReputationFindingsSuccess,\r\n MarkResolvedReputationFinding,\r\n MarkResolvedReputationFindingFail,\r\n MarkResolvedReputationFindingSuccess,\r\n RequestAssistanceReputationFinding,\r\n RequestAssistanceReputationFindingFail,\r\n RequestAssistanceReputationFindingSuccess\r\n} from './seller-reputation-finding.actions';\r\n\r\n@RequestState('getSellerReputationFindings')\r\n@Injectable()\r\nexport class GetSellerReputationFindingsRequestState {\r\n}\r\n\r\n@RequestState('markResolvedReputationFindingRequestState')\r\n@Injectable()\r\nexport class MarkResolvedReputationFindingRequestState {\r\n}\r\n\r\n@RequestState('requestAssistanceFindingRequestState')\r\n@Injectable()\r\nexport class RequestAssistanceFindingRequestState {\r\n}\r\n\r\nexport interface SellerReputationFindingStateModel {\r\n entities: { [key: string]: ISellerReputationFinding };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'sellerReputationFinding',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerReputationFindingState {\r\n\r\n @Action(GetSellerReputationFindings)\r\n getSellerReputationFindings({dispatch}: StateContext, {payload}: GetSellerReputationFindings) {\r\n\r\n const request = this.httpClient.get(`sellers/seller/${payload.sellerPseudonym}/reputation/${payload.reputationTableId}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerReputationFindingsRequestState,\r\n request,\r\n failAction: GetSellerReputationFindingsFail,\r\n successAction: GetSellerReputationFindingsSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(GetSellerReputationFindingsFail)\r\n getSellerReputationFindingsFail() {\r\n console.log('getSellerReputationFindingsFail - request error');\r\n }\r\n\r\n @Action(GetSellerReputationFindingsSuccess)\r\n getSellerReputationFindingsSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: reputation, metadata}: GetSellerReputationFindingsSuccess\r\n ) {\r\n\r\n if (!reputation.findings) {\r\n return;\r\n }\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = reputation.findings.reduce((acc, item) => {\r\n item.sellerPseudonym = metadata.sellerPseudonym;\r\n item.reputationTableId = metadata.reputationTableId;\r\n return {\r\n entities: {...acc.entities, [item.pseudonym]: item},\r\n ids: state.ids.indexOf(item.pseudonym) === -1 ? [...acc.ids, item.pseudonym] : [...acc.ids],\r\n };\r\n }, {entities: {...state.entities}, ids: [...state.ids]});\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(MarkResolvedReputationFinding)\r\n markResolvedReputationFinding({dispatch}: StateContext, {payload}: MarkResolvedReputationFinding) {\r\n\r\n const request = this.httpClient.post(`sellers/seller/${payload.sellerPseudonym}/reputation/${payload.findingPseudonym}/resolved`, '');\r\n\r\n return dispatch(createRequestAction({\r\n state: MarkResolvedReputationFindingRequestState,\r\n request,\r\n failAction: MarkResolvedReputationFindingFail,\r\n successAction: MarkResolvedReputationFindingSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(MarkResolvedReputationFindingFail)\r\n markResolvedReputationFindingFail() {\r\n console.log('markResolvedReputationFindingFail - request error');\r\n }\r\n\r\n @Action(MarkResolvedReputationFindingSuccess)\r\n markResolvedReputationFindingSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: MarkResolvedReputationFindingSuccess\r\n ) {\r\n const state = getState();\r\n\r\n const updatedFinding = {\r\n ...state.entities[metadata.findingPseudonym],\r\n characteristics: state.entities[metadata.findingPseudonym].characteristics + SellerReputationCharacteristics.ResolutionReviewPending,\r\n };\r\n\r\n patchState({\r\n entities: {...state.entities, [metadata.findingPseudonym]: updatedFinding}\r\n });\r\n }\r\n\r\n @Action(RequestAssistanceReputationFinding)\r\n requestAssistanceReputationFinding(\r\n {dispatch}: StateContext,\r\n {payload}: RequestAssistanceReputationFinding\r\n ) {\r\n\r\n const request = this.httpClient.post(\r\n `sellers/seller/${payload.sellerPseudonym}/reputation/${payload.findingPseudonym}/assistance`,\r\n {Value: payload.value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: RequestAssistanceFindingRequestState,\r\n request,\r\n failAction: RequestAssistanceReputationFindingFail,\r\n successAction: RequestAssistanceReputationFindingSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(RequestAssistanceReputationFindingFail)\r\n requestAssistanceReputationFindingFail() {\r\n console.log('requestAssistanceReputationFindingFail - request error');\r\n }\r\n\r\n @Action(RequestAssistanceReputationFindingSuccess)\r\n requestAssistanceReputationFindingSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: RequestAssistanceReputationFindingSuccess\r\n ) {\r\n const state = getState();\r\n\r\n const updatedFinding = {\r\n ...state.entities[metadata.findingPseudonym],\r\n characteristics: state.entities[metadata.findingPseudonym].characteristics + SellerReputationCharacteristics.AssistanceRequested,\r\n };\r\n\r\n patchState({\r\n entities: {...state.entities, [metadata.findingPseudonym]: updatedFinding}\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n\r\n}\r\n","import { ISellerReputation } from '../../../shared/models/seller/reputation/seller-reputation.interface';\r\n\r\nconst ActionTypes = {\r\n GET_SELLER_REPUTATION: '[SellerReputation] Get Seller Reputation',\r\n GET_SELLER_REPUTATION_SUCCESS: '[SellerReputation] Get Seller Reputation Success',\r\n GET_SELLER_REPUTATION_FAIL: '[SellerReputation] Get Seller Reputation Fail',\r\n};\r\n\r\nexport class GetSellerReputation {\r\n static type = ActionTypes.GET_SELLER_REPUTATION;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetSellerReputationSuccess {\r\n static type = ActionTypes.GET_SELLER_REPUTATION_SUCCESS;\r\n\r\n constructor(public payload: ISellerReputation, public sellerPseudonym: string) {\r\n }\r\n}\r\n\r\nexport class GetSellerReputationFail {\r\n static type = ActionTypes.GET_SELLER_REPUTATION_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ISellerReputation } from '../../../shared/models/seller/reputation/seller-reputation.interface';\r\nimport { GetSellerReputation, GetSellerReputationFail, GetSellerReputationSuccess } from './seller-reputation.actions';\r\n\r\n@RequestState('getSellerReputation')\r\n@Injectable()\r\nexport class GetSellerReputationRequestState {\r\n}\r\n\r\nexport interface SellerReputationStateModel {\r\n entities: { [key: string]: ISellerReputation };\r\n ids: string[];\r\n selectedEntityId: string;\r\n}\r\n\r\n@State({\r\n name: 'sellerReputation',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n selectedEntityId: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerReputationState {\r\n\r\n @Action(GetSellerReputation)\r\n getSellerReputation({dispatch}: StateContext, {payload: pseudonym}: GetSellerReputation) {\r\n\r\n const request = this.httpClient.get(`sellers/seller/${pseudonym}/reputation`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerReputationRequestState,\r\n request,\r\n failAction: GetSellerReputationFail,\r\n successAction: GetSellerReputationSuccess,\r\n metadata: pseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetSellerReputationFail)\r\n getSellerReputationFail() {\r\n console.log('getSellerReputationFail - request error');\r\n }\r\n\r\n @Action(GetSellerReputationSuccess)\r\n getSellerReputationSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: reputation, sellerPseudonym}: GetSellerReputationSuccess\r\n ) {\r\n const state = getState();\r\n\r\n patchState({\r\n entities: {...state.entities, [sellerPseudonym]: reputation},\r\n selectedEntityId: sellerPseudonym,\r\n ids: [...state.ids, sellerPseudonym],\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n\r\n}\r\n","import { ISeller } from '../../../shared/models/seller/seller.interface';\r\n\r\nconst ActionTypes = {\r\n SET_SELLERS: '[Seller] Set Sellers',\r\n SET_SELECTED_SELLER: '[Seller] Set Selected Seller',\r\n GET_SELLER: '[Seller] Get Seller',\r\n GET_SELLER_SUCCESS: '[Seller] Get Seller Success',\r\n GET_SELLER_FAIL: '[Seller] Get Seller Fail',\r\n};\r\n\r\nexport class SetSellers {\r\n static type = ActionTypes.SET_SELLERS;\r\n\r\n constructor(public payload: ISeller[]) {\r\n }\r\n}\r\n\r\nexport class SetSelectedSeller {\r\n static type = ActionTypes.SET_SELECTED_SELLER;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetSeller {\r\n static type = ActionTypes.GET_SELLER;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetSellerSuccess {\r\n static type = ActionTypes.GET_SELLER_SUCCESS;\r\n\r\n constructor(public payload: ISeller) {\r\n }\r\n}\r\n\r\nexport class GetSellerFail {\r\n static type = ActionTypes.GET_SELLER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ISeller } from '../../../shared/models/seller/seller.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetSeller, GetSellerFail, GetSellerSuccess, SetSelectedSeller, SetSellers } from './seller.actions';\r\n\r\n@RequestState('getSeller')\r\n@Injectable()\r\nexport class GetSellerRequestState {\r\n}\r\n\r\nexport interface SellerStateModel {\r\n entities: { [key: string]: ISeller };\r\n ids: string[];\r\n selectedEntityId: string;\r\n}\r\n\r\n@State({\r\n name: 'seller',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n selectedEntityId: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class SellerState {\r\n @Action(SetSellers)\r\n setSellers({patchState, getState}: StateContext, {payload: sellers}: SetSellers) {\r\n if (!sellers) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, sellers, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(SetSelectedSeller)\r\n setSelectedSeller({patchState}: StateContext, {payload: pseudonym}: SetSelectedSeller) {\r\n patchState({\r\n selectedEntityId: pseudonym,\r\n });\r\n }\r\n\r\n @Action(GetSeller)\r\n getSeller({dispatch}: StateContext, {payload}: GetSeller) {\r\n\r\n const request = this.httpClient.get(`sellers/seller/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSellerRequestState,\r\n request,\r\n failAction: GetSellerFail,\r\n successAction: GetSellerSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetSellerFail)\r\n getSellerFail() {\r\n console.log('getSellerFail - request error');\r\n }\r\n\r\n @Action(GetSellerSuccess)\r\n getSellerSuccess(\r\n {dispatch, patchState}: StateContext,\r\n {payload: seller}: GetSellerSuccess,\r\n ) {\r\n return dispatch([\r\n new SetSellers([seller]),\r\n new SetSelectedSeller(seller.pseudonym),\r\n ]);\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { Selector } from '@ngxs/store';\r\n\r\nimport { SessionState, SessionStateModel } from './session.state';\r\n\r\nexport class SessionGetterState {\r\n @Selector([SessionState])\r\n static getSession(state: SessionStateModel) {\r\n return state.session;\r\n }\r\n}\r\n","import { ISession } from '../../../shared/models/session/session.interface';\r\n\r\nconst ActionTypes = {\r\n GET_SESSION: '[Session] Get Session',\r\n GET_SESSION_SUCCESS: '[Session] Get Session Success',\r\n GET_SESSION_FAIL: '[Session] Get Session Fail',\r\n UPDATE_SESSION: '[Session] Update Session',\r\n UPDATE_SESSION_SUCCESS: '[Session] Update Session Success',\r\n UPDATE_SESSION_FAIL: '[Session] Update Session Fail',\r\n};\r\n\r\nexport class GetSession {\r\n static type = ActionTypes.GET_SESSION;\r\n}\r\n\r\nexport class GetSessionSuccess {\r\n static type = ActionTypes.GET_SESSION_SUCCESS;\r\n\r\n constructor(public payload: ISession) {\r\n }\r\n}\r\n\r\nexport class GetSessionFail {\r\n static type = ActionTypes.GET_SESSION_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateSession {\r\n static type = ActionTypes.UPDATE_SESSION;\r\n\r\n constructor(public payload: { fieldName: string, value: string | number }) {\r\n }\r\n}\r\n\r\nexport class UpdateSessionSuccess {\r\n static type = ActionTypes.UPDATE_SESSION_SUCCESS;\r\n\r\n constructor(public payload: string, public updatedField: { fieldName: string, value: string | number }) {\r\n }\r\n}\r\n\r\nexport class UpdateSessionFail {\r\n static type = ActionTypes.UPDATE_SESSION_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ClientType } from '../../../shared/models/session/client-type.enum';\r\nimport { ISession } from '../../../shared/models/session/session.interface';\r\nimport { SetSelectedCompanyId } from '../company/company.actions';\r\nimport { SetPermissions } from '../permission/permission.actions';\r\nimport { SetSelectedTeamMemberCompanyId } from '../team-member/team-member.actions';\r\nimport { GetSession, GetSessionFail, GetSessionSuccess, UpdateSession, UpdateSessionFail, UpdateSessionSuccess } from './session.actions';\r\nimport { SetSelectedPaymentsCompanyId } from '../company-payments/company-payments.actions';\r\n\r\nexport interface SessionStateModel {\r\n session: ISession | null;\r\n}\r\n\r\n@RequestState('getSession')\r\n@Injectable()\r\nexport class GetSessionRequestState {\r\n}\r\n\r\n@RequestState('updateSession')\r\n@Injectable()\r\nexport class UpdateSessionRequestState {\r\n}\r\n\r\n@State({\r\n name: 'session',\r\n defaults: {\r\n session: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class SessionState {\r\n @Action(GetSession)\r\n getSession(ctx: StateContext) {\r\n\r\n const request = this.httpClient.get(`identity/session/${ClientType.PtPartner}`);\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: GetSessionRequestState,\r\n request,\r\n failAction: GetSessionFail,\r\n successAction: GetSessionSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetSessionFail)\r\n getSessionFail() {\r\n console.log('getSessionFail - request error');\r\n }\r\n\r\n @Action(GetSessionSuccess)\r\n getSessionSuccess(\r\n {patchState, dispatch}: StateContext,\r\n {payload}: GetSessionSuccess\r\n ) {\r\n\r\n const {permissions, ...session} = payload;\r\n\r\n const managedCompanies = session.affiliatedCompanies.filter(\r\n (company) => !!company.allowedToManagePayments\r\n );\r\n\r\n dispatch([\r\n new SetPermissions(permissions),\r\n new SetSelectedCompanyId(session.affiliatedCompanies[0]?.pseudonym),\r\n new SetSelectedTeamMemberCompanyId(session.affiliatedCompanies[0]?.pseudonym),\r\n new SetSelectedPaymentsCompanyId(managedCompanies[0]?.pseudonym),\r\n ]);\r\n\r\n patchState({\r\n session,\r\n });\r\n }\r\n\r\n @Action(UpdateSession)\r\n updateSession(ctx: StateContext, {payload}: UpdateSession) {\r\n\r\n const request = this.httpClient.patch(`identity/update/${payload.fieldName}`, {Value: payload.value});\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: UpdateSessionRequestState,\r\n request,\r\n failAction: UpdateSessionFail,\r\n successAction: UpdateSessionSuccess,\r\n metadata: {...payload},\r\n }));\r\n }\r\n\r\n @Action(UpdateSessionFail)\r\n updateSessionFail() {\r\n console.log('updateSessionFail - request error');\r\n }\r\n\r\n @Action(UpdateSessionSuccess)\r\n updateSessionSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, updatedField: {fieldName, value}}: UpdateSessionSuccess\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedFieldName = fieldName.replace(fieldName[0], fieldName[0].toLowerCase());\r\n\r\n const updatedSession = {...state.session, preferences: {...state.session.preferences, [updatedFieldName]: value}};\r\n\r\n patchState({\r\n session: updatedSession,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { FilterGroupTypes } from '../../../shared/models/common/filters/filter-group-types.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { StreamAdjustorLayoutPolicyState, StreamAdjustorLayoutPolicyStateModel } from './stream-adjustor-layout-policy.state';\r\n\r\nexport class StreamAdjustorLayoutPolicyGetterState {\r\n\r\n @Selector([StreamAdjustorLayoutPolicyState])\r\n static getAllAdjustorPolicies(state: StreamAdjustorLayoutPolicyStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getAdjustorGroupsByRegionId(regionId: number) {\r\n return createSelector(\r\n [StreamAdjustorLayoutPolicyGetterState.getAllAdjustorPolicies],\r\n (\r\n allAdjustorPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n const foundedAdjustors = allAdjustorPolicies.filter((adjustor) => adjustor.regionId === regionId);\r\n const groupTypes = foundedAdjustors.map((group) => group.groupType);\r\n return groupTypes.filter((groupType, index) => groupTypes.indexOf(groupType) === index);\r\n }\r\n );\r\n }\r\n\r\n static getAdjustorPoliciesByGroupType(regionId: number, groupType: FilterGroupTypes) {\r\n return createSelector(\r\n [StreamAdjustorLayoutPolicyGetterState.getAllAdjustorPolicies],\r\n (\r\n allAdjustorPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n return allAdjustorPolicies.filter((policy) => policy.regionId === regionId && policy.groupType === Number(groupType));\r\n }\r\n );\r\n }\r\n\r\n}\r\n","import { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\n\r\nconst ActionTypes = {\r\n GET_STREAM_LAYOUT_ADJUSTORS: '[StreamAdjustorLayoutPolicy] Get Stream Adjustor Layout Policies',\r\n GET_STREAM_LAYOUT_ADJUSTORS_SUCCESS: '[StreamAdjustorLayoutPolicy] Get Stream Adjustor Layout Policies Success',\r\n GET_STREAM_LAYOUT_ADJUSTORS_FAIL: '[StreamAdjustorLayoutPolicy] Get Stream Adjustor Layout Policies Fail',\r\n};\r\n\r\nexport class GetStreamAdjustorLayoutPolicies {\r\n static type = ActionTypes.GET_STREAM_LAYOUT_ADJUSTORS;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n\r\nexport class GetStreamAdjustorLayoutPoliciesSuccess {\r\n static type = ActionTypes.GET_STREAM_LAYOUT_ADJUSTORS_SUCCESS;\r\n\r\n constructor(public payload: {\r\n policies: IFilterLayoutPolicy[],\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetStreamAdjustorLayoutPoliciesFail {\r\n static type = ActionTypes.GET_STREAM_LAYOUT_ADJUSTORS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetStreamAdjustorLayoutPolicies,\r\n GetStreamAdjustorLayoutPoliciesFail,\r\n GetStreamAdjustorLayoutPoliciesSuccess\r\n} from './stream-adjustor-layout-policy.actions';\r\n\r\n\r\n@RequestState('getStreamAdjustorLayoutPolicies')\r\n@Injectable()\r\nexport class GetStreamAdjustorLayoutPoliciesRequestState {\r\n}\r\n\r\nexport interface StreamAdjustorLayoutPolicyStateModel {\r\n entities: { [key: string]: IFilterLayoutPolicy };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'streamAdjustorLayoutPolicy',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamAdjustorLayoutPolicyState {\r\n @Action(GetStreamAdjustorLayoutPolicies)\r\n getStreamAdjustorLayoutPolicies(\r\n {dispatch}: StateContext,\r\n {payload}: GetStreamAdjustorLayoutPolicies\r\n ) {\r\n const request = this.httpClient.get(`streams/adjustor/policies/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamAdjustorLayoutPoliciesRequestState,\r\n request,\r\n failAction: GetStreamAdjustorLayoutPoliciesFail,\r\n successAction: GetStreamAdjustorLayoutPoliciesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetStreamAdjustorLayoutPoliciesFail)\r\n getStreamAdjustorLayoutPoliciesFail() {\r\n console.log('getStreamAdjustorLayoutPoliciesFail - request error');\r\n }\r\n\r\n @Action(GetStreamAdjustorLayoutPoliciesSuccess)\r\n getStreamAdjustorLayoutPoliciesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload}: GetStreamAdjustorLayoutPoliciesSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, payload.policies, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport {\r\n IManagedSeller\r\n} from '../../../shared/models/common/seller-management/managed-seller.interface';\r\n\r\nconst ActionTypes = {\r\n GET_STREAM_AGENT_SELLERS: '[StreamAgentSeller] Get Stream Agent Sellers',\r\n GET_STREAM_AGENT_SELLERS_SUCCESS: '[StreamAgentSeller] Get Stream Agent Sellers Success',\r\n GET_STREAM_AGENT_SELLERS_FAIL: '[StreamAgentSeller] Get Stream Agent Sellers Fail',\r\n};\r\n\r\nexport class GetStreamAgentSellers {\r\n static type = ActionTypes.GET_STREAM_AGENT_SELLERS;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetStreamAgentSellersSuccess {\r\n static type = ActionTypes.GET_STREAM_AGENT_SELLERS_SUCCESS;\r\n\r\n constructor(\r\n public payload: {sellers: IManagedSeller[]},\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class GetStreamAgentSellersFail {\r\n static type = ActionTypes.GET_STREAM_AGENT_SELLERS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n\r\n }\r\n}\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { of, throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\n\r\nimport {\r\n IManagedSeller\r\n} from '../../../shared/models/common/seller-management/managed-seller.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetStreamAgentSellers,\r\n GetStreamAgentSellersFail,\r\n GetStreamAgentSellersSuccess\r\n} from './stream-agent-seller.actions';\r\n\r\n@RequestState('getStreamAgentSellers')\r\n@Injectable()\r\nexport class GetStreamAgentSellersRequestState {\r\n}\r\n\r\nexport interface StreamAgentSellerStateModel {\r\n entities: { [key: string]: IManagedSeller };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'streamAgentSeller',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamAgentSellerState {\r\n\r\n @Action(GetStreamAgentSellers)\r\n getStreamAgentSellers({dispatch}: StateContext, {payload}: GetStreamAgentSellers) {\r\n\r\n const request = this.httpClient.get(`streams/agent/${payload}/sellers`).pipe(\r\n catchError(error => {\r\n if (error.status === 404) {\r\n return of({sellers: []});\r\n }\r\n return throwError(error);\r\n })\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamAgentSellersRequestState,\r\n request,\r\n failAction: GetStreamAgentSellersFail,\r\n successAction: GetStreamAgentSellersSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(GetStreamAgentSellersFail)\r\n getStreamAgentSellersFail() {\r\n console.log('getStreamAgentSellersFail - request error');\r\n }\r\n\r\n @Action(GetStreamAgentSellersSuccess)\r\n getStreamAgentSellersSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {sellers}, metadata}: GetStreamAgentSellersSuccess,\r\n ) {\r\n\r\n const sellersToSet = sellers.map((item) => ({...item, actorPseudonym: metadata}));\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, sellersToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { IStreamAgent } from '../../../shared/models/stream-agent/stream-agent.interface';\r\n\r\nconst ActionTypes = {\r\n SET_STREAM_AGENTS: '[StreamAgent] Set Stream Agents',\r\n\r\n GET_STREAM_AGENT: '[StreamAgent] Get Stream Agent',\r\n GET_STREAM_AGENT_SUCCESS: '[StreamAgent] Get Stream Agent Success',\r\n GET_STREAM_AGENT_FAIL: '[StreamAgent] Get Stream Agent Fail',\r\n};\r\n\r\nexport class SetStreamAgents {\r\n static type = ActionTypes.SET_STREAM_AGENTS;\r\n\r\n constructor(public payload: IStreamAgent[]) {\r\n }\r\n}\r\n\r\nexport class GetStreamAgent {\r\n static type = ActionTypes.GET_STREAM_AGENT;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n\r\nexport class GetStreamAgentSuccess {\r\n static type = ActionTypes.GET_STREAM_AGENT_SUCCESS;\r\n\r\n constructor(public payload: IStreamAgent) {\r\n }\r\n}\r\n\r\nexport class GetStreamAgentFail {\r\n static type = ActionTypes.GET_STREAM_AGENT_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IOpeningHours } from '../../../shared/models/common/opening-hours/opening-hours.interface';\r\nimport { IStreamAgent } from '../../../shared/models/stream-agent/stream-agent.interface';\r\nimport { SetClosures } from '../closure/closure.actions';\r\nimport { SetOpeningHours } from '../opening-hours/opening-hours.actions';\r\nimport { SetStreams } from '../stream/stream.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetStreamAgent,\r\n GetStreamAgentFail,\r\n GetStreamAgentSuccess, SetStreamAgents,\r\n} from './stream-agent.actions';\r\n\r\n\r\n@RequestState('getStreamAgent')\r\n@Injectable()\r\nexport class GetStreamAgentRequestState {\r\n}\r\n\r\nexport interface StreamAgentStateModel {\r\n entities: { [key: string]: IStreamAgent };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'streamAgent',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamAgentState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n\r\n @Action(SetStreamAgents)\r\n setStreamAgents({patchState, getState}: StateContext, {payload: streamAgents}: SetStreamAgents) {\r\n if (!streamAgents) {\r\n return;\r\n }\r\n const state = getState();\r\n const {entities, ids} = insertIdsAndEntities(state, streamAgents, 'pseudonym');\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetStreamAgent)\r\n getStreamAgent({dispatch, getState}: StateContext, {payload}: GetStreamAgent) {\r\n const request = this.httpClient.get(`streams/agent/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamAgentRequestState,\r\n request,\r\n failAction: GetStreamAgentFail,\r\n successAction: GetStreamAgentSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetStreamAgentFail)\r\n getStreamAgentFail() {\r\n console.log('getStreamAgentFail - request error');\r\n }\r\n\r\n @Action(GetStreamAgentSuccess)\r\n getStreamAgentSuccess(\r\n {dispatch}: StateContext,\r\n {payload}: GetStreamAgentSuccess,\r\n ) {\r\n const openingHoursToSet: IOpeningHours[] = [];\r\n const {streams, openingHours, ...streamAgent} = payload;\r\n openingHoursToSet.push(openingHours);\r\n\r\n const {streamsToSet, closuresToSet} = streams.reduce((acc, stream) => {\r\n const {openingHours: streamOpeningHours, filters, adjustors, ...streamToSet} = stream;\r\n\r\n const updatedFilters = filters ? filters.map((filter) => ({...filter, streamPseudonym: stream.pseudonym})) : [];\r\n const updatedAdjustors = adjustors ? adjustors.map((adjustor) => ({...adjustor, actorPseudonym: stream.pseudonym})) : [];\r\n\r\n const {closures, ...streamOpeningHoursToSet} = streamOpeningHours;\r\n\r\n openingHoursToSet.push(streamOpeningHoursToSet);\r\n\r\n const updatedClosures = closures?.map((closure) => ({\r\n ...closure,\r\n streamPseudonym: stream.pseudonym,\r\n })) || [];\r\n\r\n return {\r\n streamsToSet: [\r\n ...acc.streamsToSet,\r\n {...streamToSet, streamAgentPseudonym: streamAgent.pseudonym, openingHoursPseudonym: streamOpeningHours.pseudonym},\r\n ],\r\n filtersToSet: [...acc.filtersToSet, ...updatedFilters],\r\n adjustorsToSet: [...acc.adjustorsToSet, ...updatedAdjustors],\r\n closuresToSet: [...acc.closuresToSet, ...updatedClosures]\r\n };\r\n }, {streamsToSet: [], filtersToSet: [], adjustorsToSet: [], closuresToSet: []});\r\n\r\n dispatch([\r\n new SetOpeningHours(openingHoursToSet),\r\n new SetClosures(closuresToSet),\r\n new SetStreamAgents([{...streamAgent, openingHoursPseudonym: openingHours.pseudonym}]),\r\n new SetStreams(streamsToSet),\r\n ]);\r\n }\r\n}\r\n\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { FilterGroupTypes } from '../../../shared/models/common/filters/filter-group-types.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { StreamFilterLayoutPolicyState, StreamFilterLayoutPolicyStateModel } from './stream-filter-layout-policy.state';\r\n\r\nexport class StreamFilterLayoutPolicyGetterState {\r\n\r\n @Selector([StreamFilterLayoutPolicyState])\r\n static getAllFilterPolicies(state: StreamFilterLayoutPolicyStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getFilterGroupsByRegionId(regionId: number) {\r\n return createSelector(\r\n [StreamFilterLayoutPolicyGetterState.getAllFilterPolicies],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n const foundedFilters = allPolicies.filter((policy) => policy.regionId === regionId);\r\n const groupTypes = foundedFilters.map((group) => group.groupType);\r\n return groupTypes.filter((groupType, index) => groupTypes.indexOf(groupType) === index);\r\n }\r\n );\r\n }\r\n\r\n static getFilterPoliciesByGroupType(regionId: number, groupType: FilterGroupTypes) {\r\n return createSelector(\r\n [StreamFilterLayoutPolicyGetterState.getAllFilterPolicies],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n ) => {\r\n return allPolicies.filter((policy) => policy.regionId === regionId && policy.groupType === Number(groupType));\r\n }\r\n );\r\n }\r\n\r\n}\r\n","import { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\n\r\nconst ActionTypes = {\r\n GET_STREAM_LAYOUT_POLICIES: '[StreamFilterLayoutPolicy] Get Stream Filter Layout Policies',\r\n GET_STREAM_LAYOUT_POLICIES_SUCCESS: '[StreamFilterLayoutPolicy] Get Stream Filter Layout Policies Success',\r\n GET_STREAM_LAYOUT_POLICIES_FAIL: '[StreamFilterLayoutPolicy] Get Stream Filter Layout Policies Fail',\r\n};\r\n\r\nexport class GetStreamFilterLayoutPolicies {\r\n static type = ActionTypes.GET_STREAM_LAYOUT_POLICIES;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n\r\nexport class GetStreamFilterLayoutPoliciesSuccess {\r\n static type = ActionTypes.GET_STREAM_LAYOUT_POLICIES_SUCCESS;\r\n\r\n constructor(public payload: {\r\n policies: IFilterLayoutPolicy[],\r\n }) {\r\n }\r\n}\r\n\r\nexport class GetStreamFilterLayoutPoliciesFail {\r\n static type = ActionTypes.GET_STREAM_LAYOUT_POLICIES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetStreamFilterLayoutPolicies,\r\n GetStreamFilterLayoutPoliciesFail,\r\n GetStreamFilterLayoutPoliciesSuccess\r\n} from './stream-filter-layout-policy.actions';\r\n\r\n\r\n@RequestState('getStreamFilterLayoutPolicies')\r\n@Injectable()\r\nexport class GetStreamFilterLayoutPoliciesRequestState {\r\n}\r\n\r\nexport interface StreamFilterLayoutPolicyStateModel {\r\n entities: { [key: string]: IFilterLayoutPolicy };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'streamFilterLayoutPolicy',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamFilterLayoutPolicyState {\r\n @Action(GetStreamFilterLayoutPolicies)\r\n getStreamFilterLayoutPolicies({dispatch}: StateContext, {payload}: GetStreamFilterLayoutPolicies) {\r\n\r\n const request = this.httpClient.get(`streams/filter/policies/${payload}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamFilterLayoutPoliciesRequestState,\r\n request,\r\n failAction: GetStreamFilterLayoutPoliciesFail,\r\n successAction: GetStreamFilterLayoutPoliciesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetStreamFilterLayoutPoliciesFail)\r\n getStreamFilterLayoutPoliciesFail() {\r\n console.log('getStreamFilterLayoutPoliciesFail - request error');\r\n }\r\n\r\n @Action(GetStreamFilterLayoutPoliciesSuccess)\r\n getStreamFilterLayoutPoliciesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload}: GetStreamFilterLayoutPoliciesSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, payload.policies, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { IFilter } from '../../../shared/models/common/filters/filter.interface';\r\nimport { FilterFocalProperties } from '../../../shared/models/common/filters/filter-focal-properties.enum';\r\nimport { IFilterLayoutPolicy } from '../../../shared/models/common/filters/filter-layout-policy.interface';\r\nimport {\r\n StreamFilterLayoutPolicyGetterState\r\n} from '../stream-filter-layout-policy/stream-filter-layout-policy-getter.state';\r\nimport { StreamFilterState, StreamFilterStateModel } from './stream-filter.state';\r\n\r\nexport class StreamFilterGetterState {\r\n @Selector([StreamFilterState])\r\n static getAllStreamFilters(state: StreamFilterStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getFiltersByStreamPseudonym(streamPseudonym: string, regionId: number) {\r\n return createSelector(\r\n [\r\n StreamFilterLayoutPolicyGetterState.getAllFilterPolicies,\r\n StreamFilterGetterState.getAllStreamFilters,\r\n ],\r\n (\r\n allPolicies: IFilterLayoutPolicy[],\r\n allFilters: IFilter[],\r\n ) => {\r\n const streamFilters = allFilters.filter((streamFilter) => streamFilter.actorPseudonym === streamPseudonym && streamFilter.enabled);\r\n return streamFilters.map((streamFilter) => ({\r\n ...streamFilter,\r\n policy: allPolicies.find((policy) => policy.propertyId === streamFilter.propertyId && policy.regionId === regionId)\r\n }));\r\n }\r\n );\r\n }\r\n\r\n static getFilterByStreamPseudonymAndPropertyId(streamPseudonym: string, propertyId: FilterFocalProperties) {\r\n return createSelector(\r\n [StreamFilterGetterState.getAllStreamFilters],\r\n (allFilters: IFilter[]) => {\r\n return allFilters.find(\r\n (streamFilter) =>\r\n streamFilter.actorPseudonym === streamPseudonym\r\n && streamFilter.enabled\r\n && streamFilter.propertyId === propertyId\r\n );\r\n }\r\n );\r\n }\r\n}\r\n","import { IFilter } from '../../../shared/models/common/filters/filter.interface';\r\nimport {\r\n ICreateStreamFilterPayload\r\n} from '../../../shared/models/stream/filter/create-stream-filter-payload.interface';\r\nimport {\r\n IEnableStreamFilterPayload\r\n} from '../../../shared/models/stream/filter/enable-stream-filter-payload.interface';\r\nimport {\r\n IUpdateFreetextStreamFilterPayload\r\n} from '../../../shared/models/stream/filter/update-freetext-stream-filter-payload.interface';\r\nimport {\r\n IUpdateStreamFilterPayload\r\n} from '../../../shared/models/stream/filter/update-stream-filter-payload.interface';\r\n\r\nconst ActionTypes = {\r\n SET_STREAM_FILTERS: '[StreamFilter] Set Stream Filters',\r\n\r\n UPDATE_STREAM_FILTER: '[StreamFilter] Update Stream Filter',\r\n UPDATE_STREAM_FILTER_SUCCESS: '[StreamFilter] Update Stream Filter Success',\r\n UPDATE_STREAM_FILTER_FAIL: '[StreamFilter] Update Stream Filter Fail',\r\n\r\n ENABLE_STREAM_FILTER: '[StreamFilter] Enable Stream Filter',\r\n ENABLE_STREAM_FILTER_SUCCESS: '[StreamFilter] Enable Stream Filter Success',\r\n ENABLE_STREAM_FILTER_FAIL: '[StreamFilter] Enable Stream Filter Fail',\r\n\r\n DISABLE_STREAM_FILTER: '[StreamFilter] Disable Stream Filter',\r\n DISABLE_STREAM_FILTER_SUCCESS: '[StreamFilter] Disable Stream Filter Success',\r\n DISABLE_STREAM_FILTER_FAIL: '[StreamFilter] Disable Stream Filter Fail',\r\n\r\n CREATE_STREAM_FILTER: '[StreamFilter] Create Stream Filter',\r\n CREATE_STREAM_FILTER_SUCCESS: '[StreamFilter] Create Stream Filter Success',\r\n CREATE_STREAM_FILTER_FAIL: '[StreamFilter] Create Stream Filter Fail',\r\n\r\n ADD_FREETEXT_STREAM_FILTER: '[StreamFilter] Add Freetext Stream Filter',\r\n ADD_FREETEXT_STREAM_FILTER_SUCCESS: '[StreamFilter] Add Freetext Stream Filter Success',\r\n ADD_FREETEXT_STREAM_FILTER_FAIL: '[StreamFilter] Add Freetext Stream Filter Fail',\r\n\r\n REMOVE_FREETEXT_STREAM_FILTER: '[StreamFilter] Remove Freetext Stream Filter',\r\n REMOVE_FREETEXT_STREAM_FILTER_SUCCESS: '[StreamFilter] Remove Freetext Stream Filter Success',\r\n REMOVE_FREETEXT_STREAM_FILTER_FAIL: '[StreamFilter] Remove Freetext Stream Filter Fail',\r\n};\r\n\r\nexport class SetStreamFilters {\r\n static type = ActionTypes.SET_STREAM_FILTERS;\r\n\r\n constructor(public payload: IFilter[]) {\r\n }\r\n}\r\n\r\nexport class UpdateStreamFilter {\r\n static type = ActionTypes.UPDATE_STREAM_FILTER;\r\n\r\n constructor(public payload: IUpdateStreamFilterPayload) {\r\n }\r\n}\r\n\r\nexport class UpdateStreamFilterSuccess {\r\n static type = ActionTypes.UPDATE_STREAM_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IFilter,\r\n public metadata: IUpdateStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateStreamFilterFail {\r\n static type = ActionTypes.UPDATE_STREAM_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class EnableStreamFilter {\r\n static type = ActionTypes.ENABLE_STREAM_FILTER;\r\n\r\n constructor(\r\n public payload: IEnableStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableStreamFilterSuccess {\r\n static type = ActionTypes.ENABLE_STREAM_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IEnableStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class EnableStreamFilterFail {\r\n static type = ActionTypes.ENABLE_STREAM_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class DisableStreamFilter {\r\n static type = ActionTypes.DISABLE_STREAM_FILTER;\r\n\r\n constructor(\r\n public payload: IEnableStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableStreamFilterSuccess {\r\n static type = ActionTypes.DISABLE_STREAM_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IEnableStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class DisableStreamFilterFail {\r\n static type = ActionTypes.DISABLE_STREAM_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class CreateStreamFilter {\r\n static type = ActionTypes.CREATE_STREAM_FILTER;\r\n\r\n constructor(public payload: ICreateStreamFilterPayload) {\r\n }\r\n}\r\n\r\nexport class CreateStreamFilterSuccess {\r\n static type = ActionTypes.CREATE_STREAM_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IFilter,\r\n public metadata: ICreateStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class CreateStreamFilterFail {\r\n static type = ActionTypes.CREATE_STREAM_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class AddFreetextStreamFilter {\r\n static type = ActionTypes.ADD_FREETEXT_STREAM_FILTER;\r\n\r\n constructor(public payload: IUpdateFreetextStreamFilterPayload) {\r\n }\r\n}\r\n\r\nexport class AddFreetextStreamFilterSuccess {\r\n static type = ActionTypes.ADD_FREETEXT_STREAM_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateFreetextStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class AddFreetextStreamFilterFail {\r\n static type = ActionTypes.ADD_FREETEXT_STREAM_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RemoveFreetextStreamFilter {\r\n static type = ActionTypes.REMOVE_FREETEXT_STREAM_FILTER;\r\n\r\n constructor(public payload: IUpdateFreetextStreamFilterPayload) {\r\n }\r\n}\r\n\r\nexport class RemoveFreetextStreamFilterSuccess {\r\n static type = ActionTypes.REMOVE_FREETEXT_STREAM_FILTER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateFreetextStreamFilterPayload,\r\n ) {\r\n }\r\n}\r\n\r\nexport class RemoveFreetextStreamFilterFail {\r\n static type = ActionTypes.REMOVE_FREETEXT_STREAM_FILTER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { IFilter } from '../../../shared/models/common/filters/filter.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddFreetextStreamFilter,\r\n AddFreetextStreamFilterFail,\r\n AddFreetextStreamFilterSuccess,\r\n CreateStreamFilter,\r\n CreateStreamFilterFail,\r\n CreateStreamFilterSuccess,\r\n DisableStreamFilter,\r\n DisableStreamFilterFail,\r\n DisableStreamFilterSuccess,\r\n EnableStreamFilter,\r\n EnableStreamFilterFail,\r\n EnableStreamFilterSuccess,\r\n RemoveFreetextStreamFilter,\r\n RemoveFreetextStreamFilterFail,\r\n RemoveFreetextStreamFilterSuccess,\r\n SetStreamFilters,\r\n UpdateStreamFilter,\r\n UpdateStreamFilterFail,\r\n UpdateStreamFilterSuccess\r\n} from './stream-filter.actions';\r\n\r\n@RequestState('updateStreamFilter')\r\n@Injectable()\r\nexport class UpdateStreamFilterRequestState {\r\n}\r\n\r\n@RequestState('enableStreamFilter')\r\n@Injectable()\r\nexport class EnableStreamFilterRequestState {\r\n}\r\n\r\n@RequestState('disableStreamFilter')\r\n@Injectable()\r\nexport class DisableStreamFilterRequestState {\r\n}\r\n\r\n@RequestState('createStreamFilter')\r\n@Injectable()\r\nexport class CreateStreamFilterRequestState {\r\n}\r\n\r\n@RequestState('addFreetextStreamFilter')\r\n@Injectable()\r\nexport class AddFreetextStreamFilterRequestState {\r\n}\r\n\r\n@RequestState('removeFreetextStreamFilter')\r\n@Injectable()\r\nexport class RemoveFreetextStreamFilterRequestState {\r\n}\r\n\r\nexport interface StreamFilterStateModel {\r\n entities: { [key: string]: IFilter };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'streamFilter',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamFilterState {\r\n @Action(SetStreamFilters)\r\n setStreamFilters({patchState, getState}: StateContext, {payload: filters}: SetStreamFilters) {\r\n if (!filters) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, filters, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(UpdateStreamFilter)\r\n updateStreamFilter(\r\n {dispatch}: StateContext,\r\n {payload}: UpdateStreamFilter\r\n ) {\r\n const {streamAgentPseudonym, streamPseudonym, filterPseudonym, values, characteristics, operator} = payload;\r\n\r\n const request = this.httpClient.post(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/filter/${filterPseudonym}`,\r\n {values, characteristics, operator}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateStreamFilterRequestState,\r\n request,\r\n failAction: UpdateStreamFilterFail,\r\n successAction: UpdateStreamFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(UpdateStreamFilterSuccess)\r\n updateStreamTierFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: UpdateStreamFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, actorPseudonym: metadata.streamPseudonym}\r\n }\r\n });\r\n }\r\n\r\n @Action(UpdateStreamFilterFail)\r\n updateStreamTierFilterFail() {\r\n console.log('updateStreamFilterFail - request error');\r\n }\r\n\r\n @Action(EnableStreamFilter)\r\n enableStreamFilter(\r\n {dispatch}: StateContext,\r\n {payload}: EnableStreamFilter\r\n ) {\r\n const {streamAgentPseudonym, streamPseudonym, filterPseudonym} = payload;\r\n\r\n\r\n const request = this.httpClient.request('patch',\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/filter/${filterPseudonym}/enable`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: EnableStreamFilterRequestState,\r\n request,\r\n failAction: EnableStreamFilterFail,\r\n successAction: EnableStreamFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(EnableStreamFilterSuccess)\r\n enableStreamFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {metadata}: EnableStreamFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {...state.entities[metadata.filterPseudonym], enabled: true}\r\n }\r\n });\r\n }\r\n\r\n @Action(EnableStreamFilterFail)\r\n enableStreamFilterFail() {\r\n console.log('enableStreamFilterFail - request error');\r\n }\r\n\r\n @Action(DisableStreamFilter)\r\n disableStreamFilter(\r\n {dispatch}: StateContext,\r\n {payload}: DisableStreamFilter\r\n ) {\r\n const {streamAgentPseudonym, streamPseudonym, filterPseudonym} = payload;\r\n\r\n const request = this.httpClient.request('patch',\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/filter/${filterPseudonym}/disable`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: DisableStreamFilterRequestState,\r\n request,\r\n failAction: DisableStreamFilterFail,\r\n successAction: DisableStreamFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(DisableStreamFilterSuccess)\r\n disableStreamFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {metadata}: DisableStreamFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {...state.entities[metadata.filterPseudonym], enabled: false}\r\n }\r\n });\r\n }\r\n\r\n @Action(DisableStreamFilterFail)\r\n disableStreamFilterFail() {\r\n console.log('disableStreamFilterFail - request error');\r\n }\r\n\r\n @Action(CreateStreamFilter)\r\n createStreamFilter(\r\n {dispatch}: StateContext,\r\n {payload}: CreateStreamFilter\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, policyPseudonym, ...data} = payload;\r\n\r\n const request = this.httpClient.put(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/filter/policy/${policyPseudonym}`,\r\n data\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: CreateStreamFilterRequestState,\r\n request,\r\n failAction: CreateStreamFilterFail,\r\n successAction: CreateStreamFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(CreateStreamFilterSuccess)\r\n createStreamFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: CreateStreamFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ids: [...state.ids, payload.pseudonym],\r\n entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, actorPseudonym: metadata.streamPseudonym}\r\n }\r\n });\r\n }\r\n\r\n @Action(CreateStreamFilterFail)\r\n createStreamFilterFail() {\r\n console.log('createStreamFilterFail - request error');\r\n }\r\n\r\n @Action(AddFreetextStreamFilter)\r\n addFreetextTierFilter(\r\n {dispatch}: StateContext,\r\n {payload}: AddFreetextStreamFilter\r\n ) {\r\n const {streamAgentPseudonym, streamPseudonym, filterPseudonym, values} = payload;\r\n\r\n const request = this.httpClient.patch(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/filter/${filterPseudonym}/values`,\r\n {values: values},\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: AddFreetextStreamFilterRequestState,\r\n request,\r\n failAction: AddFreetextStreamFilterFail,\r\n successAction: AddFreetextStreamFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(AddFreetextStreamFilterSuccess)\r\n addFreetextStreamFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {metadata}: AddFreetextStreamFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {\r\n ...state.entities[metadata.filterPseudonym],\r\n values: [...state.entities[metadata.filterPseudonym].values, ...metadata.values],\r\n }\r\n }\r\n });\r\n }\r\n\r\n @Action(AddFreetextStreamFilterFail)\r\n addFreetextStreamFilterFail() {\r\n console.log('addFreetextStreamFilterFail - request error');\r\n }\r\n\r\n\r\n @Action(RemoveFreetextStreamFilter)\r\n removeFreetextStreamFilter(\r\n {dispatch}: StateContext,\r\n {payload}: RemoveFreetextStreamFilter\r\n ) {\r\n const {streamAgentPseudonym, streamPseudonym, filterPseudonym, values} = payload;\r\n\r\n const request = this.httpClient.request('delete',\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/filter/${filterPseudonym}/values`,\r\n {body: {values}},\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveFreetextStreamFilterRequestState,\r\n request,\r\n failAction: RemoveFreetextStreamFilterFail,\r\n successAction: RemoveFreetextStreamFilterSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(RemoveFreetextStreamFilterSuccess)\r\n removeFreetextStreamFilterSuccess(\r\n {patchState, getState}: StateContext,\r\n {metadata}: RemoveFreetextStreamFilterSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n const updatedValues = state.entities[metadata.filterPseudonym].values.filter((val) => {\r\n const foundVal = metadata.values.findIndex((removedValue) => removedValue === val);\r\n return foundVal === -1;\r\n });\r\n\r\n patchState({\r\n ...state, entities: {\r\n ...state.entities, [metadata.filterPseudonym]: {\r\n ...state.entities[metadata.filterPseudonym],\r\n values: updatedValues,\r\n }\r\n }\r\n });\r\n }\r\n\r\n @Action(RemoveFreetextStreamFilterFail)\r\n removeFreetextStreamFilterFail() {\r\n console.log('removeFreetextStreamFilterFail - request error');\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n\r\n","import { IGetStreamSalesPayload } from '../../../shared/models/stream/get-stream-sales-payload.interface';\r\nimport { IStreamSales } from '../../../shared/models/stream/stream-sales.interface';\r\n\r\nconst ActionTypes = {\r\n GET_STREAM_SALES: '[StreamSales] Get Stream Sales',\r\n GET_STREAM_SALES_SUCCESS: '[StreamSales] Get Stream Sales Success',\r\n GET_STREAM_SALES_FAIL: '[StreamSales] Get Stream Sales Fail',\r\n SET_STREAM_SALES_CURRENT_CHART: '[StreamSales] Set Stream Sales Current Chart',\r\n};\r\n\r\nexport class GetStreamSales {\r\n static type = ActionTypes.GET_STREAM_SALES;\r\n\r\n constructor(public payload: IGetStreamSalesPayload) {\r\n }\r\n}\r\n\r\nexport class GetStreamSalesSuccess {\r\n static type = ActionTypes.GET_STREAM_SALES_SUCCESS;\r\n\r\n constructor(public payload: IStreamSales, public metadata: string) {\r\n }\r\n}\r\n\r\nexport class GetStreamSalesFail {\r\n static type = ActionTypes.GET_STREAM_SALES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class SetStreamSalesCurrentChart {\r\n static type = ActionTypes.SET_STREAM_SALES_CURRENT_CHART;\r\n\r\n constructor(public payload: number) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { StateReset } from 'ngxs-reset-plugin';\r\n\r\nimport { IStreamSales } from '../../../shared/models/stream/stream-sales.interface';\r\nimport { ChartState } from '../chart/chart.state';\r\nimport {\r\n GetStreamSales,\r\n GetStreamSalesFail,\r\n GetStreamSalesSuccess,\r\n SetStreamSalesCurrentChart\r\n} from './stream-sales.actions';\r\n\r\n@RequestState('getStreamSales')\r\n@Injectable()\r\nexport class GetStreamSalesRequestState {\r\n}\r\n\r\nexport interface StreamSalesStateModel {\r\n entities: { [key: string]: IStreamSales };\r\n ids: string[];\r\n currentChart: number;\r\n}\r\n\r\n@State({\r\n name: 'streamSales',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n currentChart: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamSalesState {\r\n @Action(GetStreamSales)\r\n getStreamSales({dispatch}: StateContext, {payload}: GetStreamSales) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, ...requestBody} = payload;\r\n\r\n const request = this.httpClient.post(`streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/sales`, requestBody);\r\n\r\n dispatch(new StateReset(ChartState));\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamSalesRequestState,\r\n request,\r\n failAction: GetStreamSalesFail,\r\n successAction: GetStreamSalesSuccess,\r\n metadata: payload.streamPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetStreamSalesFail)\r\n getStreamSalesFail() {\r\n console.log('getStreamSalesFail - request error');\r\n }\r\n\r\n @Action(GetStreamSalesSuccess)\r\n getStreamSalesSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: sales, metadata: streamPseudonym}: GetStreamSalesSuccess\r\n ) {\r\n const state = getState();\r\n\r\n patchState({\r\n entities: {...state.entities, [streamPseudonym]: sales},\r\n ids: [...state.ids, streamPseudonym],\r\n currentChart: state.currentChart || sales.initialChart\r\n });\r\n }\r\n\r\n @Action(SetStreamSalesCurrentChart)\r\n setStreamSalesCurrentChart(\r\n {patchState}: StateContext,\r\n {payload: currentChart}: SetStreamSalesCurrentChart,\r\n ) {\r\n patchState({currentChart});\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport {\r\n IManagedSeller\r\n} from '../../../shared/models/common/seller-management/managed-seller.interface';\r\nimport { IAddStreamSellerPayload } from '../../../shared/models/stream/add-stream-seller-payload.interface';\r\n\r\nconst ActionTypes = {\r\n GET_STREAM_SELLERS: '[StreamSeller] Get Stream Sellers',\r\n GET_STREAM_SELLERS_SUCCESS: '[StreamSeller] Get Stream Sellers Success',\r\n GET_STREAM_SELLERS_FAIL: '[StreamSeller] Get Stream Sellers Fail',\r\n\r\n ADD_STREAM_SELLER: '[StreamSeller] Add Stream Seller',\r\n ADD_STREAM_SELLER_SUCCESS: '[StreamSeller] Add Stream Seller Success',\r\n ADD_STREAM_SELLER_FAIL: '[StreamSeller] Add Stream Seller Fail',\r\n\r\n REMOVE_STREAM_SELLER: '[StreamSeller] Remove Stream Seller',\r\n REMOVE_STREAM_SELLER_SUCCESS: '[StreamSeller] Remove Stream Seller Success',\r\n REMOVE_STREAM_SELLER_FAIL: '[StreamSeller] Remove Stream Seller Fail',\r\n};\r\n\r\nexport class GetStreamSellers {\r\n static type = ActionTypes.GET_STREAM_SELLERS;\r\n\r\n constructor(public payload: { streamAgentPseudonym: string, streamPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class GetStreamSellersSuccess {\r\n static type = ActionTypes.GET_STREAM_SELLERS_SUCCESS;\r\n\r\n constructor(\r\n public payload: {sellers: IManagedSeller[]},\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class GetStreamSellersFail {\r\n static type = ActionTypes.GET_STREAM_SELLERS_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n\r\n }\r\n}\r\n\r\nexport class AddStreamSeller {\r\n static type = ActionTypes.ADD_STREAM_SELLER;\r\n\r\n constructor(public payload: IAddStreamSellerPayload) {\r\n }\r\n}\r\n\r\nexport class AddStreamSellerSuccess {\r\n static type = ActionTypes.ADD_STREAM_SELLER_SUCCESS;\r\n\r\n constructor(\r\n public payload: IManagedSeller,\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class AddStreamSellerFail {\r\n static type = ActionTypes.ADD_STREAM_SELLER_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n\r\n }\r\n}\r\n\r\n\r\nexport class RemoveStreamSeller {\r\n static type = ActionTypes.REMOVE_STREAM_SELLER;\r\n\r\n constructor(public payload: {streamPseudonym: string, streamAgentPseudonym: string, managedSellerPseudonym: string}) {\r\n }\r\n}\r\n\r\nexport class RemoveStreamSellerSuccess {\r\n static type = ActionTypes.REMOVE_STREAM_SELLER_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: string,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class RemoveStreamSellerFail {\r\n static type = ActionTypes.REMOVE_STREAM_SELLER_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n\r\n }\r\n}\r\n\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { of, throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\n\r\nimport {\r\n IManagedSeller\r\n} from '../../../shared/models/common/seller-management/managed-seller.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n AddStreamSeller, AddStreamSellerFail,\r\n AddStreamSellerSuccess,\r\n GetStreamSellers,\r\n GetStreamSellersFail,\r\n GetStreamSellersSuccess, RemoveStreamSeller, RemoveStreamSellerFail, RemoveStreamSellerSuccess\r\n} from './stream-seller.actions';\r\n\r\n@RequestState('getStreamSellers')\r\n@Injectable()\r\nexport class GetStreamSellersRequestState {\r\n}\r\n\r\n@RequestState('addStreamSeller')\r\n@Injectable()\r\nexport class AddStreamSellerRequestState {\r\n}\r\n\r\n@RequestState('removeStreamSeller')\r\n@Injectable()\r\nexport class RemoveStreamSellerRequestState {\r\n}\r\n\r\nexport interface StreamSellerStateModel {\r\n entities: { [key: string]: IManagedSeller };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'streamSeller',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamSellerState {\r\n\r\n @Action(GetStreamSellers)\r\n getStreamSellers({dispatch}: StateContext, {payload}: GetStreamSellers) {\r\n const {streamAgentPseudonym, streamPseudonym} = payload;\r\n\r\n const request = this.httpClient.get(`streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/sellers`).pipe(\r\n catchError(error => {\r\n if (error.status === 404) {\r\n return of({sellers: []});\r\n }\r\n return throwError(error);\r\n })\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamSellersRequestState,\r\n request,\r\n failAction: GetStreamSellersFail,\r\n successAction: GetStreamSellersSuccess,\r\n metadata: streamPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetStreamSellersFail)\r\n getStreamSellersFail() {\r\n console.log('getStreamSellersFail - request error');\r\n }\r\n\r\n @Action(GetStreamSellersSuccess)\r\n getStreamSellersSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {sellers}, metadata: streamPseudonym}: GetStreamSellersSuccess,\r\n ) {\r\n\r\n const sellersToSet = sellers.map((item) => ({...item, actorPseudonym: streamPseudonym}));\r\n\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, sellersToSet, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(AddStreamSeller)\r\n addStreamSeller(\r\n {dispatch}: StateContext,\r\n {payload}: AddStreamSeller\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, sellerPseudonym, ...body} = payload;\r\n\r\n const request = this.httpClient.put(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/seller/${sellerPseudonym}`,\r\n body,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: AddStreamSellerRequestState,\r\n request,\r\n failAction: AddStreamSellerFail,\r\n successAction: AddStreamSellerSuccess,\r\n metadata: streamPseudonym,\r\n }));\r\n }\r\n\r\n @Action(AddStreamSellerFail)\r\n addStreamSellerFail() {\r\n console.log('addStreamSellerFail - request error');\r\n }\r\n\r\n @Action(AddStreamSellerSuccess)\r\n addStreamSellerSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: AddStreamSellerSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n patchState({\r\n ids: state.ids.indexOf(payload.pseudonym) === -1 ? [...state.ids, payload.pseudonym] : [...state.ids],\r\n entities: {\r\n ...state.entities, [payload.pseudonym]: {...payload, actorPseudonym: metadata}\r\n }\r\n });\r\n }\r\n\r\n @Action(RemoveStreamSeller)\r\n removeBuyerSeller(\r\n {dispatch}: StateContext,\r\n {payload}: RemoveStreamSeller\r\n ) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, managedSellerPseudonym} = payload;\r\n\r\n const request = this.httpClient.delete(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/seller/${managedSellerPseudonym}`,\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: RemoveStreamSellerRequestState,\r\n request,\r\n failAction: RemoveStreamSellerFail,\r\n successAction: RemoveStreamSellerSuccess,\r\n metadata: managedSellerPseudonym,\r\n }));\r\n }\r\n\r\n @Action(RemoveStreamSellerFail)\r\n removeStreamSellerFail() {\r\n console.log('removeStreamSellerFail - request error');\r\n }\r\n\r\n @Action(RemoveStreamSellerSuccess)\r\n removeStreamSellerSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, metadata}: RemoveStreamSellerSuccess,\r\n ) {\r\n\r\n const state = getState();\r\n\r\n const updatedIds = state.ids.filter((id) => id !== metadata);\r\n\r\n const {[metadata]: currentEntity, ...updatedEntities} = state.entities;\r\n\r\n patchState({\r\n ids: updatedIds,\r\n entities: updatedEntities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { IAdjustor } from '../../../shared/models/common/adjustor/adjustor.interface';\r\nimport { IFilter } from '../../../shared/models/common/filters/filter.interface';\r\nimport { IClosure } from '../../../shared/models/common/opening-hours/closure.interface';\r\nimport { IStream } from '../../../shared/models/stream/stream.interface';\r\nimport { AdjustorGetterState } from '../adjustor/adjustor-getter.state';\r\nimport { ClosureGetterState } from '../closure/closure-getter.state';\r\nimport { OpeningHoursState, OpeningHoursStateModel } from '../opening-hours/opening-hours.state';\r\nimport { RegionState, RegionStateModel } from '../region/region.state';\r\nimport { StreamFilterGetterState } from '../stream-filter/stream-filter-getter.state';\r\nimport { TimezoneState, TimezoneStateModel } from '../timezone/timezone.state';\r\nimport { StreamState, StreamStateModel } from './stream.state';\r\n\r\nexport class StreamGetterState {\r\n @Selector([StreamState])\r\n static getAllStreams(state: StreamStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getStreamByPseudonym(streamPseudonym: string) {\r\n return createSelector(\r\n [\r\n StreamState,\r\n OpeningHoursState,\r\n TimezoneState,\r\n ClosureGetterState.getAllClosures,\r\n StreamFilterGetterState.getAllStreamFilters,\r\n RegionState,\r\n AdjustorGetterState.getAllAdjustors\r\n ],\r\n (\r\n streamState: StreamStateModel,\r\n openingHoursState: OpeningHoursStateModel,\r\n timezoneState: TimezoneStateModel,\r\n allClosures: IClosure[],\r\n allFilters: IFilter[],\r\n regionState: RegionStateModel,\r\n allAdjustors: IAdjustor[]\r\n ) => {\r\n const stream = streamState.entities[streamPseudonym];\r\n if (stream) {\r\n const openingHours = openingHoursState.entities[stream.openingHoursPseudonym];\r\n const closures = allClosures.filter((closure) => closure.actorPseudonym === streamPseudonym);\r\n const closuresWithTimezone = closures.map((closure) => ({...closure, timezone: timezoneState.entities[closure.timezoneId]}));\r\n const region = regionState.entities[stream.regionId];\r\n const filters = allFilters.filter((filter) => filter.actorPseudonym === streamPseudonym);\r\n const adjustors = allAdjustors.filter(adjustor => adjustor.actorPseudonym === streamPseudonym);\r\n\r\n return {\r\n ...stream,\r\n region,\r\n timezone: timezoneState.entities[openingHours?.timezoneId || region?.timeZoneId],\r\n filters,\r\n adjustors,\r\n openingHours: {\r\n ...openingHours,\r\n timezone: timezoneState.entities[openingHours?.timezoneId],\r\n closures: closuresWithTimezone,\r\n },\r\n };\r\n }\r\n });\r\n }\r\n\r\n static getStreamsByStreamAgentPseudonym(streamAgent: string) {\r\n return createSelector([StreamGetterState.getAllStreams], (streams: IStream[]) => {\r\n return streams.filter((stream) => stream.streamAgentPseudonym === streamAgent);\r\n });\r\n }\r\n\r\n static getStreamNameByStreamPseudonym(streamPseudonym: string) {\r\n return createSelector([StreamState], (streams: StreamStateModel) => {\r\n return streams.entities && streams.entities[streamPseudonym]?.name || null;\r\n });\r\n }\r\n}\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { IStream } from '../../../shared/models/stream/stream.interface';\r\nimport { IUpdateStreamPayload } from '../../../shared/models/stream/update-stream-payload.interface';\r\n\r\nconst ActionTypes = {\r\n SET_STREAMS: '[Stream] Set Streams',\r\n\r\n GET_STREAM: '[Stream] Get Stream',\r\n GET_STREAM_SUCCESS: '[Stream] Get Stream Success',\r\n GET_STREAM_FAIL: '[Stream] Get Stream Fail',\r\n\r\n UPDATE_STREAM: '[Stream] Update Stream',\r\n UPDATE_STREAM_SUCCESS: '[Stream] Update Stream Success',\r\n UPDATE_STREAM_FAIL: '[Stream] Update Stream Fail',\r\n\r\n RESUME_STREAM: '[Stream] Resume Streams',\r\n RESUME_STREAM_SUCCESS: '[Stream] Resume Streams Success',\r\n RESUME_STREAM_FAIL: '[Stream] Resume Streams Fail',\r\n\r\n PAUSE_STREAM: '[Stream] Pause Streams',\r\n PAUSE_STREAM_SUCCESS: '[Stream] Pause Streams Success',\r\n PAUSE_STREAM_FAIL: '[Stream] Pause Streams Fail',\r\n\r\n REQUEST_STREAM_PRICE_CHANGE: '[Stream] Request Stream Price Change',\r\n REQUEST_STREAM_PRICE_CHANGE_SUCCESS: '[Stream] Request Stream Price Change Success',\r\n REQUEST_STREAM_PRICE_CHANGE_FAIL: '[Stream] Request Stream Price Change Fail',\r\n};\r\n\r\nexport class SetStreams {\r\n static type = ActionTypes.SET_STREAMS;\r\n\r\n constructor(public payload: IStream[]) {\r\n }\r\n}\r\n\r\nexport class GetStream {\r\n static type = ActionTypes.GET_STREAM;\r\n\r\n constructor(public payload: { streamAgentPseudonym: string, streamPseudonym: string }) {\r\n }\r\n}\r\n\r\nexport class GetStreamSuccess {\r\n static type = ActionTypes.GET_STREAM_SUCCESS;\r\n\r\n constructor(\r\n public payload: IStream,\r\n public metadata: string,\r\n ) {\r\n }\r\n}\r\n\r\nexport class GetStreamFail {\r\n static type = ActionTypes.GET_STREAM_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class UpdateStream {\r\n static type = ActionTypes.UPDATE_STREAM;\r\n\r\n constructor(public payload: IUpdateStreamPayload) {\r\n }\r\n}\r\n\r\nexport class UpdateStreamSuccess {\r\n static type = ActionTypes.UPDATE_STREAM_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: IUpdateStreamPayload,\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class UpdateStreamFail {\r\n static type = ActionTypes.UPDATE_STREAM_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n }\r\n}\r\n\r\nexport class ResumeStream {\r\n static type = ActionTypes.RESUME_STREAM;\r\n\r\n constructor(public payload: {streamAgentPseudonym: string, streamPseudonym: string, pseudonyms: string[]}) {\r\n\r\n }\r\n}\r\n\r\nexport class ResumeStreamSuccess {\r\n static type = ActionTypes.RESUME_STREAM_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public pseudonyms: string[],\r\n ) {\r\n\r\n }\r\n}\r\n\r\nexport class ResumeStreamFail {\r\n static type = ActionTypes.RESUME_STREAM_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n\r\n }\r\n}\r\n\r\nexport class PauseStream {\r\n static type = ActionTypes.PAUSE_STREAM;\r\n\r\n constructor(public payload: {\r\n streamAgentPseudonym: string,\r\n streamPseudonym: string,\r\n pausedUntil: string,\r\n pseudonyms: string[]\r\n }) {\r\n }\r\n}\r\n\r\nexport class PauseStreamSuccess {\r\n static type = ActionTypes.PAUSE_STREAM_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: {\r\n pausedUntil: string,\r\n pseudonyms: string[]\r\n }) {\r\n }\r\n}\r\n\r\nexport class PauseStreamFail {\r\n static type = ActionTypes.PAUSE_STREAM_FAIL;\r\n\r\n constructor(public payload: HttpErrorResponse) {\r\n\r\n }\r\n}\r\n\r\nexport class RequestStreamPriceChange {\r\n static type = ActionTypes.REQUEST_STREAM_PRICE_CHANGE;\r\n\r\n constructor(\r\n public payload: {\r\n streamAgentPseudonym: string,\r\n streamPseudonym: string,\r\n requestPayload: { requestedPrice: number, comment: string }\r\n }\r\n ) {\r\n }\r\n}\r\n\r\nexport class RequestStreamPriceChangeFail {\r\n static type = ActionTypes.REQUEST_STREAM_PRICE_CHANGE_FAIL;\r\n\r\n constructor(\r\n public payload: HttpErrorResponse\r\n ) {\r\n }\r\n}\r\n\r\nexport class RequestStreamPriceChangeSuccess {\r\n static type = ActionTypes.REQUEST_STREAM_PRICE_CHANGE_SUCCESS;\r\n\r\n constructor(\r\n public payload: string,\r\n public metadata: string\r\n ) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport {\r\n JourneyPoliciesCharacteristics\r\n} from '../../../shared/models/common/journey-policies-characteristics.enum';\r\nimport { UpdatedEntityFieldName } from '../../../shared/models/common/updated-entity-field-name.enum';\r\nimport { IStream } from '../../../shared/models/stream/stream.interface';\r\nimport { StreamCharacteristic } from '../../../shared/models/stream/stream-characteristic.enum';\r\nimport { SetAdjustors } from '../adjustor/adjustor.actions';\r\nimport { SetClosures } from '../closure/closure.actions';\r\nimport { SetOpeningHours } from '../opening-hours/opening-hours.actions';\r\nimport { SetStreamFilters } from '../stream-filter/stream-filter.actions';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n GetStream,\r\n GetStreamFail,\r\n GetStreamSuccess,\r\n PauseStream,\r\n PauseStreamFail,\r\n PauseStreamSuccess, RequestStreamPriceChange, RequestStreamPriceChangeFail, RequestStreamPriceChangeSuccess,\r\n ResumeStream,\r\n ResumeStreamFail,\r\n ResumeStreamSuccess,\r\n SetStreams,\r\n UpdateStream,\r\n UpdateStreamFail,\r\n UpdateStreamSuccess\r\n} from './stream.actions';\r\n\r\n@RequestState('getStream')\r\n@Injectable()\r\nexport class GetStreamRequestState {\r\n}\r\n\r\n@RequestState('updateStream')\r\n@Injectable()\r\nexport class UpdateStreamRequestState {\r\n}\r\n\r\n@RequestState('resumeStream')\r\n@Injectable()\r\nexport class ResumeStreamRequestState {\r\n}\r\n\r\n@RequestState('pauseStream')\r\n@Injectable()\r\nexport class PauseStreamRequestState {\r\n}\r\n\r\n@RequestState('requestStreamPriceChange')\r\n@Injectable()\r\nexport class RequestStreamPriceChangeRequestState {\r\n}\r\n\r\nexport interface StreamStateModel {\r\n entities: { [key: string]: IStream };\r\n ids: string[];\r\n}\r\n\r\n@State({\r\n name: 'stream',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class StreamState {\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {}\r\n\r\n static updateStreamEntity(data, stream) {\r\n switch (data.fieldName) {\r\n case UpdatedEntityFieldName.Enabled: {\r\n return {...stream, enabled: data.value};\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_SellerManagement_Mode: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n sellerManagementPolicy: {...stream.journeyPolicies.sellerManagementPolicy, mode: data.value}\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_SellerManagement_RestrictionLevel: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n sellerManagementPolicy: {...stream.journeyPolicies.sellerManagementPolicy, restrictionLevel: data.value}\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_SellerManagement_Inherit: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n sellerManagementPolicy: {\r\n ...stream.journeyPolicies.sellerManagementPolicy,\r\n inheritManagementDecisions: data.value\r\n }\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_Timeout: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n timeoutInSeconds: data.value\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_TimeLimiterType: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n timeLimiterType: data.value\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_PositionPreference: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n positionPreference: data.value\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_PriceBiddingPosition: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n priceBiddingPositionPreference: data.value\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_Characteristics_SuppressTimeoutThrottling: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n characteristics: data.value\r\n ? stream.journeyPolicies.characteristics + JourneyPoliciesCharacteristics.SuppressTimeoutThrottling\r\n : stream.journeyPolicies.characteristics - JourneyPoliciesCharacteristics.SuppressTimeoutThrottling\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_Characteristics_SuppressClosureThrottling: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n characteristics: data.value\r\n ? stream.journeyPolicies.characteristics + JourneyPoliciesCharacteristics.SuppressClosureThrottling\r\n : stream.journeyPolicies.characteristics - JourneyPoliciesCharacteristics.SuppressClosureThrottling\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.JourneyPolicies_Characteristics_SuppressFaultThrottling: {\r\n return {\r\n ...stream, journeyPolicies: {\r\n ...stream.journeyPolicies,\r\n characteristics: data.value\r\n ? stream.journeyPolicies.characteristics + JourneyPoliciesCharacteristics.SuppressFaultThrottling\r\n : stream.journeyPolicies.characteristics - JourneyPoliciesCharacteristics.SuppressFaultThrottling\r\n }\r\n };\r\n }\r\n case UpdatedEntityFieldName.Type: {\r\n return {\r\n ...stream, productType: data.value\r\n };\r\n }\r\n case UpdatedEntityFieldName.ProductCharacteristics: {\r\n return {\r\n ...stream, productCharacteristics: data.value\r\n };\r\n }\r\n case UpdatedEntityFieldName.APR: {\r\n return {\r\n ...stream, apr: data.value\r\n };\r\n }\r\n case UpdatedEntityFieldName.RepresentativeExample: {\r\n return {\r\n ...stream, representativeExample: data.value\r\n };\r\n }\r\n }\r\n }\r\n\r\n @Action(SetStreams)\r\n setStreams({patchState, getState}: StateContext, {payload: streams}: SetStreams) {\r\n if (!streams) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, streams, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(GetStream)\r\n getStream({dispatch}: StateContext, {payload}: GetStream) {\r\n\r\n const request = this.httpClient.get(`streams/agent/${payload.streamAgentPseudonym}/stream/${payload.streamPseudonym}`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetStreamRequestState,\r\n request,\r\n failAction: GetStreamFail,\r\n successAction: GetStreamSuccess,\r\n metadata: payload.streamAgentPseudonym,\r\n }));\r\n }\r\n\r\n @Action(GetStreamFail)\r\n getStreamFail() {\r\n console.log('getStreamFail - request error');\r\n }\r\n\r\n @Action(GetStreamSuccess)\r\n getStreamSuccess(\r\n {patchState, getState, dispatch}: StateContext,\r\n {payload, metadata: streamAgentPseudonym}: GetStreamSuccess,\r\n ) {\r\n const {openingHours, filters, adjustors, ...stream} = payload;\r\n const {closures, ...openingHoursToSet} = openingHours;\r\n const closuresToSet = closures?.map((closure) => ({\r\n ...closure,\r\n actorPseudonym: stream.pseudonym\r\n }));\r\n const filtersToSet = filters?.map((filter) => ({\r\n ...filter,\r\n actorPseudonym: stream.pseudonym\r\n }));\r\n const adjustorsToSet = adjustors?.map((adjustor) => ({\r\n ...adjustor,\r\n actorPseudonym: stream.pseudonym\r\n }));\r\n\r\n dispatch([\r\n new SetOpeningHours([openingHoursToSet]),\r\n new SetClosures(closuresToSet),\r\n new SetStreamFilters(filtersToSet),\r\n new SetAdjustors(adjustorsToSet),\r\n new SetStreams([{...stream, openingHoursPseudonym: openingHours.pseudonym, streamAgentPseudonym}]),\r\n ]);\r\n }\r\n\r\n @Action(UpdateStream)\r\n updateStream({dispatch}: StateContext, {payload}: UpdateStream) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, fieldName, value} = payload;\r\n const request = this.httpClient.patch(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/update/${fieldName}`,\r\n {Value: value}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: UpdateStreamRequestState,\r\n request,\r\n failAction: UpdateStreamFail,\r\n successAction: UpdateStreamSuccess,\r\n metadata: payload,\r\n }));\r\n }\r\n\r\n @Action(UpdateStreamFail)\r\n updateStreamFail() {\r\n console.log('updateStreamFail - request error');\r\n }\r\n\r\n @Action(UpdateStreamSuccess)\r\n updateStreamSuccess(\r\n {patchState, getState}: StateContext,\r\n {metadata}: UpdateStreamSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n const updateStreamEntity = StreamState.updateStreamEntity(metadata, state.entities[metadata.streamPseudonym]);\r\n\r\n patchState({\r\n ...state,\r\n entities: {\r\n ...state.entities,\r\n [metadata.streamPseudonym]: updateStreamEntity,\r\n }\r\n });\r\n }\r\n\r\n @Action(ResumeStream)\r\n resumeStream({dispatch}: StateContext, {payload}: ResumeStream) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, pseudonyms} = payload;\r\n const request = this.httpClient.post(`streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/resume`, {pseudonyms});\r\n\r\n return dispatch(createRequestAction({\r\n state: ResumeStreamRequestState,\r\n request,\r\n failAction: ResumeStreamFail,\r\n successAction: ResumeStreamSuccess,\r\n metadata: payload.pseudonyms,\r\n }));\r\n }\r\n\r\n @Action(ResumeStreamFail)\r\n resumeStreamFail() {\r\n console.log('resumeStreamFail - request error');\r\n }\r\n\r\n @Action(ResumeStreamSuccess)\r\n resumeStreamSuccess(\r\n {patchState, getState, dispatch}: StateContext,\r\n {pseudonyms}: ResumeStreamSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n if (pseudonyms && pseudonyms.length) {\r\n const streamsToSet = pseudonyms.map((pseudonym) => (\r\n {...state.entities[pseudonym], pausedUntil: null}\r\n ));\r\n dispatch(new SetStreams(streamsToSet));\r\n }\r\n }\r\n\r\n @Action(PauseStream)\r\n pauseStream({dispatch}: StateContext, {payload}: PauseStream) {\r\n\r\n const {streamAgentPseudonym, streamPseudonym, pausedUntil, pseudonyms} = payload;\r\n const request = this.httpClient.post(\r\n `streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/pause/${pausedUntil}`, {pseudonyms: pseudonyms}\r\n );\r\n\r\n return dispatch(createRequestAction({\r\n state: PauseStreamRequestState,\r\n request,\r\n failAction: PauseStreamFail,\r\n successAction: PauseStreamSuccess,\r\n metadata: {pausedUntil: payload.pausedUntil, pseudonyms: payload.pseudonyms},\r\n }));\r\n }\r\n\r\n @Action(PauseStreamFail)\r\n pauseStreamFail() {\r\n console.log('pauseStreamFail - request error');\r\n }\r\n\r\n @Action(PauseStreamSuccess)\r\n pauseStreamSuccess(\r\n {patchState, getState, dispatch}: StateContext,\r\n {metadata: {pausedUntil, pseudonyms}}: PauseStreamSuccess,\r\n ) {\r\n const state = getState();\r\n\r\n if (pseudonyms) {\r\n const streamsToSet = pseudonyms.map((pseudonym) => (\r\n {...state.entities[pseudonym], pausedUntil}\r\n ));\r\n dispatch(new SetStreams(streamsToSet));\r\n }\r\n\r\n }\r\n\r\n @Action(RequestStreamPriceChange)\r\n requestStreamPriceChange(\r\n {dispatch}: StateContext,\r\n {payload: {streamAgentPseudonym, streamPseudonym, requestPayload}}: RequestStreamPriceChange\r\n ) {\r\n\r\n const request = this.httpClient.put(`streams/agent/${streamAgentPseudonym}/stream/${streamPseudonym}/commission`, requestPayload);\r\n\r\n return dispatch(createRequestAction({\r\n state: RequestStreamPriceChangeRequestState,\r\n request,\r\n successAction: RequestStreamPriceChangeSuccess,\r\n failAction: RequestStreamPriceChangeFail,\r\n metadata: streamPseudonym\r\n }));\r\n }\r\n\r\n @Action(RequestStreamPriceChangeFail)\r\n requestStreamPriceChangeFail() {\r\n console.log('requestStreamPriceChangeFail - request error');\r\n }\r\n\r\n @Action(RequestStreamPriceChangeSuccess)\r\n requestStreamPriceChangeSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata: streamPseudonym}: RequestStreamPriceChangeSuccess\r\n ) {\r\n const state = getState();\r\n patchState({\r\n entities: {\r\n ...state.entities,\r\n [streamPseudonym]: {\r\n ...state.entities[streamPseudonym],\r\n characteristics:\r\n (state.entities[streamPseudonym].characteristics + StreamCharacteristic.PriceChangeRequestPending)\r\n }\r\n }\r\n });\r\n }\r\n}\r\n\r\n","import { ISubscriptions } from '../../../shared/models/subscription/subscriptions.interface';\r\n\r\nconst ActionTypes = {\r\n GET_SUBSCRIPTIONS: '[Subscription] Get Subscriptions',\r\n GET_SUBSCRIPTIONS_SUCCESS: '[Subscription] Get Subscriptions Success',\r\n GET_SUBSCRIPTIONS_FAIL: '[Subscription] Get Subscriptions Fail',\r\n UPDATE_SUBSCRIPTION: '[Subscription] Update Subscription',\r\n UPDATE_SUBSCRIPTION_SUCCESS: '[Subscription] Update Subscription Success',\r\n UPDATE_SUBSCRIPTION_FAIL: '[Subscription] Update Subscription Fail',\r\n};\r\n\r\nexport class GetSubscriptions {\r\n static type = ActionTypes.GET_SUBSCRIPTIONS;\r\n}\r\n\r\nexport class GetSubscriptionsSuccess {\r\n static type = ActionTypes.GET_SUBSCRIPTIONS_SUCCESS;\r\n\r\n constructor(public payload: ISubscriptions) {\r\n }\r\n}\r\n\r\nexport class GetSubscriptionsFail {\r\n static type = ActionTypes.GET_SUBSCRIPTIONS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateSubscription {\r\n static type = ActionTypes.UPDATE_SUBSCRIPTION;\r\n\r\n constructor(public payload: { fieldName: string, value: string | number}) {\r\n }\r\n}\r\n\r\nexport class UpdateSubscriptionSuccess {\r\n static type = ActionTypes.UPDATE_SUBSCRIPTION_SUCCESS;\r\n\r\n constructor(public payload: string, public updatedField: { fieldName: string, value: string | number }) {\r\n }\r\n}\r\n\r\nexport class UpdateSubscriptionFail {\r\n static type = ActionTypes.UPDATE_SUBSCRIPTION_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ISubscriptions } from '../../../shared/models/subscription/subscriptions.interface';\r\nimport {\r\n GetSubscriptions,\r\n GetSubscriptionsFail,\r\n GetSubscriptionsSuccess,\r\n UpdateSubscription, UpdateSubscriptionFail,\r\n UpdateSubscriptionSuccess\r\n} from './subscription.actions';\r\n\r\nexport interface SubscriptionStateModel {\r\n subscriptions: ISubscriptions | null;\r\n}\r\n\r\n@RequestState('getSubscriptions')\r\n@Injectable()\r\nexport class GetSubscriptionsRequestState {\r\n}\r\n\r\n@RequestState('updateSubscription')\r\n@Injectable()\r\nexport class UpdateSubscriptionRequestState {\r\n}\r\n\r\n@State({\r\n name: 'subscriptions',\r\n defaults: {\r\n subscriptions: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class SubscriptionState {\r\n @Action(GetSubscriptions)\r\n getSubscriptions({dispatch}: StateContext) {\r\n\r\n const request = this.httpClient.get(`identity/subscriptions`);\r\n\r\n return dispatch(createRequestAction({\r\n state: GetSubscriptionsRequestState,\r\n request,\r\n failAction: GetSubscriptionsFail,\r\n successAction: GetSubscriptionsSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetSubscriptionsFail)\r\n getSubscriptionsFail() {\r\n console.log('getSubscriptionsFail - request error');\r\n }\r\n\r\n @Action(GetSubscriptionsSuccess)\r\n getSubscriptionsSuccess(\r\n {patchState, dispatch}: StateContext,\r\n {payload}: GetSubscriptionsSuccess\r\n ) {\r\n patchState({\r\n subscriptions: payload,\r\n });\r\n }\r\n\r\n @Action(UpdateSubscription)\r\n updateSubscription(ctx: StateContext, {payload}: UpdateSubscription) {\r\n\r\n const request = this.httpClient.patch(`identity/update/${payload.fieldName}`, {Value: payload.value});\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: UpdateSubscriptionRequestState,\r\n request,\r\n failAction: UpdateSubscriptionFail,\r\n successAction: UpdateSubscriptionSuccess,\r\n metadata: {...payload},\r\n }));\r\n }\r\n\r\n @Action(UpdateSubscriptionFail)\r\n updateSubscriptionFail() {\r\n console.log('updateSubscriptionFail - request error');\r\n }\r\n\r\n @Action(UpdateSubscriptionSuccess)\r\n updateSubscriptionsSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload, updatedField: {fieldName, value}}: UpdateSubscriptionSuccess\r\n ) {\r\n\r\n const state = getState();\r\n const updatedFieldName = fieldName.replace(fieldName[0], fieldName[0].toLowerCase());\r\n\r\n patchState({\r\n subscriptions: {...state.subscriptions, [updatedFieldName]: value},\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { ITeamMember } from '../../../shared/models/team-member/team-member.interface';\r\nimport { TeamMemberState, TeamMemberStateModel } from './team-member.state';\r\n\r\nexport class TeamMemberGetterState {\r\n @Selector([TeamMemberState])\r\n static getAllTeamMembers(state: TeamMemberStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getTeamMemberByPseudonym(teamMemberPseudonym: string) {\r\n return createSelector(\r\n [TeamMemberState],\r\n (state: TeamMemberStateModel) => state.entities && state.entities[teamMemberPseudonym] || null\r\n );\r\n }\r\n\r\n static getTeamMemberByCompanyPseudonym(companyPseudonym: string) {\r\n return createSelector(\r\n [TeamMemberGetterState.getAllTeamMembers],\r\n (teamMembers: ITeamMember[]) => teamMembers.filter((member) => member.companyPseudonym === companyPseudonym)\r\n );\r\n }\r\n\r\n @Selector([TeamMemberState])\r\n static getSelectedTeamMemberCompanyId(state: TeamMemberStateModel) {\r\n return state.selectedTeamMemberCompanyId;\r\n }\r\n}\r\n","import { IAddTeamMemberPayload } from '../../../shared/models/team-member/add-team-member-payload.interface';\r\nimport { ITeamMember } from '../../../shared/models/team-member/team-member.interface';\r\nimport { UpdateTeamMemberFieldName } from '../../../shared/models/team-member/update-team-member-field-name.enum';\r\n\r\nconst ActionTypes = {\r\n SET_TEAM_MEMBER: '[TeamMember] Set Team Member',\r\n SET_TEAM_MEMBERS: '[TeamMember] Set Team Members',\r\n\r\n CREATE_TEAM_MEMBER: '[TeamMember] Create Team Member',\r\n CREATE_TEAM_MEMBER_SUCCESS: '[TeamMember] Create Team Member Success',\r\n CREATE_TEAM_MEMBER_FAIL: '[TeamMember] Create Team Member Fail',\r\n\r\n UPDATE_TEAM_MEMBER: '[TeamMember] Update Team Member',\r\n UPDATE_TEAM_MEMBER_SUCCESS: '[TeamMember] Update Team Member Success',\r\n UPDATE_TEAM_MEMBER_FAIL: '[TeamMember] Update Team Member Fail',\r\n\r\n REMOVE_TEAM_MEMBER: '[TeamMember] Remove Team Member',\r\n REMOVE_TEAM_MEMBER_SUCCESS: '[TeamMember] Remove Team Member Success',\r\n REMOVE_TEAM_MEMBER_FAIL: '[TeamMember] Remove Team Member Fail',\r\n\r\n SET_SELECTED_TEAM_MEMBER_COMPANY_ID: '[TeamMember] Set Selected Team Member Company Id'\r\n};\r\n\r\nexport class SetTeamMember {\r\n static type = ActionTypes.SET_TEAM_MEMBER;\r\n\r\n constructor(public payload: ITeamMember) {\r\n }\r\n}\r\n\r\nexport class SetTeamMembers {\r\n static type = ActionTypes.SET_TEAM_MEMBERS;\r\n\r\n constructor(public payload: ITeamMember[]) {\r\n }\r\n}\r\n\r\nexport class CreateTeamMember {\r\n static type = ActionTypes.CREATE_TEAM_MEMBER;\r\n\r\n constructor(public payload: {\r\n teamMember: IAddTeamMemberPayload;\r\n companyPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class CreateTeamMemberSuccess {\r\n static type = ActionTypes.CREATE_TEAM_MEMBER_SUCCESS;\r\n\r\n constructor(public payload: ITeamMember) {\r\n }\r\n}\r\n\r\nexport class CreateTeamMemberFail {\r\n static type = ActionTypes.CREATE_TEAM_MEMBER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class UpdateTeamMember {\r\n static type = ActionTypes.UPDATE_TEAM_MEMBER;\r\n\r\n constructor(public payload: {\r\n fieldName: UpdateTeamMemberFieldName;\r\n value: string | number;\r\n teamMemberPseudonym: string;\r\n companyPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class UpdateTeamMemberSuccess {\r\n static type = ActionTypes.UPDATE_TEAM_MEMBER_SUCCESS;\r\n\r\n constructor(\r\n public payload: null,\r\n public metadata: {\r\n fieldName: UpdateTeamMemberFieldName;\r\n value: string | number;\r\n teamMemberPseudonym: string;\r\n }\r\n ) {\r\n }\r\n}\r\n\r\nexport class UpdateTeamMemberFail {\r\n static type = ActionTypes.UPDATE_TEAM_MEMBER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class RemoveTeamMember {\r\n static type = ActionTypes.REMOVE_TEAM_MEMBER;\r\n\r\n constructor(public payload: {\r\n teamMemberPseudonym: string;\r\n companyPseudonym: string;\r\n }) {\r\n }\r\n}\r\n\r\nexport class RemoveTeamMemberSuccess {\r\n static type = ActionTypes.REMOVE_TEAM_MEMBER_SUCCESS;\r\n\r\n constructor(\r\n public payload: ITeamMember,\r\n public metadata: string\r\n ) {\r\n }\r\n}\r\n\r\nexport class RemoveTeamMemberFail {\r\n static type = ActionTypes.REMOVE_TEAM_MEMBER_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n\r\nexport class SetSelectedTeamMemberCompanyId {\r\n static type = ActionTypes.SET_SELECTED_TEAM_MEMBER_COMPANY_ID;\r\n\r\n constructor(public payload: string) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ITeamMember } from '../../../shared/models/team-member/team-member.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport {\r\n CreateTeamMember,\r\n CreateTeamMemberFail,\r\n CreateTeamMemberSuccess,\r\n RemoveTeamMember,\r\n RemoveTeamMemberFail,\r\n RemoveTeamMemberSuccess, SetSelectedTeamMemberCompanyId,\r\n SetTeamMember,\r\n SetTeamMembers,\r\n UpdateTeamMember,\r\n UpdateTeamMemberFail,\r\n UpdateTeamMemberSuccess\r\n} from './team-member.actions';\r\n\r\n@RequestState('createTeamMember')\r\n@Injectable()\r\nexport class CreateTeamMemberRequestState {\r\n}\r\n\r\n@RequestState('updateTeamMember')\r\n@Injectable()\r\nexport class UpdateTeamMemberRequestState {\r\n}\r\n\r\n@RequestState('removeTeamMember')\r\n@Injectable()\r\nexport class RemoveTeamMemberRequestState {\r\n}\r\n\r\nexport interface TeamMemberStateModel {\r\n entities: { [key: string]: ITeamMember };\r\n ids: string[];\r\n selectedTeamMemberCompanyId: string;\r\n}\r\n\r\n@State({\r\n name: 'teamMember',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n selectedTeamMemberCompanyId: null,\r\n }\r\n})\r\n@Injectable()\r\nexport class TeamMemberState {\r\n\r\n constructor(private httpClient: HttpClient) {\r\n }\r\n\r\n @Action(SetTeamMember)\r\n setTeamMember(\r\n {getState, patchState}: StateContext,\r\n {payload: teamMember}: SetTeamMember\r\n ) {\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, [teamMember], 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(SetTeamMembers)\r\n setTeamMembers({patchState, getState}: StateContext, {payload: teamMembers}: SetTeamMembers) {\r\n if (!teamMembers) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, teamMembers, 'pseudonym');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n @Action(CreateTeamMember)\r\n createTeamMember(\r\n {dispatch, getState}: StateContext,\r\n {payload: {teamMember, companyPseudonym}}: CreateTeamMember\r\n ) {\r\n if (!teamMember) {\r\n return;\r\n }\r\n\r\n const request = this.httpClient.patch(`company/${companyPseudonym}/team/add`, teamMember);\r\n return dispatch(createRequestAction({\r\n state: CreateTeamMemberRequestState,\r\n request,\r\n failAction: CreateTeamMemberFail,\r\n successAction: CreateTeamMemberSuccess,\r\n }));\r\n }\r\n\r\n @Action(CreateTeamMemberSuccess)\r\n createTeamMemberSuccess(\r\n {dispatch}: StateContext,\r\n {payload: teamMember}: CreateTeamMemberSuccess\r\n ) {\r\n return dispatch(new SetTeamMember(teamMember));\r\n }\r\n\r\n @Action(CreateTeamMemberFail)\r\n createTeamMemberFail() {\r\n console.log('createTeamMember - request error');\r\n }\r\n\r\n @Action(UpdateTeamMember)\r\n updateTeamMember(\r\n {dispatch, getState}: StateContext,\r\n {payload: {fieldName, value, teamMemberPseudonym, companyPseudonym}}: UpdateTeamMember\r\n ) {\r\n const request = this.httpClient.patch(\r\n `company/${companyPseudonym}/team/update/${teamMemberPseudonym}/${fieldName}`,\r\n {Value: value}\r\n );\r\n return dispatch(createRequestAction({\r\n state: UpdateTeamMemberRequestState,\r\n request,\r\n failAction: UpdateTeamMemberFail,\r\n successAction: UpdateTeamMemberSuccess,\r\n metadata: {fieldName, value, teamMemberPseudonym}\r\n }));\r\n }\r\n\r\n @Action(UpdateTeamMemberSuccess)\r\n updateTeamMemberSuccess(\r\n {getState, patchState}: StateContext,\r\n {metadata: {fieldName, value, teamMemberPseudonym}}: UpdateTeamMemberSuccess\r\n ) {\r\n const state = getState();\r\n\r\n const fieldNameToUpdate = fieldName.toString().replace(fieldName[0], fieldName[0].toLowerCase());\r\n\r\n patchState({\r\n entities: {\r\n ...state.entities,\r\n [teamMemberPseudonym]: {\r\n ...state.entities[teamMemberPseudonym],\r\n [fieldNameToUpdate]: value\r\n }\r\n }\r\n });\r\n }\r\n\r\n @Action(UpdateTeamMemberFail)\r\n updateTeamMemberFail() {\r\n console.log('updateTeamMember - request error');\r\n }\r\n\r\n @Action(RemoveTeamMember)\r\n removeTeamMember(\r\n {dispatch, getState}: StateContext,\r\n {payload: {teamMemberPseudonym, companyPseudonym}}: RemoveTeamMember\r\n ) {\r\n const request = this.httpClient.delete(\r\n `company/${companyPseudonym}/team/remove/${teamMemberPseudonym}`\r\n );\r\n return dispatch(createRequestAction({\r\n state: RemoveTeamMemberRequestState,\r\n request,\r\n failAction: RemoveTeamMemberFail,\r\n successAction: RemoveTeamMemberSuccess,\r\n metadata: companyPseudonym\r\n }));\r\n }\r\n\r\n @Action(RemoveTeamMemberSuccess)\r\n removeTeamMemberSuccess(\r\n {getState, patchState}: StateContext,\r\n {payload, metadata}: RemoveTeamMemberSuccess\r\n ) {\r\n const state = getState();\r\n\r\n patchState({\r\n entities: {...state.entities, [payload.pseudonym]: {...payload, companyPseudonym: metadata}},\r\n });\r\n }\r\n\r\n @Action(RemoveTeamMemberFail)\r\n removeTeamMemberFail() {\r\n console.log('removeTeamMember - request error');\r\n }\r\n\r\n @Action(SetSelectedTeamMemberCompanyId)\r\n setSelectedTeamMemberCompanyId({patchState}: StateContext, {payload}: SetSelectedTeamMemberCompanyId) {\r\n patchState({\r\n selectedTeamMemberCompanyId: payload,\r\n });\r\n }\r\n}\r\n","import { createSelector, Selector } from '@ngxs/store';\r\n\r\nimport { BuyerTierState, BuyerTierStateModel } from '../buyer-tier/buyer-tier.state';\r\nimport { OpeningHoursState, OpeningHoursStateModel } from '../opening-hours/opening-hours.state';\r\nimport { StreamState, StreamStateModel } from '../stream/stream.state';\r\nimport { TimezoneState, TimezoneStateModel } from './timezone.state';\r\nimport { ITimezone } from '../../../shared/models/timezone.interface';\r\n\r\n\r\nexport class TimezoneGetterState {\r\n @Selector([TimezoneState])\r\n static getAllTimezones(state: TimezoneStateModel) {\r\n return state.ids.map(id => state.entities[id]);\r\n }\r\n\r\n static getBuyerTierTimezone(buyerTierPseudonym: string) {\r\n return createSelector(\r\n [\r\n BuyerTierState,\r\n OpeningHoursState,\r\n TimezoneState,\r\n ],\r\n (\r\n buyerTierState: BuyerTierStateModel,\r\n openingHoursState: OpeningHoursStateModel,\r\n timezoneState: TimezoneStateModel,\r\n ) => {\r\n const buyerTier = buyerTierState.entities[buyerTierPseudonym];\r\n if (buyerTier) {\r\n const openingHours = openingHoursState.entities[buyerTier.openingHoursPseudonym];\r\n return timezoneState.entities[openingHours.timezoneId];\r\n }\r\n }\r\n );\r\n }\r\n\r\n static getStreamTimezone(streamPseudonym: string) {\r\n return createSelector(\r\n [\r\n StreamState,\r\n OpeningHoursState,\r\n TimezoneState,\r\n ],\r\n (\r\n streamState: StreamStateModel,\r\n openingHoursState: OpeningHoursStateModel,\r\n timezoneState: TimezoneStateModel,\r\n ) => {\r\n const stream = streamState.entities[streamPseudonym];\r\n if (stream) {\r\n const openingHours = openingHoursState.entities[stream.openingHoursPseudonym];\r\n return timezoneState.entities[openingHours.timezoneId];\r\n }\r\n }\r\n );\r\n }\r\n\r\n static getUTCTimezone() {\r\n return createSelector(\r\n [TimezoneGetterState.getAllTimezones],\r\n (allTimezones: ITimezone[]\r\n ) => allTimezones.find((timezone) => timezone.acronym === 'UTC')\r\n );\r\n }\r\n}\r\n","import { ITimezone } from '../../../shared/models/timezone.interface';\r\n\r\nconst ActionTypes = {\r\n GET_TIMEZONES: '[Timezone] Get Timezones',\r\n GET_TIMEZONES_SUCCESS: '[Timezone] Get Timezones Success',\r\n GET_TIMEZONES_FAIL: '[Timezone] Get Timezones Fail',\r\n};\r\n\r\nexport class GetTimezones {\r\n static type = ActionTypes.GET_TIMEZONES;\r\n}\r\n\r\nexport class GetTimezonesSuccess {\r\n static type = ActionTypes.GET_TIMEZONES_SUCCESS;\r\n\r\n constructor(public payload: {timezones: ITimezone[]}) {\r\n }\r\n}\r\n\r\nexport class GetTimezonesFail {\r\n static type = ActionTypes.GET_TIMEZONES_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\n\r\nimport { ITimezone } from '../../../shared/models/timezone.interface';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { GetTimezones, GetTimezonesFail, GetTimezonesSuccess } from './timezone.actions';\r\n\r\n@RequestState('getTimezones')\r\n@Injectable()\r\nexport class GetTimezonesRequestState {\r\n}\r\n\r\nexport interface TimezoneStateModel {\r\n entities: { [key: number]: ITimezone };\r\n ids: number[];\r\n}\r\n\r\n@State({\r\n name: 'timezone',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n }\r\n})\r\n@Injectable()\r\nexport class TimezoneState {\r\n\r\n @Action(GetTimezones)\r\n getTimezones(ctx: StateContext) {\r\n const request = this.httpClient.get('region/timezones');\r\n\r\n return ctx.dispatch(createRequestAction({\r\n state: GetTimezonesRequestState,\r\n request,\r\n failAction: GetTimezonesFail,\r\n successAction: GetTimezonesSuccess,\r\n }));\r\n }\r\n\r\n @Action(GetTimezonesFail)\r\n getTimezonesFail(ctx: StateContext) {\r\n console.log('getTimezonesFail - request error');\r\n }\r\n\r\n @Action(GetTimezonesSuccess)\r\n getTimezonesSuccess({patchState, getState}: StateContext, {payload: {timezones}}: GetTimezonesSuccess) {\r\n if (!timezones) {\r\n return;\r\n }\r\n const state = getState();\r\n\r\n const {entities, ids} = insertIdsAndEntities(state, timezones, 'id');\r\n\r\n patchState({\r\n ids,\r\n entities,\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { ITrader } from '../../../shared/models/search/trader.interface';\r\n\r\nconst ActionTypes = {\r\n POST_SEARCH_TRADERS: '[Trader] Post Search Traders',\r\n POST_SEARCH_TRADERS_SUCCESS: '[Trader] Post Search Success',\r\n POST_SEARCH_TRADERS_FAIL: '[Trader] Post Search Fail',\r\n};\r\n\r\nexport class PostSearchTraders {\r\n static type = ActionTypes.POST_SEARCH_TRADERS;\r\n\r\n constructor(public payload: { scope: number, regionId: number, value: string, page: number }) {\r\n }\r\n}\r\n\r\nexport class PostSearchTradersSuccess {\r\n static type = ActionTypes.POST_SEARCH_TRADERS_SUCCESS;\r\n\r\n constructor(public payload: { items: ITrader[] }) {\r\n }\r\n}\r\n\r\nexport class PostSearchTradersFail {\r\n static type = ActionTypes.POST_SEARCH_TRADERS_FAIL;\r\n\r\n constructor(public payload: Error) {\r\n }\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { createRequestAction, RequestState } from 'ngxs-requests-plugin';\r\nimport { StateReset } from 'ngxs-reset-plugin';\r\n\r\nimport { PaginationHeaders } from '../../../shared/models/pagination-headers.enum';\r\nimport { insertIdsAndEntities } from '../utils/insertIdsAndEntities';\r\nimport { PostSearchTraders, PostSearchTradersFail, PostSearchTradersSuccess } from './trader.actions';\r\nimport {ITrader} from \"../../../shared/models/search/trader.interface\";\r\n\r\n@RequestState('postSearchTraders')\r\n@Injectable()\r\nexport class PostSearchTradersRequestState {\r\n}\r\n\r\nexport interface TraderStateModel {\r\n entities: { [key: number]: ITrader };\r\n ids: number[];\r\n page: number;\r\n pageSize: number;\r\n hasNext: boolean;\r\n}\r\n\r\n@State({\r\n name: 'trader',\r\n defaults: {\r\n entities: {},\r\n ids: [],\r\n page: 1,\r\n pageSize: 7,\r\n hasNext: false,\r\n }\r\n})\r\n@Injectable()\r\nexport class TraderState {\r\n\r\n @Action(PostSearchTraders)\r\n postSearchTraders(\r\n {dispatch, getState, patchState}: StateContext,\r\n {payload: {scope, regionId, value, page}}: PostSearchTraders\r\n ) {\r\n const {pageSize} = getState();\r\n\r\n const request = this.httpClient.post(\r\n `search/traders/${scope}/${regionId}`,\r\n {Value: value},\r\n {\r\n headers: new HttpHeaders({\r\n [PaginationHeaders.PageSize]: pageSize.toString(),\r\n [PaginationHeaders.PageNumber]: page.toString()\r\n }),\r\n }\r\n );\r\n\r\n if (page === 1) {\r\n dispatch(new StateReset(TraderState));\r\n }\r\n\r\n patchState({page});\r\n\r\n return dispatch(createRequestAction({\r\n state: PostSearchTradersRequestState,\r\n request,\r\n failAction: PostSearchTradersFail,\r\n successAction: PostSearchTradersSuccess,\r\n }));\r\n }\r\n\r\n @Action(PostSearchTradersFail)\r\n postSearchTradersFail({dispatch}: StateContext) {\r\n dispatch(new StateReset(TraderState));\r\n }\r\n\r\n @Action(PostSearchTradersSuccess)\r\n postSearchTradersSuccess(\r\n {patchState, getState}: StateContext,\r\n {payload: {items}}: PostSearchTradersSuccess\r\n ) {\r\n const state = getState();\r\n patchState({\r\n hasNext: items.length >= state.pageSize,\r\n });\r\n const { entities, ids } = insertIdsAndEntities(state, items, 'pseudonym');\r\n patchState({\r\n entities,\r\n ids\r\n });\r\n }\r\n\r\n constructor(\r\n private httpClient: HttpClient,\r\n ) {\r\n\r\n }\r\n}\r\n","import { Selector } from '@ngxs/store';\r\n\r\nimport { UserState, UserStateModel } from './user.state';\r\n\r\nexport class UserGetterState {\r\n @Selector([UserState])\r\n static getUser(state: UserStateModel) {\r\n return state.user;\r\n }\r\n\r\n @Selector([UserState])\r\n static getUserLoaded(state: UserStateModel) {\r\n return state.loaded;\r\n }\r\n}\r\n","import { User } from 'oidc-client';\r\n\r\nconst ActionTypes = {\r\n SET_USER: '[User] Set User',\r\n};\r\n\r\nexport class SetUser {\r\n static type = ActionTypes.SET_USER;\r\n\r\n constructor(public payload: User | null) {\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Action, State, StateContext } from '@ngxs/store';\r\nimport { User } from 'oidc-client';\r\n\r\nimport { SetUser } from './user.actions';\r\n\r\nexport interface UserStateModel {\r\n user: User | null;\r\n loaded: boolean;\r\n}\r\n\r\n@State({\r\n name: 'user',\r\n defaults: {\r\n user: null,\r\n loaded: false,\r\n }\r\n})\r\n@Injectable()\r\nexport class UserState {\r\n @Action(SetUser)\r\n setUser({patchState, getState}: StateContext, {payload}: SetUser) {\r\n patchState({\r\n user: payload,\r\n loaded: true,\r\n });\r\n }\r\n}\r\n","export function createIdsAndEntities(array: any[], fieldName: string) {\r\n return array.reduce((acc, item) => {\r\n return {\r\n entities: {...acc.entities, [item[fieldName]]: item},\r\n ids: acc.ids.indexOf(item[fieldName]) === -1 ? [...acc.ids, item[fieldName]] : acc.ids,\r\n };\r\n }, {entities: {}, ids: []});\r\n}\r\n","export function insertIdsAndEntities(state, array: any[], fieldName: string) {\r\n return array.reduce((acc, item) => {\r\n return {\r\n entities: {...acc.entities, [item[fieldName]]: item},\r\n ids: state.ids.indexOf(item[fieldName]) === -1 && acc.ids.indexOf(item[fieldName]) === -1 ? [...acc.ids, item[fieldName]] : acc.ids,\r\n };\r\n }, {entities: {...state.entities}, ids: [...state.ids]});\r\n}\r\n","export * from './raw-http-client.module';\r\n","import { HttpBackend, HttpClient, HttpHandler } from '@angular/common/http';\r\nimport { NgModule } from '@angular/core';\r\n\r\nexport function rawHttpClientFactory(handler: HttpHandler) {\r\n return new HttpClient(handler);\r\n}\r\n\r\nexport abstract class RawHttpClient extends HttpClient {\r\n}\r\n\r\n@NgModule({\r\n providers: [\r\n {\r\n provide: RawHttpClient,\r\n useFactory: rawHttpClientFactory,\r\n deps: [HttpBackend],\r\n },\r\n ],\r\n})\r\nexport class RawHttpClientModule {\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable, switchMap } from 'rxjs';\r\nimport { filter, take } from 'rxjs/operators';\r\nimport { Store } from '@ngxs/store';\r\n\r\nimport { CompanySettingsService } from '../../company-settings/company-settings.service';\r\nimport { CompanyGetterState } from '../ngxs/company/company-getter.state';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CompanyResolver {\r\n\r\n constructor(\r\n private store: Store,\r\n private companySettingsService: CompanySettingsService,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.store.select(CompanyGetterState.getCompanyByPseudonym(route.params.pseudonym)).pipe(\r\n switchMap((company) => {\r\n if (!!company) {\r\n return this.companySettingsService.getCompanyRequestState$;\r\n } else {\r\n return this.companySettingsService.getCompany(route.params.pseudonym).pipe(\r\n filter((res) => res.loaded)\r\n );\r\n }\r\n }),\r\n take(1),\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { IRequest, RequestStatus } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, take } from 'rxjs/operators';\r\n\r\nimport { NotificationService } from '../services/notification.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationsResolver {\r\n\r\n constructor(\r\n private notificationService: NotificationService,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n this.notificationService.getNotifications();\r\n return this.notificationService.getNotificationsRequestState$.pipe(\r\n filter(res => res.loaded === true && res.status === RequestStatus.Success),\r\n take(1)\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { IRequest, RequestStatus } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, take } from 'rxjs/operators';\r\n\r\nimport { RegionService } from '../services/region.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionsResolver {\r\n\r\n constructor(\r\n private regionService: RegionService,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n this.regionService.getRegions();\r\n return this.regionService.getRegionsRequestState$.pipe(\r\n filter(res => res.loaded === true && res.status === RequestStatus.Success),\r\n take(1)\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { IRequest, RequestStatus } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, take } from 'rxjs/operators';\r\n\r\nimport { TimezoneService } from '../services/timezone.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimezonesResolver {\r\n\r\n constructor(\r\n private timezoneService: TimezoneService,\r\n ) {\r\n }\r\n\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n this.timezoneService.getTimezones();\r\n return this.timezoneService.getTimezonesRequestState$.pipe(\r\n filter(res => res.loaded === true && res.status === RequestStatus.Success),\r\n take(1)\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { Store } from '@ngxs/store';\r\nimport { StateReset } from 'ngxs-reset-plugin';\r\nimport { User, UserManager } from 'oidc-client';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { iodcClientSettings } from '../../shared/consts/iodc-client-settings';\r\nimport { SetUser } from '../ngxs/user/user.actions';\r\nimport { UserState } from '../ngxs/user/user.state';\r\nimport { UserGetterState } from '../ngxs/user/user-getter.state';\r\nimport { SessionService } from './session.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AuthService {\r\n\r\n user$: Observable = this.store.select(UserGetterState.getUser);\r\n isUserLoaded$: Observable = this.store.select(UserGetterState.getUserLoaded);\r\n\r\n manager = new UserManager(iodcClientSettings);\r\n\r\n constructor(\r\n private store: Store,\r\n private router: Router,\r\n private sessionService: SessionService,\r\n ) {\r\n\r\n this.manager.getUser()\r\n .then((user: User) => {\r\n this.setUser(user);\r\n if (user) {\r\n this.sessionService.getUserSession();\r\n }\r\n })\r\n .catch(() => {\r\n this.setUser(null);\r\n });\r\n\r\n this.manager.events.addUserLoaded(() => {\r\n this.manager.getUser()\r\n .then((user: User) => {\r\n this.setUser(user);\r\n });\r\n });\r\n\r\n this.manager.events.addAccessTokenExpiring(() => {\r\n return this.signInSilent();\r\n });\r\n\r\n this.manager.events.addSilentRenewError((err) => {\r\n console.log('Silent renew error: ', err.message);\r\n this.manager.clearStaleState();\r\n this.cleanUserState();\r\n this.login();\r\n });\r\n\r\n }\r\n\r\n login() {\r\n return this.manager.signinRedirect();\r\n }\r\n\r\n logout() {\r\n return this.manager.signoutRedirect();\r\n }\r\n\r\n completeAuthentication() {\r\n this.manager.signinRedirectCallback()\r\n .then((user: User) => {\r\n return this.finishAuthentication(user);\r\n })\r\n .catch(() => {\r\n this.cleanUserState();\r\n this.login();\r\n });\r\n }\r\n\r\n completeSilentAuthentication() {\r\n this.manager.signinSilentCallback()\r\n .catch(() => {\r\n this.cleanUserState();\r\n this.login();\r\n });\r\n }\r\n\r\n completePopupAuthentication() {\r\n this.manager.signinPopupCallback()\r\n .then((user: User) => {\r\n return this.finishAuthentication(user);\r\n })\r\n .catch(() => {\r\n this.cleanUserState();\r\n this.login();\r\n });\r\n }\r\n\r\n setUser(user: User) {\r\n this.store.dispatch(new SetUser(user));\r\n }\r\n\r\n finishAuthentication(user: User) {\r\n this.setUser(user);\r\n this.sessionService.getUserSession();\r\n return this.router.navigate(['/lobby']);\r\n }\r\n\r\n cleanUserState() {\r\n this.store.dispatch(\r\n new StateReset(UserState)\r\n );\r\n }\r\n\r\n signInSilent() {\r\n return this.manager.signinSilent()\r\n .then((user: User) => {\r\n this.setUser(user);\r\n this.sessionService.getUserSession();\r\n })\r\n .catch((err) => {\r\n this.manager.clearStaleState();\r\n this.cleanUserState();\r\n this.login();\r\n });\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { BuyerTierSupplementalTableId } from '../../shared/models/buyer-tier/buyer-tier-supplemental-table-id.enum';\r\nimport { UpdatedEntityFieldName } from '../../shared/models/common/updated-entity-field-name.enum';\r\nimport {\r\n GetBuyerTier,\r\n PauseBuyerTier,\r\n RequestBuyerTierPriceChange,\r\n ResumeBuyerTier,\r\n UpdateBuyerTier\r\n} from '../ngxs/buyer-tier/buyer-tier.actions';\r\nimport {\r\n GetBuyerTierRequestState,\r\n PauseBuyerTierRequestState,\r\n ResumeBuyerTierRequestState\r\n} from '../ngxs/buyer-tier/buyer-tier.state';\r\nimport { GetBuyerTierSales } from '../ngxs/buyer-tier-sales/buyer-tier-sales.actions';\r\nimport { GetBuyerTierSalesRequestState } from '../ngxs/buyer-tier-sales/buyer-tier-sales.state';\r\nimport { GetBuyerTierReportsList } from '../ngxs/report/report.actions';\r\nimport { GetBuyerTierReportsListRequestState } from '../ngxs/report/report.state';\r\nimport {\r\n GetBuyerTierReportDocument,\r\n GetBuyerTierReportDocumentsList\r\n} from '../ngxs/report-document/report-document.actions';\r\nimport {\r\n GetBuyerTierReportDocumentRequestState,\r\n GetBuyerTierReportDocumentsListRequestState\r\n} from '../ngxs/report-document/report-document.state';\r\nimport { RequestGetterState } from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class BuyerTierService {\r\n\r\n resumeBuyerTierRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(ResumeBuyerTierRequestState)\r\n );\r\n pauseBuyerTierRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(PauseBuyerTierRequestState)\r\n );\r\n getBuyerTierRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetBuyerTierRequestState)\r\n );\r\n getBuyerTierSalesRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetBuyerTierSalesRequestState)\r\n );\r\n getBuyerTierReportsRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetBuyerTierReportsListRequestState)\r\n );\r\n getBuyerTierReportDocumentsRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetBuyerTierReportDocumentsListRequestState)\r\n );\r\n getBuyerTierReportDocumentRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetBuyerTierReportDocumentRequestState)\r\n );\r\n\r\n constructor(\r\n private store: Store,\r\n ) {\r\n\r\n }\r\n\r\n getBuyerTierSales(\r\n buyerPseudonym: string,\r\n buyerTierPseudonym: string,\r\n startTime: string,\r\n endTime: string,\r\n supplementalTableId: BuyerTierSupplementalTableId,\r\n timezoneId: number = null,\r\n ) {\r\n this.store.dispatch(new GetBuyerTierSales({\r\n buyerPseudonym,\r\n buyerTierPseudonym,\r\n timezoneId,\r\n startTime,\r\n endTime,\r\n supplementalTableId,\r\n }));\r\n return this.getBuyerTierSalesRequestState$;\r\n }\r\n\r\n resumeBuyerTier(buyerPseudonym: string, buyerTierPseudonym: string, pseudonyms: string[]) {\r\n return this.store.dispatch(new ResumeBuyerTier({buyerPseudonym, buyerTierPseudonym, pseudonyms}));\r\n }\r\n\r\n pauseBuyerTier(buyerPseudonym: string, buyerTierPseudonym: string, pausedUntil: string, pseudonyms?: string[]) {\r\n return this.store.dispatch(new PauseBuyerTier({buyerPseudonym, buyerTierPseudonym, pausedUntil, pseudonyms}));\r\n }\r\n\r\n updateBuyerTier(\r\n buyerPseudonym: string,\r\n buyerTierPseudonym: string,\r\n fieldName: UpdatedEntityFieldName,\r\n value: string | number | boolean\r\n ) {\r\n return this.store.dispatch(new UpdateBuyerTier({fieldName, value, buyerPseudonym, buyerTierPseudonym}));\r\n }\r\n\r\n getBuyerTierByPseudonym(buyerPseudonym: string, buyerTierPseudonym: string) {\r\n return this.store.dispatch(new GetBuyerTier({buyerPseudonym, buyerTierPseudonym}));\r\n }\r\n\r\n requestBuyerTierPriceChange(buyerPseudonym: string, buyerTierPseudonym: string, requestedPrice: number, comment: string) {\r\n return this.store.dispatch(new RequestBuyerTierPriceChange({\r\n buyerPseudonym,\r\n buyerTierPseudonym,\r\n requestPayload: {requestedPrice, comment}\r\n }));\r\n }\r\n\r\n getBuyerTierReports(buyerPseudonym: string, buyerTierPseudonym: string) {\r\n this.store.dispatch(new GetBuyerTierReportsList({parentActorPseudonym: buyerPseudonym, childActorPseudonym: buyerTierPseudonym}));\r\n return this.getBuyerTierReportsRequestState$;\r\n }\r\n\r\n getBuyerTierReportDocuments(buyerPseudonym: string, buyerTierPseudonym: string, reportPseudonym: string) {\r\n this.store.dispatch(new GetBuyerTierReportDocumentsList({parentActorPseudonym: buyerPseudonym, childActorPseudonym: buyerTierPseudonym, reportPseudonym}));\r\n return this.getBuyerTierReportDocumentsRequestState$;\r\n }\r\n\r\n getBuyerTierReportDocument(\r\n buyerPseudonym: string,\r\n buyerTierPseudonym: string,\r\n reportPseudonym: string,\r\n reportDocumentPseudonym: string,\r\n page: number = 1,\r\n pageSize?: number,\r\n ) {\r\n this.store.dispatch(\r\n new GetBuyerTierReportDocument({\r\n parentActorPseudonym: buyerPseudonym,\r\n childActorPseudonym: buyerTierPseudonym,\r\n reportPseudonym,\r\n reportDocumentPseudonym,\r\n page,\r\n pageSize,\r\n }));\r\n return this.getBuyerTierReportDocumentRequestState$;\r\n }\r\n\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { INotification } from '../../shared/models/notification.interface';\r\nimport { GetNotifications } from '../ngxs/notification/notification.actions';\r\nimport { GetNotificationsRequestState } from '../ngxs/notification/notification.state';\r\nimport { NotificationGetterState } from '../ngxs/notification/notification-getter.state';\r\nimport { RequestGetterState } from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationService {\r\n notifications$: Observable = this.store.select(NotificationGetterState.getAllNotifications)\r\n getNotificationsRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetNotificationsRequestState)\r\n );\r\n\r\n constructor(\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n getNotifications() {\r\n return this.store.dispatch(new GetNotifications());\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, map } from 'rxjs/operators';\r\n\r\nimport { IRegion } from '../../shared/models/region.interface';\r\nimport { GetRegions } from '../ngxs/region/region.actions';\r\nimport { GetRegionsRequestState } from '../ngxs/region/region.state';\r\nimport { RegionGetterState } from '../ngxs/region/region-getter.state';\r\nimport {RequestGetterState} from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class RegionService {\r\n\r\n regions$: Observable = this.store.select(RegionGetterState.getAllRegions);\r\n getRegionsRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetRegionsRequestState)\r\n );\r\n\r\n regionsFlagsList$: Observable<{value: number, label: string}[]>;\r\n\r\n constructor(\r\n private store: Store,\r\n ) {\r\n this.regionsFlagsList$ = this.regions$.pipe(\r\n filter((regions) => !!regions),\r\n map((regions) => regions.map((region) => ({value: region.id, label: region.countryCode})))\r\n );\r\n }\r\n\r\n getRegions() {\r\n return this.store.dispatch(new GetRegions());\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\nimport { filter, map } from 'rxjs/operators';\r\n\r\nimport { ISession } from '../../shared/models/session/session.interface';\r\nimport { GetSession, UpdateSession } from '../ngxs/session/session.actions';\r\nimport { UpdateSessionRequestState } from '../ngxs/session/session.state';\r\nimport { SessionGetterState } from '../ngxs/session/session-getter.state';\r\nimport {RequestGetterState} from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SessionService {\r\n session$: Observable = this.store.select(SessionGetterState.getSession);\r\n updateSessionRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(UpdateSessionRequestState)\r\n );\r\n\r\n menuOptions$: Observable;\r\n\r\n constructor(private store: Store) {\r\n\r\n this.menuOptions$ = this.session$.pipe(\r\n filter((session) => !!session),\r\n map(session => session.viewDirectives.menuOptions)\r\n );\r\n\r\n }\r\n\r\n getUserSession() {\r\n this.store.dispatch(new GetSession());\r\n }\r\n\r\n updateUserSession(updatedField: { fieldName: string, value: string | number }) {\r\n this.store.dispatch(new UpdateSession(updatedField));\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { IGetStreamSalesPayload } from '../../shared/models/stream/get-stream-sales-payload.interface';\r\nimport { IUpdateStreamPayload } from '../../shared/models/stream/update-stream-payload.interface';\r\nimport {\r\n GetStream,\r\n PauseStream,\r\n RequestStreamPriceChange,\r\n ResumeStream,\r\n UpdateStream\r\n} from '../ngxs/stream/stream.actions';\r\nimport {\r\n GetStreamRequestState,\r\n PauseStreamRequestState,\r\n ResumeStreamRequestState,\r\n} from '../ngxs/stream/stream.state';\r\nimport { GetStreamSales } from '../ngxs/stream-sales/stream-sales.actions';\r\nimport { GetStreamSalesRequestState } from '../ngxs/stream-sales/stream-sales.state';\r\nimport { GetStreamReportsListRequestState } from '../ngxs/report/report.state';\r\nimport { GetStreamReportsList } from '../ngxs/report/report.actions';\r\nimport {\r\n IGetReportDocumentsListPayload\r\n} from '../../shared/models/reports/get-report-documents-list-payload.interface';\r\nimport { GetStreamReportDocument, GetStreamReportDocumentsList } from '../ngxs/report-document/report-document.actions';\r\nimport {\r\n GetStreamReportDocumentRequestState,\r\n GetStreamReportDocumentsListRequestState\r\n} from '../ngxs/report-document/report-document.state';\r\nimport { IGetReportDocumentPayload } from '../../shared/models/reports/get-report-document-payload.interface';\r\nimport {RequestGetterState} from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class StreamService {\r\n getStreamRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetStreamRequestState)\r\n );\r\n getStreamSalesRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetStreamSalesRequestState)\r\n );\r\n resumeStreamRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(ResumeStreamRequestState)\r\n );\r\n pauseStreamRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(PauseStreamRequestState)\r\n );\r\n getStreamReportsListRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetStreamReportsListRequestState)\r\n );\r\n getStreamReportDocumentsListRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetStreamReportDocumentsListRequestState)\r\n );\r\n getStreamReportDocumentRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetStreamReportDocumentRequestState)\r\n );\r\n\r\n constructor(private store: Store) {\r\n }\r\n\r\n getStream(streamAgentPseudonym: string, streamPseudonym: string) {\r\n this.store.dispatch(new GetStream({streamAgentPseudonym, streamPseudonym}));\r\n return this.getStreamRequestState$;\r\n }\r\n\r\n getStreamSales(payload: IGetStreamSalesPayload) {\r\n this.store.dispatch(new GetStreamSales(payload));\r\n return this.getStreamSalesRequestState$;\r\n }\r\n\r\n updateStream(payload: IUpdateStreamPayload) {\r\n return this.store.dispatch(new UpdateStream(payload));\r\n }\r\n\r\n resumeStream(streamAgentPseudonym: string, streamPseudonym: string, pseudonyms: string[]) {\r\n return this.store.dispatch(new ResumeStream({streamAgentPseudonym, streamPseudonym, pseudonyms}));\r\n }\r\n\r\n pauseStream(streamAgentPseudonym: string, streamPseudonym: string, pausedUntil: string, pseudonyms?: string[]) {\r\n return this.store.dispatch(new PauseStream({streamAgentPseudonym, streamPseudonym, pausedUntil, pseudonyms}));\r\n }\r\n\r\n requestStreamPriceChange(streamAgentPseudonym: string, streamPseudonym: string, requestedPrice: number, comment: string) {\r\n return this.store.dispatch(new RequestStreamPriceChange({\r\n streamAgentPseudonym,\r\n streamPseudonym,\r\n requestPayload: {requestedPrice, comment}\r\n }));\r\n }\r\n\r\n getStreamReportsList(streamAgentPseudonym: string, streamPseudonym: string) {\r\n this.store.dispatch(new GetStreamReportsList({parentActorPseudonym: streamAgentPseudonym, childActorPseudonym: streamPseudonym}));\r\n return this.getStreamReportsListRequestState$;\r\n }\r\n\r\n getStreamReportDocumentsList(payload: IGetReportDocumentsListPayload) {\r\n this.store.dispatch(new GetStreamReportDocumentsList(payload));\r\n return this.getStreamReportDocumentsListRequestState$;\r\n }\r\n\r\n getStreamReportDocument(\r\n { parentActorPseudonym, childActorPseudonym, reportDocumentPseudonym, reportPseudonym, page = 1, pageSize }: IGetReportDocumentPayload\r\n ) {\r\n this.store.dispatch(new GetStreamReportDocument(\r\n {\r\n parentActorPseudonym,\r\n childActorPseudonym,\r\n reportDocumentPseudonym,\r\n reportPseudonym,\r\n page,\r\n pageSize,\r\n }));\r\n return this.getStreamReportDocumentRequestState$;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ITeamMember } from '../../shared/models/team-member/team-member.interface';\r\nimport { UpdateTeamMemberFieldName } from '../../shared/models/team-member/update-team-member-field-name.enum';\r\nimport { CreateTeamMember, RemoveTeamMember, UpdateTeamMember } from '../ngxs/team-member/team-member.actions';\r\nimport {\r\n CreateTeamMemberRequestState,\r\n RemoveTeamMemberRequestState,\r\n} from '../ngxs/team-member/team-member.state';\r\nimport { TeamMemberGetterState } from '../ngxs/team-member/team-member-getter.state';\r\nimport {RequestGetterState} from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TeamManagementService {\r\n selectedTeamMemberCompanyId$: Observable = this.store.select(\r\n TeamMemberGetterState.getSelectedTeamMemberCompanyId\r\n );\r\n createTeamMemberRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(CreateTeamMemberRequestState)\r\n );\r\n removeTeamMemberRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(RemoveTeamMemberRequestState)\r\n );\r\n\r\n constructor(private store: Store) {\r\n }\r\n\r\n createTeamMember(teamMember: ITeamMember, companyPseudonym: string) {\r\n this.store.dispatch(new CreateTeamMember({teamMember, companyPseudonym}));\r\n return this.createTeamMemberRequestState$;\r\n }\r\n\r\n updateTeamMember(\r\n fieldName: UpdateTeamMemberFieldName,\r\n value: string | number,\r\n teamMemberPseudonym: string,\r\n companyPseudonym: string,\r\n ) {\r\n return this.store.dispatch(new UpdateTeamMember({\r\n fieldName,\r\n value,\r\n teamMemberPseudonym,\r\n companyPseudonym\r\n }));\r\n }\r\n\r\n removeTeamMember(\r\n teamMemberPseudonym: string,\r\n companyPseudonym: string,\r\n ) {\r\n this.store.dispatch(new RemoveTeamMember({teamMemberPseudonym, companyPseudonym}));\r\n return this.removeTeamMemberRequestState$;\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {Store} from '@ngxs/store';\r\nimport {IRequest} from 'ngxs-requests-plugin';\r\nimport {Observable} from 'rxjs';\r\n\r\nimport {ITimezone} from '../../shared/models/timezone.interface';\r\nimport {GetTimezones} from '../ngxs/timezone/timezone.actions';\r\nimport {GetTimezonesRequestState} from '../ngxs/timezone/timezone.state';\r\nimport {TimezoneGetterState} from '../ngxs/timezone/timezone-getter.state';\r\nimport {RequestGetterState} from \"../ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class TimezoneService {\r\n\r\n timezones$: Observable = this.store.select(TimezoneGetterState.getAllTimezones);\r\n getTimezonesRequestState$: Observable = this.store.select(\r\n RequestGetterState.getState(GetTimezonesRequestState)\r\n );\r\n utcTimezone$: Observable = this.store.select(TimezoneGetterState.getUTCTimezone());\r\n\r\n constructor(\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n getTimezones() {\r\n return this.store.dispatch(new GetTimezones());\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { ActivatedRoute, NavigationEnd, Router, RouterLink, RouterLinkActive } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { distinctUntilChanged, filter, map, shareReplay } from 'rxjs/operators';\r\n\r\nimport { CompanySettingsService } from '../company-settings/company-settings.service';\r\nimport { AuthService } from '../core/services/auth.service';\r\nimport { SessionService } from '../core/services/session.service';\r\nimport { TeamManagementService } from '../core/services/team-management.service';\r\nimport { MenuOptions } from '../shared/models/session/menu-options.enum';\r\nimport { ServiceHealth } from '../shared/models/session/service-health.enum';\r\nimport { ISession } from '../shared/models/session/session.interface';\r\nimport { MaskFlagPipe } from '../shared/pipes/mask-flag/mask-flag.pipe';\r\nimport { PaymentsService } from '../payments/payments.service';\r\nimport { FlexModule } from '@angular/flex-layout/flex';\r\nimport { NgClass, NgStyle, AsyncPipe, UpperCasePipe } from '@angular/common';\r\nimport { ExtendedModule } from '@angular/flex-layout/extended';\r\nimport { MatTabNav, MatTabLink, MatTabNavPanel } from '@angular/material/tabs';\r\nimport { NotificationsListComponent } from './notifications-list/notifications-list.component';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\nexport interface INavLink {\r\n label: string;\r\n path: string;\r\n styleClass?: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-main-header',\r\n templateUrl: './main-header.component.html',\r\n styleUrls: ['./main-header.component.less'],\r\n standalone: true,\r\n imports: [FlexModule, RouterLink, NgClass, ExtendedModule, MatTabNav, MatTabLink, RouterLinkActive, NgStyle, MatTabNavPanel, ReactiveFormsModule, NotificationsListComponent, AsyncPipe, UpperCasePipe, TranslateModule, MaskFlagPipe]\r\n})\r\nexport class MainHeaderComponent implements OnInit {\r\n\r\n searchControl = new UntypedFormControl(null);\r\n\r\n navLinks$: Observable;\r\n session$: Observable = this.sessionService.session$;\r\n menuOptions$: Observable = this.sessionService.menuOptions$;\r\n selectedCompanyId$: Observable = this.companySettingsService.selectedCompanyId$;\r\n selectedTeamMemberCompanyId$: Observable = this.teamManagementService.selectedTeamMemberCompanyId$;\r\n selectedPaymentsCompanyId$: Observable = this.paymentsService.selectedCompanyId$;\r\n breadcrumbs$: Observable;\r\n\r\n serviceHealth = ServiceHealth;\r\n menuOptions = MenuOptions;\r\n\r\n constructor(\r\n private authService: AuthService,\r\n private sessionService: SessionService,\r\n private maskFlagPipe: MaskFlagPipe,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n private companySettingsService: CompanySettingsService,\r\n private teamManagementService: TeamManagementService,\r\n private paymentsService: PaymentsService,\r\n ) {\r\n }\r\n\r\n ngOnInit() {\r\n this.breadcrumbs$ = this.router.events.pipe(\r\n filter((event) => event instanceof NavigationEnd),\r\n distinctUntilChanged(),\r\n map(() => ([\r\n {path: 'lobby', label: 'TEMPLATE.NAV.LOBBY', styleClass: 'lobby'},\r\n ...this.buildBreadCrumb(this.activatedRoute.root),\r\n ])),\r\n shareReplay(1),\r\n );\r\n\r\n this.navLinks$ = this.menuOptions$.pipe(\r\n map((menuOptions) => {\r\n const showIntegration = this.maskFlagPipe.transform(menuOptions, MenuOptions.ShowIntegration);\r\n const showSites = this.maskFlagPipe.transform(menuOptions, MenuOptions.ShowSites);\r\n\r\n return [\r\n ...(showIntegration ? [{path: 'integration', label: 'TEMPLATE.NAV.INTEGRATION'}] : []),\r\n ...(showSites ? [{path: 'sites', label: 'TEMPLATE.NAV.SITES'}] : []),\r\n ];\r\n })\r\n );\r\n }\r\n\r\n logout() {\r\n this.authService.logout();\r\n }\r\n\r\n buildBreadCrumb(route: ActivatedRoute, url: string = '', breadcrumbs: INavLink[] = []) {\r\n const label = route.routeConfig && route.routeConfig.data ? route.routeConfig.data.breadcrumb : '';\r\n let path = route.routeConfig && route.routeConfig.data ? route.routeConfig.path : '';\r\n const urls = path.split('/');\r\n\r\n path = urls.map((item) => {\r\n const isDynamicRoute = item.startsWith(':');\r\n if (isDynamicRoute && !!route.snapshot) {\r\n const paramName = item.split(':')[1];\r\n return route.snapshot.params[paramName];\r\n } else {\r\n return item;\r\n }\r\n }).join('/');\r\n\r\n const nextUrl = path ? `${url}/${path}` : url;\r\n const breadcrumb = {\r\n label: label,\r\n path: nextUrl,\r\n };\r\n const newBreadcrumbs = breadcrumb.label ? [...breadcrumbs, breadcrumb] : breadcrumbs;\r\n if (route.firstChild) {\r\n return this.buildBreadCrumb(route.firstChild, nextUrl, newBreadcrumbs);\r\n }\r\n return newBreadcrumbs;\r\n }\r\n}\r\n\r\n","
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \"logo\"\r\n \r\n \r\n \r\n \r\n \r\n
\r\n @if (menuOptions$ | async | mask: menuOptions.ShowSearch) {\r\n
\r\n \r\n
\r\n }\r\n @if ((session$ | async); as session) {\r\n
\r\n @if ((menuOptions$ | async | mask: menuOptions.ShowDeveloperLink) && !!session.devPortalUrl) {\r\n \r\n
\r\n \r\n {{ 'TEMPLATE.NAV.DOCUMENTATION' | translate | uppercase }}\r\n
\r\n
\r\n }\r\n @if (menuOptions$ | async | mask: menuOptions.ShowCompanyManagement) {\r\n
\r\n \r\n
\r\n
\r\n \"dropTab\"\r\n
\r\n
\r\n @if (menuOptions$ | async | mask: menuOptions.ShowCompanySettings) {\r\n \r\n
{{ 'TEMPLATE.NAV.SETTINGS' | translate }}
\r\n
\r\n }\r\n @if (menuOptions$ | async | mask: menuOptions.ShowCompanyTeams) {\r\n \r\n
{{ 'TEMPLATE.NAV.TEAM_MANAGEMENT' | translate }}
\r\n
\r\n }\r\n
\r\n
\r\n
\r\n }\r\n \r\n \r\n \r\n @if (menuOptions$ | async | mask: menuOptions.ShowNotifications) {\r\n
\r\n \r\n
\r\n
\r\n \"dropTab\"\r\n
\r\n
\r\n
{{ 'TEMPLATE.NAV.NOTIFICATIONS' | translate }}
\r\n \r\n \r\n {{ 'TEMPLATE.NAV.SEE_NOTIFICATION_HISTORY' | translate }}\r\n
\r\n \r\n
\r\n
\r\n
\r\n }\r\n
\r\n
\r\n {{ (session$ | async)?.nickname }}\r\n
\r\n \r\n
\r\n
\r\n }\r\n \r\n
\r\n","import { Component } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { NotificationService } from '../../core/services/notification.service';\r\nimport { INotification } from '../../shared/models/notification.interface';\r\nimport { NgClass, AsyncPipe } from '@angular/common';\r\nimport { RouterLinkActive } from '@angular/router';\r\nimport { FlexModule } from '@angular/flex-layout/flex';\r\nimport { ExtendedModule } from '@angular/flex-layout/extended';\r\nimport { NotificationDateComponent } from '../../shared/components/notification-date/notification-date.component';\r\n\r\n@Component({\r\n selector: 'app-notifications-list',\r\n templateUrl: './notifications-list.component.html',\r\n styleUrls: ['./notifications-list.component.less'],\r\n standalone: true,\r\n imports: [RouterLinkActive, FlexModule, NgClass, ExtendedModule, NotificationDateComponent, AsyncPipe]\r\n})\r\nexport class NotificationsListComponent {\r\n\r\n notifications$: Observable = this.notificationService.notifications$;\r\n\r\n constructor(\r\n private notificationService: NotificationService,\r\n ) {\r\n\r\n }\r\n}\r\n","
\r\n @for (notification of (notifications$ | async); track notification.id) {\r\n \r\n }\r\n
\r\n\r\n","import { Component } from '@angular/core';\r\nimport { ActivatedRoute, UrlSegment } from '@angular/router';\r\nimport { map } from 'rxjs/operators';\r\nimport { AsyncPipe } from '@angular/common';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-not-found',\r\n templateUrl: './not-found.component.html',\r\n standalone: true,\r\n imports: [AsyncPipe, TranslateModule],\r\n})\r\nexport class NotFoundComponent {\r\n\r\n constructor(\r\n private activatedRoute: ActivatedRoute,\r\n ) {\r\n }\r\n\r\n get route$() {\r\n return this.activatedRoute.url.pipe(\r\n map((urlSegments: UrlSegment[]) =>\r\n urlSegments\r\n .map((segment: UrlSegment) => segment.path)\r\n .join('/')\r\n )\r\n );\r\n }\r\n}\r\n","

\r\n {{ \"TEMPLATE.NOT_FOUND.TITLE\" | translate: ({page: (route$ | async)}) }}\r\n

\r\n","import { Injectable } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\n\r\nimport {\r\n GetCompanyPayments,\r\n PutCompanyPayments,\r\n UpdateCompanyPayments\r\n} from '../core/ngxs/company-payments/company-payments.actions';\r\nimport {\r\n GetCompanyPaymentsRequestState,\r\n UpdateCompanyPaymentsRequestState\r\n} from '../core/ngxs/company-payments/company-payments.state';\r\nimport { CompanyPaymentsGetterState } from '../core/ngxs/company-payments/company-payments-getter.state';\r\nimport { UpdatedPaymentFieldName } from '../shared/models/company/payments/updated-payment-field-name.enum';\r\nimport {RequestGetterState} from \"../core/ngxs/requests/request-getter.state\";\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\n\r\nexport class PaymentsService {\r\n\r\n getCompanyPaymentsRequestState$: Observable= this.store.select(\r\n RequestGetterState.getState(GetCompanyPaymentsRequestState)\r\n );\r\n updateCompanyPaymentsRequestState$: Observable= this.store.select(\r\n RequestGetterState.getState(UpdateCompanyPaymentsRequestState)\r\n );\r\n selectedCompanyId$: Observable = this.store.select(CompanyPaymentsGetterState.getSelectedPaymentCompanyId);\r\n\r\n constructor(\r\n private store: Store,\r\n ) {\r\n }\r\n\r\n getPayments(companyPseudonym: string) {\r\n this.store.dispatch(new GetCompanyPayments(companyPseudonym));\r\n return this.getCompanyPaymentsRequestState$;\r\n }\r\n\r\n createPayment(companyPseudonym: string, data: {regionId: number, currencyId: number}) {\r\n this.store.dispatch(new PutCompanyPayments({companyPseudonym, data}));\r\n }\r\n\r\n updatePayment(updatedField: { fieldName: UpdatedPaymentFieldName, value: string, companyPseudonym: string }) {\r\n this.store.dispatch(new UpdateCompanyPayments(updatedField));\r\n return this.updateCompanyPaymentsRequestState$;\r\n }\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { interval, Observable } from 'rxjs';\r\nimport { map, startWith } from 'rxjs/operators';\r\n\r\nimport { TimeDifferencePipe } from '../../pipes/time-difference/time-difference.pipe';\r\nimport { AsyncPipe } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-notification-date',\r\n templateUrl: './notification-date.component.html',\r\n standalone: true,\r\n imports: [AsyncPipe],\r\n providers: [TimeDifferencePipe]\r\n})\r\nexport class NotificationDateComponent implements OnInit {\r\n @Input() date: string;\r\n @Input() fullFormat = false;\r\n\r\n duration$: Observable;\r\n\r\n constructor(\r\n private timeDifferencePipe: TimeDifferencePipe\r\n ) {\r\n }\r\n\r\n ngOnInit() {\r\n this.duration$ = interval(1000).pipe(\r\n startWith(0),\r\n map(() => this.timeDifferencePipe.transform(this.date))\r\n );\r\n }\r\n}\r\n","{{duration$ | async}}\r\n","export const iodcClientSettings = {\r\n authority: 'https://py-identityp.pingyo.com',\r\n\r\n client_id: 'pt-partner',\r\n redirect_uri: window.location.origin + '/identity/callback',\r\n post_logout_redirect_uri: window.location.origin + '/lobby',\r\n\r\n // these two will be done dynamically from the buttons clicked, but are\r\n // needed if you want to use the silent_renew\r\n response_type: 'code',\r\n scope: 'openid profile pt-core-service',\r\n\r\n // silent renew will get a new access_token via an iframe\r\n // just prior to the old access_token expiring (60 seconds prior)\r\n silent_redirect_uri: window.location.origin + '/identity/silent',\r\n};\r\n","export enum BuyerTierCharacteristics {\r\n IntegrationSupportsPriceBidding = 0x1,\r\n PriceBidding = 0x2,\r\n InternallyOwned = 0x4,\r\n IntegrationSupportsDynamicPricing = 0x20,\r\n PriceChangeRequestPending = 0x80,\r\n}\r\n","export enum UpdatedBlacklistPolicyFieldName {\r\n Name = 'Name',\r\n Description = 'Description',\r\n Enabled = 'Enabled',\r\n Characteristics = 'Characteristics',\r\n Level1ThresholdMin = 'Level1ThresholdMin',\r\n Level2ThresholdMin = 'Level2ThresholdMin',\r\n Level1Periodicity = 'Level1Periodicity',\r\n Level2Periodicity = 'Level2Periodicity',\r\n DelayThresholdMin = 'DelayThresholdMin',\r\n DelayPeriodicity = 'DelayPeriodicity',\r\n}\r\n","export enum JourneyPoliciesCharacteristics {\r\n HasFilters = 0x1,\r\n HasAdjustors = 0x2,\r\n NoDupeManagement = 0x4,\r\n HasLimits = 0x8,\r\n DynamicPricing = 0x10,\r\n SupportsPriceBidding = 0x20,\r\n SuppressTimeoutThrottling = 0x40,\r\n SuppressFaultThrottling = 0x80,\r\n SuppressClosureThrottling = 0x100,\r\n}\r\n","export enum SharedComponentActorType {\r\n BuyerTier = 1,\r\n Stream = 2,\r\n}\r\n","export enum UpdatedEntityFieldName {\r\n Name = 'Name',\r\n Description = 'Description',\r\n Enabled = 'Enabled',\r\n Characteristics = 'Characteristics',\r\n ProviderName = 'ProviderName',\r\n CustomSettings = 'CustomSettings',\r\n Filters = 'Filters',\r\n OpeningHours = 'OpeningHours',\r\n CommissionPolicies_DynamicCommission = 'CommissionPolicies_DynamicCommission',\r\n CommissionPolicies_AllowReceiptPriceOverrides = 'CommissionPolicies_AllowReceiptPriceOverrides',\r\n CommissionPolicies_FundingAuthorizationKey = 'CommissionPolicies_FundingAuthorizationKey',\r\n JourneyPolicies_TimeLimiterType = 'JourneyPolicies_TimeLimiterType',\r\n JourneyPolicies_SuppressThrottling = 'JourneyPolicies_SuppressThrottling',\r\n JourneyPolicies_TestOnly = 'JourneyPolicies_TestOnly',\r\n JourneyPolicies_SuppressPriceConstraintChecks = 'JourneyPolicies_SuppressPriceConstraintChecks',\r\n JourneyPolicies_Timeout = 'JourneyPolicies_Timeout',\r\n JourneyPolicies_PriceBiddingPosition = 'JourneyPolicies_PriceBiddingPosition',\r\n JourneyPolicies_PositionPreference = 'JourneyPolicies_PositionPreference',\r\n JourneyPolicies_CoinTossRatio = 'JourneyPolicies_CoinTossRatio',\r\n JourneyPolicies_TreatSubmitsAsAccepts = 'JourneyPolicies_TreatSubmitsAsAccepts',\r\n JourneyPolicies_PriceGroup = 'JourneyPolicies_PriceGroup',\r\n JourneyPolicies_SuppressResponseTimeFiltering = 'JourneyPolicies_SuppressResponseTimeFiltering',\r\n JourneyPolicies_SuppressBlacklistInspection = 'JourneyPolicies_SuppressBlacklistInspection',\r\n BuyerReference = 'BuyerReference',\r\n Type = 'Type',\r\n RiskProfile = 'RiskProfile',\r\n LastPurchase = 'LastPurchase',\r\n ProductCharacteristics = 'ProductCharacteristics',\r\n JourneyPolicies_BlacklistPolicyId = 'JourneyPolicies_BlacklistPolicyId',\r\n PausedUntil = 'PausedUntil',\r\n OpeningHoursId = 'OpeningHoursId',\r\n JourneyPolicies_SellerManagement_Mode = 'JourneyPolicies_SellerManagement_Mode',\r\n JourneyPolicies_SellerManagement_Inherit = 'JourneyPolicies_SellerManagement_Inherit',\r\n JourneyPolicies_SellerManagement_Sellers = 'JourneyPolicies_SellerManagement_Sellers',\r\n JourneyPolicies_SellerManagement_RestrictionLevel = 'JourneyPolicies_SellerManagement_RestrictionLevel',\r\n JourneyPolicies_Characteristics_SuppressTimeoutThrottling = 'JourneyPolicies_Characteristics_SuppressTimeoutThrottling',\r\n JourneyPolicies_Characteristics_SuppressFaultThrottling = 'JourneyPolicies_Characteristics_SuppressFaultThrottling',\r\n JourneyPolicies_Characteristics_SuppressClosureThrottling = 'JourneyPolicies_Characteristics_SuppressClosureThrottling',\r\n APR = 'APR',\r\n RepresentativeExample = 'RepresentativeExample',\r\n JourneyPolicies_PriceBiddingAcceptanceRate = 'JourneyPolicies_PriceBiddingAcceptanceRate'\r\n}\r\n","export enum CompanyCharacteristic {\r\n None = 0x0,\r\n InternallyOwned = 0x1,\r\n VerifiedAsGenuine = 0x2,\r\n HasBankAccount = 0x8,\r\n}\r\n","export enum UpdatedPaymentFieldName {\r\n BankName = 'BankName',\r\n BankBranchTitle = 'BankBranchTitle',\r\n BIC = 'BIC',\r\n BankInstitutionId = 'BankInstitutionId',\r\n BankRoutingNumber = 'BankRoutingNumber',\r\n BankPhoneNumber = 'BankPhoneNumber',\r\n BankAddress = 'BankAddress',\r\n IBAN = 'IBAN',\r\n AccountNumber = 'AccountNumber',\r\n AccountHolderNameOnAccount = 'AccountHolderNameOnAccount',\r\n AccountHolderPhoneNumber = 'AccountHolderPhoneNumber',\r\n AccountHolderAddress = 'AccountHolderAddress',\r\n Notes = 'Notes',\r\n}\r\n","export enum UpdatedCompanyFieldName {\r\n Name = 'Name',\r\n Url = 'Url',\r\n Characteristics = 'Characteristics',\r\n Enabled = 'Enabled',\r\n RegionId = 'RegionId',\r\n Address_Line1 = 'Address_Line1',\r\n Address_Line2 = 'Address_Line2',\r\n Address_Line3 = 'Address_Line3',\r\n Address_TownCity = 'Address_TownCity',\r\n Address_County = 'Address_County',\r\n Address_Country = 'Address_Country',\r\n Address_StateProvince = 'Address_StateProvince',\r\n Address_Postcode = 'Address_Postcode',\r\n Address_PhoneNumber = 'Address_PhoneNumber',\r\n Type = 'Type',\r\n}\r\n","export enum LimitCharacteristics {\r\n None = 0x0,\r\n UseDayOfWeekLimits = 0x1,\r\n CountSubmissionAsSale = 0x2,\r\n}\r\n","export enum PaginationHeaders {\r\n PageSize = 'PTX-PageSize',\r\n PageNumber = 'PTX-Page',\r\n}\r\n","export enum SellerReputationCharacteristics {\r\n ResolutionReviewPending = 0x1,\r\n AssistanceRequested = 0x2,\r\n}\r\n","export enum BannerMessageType {\r\n Benign = 0,\r\n PendingChange = 1,\r\n Info = 2,\r\n Good = 3,\r\n Warning = 4,\r\n Alert = 5,\r\n CallToAction = 6,\r\n}\r\n","export enum ClientType {\r\n PtPartner = 1,\r\n PyObserver = 2,\r\n PtOperation = 4,\r\n PtCustomerService = 8\r\n}\r\n","export enum LinkArea {\r\n None = 0,\r\n CompanyPayments = 1,\r\n}\r\n","export enum MenuOptions {\r\n ShowIntegration = 0x1,\r\n ShowSearch = 0x2,\r\n ShowSites = 0x4,\r\n ShowCompany = 0x8,\r\n ShowCompanySettings = 0x10,\r\n ShowCompanyTeams = 0x20,\r\n ShowUserManagement = 0x40,\r\n ShowSellerCreation = 0x80,\r\n ShowNotifications = 0x100,\r\n ShowLimits = 0x200,\r\n ShowDemographics = 0x400,\r\n ShowCompanyManagement = 0x800,\r\n ShowDeveloperLink = 0x1000,\r\n ShowPaymentsOption = 0x2000,\r\n}\r\n","export enum ServiceHealth {\r\n Stable = 0,\r\n Degraded = 1,\r\n Down = 2,\r\n}\r\n","export enum StreamCharacteristic {\r\n InternallyOwned = 0x1,\r\n IntegrationSupportsDynamicPricing = 0x4,\r\n HasLimits = 0x8,\r\n PriceChangeRequestPending = 0x10,\r\n MarketingOptOutRelay = 0x20,\r\n ComplianceNotificationRelay = 0x40,\r\n BlindRelay = 0x80,\r\n SellerReturnRelay = 0x100,\r\n AnonymisedRelay = 0x200,\r\n MarketingRelay = 0x400,\r\n WitholdCommissionsFromSellers = 0x800,\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'mask',\r\n standalone: true\r\n})\r\nexport class MaskFlagPipe implements PipeTransform {\r\n public transform(value: number, mask: number | any) {\r\n return (value & mask) === mask;\r\n }\r\n}\r\n","import { DatePipe } from '@angular/common';\r\nimport { Pipe, PipeTransform } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport moment from 'moment';\r\n\r\n@Pipe({\r\n name: 'timeDifference',\r\n standalone: true\r\n})\r\nexport class TimeDifferencePipe implements PipeTransform {\r\n\r\n constructor(\r\n private datePipe: DatePipe,\r\n private translateService: TranslateService,\r\n ) {\r\n\r\n }\r\n\r\n public transform(date: string) {\r\n\r\n const now = moment(new Date());\r\n const startDate = moment(date);\r\n const duration = moment.duration(now.diff(startDate));\r\n\r\n const ago = this.translateService.instant('SHARED.TIME.AGO');\r\n\r\n if (duration.asDays() >= 100) {\r\n return this.datePipe.transform(date, 'dd MMMM yyyy');\r\n } else if (Number(duration.asDays()) >= 2) {\r\n return `${duration.days()} ${' ' + this.translateService.instant('SHARED.TIME.DAYS') + ' ' + ago}`;\r\n } else if (Number(duration.asDays()) >= 1) {\r\n return `${duration.days()}${' ' + this.translateService.instant('SHARED.TIME.DAY') + ' ' + ago}`;\r\n } else if (duration.asHours() >= 2) {\r\n return `${duration.hours()}${' ' + this.translateService.instant('SHARED.TIME.HOURS') + ' ' + ago}`;\r\n } else if (duration.asHours() >= 1) {\r\n return `${duration.hours()}${' ' + this.translateService.instant('SHARED.TIME.HOUR') + ' ' + ago}`;\r\n } else if (duration.asMinutes() >= 2) {\r\n return `${duration.minutes()}${' ' + this.translateService.instant('SHARED.TIME.MINUTES') + ' ' + ago}`;\r\n } else if (duration.asMinutes() >= 1) {\r\n return `${duration.minutes()}${' ' + this.translateService.instant('SHARED.TIME.MINUTE') + ' ' + ago}`;\r\n } else {\r\n return this.translateService.instant('SHARED.TIME.NOW');\r\n }\r\n\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport moment from 'moment';\r\n\r\n@Pipe({\r\n name: 'timeDuration',\r\n standalone: true\r\n})\r\nexport class TimeDurationPipe implements PipeTransform {\r\n\r\n constructor(\r\n private translateService: TranslateService,\r\n ) {\r\n }\r\n\r\n public transform(date: string) {\r\n if (!date) {\r\n return null;\r\n }\r\n const duration = moment.duration(moment(date).utc().diff(moment().utc()));\r\n const days = parseInt(String(duration.asDays()), 10);\r\n const hours = duration.hours();\r\n const minutes = duration.minutes();\r\n const seconds = duration.seconds();\r\n const d = days > 0 ? days + this.translateService.instant('SHARED.TIME.D') : '';\r\n const h = (hours < 10 ? '0' + hours : hours) + this.translateService.instant('SHARED.TIME.H');\r\n const m = (minutes < 10 ? '0' + minutes : minutes) + this.translateService.instant('SHARED.TIME.M');\r\n const s = (seconds < 10 ? '0' + seconds : seconds) + this.translateService.instant('SHARED.TIME.S');\r\n const countDown = `${d} ${h} ${m} ${days > 0 ? '' : s}`;\r\n\r\n return duration.milliseconds() < 0 ? null : countDown;\r\n }\r\n}\r\n","import { Component, inject } from '@angular/core';\r\nimport { Store } from '@ngxs/store';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { RequestsGetterState } from '../../core/ngxs/requests/requests-getter.state';\r\nimport { AsyncPipe } from '@angular/common';\r\nimport { MatProgressSpinner } from '@angular/material/progress-spinner';\r\n\r\n@Component({\r\n selector: 'app-spinner',\r\n templateUrl: './spinner.component.html',\r\n standalone: true,\r\n imports: [\r\n MatProgressSpinner,\r\n AsyncPipe,\r\n ],\r\n})\r\nexport class SpinnerComponent {\r\n\r\n showSpinner$: Observable = inject(Store).select(RequestsGetterState.getShowRequestsSpinner);\r\n\r\n}\r\n","@if (showSpinner$ | async) {\r\n
\r\n \r\n
\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { Store } from '@ngxs/store';\r\nimport { IRequest } from 'ngxs-requests-plugin';\r\nimport { Observable, of } from 'rxjs';\r\nimport { map, switchMapTo, take } from 'rxjs/operators';\r\n\r\nimport { StreamGetterState } from '../../core/ngxs/stream/stream-getter.state';\r\nimport { StreamService } from '../../core/services/stream.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class StreamResolverService {\r\n\r\n constructor(\r\n private store: Store,\r\n private streamService: StreamService,\r\n ) {\r\n }\r\n resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable {\r\n return this.store.select(StreamGetterState.getStreamByPseudonym(route.params.streamPseudonym)).pipe(\r\n map((stream) => {\r\n if (stream && stream.journeyPolicies) {\r\n return stream;\r\n } else {\r\n return this.streamService.getStream(route.params.streamAgentPseudonym, route.params.streamPseudonym);\r\n }\r\n }),\r\n switchMapTo(this.streamService.getStreamRequestState$),\r\n take(1),\r\n );\r\n }\r\n}\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: false,\r\n baseServiceUrl: 'https://pt-coreservice.pingyo.com:9467/api',\r\n // TODO remove if globalSettingLocalStorageKey would`t be necessary\r\n globalSettingLocalStorageKey: 'global',\r\n};\r\n\r\n/*\r\n * In development mode, to ignore zone related error stack frames such as\r\n * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can\r\n * import the following file, but please comment it out in production mode\r\n * because it will have performance impact when throw error\r\n */\r\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\r\n","import { enableProdMode } from '@angular/core';\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\n\r\nimport { environment } from './environments/environment';\r\nimport { AppComponent } from './app/app.component';\r\nimport {appConfig} from \"./app/app.config\";\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nbootstrapApplication(AppComponent, appConfig)\r\n.catch(err => console.log(err));\r\n","var map = {\n\t\"./af\": 85637,\n\t\"./af.js\": 85637,\n\t\"./ar\": 6777,\n\t\"./ar-dz\": 74508,\n\t\"./ar-dz.js\": 74508,\n\t\"./ar-kw\": 67504,\n\t\"./ar-kw.js\": 67504,\n\t\"./ar-ly\": 95373,\n\t\"./ar-ly.js\": 95373,\n\t\"./ar-ma\": 92412,\n\t\"./ar-ma.js\": 92412,\n\t\"./ar-ps\": 78823,\n\t\"./ar-ps.js\": 78823,\n\t\"./ar-sa\": 36670,\n\t\"./ar-sa.js\": 36670,\n\t\"./ar-tn\": 36448,\n\t\"./ar-tn.js\": 36448,\n\t\"./ar.js\": 6777,\n\t\"./az\": 23009,\n\t\"./az.js\": 23009,\n\t\"./be\": 28299,\n\t\"./be.js\": 28299,\n\t\"./bg\": 4685,\n\t\"./bg.js\": 4685,\n\t\"./bm\": 11171,\n\t\"./bm.js\": 11171,\n\t\"./bn\": 23590,\n\t\"./bn-bd\": 5841,\n\t\"./bn-bd.js\": 5841,\n\t\"./bn.js\": 23590,\n\t\"./bo\": 54309,\n\t\"./bo.js\": 54309,\n\t\"./br\": 54130,\n\t\"./br.js\": 54130,\n\t\"./bs\": 8033,\n\t\"./bs.js\": 8033,\n\t\"./ca\": 55294,\n\t\"./ca.js\": 55294,\n\t\"./cs\": 53028,\n\t\"./cs.js\": 53028,\n\t\"./cv\": 5807,\n\t\"./cv.js\": 5807,\n\t\"./cy\": 70342,\n\t\"./cy.js\": 70342,\n\t\"./da\": 38269,\n\t\"./da.js\": 38269,\n\t\"./de\": 11489,\n\t\"./de-at\": 42123,\n\t\"./de-at.js\": 42123,\n\t\"./de-ch\": 17757,\n\t\"./de-ch.js\": 17757,\n\t\"./de.js\": 11489,\n\t\"./dv\": 28152,\n\t\"./dv.js\": 28152,\n\t\"./el\": 7687,\n\t\"./el.js\": 7687,\n\t\"./en-au\": 46668,\n\t\"./en-au.js\": 46668,\n\t\"./en-ca\": 76798,\n\t\"./en-ca.js\": 76798,\n\t\"./en-gb\": 53615,\n\t\"./en-gb.js\": 53615,\n\t\"./en-ie\": 91364,\n\t\"./en-ie.js\": 91364,\n\t\"./en-il\": 79907,\n\t\"./en-il.js\": 79907,\n\t\"./en-in\": 70533,\n\t\"./en-in.js\": 70533,\n\t\"./en-nz\": 33190,\n\t\"./en-nz.js\": 33190,\n\t\"./en-sg\": 51096,\n\t\"./en-sg.js\": 51096,\n\t\"./eo\": 3962,\n\t\"./eo.js\": 3962,\n\t\"./es\": 37726,\n\t\"./es-do\": 65010,\n\t\"./es-do.js\": 65010,\n\t\"./es-mx\": 63654,\n\t\"./es-mx.js\": 63654,\n\t\"./es-us\": 59043,\n\t\"./es-us.js\": 59043,\n\t\"./es.js\": 37726,\n\t\"./et\": 25343,\n\t\"./et.js\": 25343,\n\t\"./eu\": 90728,\n\t\"./eu.js\": 90728,\n\t\"./fa\": 60787,\n\t\"./fa.js\": 60787,\n\t\"./fi\": 71771,\n\t\"./fi.js\": 71771,\n\t\"./fil\": 45335,\n\t\"./fil.js\": 45335,\n\t\"./fo\": 69761,\n\t\"./fo.js\": 69761,\n\t\"./fr\": 1670,\n\t\"./fr-ca\": 28991,\n\t\"./fr-ca.js\": 28991,\n\t\"./fr-ch\": 97280,\n\t\"./fr-ch.js\": 97280,\n\t\"./fr.js\": 1670,\n\t\"./fy\": 24203,\n\t\"./fy.js\": 24203,\n\t\"./ga\": 69858,\n\t\"./ga.js\": 69858,\n\t\"./gd\": 38605,\n\t\"./gd.js\": 38605,\n\t\"./gl\": 27365,\n\t\"./gl.js\": 27365,\n\t\"./gom-deva\": 33896,\n\t\"./gom-deva.js\": 33896,\n\t\"./gom-latn\": 95587,\n\t\"./gom-latn.js\": 95587,\n\t\"./gu\": 97950,\n\t\"./gu.js\": 97950,\n\t\"./he\": 92029,\n\t\"./he.js\": 92029,\n\t\"./hi\": 51897,\n\t\"./hi.js\": 51897,\n\t\"./hr\": 29816,\n\t\"./hr.js\": 29816,\n\t\"./hu\": 22253,\n\t\"./hu.js\": 22253,\n\t\"./hy-am\": 28196,\n\t\"./hy-am.js\": 28196,\n\t\"./id\": 51307,\n\t\"./id.js\": 51307,\n\t\"./is\": 95474,\n\t\"./is.js\": 95474,\n\t\"./it\": 23099,\n\t\"./it-ch\": 45807,\n\t\"./it-ch.js\": 45807,\n\t\"./it.js\": 23099,\n\t\"./ja\": 19127,\n\t\"./ja.js\": 19127,\n\t\"./jv\": 30182,\n\t\"./jv.js\": 30182,\n\t\"./ka\": 10758,\n\t\"./ka.js\": 10758,\n\t\"./kk\": 93444,\n\t\"./kk.js\": 93444,\n\t\"./km\": 72034,\n\t\"./km.js\": 72034,\n\t\"./kn\": 46223,\n\t\"./kn.js\": 46223,\n\t\"./ko\": 83064,\n\t\"./ko.js\": 83064,\n\t\"./ku\": 8714,\n\t\"./ku-kmr\": 10961,\n\t\"./ku-kmr.js\": 10961,\n\t\"./ku.js\": 8714,\n\t\"./ky\": 12062,\n\t\"./ky.js\": 12062,\n\t\"./lb\": 84796,\n\t\"./lb.js\": 84796,\n\t\"./lo\": 19279,\n\t\"./lo.js\": 19279,\n\t\"./lt\": 106,\n\t\"./lt.js\": 106,\n\t\"./lv\": 11840,\n\t\"./lv.js\": 11840,\n\t\"./me\": 42240,\n\t\"./me.js\": 42240,\n\t\"./mi\": 13588,\n\t\"./mi.js\": 13588,\n\t\"./mk\": 15518,\n\t\"./mk.js\": 15518,\n\t\"./ml\": 37823,\n\t\"./ml.js\": 37823,\n\t\"./mn\": 98657,\n\t\"./mn.js\": 98657,\n\t\"./mr\": 61285,\n\t\"./mr.js\": 61285,\n\t\"./ms\": 43014,\n\t\"./ms-my\": 86253,\n\t\"./ms-my.js\": 86253,\n\t\"./ms.js\": 43014,\n\t\"./mt\": 20167,\n\t\"./mt.js\": 20167,\n\t\"./my\": 47940,\n\t\"./my.js\": 47940,\n\t\"./nb\": 50014,\n\t\"./nb.js\": 50014,\n\t\"./ne\": 49023,\n\t\"./ne.js\": 49023,\n\t\"./nl\": 34208,\n\t\"./nl-be\": 71412,\n\t\"./nl-be.js\": 71412,\n\t\"./nl.js\": 34208,\n\t\"./nn\": 81354,\n\t\"./nn.js\": 81354,\n\t\"./oc-lnc\": 40870,\n\t\"./oc-lnc.js\": 40870,\n\t\"./pa-in\": 80389,\n\t\"./pa-in.js\": 80389,\n\t\"./pl\": 7342,\n\t\"./pl.js\": 7342,\n\t\"./pt\": 34774,\n\t\"./pt-br\": 73003,\n\t\"./pt-br.js\": 73003,\n\t\"./pt.js\": 34774,\n\t\"./ro\": 85333,\n\t\"./ro.js\": 85333,\n\t\"./ru\": 73451,\n\t\"./ru.js\": 73451,\n\t\"./sd\": 43921,\n\t\"./sd.js\": 43921,\n\t\"./se\": 59682,\n\t\"./se.js\": 59682,\n\t\"./si\": 80582,\n\t\"./si.js\": 80582,\n\t\"./sk\": 4348,\n\t\"./sk.js\": 4348,\n\t\"./sl\": 95337,\n\t\"./sl.js\": 95337,\n\t\"./sq\": 39358,\n\t\"./sq.js\": 39358,\n\t\"./sr\": 50683,\n\t\"./sr-cyrl\": 69382,\n\t\"./sr-cyrl.js\": 69382,\n\t\"./sr.js\": 50683,\n\t\"./ss\": 51156,\n\t\"./ss.js\": 51156,\n\t\"./sv\": 29855,\n\t\"./sv.js\": 29855,\n\t\"./sw\": 18536,\n\t\"./sw.js\": 18536,\n\t\"./ta\": 15373,\n\t\"./ta.js\": 15373,\n\t\"./te\": 37809,\n\t\"./te.js\": 37809,\n\t\"./tet\": 61297,\n\t\"./tet.js\": 61297,\n\t\"./tg\": 92527,\n\t\"./tg.js\": 92527,\n\t\"./th\": 85862,\n\t\"./th.js\": 85862,\n\t\"./tk\": 79331,\n\t\"./tk.js\": 79331,\n\t\"./tl-ph\": 44387,\n\t\"./tl-ph.js\": 44387,\n\t\"./tlh\": 3592,\n\t\"./tlh.js\": 3592,\n\t\"./tr\": 79732,\n\t\"./tr.js\": 79732,\n\t\"./tzl\": 99570,\n\t\"./tzl.js\": 99570,\n\t\"./tzm\": 83553,\n\t\"./tzm-latn\": 7699,\n\t\"./tzm-latn.js\": 7699,\n\t\"./tzm.js\": 83553,\n\t\"./ug-cn\": 25674,\n\t\"./ug-cn.js\": 25674,\n\t\"./uk\": 69974,\n\t\"./uk.js\": 69974,\n\t\"./ur\": 45773,\n\t\"./ur.js\": 45773,\n\t\"./uz\": 357,\n\t\"./uz-latn\": 77135,\n\t\"./uz-latn.js\": 77135,\n\t\"./uz.js\": 357,\n\t\"./vi\": 20043,\n\t\"./vi.js\": 20043,\n\t\"./x-pseudo\": 40767,\n\t\"./x-pseudo.js\": 40767,\n\t\"./yo\": 80150,\n\t\"./yo.js\": 80150,\n\t\"./zh-cn\": 21828,\n\t\"./zh-cn.js\": 21828,\n\t\"./zh-hk\": 86644,\n\t\"./zh-hk.js\": 86644,\n\t\"./zh-mo\": 79305,\n\t\"./zh-mo.js\": 79305,\n\t\"./zh-tw\": 31860,\n\t\"./zh-tw.js\": 31860\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 35358;"],"names":["RouterOutlet","MainHeaderComponent","BannersComponent","AppWithHeaderComponent","selectors","decls","vars","template","AppWithHeaderComponent_Template","rf","ctx","i0","ɵɵelement","encapsulation","SpinnerComponent","AppComponent","constructor","i18nService","title","ɵɵdirectiveInject","i1","I18nService","AppComponent_Template","CurrencyPipe","DatePipe","DecimalPipe","MaskFlagPipe","TimeDurationPipe","GetTimezonesRequestState","TimezoneState","GetRegionsRequestState","RegionState","GetSellerRequestState","SellerState","GetLobbySummaryRequestState","GetLobbySummarySilentRequestState","LobbyState","BlacklistPolicyState","GetBuyerTierBlacklistPoliciesRequestState","GetStreamBlacklistPoliciesRequestState","PatchBlacklistPolicyPeriodicityRequestState","PatchBlacklistPolicyRequestState","BuyerState","GetBuyerRequestState","BuyerSellerState","GetBuyerSellersRequestState","GetStreamRequestState","PauseStreamRequestState","RequestStreamPriceChangeRequestState","ResumeStreamRequestState","StreamState","UpdateStreamRequestState","ContactState","SendMessageRequestState","GetNotificationsRequestState","NotificationState","UserState","AddAKACompanyNameRequestState","CompanyState","GetCompanyRequestState","RemoveAKACompanyNameRequestState","UpdateCompanyRequestState","GetSessionRequestState","SessionState","UpdateSessionRequestState","PermissionState","AddLicenseRequestState","LicenseState","RemoveLicenseRequestState","UpdateLicenseRequestState","CreateTeamMemberRequestState","RemoveTeamMemberRequestState","TeamMemberState","UpdateTeamMemberRequestState","GetSubscriptionsRequestState","SubscriptionState","UpdateSubscriptionRequestState","GetSellerCommissionRequestState","SellerCommissionState","GetSellerReputationRequestState","SellerReputationState","GetSellerReputationFindingsRequestState","MarkResolvedReputationFindingRequestState","RequestAssistanceFindingRequestState","SellerReputationFindingState","GetSellerNonRedirectSamplesRequestState","SellerNonRedirectSamplesState","GetSellerDemographicMapRequestState","SellerDemographicMapState","GetSellerDemographicsRequestState","SellerDemographicsState","DocumentSamplingState","GetDocumentSamplingNextRequestState","GetDocumentSamplingRequestState","BuyerTierSalesState","GetBuyerTierSalesRequestState","BuyerTierState","GetBuyerTierRequestState","PauseBuyerTierRequestState","RequestBuyerTierPriceChangeRequestState","ResumeBuyerTierRequestState","UpdateBuyerTierRequestState","AddBuyerTierSellerRequestState","BuyerTierSellerState","GetBuyerTierSellersRequestState","RemoveBuyerTierSellerRequestState","BuyerDemographicsState","GetBuyerDemographicsRequestState","BuyerDemographicMapState","GetBuyerDemographicMapRequestState","AddOpenPeriodRequestState","OpeningHoursState","RemoveOpenPeriodRequestState","UpdateBuyerTierOpenPeriodLimitRequestState","UpdateStreamOpenPeriodLimitRequestState","AddClosureRequestState","ClosureState","RemoveClosureRequestState","AddFreetextTierFilterRequestState","BuyerTierFilterState","CreateBuyerTierFilterRequestState","RemoveFreetextTierFilterRequestState","UpdateBuyerTierFilterRequestState","BuyerFilterLayoutPolicyState","GetBuyerFilterLayoutPoliciesRequestState","ChartState","GetChartRequestState","BuyerAdjustorLayoutPolicyState","GetBuyerAdjustorLayoutPoliciesRequestState","PostSearchTradersRequestState","TraderState","GetStreamSalesRequestState","StreamSalesState","GetStreamAgentRequestState","StreamAgentState","DeleteBuyerTierLimitOverrideRequestState","DeleteStreamLimitOverrideRequestState","GetBuyerTierLimitsRequestState","GetStreamLimitsRequestState","LimitsState","PatchBuyerTierDayOfWeekLimitRequestState","PatchBuyerTierLimitPolicyFieldRequestState","PatchBuyerTierUseDayOfWeekLimitsRequestState","PatchStreamDayOfWeekLimitRequestState","PatchStreamLimitPolicyFieldRequestState","PatchStreamUseDayOfWeekLimitsRequestState","PutBuyerTierDayOfWeekLimitRequestState","PutBuyerTierLimitOverrideRequestState","PutStreamDayOfWeekLimitRequestState","PutStreamLimitOverrideRequestState","GetStreamFilterLayoutPoliciesRequestState","StreamFilterLayoutPolicyState","AddFreetextStreamFilterRequestState","CreateStreamFilterRequestState","DisableStreamFilterRequestState","EnableStreamFilterRequestState","RemoveFreetextStreamFilterRequestState","StreamFilterState","UpdateStreamFilterRequestState","GetStreamAdjustorLayoutPoliciesRequestState","StreamAdjustorLayoutPolicyState","AdjustorState","CreateBuyerTierAdjustorRequestState","CreateStreamAdjustorRequestState","DeleteBuyerTierAdjustmentRequestState","DeleteStreamAdjustmentRequestState","DisableBuyerTierAdjustorRequestState","DisableStreamAdjustorRequestState","EnableBuyerTierAdjustorRequestState","EnableStreamAdjustorRequestState","UpdateBuyerTierAdjustorRequestState","UpdateStreamAdjustorRequestState","AddStreamSellerRequestState","GetStreamSellersRequestState","RemoveStreamSellerRequestState","StreamSellerState","GetStreamAgentSellersRequestState","StreamAgentSellerState","GetRecentSearchesRequestState","RecentSearchesState","GetBuyerTierReportsListRequestState","GetSellerReportsListRequestState","GetStreamReportsListRequestState","ReportsState","GetBuyerTierReportDocumentRequestState","GetBuyerTierReportDocumentsListRequestState","GetSellerReportDocumentRequestState","GetSellerReportDocumentsListRequestState","GetStreamReportDocumentRequestState","GetStreamReportDocumentsListRequestState","ReportDocumentState","CurrencyState","GetCurrenciesRequestState","CompanyPaymentsState","GetCompanyPaymentsRequestState","UpdateCompanyPaymentsRequestState","importProvidersFrom","provideHttpClient","withInterceptors","provideStore","withNgxsReduxDevtoolsPlugin","withNgxsResetPlugin","withNgxsRequestsPlugin","provideRouter","withRouterConfig","I18nModule","RawHttpClientModule","BrowserAnimationsModule","APP_ROUTES","unauthorizedInterceptor","baseUrlInterceptor","headerAuthorizationInterceptor","ApplicationSubmissionBuyerExchangeState","GetApplicationSubmissionBuyerExchangeRequestState","PIPES","states","appConfig","providers","paramsInheritanceStrategy","BuyerTierResolverService","AccessGuardService","AuthGuardService","NotificationsResolver","RegionsResolver","TimezonesResolver","NotFoundComponent","MenuOptions","StreamResolverService","CompanyResolver","path","resolve","canActivate","component","children","redirectTo","pathMatch","loadChildren","then","mod","LOBBY_ROUTES","SELLER_ROUTES","data","breadcrumb","BUYER_TIER_ROUTS","STREAM_ROUTES","INTEGRATION_ROUTES","hasAccess","ShowIntegration","SITES_ROUTES","ShowSites","COMPANY_SETTINGS_ROUTES","ShowCompanySettings","TEAM_MANAGEMENT_ROUTES","ShowCompanyTeams","CONTACT_INFO_ROUTES","USER_SETTINGS_ROUTES","NOTIFICATION_ROUTES","NOTIFICATION_SETTINGS_ROUTES","PAYMENTS_ROUTES","ShowPaymentsOption","IDENTITY_ROUTES","APPLICATION_JOURNEY_ROUTES","Subject","map","withLatestFrom","BannerMessageType","LinkArea","NgClass","AsyncPipe","FlexModule","ExtendedModule","ɵɵelementStart","ɵɵlistener","BannersComponent_For_1_Conditional_3_Template_button_click_0_listener","ɵɵrestoreView","_r1","banner_r2","ɵɵnextContext","$implicit","ctx_r2","ɵɵresetView","goToArea","linkToArea","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","linkText","ɵɵtemplate","BannersComponent_For_1_Conditional_3_Template","ɵɵproperty","bannerType","type","message","ɵɵconditional","sessionService","paymentsService","router","selectedPaymentsCompanyId$","selectedCompanyId$","linkSubject$","ngOnInit","bannerMessages$","session$","pipe","session","bannerMessages","linkSubjectSubscription","subscribe","linkType","pseudonym","CompanyPayments","navigate","next","ngOnDestroy","unsubscribe","SessionService","i2","PaymentsService","i3","Router","consts","BannersComponent_Template","ɵɵrepeaterCreate","BannersComponent_For_1_Template","ɵɵrepeaterTrackByIndex","ɵɵrepeater","ɵɵpipeBind1","i4","DefaultLayoutDirective","DefaultLayoutAlignDirective","DefaultFlexDirective","i5","DefaultClassDirective","styles","switchMap","take","BuyerTierGetterState","buyerTierService","store","route","state","select","getBuyerTierByPseudonym","params","buyerTierPseudonym","buyerTier","openingHoursPseudonym","buyerPseudonym","getBuyerTierRequestState$","ɵɵinject","BuyerTierService","Store","factory","ɵfac","providedIn","AddAKACompanyName","GetCompany","RemoveAKACompanyName","UpdateCompany","CompanyGetterState","RequestGetterState","CompanySettingsService","company$","getSelectedCompany","getSelectedCompanyId","getCompanyRequestState$","getState","updateCompanyRequestState$","addAKACompanyNameRequestState$","removeAKACompanyNameRequestState$","getCompany","dispatch","updateCompany","updatedField","addAKAName","name","companyPseudonym","removeAKAName","maskFlagPipe","menuOptions$","menuOptions","transform","filter","authService","isUserLoaded$","isLoaded","user$","user","login","AuthService","TranslateLoader","TranslateModule","TranslateHttpLoader","RawHttpClient","TranslateHttpLoaderFactory","http","forRoot","loader","provide","useFactory","deps","imports","exports","distinctUntilChanged","Languages","translateService","setDefaultLang","enus","preferences","locale","use","changeLang","lang","TranslateService","environment","req","test","url","baseUrl","baseServiceUrl","substring","length","requestUrl","requestWithBaseUrl","clone","inject","headers","set","token_type","access_token","HttpErrorResponse","throwError","catchError","err","status","cleanUserState","manager","removeUser","signInSilent","createSelector","Selector","BuyerAdjustorLayoutPolicyGetterState","StreamAdjustorLayoutPolicyGetterState","AdjustorGetterState","getAllAdjustors","ids","id","entities","getTierAdjustorsByActorPseudonym","actorPseudonym","regionId","getAllAdjustorPolicies","allPolicies","allAdjustors","actorAdjustors","actorAdjustor","policy","find","propertyId","getStreamAdjustorsByActorPseudonym","getAdjustorByActorPseudonymAndPropertyId","adjustor","enabled","__decorate","ActionTypes","SET_ADJUSTORS","ENABLE_BUYER_TIER_ADJUSTOR","ENABLE_STREAM_ADJUSTOR","ENABLE_ADJUSTOR_SUCCESS","ENABLE_ADJUSTOR_FAIL","DISABLE_BUYER_TIER_ADJUSTOR","DISABLE_STREAM_ADJUSTOR","DISABLE_ADJUSTOR_SUCCESS","DISABLE_ADJUSTOR_FAIL","CREATE_BUYER_TIER_ADJUSTOR","CREATE_STREAM_ADJUSTOR","CREATE_ADJUSTOR_SUCCESS","CREATE_ADJUSTOR_FAIL","UPDATE_BUYER_TIER_ADJUSTOR","UPDATE_STREAM_ADJUSTOR","UPDATE_ADJUSTOR_SUCCESS","UPDATE_ADJUSTOR_FAIL","DELETE_BUYER_TIER_ADJUSTMENT","DELETE_STREAM_ADJUSTMENT","DELETE_ADJUSTMENT_SUCCESS","DELETE_ADJUSTMENT_FAIL","SetAdjustors","payload","EnableBuyerTierAdjustor","EnableStreamAdjustor","EnableAdjustorSuccess","metadata","EnableAdjustorFail","DisableBuyerTierAdjustor","DisableStreamAdjustor","DisableAdjustorSuccess","DisableAdjustorFail","CreateBuyerTierAdjustor","CreateStreamAdjustor","CreateAdjustorSuccess","CreateAdjustorFail","UpdateBuyerTierAdjustor","UpdateStreamAdjustor","UpdateAdjustorSuccess","UpdateAdjustorFail","DeleteBuyerTierAdjustment","DeleteStreamAdjustment","DeleteAdjustmentSuccess","DeleteAdjustmentFail","Action","State","createRequestAction","RequestState","SharedComponentActorType","insertIdsAndEntities","enableAdjustor","action","parentPseudonym","childPseudonym","adjustorPseudonym","entityData","BuyerTier","requestState","Stream","request","httpClient","patch","successAction","failAction","disableAdjustor","createAdjustor","policyPseudonym","childPseudonymsToInclude","put","tierPseudonymsToInclude","streamPseudonymsToInclude","updateAdjustor","adjustmentPseudonym","post","deleteAdjustor","delete","setAdjusters","patchState","adjusters","enableBuyerTierAdjustor","enableStreamAdjustor","enableAdjustorSuccess","enableAdjustorFail","console","log","disableBuyerTierAdjustor","disableStreamAdjustor","disableAdjustorSuccess","disableAdjustorFail","createBuyerTierAdjustor","createStreamAdjustor","createAdjustorSuccess","indexOf","createAdjustorFail","updateBuyerTierAdjustor","updateStreamAdjustor","updateAdjustorSuccess","updateAdjustorFail","deleteBuyerTierAdjustment","deleteStreamAdjustment","deleteAdjustmentSuccess","updatedAdjustor","adjustments","adjustment","currentEntity","updatedEntities","deleteAdjustmentFail","HttpClient","defaults","GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE","GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE_SUCCESS","GET_APPLICATION_SUBMISSION_BUYER_EXCHANGE_FAIL","GetApplicationSubmissionBuyerExchange","GetApplicationSubmissionBuyerExchangeSuccess","GetApplicationSubmissionBuyerExchangeFail","getApplicationSubmissionBuyerExchange","correlationHash","Value","getApplicationSubmissionBuyerExchangeFail","getApplicationSubmissionBuyerExchangeSuccess","items","GET_BUYER_BLACKLIST_POLICIES","GET_BUYER_BLACKLIST_POLICIES_SUCCESS","GET_BUYER_BLACKLIST_POLICIES_FAIL","GET_STREAM_BLACKLIST_POLICIES","GET_STREAM_BLACKLIST_POLICIES_SUCCESS","GET_STREAM_BLACKLIST_POLICIES_FAIL","PATCH_BLACKLIST_POLICY","PATCH_BLACKLIST_POLICY_SUCCESS","PATCH_BLACKLIST_POLICY_FAIL","PATCH_BLACKLIST_POLICY_PERIODICITY","PATCH_BLACKLIST_POLICY_PERIODICITY_SUCCESS","PATCH_BLACKLIST_POLICY_PERIODICITY_FAIL","GetBuyerBlacklistPolicies","GetBuyerBlacklistPoliciesSuccess","GetBuyerBlacklistPoliciesFail","GetStreamBlacklistPolicies","GetStreamBlacklistPoliciesSuccess","GetStreamBlacklistPoliciesFail","PatchBlacklistPolicy","PatchBlacklistPolicySuccess","PatchBlacklistPolicyFail","PatchBlacklistPolicyPeriodicity","PatchBlacklistPolicyPeriodicitySuccess","PatchBlacklistPolicyPeriodicityFail","UpdatedBlacklistPolicyFieldName","getBuyerBlacklistPolicies","get","getBuyerBlacklistPoliciesFail","getBuyerBlacklistPoliciesSuccess","policies","policiesToSet","buyerPolicy","buyerTierPolicy","getStreamBlacklistPolicies","streamAgentPseudonym","streamPseudonym","getStreamBlacklistPoliciesFail","getStreamBlacklistPoliciesSuccess","streamAgentPolicy","streamPolicy","patchBlacklistPolicy","blacklistPolicyPseudonym","fieldName","value","patchBlacklistPolicyFail","patchBlacklistPolicySuccess","updatedPolicy","updatePolicy","patchBlacklistPolicyPeriodicity","periodicity","patchBlacklistPolicyPeriodicityFail","patchBlacklistPolicyPeriodicitySuccess","updatePolicyPeriodicity","Enabled","Characteristics","characteristics","DelayPeriodicity","biddingPolicy","DelayThresholdMin","Level1Periodicity","declinePolicy","Level1ThresholdMin","Level2Periodicity","salePolicy","Level2ThresholdMin","getAdjustorGroupsByRegionId","allAdjustorPolicies","foundedAdjustors","groupTypes","group","groupType","index","getAdjustorPoliciesByGroupType","Number","GET_LAYOUT_ADJUSTORS","GET_LAYOUT_ADJUSTORS_SUCCESS","GET_LAYOUT_ADJUSTORS_FAIL","GetBuyerAdjustorLayoutPolicies","GetBuyerAdjustorLayoutPoliciesSuccess","GetBuyerAdjustorLayoutPoliciesFail","getBuyerAdjustorLayoutPolicies","getBuyerAdjustorLayoutPoliciesFail","getBuyerAdjustorLayoutPoliciesSuccess","SET_BUYER_DEMOGRAPHIC_MAP","GET_BUYER_DEMOGRAPHIC_MAP","GET_BUYER_DEMOGRAPHIC_MAP_SUCCESS","GET_BUYER_DEMOGRAPHIC_MAP_FAIL","SetBuyerDemographicMap","GetBuyerDemographicMap","GetBuyerDemographicMapSuccess","GetBuyerDemographicMapFail","setBuyerDemographicMap","buyerDemographicMap","getBuyerDemographicMap","regionalMapDemographicsPseudonym","getBuyerDemographicMapFail","getBuyerDemographicMapSuccess","SET_BUYER_DEMOGRAPHICS","GET_BUYER_DEMOGRAPHICS","GET_BUYER_DEMOGRAPHICS_SUCCESS","GET_BUYER_DEMOGRAPHICS_FAIL","SetBuyerDemographics","GetBuyerDemographics","GetBuyerDemographicsSuccess","GetBuyerDemographicsFail","setBuyerDemographics","buyerDemographics","demographicsToSet","demographic","getBuyerDemographics","getBuyerDemographicsFail","getBuyerDemographicsSuccess","demographics","BuyerFilterLayoutPolicyGetterState","getAllFilterPolicies","getFilterGroupsByRegionId","foundedFilters","getFilterPoliciesByGroupType","GET_LAYOUT_POLICIES","GET_LAYOUT_POLICIES_SUCCESS","GET_LAYOUT_POLICIES_FAIL","GetBuyerFilterLayoutPolicies","GetBuyerFilterLayoutPoliciesSuccess","GetBuyerFilterLayoutPoliciesFail","getBuyerFilterLayoutPolicies","getBuyerFilterLayoutPoliciesFail","getBuyerFilterLayoutPoliciesSuccess","GET_BUYER_SELLERS","GET_BUYER_SELLERS_SUCCESS","GET_BUYER_SELLERS_FAIL","GetBuyerSellers","GetBuyerSellersSuccess","GetBuyerSellersFail","getBuyerTier","getBuyerSellersFail","getBuyerSellersSuccess","sellers","sellersToSet","item","BuyerTierFilterGetterState","getAllBuyerTierFilters","getFiltersByTierPseudonym","allFilters","tierFilters","tierFilter","getFilterByTierPseudonymAndPropertyId","SET_BUYER_TIER_FILTERS","UPDATE_BUYER_TIER_FILTER","UPDATE_BUYER_TIER_FILTER_SUCCESS","UPDATE_BUYER_TIER_FILTER_FAIL","ENABLE_BUYER_TIER_FILTER","ENABLE_BUYER_TIER_FILTER_SUCCESS","ENABLE_BUYER_TIER_FILTER_FAIL","DISABLE_BUYER_TIER_FILTER","DISABLE_BUYER_TIER_FILTER_SUCCESS","DISABLE_BUYER_TIER_FILTER_FAIL","CREATE_BUYER_TIER_FILTER","CREATE_BUYER_TIER_FILTER_SUCCESS","CREATE_BUYER_TIER_FILTER_FAIL","ADD_FREETEXT_TIER_FILTER","ADD_FREETEXT_TIER_FILTER_SUCCESS","ADD_FREETEXT_TIER_FILTER_FAIL","REMOVE_FREETEXT_TIER_FILTER","REMOVE_FREETEXT_TIER_FILTER_SUCCESS","REMOVE_FREETEXT_TIER_FILTER_FAIL","SetBuyerTierFilters","UpdateBuyerTierFilter","UpdateBuyerTierFilterSuccess","UpdateBuyerTierFilterFail","EnableBuyerTierFilter","EnableBuyerTierFilterSuccess","EnableBuyerTierFilterFail","DisableBuyerTierFilter","DisableBuyerTierFilterSuccess","DisableBuyerTierFilterFail","CreateBuyerTierFilter","CreateBuyerTierFilterSuccess","CreateBuyerTierFilterFail","AddFreetextTierFilter","AddFreetextTierFilterSuccess","AddFreetextTierFilterFail","RemoveFreetextTierFilter","RemoveFreetextTierFilterSuccess","RemoveFreetextTierFilterFail","EnableBuyerTierFilterRequestState","DisableBuyerTierFilterRequestState","setBuyerTierFilters","filters","updateBuyerTierFilter","filterPseudonym","values","operator","updateBuyerTierFilterSuccess","updateBuyerTierFilterFail","enableBuyerTierFilter","enableBuyerTierFilterSuccess","enableBuyerTierFilterFail","disableBuyerTierFilter","disableBuyerTierFilterSuccess","disableBuyerTierFilterFail","createBuyerTierFilter","createBuyerTierFilterSuccess","createBuyerTierFilterFail","addFreetextTierFilter","addFreetextTierFilterSuccess","addFreetextTierFilterFail","removeFreetextTierFilter","body","removeFreetextTierFilterSuccess","updatedValues","val","foundVal","findIndex","removedValue","removeFreetextTierFilterFail","SET_BUYER_TIER_SALES","GET_BUYER_TIER_SALES","GET_BUYER_TIER_SALES_SUCCESS","GET_BUYER_TIER_SALES_FAIL","SET_BUYER_TIER_SALES_CURRENT_CHART","SetBuyerTierSales","GetBuyerTierSales","GetBuyerTierSalesSuccess","GetBuyerTierSalesFail","SetBuyerTierSalesCurrentChart","StateReset","getBuyerSales","requestBody","getBuyerCommissionFail","getBuyerSalesSuccess","sales","currentChart","initialChart","setBuyerTierSalesCurrentChart","GET_BUYER_TIER_SELLERS","GET_BUYER_TIER_SELLERS_SUCCESS","GET_BUYER_TIER_SELLERS_FAIL","ADD_BUYER_TIER_SELLER","ADD_BUYER_TIER_SELLER_SUCCESS","ADD_BUYER_TIER_SELLER_FAIL","REMOVE_BUYER_TIER_SELLER","REMOVE_BUYER_TIER_SELLER_SUCCESS","REMOVE_BUYER_TIER_SELLER_FAIL","GetBuyerTierSellers","GetBuyerTierSellersSuccess","GetBuyerTierSellersFail","AddBuyerTierSeller","AddBuyerTierSellerSuccess","AddBuyerTierSellerFail","RemoveBuyerTierSeller","RemoveBuyerTierSellerSuccess","RemoveBuyerTierSellerFail","getBuyerTierSellers","addBuyerTierSeller","sellerPseudonym","addBuyerSellerFail","addBuyerSellerSuccess","removeBuyerTierSeller","managedSellerPseudonym","removeBuyerSellerFail","removeBuyerSellerSuccess","updatedIds","ClosureGetterState","getAllBuyerTiers","getAllClosures","buyerTierState","openingHoursState","timezoneState","allClosures","regionState","openingHours","closures","closure","closuresWithTimezone","timezone","timezoneId","region","adjustors","timeZoneId","getBuyerTiersByBuyerPseudonym","buyerTiers","getBuyerTierNameByPseudonym","SET_BUYER_TIERS","RESUME_BUYER_TIER","RESUME_BUYER_TIER_SUCCESS","RESUME_BUYER_TIER_FAIL","PAUSE_BUYER_TIER","PAUSE_BUYER_TIER_SUCCESS","PAUSE_BUYER_TIER_FAIL","UPDATE_BUYER_TIER","UPDATE_BUYER_TIER_SUCCESS","UPDATE_BUYER_TIER_FAIL","GET_BUYER_TIER","GET_BUYER_TIER_SUCCESS","GET_BUYER_TIER_FAIL","REQUEST_BUYER_TIER_PRICE_CHANGE","REQUEST_BUYER_TIER_PRICE_CHANGE_SUCCESS","REQUEST_BUYER_TIER_PRICE_CHANGE_FAIL","SetBuyerTiers","ResumeBuyerTier","ResumeBuyerTierSuccess","ResumeBuyerTierFail","PauseBuyerTier","PauseBuyerTierSuccess","PauseBuyerTierFail","UpdateBuyerTier","UpdateBuyerTierSuccess","UpdateBuyerTierFail","GetBuyerTier","GetBuyerTierSuccess","GetBuyerTierFail","RequestBuyerTierPriceChange","RequestBuyerTierPriceChangeFail","RequestBuyerTierPriceChangeSuccess","BuyerTierCharacteristics","UpdatedEntityFieldName","SetClosures","SetOpeningHours","updateBuyerTierEntity","JourneyPolicies_SellerManagement_Mode","journeyPolicies","sellerManagementPolicy","mode","JourneyPolicies_SellerManagement_Inherit","inheritManagementDecisions","JourneyPolicies_SellerManagement_RestrictionLevel","restrictionLevel","setBuyerTiers","resumeBuyerTier","pseudonyms","resumeBuyerTierFail","resumeBuyerTierSuccess","tiersToSet","pausedUntil","pauseBuyerTier","pauseBuyerTierFail","pauseBuyerTierSuccess","updateBuyerTier","updateBuyerTierFail","updateBuyerTierSuccess","updatedBuyerTier","BuyerTierState_1","getBuyerTierFail","getBuyerTierSuccess","filtersToSet","adjustorsToSet","openingHoursToSet","closuresToSet","requestBuyerTierPriceChange","requestPayload","requestBuyerTierPriceChangeFail","requestBuyerTierPriceChangeSuccess","PriceChangeRequestPending","SET_BUYERS","GET_BUYER","GET_BUYER_SUCCESS","GET_BUYER_FAIL","SetBuyers","GetBuyer","GetBuyerSuccess","GetBuyerFail","setBuyers","buyers","getBuyer","getBuyerFail","getBuyerSuccess","tiers","buyer","push","buyerTiersToSet","reduce","acc","tier","tierOpeningHours","tierToSet","updatedFilters","updatedAdjustors","openingHoursBuyerTierToSet","updatedClosures","GET_CHART","GET_CHART_SUCCESS","GET_CHART_FAIL","GetChart","GetChartSuccess","GetChartFail","getChart","getChartFail","chartType","series","getChartSuccess","SET_CLOSURES","ADD_CLOSURE","ADD_CLOSURE_SUCCESS","ADD_CLOSURE_FAIL","REMOVE_CLOSURE","REMOVE_CLOSURE_SUCCESS","REMOVE_CLOSURE_FAIL","AddClosure","AddClosureSuccess","AddClosureFail","RemoveClosure","RemoveClosureSuccess","openingHoursClosurePseudonym","RemoveClosureFail","setClosures","addClosure","openingHourPseudonym","actorPseudonymsToInclude","restData","addClosureFail","addClosureSuccess","closureToSet","removeClosure","closurePseudonym","removeClosureFail","removeClosureSuccess","CompanyPaymentsGetterState","getCompanyPaymentsByCompanyPseudonym","getSelectedPaymentCompanyId","selectedCompanyId","GET_COMPANY_PAYMENTS","GET_COMPANY_PAYMENTS_SUCCESS","GET_COMPANY_PAYMENTS_FAIL","PUT_COMPANY_PAYMENTS","PUT_COMPANY_PAYMENTS_SUCCESS","PUT_COMPANY_PAYMENTS_FAIL","UPDATE_COMPANY_PAYMENTS","UPDATE_COMPANY_PAYMENTS_SUCCESS","UPDATE_COMPANY_PAYMENTS_FAIL","SET_SELECTED_PAYMENTS_COMPANY_ID","GetCompanyPayments","GetCompanyPaymentsSuccess","GetCompanyPaymentsFail","PutCompanyPayments","PutCompanyPaymentsSuccess","PutCompanyPaymentsFail","UpdateCompanyPayments","UpdateCompanyPaymentsSuccess","UpdateCompanyPaymentsFail","SetSelectedPaymentsCompanyId","UpdatedPaymentFieldName","SetBankAccCharacteristic","PutCompanyPaymentsRequestState","updatePayments","payments","BankName","bank","BankBranchTitle","branchTitle","BIC","bic","BankInstitutionId","institutionId","BankRoutingNumber","routingNumber","BankPhoneNumber","phoneNumber","BankAddress","address","IBAN","accountHolder","iban","AccountNumber","accountNumber","AccountHolderNameOnAccount","nameOnAccount","AccountHolderPhoneNumber","AccountHolderAddress","Notes","notes","getCompanyPayments","getCompanyPaymentsSuccess","getCompanyPaymentsFail","putCompanyPayments","putCompanyPaymentsSuccess","putCompanyPaymentsFail","updateCompanyPayments","updateCompanyPaymentsSuccess","paymentToUpdate","updatedPayment","CompanyPaymentsState_1","updateCompanyPaymentsFail","setSelectedPaymentsCompanyId","LicenseGetterState","TeamMemberGetterState","companyState","licenses","teamMembers","company","selectedEntityId","companyLicenses","license","companyTeamMembers","teamMember","getCompanyByPseudonym","getAllLicenses","getAllTeamMembers","GET_COMPANY","GET_COMPANY_SUCCESS","GET_COMPANY_FAIL","UPDATE_COMPANY","UPDATE_COMPANY_SUCCESS","UPDATE_COMPANY_FAIL","SET_COMPANY","SET_SELECTED_COMPANY_ID","ADD_AKA_COMPANY_NAME","ADD_AKA_COMPANY_NAME_SUCCESS","ADD_AKA_COMPANY_NAME_FAIL","REMOVE_AKA_COMPANY_NAME","REMOVE_AKA_COMPANY_NAME_SUCCESS","REMOVE_AKA_COMPANY_NAME_FAIL","SET_BANK_ACC_CHARACTERISTIC","GetCompanySuccess","GetCompanyFail","UpdateCompanyFail","UpdateCompanySuccess","SetCompany","SetSelectedCompanyId","AddAKACompanyNameSuccess","addedAKAName","AddAKACompanyNameFail","RemoveAKACompanyNameSuccess","removedAKAName","RemoveAKACompanyNameFail","UpdatedCompanyFieldName","SetLicenses","SetTeamMembers","CompanyCharacteristic","getCompanyFail","getCompanySuccess","licensesToSet","teamMembersToSet","setCompany","setSelectedCompanyId","updateCompanyFail","updateCompanySuccess","fieldNameToUpdate","addressFieldName","Address_Line1","Address_Line2","Address_Line3","replace","toLowerCase","addressFieldSubstring","updatedEntity","addAKACompanyName","addAKACompanyNameFail","addAKACompanyNameSuccess","alsoKnownAsNames","removeAKACompanyName","removeAKACompanyNameFail","removeAKACompanyNameSuccess","curName","setBankAccCharacteristic","updatedCompany","HasBankAccount","SEND_MESSAGE","SEND_MESSAGE_SUCCESS","SEND_MESSAGE_FAIL","SendMessage","SendMessageSuccess","SendMessageFail","sendMessage","sendMessageFail","sendMessageSuccess","GET_CURRENCIES","GET_CURRENCIES_SUCCESS","GET_CURRENCIES_FAIL","GetCurrencies","GetCurrenciesSuccess","GetCurrenciesFail","getCurrencies","getCurrenciesFail","getCurrenciesSuccess","currencies","GET_DOCUMENT_SAMPLING","GET_DOCUMENT_SAMPLING_SUCCESS","GET_DOCUMENT_SAMPLING_FAIL","GetDocumentSampling","GetDocumentSamplingSuccess","page","GetDocumentSamplingFail","HttpHeaders","PaginationHeaders","getDocumentSampling","reportPseudonym","reportDocumentPseudonym","samplingPseudonym","pageSize","PageNumber","toString","PageSize","getDocumentSamplingFail","getDocumentSamplingSuccess","sampling","sample","rows","sampleToSet","SET_LICENSES","ADD_LICENSE","ADD_LICENSE_SUCCESS","ADD_LICENSE_FAIL","UPDATE_LICENSE","UPDATE_LICENSE_SUCCESS","UPDATE_LICENSE_FAIL","REMOVE_LICENSE","REMOVE_LICENSE_SUCCESS","REMOVE_LICENSE_FAIL","AddLicense","AddLicenseSuccess","AddLicenseFail","UpdateLicense","UpdateLicenseSuccess","UpdateLicenseFail","RemoveLicense","RemoveLicenseSuccess","licensePseudonym","RemoveLicenseFail","setLicenses","addLicense","addLicenseFail","addLicenseSuccess","addedLicense","updateLicense","updateLicenseFail","updateLicenseSuccess","removeLicense","removeLicenseFail","removeLicenseSuccess","GET_BUYER_TIER_LIMITS","GET_STREAM_LIMITS","GET_LIMITS_SUCCESS","GET_LIMITS_FAIL","PATCH_BUYER_TIER_USE_DAY_OF_WEEK_LIMITS","PATCH_STREAM_USE_DAY_OF_WEEK_LIMITS","PATCH_USE_DAY_OF_WEEK_LIMITS_SUCCESS","PATCH_USE_DAY_OF_WEEK_LIMITS_FAIL","PATCH_BUYER_TIER_LIMIT_POLICY_FIELD","PATCH_STREAM_LIMIT_POLICY_FIELD","PATCH_LIMIT_POLICY_FIELD_SUCCESS","PATCH_LIMIT_POLICY_FIELD_FAIL","PUT_BUYER_TIER_DAY_OF_WEEK_LIMIT","PUT_STREAM_DAY_OF_WEEK_LIMIT","PUT_DAY_OF_WEEK_LIMIT_SUCCESS","PUT_DAY_OF_WEEK_LIMIT_FAIL","PATCH_BUYER_TIER_DAY_OF_WEEK_LIMIT","PATCH_STREAM_DAY_OF_WEEK_LIMIT","PATCH_DAY_OF_WEEK_LIMIT_SUCCESS","PATCH_DAY_OF_WEEK_LIMIT_FAIL","PUT_BUYER_TIER_LIMIT_OVERRIDE","PUT_STREAM_LIMIT_OVERRIDE","PUT_LIMIT_OVERRIDE_SUCCESS","PUT_LIMIT_OVERRIDE_FAIL","DELETE_BUYER_TIER_LIMIT_OVERRIDE","DELETE_STREAM_LIMIT_OVERRIDE","DELETE_LIMIT_OVERRIDE_SUCCESS","DELETE_LIMIT_OVERRIDE_FAIL","GetBuyerTierLimits","GetStreamLimits","GetLimitsSuccess","GetLimitsFail","PatchBuyerTierUseDayOfWeekLimits","PatchStreamUseDayOfWeekLimits","PatchUseDayOfWeekLimitsSuccess","PatchUseDayOfWeekLimitsFail","PatchBuyerTierLimitPolicyField","PatchStreamLimitPolicyField","PatchLimitPolicyFieldSuccess","PatchLimitPolicyFieldFail","PutBuyerTierDayOfWeekLimit","PutStreamDayOfWeekLimit","PutDayOfWeekLimitSuccess","PutDayOfWeekLimitFail","PatchBuyerTierDayOfWeekLimit","PatchStreamDayOfWeekLimit","PatchDayOfWeekLimitSuccess","PatchDayOfWeekLimitFail","PutBuyerTierLimitOverride","PutStreamLimitOverride","PutLimitOverrideSuccess","PutLimitOverrideFail","DeleteBuyerTierLimitOverride","DeleteStreamLimitOverride","DeleteLimitOverrideSuccess","DeleteLimitOverrideFail","LimitCharacteristics","getBuyerTierLimits","getStreamLimits","getLimitsSuccess","getLimitsFail","patchBuyerTierUseDayOfWeekLimits","limitPoliciesPseudonym","patchStreamUseDayOfWeekLimits","patchUseDayOfWeekLimitsFail","patchUseDayOfWeekLimitsSuccess","dailyLimit","UseDayOfWeekLimits","updatedLimits","patchBuyerTierLimitPolicyField","limitPolicyPseudonym","patchStreamLimitPolicyField","patchLimitPolicyFieldFail","patchLimitPolicyFieldSuccess","limitsPseudonym","limitName","putBuyerTierDayOfWeekLimit","dayOfWeek","putStreamDayOfWeekLimit","putDayOfWeekLimitFail","putDayOfWeekLimitSuccess","daysOfWeek","patchBuyerTierDayOfWeekLimit","limitPolicyDayOfWeekPseudonym","patchStreamDayOfWeekLimit","patchDayOfWeekLimitFail","patchDayOfWeekLimitSuccess","putBuyerTierLimitOverride","putStreamLimitOverride","putLimitOverrideFail","putLimitOverrideSuccess","overrides","deleteBuyerTierLimitOverride","limitPolicyOverridePseudonym","deleteStreamLimitOverride","deleteLimitOverrideFail","deleteLimitOverrideSuccess","override","GET_LOBBY_SUMMARY","GET_LOBBY_SUMMARY_SUCCESS","GET_LOBBY_SUMMARY_FAIL","SET_HIDE_INACTIVE_ITEMS_OPTIONS","GetLobbySummary","GetLobbySummarySuccess","GetLobbySummaryFail","SetHideInactiveLobbySummaryItemsOptions","SetSellers","SetStreams","getLobbySummary","isSilent","getLobbySummaryFail","getLobbySummarySuccess","streams","regionIds","sellerIds","seller","buyerIds","dataAgentIds","dataAgent","setHideInactiveLobbySummaryItemsOptions","hideInactive","NotificationGetterState","getAllNotifications","GET_NOTIFICATIONS","GET_NOTIFICATIONS_SUCCESS","GET_NOTIFICATIONS_FAIL","GetNotifications","GetNotificationsSuccess","GetNotificationsFail","of","notificationsMock","getNotifications","notifications","getNotificationsFail","getNotificationsSuccess","date","SET_OPENING_HOURS","REMOVE_OPEN_PERIOD","REMOVE_OPEN_PERIOD_SUCCESS","REMOVE_OPEN_PERIOD_FAIL","UPDATE_OPEN_PERIOD","UPDATE_OPEN_PERIOD_SUCCESS","UPDATE_OPEN_PERIOD_FAIL","ADD_OPEN_PERIOD","ADD_OPEN_PERIOD_SUCCESS","ADD_OPEN_PERIOD_FAIL","UPDATE_OPEN_PERIOD_LIMIT","UPDATE_OPEN_PERIOD_LIMIT_SUCCESS","UPDATE_OPEN_PERIOD_LIMIT_FAIL","RemoveOpenPeriod","RemoveOpenPeriodSuccess","RemoveOpenPeriodFail","UpdateOpenPeriod","UpdateOpenPeriodSuccess","UpdateOpenPeriodFail","AddOpenPeriod","AddOpenPeriodSuccess","AddOpenPeriodFail","UpdateOpenPeriodLimit","UpdateOpenPeriodLimitSuccess","UpdateOpenPeriodLimitFail","moment","UpdateOpenPeriodRequestState","setOpeningHours","removeOpenPeriod","openingHoursPeriodPseudonym","pseudonymsToInclude","removeOpenPeriodFail","removeOpenPeriodSuccess","updatedPeriods","period","updateOpenPeriod","durationMin","startTimeOffsetMin","updateOpenPeriodFail","updateOpenPeriodSuccess","startTimeOffset","utc","duration","asMilliseconds","format","addOpenPeriod","addOpenPeriodFail","addOpenPeriodSuccess","dayOpeningHours","updateOpenPeriodLimit","updateOpenPeriodLimitFail","settingProfile","limit","SET_PERMISSIONS","SetPermissions","setPermissions","permissions","GET_RECENT_SEARCHES","GET_RECENT_SEARCHES_SUCCESS","GET_RECENT_SEARCHES_FAIL","GetRecentSearches","GetRecentSearchesSuccess","GetRecentSearchesFail","getRecentSearches","profileType","getRecentSearchesFail","RecentSearchesState_1","getRecentSearchesSuccess","regexp","updatedItems","match","exec","search","groups","Set","RegionGetterState","getAllRegions","getRegionById","GET_REGIONS","GET_REGIONS_SUCCESS","GET_REGIONS_FAIL","GetRegions","GetRegionsSuccess","GetRegionsFail","getRegions","getRegionsFail","getRegionsSuccess","regions","GET_STREAM_REPORT_DOCUMENTS_LIST","GET_STREAM_REPORT_DOCUMENTS_LIST_SUCCESS","GET_STREAM_REPORT_DOCUMENTS_LIST_FAIL","GET_STREAM_REPORT_DOCUMENT","GET_STREAM_REPORT_DOCUMENT_SUCCESS","GET_STREAM_REPORT_DOCUMENT_FAIL","GET_BUYER_TIER_REPORT_DOCUMENTS_LIST","GET_BUYER_TIER_REPORT_DOCUMENTS_LIST_SUCCESS","GET_BUYER_TIER_REPORT_DOCUMENTS_LIST_FAIL","GET_BUYER_TIER_REPORT_DOCUMENT","GET_BUYER_TIER_REPORT_DOCUMENT_SUCCESS","GET_BUYER_TIER_REPORT_DOCUMENT_FAIL","GET_SELLER_REPORT_DOCUMENTS_LIST","GET_SELLER_REPORT_DOCUMENTS_LIST_SUCCESS","GET_SELLER_REPORT_DOCUMENTS_LIST_FAIL","GET_SELLER_REPORT_DOCUMENT","GET_SELLER_REPORT_DOCUMENT_SUCCESS","GET_SELLER_REPORT_DOCUMENT_FAIL","GetStreamReportDocumentsList","GetStreamReportDocumentsListSuccess","GetStreamReportDocumentsListFail","GetStreamReportDocument","GetStreamReportDocumentSuccess","GetStreamReportDocumentFail","GetBuyerTierReportDocumentsList","GetBuyerTierReportDocumentsListSuccess","GetBuyerTierReportDocumentsListFail","GetBuyerTierReportDocument","GetBuyerTierReportDocumentSuccess","GetBuyerTierReportDocumentFail","GetSellerReportDocumentsList","GetSellerReportDocumentsListSuccess","GetSellerReportDocumentsListFail","GetSellerReportDocument","GetSellerReportDocumentSuccess","GetSellerReportDocumentFail","createIdsAndEntities","getStreamReportDocumentsList","parentActorPseudonym","childActorPseudonym","getStreamReportDocumentsListFail","getStreamReportDocument","defaultPageSize","getStreamReportDocumentFail","getBuyerTierReportDocumentsList","getBuyerTierReportDocumentsListFail","getBuyerTierReportDocument","getBuyerTierReportDocumentFail","getSellerReportDocumentsList","getSellerReportDocumentsListFail","getSellerReportDocument","getSellerReportDocumentFail","getReportDocumentsListSuccess","documents","documentsToSet","document","getReportDocumentSuccess","curDocument","documentToSet","GET_STREAM_REPORTS_LIST","GET_STREAM_REPORTS_LIST_SUCCESS","GET_STREAM_REPORTS_LIST_FAIL","GET_BUYER_TIER_REPORTS_LIST","GET_BUYER_TIER_REPORTS_LIST_SUCCESS","GET_BUYER_TIER_REPORTS_LIST_FAIL","GET_SELLER_REPORTS_LIST","GET_SELLER_REPORTS_LIST_SUCCESS","GET_SELLER_REPORTS_LIST_FAIL","GetStreamReportsList","GetStreamReportsListSuccess","GetStreamReportsListFail","GetBuyerTierReportsList","GetBuyerTierReportsListSuccess","GetBuyerTierReportsListFail","GetSellerReportsList","GetSellerReportsListSuccess","GetSellerReportsListFail","getStreamReportsList","getBuyerTierReportsList","getSellerReportsList","getStreamReportsListFail","getBuyerTierReportsListFail","getSellerReportsListFail","getReportsListSuccess","reports","reportsToSet","report","stateClass","RequestsGetterState","getShowRequestsSpinner","loading","GET_SELLER_COMMISSION","GET_SELLER_COMMISSION_SUCCESS","GET_SELLER_COMMISSION_FAIL","SET_SELLER_COMMISSION_CURRENT_CHART","GetSellerCommission","GetSellerCommissionSuccess","GetSellerCommissionFail","SetSellerCommissionCurrentChart","getSellerCommission","getSellerCommissionFail","getSellerCommissionSuccess","commission","SET_SELLER_DEMOGRAPHIC_MAP","GET_SELLER_DEMOGRAPHIC_MAP","GET_SELLER_DEMOGRAPHIC_MAP_SUCCESS","GET_SELLER_DEMOGRAPHIC_MAP_FAIL","SetSellerDemographicMap","GetSellerDemographicMap","GetSellerDemographicMapSuccess","GetSellerDemographicMapFail","setSellerDemographicMap","sellerDemographicMap","getSellerDemographicMap","getSellerDemographicMapFail","getSellerDemographicMapSuccess","SET_SELLER_DEMOGRAPHICS","GET_SELLER_DEMOGRAPHICS","GET_SELLER_DEMOGRAPHICS_SUCCESS","GET_SELLER_DEMOGRAPHICS_FAIL","SetSellerDemographics","GetSellerDemographics","GetSellerDemographicsSuccess","GetSellerDemographicsFail","setSellerDemographics","sellerDemographics","getSellerDemographics","getSellerDemographicsFail","getSellerDemographicsSuccess","SET_SELLER_NON_REDIRECT_SAMPLES","GET_SELLER_NON_REDIRECT_SAMPLES","GET_SELLER_NON_REDIRECT_SAMPLES_SUCCESS","GET_SELLER_NON_REDIRECT_SAMPLES_FAIL","SetSellerNonRedirectSamples","GetSellerNonRedirectSamples","GetSellerNonRedirectSamplesSuccess","GetSellerNonRedirectSamplesFail","getSellerNonRedirectSamples","getSellerNonRedirectSamplesFail","getSellerNonRedirectSamplesSuccess","hasNext","setSellerNonRedirectSamples","samples","GET_SELLER_REPUTATION_FINDINGS","GET_SELLER_REPUTATION_FINDINGS_SUCCESS","GET_SELLER_REPUTATION_FINDINGS_FAIL","MARK_RESOLVED_REPUTATION_FINDING","MARK_RESOLVED_REPUTATION_FINDING_SUCCESS","MARK_RESOLVED_REPUTATION_FINDING_FAIL","REQUEST_ASSISTANCE_REPUTATION_FINDING","REQUEST_ASSISTANCE_REPUTATION_FINDING_SUCCESS","REQUEST_ASSISTANCE_REPUTATION_FINDING_FAIL","GetSellerReputationFindings","GetSellerReputationFindingsSuccess","GetSellerReputationFindingsFail","MarkResolvedReputationFinding","MarkResolvedReputationFindingSuccess","MarkResolvedReputationFindingFail","RequestAssistanceReputationFinding","RequestAssistanceReputationFindingSuccess","RequestAssistanceReputationFindingFail","SellerReputationCharacteristics","getSellerReputationFindings","reputationTableId","getSellerReputationFindingsFail","getSellerReputationFindingsSuccess","reputation","findings","markResolvedReputationFinding","findingPseudonym","markResolvedReputationFindingFail","markResolvedReputationFindingSuccess","updatedFinding","ResolutionReviewPending","requestAssistanceReputationFinding","requestAssistanceReputationFindingFail","requestAssistanceReputationFindingSuccess","AssistanceRequested","GET_SELLER_REPUTATION","GET_SELLER_REPUTATION_SUCCESS","GET_SELLER_REPUTATION_FAIL","GetSellerReputation","GetSellerReputationSuccess","GetSellerReputationFail","getSellerReputation","getSellerReputationFail","getSellerReputationSuccess","SET_SELLERS","SET_SELECTED_SELLER","GET_SELLER","GET_SELLER_SUCCESS","GET_SELLER_FAIL","SetSelectedSeller","GetSeller","GetSellerSuccess","GetSellerFail","setSellers","setSelectedSeller","getSeller","getSellerFail","getSellerSuccess","SessionGetterState","getSession","GET_SESSION","GET_SESSION_SUCCESS","GET_SESSION_FAIL","UPDATE_SESSION","UPDATE_SESSION_SUCCESS","UPDATE_SESSION_FAIL","GetSession","GetSessionSuccess","GetSessionFail","UpdateSession","UpdateSessionSuccess","UpdateSessionFail","ClientType","SetSelectedTeamMemberCompanyId","PtPartner","getSessionFail","getSessionSuccess","managedCompanies","affiliatedCompanies","allowedToManagePayments","updateSession","updateSessionFail","updateSessionSuccess","updatedFieldName","updatedSession","GET_STREAM_LAYOUT_ADJUSTORS","GET_STREAM_LAYOUT_ADJUSTORS_SUCCESS","GET_STREAM_LAYOUT_ADJUSTORS_FAIL","GetStreamAdjustorLayoutPolicies","GetStreamAdjustorLayoutPoliciesSuccess","GetStreamAdjustorLayoutPoliciesFail","getStreamAdjustorLayoutPolicies","getStreamAdjustorLayoutPoliciesFail","getStreamAdjustorLayoutPoliciesSuccess","GET_STREAM_AGENT_SELLERS","GET_STREAM_AGENT_SELLERS_SUCCESS","GET_STREAM_AGENT_SELLERS_FAIL","GetStreamAgentSellers","GetStreamAgentSellersSuccess","GetStreamAgentSellersFail","getStreamAgentSellers","error","getStreamAgentSellersFail","getStreamAgentSellersSuccess","SET_STREAM_AGENTS","GET_STREAM_AGENT","GET_STREAM_AGENT_SUCCESS","GET_STREAM_AGENT_FAIL","SetStreamAgents","GetStreamAgent","GetStreamAgentSuccess","GetStreamAgentFail","setStreamAgents","streamAgents","getStreamAgent","getStreamAgentFail","getStreamAgentSuccess","streamAgent","streamsToSet","stream","streamOpeningHours","streamToSet","streamOpeningHoursToSet","StreamFilterLayoutPolicyGetterState","GET_STREAM_LAYOUT_POLICIES","GET_STREAM_LAYOUT_POLICIES_SUCCESS","GET_STREAM_LAYOUT_POLICIES_FAIL","GetStreamFilterLayoutPolicies","GetStreamFilterLayoutPoliciesSuccess","GetStreamFilterLayoutPoliciesFail","getStreamFilterLayoutPolicies","getStreamFilterLayoutPoliciesFail","getStreamFilterLayoutPoliciesSuccess","StreamFilterGetterState","getAllStreamFilters","getFiltersByStreamPseudonym","streamFilters","streamFilter","getFilterByStreamPseudonymAndPropertyId","SET_STREAM_FILTERS","UPDATE_STREAM_FILTER","UPDATE_STREAM_FILTER_SUCCESS","UPDATE_STREAM_FILTER_FAIL","ENABLE_STREAM_FILTER","ENABLE_STREAM_FILTER_SUCCESS","ENABLE_STREAM_FILTER_FAIL","DISABLE_STREAM_FILTER","DISABLE_STREAM_FILTER_SUCCESS","DISABLE_STREAM_FILTER_FAIL","CREATE_STREAM_FILTER","CREATE_STREAM_FILTER_SUCCESS","CREATE_STREAM_FILTER_FAIL","ADD_FREETEXT_STREAM_FILTER","ADD_FREETEXT_STREAM_FILTER_SUCCESS","ADD_FREETEXT_STREAM_FILTER_FAIL","REMOVE_FREETEXT_STREAM_FILTER","REMOVE_FREETEXT_STREAM_FILTER_SUCCESS","REMOVE_FREETEXT_STREAM_FILTER_FAIL","SetStreamFilters","UpdateStreamFilter","UpdateStreamFilterSuccess","UpdateStreamFilterFail","EnableStreamFilter","EnableStreamFilterSuccess","EnableStreamFilterFail","DisableStreamFilter","DisableStreamFilterSuccess","DisableStreamFilterFail","CreateStreamFilter","CreateStreamFilterSuccess","CreateStreamFilterFail","AddFreetextStreamFilter","AddFreetextStreamFilterSuccess","AddFreetextStreamFilterFail","RemoveFreetextStreamFilter","RemoveFreetextStreamFilterSuccess","RemoveFreetextStreamFilterFail","setStreamFilters","updateStreamFilter","updateStreamTierFilterSuccess","updateStreamTierFilterFail","enableStreamFilter","enableStreamFilterSuccess","enableStreamFilterFail","disableStreamFilter","disableStreamFilterSuccess","disableStreamFilterFail","createStreamFilter","createStreamFilterSuccess","createStreamFilterFail","addFreetextStreamFilterSuccess","addFreetextStreamFilterFail","removeFreetextStreamFilter","removeFreetextStreamFilterSuccess","removeFreetextStreamFilterFail","GET_STREAM_SALES","GET_STREAM_SALES_SUCCESS","GET_STREAM_SALES_FAIL","SET_STREAM_SALES_CURRENT_CHART","GetStreamSales","GetStreamSalesSuccess","GetStreamSalesFail","SetStreamSalesCurrentChart","getStreamSales","getStreamSalesFail","getStreamSalesSuccess","setStreamSalesCurrentChart","GET_STREAM_SELLERS","GET_STREAM_SELLERS_SUCCESS","GET_STREAM_SELLERS_FAIL","ADD_STREAM_SELLER","ADD_STREAM_SELLER_SUCCESS","ADD_STREAM_SELLER_FAIL","REMOVE_STREAM_SELLER","REMOVE_STREAM_SELLER_SUCCESS","REMOVE_STREAM_SELLER_FAIL","GetStreamSellers","GetStreamSellersSuccess","GetStreamSellersFail","AddStreamSeller","AddStreamSellerSuccess","AddStreamSellerFail","RemoveStreamSeller","RemoveStreamSellerSuccess","RemoveStreamSellerFail","getStreamSellers","getStreamSellersFail","getStreamSellersSuccess","addStreamSeller","addStreamSellerFail","addStreamSellerSuccess","removeBuyerSeller","removeStreamSellerFail","removeStreamSellerSuccess","StreamGetterState","getAllStreams","getStreamByPseudonym","streamState","getStreamsByStreamAgentPseudonym","getStreamNameByStreamPseudonym","SET_STREAMS","GET_STREAM","GET_STREAM_SUCCESS","GET_STREAM_FAIL","UPDATE_STREAM","UPDATE_STREAM_SUCCESS","UPDATE_STREAM_FAIL","RESUME_STREAM","RESUME_STREAM_SUCCESS","RESUME_STREAM_FAIL","PAUSE_STREAM","PAUSE_STREAM_SUCCESS","PAUSE_STREAM_FAIL","REQUEST_STREAM_PRICE_CHANGE","REQUEST_STREAM_PRICE_CHANGE_SUCCESS","REQUEST_STREAM_PRICE_CHANGE_FAIL","GetStream","GetStreamSuccess","GetStreamFail","UpdateStream","UpdateStreamSuccess","UpdateStreamFail","ResumeStream","ResumeStreamSuccess","ResumeStreamFail","PauseStream","PauseStreamSuccess","PauseStreamFail","RequestStreamPriceChange","RequestStreamPriceChangeFail","RequestStreamPriceChangeSuccess","JourneyPoliciesCharacteristics","StreamCharacteristic","updateStreamEntity","JourneyPolicies_Timeout","timeoutInSeconds","JourneyPolicies_TimeLimiterType","timeLimiterType","JourneyPolicies_PositionPreference","positionPreference","JourneyPolicies_PriceBiddingPosition","priceBiddingPositionPreference","JourneyPolicies_Characteristics_SuppressTimeoutThrottling","SuppressTimeoutThrottling","JourneyPolicies_Characteristics_SuppressClosureThrottling","SuppressClosureThrottling","JourneyPolicies_Characteristics_SuppressFaultThrottling","SuppressFaultThrottling","Type","productType","ProductCharacteristics","productCharacteristics","APR","apr","RepresentativeExample","representativeExample","setStreams","getStream","getStreamFail","getStreamSuccess","updateStream","updateStreamFail","updateStreamSuccess","StreamState_1","resumeStream","resumeStreamFail","resumeStreamSuccess","pauseStream","pauseStreamFail","pauseStreamSuccess","requestStreamPriceChange","requestStreamPriceChangeFail","requestStreamPriceChangeSuccess","GET_SUBSCRIPTIONS","GET_SUBSCRIPTIONS_SUCCESS","GET_SUBSCRIPTIONS_FAIL","UPDATE_SUBSCRIPTION","UPDATE_SUBSCRIPTION_SUCCESS","UPDATE_SUBSCRIPTION_FAIL","GetSubscriptions","GetSubscriptionsSuccess","GetSubscriptionsFail","UpdateSubscription","UpdateSubscriptionSuccess","UpdateSubscriptionFail","getSubscriptions","getSubscriptionsFail","getSubscriptionsSuccess","subscriptions","updateSubscription","updateSubscriptionFail","updateSubscriptionsSuccess","getTeamMemberByPseudonym","teamMemberPseudonym","getTeamMemberByCompanyPseudonym","member","getSelectedTeamMemberCompanyId","selectedTeamMemberCompanyId","SET_TEAM_MEMBER","SET_TEAM_MEMBERS","CREATE_TEAM_MEMBER","CREATE_TEAM_MEMBER_SUCCESS","CREATE_TEAM_MEMBER_FAIL","UPDATE_TEAM_MEMBER","UPDATE_TEAM_MEMBER_SUCCESS","UPDATE_TEAM_MEMBER_FAIL","REMOVE_TEAM_MEMBER","REMOVE_TEAM_MEMBER_SUCCESS","REMOVE_TEAM_MEMBER_FAIL","SET_SELECTED_TEAM_MEMBER_COMPANY_ID","SetTeamMember","CreateTeamMember","CreateTeamMemberSuccess","CreateTeamMemberFail","UpdateTeamMember","UpdateTeamMemberSuccess","UpdateTeamMemberFail","RemoveTeamMember","RemoveTeamMemberSuccess","RemoveTeamMemberFail","setTeamMember","setTeamMembers","createTeamMember","createTeamMemberSuccess","createTeamMemberFail","updateTeamMember","updateTeamMemberSuccess","updateTeamMemberFail","removeTeamMember","removeTeamMemberSuccess","removeTeamMemberFail","setSelectedTeamMemberCompanyId","TimezoneGetterState","getAllTimezones","getBuyerTierTimezone","getStreamTimezone","getUTCTimezone","allTimezones","acronym","GET_TIMEZONES","GET_TIMEZONES_SUCCESS","GET_TIMEZONES_FAIL","GetTimezones","GetTimezonesSuccess","GetTimezonesFail","getTimezones","getTimezonesFail","getTimezonesSuccess","timezones","POST_SEARCH_TRADERS","POST_SEARCH_TRADERS_SUCCESS","POST_SEARCH_TRADERS_FAIL","PostSearchTraders","PostSearchTradersSuccess","PostSearchTradersFail","postSearchTraders","scope","TraderState_1","postSearchTradersFail","postSearchTradersSuccess","UserGetterState","getUser","getUserLoaded","loaded","SET_USER","SetUser","setUser","array","HttpBackend","rawHttpClientFactory","handler","companySettingsService","res","RequestStatus","notificationService","getNotificationsRequestState$","Success","NotificationService","regionService","getRegionsRequestState$","RegionService","timezoneService","getTimezonesRequestState$","TimezoneService","UserManager","iodcClientSettings","getUserSession","catch","events","addUserLoaded","addAccessTokenExpiring","addSilentRenewError","clearStaleState","signinRedirect","logout","signoutRedirect","completeAuthentication","signinRedirectCallback","finishAuthentication","completeSilentAuthentication","signinSilentCallback","completePopupAuthentication","signinPopupCallback","signinSilent","resumeBuyerTierRequestState$","pauseBuyerTierRequestState$","getBuyerTierSalesRequestState$","getBuyerTierReportsRequestState$","getBuyerTierReportDocumentsRequestState$","getBuyerTierReportDocumentRequestState$","getBuyerTierSales","startTime","endTime","supplementalTableId","requestedPrice","comment","getBuyerTierReports","getBuyerTierReportDocuments","notifications$","regions$","regionsFlagsList$","label","countryCode","updateSessionRequestState$","viewDirectives","updateUserSession","StreamService","getStreamRequestState$","getStreamSalesRequestState$","resumeStreamRequestState$","pauseStreamRequestState$","getStreamReportsListRequestState$","getStreamReportDocumentsListRequestState$","getStreamReportDocumentRequestState$","TeamManagementService","selectedTeamMemberCompanyId$","createTeamMemberRequestState$","removeTeamMemberRequestState$","timezones$","utcTimezone$","UntypedFormControl","ReactiveFormsModule","NavigationEnd","RouterLink","RouterLinkActive","shareReplay","ServiceHealth","NgStyle","UpperCasePipe","MatTabNav","MatTabLink","MatTabNavPanel","NotificationsListComponent","link_r1","brla_r3","isActive","tmp_15_0","ctx_r3","breadcrumbs$","ɵɵpureFunction1","_c3","ɵ$index_19_r2","styleClass","ɵɵtextInterpolate1","link_r5","rla_r6","searchControl","session_r8","devPortalUrl","ɵɵsanitizeUrl","ɵɵpureFunction0","_c5","_c8","_c9","MainHeaderComponent_Conditional_24_Conditional_4_Conditional_6_Template","MainHeaderComponent_Conditional_24_Conditional_4_Conditional_9_Template","ɵɵpipeBind2","_c10","_c11","MainHeaderComponent_Conditional_24_Conditional_1_Template","MainHeaderComponent_Conditional_24_Conditional_4_Template","MainHeaderComponent_Conditional_24_Conditional_9_Template","MainHeaderComponent_Conditional_24_Conditional_28_Template","MainHeaderComponent_Conditional_24_Template_a_click_31_listener","_r7","ShowDeveloperLink","ShowCompanyManagement","_c4","ShowNotifications","tmp_9_0","nickname","_c6","_c7","activatedRoute","teamManagementService","serviceHealth","event","buildBreadCrumb","root","navLinks$","showIntegration","showSites","breadcrumbs","routeConfig","urls","split","isDynamicRoute","startsWith","snapshot","paramName","join","nextUrl","newBreadcrumbs","firstChild","ActivatedRoute","i6","i7","MainHeaderComponent_Template","MainHeaderComponent_For_11_Template","_forTrack0","MainHeaderComponent_For_17_Template","ɵɵrepeaterTrackByIdentity","MainHeaderComponent_Conditional_21_Template","MainHeaderComponent_Conditional_24_Template","_c0","ɵɵpureFunction2","_c1","tmp_3_0","Degraded","Down","_c2","tabPanel_r9","tabPanel1_r10","ShowSearch","tmp_12_0","i8","i9","DefaultStyleDirective","i10","DefaultValueAccessor","NgControlStatus","FormControlDirective","i11","TranslatePipe","NotificationDateComponent","notification_r1","NotificationsListComponent_Template","NotificationsListComponent_For_2_Template","route$","urlSegments","segment","NotFoundComponent_Template","getCompanyPaymentsRequestState$","updateCompanyPaymentsRequestState$","getPayments","createPayment","updatePayment","interval","startWith","TimeDifferencePipe","timeDifferencePipe","fullFormat","duration$","inputs","features","ɵɵProvidersFeature","NotificationDateComponent_Template","authority","client_id","redirect_uri","window","location","origin","post_logout_redirect_uri","response_type","silent_redirect_uri","mask","pure","datePipe","now","Date","startDate","diff","ago","instant","asDays","days","asHours","hours","asMinutes","minutes","parseInt","String","seconds","d","h","m","s","countDown","milliseconds","MatProgressSpinner","showSpinner$","SpinnerComponent_Template","SpinnerComponent_Conditional_0_Template","switchMapTo","streamService","production","globalSettingLocalStorageKey","enableProdMode","bootstrapApplication"],"sourceRoot":"webpack:///","x_google_ignoreList":[192]}