oip-common 0.11.0 → 0.11.1
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/README.md +0 -1
- package/fesm2022/oip-common.mjs +110 -46
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +11 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -851,6 +851,9 @@ interface ChangeOrderParams {
|
|
|
851
851
|
firstModuleId?: number;
|
|
852
852
|
secondModuleId?: number;
|
|
853
853
|
}
|
|
854
|
+
interface CreateAuthSessionParams {
|
|
855
|
+
returnUrl?: string;
|
|
856
|
+
}
|
|
854
857
|
|
|
855
858
|
interface ContextMenuItemDto {
|
|
856
859
|
moduleInstanceId: number;
|
|
@@ -1627,6 +1630,10 @@ declare enum ImportanceLevel {
|
|
|
1627
1630
|
High = "High",
|
|
1628
1631
|
Critical = "Critical"
|
|
1629
1632
|
}
|
|
1633
|
+
interface CreateTestNotificationRequest {
|
|
1634
|
+
subject?: string | null;
|
|
1635
|
+
message?: string | null;
|
|
1636
|
+
}
|
|
1630
1637
|
interface UserNotificationCountResponse {
|
|
1631
1638
|
count?: number;
|
|
1632
1639
|
}
|
|
@@ -2057,7 +2064,7 @@ declare class IframeModuleApi<SecurityDataType = unknown> extends HttpClient<Sec
|
|
|
2057
2064
|
|
|
2058
2065
|
declare class SecurityApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
2059
2066
|
getCurrentAuthSession: (params?: RequestParams) => Promise<AuthSessionResponse>;
|
|
2060
|
-
createAuthSession: (params?: RequestParams) => Promise<any>;
|
|
2067
|
+
createAuthSession: (query: CreateAuthSessionParams, params?: RequestParams) => Promise<any>;
|
|
2061
2068
|
deleteAuthSession: (params?: RequestParams) => Promise<any>;
|
|
2062
2069
|
getAuthCsrfToken: (params?: RequestParams) => Promise<AuthCsrfTokenResponse>;
|
|
2063
2070
|
getRealmRoles: (params?: RequestParams) => Promise<string[]>;
|
|
@@ -2077,6 +2084,7 @@ declare class AuthSessionsApi<SecurityDataType = unknown> extends HttpClient<Sec
|
|
|
2077
2084
|
|
|
2078
2085
|
declare class ApplicationsApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
2079
2086
|
getApplicationRegistryItems: (params?: RequestParams) => Promise<ApplicationRegistryItemDto[]>;
|
|
2087
|
+
getAllApplicationRegistryItems: (params?: RequestParams) => Promise<ApplicationRegistryItemDto[]>;
|
|
2080
2088
|
getApplicationRegistryItemByCode: ({ code, ...query }: GetApplicationRegistryItemByCodeParams, params?: RequestParams) => Promise<any>;
|
|
2081
2089
|
createApplicationRegistryItem: (data: ApplicationRegistryItemDto, params?: RequestParams) => Promise<any>;
|
|
2082
2090
|
updateApplicationRegistryItem: ({ code, ...query }: UpdateApplicationRegistryItemParams, data: ApplicationRegistryItemDto, params?: RequestParams) => Promise<any>;
|
|
@@ -2113,6 +2121,7 @@ declare class NotificationApi<SecurityDataType = unknown> extends HttpClient<Sec
|
|
|
2113
2121
|
getNotificationCountByUser: (params?: RequestParams) => Promise<UserNotificationCountResponse>;
|
|
2114
2122
|
markNotificationAsRead: ({ id, ...query }: MarkNotificationAsReadParams, params?: RequestParams) => Promise<void>;
|
|
2115
2123
|
getNotificationById: (query: GetNotificationByIdParams, params?: RequestParams) => Promise<UserNotificationDto>;
|
|
2124
|
+
createTestNotification: (data: CreateTestNotificationRequest, params?: RequestParams) => Promise<UserNotificationDto>;
|
|
2116
2125
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationApi<any>, never>;
|
|
2117
2126
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationApi<any>>;
|
|
2118
2127
|
}
|
|
@@ -2201,8 +2210,6 @@ declare function oipStartRoute(path?: string, data?: StartRouteData): Route;
|
|
|
2201
2210
|
declare function oipAccessRoute(path?: string): Route;
|
|
2202
2211
|
/** Authentication error page. */
|
|
2203
2212
|
declare function oipErrorRoute(path?: string): Route;
|
|
2204
|
-
/** Current user profile. */
|
|
2205
|
-
declare function oipProfileRoute(path?: string): Route;
|
|
2206
2213
|
/** Application configuration. */
|
|
2207
2214
|
declare function oipConfigRoute(path?: string): Route;
|
|
2208
2215
|
/** Registered applications, administrators only. */
|
|
@@ -2236,8 +2243,6 @@ interface OipRouteFeatures {
|
|
|
2236
2243
|
access?: OipRouteToggle;
|
|
2237
2244
|
/** Authentication error page. Default path: `error`. */
|
|
2238
2245
|
error?: OipRouteToggle;
|
|
2239
|
-
/** Current user profile. Default path: `profile`. */
|
|
2240
|
-
profile?: OipRouteToggle;
|
|
2241
2246
|
/** Application configuration. Default path: `config`. */
|
|
2242
2247
|
config?: OipRouteToggle;
|
|
2243
2248
|
/** Registered applications, administrators only. Default path: `applications`. */
|
|
@@ -2309,5 +2314,5 @@ interface OipRoutesOptions {
|
|
|
2309
2314
|
*/
|
|
2310
2315
|
declare function provideOipRoutes(options?: OipRoutesOptions): Routes;
|
|
2311
2316
|
|
|
2312
|
-
export { APP_INFO_TOKEN, APP_THEME_PRESETS, APP_THEME_PRESETS_MERGE_MODE, AccessComponent, AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppInfoService, AppLayoutComponent, AppModulesComponent, AppTopbar, AppTopbarApplicationSwitcherComponent, ApplicationRegistryService, ApplicationsApi, ApplicationsComponent, AuthGuardService, AuthSessionsApi, AuthSessionsComponent, BaseModuleComponent, BffSecurityService, BlockLoaderComponent, ConfigComponent, ContentType, CustomElementExtensionModuleHostComponent, DbMigrationComponent, DefaultSecretsBannerComponent, DiscussionComponent, ErrorComponent, ExtensionLoaderService, ExtensionModuleHostComponent, FolderModuleApi, FooterComponent, HttpClient, IframeModuleApi, IframeModuleComponent, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, ModuleInstanceRightsService, ModuleLoadingService, MsgService, NoModulesComponent, NotfoundComponent, NotificationApi, NotificationService, OIP_EXTENSION_EVENTS, SecurityApi, SecurityComponent, SecurityService, SidebarComponent, StartPageService, TableFilterService, TopBarService, UnauthorizedComponent, UserNotificationsComponent, UserProfileApi, UserProfileComponent, UserService, convertToPrimeNgDateFormat, defaultTheme, emitOipContextChange, emitOipError, emitOipNavigate, emitOipNotify, emitOipSettingsChange, emitOipTitleChange, langIntercept, mergeWithDefaults, moduleAccessGuard, oipAccessRoute, oipApplicationsRoute, oipAuthGuard, oipConfigRoute, oipDbMigrationRoute, oipDiscussionRoute, oipErrorRoute, oipExtensionsRoute, oipIframeModuleRoute, oipModulesRoute, oipNoModulesRoute,
|
|
2317
|
+
export { APP_INFO_TOKEN, APP_THEME_PRESETS, APP_THEME_PRESETS_MERGE_MODE, AccessComponent, AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppInfoService, AppLayoutComponent, AppModulesComponent, AppTopbar, AppTopbarApplicationSwitcherComponent, ApplicationRegistryService, ApplicationsApi, ApplicationsComponent, AuthGuardService, AuthSessionsApi, AuthSessionsComponent, BaseModuleComponent, BffSecurityService, BlockLoaderComponent, ConfigComponent, ContentType, CustomElementExtensionModuleHostComponent, DbMigrationComponent, DefaultSecretsBannerComponent, DiscussionComponent, ErrorComponent, ExtensionLoaderService, ExtensionModuleHostComponent, FolderModuleApi, FooterComponent, HttpClient, IframeModuleApi, IframeModuleComponent, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, ModuleInstanceRightsService, ModuleLoadingService, MsgService, NoModulesComponent, NotfoundComponent, NotificationApi, NotificationService, OIP_EXTENSION_EVENTS, SecurityApi, SecurityComponent, SecurityService, SidebarComponent, StartPageService, TableFilterService, TopBarService, UnauthorizedComponent, UserNotificationsComponent, UserProfileApi, UserProfileComponent, UserService, convertToPrimeNgDateFormat, defaultTheme, emitOipContextChange, emitOipError, emitOipNavigate, emitOipNotify, emitOipSettingsChange, emitOipTitleChange, langIntercept, mergeWithDefaults, moduleAccessGuard, oipAccessRoute, oipApplicationsRoute, oipAuthGuard, oipConfigRoute, oipDbMigrationRoute, oipDiscussionRoute, oipErrorRoute, oipExtensionsRoute, oipIframeModuleRoute, oipModulesRoute, oipNoModulesRoute, oipSessionsRoute, oipStartRedirectGuard, oipStartRoute, provideAppInfo, provideAppThemes, provideLogoComponent, provideOip, provideOipRoutes, provideTranslations, replaceDefaults };
|
|
2313
2318
|
export type { AppConfig, AppInfo, AppInfoValue, AppThemePreset, AppThemePresetLoader, AppThemePresetMergeMode, AuthCsrfToken, LanguageDto, MenuChangeEvent, ModuleAccessRouteData, NoSettingsDto, OipExtensionHostContext, OipExtensionLoadType, OipExtensionManifest, OipExtensionModuleMetadata, OipExtensionNavigateEvent, OipExtensionNotifyEvent, OipRouteFeatures, OipRouteToggle, OipRoutesOptions, PutSecurityDto, RequestParams, SecurityDto, StartRouteData, TopBarDto };
|