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