@aakash58/chatbot 1.1.21 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -298
- package/esm2022/aakash58-chatbot.mjs +5 -0
- package/esm2022/lib/app/chat/chat-ui-state.service.mjs +170 -0
- package/esm2022/lib/app/chat/chat.service.mjs +445 -0
- package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +50 -0
- package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +12 -0
- package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +66 -0
- package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +186 -0
- package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +312 -0
- package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +36 -0
- package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +115 -0
- package/esm2022/lib/app/chat/model/chat-history.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-request.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-response.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-session.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +2 -0
- package/esm2022/lib/app/chat/services/chat-api.service.mjs +61 -0
- package/esm2022/lib/app/chat/services/chat-audio.service.mjs +50 -0
- package/esm2022/lib/app/chat/services/chat-history.service.mjs +252 -0
- package/esm2022/lib/app/login/login-form.component.mjs +46 -0
- package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +194 -0
- package/esm2022/lib/app/personalization/personalization.service.mjs +149 -0
- package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +122 -0
- package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +86 -0
- package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +115 -0
- package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +29 -0
- package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +30 -0
- package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +12 -0
- package/esm2022/lib/constant/doohbot-constant.mjs +28 -0
- package/esm2022/lib/constant/html-entities.mjs +9 -0
- package/esm2022/lib/constant/utf8.mjs +10 -0
- package/esm2022/lib/core/app-const.mjs +61 -0
- package/esm2022/lib/core/auth/account-api.service.mjs +40 -0
- package/esm2022/lib/core/auth/auth.service.mjs +391 -0
- package/esm2022/lib/core/auth/models/auth-result.model.mjs +3 -0
- package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +6 -0
- package/esm2022/lib/core/auth/models/login-request.model.mjs +6 -0
- package/esm2022/lib/core/auth/storage.service.mjs +110 -0
- package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +112 -0
- package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +55 -0
- package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +179 -0
- package/esm2022/lib/core/environments/environment.mjs +15 -0
- package/esm2022/lib/core/environments/environment.prod.mjs +15 -0
- package/esm2022/lib/core/helpers/crypto-helper.service.mjs +52 -0
- package/esm2022/lib/core/http/http-stream.service.mjs +97 -0
- package/esm2022/lib/core/http/http.service.mjs +103 -0
- package/esm2022/lib/core/interceptors/auth.interceptor.mjs +96 -0
- package/esm2022/lib/core/interceptors/license.interceptor.mjs +44 -0
- package/esm2022/lib/core/models/api-config.model.mjs +18 -0
- package/esm2022/lib/core/models/api-request.model.mjs +2 -0
- package/esm2022/lib/core/models/api-response.model.mjs +8 -0
- package/esm2022/lib/core/models/doohbot-config.model.mjs +18 -0
- package/esm2022/lib/core/models/license.model.mjs +2 -0
- package/esm2022/lib/core/models/message.mjs +2 -0
- package/esm2022/lib/core/models/theme-config.model.mjs +2 -0
- package/esm2022/lib/core/services/core-config.service.mjs +52 -0
- package/esm2022/lib/core/services/license.service.mjs +145 -0
- package/esm2022/lib/core/services/markdown.service.mjs +64 -0
- package/esm2022/lib/core/services/theme.service.mjs +248 -0
- package/esm2022/lib/core/types/auth-mode.type.mjs +2 -0
- package/esm2022/lib/core/types/auth-status.type.mjs +5 -0
- package/esm2022/lib/core/types/chat-stream.type.mjs +2 -0
- package/esm2022/lib/core/types/message-role.type.mjs +2 -0
- package/esm2022/lib/core/types/prompt-mode.type.mjs +5 -0
- package/esm2022/lib/core/types/snackbar-error.type.mjs +5 -0
- package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +2 -0
- package/esm2022/lib/core/utils/logger.service.mjs +42 -0
- package/esm2022/lib/doohbot-input.mjs +20 -0
- package/esm2022/lib/doohbot.component.mjs +444 -0
- package/esm2022/lib/predefined_messages.mjs +15 -0
- package/esm2022/lib/shared/chips/chips.component.mjs +28 -0
- package/esm2022/lib/shared/dialog/dialog.component.mjs +36 -0
- package/esm2022/lib/shared/dialog/dialog.service.mjs +64 -0
- package/esm2022/lib/shared/dialog/dialog.utils.mjs +85 -0
- package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +29 -0
- package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +38 -0
- package/esm2022/lib/shared/menu-item/menu-item.component.mjs +24 -0
- package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +27 -0
- package/esm2022/lib/shared/snackbar/snackbar.component.mjs +43 -0
- package/esm2022/lib/shared/snackbar/snackbar.service.mjs +46 -0
- package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +43 -0
- package/esm2022/public-api.mjs +37 -0
- package/fesm2022/aakash58-chatbot.mjs +5193 -0
- package/fesm2022/aakash58-chatbot.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/app/chat/chat-ui-state.service.d.ts +96 -0
- package/lib/app/chat/chat.service.d.ts +88 -0
- package/lib/app/chat/components/chat-button/chat-button.component.d.ts +16 -0
- package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +5 -0
- package/lib/app/chat/components/chat-header/chat-header.component.d.ts +24 -0
- package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +49 -0
- package/lib/app/chat/components/chat-window/chat-window.component.d.ts +107 -0
- package/lib/app/chat/components/message-input/message-input.component.d.ts +12 -0
- package/lib/app/chat/components/message-list/message-list.component.d.ts +40 -0
- package/lib/app/chat/model/chat-history.model.d.ts +51 -0
- package/lib/app/chat/model/chat-request.model.d.ts +10 -0
- package/lib/app/chat/model/chat-response.model.d.ts +9 -0
- package/lib/app/chat/model/chat-session.model.d.ts +12 -0
- package/{projects/doohbot/src/lib/app/chat/model/chat-stream-message.model.ts → lib/app/chat/model/chat-stream-message.model.d.ts} +5 -6
- package/lib/app/chat/model/chat-stream-response.model.d.ts +10 -0
- package/lib/app/chat/services/chat-api.service.d.ts +30 -0
- package/lib/app/chat/services/chat-audio.service.d.ts +19 -0
- package/lib/app/chat/services/chat-history.service.d.ts +53 -0
- package/lib/app/login/login-form.component.d.ts +20 -0
- package/lib/app/personalization/personalization-dialog.component.d.ts +53 -0
- package/lib/app/personalization/personalization.service.d.ts +66 -0
- package/lib/app/personalization/sections/account/account-section.component.d.ts +30 -0
- package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +17 -0
- package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +27 -0
- package/lib/app/personalization/sections/profile/profile-section.component.d.ts +17 -0
- package/lib/app/personalization/sections/settings/setting-section.component.d.ts +10 -0
- package/lib/app/personalization/sections/terms/terms-section.component.d.ts +5 -0
- package/lib/constant/doohbot-constant.d.ts +12 -0
- package/lib/constant/html-entities.d.ts +8 -0
- package/lib/constant/utf8.d.ts +9 -0
- package/lib/core/app-const.d.ts +11 -0
- package/lib/core/auth/account-api.service.d.ts +20 -0
- package/lib/core/auth/auth.service.d.ts +90 -0
- package/lib/core/auth/models/auth-result.model.d.ts +4 -0
- package/lib/core/auth/models/federated-login-request.model.d.ts +5 -0
- package/lib/core/auth/models/login-request.model.d.ts +6 -0
- package/lib/core/auth/storage.service.d.ts +21 -0
- package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +23 -0
- package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +14 -0
- package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +30 -0
- package/lib/core/environments/environment.d.ts +7 -0
- package/lib/core/environments/environment.prod.d.ts +7 -0
- package/lib/core/helpers/crypto-helper.service.d.ts +12 -0
- package/lib/core/http/http-stream.service.d.ts +18 -0
- package/lib/core/http/http.service.d.ts +20 -0
- package/lib/core/interceptors/auth.interceptor.d.ts +18 -0
- package/lib/core/interceptors/license.interceptor.d.ts +11 -0
- package/lib/core/models/api-config.model.d.ts +58 -0
- package/lib/core/models/api-request.model.d.ts +77 -0
- package/lib/core/models/api-response.model.d.ts +6 -0
- package/lib/core/models/doohbot-config.model.d.ts +81 -0
- package/{projects/doohbot/src/lib/core/models/license.model.ts → lib/core/models/license.model.d.ts} +23 -27
- package/lib/core/models/message.d.ts +16 -0
- package/lib/core/models/theme-config.model.d.ts +28 -0
- package/lib/core/services/core-config.service.d.ts +23 -0
- package/lib/core/services/license.service.d.ts +33 -0
- package/lib/core/services/markdown.service.d.ts +8 -0
- package/lib/core/services/theme.service.d.ts +40 -0
- package/{projects/doohbot/src/lib/core/types/auth-mode.type.ts → lib/core/types/auth-mode.type.d.ts} +4 -4
- package/{projects/doohbot/src/lib/core/types/auth-status.type.ts → lib/core/types/auth-status.type.d.ts} +4 -5
- package/{projects/doohbot/src/lib/core/types/chat-stream.type.ts → lib/core/types/chat-stream.type.d.ts} +4 -4
- package/{projects/doohbot/src/lib/core/types/message-role.type.ts → lib/core/types/message-role.type.d.ts} +4 -4
- package/{projects/doohbot/src/lib/core/types/prompt-mode.type.ts → lib/core/types/prompt-mode.type.d.ts} +4 -5
- package/{projects/doohbot/src/lib/core/types/snackbar-error.type.ts → lib/core/types/snackbar-error.type.d.ts} +4 -5
- package/{projects/doohbot/src/lib/core/types/tenant-resolution-strategy.type.ts → lib/core/types/tenant-resolution-strategy.type.d.ts} +4 -4
- package/lib/core/utils/logger.service.d.ts +11 -0
- package/lib/doohbot-input.d.ts +19 -0
- package/lib/doohbot.component.d.ts +108 -0
- package/lib/predefined_messages.d.ts +2 -0
- package/lib/shared/chips/chips.component.d.ts +10 -0
- package/lib/shared/dialog/dialog.component.d.ts +19 -0
- package/lib/shared/dialog/dialog.service.d.ts +29 -0
- package/lib/shared/dialog/dialog.utils.d.ts +41 -0
- package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +11 -0
- package/lib/shared/input-dialog/input-dialog.component.d.ts +20 -0
- package/lib/shared/menu-item/menu-item.component.d.ts +9 -0
- package/lib/shared/pipes/simple-markdown.pipe.d.ts +10 -0
- package/lib/shared/snackbar/snackbar.component.d.ts +14 -0
- package/lib/shared/snackbar/snackbar.service.d.ts +19 -0
- package/{projects/doohbot/src/lib/shared/snackbar/snackbar.utils.ts → lib/shared/snackbar/snackbar.utils.d.ts} +33 -49
- package/package.json +29 -75
- package/public-api.d.ts +11 -0
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -41
- package/.vscode/settings.json +0 -14
- package/.vscode/tasks.json +0 -60
- package/angular.json +0 -132
- package/docs/PUBLISHING_GUIDE.md +0 -104
- package/projects/app-doohbot/public/assets/const/app-const.json +0 -15
- package/projects/app-doohbot/public/assets/const/doohclick_license.json +0 -6
- package/projects/app-doohbot/public/favicon.ico +0 -0
- package/projects/app-doohbot/src/app/app.config.ts +0 -13
- package/projects/app-doohbot/src/app/app.html +0 -31
- package/projects/app-doohbot/src/app/app.routes.ts +0 -3
- package/projects/app-doohbot/src/app/app.scss +0 -279
- package/projects/app-doohbot/src/app/app.spec.ts +0 -23
- package/projects/app-doohbot/src/app/app.ts +0 -72
- package/projects/app-doohbot/src/index.html +0 -15
- package/projects/app-doohbot/src/main.ts +0 -6
- package/projects/app-doohbot/src/styles.scss +0 -15
- package/projects/app-doohbot/tsconfig.app.json +0 -15
- package/projects/app-doohbot/tsconfig.spec.json +0 -14
- package/projects/doohbot/README.md +0 -64
- package/projects/doohbot/docs/README.md +0 -140
- package/projects/doohbot/ng-package.json +0 -10
- package/projects/doohbot/package.json +0 -16
- package/projects/doohbot/src/lib/app/chat/chat-ui-state.service.ts +0 -194
- package/projects/doohbot/src/lib/app/chat/chat.service.ts +0 -547
- package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.html +0 -27
- package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.scss +0 -115
- package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.ts +0 -35
- package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.html +0 -3
- package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +0 -20
- package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.ts +0 -12
- package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.html +0 -34
- package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.scss +0 -78
- package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.ts +0 -52
- package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.html +0 -77
- package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +0 -346
- package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.ts +0 -188
- package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.html +0 -146
- package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.scss +0 -187
- package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.ts +0 -256
- package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.html +0 -17
- package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.scss +0 -59
- package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.ts +0 -28
- package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.html +0 -138
- package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.scss +0 -436
- package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.ts +0 -106
- package/projects/doohbot/src/lib/app/chat/model/chat-history.model.ts +0 -57
- package/projects/doohbot/src/lib/app/chat/model/chat-request.model.ts +0 -17
- package/projects/doohbot/src/lib/app/chat/model/chat-response.model.ts +0 -9
- package/projects/doohbot/src/lib/app/chat/model/chat-session.model.ts +0 -14
- package/projects/doohbot/src/lib/app/chat/model/chat-stream-response.model.ts +0 -12
- package/projects/doohbot/src/lib/app/chat/services/chat-api.service.ts +0 -82
- package/projects/doohbot/src/lib/app/chat/services/chat-audio.service.ts +0 -44
- package/projects/doohbot/src/lib/app/chat/services/chat-history.service.ts +0 -303
- package/projects/doohbot/src/lib/app/login/login-form.component.html +0 -80
- package/projects/doohbot/src/lib/app/login/login-form.component.scss +0 -189
- package/projects/doohbot/src/lib/app/login/login-form.component.ts +0 -45
- package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.html +0 -81
- package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.scss +0 -179
- package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.ts +0 -217
- package/projects/doohbot/src/lib/app/personalization/personalization.service.ts +0 -197
- package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.html +0 -111
- package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.scss +0 -218
- package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.ts +0 -121
- package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.html +0 -46
- package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.scss +0 -138
- package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.ts +0 -28
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/color-picker-dialog.component.ts +0 -92
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.html +0 -198
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +0 -107
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.ts +0 -103
- package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.html +0 -46
- package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.scss +0 -131
- package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.ts +0 -23
- package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.html +0 -33
- package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.scss +0 -61
- package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.ts +0 -20
- package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.html +0 -30
- package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.scss +0 -59
- package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.ts +0 -12
- package/projects/doohbot/src/lib/constant/doohbot-constant.ts +0 -40
- package/projects/doohbot/src/lib/constant/html-entities.ts +0 -8
- package/projects/doohbot/src/lib/constant/utf8.ts +0 -9
- package/projects/doohbot/src/lib/core/app-const.ts +0 -63
- package/projects/doohbot/src/lib/core/auth/account-api.service.ts +0 -53
- package/projects/doohbot/src/lib/core/auth/auth.service.ts +0 -478
- package/projects/doohbot/src/lib/core/auth/models/auth-result.model.ts +0 -4
- package/projects/doohbot/src/lib/core/auth/models/federated-login-request.model.ts +0 -5
- package/projects/doohbot/src/lib/core/auth/models/login-request.model.ts +0 -6
- package/projects/doohbot/src/lib/core/auth/storage.service.ts +0 -113
- package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.directive.ts +0 -123
- package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.module.ts +0 -9
- package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.directive.ts +0 -58
- package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.module.ts +0 -9
- package/projects/doohbot/src/lib/core/directives/popout/popout.directive.ts +0 -169
- package/projects/doohbot/src/lib/core/directives/popout/popout.module.ts +0 -9
- package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.directive.ts +0 -197
- package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.module.ts +0 -9
- package/projects/doohbot/src/lib/core/enums/api-request-state.enum.ts +0 -9
- package/projects/doohbot/src/lib/core/environments/environment.prod.ts +0 -14
- package/projects/doohbot/src/lib/core/environments/environment.ts +0 -14
- package/projects/doohbot/src/lib/core/helpers/crypto-helper.service.ts +0 -72
- package/projects/doohbot/src/lib/core/http/http-stream.service.ts +0 -105
- package/projects/doohbot/src/lib/core/http/http.service.ts +0 -148
- package/projects/doohbot/src/lib/core/interceptors/auth.interceptor.ts +0 -118
- package/projects/doohbot/src/lib/core/interceptors/license.interceptor.ts +0 -50
- package/projects/doohbot/src/lib/core/models/api-config.model.ts +0 -82
- package/projects/doohbot/src/lib/core/models/api-request.model.ts +0 -92
- package/projects/doohbot/src/lib/core/models/api-response.model.ts +0 -13
- package/projects/doohbot/src/lib/core/models/doohbot-config.model.ts +0 -109
- package/projects/doohbot/src/lib/core/models/message.ts +0 -18
- package/projects/doohbot/src/lib/core/models/theme-config.model.ts +0 -48
- package/projects/doohbot/src/lib/core/services/core-config.service.ts +0 -53
- package/projects/doohbot/src/lib/core/services/doohbot-api.service.ts +0 -207
- package/projects/doohbot/src/lib/core/services/license.service.ts +0 -171
- package/projects/doohbot/src/lib/core/services/markdown.service.ts +0 -73
- package/projects/doohbot/src/lib/core/services/theme.service.ts +0 -305
- package/projects/doohbot/src/lib/core/utils/error-handler.util.ts +0 -31
- package/projects/doohbot/src/lib/core/utils/logger.service.ts +0 -45
- package/projects/doohbot/src/lib/doohbot-input.ts +0 -19
- package/projects/doohbot/src/lib/doohbot.component.html +0 -34
- package/projects/doohbot/src/lib/doohbot.component.scss +0 -17
- package/projects/doohbot/src/lib/doohbot.component.spec.ts +0 -31
- package/projects/doohbot/src/lib/doohbot.component.ts +0 -545
- package/projects/doohbot/src/lib/elements.ts +0 -25
- package/projects/doohbot/src/lib/predefined_messages.ts +0 -14
- package/projects/doohbot/src/lib/shared/chips/chips.component.html +0 -9
- package/projects/doohbot/src/lib/shared/chips/chips.component.scss +0 -29
- package/projects/doohbot/src/lib/shared/chips/chips.component.spec.ts +0 -22
- package/projects/doohbot/src/lib/shared/chips/chips.component.ts +0 -20
- package/projects/doohbot/src/lib/shared/dialog/dialog.component.html +0 -29
- package/projects/doohbot/src/lib/shared/dialog/dialog.component.scss +0 -100
- package/projects/doohbot/src/lib/shared/dialog/dialog.component.ts +0 -42
- package/projects/doohbot/src/lib/shared/dialog/dialog.service.ts +0 -62
- package/projects/doohbot/src/lib/shared/dialog/dialog.utils.ts +0 -102
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.html +0 -30
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +0 -53
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.spec.ts +0 -22
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.ts +0 -35
- package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.html +0 -16
- package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.scss +0 -45
- package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.ts +0 -46
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.html +0 -5
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.scss +0 -0
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.spec.ts +0 -22
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.ts +0 -20
- package/projects/doohbot/src/lib/shared/pipes/simple-markdown.pipe.ts +0 -19
- package/projects/doohbot/src/lib/shared/popout/popout.html +0 -1
- package/projects/doohbot/src/lib/shared/popout/popout.scss +0 -0
- package/projects/doohbot/src/lib/shared/popout/popout.spec.ts +0 -23
- package/projects/doohbot/src/lib/shared/popout/popout.ts +0 -11
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.html +0 -7
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.scss +0 -125
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.spec.ts +0 -21
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.ts +0 -44
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.service.ts +0 -54
- package/projects/doohbot/src/lib/styles/_theme.scss +0 -132
- package/projects/doohbot/src/lib/styles/material-override.scss +0 -302
- package/projects/doohbot/src/lib/styles/utility.scss +0 -588
- package/projects/doohbot/src/public-api.ts +0 -42
- package/projects/doohbot/tsconfig.lib.json +0 -15
- package/projects/doohbot/tsconfig.lib.prod.json +0 -11
- package/projects/doohbot/tsconfig.spec.json +0 -10
- package/proxy.conf.json +0 -8
- package/publish.config.js +0 -25
- package/scripts/publishing/index.ts +0 -67
- package/scripts/publishing/pipeline/01-clean.ts +0 -11
- package/scripts/publishing/pipeline/02-validate-pre.ts +0 -8
- package/scripts/publishing/pipeline/03-build.ts +0 -7
- package/scripts/publishing/pipeline/04-validate-post.ts +0 -8
- package/scripts/publishing/pipeline/05-prepare-package.ts +0 -29
- package/scripts/publishing/pipeline/06-version.ts +0 -23
- package/scripts/publishing/pipeline/07-publish.ts +0 -14
- package/scripts/publishing/pipeline/08-cleanup.ts +0 -5
- package/scripts/publishing/types.ts +0 -36
- package/scripts/publishing/utils/command.ts +0 -15
- package/scripts/publishing/utils/config.ts +0 -17
- package/scripts/validate.ts +0 -166
- package/tsconfig.json +0 -45
- package/tsconfig.scripts.json +0 -15
- /package/{projects/doohbot/src → src}/assets/bot.mp3 +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ChatSession } from '../model/chat-session.model';
|
|
3
|
+
import { Message } from '../../../core/models/message';
|
|
4
|
+
import { ChatSessionResponse } from '../model/chat-history.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChatHistoryService {
|
|
7
|
+
private chatApiService;
|
|
8
|
+
sessions: import("@angular/core").WritableSignal<ChatSession[]>;
|
|
9
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
isLoadingMore: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
hasMore: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
historyOffset: import("@angular/core").WritableSignal<number>;
|
|
13
|
+
isCacheValid: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
processingSessionId: import("@angular/core").WritableSignal<string | null>;
|
|
15
|
+
/**
|
|
16
|
+
* Map API session response to ChatSession model
|
|
17
|
+
*/
|
|
18
|
+
mapSessionResponseToSession(sessionResponse: ChatSessionResponse, userId: string): ChatSession;
|
|
19
|
+
/**
|
|
20
|
+
* Load all chat sessions for a specific user
|
|
21
|
+
*/
|
|
22
|
+
loadSessions(userId: string, forceRefresh?: boolean): void;
|
|
23
|
+
/**
|
|
24
|
+
* Load more sessions for infinite scroll
|
|
25
|
+
*/
|
|
26
|
+
loadMoreSessions(userId: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Load messages for a specific session
|
|
29
|
+
*/
|
|
30
|
+
loadSessionMessages(sessionId: string): Observable<Message[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Delete a specific session
|
|
33
|
+
*/
|
|
34
|
+
deleteSession(sessionId: string, userId: string): Observable<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Delete all history
|
|
37
|
+
*/
|
|
38
|
+
deleteAllHistory(userId: string): Observable<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Update session title
|
|
41
|
+
*/
|
|
42
|
+
updateSessionTitle(sessionId: string, newTitle: string, userId: string): Observable<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Invalidate cache
|
|
45
|
+
*/
|
|
46
|
+
invalidateCache(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Clear all history state
|
|
49
|
+
*/
|
|
50
|
+
clearState(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatHistoryService, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatHistoryService>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LoginFormComponent {
|
|
4
|
+
isLoggingIn: boolean;
|
|
5
|
+
loginSubmit: EventEmitter<{
|
|
6
|
+
username: string;
|
|
7
|
+
password: string;
|
|
8
|
+
rememberMe: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
cancel: EventEmitter<void>;
|
|
11
|
+
loginUsername: string;
|
|
12
|
+
loginPassword: string;
|
|
13
|
+
showPassword: boolean;
|
|
14
|
+
rememberMe: boolean;
|
|
15
|
+
togglePasswordVisibility(): void;
|
|
16
|
+
onLoginSubmit(): void;
|
|
17
|
+
onCancel(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginFormComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginFormComponent, "app-login-form", never, { "isLoggingIn": { "alias": "isLoggingIn"; "required": false; }; }, { "loginSubmit": "loginSubmit"; "cancel": "cancel"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { PersonalizationService, PersonalizationSettings } from './personalization.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PersonalizationDialogComponent implements OnDestroy {
|
|
5
|
+
private dialogRef;
|
|
6
|
+
private dialogService;
|
|
7
|
+
personalization: PersonalizationService;
|
|
8
|
+
private authService;
|
|
9
|
+
private chatHistory;
|
|
10
|
+
private snackbar;
|
|
11
|
+
settings: PersonalizationSettings;
|
|
12
|
+
activeSection: string;
|
|
13
|
+
sections: ({
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
type: string;
|
|
17
|
+
icon?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
type: string;
|
|
23
|
+
})[];
|
|
24
|
+
colorTokens: {
|
|
25
|
+
name: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
private themeService;
|
|
29
|
+
private originalColor;
|
|
30
|
+
private isSaved;
|
|
31
|
+
constructor();
|
|
32
|
+
onSave(): void;
|
|
33
|
+
onCancel(): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
onReset(): void;
|
|
36
|
+
selectTheme(theme: 'light' | 'dark' | 'auto'): void;
|
|
37
|
+
selectColor(color: string): void;
|
|
38
|
+
selectButtonStyle(style: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom'): void;
|
|
39
|
+
selectSection(sectionId: string): void;
|
|
40
|
+
get hasChanges(): boolean;
|
|
41
|
+
hasPreferencesChanges(): boolean;
|
|
42
|
+
hasInstructionChanges(): boolean;
|
|
43
|
+
get username(): string;
|
|
44
|
+
get userImageUrl(): string | null;
|
|
45
|
+
get userRole(): string;
|
|
46
|
+
isCustomColorSelected(): boolean;
|
|
47
|
+
onCustomColorChange(event: Event): void;
|
|
48
|
+
deleteAllHistory(): void;
|
|
49
|
+
logoutAllDevices(): void;
|
|
50
|
+
deleteAccount(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersonalizationDialogComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PersonalizationDialogComponent, "app-personalization-dialog", never, {}, {}, never, never, true, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface Characteristics {
|
|
3
|
+
warm: string;
|
|
4
|
+
enthusiastic: string;
|
|
5
|
+
headersAndLists: string;
|
|
6
|
+
emoji: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AboutYou {
|
|
9
|
+
nickname: string;
|
|
10
|
+
occupation: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CustomInstructions {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
aboutUser: string;
|
|
15
|
+
responseStyle: string;
|
|
16
|
+
characteristics: Characteristics;
|
|
17
|
+
aboutYou: AboutYou;
|
|
18
|
+
}
|
|
19
|
+
export interface AppearanceSettings {
|
|
20
|
+
theme: 'light' | 'dark' | 'auto';
|
|
21
|
+
primaryColor: string;
|
|
22
|
+
buttonStyle: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
|
|
23
|
+
}
|
|
24
|
+
export interface PersonalizationSettings {
|
|
25
|
+
customInstructions: CustomInstructions;
|
|
26
|
+
appearance: AppearanceSettings;
|
|
27
|
+
meta: {
|
|
28
|
+
version: number;
|
|
29
|
+
lastUpdated: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare class PersonalizationService {
|
|
33
|
+
private storage;
|
|
34
|
+
private authService;
|
|
35
|
+
private authStatus;
|
|
36
|
+
private _settings;
|
|
37
|
+
settings: import("@angular/core").Signal<PersonalizationSettings>;
|
|
38
|
+
private _developerDefaults;
|
|
39
|
+
readonly developerDefaults: import("@angular/core").Signal<Partial<AppearanceSettings>>;
|
|
40
|
+
constructor();
|
|
41
|
+
private getStorageKey;
|
|
42
|
+
/**
|
|
43
|
+
* Update custom instructions
|
|
44
|
+
*/
|
|
45
|
+
updateInstructions(instructions: Partial<CustomInstructions>): void;
|
|
46
|
+
/**
|
|
47
|
+
* Update appearance settings
|
|
48
|
+
*/
|
|
49
|
+
updateAppearance(appearance: Partial<AppearanceSettings>): void;
|
|
50
|
+
/**
|
|
51
|
+
* Set initial developer defaults (called from DoohbotComponent)
|
|
52
|
+
*/
|
|
53
|
+
setDeveloperDefaults(defaults: Partial<AppearanceSettings>): void;
|
|
54
|
+
/**
|
|
55
|
+
* Reset all personalization to defaults
|
|
56
|
+
*/
|
|
57
|
+
resetToDefaults(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Get the formatted instructions block for chat requests
|
|
60
|
+
*/
|
|
61
|
+
getFormattedInstructions(): string;
|
|
62
|
+
private loadSettings;
|
|
63
|
+
private saveSettings;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersonalizationService, never>;
|
|
65
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PersonalizationService>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ActiveSession {
|
|
4
|
+
id: string;
|
|
5
|
+
device: string;
|
|
6
|
+
location: string;
|
|
7
|
+
created: string;
|
|
8
|
+
updated: string;
|
|
9
|
+
isCurrent?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class AccountSectionComponent {
|
|
12
|
+
private dialogService;
|
|
13
|
+
private authService;
|
|
14
|
+
private cd;
|
|
15
|
+
organizationId: string;
|
|
16
|
+
isCopied: boolean;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
onDeleteAllHistory: EventEmitter<void>;
|
|
19
|
+
onLogoutAll: EventEmitter<void>;
|
|
20
|
+
onLogoutSession: EventEmitter<string>;
|
|
21
|
+
onDeleteAccount: EventEmitter<void>;
|
|
22
|
+
sessions: ActiveSession[];
|
|
23
|
+
copyOrgId(): void;
|
|
24
|
+
confirmLogoutAll(): void;
|
|
25
|
+
confirmLogoutSession(session: ActiveSession): void;
|
|
26
|
+
confirmDeleteAllHistory(): void;
|
|
27
|
+
confirmDeleteAccount(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountSectionComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccountSectionComponent, "app-account-section", never, { "organizationId": { "alias": "organizationId"; "required": false; }; }, { "onDeleteAllHistory": "onDeleteAllHistory"; "onLogoutAll": "onLogoutAll"; "onLogoutSession": "onLogoutSession"; "onDeleteAccount": "onDeleteAccount"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ColorPickerDialogComponent {
|
|
4
|
+
dialogRef: MatDialogRef<ColorPickerDialogComponent>;
|
|
5
|
+
data: {
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
color: string;
|
|
9
|
+
constructor(dialogRef: MatDialogRef<ColorPickerDialogComponent>, data: {
|
|
10
|
+
color: string;
|
|
11
|
+
});
|
|
12
|
+
onColorInput(event: any): void;
|
|
13
|
+
onCancel(): void;
|
|
14
|
+
onConfirm(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerDialogComponent, "app-color-picker-dialog", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { PersonalizationSettings } from '../../personalization.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PreferencesSectionComponent {
|
|
6
|
+
private dialog;
|
|
7
|
+
constructor(dialog: MatDialog);
|
|
8
|
+
settings: PersonalizationSettings;
|
|
9
|
+
colorTokens: any[];
|
|
10
|
+
isCustomColorSelected: boolean;
|
|
11
|
+
defaultColor: string;
|
|
12
|
+
onThemeSelect: EventEmitter<"auto" | "light" | "dark">;
|
|
13
|
+
onColorSelect: EventEmitter<string>;
|
|
14
|
+
onButtonStyleSelect: EventEmitter<"fab" | "sidebar" | "sidebar-top" | "sidebar-bottom">;
|
|
15
|
+
onSave: EventEmitter<void>;
|
|
16
|
+
onReset: EventEmitter<void>;
|
|
17
|
+
onCustomColorChange(event: Event): void;
|
|
18
|
+
getSelectedColorName(): string;
|
|
19
|
+
isCustomColor(): boolean;
|
|
20
|
+
getThemeIcon(theme: string): string;
|
|
21
|
+
getThemeLabel(theme: string): string;
|
|
22
|
+
getStyleIcon(style: string): string;
|
|
23
|
+
getStyleLabel(style: string): string;
|
|
24
|
+
openCustomColorPicker(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreferencesSectionComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreferencesSectionComponent, "app-preferences-section", never, { "settings": { "alias": "settings"; "required": false; }; "colorTokens": { "alias": "colorTokens"; "required": false; }; "isCustomColorSelected": { "alias": "isCustomColorSelected"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, { "onThemeSelect": "onThemeSelect"; "onColorSelect": "onColorSelect"; "onButtonStyleSelect": "onButtonStyleSelect"; "onSave": "onSave"; "onReset": "onReset"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProfileSectionComponent {
|
|
3
|
+
username: string;
|
|
4
|
+
userImageUrl: string | null;
|
|
5
|
+
userRole: string;
|
|
6
|
+
appEntity: {
|
|
7
|
+
amp: string;
|
|
8
|
+
lt: string;
|
|
9
|
+
gt: string;
|
|
10
|
+
quot: string;
|
|
11
|
+
apos: string;
|
|
12
|
+
at: string;
|
|
13
|
+
};
|
|
14
|
+
get initials(): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileSectionComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileSectionComponent, "app-profile-section", never, { "username": { "alias": "username"; "required": false; }; "userImageUrl": { "alias": "userImageUrl"; "required": false; }; "userRole": { "alias": "userRole"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PersonalizationSettings } from '../../personalization.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SettingSectionComponent {
|
|
5
|
+
settings: PersonalizationSettings;
|
|
6
|
+
hasChanges: boolean;
|
|
7
|
+
onSave: EventEmitter<void>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingSectionComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSectionComponent, "app-setting-section", never, { "settings": { "alias": "settings"; "required": false; }; "hasChanges": { "alias": "hasChanges"; "required": false; }; }, { "onSave": "onSave"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TermsSectionComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TermsSectionComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TermsSectionComponent, "app-terms-section", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const DoohbotConst: {
|
|
2
|
+
appTitle: string;
|
|
3
|
+
appSubtitle: string;
|
|
4
|
+
welcomeDescription: string;
|
|
5
|
+
hintText: string;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
appLogo: string;
|
|
8
|
+
appTextLogo: string;
|
|
9
|
+
appHeaderLogo: string;
|
|
10
|
+
userAvatar: string;
|
|
11
|
+
botAvatar: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReplaySubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AppConst {
|
|
4
|
+
static appBaseUrl: string;
|
|
5
|
+
static data: any;
|
|
6
|
+
config$: ReplaySubject<any>;
|
|
7
|
+
constructor();
|
|
8
|
+
load(): Promise<any>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppConst, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppConst>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpService } from '../http/http.service';
|
|
3
|
+
import { AuthResult } from './models/auth-result.model';
|
|
4
|
+
import { ApiResponse } from '../models/api-response.model';
|
|
5
|
+
import { LoginRequest } from './models/login-request.model';
|
|
6
|
+
import { FederatedLoginRequest } from './models/federated-login-request.model';
|
|
7
|
+
import { StorageService } from './storage.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class AccountService {
|
|
10
|
+
private http;
|
|
11
|
+
private tokenStorage;
|
|
12
|
+
constructor(http: HttpService, tokenStorage: StorageService);
|
|
13
|
+
login(param?: LoginRequest, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
|
|
14
|
+
federateLogin(param?: FederatedLoginRequest, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
|
|
15
|
+
private buildLicenceHeader;
|
|
16
|
+
refreshLogin(param?: object, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
|
|
17
|
+
logout(refreshToken: string, showLoader?: boolean): Observable<ApiResponse<void>>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { CoreConfigService } from '../services/core-config.service';
|
|
2
|
+
import { DoohbotInput } from '../../doohbot-input';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AuthResult } from './models/auth-result.model';
|
|
5
|
+
import { FederatedLoginRequest } from './models/federated-login-request.model';
|
|
6
|
+
import { LoginRequest } from './models/login-request.model';
|
|
7
|
+
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
8
|
+
import { CryptoHelperService } from '../helpers/crypto-helper.service';
|
|
9
|
+
import { StorageService } from './storage.service';
|
|
10
|
+
import { AuthStatus } from '../types/auth-status.type';
|
|
11
|
+
import { AccountService } from './account-api.service';
|
|
12
|
+
import { Router } from '@angular/router';
|
|
13
|
+
import { LicensingContext } from '../models/license.model';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
declare global {
|
|
16
|
+
interface Window {
|
|
17
|
+
storageEventAdded?: boolean;
|
|
18
|
+
tabCLoseEventAdded?: boolean;
|
|
19
|
+
abp?: any;
|
|
20
|
+
AppPreBootstrap?: any;
|
|
21
|
+
AppConsts?: any;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare class AuthService {
|
|
25
|
+
private accountService;
|
|
26
|
+
private cryptoHelper;
|
|
27
|
+
private tokenStorage;
|
|
28
|
+
private router;
|
|
29
|
+
private coreConfig;
|
|
30
|
+
get apiUrl(): string;
|
|
31
|
+
get storageKey(): string;
|
|
32
|
+
get secretKey(): string;
|
|
33
|
+
get companyCode(): string;
|
|
34
|
+
jwtHelper: JwtHelperService;
|
|
35
|
+
private advancedConfig;
|
|
36
|
+
private authStatusSubject;
|
|
37
|
+
authStatus$: Observable<AuthStatus>;
|
|
38
|
+
isLoggingIn: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
authError: import("@angular/core").WritableSignal<string | null>;
|
|
40
|
+
authSuccess: import("@angular/core").WritableSignal<string | null>;
|
|
41
|
+
constructor(accountService: AccountService, cryptoHelper: CryptoHelperService, tokenStorage: StorageService, router: Router, coreConfig: CoreConfigService);
|
|
42
|
+
/**
|
|
43
|
+
* Updates the service configuration from the component input
|
|
44
|
+
*/
|
|
45
|
+
updateConfig(config: DoohbotInput): void;
|
|
46
|
+
getLoggedInUserName(): string;
|
|
47
|
+
getLoggedInUserImageUrl(): string | null;
|
|
48
|
+
getLoggedInUserRole(): string;
|
|
49
|
+
get authStatus(): AuthStatus;
|
|
50
|
+
/**
|
|
51
|
+
* Resolves a federated token from browser storage
|
|
52
|
+
*/
|
|
53
|
+
private resolveSilentToken;
|
|
54
|
+
/**
|
|
55
|
+
* Authenticate user with federated credentials
|
|
56
|
+
*/
|
|
57
|
+
federatedLogin(credentials: Partial<FederatedLoginRequest>, silent?: boolean): Promise<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Authenticate user with credentials
|
|
60
|
+
*/
|
|
61
|
+
login(credentials: LoginRequest, silent?: boolean): Promise<boolean>;
|
|
62
|
+
logout(refreshToken?: string): Promise<boolean>;
|
|
63
|
+
setSession(session: AuthResult, rememberMe?: boolean): void;
|
|
64
|
+
getOrganizationId(): string | null;
|
|
65
|
+
getRefreshToken(): string | null;
|
|
66
|
+
refreshToken(): Observable<AuthResult>;
|
|
67
|
+
isAuthenticated(): boolean;
|
|
68
|
+
isTokenExpired(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Validate stored token on app startup
|
|
71
|
+
*/
|
|
72
|
+
validateStoredToken(): Observable<AuthStatus>;
|
|
73
|
+
getUserId(): any;
|
|
74
|
+
getLicensingContext(): LicensingContext;
|
|
75
|
+
get licenseKey(): string;
|
|
76
|
+
get isFederated(): boolean;
|
|
77
|
+
setLicenseKey(key: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* Clear all authentication related data from local storage, session storage, cache, and tokens.
|
|
80
|
+
* This method is called when the user logs out.
|
|
81
|
+
*/
|
|
82
|
+
clearAuth(): void;
|
|
83
|
+
clearSession(): void;
|
|
84
|
+
clearTabInfo(): void;
|
|
85
|
+
clearStorage(): void;
|
|
86
|
+
clearLocalStorage(): void;
|
|
87
|
+
clearCache(): void;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
89
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CoreConfigService } from '../services/core-config.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StorageService {
|
|
4
|
+
private coreConfig;
|
|
5
|
+
get storageKey(): string;
|
|
6
|
+
get secretKey(): string;
|
|
7
|
+
private storage;
|
|
8
|
+
constructor(coreConfig: CoreConfigService);
|
|
9
|
+
setRememberMe(rememberMe: boolean): void;
|
|
10
|
+
set(key: string, value: any): void;
|
|
11
|
+
get(key: string): any;
|
|
12
|
+
/**
|
|
13
|
+
* Check if storage is valid (can be decrypted) without side effects
|
|
14
|
+
*/
|
|
15
|
+
isValid(): boolean;
|
|
16
|
+
clear(): void;
|
|
17
|
+
private encrypt;
|
|
18
|
+
private decrypt;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DraggableDialogDirective implements OnInit, OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
private isDragging;
|
|
7
|
+
private startX;
|
|
8
|
+
private startY;
|
|
9
|
+
private offsetX;
|
|
10
|
+
private offsetY;
|
|
11
|
+
dragHandleSelector: string | undefined;
|
|
12
|
+
enableDrag: boolean;
|
|
13
|
+
private dragHandle;
|
|
14
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
private updateDragState;
|
|
18
|
+
onMouseDown(event: MouseEvent): void;
|
|
19
|
+
onMouseMove(event: MouseEvent): void;
|
|
20
|
+
onMouseUp(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DraggableDialogDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DraggableDialogDirective, "[draggableDialog]", never, { "dragHandleSelector": { "alias": "dragHandle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FullscreenDirective {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
private isFullScreen;
|
|
7
|
+
private preFullscreenState;
|
|
8
|
+
fullscreenTarget: string;
|
|
9
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
10
|
+
toggle(): void;
|
|
11
|
+
getFullscreenState(): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullscreenDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FullscreenDirective, "[appFullscreen]", never, { "fullscreenTarget": { "alias": "fullscreenTarget"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ResizableDialogDirective implements OnInit, OnDestroy, OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
private resizeHandles;
|
|
7
|
+
private activeHandle;
|
|
8
|
+
private startX;
|
|
9
|
+
private startY;
|
|
10
|
+
private startWidth;
|
|
11
|
+
private startHeight;
|
|
12
|
+
private startLeft;
|
|
13
|
+
private startTop;
|
|
14
|
+
enableResize: boolean;
|
|
15
|
+
private directions;
|
|
16
|
+
constructor(el: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
private updateResizeState;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
private setStyle;
|
|
22
|
+
private createResizeHandles;
|
|
23
|
+
private removeResizeHandles;
|
|
24
|
+
onMouseDown(event: MouseEvent): void;
|
|
25
|
+
onMouseMove(event: MouseEvent): void;
|
|
26
|
+
onMouseUp(): void;
|
|
27
|
+
private getComputedStyleValue;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizableDialogDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableDialogDirective, "[resizableDialog]", never, { "enableResize": { "alias": "enableResize"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CryptoHelperService {
|
|
3
|
+
private encoder;
|
|
4
|
+
private decoder;
|
|
5
|
+
private secretKey;
|
|
6
|
+
setSecretKey(key: string): void;
|
|
7
|
+
private getKey;
|
|
8
|
+
encrypt(value: string): Promise<string | null>;
|
|
9
|
+
decrypt(value: string): Promise<string | null>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { StorageService } from '../auth/storage.service';
|
|
5
|
+
import { ChatStreamResponse } from '../../app/chat/model/chat-stream-response.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class HttpStreamService {
|
|
8
|
+
private ngZone;
|
|
9
|
+
private tokenStorage;
|
|
10
|
+
private http;
|
|
11
|
+
constructor(ngZone: NgZone, tokenStorage: StorageService, http: HttpClient);
|
|
12
|
+
/**
|
|
13
|
+
* Creates a POST-based HTTP streaming connection using fetch()
|
|
14
|
+
*/
|
|
15
|
+
createHttpStream(url: string, body: any, headers?: Record<string, string>): Observable<ChatStreamResponse>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpStreamService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpStreamService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CoreConfigService } from '../services/core-config.service';
|
|
4
|
+
import { StorageService } from '../auth/storage.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class HttpService {
|
|
7
|
+
private http;
|
|
8
|
+
private tokenStorage;
|
|
9
|
+
private coreConfig;
|
|
10
|
+
get apiUrl(): string;
|
|
11
|
+
constructor(http: HttpClient, tokenStorage: StorageService, coreConfig: CoreConfigService);
|
|
12
|
+
get(url: string, param?: object, nestedParam?: boolean, showLoader?: boolean, refresh?: boolean, headers?: HttpHeaders): Observable<any>;
|
|
13
|
+
private buildHttpParams;
|
|
14
|
+
post(url: string, param?: object, showLoader?: boolean, headers?: HttpHeaders): Observable<any>;
|
|
15
|
+
patch(url: string, param?: object, showLoader?: boolean, headers?: HttpHeaders): Observable<any>;
|
|
16
|
+
delete(url: string, param?: object, showLoader?: boolean, headers?: HttpHeaders): Observable<any>;
|
|
17
|
+
private returnResponse;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
20
|
+
}
|