@osovitny/anatoly 3.21.33 → 3.21.34

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.34",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.11",
6
6
  "@angular/core": "^21.2.11",
@@ -365,11 +365,27 @@ 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 {
369
376
  constructor();
370
- info(info: any): void;
371
- warn(info: any): void;
372
- error(error: any): void;
377
+ private static getConfiguredLogLevel;
378
+ private static getMsalLogLevel;
379
+ private static toLogLevel;
380
+ private static shouldLog;
381
+ static debug(info: any, ...optionalParams: any[]): void;
382
+ static info(info: any, ...optionalParams: any[]): void;
383
+ static warn(info: any, ...optionalParams: any[]): void;
384
+ static error(error: any, ...optionalParams: any[]): void;
385
+ debug(info: any, ...optionalParams: any[]): void;
386
+ info(info: any, ...optionalParams: any[]): void;
387
+ warn(info: any, ...optionalParams: any[]): void;
388
+ error(error: any, ...optionalParams: any[]): void;
373
389
  static ɵfac: i0.ɵɵFactoryDeclaration<LoggingService, never>;
374
390
  static ɵprov: i0.ɵɵInjectableDeclaration<LoggingService>;
375
391
  }
@@ -381,12 +397,13 @@ declare class AuthService extends ApiServiceBase implements OnDestroy {
381
397
  private msalGuardConfig;
382
398
  private msalService;
383
399
  private msalBroadcastService;
400
+ private logger;
384
401
  private readonly msalDestroying$;
385
402
  private signUpSignInPolicy;
386
403
  private signUpPolicy;
387
404
  private editProfilePolicy;
388
405
  private resetPasswordPolicy;
389
- constructor(http: HttpClient, router: Router, appContext: AppContextService, msalGuardConfig: MsalGuardConfiguration, msalService: MsalService, msalBroadcastService: MsalBroadcastService);
406
+ constructor(http: HttpClient, router: Router, appContext: AppContextService, msalGuardConfig: MsalGuardConfiguration, msalService: MsalService, msalBroadcastService: MsalBroadcastService, logger: LoggingService);
390
407
  ngOnDestroy(): void;
391
408
  private setDefaults;
392
409
  private initMSAL;
@@ -473,8 +490,8 @@ declare class AnatolyHttpInterceptor implements HttpInterceptor {
473
490
  private handleHttpRequest;
474
491
  private setQS;
475
492
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
476
- onRequestStart(loadingRequired: boolean): void;
477
- onRequestEnd(loadingRequired: boolean): void;
493
+ onRequestStart(loadingRequired: boolean, url: string): void;
494
+ onRequestEnd(loadingRequired: boolean, url: string): void;
478
495
  static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyHttpInterceptor, never>;
479
496
  static ɵprov: i0.ɵɵInjectableDeclaration<AnatolyHttpInterceptor>;
480
497
  }
@@ -504,12 +521,13 @@ declare class StarterGuard implements CanActivate, CanActivateChild {
504
521
 
505
522
  declare class LocalizationService implements OnDestroy {
506
523
  private translate;
524
+ private logger;
507
525
  private subs;
508
526
  private dateFnsLocale;
509
527
  private supportedLanguages;
510
528
  private defaultLanguage;
511
529
  langchange: EventEmitter<any>;
512
- constructor(translate: TranslateService);
530
+ constructor(translate: TranslateService, logger: LoggingService);
513
531
  ngOnDestroy(): void;
514
532
  private format;
515
533
  configureSettings(translate: TranslateService): string;
@@ -659,8 +677,9 @@ declare class DigitalMarketingService {
659
677
 
660
678
  declare class GoogleAnalyticsService {
661
679
  private router;
680
+ private logger;
662
681
  private subscription;
663
- constructor(router: Router);
682
+ constructor(router: Router, logger: LoggingService);
664
683
  subscribe(): void;
665
684
  unsubscribe(): void;
666
685
  event(name: string, params?: any): void;
@@ -1393,6 +1412,7 @@ declare class PayPalComponent implements OnChanges, OnDestroy, AfterViewInit {
1393
1412
  private paypalScriptService;
1394
1413
  private cdr;
1395
1414
  private ngZone;
1415
+ private logger;
1396
1416
  /**
1397
1417
  * Configuration for paypal.
1398
1418
  */
@@ -1421,7 +1441,7 @@ declare class PayPalComponent implements OnChanges, OnDestroy, AfterViewInit {
1421
1441
  * Reference to PayPal global API
1422
1442
  */
1423
1443
  private payPal;
1424
- constructor(paypalScriptService: PayPalScriptService, cdr: ChangeDetectorRef, ngZone: NgZone);
1444
+ constructor(paypalScriptService: PayPalScriptService, cdr: ChangeDetectorRef, ngZone: NgZone, logger: LoggingService);
1425
1445
  ngOnChanges(changes: SimpleChanges): void;
1426
1446
  ngOnDestroy(): void;
1427
1447
  ngAfterViewInit(): void;
@@ -2136,5 +2156,5 @@ declare class AnatolyModule {
2136
2156
  static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyModule>;
2137
2157
  }
2138
2158
 
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 };
2159
+ 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
2160
  export type { ICurrentApp, INotification, Message2UserConfig };