@iblai/data-layer 1.1.16 → 1.1.17

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/dist/index.js CHANGED
@@ -39017,15 +39017,15 @@ class SkillsService {
39017
39017
  }
39018
39018
 
39019
39019
  const STORAGE_KEYS = {
39020
- CURRENT_TENANT: "current_tenant",
39021
- TENANT: "tenant",
39022
- TENANTS: "tenants",
39023
- REDIRECT_TO: "redirect-to",
39024
- TOKEN_EXPIRY: "dm_token_expires",
39025
- EDX_TOKEN_KEY: "edx_jwt_token",
39026
- DM_TOKEN_KEY: "dm_token",
39027
- AXD_TOKEN_KEY: "axd_token",
39028
- USER_DATA: "userData",
39020
+ CURRENT_TENANT: 'current_tenant',
39021
+ TENANT: 'tenant',
39022
+ TENANTS: 'tenants',
39023
+ REDIRECT_TO: 'redirect-to',
39024
+ TOKEN_EXPIRY: 'dm_token_expires',
39025
+ EDX_TOKEN_KEY: 'edx_jwt_token',
39026
+ DM_TOKEN_KEY: 'dm_token',
39027
+ AXD_TOKEN_KEY: 'axd_token',
39028
+ USER_DATA: 'userData',
39029
39029
  };
39030
39030
  // URL patterns
39031
39031
  const URL_PATTERNS = {
@@ -39033,20 +39033,21 @@ const URL_PATTERNS = {
39033
39033
  };
39034
39034
  // App identifiers
39035
39035
  const APP_IDENTIFIERS = {
39036
- APP_NAME: "mentor",
39036
+ APP_NAME: 'mentor',
39037
39037
  };
39038
39038
  // Query parameters
39039
39039
  const QUERY_PARAMS = {
39040
- APP: "app",
39041
- REDIRECT_TO: "redirect-to",
39042
- TENANT: "tenant",
39040
+ APP: 'app',
39041
+ REDIRECT_TO: 'redirect-to',
39042
+ TENANT: 'tenant',
39043
39043
  };
39044
39044
  // Tenant identifiers
39045
39045
  const TENANT_IDENTIFIERS = {
39046
- MAIN: "main",
39046
+ MAIN: 'main',
39047
39047
  };
39048
39048
  exports.SERVICES = void 0;
39049
39049
  (function (SERVICES) {
39050
+ SERVICES["LEGACY_LMS"] = "LEGACY_LMS";
39050
39051
  SERVICES["LMS"] = "LMS";
39051
39052
  SERVICES["DM"] = "DM";
39052
39053
  SERVICES["AXD"] = "AXD";
@@ -39054,10 +39055,11 @@ exports.SERVICES = void 0;
39054
39055
 
39055
39056
  class Config {
39056
39057
  }
39057
- Config.lmsUrl = "https://learn.iblai.app";
39058
- Config.dmUrl = "https://base.manager.iblai.app";
39059
- Config.axdUrl = "https://base.manager.iblai.app";
39060
- Config.mentorIframeUrl = "https://mentor.iblai.tech";
39058
+ Config.legacyLmsUrl = 'https://learn.iblai.app';
39059
+ Config.lmsUrl = 'https://learn.iblai.app';
39060
+ Config.dmUrl = 'https://base.manager.iblai.app';
39061
+ Config.axdUrl = 'https://base.manager.iblai.app';
39062
+ Config.mentorIframeUrl = 'https://mentor.iblai.tech';
39061
39063
  Config.httpErrorHandlers = {};
39062
39064
 
39063
39065
  class IblDataLayer {
@@ -39118,6 +39120,8 @@ const iblFakeBaseQuery = react.retry(fakeBaseQueryWithLogging, {
39118
39120
  */
39119
39121
  const getServiceUrl = (service) => {
39120
39122
  switch (service) {
39123
+ case exports.SERVICES.LEGACY_LMS:
39124
+ return Config.legacyLmsUrl;
39121
39125
  case exports.SERVICES.LMS:
39122
39126
  return Config.lmsUrl;
39123
39127
  case exports.SERVICES.DM:
@@ -39838,7 +39842,7 @@ const AUTH_ENDPOINTS = {
39838
39842
  path: () => '/api/ibl/manager/consolidated-token/proxy/',
39839
39843
  },
39840
39844
  REFRESH_JWT_TOKEN: {
39841
- service: exports.SERVICES.LMS,
39845
+ service: exports.SERVICES.LEGACY_LMS,
39842
39846
  path: () => '/ibl-auth/request-jwt/',
39843
39847
  },
39844
39848
  };