@cccsaurora/howler-ui 2.14.0-dev.263 → 2.14.0-dev.265
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/api/action/execute.ts +19 -0
- package/api/action/index.ts +36 -0
- package/api/action/operations.ts +11 -0
- package/api/analytic/comments/index.ts +27 -0
- package/api/analytic/comments/react.ts +14 -0
- package/api/analytic/favourite.ts +14 -0
- package/api/analytic/index.ts +27 -0
- package/api/analytic/notebooks/index.ts +15 -0
- package/api/analytic/owner.ts +11 -0
- package/api/analytic/rules.ts +13 -0
- package/api/auth/apikey.ts +20 -0
- package/api/auth/index.ts +9 -0
- package/api/auth/login.ts +35 -0
- package/api/configs/index.ts +10 -0
- package/api/dossier/hit.ts +10 -0
- package/api/dossier/index.ts +26 -0
- package/api/help.ts +71 -0
- package/api/hit/assign.ts +11 -0
- package/api/hit/comments/index.ts +27 -0
- package/api/hit/comments/react.ts +15 -0
- package/api/hit/index.ts +56 -0
- package/api/hit/labels.ts +16 -0
- package/api/hit/overwrite.ts +11 -0
- package/api/hit/transition.ts +12 -0
- package/api/index.ts +301 -0
- package/api/notebook/environments.ts +14 -0
- package/api/notebook/index.ts +20 -0
- package/api/overview/index.ts +22 -0
- package/api/search/action.ts +12 -0
- package/api/search/analytic.ts +12 -0
- package/api/search/count/hit.ts +11 -0
- package/api/search/count/index.ts +18 -0
- package/api/search/dossier.ts +12 -0
- package/api/search/eql/hit.ts +12 -0
- package/api/search/facet/hit.ts +11 -0
- package/api/search/facet/index.ts +19 -0
- package/api/search/fields/hit.ts +12 -0
- package/api/search/fields/index.ts +29 -0
- package/api/search/fields/user.ts +14 -0
- package/api/search/grouped/hit.ts +15 -0
- package/api/search/grouped/index.ts +34 -0
- package/api/search/grouped/user.ts +30 -0
- package/api/search/histogram/hit.ts +11 -0
- package/api/search/histogram/index.ts +20 -0
- package/api/search/hit.ts +17 -0
- package/api/search/index.ts +63 -0
- package/api/search/overview.ts +12 -0
- package/api/search/sigma/hit.ts +12 -0
- package/api/search/template.ts +12 -0
- package/api/search/user.ts +21 -0
- package/api/search/view.ts +12 -0
- package/api/template/index.ts +22 -0
- package/api/user/avatar/index.ts +10 -0
- package/api/user/groups.ts +12 -0
- package/api/user/index.ts +20 -0
- package/api/user/whoami.ts +11 -0
- package/api/view/favourite.ts +14 -0
- package/api/view/index.ts +25 -0
- package/branding/AppBrand.tsx +161 -0
- package/commons/components/app/AppConfigs.ts +179 -0
- package/commons/components/app/AppConstants.ts +11 -0
- package/commons/components/app/AppContexts.ts +142 -0
- package/commons/components/app/AppDefaults.ts +52 -0
- package/commons/components/app/AppNotificationService.ts +7 -0
- package/commons/components/app/AppProvider.tsx +86 -0
- package/commons/components/app/AppSearchService.ts +33 -0
- package/commons/components/app/AppSkeleton.tsx +321 -0
- package/commons/components/app/AppUserService.ts +21 -0
- package/commons/components/app/hooks/index.ts +18 -0
- package/commons/components/app/hooks/useApp.tsx +6 -0
- package/commons/components/app/hooks/useAppBanner.tsx +7 -0
- package/commons/components/app/hooks/useAppBar.tsx +6 -0
- package/commons/components/app/hooks/useAppBarHeight.tsx +27 -0
- package/commons/components/app/hooks/useAppBarScrollTrigger.tsx +8 -0
- package/commons/components/app/hooks/useAppBreadcrumbs.tsx +6 -0
- package/commons/components/app/hooks/useAppConfigs.tsx +54 -0
- package/commons/components/app/hooks/useAppLanguage.tsx +29 -0
- package/commons/components/app/hooks/useAppLayout.tsx +6 -0
- package/commons/components/app/hooks/useAppLeftNav.tsx +6 -0
- package/commons/components/app/hooks/useAppLogo.tsx +9 -0
- package/commons/components/app/hooks/useAppNotification.tsx +6 -0
- package/commons/components/app/hooks/useAppQuickSearch.tsx +6 -0
- package/commons/components/app/hooks/useAppSearchService.tsx +7 -0
- package/commons/components/app/hooks/useAppSitemap.tsx +84 -0
- package/commons/components/app/hooks/useAppSwitcher.tsx +6 -0
- package/commons/components/app/hooks/useAppTheme.tsx +23 -0
- package/commons/components/app/hooks/useAppUser.tsx +7 -0
- package/commons/components/app/providers/AppBarProvider.tsx +48 -0
- package/commons/components/app/providers/AppBreadcrumbsProvider.tsx +53 -0
- package/commons/components/app/providers/AppLayoutProvider.tsx +114 -0
- package/commons/components/app/providers/AppLeftNavProvider.tsx +30 -0
- package/commons/components/app/providers/AppNotificationProvider.tsx +49 -0
- package/commons/components/app/providers/AppQuickSearchProvider.tsx +32 -0
- package/commons/components/app/providers/AppSearchServiceProvider.tsx +65 -0
- package/commons/components/app/providers/AppSnackbarProvider.tsx +16 -0
- package/commons/components/app/providers/AppSwitcherProvider.tsx +16 -0
- package/commons/components/app/providers/AppUserProvider.tsx +22 -0
- package/commons/components/breadcrumbs/BreadcrumbIcon.tsx +21 -0
- package/commons/components/breadcrumbs/BreadcrumbLastItem.tsx +40 -0
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.tsx +43 -0
- package/commons/components/breadcrumbs/BreadcrumbList.tsx +87 -0
- package/commons/components/breadcrumbs/Breadcrumbs.tsx +40 -0
- package/commons/components/display/AppAvatar.tsx +34 -0
- package/commons/components/display/AppInfoPanel.tsx +30 -0
- package/commons/components/display/AppListEmpty.tsx +5 -0
- package/commons/components/display/AppToc.tsx +160 -0
- package/commons/components/display/hooks/useAppColor.tsx +21 -0
- package/commons/components/leftnav/LeftNavDrawer.tsx +172 -0
- package/commons/components/leftnav/LeftNavGroup.tsx +144 -0
- package/commons/components/leftnav/LeftNavItem.tsx +73 -0
- package/commons/components/notification/FeedModels.ts +163 -0
- package/commons/components/notification/Notification.tsx +152 -0
- package/commons/components/notification/elements/NotificationCloseButton.tsx +14 -0
- package/commons/components/notification/elements/NotificationContainer.tsx +87 -0
- package/commons/components/notification/elements/NotificationEndOfPage.tsx +48 -0
- package/commons/components/notification/elements/NotificationError.tsx +24 -0
- package/commons/components/notification/elements/NotificationHeader.tsx +41 -0
- package/commons/components/notification/elements/NotificationItems.tsx +47 -0
- package/commons/components/notification/elements/NotificationSkeleton.tsx +59 -0
- package/commons/components/notification/elements/NotificationTopNavButton.tsx +27 -0
- package/commons/components/notification/elements/item/NotificationItem.tsx +44 -0
- package/commons/components/notification/elements/item/NotificationItemAuthor.tsx +72 -0
- package/commons/components/notification/elements/item/NotificationItemContent.tsx +29 -0
- package/commons/components/notification/elements/item/NotificationItemDate.tsx +14 -0
- package/commons/components/notification/elements/item/NotificationItemImage.tsx +19 -0
- package/commons/components/notification/elements/item/NotificationItemTag.tsx +18 -0
- package/commons/components/notification/elements/item/NotificationItemTitle.tsx +38 -0
- package/commons/components/notification/index.tsx +2 -0
- package/commons/components/pages/PageCardCentered.tsx +32 -0
- package/commons/components/pages/PageCenter.tsx +46 -0
- package/commons/components/pages/PageContent.tsx +13 -0
- package/commons/components/pages/PageFullScreen.tsx +74 -0
- package/commons/components/pages/PageFullWidth.tsx +30 -0
- package/commons/components/pages/PageHeader.tsx +117 -0
- package/commons/components/pages/hooks/usePageProps.tsx +41 -0
- package/commons/components/search/AppSearch.tsx +256 -0
- package/commons/components/search/AppSearchInput.tsx +104 -0
- package/commons/components/search/AppSearchResult.tsx +66 -0
- package/commons/components/topnav/AppBar.tsx +137 -0
- package/commons/components/topnav/AppName.tsx +53 -0
- package/commons/components/topnav/AppSwitcher.tsx +116 -0
- package/commons/components/topnav/Notifications.tsx +16 -0
- package/commons/components/topnav/ThemeSelection.tsx +143 -0
- package/commons/components/topnav/ThemeSelectionIcon.tsx +39 -0
- package/commons/components/topnav/UserProfile.tsx +196 -0
- package/commons/components/utils/hooks/useClipboard.tsx +31 -0
- package/commons/components/utils/hooks/useEnv.tsx +13 -0
- package/commons/components/utils/hooks/useFullscreenStatus.tsx +47 -0
- package/commons/components/utils/hooks/useGravatar.tsx +13 -0
- package/commons/components/utils/hooks/useLocalStorage.ts +75 -0
- package/commons/components/utils/hooks/useLocalStorageItem.tsx +45 -0
- package/commons/components/utils/hooks/useThemeBuilder.tsx +55 -0
- package/commons/components/utils/keyboard.ts +61 -0
- package/components/app/App.tsx +434 -0
- package/components/app/AppContainer.tsx +19 -0
- package/components/app/drawers/ApiKeyDrawer.tsx +173 -0
- package/components/app/drawers/AppDrawerType.ts +7 -0
- package/components/app/drawers/AssignUserDrawer.tsx +126 -0
- package/components/app/drawers/ViewGroupsDrawer.tsx +24 -0
- package/components/app/hooks/useMatchers.tsx +107 -0
- package/components/app/hooks/useTitle.tsx +77 -0
- package/components/app/providers/AnalyticProvider.tsx +87 -0
- package/components/app/providers/ApiConfigProvider.tsx +31 -0
- package/components/app/providers/AppDrawerProvider.tsx +54 -0
- package/components/app/providers/AvatarProvider.tsx +47 -0
- package/components/app/providers/CustomPluginProvider.tsx +19 -0
- package/components/app/providers/FavouritesProvider.tsx +157 -0
- package/components/app/providers/FieldProvider.tsx +34 -0
- package/components/app/providers/HitProvider.tsx +164 -0
- package/components/app/providers/HitSearchProvider.tsx +248 -0
- package/components/app/providers/LocalStorageProvider.tsx +67 -0
- package/components/app/providers/ModalProvider.tsx +57 -0
- package/components/app/providers/OverviewProvider.tsx +90 -0
- package/components/app/providers/ParameterProvider.tsx +270 -0
- package/components/app/providers/SocketProvider.tsx +329 -0
- package/components/app/providers/UserListProvider.tsx +56 -0
- package/components/app/providers/ViewProvider.tsx +207 -0
- package/components/elements/Comment.tsx +315 -0
- package/components/elements/EditRow.tsx +268 -0
- package/components/elements/PluginChip.tsx +32 -0
- package/components/elements/PluginTypography.tsx +31 -0
- package/components/elements/ThemedEditor.tsx +130 -0
- package/components/elements/UserList.tsx +79 -0
- package/components/elements/addons/buttons/CustomButton.tsx +93 -0
- package/components/elements/addons/buttons/CustomIconButton.tsx +122 -0
- package/components/elements/addons/buttons/index.ts +7 -0
- package/components/elements/addons/layout/FlexOne.tsx +6 -0
- package/components/elements/addons/layout/FlexPort.tsx +39 -0
- package/components/elements/addons/layout/FlexVertical.tsx +28 -0
- package/components/elements/addons/layout/vsbox/VSBox.tsx +52 -0
- package/components/elements/addons/layout/vsbox/VSBoxContent.tsx +13 -0
- package/components/elements/addons/layout/vsbox/VSBoxElement.tsx +60 -0
- package/components/elements/addons/layout/vsbox/VSBoxHeader.tsx +41 -0
- package/components/elements/addons/lists/TuiList.tsx +31 -0
- package/components/elements/addons/lists/TuiListBase.tsx +98 -0
- package/components/elements/addons/lists/TuiListElement.tsx +51 -0
- package/components/elements/addons/lists/TuiListMenu.tsx +61 -0
- package/components/elements/addons/lists/TuiListProvider.tsx +162 -0
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.tsx +60 -0
- package/components/elements/addons/lists/index.tsx +25 -0
- package/components/elements/addons/lists/table/TuiTable.tsx +151 -0
- package/components/elements/addons/lists/table/TuiTableBody.tsx +77 -0
- package/components/elements/addons/lists/table/TuiTableHead.tsx +29 -0
- package/components/elements/addons/lists/table/TuiTableHeader.tsx +15 -0
- package/components/elements/addons/lists/table/TuiTableLayout.ts +53 -0
- package/components/elements/addons/lists/table/index.tsx +24 -0
- package/components/elements/addons/search/SearchPagination.tsx +26 -0
- package/components/elements/addons/search/SearchTotal.tsx +35 -0
- package/components/elements/addons/search/phrase/Phrase.tsx +175 -0
- package/components/elements/addons/search/phrase/PhraseConsumer.ts +35 -0
- package/components/elements/addons/search/phrase/PhraseLexer.ts +167 -0
- package/components/elements/addons/search/phrase/index.ts +86 -0
- package/components/elements/addons/search/phrase/word/WordLexer.ts +10 -0
- package/components/elements/addons/search/phrase/word/WordSuggester.ts +9 -0
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.ts +21 -0
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.ts +21 -0
- package/components/elements/display/ActionButton.tsx +40 -0
- package/components/elements/display/Classification.tsx +29 -0
- package/components/elements/display/DocumentationButton.tsx +46 -0
- package/components/elements/display/DynamicTabs.tsx +52 -0
- package/components/elements/display/HandlebarsMarkdown.tsx +105 -0
- package/components/elements/display/HowlerAvatar.tsx +66 -0
- package/components/elements/display/HowlerAvatarHeader.tsx +37 -0
- package/components/elements/display/HowlerCard.tsx +10 -0
- package/components/elements/display/Image.tsx +43 -0
- package/components/elements/display/ItemManager.tsx +146 -0
- package/components/elements/display/Markdown.tsx +200 -0
- package/components/elements/display/Modal.tsx +44 -0
- package/components/elements/display/Notebook.tsx +7 -0
- package/components/elements/display/QueryResultText.tsx +25 -0
- package/components/elements/display/TextDivider.tsx +48 -0
- package/components/elements/display/TypingIndicator.tsx +41 -0
- package/components/elements/display/UserPageWrapper.tsx +20 -0
- package/components/elements/display/features/DevelopmentBanner.tsx +24 -0
- package/components/elements/display/features/DevelopmentIcon.tsx +24 -0
- package/components/elements/display/handlebars/helpers.tsx +276 -0
- package/components/elements/display/icons/BundleButton.tsx +77 -0
- package/components/elements/display/icons/Iconified.tsx +16 -0
- package/components/elements/display/icons/SocketBadge.tsx +82 -0
- package/components/elements/display/icons/svg/howler-icon-darkmode.svg +1 -0
- package/components/elements/display/icons/svg/howler-icon-lightmode.svg +1 -0
- package/components/elements/display/icons/svg/howler-logo-full.svg +1 -0
- package/components/elements/display/icons/svg/howler-logo.svg +1 -0
- package/components/elements/display/json/JSONViewer.tsx +98 -0
- package/components/elements/display/markdownPlugins/tabs.ts +81 -0
- package/components/elements/display/modals/ConfirmDeleteModal.tsx +32 -0
- package/components/elements/display/modals/ConfirmNotebookModal.tsx +32 -0
- package/components/elements/display/modals/CreateActionModal.tsx +63 -0
- package/components/elements/display/modals/LoginErrorModal.tsx +31 -0
- package/components/elements/display/modals/RationaleModal.tsx +59 -0
- package/components/elements/hit/HitActions.tsx +298 -0
- package/components/elements/hit/HitBanner.tsx +367 -0
- package/components/elements/hit/HitBannerTooltip.tsx +41 -0
- package/components/elements/hit/HitCard.tsx +42 -0
- package/components/elements/hit/HitComments.tsx +372 -0
- package/components/elements/hit/HitDetails.tsx +324 -0
- package/components/elements/hit/HitLabels.tsx +265 -0
- package/components/elements/hit/HitLayout.ts +5 -0
- package/components/elements/hit/HitNotebooks.tsx +264 -0
- package/components/elements/hit/HitOutline.tsx +56 -0
- package/components/elements/hit/HitOverview.tsx +53 -0
- package/components/elements/hit/HitQuickSearch.tsx +111 -0
- package/components/elements/hit/HitRelated.tsx +18 -0
- package/components/elements/hit/HitShortcuts.ts +5 -0
- package/components/elements/hit/HitSummary.tsx +301 -0
- package/components/elements/hit/HitWorklog.tsx +201 -0
- package/components/elements/hit/actions/ButtonActions.tsx +269 -0
- package/components/elements/hit/actions/DropdownActions.tsx +157 -0
- package/components/elements/hit/actions/SharedComponents.tsx +40 -0
- package/components/elements/hit/aggregate/HitGraph.tsx +351 -0
- package/components/elements/hit/elements/Assigned.tsx +71 -0
- package/components/elements/hit/elements/EscalationChip.tsx +26 -0
- package/components/elements/hit/elements/HitTimestamp.tsx +81 -0
- package/components/elements/hit/outlines/DefaultOutline.tsx +107 -0
- package/components/elements/hit/outlines/al/AssemblyLineRules.tsx +130 -0
- package/components/elements/hit/related/PivotLink.tsx +67 -0
- package/components/elements/hit/related/RelatedIcon.tsx +51 -0
- package/components/elements/hit/related/RelatedLink.tsx +43 -0
- package/components/elements/view/ViewTitle.tsx +61 -0
- package/components/hooks/useHitActions.tsx +276 -0
- package/components/hooks/useHitSelection.tsx +102 -0
- package/components/hooks/useMyApi.tsx +64 -0
- package/components/hooks/useMyChart.tsx +164 -0
- package/components/hooks/useMyLocalStorage.ts +20 -0
- package/components/hooks/useMyPreferences.tsx +309 -0
- package/components/hooks/useMySearch.tsx +77 -0
- package/components/hooks/useMySitemap.tsx +248 -0
- package/components/hooks/useMySnackbar.tsx +67 -0
- package/components/hooks/useMyTheme.tsx +34 -0
- package/components/hooks/useMyUser.tsx +39 -0
- package/components/hooks/useMyUserFunctions.tsx +166 -0
- package/components/hooks/useMyUserList.tsx +15 -0
- package/components/hooks/useMyUtils.tsx +16 -0
- package/components/hooks/useScrollRestoration.tsx +37 -0
- package/components/logins/Login.tsx +62 -0
- package/components/logins/auth/OAuthLogin.tsx +49 -0
- package/components/logins/auth/UserPassLogin.tsx +57 -0
- package/components/logins/hooks/useLogin.tsx +101 -0
- package/components/routes/404.tsx +24 -0
- package/components/routes/ErrorBoundary.tsx +44 -0
- package/components/routes/ErrorOccured.tsx +28 -0
- package/components/routes/Logout.tsx +56 -0
- package/components/routes/action/edit/ActionEditor.tsx +358 -0
- package/components/routes/action/shared/ActionReportDisplay.tsx +84 -0
- package/components/routes/action/shared/OperationEntry.tsx +121 -0
- package/components/routes/action/shared/OperationStep.tsx +219 -0
- package/components/routes/action/useMyActionFunctions.tsx +225 -0
- package/components/routes/action/view/ActionDetails.tsx +205 -0
- package/components/routes/action/view/ActionSearch.tsx +249 -0
- package/components/routes/action/view/Integrations.tsx +49 -0
- package/components/routes/admin/users/UserEditor.tsx +55 -0
- package/components/routes/admin/users/UserSearch.tsx +228 -0
- package/components/routes/advanced/QueryBuilder.tsx +584 -0
- package/components/routes/advanced/QueryEditor.tsx +148 -0
- package/components/routes/advanced/RuleModal.tsx +217 -0
- package/components/routes/advanced/eqlCompletionProvider.ts +94 -0
- package/components/routes/advanced/eqlTokenProvider.ts +110 -0
- package/components/routes/advanced/historyCompletionProvider.ts +61 -0
- package/components/routes/advanced/luceneCompletionProvider.ts +111 -0
- package/components/routes/advanced/luceneTokenProvider.ts +131 -0
- package/components/routes/advanced/yamlCompletionProvider.ts +58 -0
- package/components/routes/analytics/AnalyticComments.tsx +218 -0
- package/components/routes/analytics/AnalyticDetails.tsx +343 -0
- package/components/routes/analytics/AnalyticHitComments.tsx +99 -0
- package/components/routes/analytics/AnalyticNotebooks.tsx +185 -0
- package/components/routes/analytics/AnalyticOverview.tsx +165 -0
- package/components/routes/analytics/AnalyticOverviews.tsx +75 -0
- package/components/routes/analytics/AnalyticSearch.tsx +301 -0
- package/components/routes/analytics/AnalyticTemplates.tsx +77 -0
- package/components/routes/analytics/RuleView.tsx +80 -0
- package/components/routes/analytics/TriageSettings.tsx +146 -0
- package/components/routes/analytics/widgets/Assessment.tsx +71 -0
- package/components/routes/analytics/widgets/Created.tsx +61 -0
- package/components/routes/analytics/widgets/Detection.tsx +11 -0
- package/components/routes/analytics/widgets/Escalation.tsx +65 -0
- package/components/routes/analytics/widgets/Stacked.tsx +109 -0
- package/components/routes/analytics/widgets/Status.tsx +21 -0
- package/components/routes/dossiers/DossierCard.tsx +48 -0
- package/components/routes/dossiers/DossierEditor.tsx +247 -0
- package/components/routes/dossiers/Dossiers.tsx +173 -0
- package/components/routes/dossiers/LeadEditor.tsx +122 -0
- package/components/routes/dossiers/LeadForm.tsx +106 -0
- package/components/routes/dossiers/PivotForm.tsx +311 -0
- package/components/routes/help/ActionDocumentation.tsx +77 -0
- package/components/routes/help/ActionIntroductionDocumentation.tsx +128 -0
- package/components/routes/help/ApiDocumentation.tsx +217 -0
- package/components/routes/help/AuthDocumentation.tsx +26 -0
- package/components/routes/help/BundleDocumentation.tsx +17 -0
- package/components/routes/help/ClientDocumentation.tsx +27 -0
- package/components/routes/help/Help.tsx +96 -0
- package/components/routes/help/HitBannerDocumentation.tsx +71 -0
- package/components/routes/help/HitDocumentation.tsx +77 -0
- package/components/routes/help/HitLabelsDocumentation.tsx +57 -0
- package/components/routes/help/HitLinksDocumentation.tsx +23 -0
- package/components/routes/help/HitSchemaDocumentation.tsx +253 -0
- package/components/routes/help/NotebookDocumentation.tsx +28 -0
- package/components/routes/help/OverviewDocumentation.tsx +21 -0
- package/components/routes/help/RetentionDocumentation.tsx +55 -0
- package/components/routes/help/SearchDocumentation.tsx +700 -0
- package/components/routes/help/TemplateDocumentation.tsx +73 -0
- package/components/routes/help/ViewDocumentation.tsx +32 -0
- package/components/routes/help/components/HelpTabs.tsx +47 -0
- package/components/routes/help/markdown/en/actionIntroduction.md +33 -0
- package/components/routes/help/markdown/en/authentication.md +261 -0
- package/components/routes/help/markdown/en/bundles.md +70 -0
- package/components/routes/help/markdown/en/client.md +213 -0
- package/components/routes/help/markdown/en/links.md +37 -0
- package/components/routes/help/markdown/en/notebook.md +157 -0
- package/components/routes/help/markdown/en/retention.md +15 -0
- package/components/routes/help/markdown/en/schema.md +20 -0
- package/components/routes/help/markdown/en/templates.md +23 -0
- package/components/routes/help/markdown/en/views.md +11 -0
- package/components/routes/help/markdown/fr/actionIntroduction.md +33 -0
- package/components/routes/help/markdown/fr/authentication.md +259 -0
- package/components/routes/help/markdown/fr/bundles.md +70 -0
- package/components/routes/help/markdown/fr/client.md +209 -0
- package/components/routes/help/markdown/fr/links.md +37 -0
- package/components/routes/help/markdown/fr/notebook.md +157 -0
- package/components/routes/help/markdown/fr/retention.md +15 -0
- package/components/routes/help/markdown/fr/schema.md +20 -0
- package/components/routes/help/markdown/fr/templates.md +23 -0
- package/components/routes/help/markdown/fr/views.md +11 -0
- package/components/routes/hits/search/BundleParentMenu.tsx +73 -0
- package/components/routes/hits/search/BundleScroller.tsx +8 -0
- package/components/routes/hits/search/CustomSort.tsx +94 -0
- package/components/routes/hits/search/HitBrowser.tsx +318 -0
- package/components/routes/hits/search/HitContextMenu.tsx +260 -0
- package/components/routes/hits/search/HitQuery.tsx +268 -0
- package/components/routes/hits/search/InformationPane.tsx +430 -0
- package/components/routes/hits/search/SearchPane.tsx +291 -0
- package/components/routes/hits/search/ViewLink.tsx +96 -0
- package/components/routes/hits/search/grid/AddColumnModal.tsx +98 -0
- package/components/routes/hits/search/grid/ColumnHeader.tsx +70 -0
- package/components/routes/hits/search/grid/EnhancedCell.tsx +50 -0
- package/components/routes/hits/search/grid/HitGrid.tsx +342 -0
- package/components/routes/hits/search/grid/HitRow.tsx +121 -0
- package/components/routes/hits/search/shared/CustomSpan.tsx +54 -0
- package/components/routes/hits/search/shared/HitFilter.tsx +110 -0
- package/components/routes/hits/search/shared/HitSort.tsx +111 -0
- package/components/routes/hits/search/shared/QuerySettings.tsx +40 -0
- package/components/routes/hits/search/shared/SearchSpan.tsx +68 -0
- package/components/routes/hits/view/HitViewer.tsx +372 -0
- package/components/routes/hits/view/LeadRenderer.tsx +42 -0
- package/components/routes/home/AddNewCard.tsx +295 -0
- package/components/routes/home/AnalyticCard.tsx +68 -0
- package/components/routes/home/EntryWrapper.tsx +54 -0
- package/components/routes/home/ViewCard.tsx +96 -0
- package/components/routes/home/index.tsx +278 -0
- package/components/routes/overviews/OverviewCard.tsx +51 -0
- package/components/routes/overviews/OverviewEditor.tsx +102 -0
- package/components/routes/overviews/OverviewViewer.tsx +387 -0
- package/components/routes/overviews/Overviews.tsx +179 -0
- package/components/routes/overviews/markdownExtendedTokenProvider.ts +296 -0
- package/components/routes/overviews/startingTemplate.ts +40 -0
- package/components/routes/overviews/template/en.md +167 -0
- package/components/routes/overviews/template/fr.md +167 -0
- package/components/routes/settings/AdminSection.tsx +18 -0
- package/components/routes/settings/LocalSection.tsx +168 -0
- package/components/routes/settings/ProfileSection.tsx +138 -0
- package/components/routes/settings/SecuritySection.tsx +95 -0
- package/components/routes/settings/Settings.tsx +51 -0
- package/components/routes/settings/SettingsSection.tsx +28 -0
- package/components/routes/templates/TemplateCard.tsx +38 -0
- package/components/routes/templates/TemplateDnD.tsx +51 -0
- package/components/routes/templates/TemplateEditor.tsx +121 -0
- package/components/routes/templates/TemplateViewer.tsx +285 -0
- package/components/routes/templates/Templates.tsx +187 -0
- package/components/routes/views/ViewComposer.tsx +317 -0
- package/components/routes/views/Views.tsx +379 -0
- package/i18n.ts +50 -0
- package/index.tsx +19 -0
- package/locales/en/help/main.json +13 -0
- package/locales/en/help/search.json +186 -0
- package/locales/en/translation.json +799 -0
- package/locales/fr/help/main.json +13 -0
- package/locales/fr/help/search.json +186 -0
- package/locales/fr/translation.json +797 -0
- package/models/ActionTypes.d.ts +2 -1
- package/models/WithMetadata.d.ts +5 -4
- package/models/entities/HowlerUser.d.ts +2 -1
- package/models/entities/generated/Action.d.ts +2 -1
- package/models/entities/generated/Analytic.d.ts +4 -3
- package/models/entities/generated/Assemblyline.d.ts +9 -8
- package/models/entities/generated/Attachment.d.ts +2 -1
- package/models/entities/generated/Aws.d.ts +3 -2
- package/models/entities/generated/Cbs.d.ts +2 -1
- package/models/entities/generated/Cloud.d.ts +6 -5
- package/models/entities/generated/Container.d.ts +2 -1
- package/models/entities/generated/Destination.d.ts +6 -5
- package/models/entities/generated/Dns.d.ts +3 -2
- package/models/entities/generated/Dossier.d.ts +3 -2
- package/models/entities/generated/Elf.d.ts +4 -3
- package/models/entities/generated/Email.d.ts +9 -8
- package/models/entities/generated/Enrichment.d.ts +3 -2
- package/models/entities/generated/Faas.d.ts +2 -1
- package/models/entities/generated/File.d.ts +2 -1
- package/models/entities/generated/Geo.d.ts +2 -1
- package/models/entities/generated/Hit.d.ts +37 -36
- package/models/entities/generated/HitFile.d.ts +5 -4
- package/models/entities/generated/Howler.d.ts +9 -8
- package/models/entities/generated/HowlerDossier.d.ts +2 -1
- package/models/entities/generated/Http.d.ts +3 -2
- package/models/entities/generated/Image.d.ts +2 -1
- package/models/entities/generated/Indicator.d.ts +3 -2
- package/models/entities/generated/IndicatorFile.d.ts +5 -4
- package/models/entities/generated/Ingress.d.ts +2 -1
- package/models/entities/generated/Lead.d.ts +2 -1
- package/models/entities/generated/Mitre.d.ts +3 -2
- package/models/entities/generated/Observer.d.ts +4 -3
- package/models/entities/generated/Original.d.ts +4 -3
- package/models/entities/generated/Parent.d.ts +5 -4
- package/models/entities/generated/ParentParent.d.ts +6 -5
- package/models/entities/generated/Pivot.d.ts +3 -2
- package/models/entities/generated/Process.d.ts +7 -6
- package/models/entities/generated/ProcessParent.d.ts +7 -6
- package/models/entities/generated/Registry.d.ts +2 -1
- package/models/entities/generated/Request.d.ts +2 -1
- package/models/entities/generated/Response.d.ts +2 -1
- package/models/entities/generated/Sharepoint.d.ts +3 -2
- package/models/entities/generated/Source.d.ts +6 -5
- package/models/entities/generated/SourceOriginal.d.ts +4 -3
- package/models/entities/generated/Threat.d.ts +8 -7
- package/models/entities/generated/ThreatIndicator.d.ts +3 -2
- package/models/entities/generated/Tls.d.ts +3 -2
- package/models/entities/generated/User.d.ts +2 -1
- package/models/entities/generated/UserAgent.d.ts +3 -2
- package/models/entities/generated/UserUser.d.ts +2 -1
- package/models/entities/generated/View.d.ts +2 -1
- package/models/socket/HitUpdate.d.ts +2 -1
- package/package.json +576 -154
- package/plugins/HowlerPlugin.ts +375 -0
- package/plugins/store.ts +152 -0
- package/rest/AxiosClient.ts +81 -0
- package/rest/FetchClient.ts +27 -0
- package/rest/index.ts +12 -0
- package/setupTests.ts +17 -0
- package/utils/Throttler.ts +43 -0
- package/utils/actionUtils.ts +112 -0
- package/utils/constants.tsx +131 -0
- package/utils/hit.json +30356 -0
- package/utils/hitFunctions.ts +10 -0
- package/utils/localStorage.ts +54 -0
- package/utils/menuUtils.ts +274 -0
- package/utils/sessionStorage.ts +59 -0
- package/utils/socketUtils.ts +11 -0
- package/utils/stringUtils.ts +57 -0
- package/utils/utils.ts +222 -0
- package/utils/xsrf.ts +17 -0
- package/Notification-BHyOHttL.js +0 -324
- package/TuiList-D7-CH2oS.js +0 -48
- package/api/action/execute.d.ts +0 -3
- package/api/action/execute.js +0 -5
- package/api/action/index.d.ts +0 -10
- package/api/action/index.js +0 -11
- package/api/action/operations.d.ts +0 -3
- package/api/action/operations.js +0 -5
- package/api/analytic/comments/index.d.ts +0 -13
- package/api/analytic/comments/index.js +0 -9
- package/api/analytic/comments/react.d.ts +0 -3
- package/api/analytic/comments/react.js +0 -6
- package/api/analytic/favourite.d.ts +0 -7
- package/api/analytic/favourite.js +0 -6
- package/api/analytic/index.d.ts +0 -12
- package/api/analytic/index.js +0 -12
- package/api/analytic/notebooks/index.d.ts +0 -10
- package/api/analytic/notebooks/index.js +0 -6
- package/api/analytic/owner.d.ts +0 -5
- package/api/analytic/owner.js +0 -5
- package/api/analytic/rules.d.ts +0 -3
- package/api/analytic/rules.js +0 -5
- package/api/auth/apikey.d.ts +0 -8
- package/api/auth/apikey.js +0 -6
- package/api/auth/index.d.ts +0 -4
- package/api/auth/index.js +0 -6
- package/api/auth/login.d.ts +0 -14
- package/api/auth/login.js +0 -7
- package/api/configs/index.d.ts +0 -3
- package/api/configs/index.js +0 -5
- package/api/dossier/hit.d.ts +0 -2
- package/api/dossier/hit.js +0 -4
- package/api/dossier/index.d.ts +0 -8
- package/api/dossier/index.js +0 -9
- package/api/help.d.ts +0 -55
- package/api/help.js +0 -5
- package/api/hit/assign.d.ts +0 -3
- package/api/hit/assign.js +0 -5
- package/api/hit/comments/index.d.ts +0 -13
- package/api/hit/comments/index.js +0 -9
- package/api/hit/comments/react.d.ts +0 -3
- package/api/hit/comments/react.js +0 -6
- package/api/hit/index.d.ts +0 -35
- package/api/hit/index.js +0 -12
- package/api/hit/labels.d.ts +0 -5
- package/api/hit/labels.js +0 -6
- package/api/hit/overwrite.d.ts +0 -3
- package/api/hit/overwrite.js +0 -5
- package/api/hit/transition.d.ts +0 -4
- package/api/hit/transition.js +0 -5
- package/api/index.d.ts +0 -142
- package/api/index.js +0 -21
- package/api/notebook/environments.d.ts +0 -10
- package/api/notebook/environments.js +0 -5
- package/api/notebook/index.d.ts +0 -14
- package/api/notebook/index.js +0 -6
- package/api/overview/index.d.ts +0 -6
- package/api/overview/index.js +0 -8
- package/api/search/action.d.ts +0 -4
- package/api/search/action.js +0 -5
- package/api/search/analytic.d.ts +0 -4
- package/api/search/analytic.js +0 -5
- package/api/search/count/hit.d.ts +0 -3
- package/api/search/count/hit.js +0 -5
- package/api/search/count/index.d.ts +0 -10
- package/api/search/count/index.js +0 -5
- package/api/search/dossier.d.ts +0 -4
- package/api/search/dossier.js +0 -5
- package/api/search/eql/hit.d.ts +0 -4
- package/api/search/eql/hit.js +0 -5
- package/api/search/facet/hit.d.ts +0 -5
- package/api/search/facet/hit.js +0 -5
- package/api/search/facet/index.d.ts +0 -13
- package/api/search/facet/index.js +0 -5
- package/api/search/fields/hit.d.ts +0 -3
- package/api/search/fields/hit.js +0 -5
- package/api/search/fields/index.d.ts +0 -19
- package/api/search/fields/index.js +0 -8
- package/api/search/fields/user.d.ts +0 -3
- package/api/search/fields/user.js +0 -5
- package/api/search/grouped/hit.d.ts +0 -4
- package/api/search/grouped/hit.js +0 -5
- package/api/search/grouped/index.d.ts +0 -25
- package/api/search/grouped/index.js +0 -6
- package/api/search/grouped/user.d.ts +0 -7
- package/api/search/grouped/user.js +0 -5
- package/api/search/histogram/hit.d.ts +0 -3
- package/api/search/histogram/hit.js +0 -5
- package/api/search/histogram/index.d.ts +0 -14
- package/api/search/histogram/index.js +0 -5
- package/api/search/hit.d.ts +0 -7
- package/api/search/hit.js +0 -7
- package/api/search/index.d.ts +0 -53
- package/api/search/index.js +0 -17
- package/api/search/overview.d.ts +0 -4
- package/api/search/overview.js +0 -5
- package/api/search/sigma/hit.d.ts +0 -4
- package/api/search/sigma/hit.js +0 -5
- package/api/search/template.d.ts +0 -4
- package/api/search/template.js +0 -5
- package/api/search/user.d.ts +0 -7
- package/api/search/user.js +0 -5
- package/api/search/view.d.ts +0 -4
- package/api/search/view.js +0 -5
- package/api/template/index.d.ts +0 -6
- package/api/template/index.js +0 -8
- package/api/user/avatar/index.d.ts +0 -2
- package/api/user/avatar/index.js +0 -5
- package/api/user/groups.d.ts +0 -6
- package/api/user/groups.js +0 -5
- package/api/user/index.d.ts +0 -10
- package/api/user/index.js +0 -9
- package/api/user/whoami.d.ts +0 -3
- package/api/user/whoami.js +0 -5
- package/api/view/favourite.d.ts +0 -7
- package/api/view/favourite.js +0 -6
- package/api/view/index.d.ts +0 -8
- package/api/view/index.js +0 -9
- package/assets/howler-ui.css +0 -21
- package/branding/AppBrand.d.ts +0 -85
- package/branding/AppBrand.js +0 -135
- package/branding/howler/favicon.svg +0 -38
- package/branding/howler/name-dark.svg +0 -21
- package/branding/howler/name-light.svg +0 -21
- package/branding/howler/noswoosh-dark.svg +0 -24
- package/branding/howler/noswoosh-light.svg +0 -28
- package/branding/howler/swoosh-dark.svg +0 -41
- package/branding/howler/swoosh-light.svg +0 -45
- package/commons/components/app/AppConfigs.d.ts +0 -137
- package/commons/components/app/AppConfigs.js +0 -1
- package/commons/components/app/AppConstants.d.ts +0 -10
- package/commons/components/app/AppConstants.js +0 -14
- package/commons/components/app/AppContexts.d.ts +0 -105
- package/commons/components/app/AppContexts.js +0 -23
- package/commons/components/app/AppDefaults.d.ts +0 -6
- package/commons/components/app/AppDefaults.js +0 -42
- package/commons/components/app/AppNotificationService.d.ts +0 -6
- package/commons/components/app/AppNotificationService.js +0 -1
- package/commons/components/app/AppProvider.d.ts +0 -15
- package/commons/components/app/AppProvider.js +0 -44
- package/commons/components/app/AppSearchService.d.ts +0 -21
- package/commons/components/app/AppSearchService.js +0 -1
- package/commons/components/app/AppSkeleton.d.ts +0 -5
- package/commons/components/app/AppSkeleton.js +0 -259
- package/commons/components/app/AppUserService.d.ts +0 -17
- package/commons/components/app/AppUserService.js +0 -1
- package/commons/components/app/hooks/index.d.ts +0 -18
- package/commons/components/app/hooks/index.js +0 -40
- package/commons/components/app/hooks/useApp.d.ts +0 -1
- package/commons/components/app/hooks/useApp.js +0 -8
- package/commons/components/app/hooks/useAppBanner.d.ts +0 -1
- package/commons/components/app/hooks/useAppBanner.js +0 -14
- package/commons/components/app/hooks/useAppBar.d.ts +0 -1
- package/commons/components/app/hooks/useAppBar.js +0 -8
- package/commons/components/app/hooks/useAppBarHeight.d.ts +0 -2
- package/commons/components/app/hooks/useAppBarHeight.js +0 -26
- package/commons/components/app/hooks/useAppBarScrollTrigger.d.ts +0 -1
- package/commons/components/app/hooks/useAppBarScrollTrigger.js +0 -10
- package/commons/components/app/hooks/useAppBreadcrumbs.d.ts +0 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.js +0 -8
- package/commons/components/app/hooks/useAppConfigs.d.ts +0 -59
- package/commons/components/app/hooks/useAppConfigs.js +0 -39
- package/commons/components/app/hooks/useAppLanguage.d.ts +0 -6
- package/commons/components/app/hooks/useAppLanguage.js +0 -23
- package/commons/components/app/hooks/useAppLayout.d.ts +0 -1
- package/commons/components/app/hooks/useAppLayout.js +0 -8
- package/commons/components/app/hooks/useAppLeftNav.d.ts +0 -1
- package/commons/components/app/hooks/useAppLeftNav.js +0 -8
- package/commons/components/app/hooks/useAppLogo.d.ts +0 -1
- package/commons/components/app/hooks/useAppLogo.js +0 -11
- package/commons/components/app/hooks/useAppNotification.d.ts +0 -1
- package/commons/components/app/hooks/useAppNotification.js +0 -8
- package/commons/components/app/hooks/useAppQuickSearch.d.ts +0 -1
- package/commons/components/app/hooks/useAppQuickSearch.js +0 -8
- package/commons/components/app/hooks/useAppSearchService.d.ts +0 -2
- package/commons/components/app/hooks/useAppSearchService.js +0 -8
- package/commons/components/app/hooks/useAppSitemap.d.ts +0 -13
- package/commons/components/app/hooks/useAppSitemap.js +0 -60
- package/commons/components/app/hooks/useAppSwitcher.d.ts +0 -1
- package/commons/components/app/hooks/useAppSwitcher.js +0 -8
- package/commons/components/app/hooks/useAppTheme.d.ts +0 -8
- package/commons/components/app/hooks/useAppTheme.js +0 -20
- package/commons/components/app/hooks/useAppUser.d.ts +0 -2
- package/commons/components/app/hooks/useAppUser.js +0 -8
- package/commons/components/app/providers/AppBarProvider.d.ts +0 -10
- package/commons/components/app/providers/AppBarProvider.js +0 -35
- package/commons/components/app/providers/AppBreadcrumbsProvider.d.ts +0 -6
- package/commons/components/app/providers/AppBreadcrumbsProvider.js +0 -41
- package/commons/components/app/providers/AppLayoutProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLayoutProvider.js +0 -95
- package/commons/components/app/providers/AppLeftNavProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLeftNavProvider.js +0 -29
- package/commons/components/app/providers/AppNotificationProvider.d.ts +0 -6
- package/commons/components/app/providers/AppNotificationProvider.js +0 -33
- package/commons/components/app/providers/AppQuickSearchProvider.d.ts +0 -8
- package/commons/components/app/providers/AppQuickSearchProvider.js +0 -26
- package/commons/components/app/providers/AppSearchServiceProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSearchServiceProvider.js +0 -49
- package/commons/components/app/providers/AppSnackbarProvider.d.ts +0 -3
- package/commons/components/app/providers/AppSnackbarProvider.js +0 -14
- package/commons/components/app/providers/AppSwitcherProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSwitcherProvider.js +0 -15
- package/commons/components/app/providers/AppUserProvider.d.ts +0 -8
- package/commons/components/app/providers/AppUserProvider.js +0 -18
- package/commons/components/breadcrumbs/BreadcrumbIcon.d.ts +0 -6
- package/commons/components/breadcrumbs/BreadcrumbIcon.js +0 -16
- package/commons/components/breadcrumbs/BreadcrumbLastItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLastItem.js +0 -40
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.js +0 -44
- package/commons/components/breadcrumbs/BreadcrumbList.d.ts +0 -11
- package/commons/components/breadcrumbs/BreadcrumbList.js +0 -74
- package/commons/components/breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/commons/components/breadcrumbs/Breadcrumbs.js +0 -45
- package/commons/components/display/AppAvatar.d.ts +0 -8
- package/commons/components/display/AppAvatar.js +0 -28
- package/commons/components/display/AppInfoPanel.d.ts +0 -5
- package/commons/components/display/AppInfoPanel.js +0 -33
- package/commons/components/display/AppListEmpty.d.ts +0 -2
- package/commons/components/display/AppListEmpty.js +0 -8
- package/commons/components/display/AppToc.d.ts +0 -19
- package/commons/components/display/AppToc.js +0 -116
- package/commons/components/display/hooks/useAppColor.d.ts +0 -5
- package/commons/components/display/hooks/useAppColor.js +0 -15
- package/commons/components/leftnav/LeftNavDrawer.d.ts +0 -2
- package/commons/components/leftnav/LeftNavDrawer.js +0 -141
- package/commons/components/leftnav/LeftNavGroup.d.ts +0 -7
- package/commons/components/leftnav/LeftNavGroup.js +0 -125
- package/commons/components/leftnav/LeftNavItem.d.ts +0 -10
- package/commons/components/leftnav/LeftNavItem.js +0 -50
- package/commons/components/notification/FeedModels.d.ts +0 -64
- package/commons/components/notification/FeedModels.js +0 -91
- package/commons/components/notification/Notification.d.ts +0 -10
- package/commons/components/notification/Notification.js +0 -8
- package/commons/components/notification/elements/NotificationCloseButton.d.ts +0 -3
- package/commons/components/notification/elements/NotificationCloseButton.js +0 -8
- package/commons/components/notification/elements/NotificationContainer.d.ts +0 -16
- package/commons/components/notification/elements/NotificationContainer.js +0 -10
- package/commons/components/notification/elements/NotificationEndOfPage.d.ts +0 -5
- package/commons/components/notification/elements/NotificationEndOfPage.js +0 -41
- package/commons/components/notification/elements/NotificationError.d.ts +0 -2
- package/commons/components/notification/elements/NotificationError.js +0 -27
- package/commons/components/notification/elements/NotificationHeader.d.ts +0 -8
- package/commons/components/notification/elements/NotificationHeader.js +0 -41
- package/commons/components/notification/elements/NotificationItems.d.ts +0 -12
- package/commons/components/notification/elements/NotificationItems.js +0 -10
- package/commons/components/notification/elements/NotificationSkeleton.d.ts +0 -2
- package/commons/components/notification/elements/NotificationSkeleton.js +0 -54
- package/commons/components/notification/elements/NotificationTopNavButton.d.ts +0 -9
- package/commons/components/notification/elements/NotificationTopNavButton.js +0 -14
- package/commons/components/notification/elements/item/NotificationItem.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItem.js +0 -10
- package/commons/components/notification/elements/item/NotificationItemAuthor.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItemAuthor.js +0 -63
- package/commons/components/notification/elements/item/NotificationItemContent.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemContent.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemDate.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemDate.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemImage.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemImage.js +0 -20
- package/commons/components/notification/elements/item/NotificationItemTag.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemTag.js +0 -16
- package/commons/components/notification/elements/item/NotificationItemTitle.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemTitle.js +0 -8
- package/commons/components/notification/index.d.ts +0 -2
- package/commons/components/notification/index.js +0 -13
- package/commons/components/pages/PageCardCentered.d.ts +0 -5
- package/commons/components/pages/PageCardCentered.js +0 -35
- package/commons/components/pages/PageCenter.d.ts +0 -8
- package/commons/components/pages/PageCenter.js +0 -39
- package/commons/components/pages/PageContent.d.ts +0 -7
- package/commons/components/pages/PageContent.js +0 -11
- package/commons/components/pages/PageFullScreen.d.ts +0 -10
- package/commons/components/pages/PageFullScreen.js +0 -57
- package/commons/components/pages/PageFullWidth.d.ts +0 -11
- package/commons/components/pages/PageFullWidth.js +0 -18
- package/commons/components/pages/PageHeader.d.ts +0 -23
- package/commons/components/pages/PageHeader.js +0 -83
- package/commons/components/pages/hooks/usePageProps.d.ts +0 -24
- package/commons/components/pages/hooks/usePageProps.js +0 -28
- package/commons/components/search/AppSearch.d.ts +0 -1
- package/commons/components/search/AppSearch.js +0 -211
- package/commons/components/search/AppSearchInput.d.ts +0 -11
- package/commons/components/search/AppSearchInput.js +0 -68
- package/commons/components/search/AppSearchResult.d.ts +0 -4
- package/commons/components/search/AppSearchResult.js +0 -43
- package/commons/components/topnav/AppBar.d.ts +0 -5
- package/commons/components/topnav/AppBar.js +0 -119
- package/commons/components/topnav/AppName.d.ts +0 -4
- package/commons/components/topnav/AppName.js +0 -52
- package/commons/components/topnav/AppSwitcher.d.ts +0 -2
- package/commons/components/topnav/AppSwitcher.js +0 -76
- package/commons/components/topnav/Notifications.d.ts +0 -2
- package/commons/components/topnav/Notifications.js +0 -19
- package/commons/components/topnav/ThemeSelection.d.ts +0 -2
- package/commons/components/topnav/ThemeSelection.js +0 -89
- package/commons/components/topnav/ThemeSelectionIcon.d.ts +0 -2
- package/commons/components/topnav/ThemeSelectionIcon.js +0 -31
- package/commons/components/topnav/UserProfile.d.ts +0 -5
- package/commons/components/topnav/UserProfile.js +0 -144
- package/commons/components/utils/hooks/useClipboard.d.ts +0 -3
- package/commons/components/utils/hooks/useClipboard.js +0 -31
- package/commons/components/utils/hooks/useEnv.d.ts +0 -1
- package/commons/components/utils/hooks/useEnv.js +0 -14
- package/commons/components/utils/hooks/useFullscreenStatus.d.ts +0 -2
- package/commons/components/utils/hooks/useFullscreenStatus.js +0 -37
- package/commons/components/utils/hooks/useGravatar.d.ts +0 -2
- package/commons/components/utils/hooks/useGravatar.js +0 -11
- package/commons/components/utils/hooks/useLocalStorage.d.ts +0 -12
- package/commons/components/utils/hooks/useLocalStorage.js +0 -50
- package/commons/components/utils/hooks/useLocalStorageItem.d.ts +0 -14
- package/commons/components/utils/hooks/useLocalStorageItem.js +0 -31
- package/commons/components/utils/hooks/useThemeBuilder.d.ts +0 -7
- package/commons/components/utils/hooks/useThemeBuilder.js +0 -61
- package/commons/components/utils/keyboard.d.ts +0 -30
- package/commons/components/utils/keyboard.js +0 -70
- package/components/app/App.d.ts +0 -3
- package/components/app/App.js +0 -342
- package/components/app/AppContainer.d.ts +0 -3
- package/components/app/AppContainer.js +0 -12
- package/components/app/drawers/ApiKeyDrawer.d.ts +0 -6
- package/components/app/drawers/ApiKeyDrawer.js +0 -143
- package/components/app/drawers/AppDrawerType.d.ts +0 -6
- package/components/app/drawers/AppDrawerType.js +0 -1
- package/components/app/drawers/AssignUserDrawer.d.ts +0 -9
- package/components/app/drawers/AssignUserDrawer.js +0 -104
- package/components/app/drawers/ViewGroupsDrawer.d.ts +0 -7
- package/components/app/drawers/ViewGroupsDrawer.js +0 -11
- package/components/app/hooks/useMatchers.d.ts +0 -9
- package/components/app/hooks/useMatchers.js +0 -84
- package/components/app/hooks/useTitle.d.ts +0 -2
- package/components/app/hooks/useTitle.js +0 -64
- package/components/app/providers/AnalyticProvider.d.ts +0 -10
- package/components/app/providers/AnalyticProvider.js +0 -63
- package/components/app/providers/ApiConfigProvider.d.ts +0 -9
- package/components/app/providers/ApiConfigProvider.js +0 -24
- package/components/app/providers/AppDrawerProvider.d.ts +0 -10
- package/components/app/providers/AppDrawerProvider.js +0 -38
- package/components/app/providers/AvatarProvider.d.ts +0 -7
- package/components/app/providers/AvatarProvider.js +0 -32
- package/components/app/providers/CustomPluginProvider.d.ts +0 -3
- package/components/app/providers/CustomPluginProvider.js +0 -16
- package/components/app/providers/FavouritesProvider.d.ts +0 -4
- package/components/app/providers/FavouritesProvider.js +0 -136
- package/components/app/providers/FieldProvider.d.ts +0 -9
- package/components/app/providers/FieldProvider.js +0 -22
- package/components/app/providers/HitProvider.d.ts +0 -22
- package/components/app/providers/HitProvider.js +0 -103
- package/components/app/providers/HitSearchProvider.d.ts +0 -27
- package/components/app/providers/HitSearchProvider.js +0 -188
- package/components/app/providers/LocalStorageProvider.d.ts +0 -13
- package/components/app/providers/LocalStorageProvider.js +0 -49
- package/components/app/providers/ModalProvider.d.ts +0 -16
- package/components/app/providers/ModalProvider.js +0 -34
- package/components/app/providers/OverviewProvider.d.ts +0 -13
- package/components/app/providers/OverviewProvider.js +0 -68
- package/components/app/providers/ParameterProvider.d.ts +0 -26
- package/components/app/providers/ParameterProvider.js +0 -166
- package/components/app/providers/SocketProvider.d.ts +0 -57
- package/components/app/providers/SocketProvider.js +0 -175
- package/components/app/providers/UserListProvider.d.ts +0 -12
- package/components/app/providers/UserListProvider.js +0 -40
- package/components/app/providers/ViewProvider.d.ts +0 -23
- package/components/app/providers/ViewProvider.js +0 -163
- package/components/elements/Comment.d.ts +0 -17
- package/components/elements/Comment.js +0 -258
- package/components/elements/EditRow.d.ts +0 -14
- package/components/elements/EditRow.js +0 -208
- package/components/elements/PluginChip.d.ts +0 -9
- package/components/elements/PluginChip.js +0 -24
- package/components/elements/PluginTypography.d.ts +0 -9
- package/components/elements/PluginTypography.js +0 -24
- package/components/elements/ThemedEditor.d.ts +0 -3
- package/components/elements/ThemedEditor.js +0 -119
- package/components/elements/UserList.d.ts +0 -9
- package/components/elements/UserList.js +0 -67
- package/components/elements/addons/buttons/CustomButton.d.ts +0 -12
- package/components/elements/addons/buttons/CustomButton.js +0 -59
- package/components/elements/addons/buttons/CustomIconButton.d.ts +0 -15
- package/components/elements/addons/buttons/CustomIconButton.js +0 -81
- package/components/elements/addons/buttons/index.d.ts +0 -3
- package/components/elements/addons/buttons/index.js +0 -8
- package/components/elements/addons/layout/FlexOne.d.ts +0 -4
- package/components/elements/addons/layout/FlexOne.js +0 -9
- package/components/elements/addons/layout/FlexPort.d.ts +0 -12
- package/components/elements/addons/layout/FlexPort.js +0 -32
- package/components/elements/addons/layout/FlexVertical.d.ts +0 -8
- package/components/elements/addons/layout/FlexVertical.js +0 -23
- package/components/elements/addons/layout/vsbox/VSBox.d.ts +0 -16
- package/components/elements/addons/layout/vsbox/VSBox.js +0 -31
- package/components/elements/addons/layout/vsbox/VSBoxContent.d.ts +0 -4
- package/components/elements/addons/layout/vsbox/VSBoxContent.js +0 -8
- package/components/elements/addons/layout/vsbox/VSBoxElement.d.ts +0 -8
- package/components/elements/addons/layout/vsbox/VSBoxElement.js +0 -33
- package/components/elements/addons/layout/vsbox/VSBoxHeader.d.ts +0 -5
- package/components/elements/addons/layout/vsbox/VSBoxHeader.js +0 -36
- package/components/elements/addons/lists/TuiList.d.ts +0 -8
- package/components/elements/addons/lists/TuiList.js +0 -8
- package/components/elements/addons/lists/TuiListBase.d.ts +0 -10
- package/components/elements/addons/lists/TuiListBase.js +0 -82
- package/components/elements/addons/lists/TuiListElement.d.ts +0 -9
- package/components/elements/addons/lists/TuiListElement.js +0 -8
- package/components/elements/addons/lists/TuiListMenu.d.ts +0 -49
- package/components/elements/addons/lists/TuiListMenu.js +0 -45
- package/components/elements/addons/lists/TuiListProvider.d.ts +0 -22
- package/components/elements/addons/lists/TuiListProvider.js +0 -125
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.d.ts +0 -5
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.js +0 -43
- package/components/elements/addons/lists/index.d.ts +0 -19
- package/components/elements/addons/lists/index.js +0 -7
- package/components/elements/addons/lists/table/TuiTable.d.ts +0 -14
- package/components/elements/addons/lists/table/TuiTable.js +0 -114
- package/components/elements/addons/lists/table/TuiTableBody.d.ts +0 -14
- package/components/elements/addons/lists/table/TuiTableBody.js +0 -47
- package/components/elements/addons/lists/table/TuiTableHead.d.ts +0 -8
- package/components/elements/addons/lists/table/TuiTableHead.js +0 -21
- package/components/elements/addons/lists/table/TuiTableHeader.d.ts +0 -6
- package/components/elements/addons/lists/table/TuiTableHeader.js +0 -11
- package/components/elements/addons/lists/table/TuiTableLayout.d.ts +0 -12
- package/components/elements/addons/lists/table/TuiTableLayout.js +0 -47
- package/components/elements/addons/lists/table/index.d.ts +0 -15
- package/components/elements/addons/lists/table/index.js +0 -4
- package/components/elements/addons/search/SearchPagination.d.ts +0 -9
- package/components/elements/addons/search/SearchPagination.js +0 -17
- package/components/elements/addons/search/SearchTotal.d.ts +0 -8
- package/components/elements/addons/search/SearchTotal.js +0 -27
- package/components/elements/addons/search/phrase/Phrase.d.ts +0 -19
- package/components/elements/addons/search/phrase/Phrase.js +0 -137
- package/components/elements/addons/search/phrase/PhraseConsumer.d.ts +0 -13
- package/components/elements/addons/search/phrase/PhraseConsumer.js +0 -30
- package/components/elements/addons/search/phrase/PhraseLexer.d.ts +0 -26
- package/components/elements/addons/search/phrase/PhraseLexer.js +0 -121
- package/components/elements/addons/search/phrase/index.d.ts +0 -40
- package/components/elements/addons/search/phrase/index.js +0 -49
- package/components/elements/addons/search/phrase/word/WordLexer.d.ts +0 -5
- package/components/elements/addons/search/phrase/word/WordLexer.js +0 -11
- package/components/elements/addons/search/phrase/word/WordSuggester.d.ts +0 -6
- package/components/elements/addons/search/phrase/word/WordSuggester.js +0 -11
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.d.ts +0 -7
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.js +0 -20
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.d.ts +0 -7
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.js +0 -20
- package/components/elements/display/ActionButton.d.ts +0 -8
- package/components/elements/display/ActionButton.js +0 -36
- package/components/elements/display/Classification.d.ts +0 -3
- package/components/elements/display/Classification.js +0 -31
- package/components/elements/display/DocumentationButton.d.ts +0 -3
- package/components/elements/display/DocumentationButton.js +0 -36
- package/components/elements/display/DynamicTabs.d.ts +0 -8
- package/components/elements/display/DynamicTabs.js +0 -26
- package/components/elements/display/HandlebarsMarkdown.d.ts +0 -9
- package/components/elements/display/HandlebarsMarkdown.js +0 -77
- package/components/elements/display/HowlerAvatar.d.ts +0 -6
- package/components/elements/display/HowlerAvatar.js +0 -53
- package/components/elements/display/HowlerAvatarHeader.d.ts +0 -6
- package/components/elements/display/HowlerAvatarHeader.js +0 -30
- package/components/elements/display/HowlerCard.d.ts +0 -3
- package/components/elements/display/HowlerCard.js +0 -8
- package/components/elements/display/Image.d.ts +0 -3
- package/components/elements/display/Image.js +0 -45
- package/components/elements/display/ItemManager.d.ts +0 -25
- package/components/elements/display/ItemManager.js +0 -119
- package/components/elements/display/Markdown.d.ts +0 -10
- package/components/elements/display/Markdown.js +0 -156
- package/components/elements/display/Modal.d.ts +0 -3
- package/components/elements/display/Modal.js +0 -39
- package/components/elements/display/Notebook.d.ts +0 -4
- package/components/elements/display/Notebook.js +0 -9
- package/components/elements/display/QueryResultText.d.ts +0 -6
- package/components/elements/display/QueryResultText.js +0 -28
- package/components/elements/display/TextDivider.d.ts +0 -3
- package/components/elements/display/TextDivider.js +0 -42
- package/components/elements/display/TypingIndicator.d.ts +0 -2
- package/components/elements/display/TypingIndicator.js +0 -44
- package/components/elements/display/UserPageWrapper.d.ts +0 -6
- package/components/elements/display/UserPageWrapper.js +0 -11
- package/components/elements/display/features/DevelopmentBanner.d.ts +0 -3
- package/components/elements/display/features/DevelopmentBanner.js +0 -19
- package/components/elements/display/features/DevelopmentIcon.d.ts +0 -3
- package/components/elements/display/features/DevelopmentIcon.js +0 -17
- package/components/elements/display/handlebars/helpers.d.ts +0 -12
- package/components/elements/display/handlebars/helpers.js +0 -229
- package/components/elements/display/icons/BundleButton.d.ts +0 -6
- package/components/elements/display/icons/BundleButton.js +0 -70
- package/components/elements/display/icons/Iconified.d.ts +0 -9
- package/components/elements/display/icons/Iconified.js +0 -14
- package/components/elements/display/icons/SocketBadge.d.ts +0 -5
- package/components/elements/display/icons/SocketBadge.js +0 -79
- package/components/elements/display/json/JSONViewer.d.ts +0 -8
- package/components/elements/display/json/JSONViewer.js +0 -86
- package/components/elements/display/markdownPlugins/tabs.d.ts +0 -3
- package/components/elements/display/markdownPlugins/tabs.js +0 -66
- package/components/elements/display/modals/ConfirmDeleteModal.d.ts +0 -5
- package/components/elements/display/modals/ConfirmDeleteModal.js +0 -24
- package/components/elements/display/modals/ConfirmNotebookModal.d.ts +0 -5
- package/components/elements/display/modals/ConfirmNotebookModal.js +0 -24
- package/components/elements/display/modals/CreateActionModal.d.ts +0 -5
- package/components/elements/display/modals/CreateActionModal.js +0 -54
- package/components/elements/display/modals/LoginErrorModal.d.ts +0 -5
- package/components/elements/display/modals/LoginErrorModal.js +0 -24
- package/components/elements/display/modals/RationaleModal.d.ts +0 -5
- package/components/elements/display/modals/RationaleModal.js +0 -50
- package/components/elements/hit/HitActions.d.ts +0 -6
- package/components/elements/hit/HitActions.js +0 -255
- package/components/elements/hit/HitBanner.d.ts +0 -15
- package/components/elements/hit/HitBanner.js +0 -330
- package/components/elements/hit/HitBannerTooltip.d.ts +0 -6
- package/components/elements/hit/HitBannerTooltip.js +0 -39
- package/components/elements/hit/HitCard.d.ts +0 -7
- package/components/elements/hit/HitCard.js +0 -33
- package/components/elements/hit/HitComments.d.ts +0 -11
- package/components/elements/hit/HitComments.js +0 -280
- package/components/elements/hit/HitDetails.d.ts +0 -5
- package/components/elements/hit/HitDetails.js +0 -238
- package/components/elements/hit/HitLabels.d.ts +0 -6
- package/components/elements/hit/HitLabels.js +0 -210
- package/components/elements/hit/HitLayout.d.ts +0 -5
- package/components/elements/hit/HitLayout.js +0 -9
- package/components/elements/hit/HitNotebooks.d.ts +0 -8
- package/components/elements/hit/HitNotebooks.js +0 -213
- package/components/elements/hit/HitOutline.d.ts +0 -9
- package/components/elements/hit/HitOutline.js +0 -43
- package/components/elements/hit/HitOverview.d.ts +0 -6
- package/components/elements/hit/HitOverview.js +0 -35
- package/components/elements/hit/HitQuickSearch.d.ts +0 -8
- package/components/elements/hit/HitQuickSearch.js +0 -118
- package/components/elements/hit/HitRelated.d.ts +0 -6
- package/components/elements/hit/HitRelated.js +0 -10
- package/components/elements/hit/HitShortcuts.d.ts +0 -5
- package/components/elements/hit/HitShortcuts.js +0 -9
- package/components/elements/hit/HitSummary.d.ts +0 -11
- package/components/elements/hit/HitSummary.js +0 -234
- package/components/elements/hit/HitWorklog.d.ts +0 -10
- package/components/elements/hit/HitWorklog.js +0 -163
- package/components/elements/hit/actions/ButtonActions.d.ts +0 -12
- package/components/elements/hit/actions/ButtonActions.js +0 -215
- package/components/elements/hit/actions/DropdownActions.d.ts +0 -12
- package/components/elements/hit/actions/DropdownActions.js +0 -98
- package/components/elements/hit/actions/SharedComponents.d.ts +0 -18
- package/components/elements/hit/actions/SharedComponents.js +0 -27
- package/components/elements/hit/aggregate/HitGraph.d.ts +0 -5
- package/components/elements/hit/aggregate/HitGraph.js +0 -321
- package/components/elements/hit/elements/Assigned.d.ts +0 -9
- package/components/elements/hit/elements/Assigned.js +0 -65
- package/components/elements/hit/elements/EscalationChip.d.ts +0 -9
- package/components/elements/hit/elements/EscalationChip.js +0 -24
- package/components/elements/hit/elements/HitTimestamp.d.ts +0 -8
- package/components/elements/hit/elements/HitTimestamp.js +0 -73
- package/components/elements/hit/outlines/DefaultOutline.d.ts +0 -12
- package/components/elements/hit/outlines/DefaultOutline.js +0 -77
- package/components/elements/hit/outlines/al/AssemblyLineRules.d.ts +0 -5
- package/components/elements/hit/outlines/al/AssemblyLineRules.js +0 -87
- package/components/elements/hit/related/PivotLink.d.ts +0 -10
- package/components/elements/hit/related/PivotLink.js +0 -49
- package/components/elements/hit/related/RelatedIcon.d.ts +0 -8
- package/components/elements/hit/related/RelatedIcon.js +0 -50
- package/components/elements/hit/related/RelatedLink.d.ts +0 -8
- package/components/elements/hit/related/RelatedLink.js +0 -42
- package/components/elements/view/ViewTitle.d.ts +0 -10
- package/components/elements/view/ViewTitle.js +0 -45
- package/components/hooks/useHitActions.d.ts +0 -14
- package/components/hooks/useHitActions.js +0 -229
- package/components/hooks/useHitSelection.d.ts +0 -8
- package/components/hooks/useHitSelection.js +0 -86
- package/components/hooks/useMyApi.d.ts +0 -10
- package/components/hooks/useMyApi.js +0 -49
- package/components/hooks/useMyChart.d.ts +0 -275
- package/components/hooks/useMyChart.js +0 -131
- package/components/hooks/useMyLocalStorage.d.ts +0 -17
- package/components/hooks/useMyLocalStorage.js +0 -19
- package/components/hooks/useMyPreferences.d.ts +0 -3
- package/components/hooks/useMyPreferences.js +0 -272
- package/components/hooks/useMySearch.d.ts +0 -4
- package/components/hooks/useMySearch.js +0 -59
- package/components/hooks/useMySitemap.d.ts +0 -3
- package/components/hooks/useMySitemap.js +0 -206
- package/components/hooks/useMySnackbar.d.ts +0 -8
- package/components/hooks/useMySnackbar.js +0 -56
- package/components/hooks/useMyTheme.d.ts +0 -3
- package/components/hooks/useMyTheme.js +0 -30
- package/components/hooks/useMyUser.d.ts +0 -4
- package/components/hooks/useMyUser.js +0 -31
- package/components/hooks/useMyUserFunctions.d.ts +0 -118
- package/components/hooks/useMyUserFunctions.js +0 -143
- package/components/hooks/useMyUserList.d.ts +0 -4
- package/components/hooks/useMyUserList.js +0 -12
- package/components/hooks/useMyUtils.d.ts +0 -4
- package/components/hooks/useMyUtils.js +0 -18
- package/components/hooks/useScrollRestoration.d.ts +0 -7
- package/components/hooks/useScrollRestoration.js +0 -25
- package/components/logins/Login.d.ts +0 -2
- package/components/logins/Login.js +0 -47
- package/components/logins/auth/OAuthLogin.d.ts +0 -6
- package/components/logins/auth/OAuthLogin.js +0 -40
- package/components/logins/auth/UserPassLogin.d.ts +0 -2
- package/components/logins/auth/UserPassLogin.js +0 -51
- package/components/logins/hooks/useLogin.d.ts +0 -7
- package/components/logins/hooks/useLogin.js +0 -87
- package/components/routes/404.d.ts +0 -3
- package/components/routes/404.js +0 -16
- package/components/routes/ErrorBoundary.d.ts +0 -14
- package/components/routes/ErrorBoundary.js +0 -32
- package/components/routes/ErrorOccured.d.ts +0 -3
- package/components/routes/ErrorOccured.js +0 -20
- package/components/routes/Logout.d.ts +0 -3
- package/components/routes/Logout.js +0 -46
- package/components/routes/action/edit/ActionEditor.d.ts +0 -14
- package/components/routes/action/edit/ActionEditor.js +0 -275
- package/components/routes/action/shared/ActionReportDisplay.d.ts +0 -7
- package/components/routes/action/shared/ActionReportDisplay.js +0 -51
- package/components/routes/action/shared/OperationEntry.d.ts +0 -13
- package/components/routes/action/shared/OperationEntry.js +0 -84
- package/components/routes/action/shared/OperationStep.d.ts +0 -11
- package/components/routes/action/shared/OperationStep.js +0 -151
- package/components/routes/action/useMyActionFunctions.d.ts +0 -19
- package/components/routes/action/useMyActionFunctions.js +0 -201
- package/components/routes/action/view/ActionDetails.d.ts +0 -2
- package/components/routes/action/view/ActionDetails.js +0 -177
- package/components/routes/action/view/ActionSearch.d.ts +0 -3
- package/components/routes/action/view/ActionSearch.js +0 -214
- package/components/routes/action/view/Integrations.d.ts +0 -3
- package/components/routes/action/view/Integrations.js +0 -34
- package/components/routes/admin/users/UserEditor.d.ts +0 -3
- package/components/routes/admin/users/UserEditor.js +0 -57
- package/components/routes/admin/users/UserSearch.d.ts +0 -3
- package/components/routes/admin/users/UserSearch.js +0 -179
- package/components/routes/advanced/QueryBuilder.d.ts +0 -3
- package/components/routes/advanced/QueryBuilder.js +0 -497
- package/components/routes/advanced/QueryEditor.d.ts +0 -14
- package/components/routes/advanced/QueryEditor.js +0 -117
- package/components/routes/advanced/RuleModal.d.ts +0 -7
- package/components/routes/advanced/RuleModal.js +0 -189
- package/components/routes/advanced/eqlCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/eqlCompletionProvider.js +0 -81
- package/components/routes/advanced/eqlTokenProvider.d.ts +0 -8
- package/components/routes/advanced/eqlTokenProvider.js +0 -84
- package/components/routes/advanced/historyCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/historyCompletionProvider.js +0 -51
- package/components/routes/advanced/luceneCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/luceneCompletionProvider.js +0 -91
- package/components/routes/advanced/luceneTokenProvider.d.ts +0 -9
- package/components/routes/advanced/luceneTokenProvider.js +0 -101
- package/components/routes/advanced/yamlCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/yamlCompletionProvider.js +0 -50
- package/components/routes/analytics/AnalyticComments.d.ts +0 -7
- package/components/routes/analytics/AnalyticComments.js +0 -190
- package/components/routes/analytics/AnalyticDetails.d.ts +0 -2
- package/components/routes/analytics/AnalyticDetails.js +0 -254
- package/components/routes/analytics/AnalyticHitComments.d.ts +0 -6
- package/components/routes/analytics/AnalyticHitComments.js +0 -71
- package/components/routes/analytics/AnalyticNotebooks.d.ts +0 -7
- package/components/routes/analytics/AnalyticNotebooks.js +0 -138
- package/components/routes/analytics/AnalyticOverview.d.ts +0 -7
- package/components/routes/analytics/AnalyticOverview.js +0 -103
- package/components/routes/analytics/AnalyticOverviews.d.ts +0 -6
- package/components/routes/analytics/AnalyticOverviews.js +0 -72
- package/components/routes/analytics/AnalyticSearch.d.ts +0 -3
- package/components/routes/analytics/AnalyticSearch.js +0 -233
- package/components/routes/analytics/AnalyticTemplates.d.ts +0 -6
- package/components/routes/analytics/AnalyticTemplates.js +0 -70
- package/components/routes/analytics/RuleView.d.ts +0 -7
- package/components/routes/analytics/RuleView.js +0 -74
- package/components/routes/analytics/TriageSettings.d.ts +0 -7
- package/components/routes/analytics/TriageSettings.js +0 -104
- package/components/routes/analytics/widgets/Assessment.d.ts +0 -5
- package/components/routes/analytics/widgets/Assessment.js +0 -58
- package/components/routes/analytics/widgets/Created.d.ts +0 -5
- package/components/routes/analytics/widgets/Created.js +0 -52
- package/components/routes/analytics/widgets/Detection.d.ts +0 -6
- package/components/routes/analytics/widgets/Detection.js +0 -11
- package/components/routes/analytics/widgets/Escalation.d.ts +0 -6
- package/components/routes/analytics/widgets/Escalation.js +0 -51
- package/components/routes/analytics/widgets/Stacked.d.ts +0 -7
- package/components/routes/analytics/widgets/Stacked.js +0 -87
- package/components/routes/analytics/widgets/Status.d.ts +0 -5
- package/components/routes/analytics/widgets/Status.js +0 -21
- package/components/routes/dossiers/DossierCard.d.ts +0 -8
- package/components/routes/dossiers/DossierCard.js +0 -24
- package/components/routes/dossiers/DossierEditor.d.ts +0 -2
- package/components/routes/dossiers/DossierEditor.js +0 -198
- package/components/routes/dossiers/Dossiers.d.ts +0 -2
- package/components/routes/dossiers/Dossiers.js +0 -146
- package/components/routes/dossiers/LeadEditor.d.ts +0 -13
- package/components/routes/dossiers/LeadEditor.js +0 -119
- package/components/routes/dossiers/LeadForm.d.ts +0 -8
- package/components/routes/dossiers/LeadForm.js +0 -98
- package/components/routes/dossiers/PivotForm.d.ts +0 -13
- package/components/routes/dossiers/PivotForm.js +0 -278
- package/components/routes/help/ActionDocumentation.d.ts +0 -8
- package/components/routes/help/ActionDocumentation.js +0 -62
- package/components/routes/help/ActionIntroductionDocumentation.d.ts +0 -3
- package/components/routes/help/ActionIntroductionDocumentation.js +0 -103
- package/components/routes/help/ApiDocumentation.d.ts +0 -3
- package/components/routes/help/ApiDocumentation.js +0 -139
- package/components/routes/help/AuthDocumentation.d.ts +0 -3
- package/components/routes/help/AuthDocumentation.js +0 -20
- package/components/routes/help/BundleDocumentation.d.ts +0 -3
- package/components/routes/help/BundleDocumentation.js +0 -84
- package/components/routes/help/ClientDocumentation.d.ts +0 -3
- package/components/routes/help/ClientDocumentation.js +0 -20
- package/components/routes/help/Help.d.ts +0 -2
- package/components/routes/help/Help.js +0 -61
- package/components/routes/help/HitBannerDocumentation.d.ts +0 -3
- package/components/routes/help/HitBannerDocumentation.js +0 -62
- package/components/routes/help/HitDocumentation.d.ts +0 -3
- package/components/routes/help/HitDocumentation.js +0 -83
- package/components/routes/help/HitLabelsDocumentation.d.ts +0 -3
- package/components/routes/help/HitLabelsDocumentation.js +0 -46
- package/components/routes/help/HitLinksDocumentation.d.ts +0 -3
- package/components/routes/help/HitLinksDocumentation.js +0 -56
- package/components/routes/help/HitSchemaDocumentation.d.ts +0 -3
- package/components/routes/help/HitSchemaDocumentation.js +0 -159
- package/components/routes/help/NotebookDocumentation.d.ts +0 -3
- package/components/routes/help/NotebookDocumentation.js +0 -19
- package/components/routes/help/OverviewDocumentation.d.ts +0 -3
- package/components/routes/help/OverviewDocumentation.js +0 -15
- package/components/routes/help/RetentionDocumentation.d.ts +0 -3
- package/components/routes/help/RetentionDocumentation.js +0 -48
- package/components/routes/help/SearchDocumentation.d.ts +0 -3
- package/components/routes/help/SearchDocumentation.js +0 -515
- package/components/routes/help/TemplateDocumentation.d.ts +0 -3
- package/components/routes/help/TemplateDocumentation.js +0 -60
- package/components/routes/help/ViewDocumentation.d.ts +0 -3
- package/components/routes/help/ViewDocumentation.js +0 -29
- package/components/routes/help/components/HelpTabs.d.ts +0 -6
- package/components/routes/help/components/HelpTabs.js +0 -40
- package/components/routes/help/markdown/en/actionIntroduction.md.js +0 -1
- package/components/routes/help/markdown/en/authentication.md.js +0 -1
- package/components/routes/help/markdown/en/bundles.md.js +0 -1
- package/components/routes/help/markdown/en/client.md.js +0 -1
- package/components/routes/help/markdown/en/links.md.js +0 -1
- package/components/routes/help/markdown/en/notebook.md.js +0 -1
- package/components/routes/help/markdown/en/retention.md.js +0 -1
- package/components/routes/help/markdown/en/schema.md.js +0 -1
- package/components/routes/help/markdown/en/templates.md.js +0 -1
- package/components/routes/help/markdown/en/views.md.js +0 -1
- package/components/routes/help/markdown/fr/actionIntroduction.md.js +0 -1
- package/components/routes/help/markdown/fr/authentication.md.js +0 -1
- package/components/routes/help/markdown/fr/bundles.md.js +0 -1
- package/components/routes/help/markdown/fr/client.md.js +0 -1
- package/components/routes/help/markdown/fr/links.md.js +0 -1
- package/components/routes/help/markdown/fr/notebook.md.js +0 -1
- package/components/routes/help/markdown/fr/retention.md.js +0 -1
- package/components/routes/help/markdown/fr/schema.md.js +0 -1
- package/components/routes/help/markdown/fr/templates.md.js +0 -1
- package/components/routes/help/markdown/fr/views.md.js +0 -1
- package/components/routes/hits/search/BundleParentMenu.d.ts +0 -6
- package/components/routes/hits/search/BundleParentMenu.js +0 -54
- package/components/routes/hits/search/BundleScroller.d.ts +0 -2
- package/components/routes/hits/search/BundleScroller.js +0 -9
- package/components/routes/hits/search/CustomSort.d.ts +0 -2
- package/components/routes/hits/search/CustomSort.js +0 -88
- package/components/routes/hits/search/HitBrowser.d.ts +0 -3
- package/components/routes/hits/search/HitBrowser.js +0 -258
- package/components/routes/hits/search/HitContextMenu.d.ts +0 -7
- package/components/routes/hits/search/HitContextMenu.js +0 -209
- package/components/routes/hits/search/HitQuery.d.ts +0 -9
- package/components/routes/hits/search/HitQuery.js +0 -237
- package/components/routes/hits/search/InformationPane.d.ts +0 -5
- package/components/routes/hits/search/InformationPane.js +0 -377
- package/components/routes/hits/search/SearchPane.d.ts +0 -3
- package/components/routes/hits/search/SearchPane.js +0 -222
- package/components/routes/hits/search/ViewLink.d.ts +0 -2
- package/components/routes/hits/search/ViewLink.js +0 -77
- package/components/routes/hits/search/grid/AddColumnModal.d.ts +0 -8
- package/components/routes/hits/search/grid/AddColumnModal.js +0 -92
- package/components/routes/hits/search/grid/ColumnHeader.d.ts +0 -8
- package/components/routes/hits/search/grid/ColumnHeader.js +0 -70
- package/components/routes/hits/search/grid/EnhancedCell.d.ts +0 -8
- package/components/routes/hits/search/grid/EnhancedCell.js +0 -50
- package/components/routes/hits/search/grid/HitGrid.d.ts +0 -3
- package/components/routes/hits/search/grid/HitGrid.js +0 -274
- package/components/routes/hits/search/grid/HitRow.d.ts +0 -10
- package/components/routes/hits/search/grid/HitRow.js +0 -102
- package/components/routes/hits/search/shared/CustomSpan.d.ts +0 -2
- package/components/routes/hits/search/shared/CustomSpan.js +0 -54
- package/components/routes/hits/search/shared/HitFilter.d.ts +0 -4
- package/components/routes/hits/search/shared/HitFilter.js +0 -99
- package/components/routes/hits/search/shared/HitSort.d.ts +0 -4
- package/components/routes/hits/search/shared/HitSort.js +0 -91
- package/components/routes/hits/search/shared/QuerySettings.d.ts +0 -6
- package/components/routes/hits/search/shared/QuerySettings.js +0 -41
- package/components/routes/hits/search/shared/SearchSpan.d.ts +0 -5
- package/components/routes/hits/search/shared/SearchSpan.js +0 -59
- package/components/routes/hits/view/HitViewer.d.ts +0 -7
- package/components/routes/hits/view/HitViewer.js +0 -336
- package/components/routes/hits/view/LeadRenderer.d.ts +0 -7
- package/components/routes/hits/view/LeadRenderer.js +0 -34
- package/components/routes/home/AddNewCard.d.ts +0 -7
- package/components/routes/home/AddNewCard.js +0 -216
- package/components/routes/home/AnalyticCard.d.ts +0 -7
- package/components/routes/home/AnalyticCard.js +0 -43
- package/components/routes/home/EntryWrapper.d.ts +0 -7
- package/components/routes/home/EntryWrapper.js +0 -58
- package/components/routes/home/ViewCard.d.ts +0 -7
- package/components/routes/home/ViewCard.js +0 -64
- package/components/routes/home/index.d.ts +0 -3
- package/components/routes/home/index.js +0 -244
- package/components/routes/overviews/OverviewCard.d.ts +0 -8
- package/components/routes/overviews/OverviewCard.js +0 -25
- package/components/routes/overviews/OverviewEditor.d.ts +0 -12
- package/components/routes/overviews/OverviewEditor.js +0 -81
- package/components/routes/overviews/OverviewViewer.d.ts +0 -2
- package/components/routes/overviews/OverviewViewer.js +0 -316
- package/components/routes/overviews/Overviews.d.ts +0 -2
- package/components/routes/overviews/Overviews.js +0 -148
- package/components/routes/overviews/markdownExtendedTokenProvider.d.ts +0 -3
- package/components/routes/overviews/markdownExtendedTokenProvider.js +0 -262
- package/components/routes/overviews/startingTemplate.d.ts +0 -1
- package/components/routes/overviews/startingTemplate.js +0 -36
- package/components/routes/overviews/template/en.md.js +0 -1
- package/components/routes/overviews/template/fr.md.js +0 -1
- package/components/routes/settings/AdminSection.d.ts +0 -3
- package/components/routes/settings/AdminSection.js +0 -13
- package/components/routes/settings/LocalSection.d.ts +0 -3
- package/components/routes/settings/LocalSection.js +0 -127
- package/components/routes/settings/ProfileSection.d.ts +0 -10
- package/components/routes/settings/ProfileSection.js +0 -98
- package/components/routes/settings/SecuritySection.d.ts +0 -10
- package/components/routes/settings/SecuritySection.js +0 -71
- package/components/routes/settings/Settings.d.ts +0 -3
- package/components/routes/settings/Settings.js +0 -56
- package/components/routes/settings/SettingsSection.d.ts +0 -7
- package/components/routes/settings/SettingsSection.js +0 -22
- package/components/routes/templates/TemplateCard.d.ts +0 -7
- package/components/routes/templates/TemplateCard.js +0 -26
- package/components/routes/templates/TemplateDnD.d.ts +0 -8
- package/components/routes/templates/TemplateDnD.js +0 -44
- package/components/routes/templates/TemplateEditor.d.ts +0 -9
- package/components/routes/templates/TemplateEditor.js +0 -104
- package/components/routes/templates/TemplateViewer.d.ts +0 -2
- package/components/routes/templates/TemplateViewer.js +0 -219
- package/components/routes/templates/Templates.d.ts +0 -2
- package/components/routes/templates/Templates.js +0 -156
- package/components/routes/views/ViewComposer.d.ts +0 -3
- package/components/routes/views/ViewComposer.js +0 -276
- package/components/routes/views/Views.d.ts +0 -2
- package/components/routes/views/Views.js +0 -301
- package/hit-CQYBTSKb.js +0 -7
- package/i18n.d.ts +0 -3
- package/i18n.js +0 -1909
- package/images/doggie.png +0 -0
- package/index-BPPnUdfP.js +0 -1157
- package/index.d.ts +0 -0
- package/index.js +0 -13
- package/locales/en/help/main.json.d.ts +0 -16
- package/locales/en/help/search.json.d.ts +0 -189
- package/locales/en/translation.json.d.ts +0 -802
- package/locales/fr/help/main.json.d.ts +0 -16
- package/locales/fr/help/search.json.d.ts +0 -189
- package/locales/fr/translation.json.d.ts +0 -800
- package/manifest.json +0 -16
- package/plugins/HowlerPlugin.d.ts +0 -114
- package/plugins/HowlerPlugin.js +0 -276
- package/plugins/store.d.ts +0 -95
- package/plugins/store.js +0 -105
- package/rest/AxiosClient.d.ts +0 -10
- package/rest/AxiosClient.js +0 -68
- package/rest/FetchClient.d.ts +0 -7
- package/rest/FetchClient.js +0 -19
- package/rest/index.d.ts +0 -6
- package/rest/index.js +0 -1
- package/robots.txt +0 -3
- package/scripts/background.js +0 -14
- package/serve.json +0 -14
- package/setupTests.d.ts +0 -0
- package/tests/MockLocalStorage.d.ts +0 -5
- package/tests/server-handlers.d.ts +0 -5
- package/tests/server.d.ts +0 -3
- package/utils/Throttler.d.ts +0 -9
- package/utils/Throttler.js +0 -43
- package/utils/actionUtils.d.ts +0 -31
- package/utils/actionUtils.js +0 -41
- package/utils/constants.d.ts +0 -79
- package/utils/constants.js +0 -131
- package/utils/hit.json.d.ts +0 -30359
- package/utils/hitFunctions.d.ts +0 -2
- package/utils/hitFunctions.js +0 -12
- package/utils/localStorage.d.ts +0 -21
- package/utils/localStorage.js +0 -35
- package/utils/menuUtils.d.ts +0 -89
- package/utils/menuUtils.js +0 -247
- package/utils/sessionStorage.d.ts +0 -7
- package/utils/sessionStorage.js +0 -50
- package/utils/socketUtils.d.ts +0 -8
- package/utils/socketUtils.js +0 -6
- package/utils/stringUtils.d.ts +0 -8
- package/utils/stringUtils.js +0 -52
- package/utils/utils.d.ts +0 -33
- package/utils/utils.js +0 -193
- package/utils/xsrf.d.ts +0 -2
- package/utils/xsrf.js +0 -12
package/api/index.ts
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import * as action from '@cccsaurora/howler-ui/api/action';
|
|
2
|
+
import * as analytic from '@cccsaurora/howler-ui/api/analytic';
|
|
3
|
+
import * as auth from '@cccsaurora/howler-ui/api/auth';
|
|
4
|
+
import * as configs from '@cccsaurora/howler-ui/api/configs';
|
|
5
|
+
import * as dossier from '@cccsaurora/howler-ui/api/dossier';
|
|
6
|
+
import * as help from '@cccsaurora/howler-ui/api/help';
|
|
7
|
+
import * as hit from '@cccsaurora/howler-ui/api/hit';
|
|
8
|
+
import * as notebook from '@cccsaurora/howler-ui/api/notebook';
|
|
9
|
+
import * as overview from '@cccsaurora/howler-ui/api/overview';
|
|
10
|
+
import * as search from '@cccsaurora/howler-ui/api/search';
|
|
11
|
+
import * as template from '@cccsaurora/howler-ui/api/template';
|
|
12
|
+
import * as user from '@cccsaurora/howler-ui/api/user';
|
|
13
|
+
import * as view from '@cccsaurora/howler-ui/api/view';
|
|
14
|
+
import AxiosClient from '@cccsaurora/howler-ui/rest/AxiosClient';
|
|
15
|
+
import urlJoin from 'url-join';
|
|
16
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
17
|
+
import {
|
|
18
|
+
getStored as getLocalStored,
|
|
19
|
+
removeStored as removeLocalStored,
|
|
20
|
+
saveLoginCredential,
|
|
21
|
+
setStored as setLocalStored
|
|
22
|
+
} from '@cccsaurora/howler-ui/utils/localStorage';
|
|
23
|
+
import { getStored as getSessionStored, setStored as setSessionStored } from '@cccsaurora/howler-ui/utils/sessionStorage';
|
|
24
|
+
import getXSRFCookie from '@cccsaurora/howler-ui/utils/xsrf';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Concrete Rest HTTP client implementation.
|
|
28
|
+
*/
|
|
29
|
+
const client = new AxiosClient();
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Defining the default export exposing all children routes of '/api/v1/'.
|
|
33
|
+
*/
|
|
34
|
+
// prettier-ignore
|
|
35
|
+
const api = {
|
|
36
|
+
action,
|
|
37
|
+
analytic,
|
|
38
|
+
auth,
|
|
39
|
+
configs,
|
|
40
|
+
dossier,
|
|
41
|
+
help,
|
|
42
|
+
hit,
|
|
43
|
+
overview,
|
|
44
|
+
search,
|
|
45
|
+
template,
|
|
46
|
+
user,
|
|
47
|
+
view,
|
|
48
|
+
notebook
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The specification interface of an Howler HTTP response.
|
|
53
|
+
*/
|
|
54
|
+
export type HowlerResponse<R> = {
|
|
55
|
+
api_response: R;
|
|
56
|
+
api_error_message: string;
|
|
57
|
+
api_server_version: string;
|
|
58
|
+
api_status_code: number;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The base section of the Howler API uri.
|
|
63
|
+
*
|
|
64
|
+
* `/api/v1/`
|
|
65
|
+
*/
|
|
66
|
+
export const uri = () => {
|
|
67
|
+
return '/api/v1';
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Format/Adapt the specified URI to an Howler API uri.
|
|
72
|
+
*
|
|
73
|
+
* Ensure it starts with '/api/v1' and doesn't end with a '/'.
|
|
74
|
+
*
|
|
75
|
+
* @param _uri - the uri to format.
|
|
76
|
+
* @returns `string` - properly formatted howler uri.
|
|
77
|
+
*/
|
|
78
|
+
const format = (_uri: string): string => {
|
|
79
|
+
return _uri.startsWith(uri()) ? _uri : `${uri()}/${_uri.replace(/\/$/, '')}`;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Append series of search parameters to the specified uri.
|
|
84
|
+
*
|
|
85
|
+
* @param _uri - the base uri.
|
|
86
|
+
* @param searchParams - a list of search parameters to join with the uri.
|
|
87
|
+
* @returns a uri with the search parameters.
|
|
88
|
+
*/
|
|
89
|
+
export const joinParams = (_uri: string, searchParams?: URLSearchParams): string => {
|
|
90
|
+
return `${_uri}${searchParams ? `${_uri.indexOf('?') > 0 ? '&' : '?'}${searchParams.toString()}` : ''}`;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Join two uri and then join them with the specified search parameters.
|
|
95
|
+
*
|
|
96
|
+
* This function will format the resulting uri section using {@link format}.
|
|
97
|
+
*
|
|
98
|
+
* This function will join the specified parameters using {@link joinParams}
|
|
99
|
+
*
|
|
100
|
+
* @param uri1 the first section of the uri.
|
|
101
|
+
* @param uri2 the second section of the uri.
|
|
102
|
+
* @param searchParams the search parameters to append to the uri.
|
|
103
|
+
* @returns a uri that joins `uri1` and `uri2` with the specified `_search` parameters.
|
|
104
|
+
*/
|
|
105
|
+
export const joinUri = (uri1: string, uri2: string, searchParams?: URLSearchParams): string => {
|
|
106
|
+
const _uri = format(urlJoin(uri1, uri2));
|
|
107
|
+
return searchParams ? joinParams(_uri, searchParams) : _uri;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* joinUrl all params together
|
|
112
|
+
*
|
|
113
|
+
* @returns a uri generated from all params
|
|
114
|
+
*/
|
|
115
|
+
export const joinAllUri = (...urlParts: string[]): string => {
|
|
116
|
+
return urlJoin(...urlParts);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Create the required headers object for attaching to the request
|
|
121
|
+
*
|
|
122
|
+
* @param ifMatch a value for the If-Match header
|
|
123
|
+
*/
|
|
124
|
+
export const setHeaders = (ifMatch?: string): HeadersInit => {
|
|
125
|
+
const headers: HeadersInit = {};
|
|
126
|
+
if (ifMatch) {
|
|
127
|
+
headers['If-Match'] = ifMatch;
|
|
128
|
+
}
|
|
129
|
+
return headers;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const getEtagUrl = (_uri: string): string => {
|
|
133
|
+
if (_uri.startsWith('/api/v1/hit')) {
|
|
134
|
+
return _uri.replace(/.+hit\/(.+?)$/g, '$1').split('/')[0];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return _uri;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Generic FETCH implementation for HOWLER API.
|
|
142
|
+
*
|
|
143
|
+
* This function will format the specified `url` with {@link format} before issuing the fetch.
|
|
144
|
+
*
|
|
145
|
+
* @param _uri - the uri to fetch.
|
|
146
|
+
* @param method - the http method to use.
|
|
147
|
+
* @param body - the body of the request.
|
|
148
|
+
* @returns the `api_response` object of the returned {@link HowlerResponse}.
|
|
149
|
+
*/
|
|
150
|
+
export const hfetch = async <R>(
|
|
151
|
+
_uri: string,
|
|
152
|
+
method: 'get' | 'post' | 'put' | 'delete' | 'patch' = 'get',
|
|
153
|
+
body?: any,
|
|
154
|
+
searchParams?: URLSearchParams,
|
|
155
|
+
requestHeaders?: HeadersInit
|
|
156
|
+
): Promise<R> => {
|
|
157
|
+
const authToken = getLocalStored(StorageKey.APP_TOKEN);
|
|
158
|
+
const etags = getSessionStored(StorageKey.ETAG) || {};
|
|
159
|
+
const currentObject = etags[getEtagUrl(_uri)] || null;
|
|
160
|
+
|
|
161
|
+
requestHeaders = {
|
|
162
|
+
...requestHeaders,
|
|
163
|
+
...(currentObject && setHeaders(currentObject)),
|
|
164
|
+
'Content-Type': 'application/json',
|
|
165
|
+
'X-XSRF-TOKEN': getXSRFCookie()
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
if (authToken) {
|
|
169
|
+
requestHeaders = { ...requestHeaders, Authorization: `Bearer ${authToken}` };
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Wait for it ....
|
|
173
|
+
const [json, statusCode, responseHeader] = await client.fetch<R>(
|
|
174
|
+
format(_uri),
|
|
175
|
+
method,
|
|
176
|
+
body,
|
|
177
|
+
searchParams,
|
|
178
|
+
requestHeaders
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
if (responseHeader.etag) {
|
|
182
|
+
setSessionStored(StorageKey.ETAG, { ...etags, [getEtagUrl(_uri)]: responseHeader.etag });
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (!json) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Did it work?
|
|
190
|
+
if (statusCode < 300 || statusCode === 304) {
|
|
191
|
+
return json.api_response;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (statusCode === 401) {
|
|
195
|
+
if (!getLocalStored(StorageKey.NEXT_LOCATION)) {
|
|
196
|
+
setLocalStored(StorageKey.NEXT_LOCATION, window.location.pathname);
|
|
197
|
+
setLocalStored(StorageKey.NEXT_SEARCH, window.location.search);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (!_uri.includes('/auth/login') && getLocalStored(StorageKey.REFRESH_TOKEN)) {
|
|
201
|
+
//Refresh access token if possible
|
|
202
|
+
//And re-execute the previous api call (seamless)
|
|
203
|
+
const refreshToken: string = getLocalStored(StorageKey.REFRESH_TOKEN);
|
|
204
|
+
const provider: string = getLocalStored(StorageKey.PROVIDER);
|
|
205
|
+
const refreshResponse = await api.auth.login.post({ refresh_token: refreshToken, provider: provider });
|
|
206
|
+
|
|
207
|
+
if (refreshResponse) {
|
|
208
|
+
saveLoginCredential(refreshResponse);
|
|
209
|
+
const result = await hfetch<R>(_uri, method, body, searchParams);
|
|
210
|
+
|
|
211
|
+
removeLocalStored(StorageKey.NEXT_LOCATION);
|
|
212
|
+
removeLocalStored(StorageKey.NEXT_SEARCH);
|
|
213
|
+
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
saveLoginCredential({});
|
|
219
|
+
|
|
220
|
+
if (window.location.pathname !== '/login') {
|
|
221
|
+
window.location.pathname = '/login';
|
|
222
|
+
}
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Throw it back.
|
|
227
|
+
throw new Error(
|
|
228
|
+
json.api_error_message || (json as unknown as string) || `Error while fetching ${_uri} - ${method.toUpperCase()}`,
|
|
229
|
+
{
|
|
230
|
+
cause: json
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Perform an HTTP GET for the specified uri.
|
|
237
|
+
*
|
|
238
|
+
* This method eventually delegates to {@link hfetch}
|
|
239
|
+
*
|
|
240
|
+
* @param _uri - the uri to fetch.
|
|
241
|
+
* @returns the `api_response` object of the returned {@link HowlerResponse}.
|
|
242
|
+
*/
|
|
243
|
+
export const hget = <R = any>(_uri: string, searchParams?: URLSearchParams, headers: HeadersInit = {}): Promise<R> => {
|
|
244
|
+
return hfetch(_uri, 'get', null, searchParams, headers);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Perform an HTTP POST for the specified uri and body data.
|
|
249
|
+
*
|
|
250
|
+
* This method eventually delegates to {@link hfetch}
|
|
251
|
+
*
|
|
252
|
+
* @param _uri - the uri to fetch.
|
|
253
|
+
* @param body - the body of the request.
|
|
254
|
+
* @returns the `api_response` object of the returned {@link HowlerResponse}.
|
|
255
|
+
*/
|
|
256
|
+
export const hpost = <R = any>(_uri: string, body: any, headers: HeadersInit = {}): Promise<R> => {
|
|
257
|
+
return hfetch(_uri, 'post', body, undefined, headers);
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Peform an HTTP PUT for the specified uri and body data.
|
|
262
|
+
*
|
|
263
|
+
* This method eventually delegates to {@link hfetch}
|
|
264
|
+
*
|
|
265
|
+
* @param _uri - the uri to fetch.
|
|
266
|
+
* @param body - the body of the request.
|
|
267
|
+
* @returns the `api_response` object of the returned {@link HowlerResponse}.
|
|
268
|
+
*/
|
|
269
|
+
export const hput = <R = any>(_uri: string, body: any, headers: HeadersInit = {}): Promise<R> => {
|
|
270
|
+
return hfetch(_uri, 'put', body, undefined, headers);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Peform an HTTP PATCH for the specified uri and body data.
|
|
275
|
+
*
|
|
276
|
+
* This method eventually delegates to {@link hfetch}
|
|
277
|
+
*
|
|
278
|
+
* @param _uri - the uri to fetch.
|
|
279
|
+
* @param body - the body of the request.
|
|
280
|
+
* @returns the `api_response` object of the returned {@link HowlerResponse}.
|
|
281
|
+
*/
|
|
282
|
+
export const hpatch = <R = any>(_uri: string, body: any, headers: HeadersInit = {}): Promise<R> => {
|
|
283
|
+
return hfetch(_uri, 'patch', body, undefined, headers);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Performa an HTTP DELETE for the specified uri.
|
|
288
|
+
*
|
|
289
|
+
* This method eventually delegates to {@link hfetch}
|
|
290
|
+
*
|
|
291
|
+
* @param _uri - the uri to fetch.
|
|
292
|
+
* @returns the `api_response` object of the returned {@link HowlerResponse}.
|
|
293
|
+
*/
|
|
294
|
+
export const hdelete = <R = any>(_uri: string, body = null, headers: HeadersInit = {}): Promise<R> => {
|
|
295
|
+
return hfetch(_uri, 'delete', body, undefined, headers);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Default export exposing the howler rest api
|
|
300
|
+
*/
|
|
301
|
+
export default api;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { hget, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/notebook';
|
|
3
|
+
|
|
4
|
+
export type EnvsResponse = {
|
|
5
|
+
envs: { name: string; url: string; default: boolean; user_interface: string }[];
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const uri = () => {
|
|
9
|
+
return joinUri(parentUri(), 'environments');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const get = (): Promise<EnvsResponse> => {
|
|
13
|
+
return hget(uri());
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { hpost, joinUri, uri as parentUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
3
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
4
|
+
|
|
5
|
+
import * as environments from '@cccsaurora/howler-ui/api/notebook/environments';
|
|
6
|
+
|
|
7
|
+
export type NotebookResponse = {
|
|
8
|
+
nb_content: any;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const uri = () => {
|
|
13
|
+
return joinUri(parentUri(), 'notebook');
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const post = (body: { link: string; analytic: Analytic; hit?: Hit }): Promise<NotebookResponse> => {
|
|
17
|
+
return hpost(joinUri(uri(), 'notebook'), body);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { environments };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { hdelete, hget, hpost, hput, joinAllUri, joinUri, uri as parentUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { Overview } from '@cccsaurora/howler-ui/models/entities/generated/Overview';
|
|
3
|
+
|
|
4
|
+
export const uri = (id?: string) => {
|
|
5
|
+
return id ? joinAllUri(parentUri(), 'overview', id) : joinUri(parentUri(), 'overview');
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const get = (): Promise<Overview[]> => {
|
|
9
|
+
return hget(uri());
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const post = (newData: Partial<Overview>): Promise<Overview> => {
|
|
13
|
+
return hpost(uri(), newData);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const put = (id: string, content: string): Promise<Overview> => {
|
|
17
|
+
return hput(uri(id), { content });
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const del = (id: string): Promise<void> => {
|
|
21
|
+
return hdelete(uri(id));
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
4
|
+
import type { Action } from '@cccsaurora/howler-ui/models/entities/generated/Action';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'action');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<Action>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'action_id:*' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
4
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'analytic');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<Analytic>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'analytic_id:*' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hpost, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerCountResult, HowlerCountSearchRequest } from '@cccsaurora/howler-ui/api/search/count';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search/count';
|
|
4
|
+
|
|
5
|
+
export const uri = () => {
|
|
6
|
+
return joinUri(parentUri(), 'hit');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const post = (request?: HowlerCountSearchRequest): Promise<HowlerCountResult> => {
|
|
10
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'howler.id:*' });
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import * as hit from '@cccsaurora/howler-ui/api/search/count/hit';
|
|
4
|
+
|
|
5
|
+
export interface HowlerCountSearchRequest {
|
|
6
|
+
query: string;
|
|
7
|
+
filters?: string[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface HowlerCountResult {
|
|
11
|
+
count: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const uri = () => {
|
|
15
|
+
return joinUri(parentUri(), 'count');
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { hit };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
4
|
+
import type { Dossier } from '@cccsaurora/howler-ui/models/entities/generated/Dossier';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'dossier');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<Dossier>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'title:*' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinAllUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerEQLSearchRequest, HowlerEQLSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinAllUri(parentUri(), 'hit', 'eql');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerEQLSearchRequest): Promise<HowlerEQLSearchResponse<Hit>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), eql_query: request?.eql_query || 'any where true' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hpost, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerFacetSearchRequest, HowlerFacetSearchResponse } from '@cccsaurora/howler-ui/api/search/facet';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search/facet';
|
|
4
|
+
|
|
5
|
+
export const uri = () => {
|
|
6
|
+
return joinUri(parentUri(), 'hit');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const post = (request?: HowlerFacetSearchRequest): Promise<{ [index: string]: HowlerFacetSearchResponse }> => {
|
|
10
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'howler.id:*' });
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import * as hit from '@cccsaurora/howler-ui/api/search/facet/hit';
|
|
4
|
+
|
|
5
|
+
export const uri = () => {
|
|
6
|
+
return joinUri(parentUri(), 'facet');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type HowlerFacetSearchRequest = {
|
|
10
|
+
fields?: string[];
|
|
11
|
+
query?: string;
|
|
12
|
+
mincount?: number;
|
|
13
|
+
rows?: number;
|
|
14
|
+
filters?: string[];
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type HowlerFacetSearchResponse = { [value: string]: number };
|
|
18
|
+
|
|
19
|
+
export { hit };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hget, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { SearchField } from '@cccsaurora/howler-ui/api/search/fields';
|
|
3
|
+
import { indexed, uri as parentUri } from '@cccsaurora/howler-ui/api/search/fields';
|
|
4
|
+
|
|
5
|
+
export const uri = () => {
|
|
6
|
+
return joinUri(parentUri(), 'hit');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const get = async (): Promise<SearchField[]> => {
|
|
10
|
+
const response = await hget<{ [key: string]: SearchField }>(uri());
|
|
11
|
+
return indexed(response);
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
2
|
+
import * as hit from '@cccsaurora/howler-ui/api/search/fields/hit';
|
|
3
|
+
import * as user from '@cccsaurora/howler-ui/api/search/fields/user';
|
|
4
|
+
// import urlJoin from 'url-join';
|
|
5
|
+
import { joinUri } from '@cccsaurora/howler-ui/api';
|
|
6
|
+
|
|
7
|
+
export type SearchField = {
|
|
8
|
+
key?: string;
|
|
9
|
+
default: boolean;
|
|
10
|
+
indexed: boolean;
|
|
11
|
+
list: boolean;
|
|
12
|
+
stored: boolean;
|
|
13
|
+
type: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const uri = () => {
|
|
18
|
+
return joinUri(parentUri(), 'fields');
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const map = (fields: { [key: string]: SearchField }): SearchField[] => {
|
|
22
|
+
return Object.keys(fields).map(key => ({ ...fields[key], key }));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const indexed = (fields: { [key: string]: SearchField }): SearchField[] => {
|
|
26
|
+
return map(fields).filter(field => field.indexed);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { hit, user };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { SearchField } from '@cccsaurora/howler-ui/api/search/fields';
|
|
3
|
+
import { indexed, uri as parentUri } from '@cccsaurora/howler-ui/api/search/fields';
|
|
4
|
+
// import urlJoin from 'url-join';
|
|
5
|
+
import { joinUri } from '@cccsaurora/howler-ui/api';
|
|
6
|
+
|
|
7
|
+
export const uri = () => {
|
|
8
|
+
return joinUri(parentUri(), 'user');
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const get = async (): Promise<SearchField[]> => {
|
|
12
|
+
const response = await api.hget<{ [key: string]: SearchField }>(uri());
|
|
13
|
+
return indexed(response);
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { hpost, joinAllUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerGroupedSearchRequest, HowlerGroupedSearchResponse } from '@cccsaurora/howler-ui/api/search/grouped';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search/grouped';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
|
+
|
|
6
|
+
export const uri = (field: string) => {
|
|
7
|
+
return joinAllUri(parentUri(), 'hit', field);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (
|
|
11
|
+
field: string,
|
|
12
|
+
request?: HowlerGroupedSearchRequest
|
|
13
|
+
): Promise<HowlerGroupedSearchResponse<Hit>> => {
|
|
14
|
+
return hpost(uri(field), { ...(request || {}), query: request?.query || 'howler.id:*' });
|
|
15
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import * as hit from '@cccsaurora/howler-ui/api/search/grouped/hit';
|
|
4
|
+
import * as user from '@cccsaurora/howler-ui/api/search/grouped/user';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'grouped');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type HowlerGroupedSearchRequest = {
|
|
11
|
+
group_sort?: string;
|
|
12
|
+
limit?: number;
|
|
13
|
+
query?: string;
|
|
14
|
+
offset?: number;
|
|
15
|
+
rows?: number;
|
|
16
|
+
sort?: string;
|
|
17
|
+
fl?: string;
|
|
18
|
+
filters?: string[];
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type GroupedResult<T> = {
|
|
22
|
+
value: string;
|
|
23
|
+
total: number;
|
|
24
|
+
items: T[];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type HowlerGroupedSearchResponse<T> = {
|
|
28
|
+
items: GroupedResult<T>[];
|
|
29
|
+
offset: number;
|
|
30
|
+
rows: number;
|
|
31
|
+
total: number;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { hit, user };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { hpost, joinAllUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerGroupedSearchRequest, HowlerGroupedSearchResponse } from '@cccsaurora/howler-ui/api/search/grouped';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search/grouped';
|
|
4
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
5
|
+
|
|
6
|
+
export type HowlerApiUser = Omit<HowlerUser, 'username'> & { uname: string };
|
|
7
|
+
|
|
8
|
+
export const uri = (field: string) => {
|
|
9
|
+
return joinAllUri(parentUri(), 'user', field);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const post = async (
|
|
13
|
+
field: string,
|
|
14
|
+
body?: HowlerGroupedSearchRequest
|
|
15
|
+
): Promise<HowlerGroupedSearchResponse<HowlerUser>> => {
|
|
16
|
+
const response = await hpost<HowlerGroupedSearchResponse<HowlerApiUser>>(uri(field), {
|
|
17
|
+
...(body || {}),
|
|
18
|
+
query: body?.query || 'uname:*'
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
...response,
|
|
22
|
+
items: response.items.map(i => ({
|
|
23
|
+
...i,
|
|
24
|
+
items: i.items.map(_i => ({
|
|
25
|
+
..._i,
|
|
26
|
+
username: _i.uname
|
|
27
|
+
}))
|
|
28
|
+
}))
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hpost, joinAllUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerHistogramSearchRequest, HowlerHistogramSearchResponse } from '@cccsaurora/howler-ui/api/search/histogram';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search/histogram';
|
|
4
|
+
|
|
5
|
+
export const uri = (field: string) => {
|
|
6
|
+
return joinAllUri(parentUri(), 'hit', field);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const post = (field: string, request?: HowlerHistogramSearchRequest): Promise<HowlerHistogramSearchResponse> => {
|
|
10
|
+
return hpost(uri(field), { ...(request || {}), query: request?.query || 'howler.id:*' });
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import * as hit from '@cccsaurora/howler-ui/api/search/histogram/hit';
|
|
4
|
+
|
|
5
|
+
export const uri = () => {
|
|
6
|
+
return joinUri(parentUri(), 'histogram');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type HowlerHistogramSearchRequest = {
|
|
10
|
+
query?: string;
|
|
11
|
+
mincount?: number;
|
|
12
|
+
filters?: string[];
|
|
13
|
+
start?: string | number;
|
|
14
|
+
end?: string | number;
|
|
15
|
+
gap?: string | number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type HowlerHistogramSearchResponse = { [timestamp: string]: number };
|
|
19
|
+
|
|
20
|
+
export { hit };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { hpost, joinUri } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
3
|
+
import { uri as parentUri } from '@cccsaurora/howler-ui/api/search';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
|
+
|
|
6
|
+
import * as eql from '@cccsaurora/howler-ui/api/search/eql/hit';
|
|
7
|
+
import * as sigma from '@cccsaurora/howler-ui/api/search/sigma/hit';
|
|
8
|
+
|
|
9
|
+
export const uri = () => {
|
|
10
|
+
return joinUri(parentUri(), 'hit');
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<Hit>> => {
|
|
14
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'howler.id:*' });
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { eql, sigma };
|