@osovitny/anatoly 3.21.33 → 3.21.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "3.21.33",
3
+ "version": "3.21.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.11",
6
6
  "@angular/core": "^21.2.11",
@@ -365,11 +365,30 @@ declare class GoServiceBase extends ServiceBase {
365
365
  static ɵprov: i0.ɵɵInjectableDeclaration<GoServiceBase>;
366
366
  }
367
367
 
368
+ declare enum AnatolyLogLevel {
369
+ Off = -1,
370
+ Error = 0,
371
+ Warning = 1,
372
+ Info = 2,
373
+ Verbose = 3
374
+ }
368
375
  declare class LoggingService {
376
+ static readonly packagePrefix = "@osovitny/anatoly";
369
377
  constructor();
370
- info(info: any): void;
371
- warn(info: any): void;
372
- error(error: any): void;
378
+ static getEventName(eventName: string): string;
379
+ private static getConfiguredLogLevel;
380
+ private static getMsalLogLevel;
381
+ private static toLogLevel;
382
+ private static shouldLog;
383
+ static debug(info: any, ...optionalParams: any[]): void;
384
+ static info(info: any, ...optionalParams: any[]): void;
385
+ static warn(info: any, ...optionalParams: any[]): void;
386
+ static error(error: any, ...optionalParams: any[]): void;
387
+ debug(info: any, ...optionalParams: any[]): void;
388
+ info(info: any, ...optionalParams: any[]): void;
389
+ warn(info: any, ...optionalParams: any[]): void;
390
+ error(error: any, ...optionalParams: any[]): void;
391
+ getEventName(eventName: string): string;
373
392
  static ɵfac: i0.ɵɵFactoryDeclaration<LoggingService, never>;
374
393
  static ɵprov: i0.ɵɵInjectableDeclaration<LoggingService>;
375
394
  }
@@ -381,12 +400,13 @@ declare class AuthService extends ApiServiceBase implements OnDestroy {
381
400
  private msalGuardConfig;
382
401
  private msalService;
383
402
  private msalBroadcastService;
403
+ private logger;
384
404
  private readonly msalDestroying$;
385
405
  private signUpSignInPolicy;
386
406
  private signUpPolicy;
387
407
  private editProfilePolicy;
388
408
  private resetPasswordPolicy;
389
- constructor(http: HttpClient, router: Router, appContext: AppContextService, msalGuardConfig: MsalGuardConfiguration, msalService: MsalService, msalBroadcastService: MsalBroadcastService);
409
+ constructor(http: HttpClient, router: Router, appContext: AppContextService, msalGuardConfig: MsalGuardConfiguration, msalService: MsalService, msalBroadcastService: MsalBroadcastService, logger: LoggingService);
390
410
  ngOnDestroy(): void;
391
411
  private setDefaults;
392
412
  private initMSAL;
@@ -473,8 +493,8 @@ declare class AnatolyHttpInterceptor implements HttpInterceptor {
473
493
  private handleHttpRequest;
474
494
  private setQS;
475
495
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
476
- onRequestStart(loadingRequired: boolean): void;
477
- onRequestEnd(loadingRequired: boolean): void;
496
+ onRequestStart(loadingRequired: boolean, url: string): void;
497
+ onRequestEnd(loadingRequired: boolean, url: string): void;
478
498
  static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyHttpInterceptor, never>;
479
499
  static ɵprov: i0.ɵɵInjectableDeclaration<AnatolyHttpInterceptor>;
480
500
  }
@@ -504,12 +524,13 @@ declare class StarterGuard implements CanActivate, CanActivateChild {
504
524
 
505
525
  declare class LocalizationService implements OnDestroy {
506
526
  private translate;
527
+ private logger;
507
528
  private subs;
508
529
  private dateFnsLocale;
509
530
  private supportedLanguages;
510
531
  private defaultLanguage;
511
532
  langchange: EventEmitter<any>;
512
- constructor(translate: TranslateService);
533
+ constructor(translate: TranslateService, logger: LoggingService);
513
534
  ngOnDestroy(): void;
514
535
  private format;
515
536
  configureSettings(translate: TranslateService): string;
@@ -659,8 +680,9 @@ declare class DigitalMarketingService {
659
680
 
660
681
  declare class GoogleAnalyticsService {
661
682
  private router;
683
+ private logger;
662
684
  private subscription;
663
- constructor(router: Router);
685
+ constructor(router: Router, logger: LoggingService);
664
686
  subscribe(): void;
665
687
  unsubscribe(): void;
666
688
  event(name: string, params?: any): void;
@@ -1393,6 +1415,7 @@ declare class PayPalComponent implements OnChanges, OnDestroy, AfterViewInit {
1393
1415
  private paypalScriptService;
1394
1416
  private cdr;
1395
1417
  private ngZone;
1418
+ private logger;
1396
1419
  /**
1397
1420
  * Configuration for paypal.
1398
1421
  */
@@ -1421,7 +1444,7 @@ declare class PayPalComponent implements OnChanges, OnDestroy, AfterViewInit {
1421
1444
  * Reference to PayPal global API
1422
1445
  */
1423
1446
  private payPal;
1424
- constructor(paypalScriptService: PayPalScriptService, cdr: ChangeDetectorRef, ngZone: NgZone);
1447
+ constructor(paypalScriptService: PayPalScriptService, cdr: ChangeDetectorRef, ngZone: NgZone, logger: LoggingService);
1425
1448
  ngOnChanges(changes: SimpleChanges): void;
1426
1449
  ngOnDestroy(): void;
1427
1450
  ngAfterViewInit(): void;
@@ -2136,5 +2159,5 @@ declare class AnatolyModule {
2136
2159
  static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyModule>;
2137
2160
  }
2138
2161
 
2139
- export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppVersion, AppsGoServiceBase, AssetGroupType, AuthService, AuthenticationGuard, BillingService, BillingUtils, BraintreeDialog, BrowserService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, ControlPanelComponent, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, ImageReplacerDirective, InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, LibName, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Message2User, Message2UserComponent, Message2UserService, Mode, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PaypalSubscribeButtonComponent, PromoCodesApiService, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, ServiceBase, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatAssetsUrl, formatUrl, getAppCoreSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
2162
+ export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyLogLevel, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppVersion, AppsGoServiceBase, AssetGroupType, AuthService, AuthenticationGuard, BillingService, BillingUtils, BraintreeDialog, BrowserService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, ControlPanelComponent, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, ImageReplacerDirective, InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, LibName, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Message2User, Message2UserComponent, Message2UserService, Mode, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PaypalSubscribeButtonComponent, PromoCodesApiService, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, ServiceBase, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatAssetsUrl, formatUrl, getAppCoreSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
2140
2163
  export type { ICurrentApp, INotification, Message2UserConfig };