oip-common 0.0.38 → 0.1.2

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/index.d.ts CHANGED
@@ -58,10 +58,15 @@ declare class MsgService {
58
58
  */
59
59
  declare class BaseDataService {
60
60
  private readonly http;
61
+ private readonly frontendConfig;
61
62
  /**
62
63
  * Gets the base URL of the application from the HTML <base> tag.
63
64
  */
64
65
  get baseUrl(): string;
66
+ /**
67
+ * Builds a fully-qualified application URL based on frontend mode.
68
+ */
69
+ buildUrl(path: string): string;
65
70
  /**
66
71
  * Sends an HTTP request with the specified method and data.
67
72
  *
@@ -79,6 +84,7 @@ declare class BaseDataService {
79
84
  * @returns A promise that resolves to a Object response.
80
85
  */
81
86
  getBlob(url: string): Promise<object>;
87
+ private normalizeBaseUrl;
82
88
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseDataService, never>;
83
89
  static ɵprov: i0.ɵɵInjectableDeclaration<BaseDataService>;
84
90
  }
@@ -1469,8 +1475,10 @@ declare class NotificationService {
1469
1475
  private connection;
1470
1476
  private securityService;
1471
1477
  private msgService;
1478
+ private frontendConfig;
1472
1479
  private securityData;
1473
1480
  constructor();
1481
+ private resolveHubUrl;
1474
1482
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
1475
1483
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
1476
1484
  }
@@ -1505,6 +1513,15 @@ declare class TableFilterService {
1505
1513
  static ɵprov: i0.ɵɵInjectableDeclaration<TableFilterService>;
1506
1514
  }
1507
1515
 
1516
+ type OipFrontendAppMode = 'standalone' | 'distributed';
1517
+ interface OipFrontendConfig {
1518
+ appMode: OipFrontendAppMode;
1519
+ apiBaseUrl?: string;
1520
+ notificationHubUrl?: string;
1521
+ }
1522
+ declare const DEFAULT_OIP_FRONTEND_CONFIG: OipFrontendConfig;
1523
+ declare const OIP_FRONTEND_CONFIG: InjectionToken<OipFrontendConfig>;
1524
+
1508
1525
  declare const langIntercept: HttpInterceptorFn;
1509
1526
 
1510
1527
  declare class SecurePipe implements PipeTransform {
@@ -1522,5 +1539,5 @@ declare class SecurePipe implements PipeTransform {
1522
1539
  */
1523
1540
  declare const httpLoaderAuthFactory: (httpClient: HttpClient$1) => StsConfigHttpLoader;
1524
1541
 
1525
- export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, ContentType, DbMigrationComponent, DiscussionComponent, ErrorComponent, FooterComponent, HttpClient, KeycloakSecurityService, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, MsgService, NotfoundComponent, NotificationService, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept, provideLogoComponent };
1526
- export type { AppConfig, LanguageDto, MenuChangeEvent, NoSettingsDto, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
1542
+ export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, ContentType, DEFAULT_OIP_FRONTEND_CONFIG, DbMigrationComponent, DiscussionComponent, ErrorComponent, FooterComponent, HttpClient, KeycloakSecurityService, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, MsgService, NotfoundComponent, NotificationService, OIP_FRONTEND_CONFIG, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept, provideLogoComponent };
1543
+ export type { AppConfig, LanguageDto, MenuChangeEvent, NoSettingsDto, OipFrontendAppMode, OipFrontendConfig, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.0.38",
3
+ "version": "0.1.2",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -67,7 +67,6 @@ let config = {
67
67
  fixInvalidEnumKeyPrefix: "Value",
68
68
  codeGenConstructs: (constructs) => ({
69
69
  ...constructs,
70
- RecordType: (key, value) => `MyRecord<key, value>`
71
70
  }),
72
71
  primitiveTypeConstructs: (constructs) => ({
73
72
  ...constructs,