@intellegens/cornerstone-client 0.0.9999-alpha-35 → 0.0.9999-alpha-37

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.
@@ -262,6 +262,6 @@ export class SearchBuilder {
262
262
  if (typeof str !== 'string') {
263
263
  return str.toString();
264
264
  }
265
- return str.replace(/([A-Z])/g, ' $1').replace(/^./, firstChar => firstChar.toUpperCase());
265
+ return str.charAt(0).toUpperCase() + str.slice(1);
266
266
  }
267
267
  }
@@ -194,7 +194,7 @@ export class ApiInitializationService {
194
194
  throw apiResponse.error;
195
195
  }
196
196
  // Return the settings from the nested structure
197
- this.appConfig = apiResponse.result.settings;
197
+ this.appConfig = apiResponse.result.appSettings;
198
198
  }
199
199
  catch (error) {
200
200
  console.error('Failed to get app config', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellegens/cornerstone-client",
3
- "version": "0.0.9999-alpha-35",
3
+ "version": "0.0.9999-alpha-37",
4
4
  "private": false,
5
5
  "publishable": true,
6
6
  "main": "./dist/index.js",
@@ -343,6 +343,6 @@ export class SearchBuilder<T> {
343
343
  return str.toString();
344
344
  }
345
345
 
346
- return str.replace(/([A-Z])/g, ' $1').replace(/^./, firstChar => firstChar.toUpperCase());
346
+ return str.charAt(0).toUpperCase() + str.slice(1);
347
347
  }
348
348
  }
@@ -17,7 +17,7 @@ type ISharedSettings = {
17
17
  * Initialization info DTO that matches the server-side structure
18
18
  */
19
19
  type IInitializationInfoDto<TSharedSettings = ISharedSettings> = {
20
- settings: TSharedSettings;
20
+ appSettings: TSharedSettings;
21
21
  };
22
22
 
23
23
  import { ApiErrorResponseDto, ApiSuccessResponseDto, EmptyMetadataDto } from '@/data';
@@ -238,7 +238,7 @@ export class ApiInitializationService {
238
238
  }
239
239
 
240
240
  // Return the settings from the nested structure
241
- this.appConfig = apiResponse.result.settings;
241
+ this.appConfig = apiResponse.result.appSettings;
242
242
  } catch (error) {
243
243
  console.error('Failed to get app config', error);
244
244
  this.appConfig = undefined;