@transcommerce/cwm-shared 1.1.26 → 1.1.28

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.
@@ -26958,7 +26958,7 @@ const MockConfig = {
26958
26958
  "configConnectString": "Endpoint=https://cheap-weed-menus-appconfig.azconfig.io;Id=tyjA;Secret=1FgL95lHkXViZX4Qf2GcRqn26mhTYDVYany8ToXpTnO68AzrdUUEJQQJ99AHAC8vTInIcYexAAACAZACsteF",
26959
26959
  "clientId": "af1486e0-a27f-4c8d-8503-0752d90ce72d",
26960
26960
  "tenantId": "72950c7a-314c-4ce9-87e5-a9866db20070",
26961
- "authority": "https://login.microsoft.com/72950c7a-314c-4ce9-87e5-a9866db20070",
26961
+ "authority": "https://cwmcustomers.ciamlogin.com/72950c7a-314c-4ce9-87e5-a9866db20070",
26962
26962
  "scopes": "openid,email,profile",
26963
26963
  "menu_uri": "http://localhost:4280/",
26964
26964
  "redirect_uri": "https://localhost:4280",
@@ -27064,6 +27064,26 @@ const MockProfile = {
27064
27064
  "userPrincipalName": "demo@app.cheapweedmenu.com"
27065
27065
  };
27066
27066
 
27067
+ const MockCustomer = {
27068
+ "apiClientId": "5dd15878-aa4c-4adf-8650-b931f32a7b67",
27069
+ "apiLocationId": "10f19fc5-31d0-4d76-bad4-ad593c9803ae",
27070
+ "companyName": "Test Weed Dispensary",
27071
+ "emailAddress": "demo@app.cheapweedmenu.com",
27072
+ "id": "1",
27073
+ "phoneNumber": "5035551212",
27074
+ "jobTitle": "Budtender",
27075
+ "userType": UserTypes.Administrator,
27076
+ "displayName": "Demo User",
27077
+ "givenName": "Demo",
27078
+ "surName": "User",
27079
+ "streetAddress": "123 Any Street",
27080
+ "city": "Anytown",
27081
+ "state": "OR",
27082
+ "postalCode": "12345",
27083
+ "country": "USA",
27084
+ "subscriptionId": "1"
27085
+ };
27086
+
27067
27087
  /*
27068
27088
  The LogService is really just a wrapper around the existing console logging functionality
27069
27089
  The three main reasons for using this service are:
@@ -27076,8 +27096,16 @@ class LogService {
27076
27096
  _className = "";
27077
27097
  get className() { return this._className; }
27078
27098
  set className(value) {
27079
- this._className = value;
27080
- this.methodName = "constructor()";
27099
+ if (this._className !== "" && this._className !== value && this.logLevel != 'None') {
27100
+ console.groupCollapsed(this.targetName + " - " + value + " - " + new Date().toLocaleString());
27101
+ }
27102
+ if (this._className === "" || this._className !== value) {
27103
+ this._className = value;
27104
+ this.methodName = "constructor()";
27105
+ }
27106
+ else {
27107
+ this._className = value;
27108
+ }
27081
27109
  }
27082
27110
  _methodName = "";
27083
27111
  get methodName() { return this._methodName; }
@@ -27112,6 +27140,15 @@ class LogService {
27112
27140
  console.log(this.prefix + " " + message, optionalParams);
27113
27141
  }
27114
27142
  }
27143
+ debug(message, ...optionalParams) {
27144
+ if (this.logLevel === 'Debug') {
27145
+ if (this.targetName != this.className) {
27146
+ console.timeEnd(this.targetName);
27147
+ console.time(this.targetName);
27148
+ }
27149
+ console.debug(this.prefix + " " + message, optionalParams);
27150
+ }
27151
+ }
27115
27152
  info(message, ...optionalParams) {
27116
27153
  if (this.logLevel === 'Debug' || this.logLevel === 'Info') {
27117
27154
  if (this.targetName != this.className)
@@ -27655,5 +27692,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
27655
27692
  * Generated bundle index. Do not edit.
27656
27693
  */
27657
27694
 
27658
- export { BaseApiService, CardTypes, Category, ConfigService, Customer, CustomerApiService, CwmSharedModule, DbKeys, ExternalNavigationComponent, InventoryApiService, Justifications, LocalStorageService, LogService, LoggingVerbosity, MockConfig, MockInventoryApiResponse, MockProfile, NamedColors, NavigateToRouteComponent, OnElementStyle, PageNotFoundComponent, Product, Profile, SafeHtmlPipe, TimeSpan, TimeSpanOverflowError, UserTypes, Utilities, decodeToken, doWithLock, isTokenValid, msalGuardConfigFactory, msalInstanceFactory, msalInterceptorConfigFactory, waitFor };
27695
+ export { BaseApiService, CardTypes, Category, ConfigService, Customer, CustomerApiService, CwmSharedModule, DbKeys, ExternalNavigationComponent, InventoryApiService, Justifications, LocalStorageService, LogService, LoggingVerbosity, MockConfig, MockCustomer, MockInventoryApiResponse, MockProfile, NamedColors, NavigateToRouteComponent, OnElementStyle, PageNotFoundComponent, Product, Profile, SafeHtmlPipe, TimeSpan, TimeSpanOverflowError, UserTypes, Utilities, decodeToken, doWithLock, isTokenValid, msalGuardConfigFactory, msalInstanceFactory, msalInterceptorConfigFactory, waitFor };
27659
27696
  //# sourceMappingURL=transcommerce-cwm-shared.mjs.map