nucleus-core-ts 0.8.0
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/LICENSE +48 -0
- package/README.md +177 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/dist/index-0yyw12k6.d.ts +8 -0
- package/dist/dist/index-tv67j5qd.d.ts +488 -0
- package/dist/dist/index.d.ts +40 -0
- package/dist/fe/components/AbstractAnimatedBackground/index.d.ts +7 -0
- package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/ClaimList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/index.d.ts +9 -0
- package/dist/fe/components/AuthorizationPage/store/index.d.ts +47 -0
- package/dist/fe/components/AuthorizationPage/theme/index.d.ts +82 -0
- package/dist/fe/components/AuthorizationPage/types/index.d.ts +64 -0
- package/dist/fe/components/Button/components/Button.d.ts +3 -0
- package/dist/fe/components/Button/components/ButtonSpinner.d.ts +3 -0
- package/dist/fe/components/Button/index.d.ts +6 -0
- package/dist/fe/components/Button/theme/index.d.ts +183 -0
- package/dist/fe/components/Button/types/index.d.ts +24 -0
- package/dist/fe/components/Button/utils/cn.d.ts +3 -0
- package/dist/fe/components/Captcha/components/Captcha.d.ts +4 -0
- package/dist/fe/components/Captcha/index.d.ts +4 -0
- package/dist/fe/components/Captcha/theme.d.ts +53 -0
- package/dist/fe/components/Captcha/types.d.ts +60 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ChangePasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/ChangePasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ChangePasswordPage/types/index.d.ts +56 -0
- package/dist/fe/components/Checkbox/components/Checkbox.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/CheckboxIcon.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/SwitchTrack.d.ts +3 -0
- package/dist/fe/components/Checkbox/index.d.ts +7 -0
- package/dist/fe/components/Checkbox/theme/index.d.ts +218 -0
- package/dist/fe/components/Checkbox/types/index.d.ts +39 -0
- package/dist/fe/components/Checkbox/utils/cn.d.ts +3 -0
- package/dist/fe/components/DataTable/DataTable.d.ts +3 -0
- package/dist/fe/components/DataTable/components/ActionCell.d.ts +10 -0
- package/dist/fe/components/DataTable/components/DataCell.d.ts +18 -0
- package/dist/fe/components/DataTable/components/EditableCell.d.ts +14 -0
- package/dist/fe/components/DataTable/components/EmptyState.d.ts +8 -0
- package/dist/fe/components/DataTable/components/HeaderCell.d.ts +16 -0
- package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.d.ts +11 -0
- package/dist/fe/components/DataTable/components/LoadingSpinner.d.ts +7 -0
- package/dist/fe/components/DataTable/components/ResizeHandle.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SelectionCell.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonRow.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonTable.d.ts +10 -0
- package/dist/fe/components/DataTable/components/SortIcon.d.ts +9 -0
- package/dist/fe/components/DataTable/components/TableHeader.d.ts +20 -0
- package/dist/fe/components/DataTable/components/TableRow.d.ts +20 -0
- package/dist/fe/components/DataTable/components/index.d.ts +15 -0
- package/dist/fe/components/DataTable/hooks/index.d.ts +3 -0
- package/dist/fe/components/DataTable/hooks/useAutoFitColumn.d.ts +8 -0
- package/dist/fe/components/DataTable/hooks/useResizeColumn.d.ts +12 -0
- package/dist/fe/components/DataTable/index.d.ts +6 -0
- package/dist/fe/components/DataTable/store/index.d.ts +52 -0
- package/dist/fe/components/DataTable/theme/index.d.ts +131 -0
- package/dist/fe/components/DataTable/types/index.d.ts +151 -0
- package/dist/fe/components/DataTable/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarGrid.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarHeader.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/DatePicker.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/MonthYearSelector.d.ts +10 -0
- package/dist/fe/components/DatePicker/index.d.ts +10 -0
- package/dist/fe/components/DatePicker/locales/index.d.ts +5 -0
- package/dist/fe/components/DatePicker/theme/index.d.ts +312 -0
- package/dist/fe/components/DatePicker/types/index.d.ts +88 -0
- package/dist/fe/components/DatePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/utils/date.d.ts +21 -0
- package/dist/fe/components/DevicesPage/components/DeviceCard.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesHeader.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesPage.d.ts +4 -0
- package/dist/fe/components/DevicesPage/index.d.ts +8 -0
- package/dist/fe/components/DevicesPage/store/index.d.ts +20 -0
- package/dist/fe/components/DevicesPage/theme/index.d.ts +92 -0
- package/dist/fe/components/DevicesPage/types/index.d.ts +147 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ForgotPasswordPage/store/index.d.ts +14 -0
- package/dist/fe/components/ForgotPasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ForgotPasswordPage/types/index.d.ts +48 -0
- package/dist/fe/components/FormBuilder/components/FormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/components/FormField.d.ts +3 -0
- package/dist/fe/components/FormBuilder/hooks/useFormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/index.d.ts +6 -0
- package/dist/fe/components/FormBuilder/theme/index.d.ts +136 -0
- package/dist/fe/components/FormBuilder/types/index.d.ts +150 -0
- package/dist/fe/components/FormBuilder/utils/cn.d.ts +3 -0
- package/dist/fe/components/FormBuilder/utils/fieldMapping.d.ts +12 -0
- package/dist/fe/components/FormBuilder/utils/validation.d.ts +11 -0
- package/dist/fe/components/LoginPage/components/LoginForm.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginHeader.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginPage.d.ts +4 -0
- package/dist/fe/components/LoginPage/index.d.ts +8 -0
- package/dist/fe/components/LoginPage/store/index.d.ts +22 -0
- package/dist/fe/components/LoginPage/theme/index.d.ts +55 -0
- package/dist/fe/components/LoginPage/types/index.d.ts +129 -0
- package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.d.ts +4 -0
- package/dist/fe/components/MagicLinkVerifyPage/index.d.ts +5 -0
- package/dist/fe/components/MagicLinkVerifyPage/store.d.ts +15 -0
- package/dist/fe/components/MagicLinkVerifyPage/theme.d.ts +37 -0
- package/dist/fe/components/MagicLinkVerifyPage/types.d.ts +35 -0
- package/dist/fe/components/NucleusEntityShowcase.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/FloatingLabel.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/InputIcons.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/TypewriterText.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/index.d.ts +11 -0
- package/dist/fe/components/NucleusTextInput/theme/index.d.ts +108 -0
- package/dist/fe/components/NucleusTextInput/types/index.d.ts +65 -0
- package/dist/fe/components/NucleusTextInput/utils/cn.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/utils/format.d.ts +8 -0
- package/dist/fe/components/NucleusTextInput/utils/validation.d.ts +23 -0
- package/dist/fe/components/ProfilePage/components/AddressCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/PhoneCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfileHeader.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfilePage.d.ts +4 -0
- package/dist/fe/components/ProfilePage/index.d.ts +10 -0
- package/dist/fe/components/ProfilePage/store/index.d.ts +37 -0
- package/dist/fe/components/ProfilePage/theme/index.d.ts +101 -0
- package/dist/fe/components/ProfilePage/types/index.d.ts +150 -0
- package/dist/fe/components/RangePicker/components/RangePicker.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeThumb.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTooltip.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTrack.d.ts +3 -0
- package/dist/fe/components/RangePicker/index.d.ts +8 -0
- package/dist/fe/components/RangePicker/theme/index.d.ts +90 -0
- package/dist/fe/components/RangePicker/types/index.d.ts +66 -0
- package/dist/fe/components/RangePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/RegisterPage/components/RegisterForm.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterHeader.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterPage.d.ts +4 -0
- package/dist/fe/components/RegisterPage/index.d.ts +9 -0
- package/dist/fe/components/RegisterPage/store/index.d.ts +19 -0
- package/dist/fe/components/RegisterPage/theme/index.d.ts +81 -0
- package/dist/fe/components/RegisterPage/types/index.d.ts +141 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ResetPasswordPage/store/index.d.ts +15 -0
- package/dist/fe/components/ResetPasswordPage/theme/index.d.ts +56 -0
- package/dist/fe/components/ResetPasswordPage/types/index.d.ts +50 -0
- package/dist/fe/components/SearchBox/components/SearchBox.d.ts +3 -0
- package/dist/fe/components/SearchBox/components/SearchBoxDropdown.d.ts +3 -0
- package/dist/fe/components/SearchBox/index.d.ts +8 -0
- package/dist/fe/components/SearchBox/theme/index.d.ts +141 -0
- package/dist/fe/components/SearchBox/types/index.d.ts +47 -0
- package/dist/fe/components/SearchBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SearchBox/utils/debounce.d.ts +5 -0
- package/dist/fe/components/SearchBox/utils/sanitize.d.ts +9 -0
- package/dist/fe/components/SelectBox/components/SelectBox.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectDropdown.d.ts +6 -0
- package/dist/fe/components/SelectBox/components/SelectOptionItem.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectTrigger.d.ts +5 -0
- package/dist/fe/components/SelectBox/index.d.ts +8 -0
- package/dist/fe/components/SelectBox/theme/index.d.ts +100 -0
- package/dist/fe/components/SelectBox/types/index.d.ts +66 -0
- package/dist/fe/components/SelectBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/index.d.ts +9 -0
- package/dist/fe/components/SetPasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/SetPasswordPage/theme/index.d.ts +95 -0
- package/dist/fe/components/SetPasswordPage/types/index.d.ts +137 -0
- package/dist/fe/components/UsersPage/components/InviteUserModal.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/Pagination.d.ts +13 -0
- package/dist/fe/components/UsersPage/components/RoleAssignmentModal.d.ts +12 -0
- package/dist/fe/components/UsersPage/components/StatsCards.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/UserDetailDrawer.d.ts +24 -0
- package/dist/fe/components/UsersPage/components/UserFilters.d.ts +18 -0
- package/dist/fe/components/UsersPage/components/UserListItem.d.ts +11 -0
- package/dist/fe/components/UsersPage/components/UserListSkeleton.d.ts +7 -0
- package/dist/fe/components/UsersPage/components/UsersPage.d.ts +8 -0
- package/dist/fe/components/UsersPage/index.d.ts +13 -0
- package/dist/fe/components/UsersPage/store/index.d.ts +51 -0
- package/dist/fe/components/UsersPage/theme/index.d.ts +180 -0
- package/dist/fe/components/UsersPage/types/index.d.ts +73 -0
- package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.d.ts +4 -0
- package/dist/fe/components/VerifyEmailPage/index.d.ts +5 -0
- package/dist/fe/components/VerifyEmailPage/store/index.d.ts +18 -0
- package/dist/fe/components/VerifyEmailPage/theme/index.d.ts +49 -0
- package/dist/fe/components/VerifyEmailPage/types/index.d.ts +84 -0
- package/dist/fe/hooks/useNucleusEntity.d.ts +3 -0
- package/dist/fe/index.d.ts +42 -0
- package/dist/fe/index.js +1 -0
- package/dist/fe/types/index.d.ts +233 -0
- package/dist/fe/utils/cn.d.ts +3 -0
- package/dist/fe/utils/columnUtils.d.ts +63 -0
- package/dist/fe/utils/endpointKeys.d.ts +9 -0
- package/dist/index-0yyw12k6.js +1 -0
- package/dist/index-tv67j5qd.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/nucleus.config.d.ts +95 -0
- package/dist/public/components/CTA.d.ts +2 -0
- package/dist/public/components/Capabilities.d.ts +9 -0
- package/dist/public/components/Features.d.ts +9 -0
- package/dist/public/components/Footer.d.ts +2 -0
- package/dist/public/components/Hero.d.ts +2 -0
- package/dist/public/components/Managers.d.ts +7 -0
- package/dist/public/components/Nav.d.ts +2 -0
- package/dist/public/components/Stack.d.ts +7 -0
- package/dist/public/components/docs/Docs.d.ts +2 -0
- package/dist/public/components/docs/DocsContent.d.ts +19 -0
- package/dist/public/components/docs/DocsRightSidebar.d.ts +9 -0
- package/dist/public/components/docs/DocsSidebar.d.ts +8 -0
- package/dist/public/components/docs/content/authentication.d.ts +3 -0
- package/dist/public/components/docs/content/gettingStarted.d.ts +3 -0
- package/dist/public/components/docs/docsData.d.ts +18 -0
- package/dist/public/components/docs/index.d.ts +7 -0
- package/dist/public/components/index.d.ts +10 -0
- package/dist/public/index.d.ts +3 -0
- package/dist/public/store.d.ts +20 -0
- package/dist/scripts/build.d.ts +7 -0
- package/dist/scripts/generate-schema.d.ts +3 -0
- package/dist/scripts/generate-system-tables-types.d.ts +2 -0
- package/dist/scripts/generate-types-schema.d.ts +7 -0
- package/dist/scripts/publish.d.ts +7 -0
- package/dist/scripts/version.d.ts +7 -0
- package/dist/src/Client/ApiCaller/client.d.ts +5 -0
- package/dist/src/Client/ApiCaller/examples/usage.example.d.ts +8 -0
- package/dist/src/Client/ApiCaller/generator.d.ts +10 -0
- package/dist/src/Client/ApiCaller/index.d.ts +7 -0
- package/dist/src/Client/ApiCaller/server.d.ts +4 -0
- package/dist/src/Client/ApiCaller/system-tables.d.ts +1215 -0
- package/dist/src/Client/ApiCaller/types.d.ts +907 -0
- package/dist/src/Client/Proxy/httpProxy.d.ts +5 -0
- package/dist/src/Client/Proxy/index.d.ts +6 -0
- package/dist/src/Client/Proxy/index.js +1 -0
- package/dist/src/Client/Proxy/server.d.ts +5 -0
- package/dist/src/Client/Proxy/types.d.ts +69 -0
- package/dist/src/Client/Proxy/utils.d.ts +12 -0
- package/dist/src/Client/Proxy/wsProxy.d.ts +20 -0
- package/dist/src/Client/ServerFetch/index.d.ts +19 -0
- package/dist/src/Client/ServerFetch/types.d.ts +34 -0
- package/dist/src/Client/index.d.ts +4 -0
- package/dist/src/ElysiaPlugin/index.d.ts +12 -0
- package/dist/src/ElysiaPlugin/publicRoutes.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/captcha/index.d.ts +46 -0
- package/dist/src/ElysiaPlugin/routes/auth/emailVerification/index.d.ts +38 -0
- package/dist/src/ElysiaPlugin/routes/auth/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/invite/index.d.ts +43 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/types.d.ts +22 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/utils.d.ts +19 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/types.d.ts +6 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/index.d.ts +41 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/types.d.ts +23 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/utils.d.ts +4 -0
- package/dist/src/ElysiaPlugin/routes/auth/me/index.d.ts +40 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/types.d.ts +12 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/index.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/types.d.ts +16 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/utils.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/index.d.ts +47 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/types.d.ts +18 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/utils.d.ts +8 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/types.d.ts +67 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/utils.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/types.d.ts +153 -0
- package/dist/src/ElysiaPlugin/routes/entity/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/entity/types.d.ts +50 -0
- package/dist/src/ElysiaPlugin/routes/entity/utils.d.ts +11 -0
- package/dist/src/ElysiaPlugin/routes/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/monitoring/index.d.ts +58 -0
- package/dist/src/ElysiaPlugin/routes/storage/cdn.d.ts +51 -0
- package/dist/src/ElysiaPlugin/routes/storage/helpers.d.ts +53 -0
- package/dist/src/ElysiaPlugin/routes/storage/index.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/verification/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/swagger.d.ts +28 -0
- package/dist/src/ElysiaPlugin/utils.d.ts +70 -0
- package/dist/src/Managers/Dapr/clients/binding-client.d.ts +15 -0
- package/dist/src/Managers/Dapr/clients/config-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/crypto-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/invoke-client.d.ts +32 -0
- package/dist/src/Managers/Dapr/clients/lock-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/pubsub-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/secret-client.d.ts +19 -0
- package/dist/src/Managers/Dapr/clients/state-client.d.ts +55 -0
- package/dist/src/Managers/Dapr/clients/workflow-client.d.ts +39 -0
- package/dist/src/Managers/Dapr/connection-manager.d.ts +51 -0
- package/dist/src/Managers/Dapr/constants.d.ts +49 -0
- package/dist/src/Managers/Dapr/dapr-manager.d.ts +160 -0
- package/dist/src/Managers/Dapr/error-handling.d.ts +29 -0
- package/dist/src/Managers/Dapr/index.d.ts +102 -0
- package/dist/src/Managers/Dapr/types.d.ts +121 -0
- package/dist/src/Managers/Dapr/utils.d.ts +44 -0
- package/dist/src/Managers/File/atomic.d.ts +64 -0
- package/dist/src/Managers/File/core.d.ts +188 -0
- package/dist/src/Managers/File/index.d.ts +18 -0
- package/dist/src/Managers/File/permissions.d.ts +72 -0
- package/dist/src/Managers/File/streaming.d.ts +30 -0
- package/dist/src/Managers/File/types.d.ts +146 -0
- package/dist/src/Managers/File/utils.d.ts +112 -0
- package/dist/src/Managers/Postgre/index.d.ts +25 -0
- package/dist/src/Managers/Redis/index.d.ts +33 -0
- package/dist/src/Managers/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/types.d.ts +20 -0
- package/dist/src/Services/Auth/Fingerprint/utils.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Decode/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Sign/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Verify/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/index.d.ts +5 -0
- package/dist/src/Services/Auth/JWT/types.d.ts +38 -0
- package/dist/src/Services/Auth/JWT/utils.d.ts +10 -0
- package/dist/src/Services/Auth/Password/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/index.d.ts +2 -0
- package/dist/src/Services/Auth/Password/types.d.ts +16 -0
- package/dist/src/Services/Auth/RefreshToken/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/RefreshToken/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Read/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Validate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/index.d.ts +5 -0
- package/dist/src/Services/Auth/RefreshToken/types.d.ts +27 -0
- package/dist/src/Services/Auth/RefreshToken/utils.d.ts +6 -0
- package/dist/src/Services/Auth/Session/Issue/index.d.ts +9 -0
- package/dist/src/Services/Auth/Session/index.d.ts +2 -0
- package/dist/src/Services/Auth/Session/types.d.ts +13 -0
- package/dist/src/Services/Auth/SessionStore/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/SessionStore/Read/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Update/index.d.ts +24 -0
- package/dist/src/Services/Auth/SessionStore/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/index.d.ts +7 -0
- package/dist/src/Services/Auth/SessionStore/types.d.ts +59 -0
- package/dist/src/Services/Auth/SessionStore/utils.d.ts +6 -0
- package/dist/src/Services/Auth/index.d.ts +7 -0
- package/dist/src/Services/Authorization/ClaimSeeder/index.d.ts +6 -0
- package/dist/src/Services/Authorization/GodminSetup/index.d.ts +10 -0
- package/dist/src/Services/Authorization/Middleware/index.d.ts +21 -0
- package/dist/src/Services/Authorization/index.d.ts +5 -0
- package/dist/src/Services/Authorization/types.d.ts +68 -0
- package/dist/src/Services/Captcha/index.d.ts +15 -0
- package/dist/src/Services/Captcha/types.d.ts +69 -0
- package/dist/src/Services/Gmail/index.d.ts +62 -0
- package/dist/src/Services/Logger/Logger.d.ts +77 -0
- package/dist/src/Services/Logger/index.d.ts +5 -0
- package/dist/src/Services/Logger/transports.d.ts +54 -0
- package/dist/src/Services/Logger/types.d.ts +88 -0
- package/dist/src/Services/Logger/utils.d.ts +8 -0
- package/dist/src/Services/Monitoring/AlertService.d.ts +29 -0
- package/dist/src/Services/Monitoring/collectors/ApplicationCollector.d.ts +30 -0
- package/dist/src/Services/Monitoring/collectors/SystemCollector.d.ts +13 -0
- package/dist/src/Services/Monitoring/collectors/index.d.ts +3 -0
- package/dist/src/Services/Monitoring/index.d.ts +109 -0
- package/dist/src/Services/Monitoring/types.d.ts +163 -0
- package/dist/src/Services/Notification/index.d.ts +31 -0
- package/dist/src/Services/Notification/types.d.ts +59 -0
- package/dist/src/Services/RateLimiter/index.d.ts +99 -0
- package/dist/src/Services/Verification/index.d.ts +23 -0
- package/dist/src/Services/Verification/types.d.ts +135 -0
- package/dist/src/Services/index.d.ts +10 -0
- package/dist/src/types.d.ts +588 -0
- package/package.json +99 -0
- package/public/components/CTA.tsx +25 -0
- package/public/components/Capabilities.tsx +69 -0
- package/public/components/Features.tsx +107 -0
- package/public/components/Footer.tsx +60 -0
- package/public/components/Hero.tsx +53 -0
- package/public/components/Managers.tsx +60 -0
- package/public/components/Nav.tsx +107 -0
- package/public/components/Stack.tsx +36 -0
- package/public/components/docs/Docs.tsx +62 -0
- package/public/components/docs/DocsContent.tsx +203 -0
- package/public/components/docs/DocsRightSidebar.tsx +53 -0
- package/public/components/docs/DocsSidebar.tsx +62 -0
- package/public/components/docs/content/authentication.ts +1670 -0
- package/public/components/docs/content/gettingStarted.ts +627 -0
- package/public/components/docs/docsData.ts +36 -0
- package/public/components/docs/index.ts +6 -0
- package/public/components/index.ts +9 -0
- package/public/docs.css +633 -0
- package/public/index.html +81 -0
- package/public/index.tsx +52 -0
- package/public/store.ts +79 -0
- package/public/styles.css +877 -0
- package/schemas/bckp/config.nucleus.json +1488 -0
- package/schemas/bckp/nucleus.tables.schema.json +24 -0
- package/schemas/bckp/table.schema.json +472 -0
- package/schemas/config.nucleus.json +1010 -0
- package/schemas/nucleus.tables.schema.json +19 -0
- package/schemas/table.schema.json +498 -0
- package/scripts/build.ts +197 -0
- package/scripts/generate-schema.ts +556 -0
- package/scripts/generate-system-tables-types.ts +18 -0
- package/scripts/generate-types-schema.ts +962 -0
- package/scripts/publish.ts +210 -0
- package/scripts/version.ts +125 -0
- package/src/system.tables.json +1590 -0
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: <drizzle column builders are complex> */
|
|
2
|
+
import type { Algorithm } from "src/Services";
|
|
3
|
+
export type SystemTableFeatureSets = "authentication" | "authorization" | "audit" | "notification" | "verification";
|
|
4
|
+
export type GenericNucleusMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "TOGGLE" | "VERIFICATION";
|
|
5
|
+
export type NucleusColumnType = "integer" | "smallint" | "bigint" | "serial" | "smallserial" | "bigserial" | "real" | "doublePrecision" | "numeric" | "decimal" | "text" | "varchar" | "char" | "uuid" | "boolean" | "date" | "time" | "timestamp" | "timestamptz" | "interval" | "json" | "jsonb" | "bytea" | "inet" | "cidr" | "macaddr" | "macaddr8" | "bit" | "bitVarying" | "point" | "line" | "lseg" | "box" | "path" | "polygon" | "circle" | "tsvector" | "tsquery" | "xml" | "money" | "int4range" | "int8range" | "numrange" | "tsrange" | "tstzrange" | "daterange" | "int4multirange" | "int8multirange" | "nummultirange" | "tsmultirange" | "tstzmultirange" | "datemultirange" | "vector" | "geometry" | "geography" | "customType";
|
|
6
|
+
export type NucleusFKAction = "cascade" | "restrict" | "no action" | "set null" | "set default";
|
|
7
|
+
export type NucleusIndexMethod = "btree" | "hash" | "gist" | "spgist" | "gin" | "brin";
|
|
8
|
+
export type NucleusColumnMode = "string" | "date" | "json" | "number";
|
|
9
|
+
export interface NucleusColumnReference {
|
|
10
|
+
table: string;
|
|
11
|
+
column?: string;
|
|
12
|
+
onDelete?: NucleusFKAction;
|
|
13
|
+
onUpdate?: NucleusFKAction;
|
|
14
|
+
}
|
|
15
|
+
export interface NucleusColumnEnum {
|
|
16
|
+
name: string;
|
|
17
|
+
values: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface NucleusColumnValidation {
|
|
20
|
+
minLength?: number;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
min?: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
pattern?: string;
|
|
25
|
+
format?: "email" | "url" | "uuid" | "date" | "datetime" | "time" | "uri" | "ipv4" | "ipv6";
|
|
26
|
+
customMessage?: string;
|
|
27
|
+
}
|
|
28
|
+
export type NucleusSanitizeOption = "trim" | "lowercase" | "uppercase" | "escapeHtml" | "stripTags" | "normalizeEmail" | "toNumber" | "toBoolean" | "slugify";
|
|
29
|
+
export interface NucleusColumn {
|
|
30
|
+
name: string;
|
|
31
|
+
type: NucleusColumnType;
|
|
32
|
+
length?: number;
|
|
33
|
+
precision?: number;
|
|
34
|
+
scale?: number;
|
|
35
|
+
dimensions?: number;
|
|
36
|
+
mode?: NucleusColumnMode;
|
|
37
|
+
withTimezone?: boolean;
|
|
38
|
+
nullable?: boolean;
|
|
39
|
+
notNull?: boolean;
|
|
40
|
+
unique?: boolean;
|
|
41
|
+
primaryKey?: boolean;
|
|
42
|
+
default?: unknown;
|
|
43
|
+
defaultRaw?: string;
|
|
44
|
+
references?: NucleusColumnReference;
|
|
45
|
+
array?: boolean;
|
|
46
|
+
arrayDimensions?: number;
|
|
47
|
+
enumValues?: string[];
|
|
48
|
+
enum?: NucleusColumnEnum;
|
|
49
|
+
generatedAlwaysAs?: string;
|
|
50
|
+
generatedAlwaysAsIdentity?: boolean;
|
|
51
|
+
generatedByDefaultAsIdentity?: boolean;
|
|
52
|
+
check?: string;
|
|
53
|
+
comment?: string;
|
|
54
|
+
validation?: NucleusColumnValidation;
|
|
55
|
+
sanitize?: NucleusSanitizeOption[];
|
|
56
|
+
}
|
|
57
|
+
export interface NucleusIndex {
|
|
58
|
+
name?: string;
|
|
59
|
+
columns: string[];
|
|
60
|
+
unique?: boolean;
|
|
61
|
+
using?: NucleusIndexMethod;
|
|
62
|
+
where?: string;
|
|
63
|
+
concurrently?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface NucleusUniqueConstraint {
|
|
66
|
+
name?: string;
|
|
67
|
+
columns: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface NucleusCheckConstraint {
|
|
70
|
+
name?: string;
|
|
71
|
+
expression: string;
|
|
72
|
+
}
|
|
73
|
+
export interface NucleusConstraints {
|
|
74
|
+
primaryKey?: string[];
|
|
75
|
+
unique?: NucleusUniqueConstraint[];
|
|
76
|
+
check?: NucleusCheckConstraint[];
|
|
77
|
+
}
|
|
78
|
+
export interface NucleusTable {
|
|
79
|
+
table_name: string;
|
|
80
|
+
feature_set?: SystemTableFeatureSets[];
|
|
81
|
+
add_base_columns?: boolean;
|
|
82
|
+
is_form_data?: boolean;
|
|
83
|
+
available_app_ids?: string[];
|
|
84
|
+
available_schemas?: string[];
|
|
85
|
+
excluded_schemas?: string[];
|
|
86
|
+
excluded_methods?: GenericNucleusMethods[];
|
|
87
|
+
is_public?: Partial<Record<GenericNucleusMethods, boolean>>;
|
|
88
|
+
columns?: NucleusColumn[];
|
|
89
|
+
indexes?: NucleusIndex[];
|
|
90
|
+
constraints?: NucleusConstraints;
|
|
91
|
+
group_name?: string;
|
|
92
|
+
bulk_endpoints_enabled?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export type NucleusConfigProps = {
|
|
95
|
+
options: NucleusConfigOptions;
|
|
96
|
+
targetSchema?: string;
|
|
97
|
+
};
|
|
98
|
+
export interface NucleusConfigOptions {
|
|
99
|
+
appId: string;
|
|
100
|
+
mode?: "development" | "production";
|
|
101
|
+
database: {
|
|
102
|
+
url?: string;
|
|
103
|
+
type?: "postgres";
|
|
104
|
+
isMultiTenant?: boolean;
|
|
105
|
+
schemas?: string[];
|
|
106
|
+
allowDataLoss?: boolean;
|
|
107
|
+
};
|
|
108
|
+
redis: {
|
|
109
|
+
url?: string;
|
|
110
|
+
host?: string;
|
|
111
|
+
port?: number;
|
|
112
|
+
withDapr?: boolean;
|
|
113
|
+
stateStoreName?: string;
|
|
114
|
+
};
|
|
115
|
+
authentication?: {
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
passwordPolicy?: {
|
|
118
|
+
minLength?: number;
|
|
119
|
+
maxLength?: number;
|
|
120
|
+
requireUppercase?: boolean;
|
|
121
|
+
requireLowercase?: boolean;
|
|
122
|
+
requireNumber?: boolean;
|
|
123
|
+
requireSpecialChar?: boolean;
|
|
124
|
+
specialChars?: string;
|
|
125
|
+
preventCommonPasswords?: boolean;
|
|
126
|
+
preventUserInfoInPassword?: boolean;
|
|
127
|
+
showStrengthIndicator?: boolean;
|
|
128
|
+
};
|
|
129
|
+
accessToken?: {
|
|
130
|
+
secret?: string;
|
|
131
|
+
expiresIn?: string;
|
|
132
|
+
algorithm?: Algorithm;
|
|
133
|
+
issuer?: string;
|
|
134
|
+
audience?: string;
|
|
135
|
+
name?: string;
|
|
136
|
+
setHeadersEnabled?: boolean;
|
|
137
|
+
returnJson?: boolean;
|
|
138
|
+
};
|
|
139
|
+
refreshToken?: {
|
|
140
|
+
secret?: string;
|
|
141
|
+
expiresIn?: string;
|
|
142
|
+
algorithm?: Algorithm;
|
|
143
|
+
issuer?: string;
|
|
144
|
+
audience?: string;
|
|
145
|
+
name?: string;
|
|
146
|
+
setHeadersEnabled?: boolean;
|
|
147
|
+
returnJson?: boolean;
|
|
148
|
+
};
|
|
149
|
+
sessionToken?: {
|
|
150
|
+
secret?: string;
|
|
151
|
+
expiresIn?: string;
|
|
152
|
+
algorithm?: Algorithm;
|
|
153
|
+
issuer?: string;
|
|
154
|
+
audience?: string;
|
|
155
|
+
name?: string;
|
|
156
|
+
setHeadersEnabled?: boolean;
|
|
157
|
+
returnJson?: boolean;
|
|
158
|
+
};
|
|
159
|
+
login?: {
|
|
160
|
+
route?: string;
|
|
161
|
+
rememberMe: boolean;
|
|
162
|
+
isPublic: boolean;
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
redirectUrl?: string;
|
|
165
|
+
captcha?: {
|
|
166
|
+
enabled?: boolean;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
register?: {
|
|
170
|
+
route?: string;
|
|
171
|
+
isPublic: boolean;
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
showFirstName?: boolean;
|
|
174
|
+
showLastName?: boolean;
|
|
175
|
+
createProfileOnRegister?: boolean;
|
|
176
|
+
termsUrl?: string;
|
|
177
|
+
privacyUrl?: string;
|
|
178
|
+
emailVerification?: {
|
|
179
|
+
enabled?: boolean;
|
|
180
|
+
provider?: "gmail";
|
|
181
|
+
tokenExpiresIn?: string;
|
|
182
|
+
redirectUrl?: string;
|
|
183
|
+
resendCooldown?: string;
|
|
184
|
+
maxResendAttempts?: number;
|
|
185
|
+
templates?: {
|
|
186
|
+
verification?: {
|
|
187
|
+
subject?: string;
|
|
188
|
+
htmlTemplatePath?: string;
|
|
189
|
+
};
|
|
190
|
+
welcome?: {
|
|
191
|
+
enabled?: boolean;
|
|
192
|
+
subject?: string;
|
|
193
|
+
htmlTemplatePath?: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
logout?: {
|
|
199
|
+
route?: string;
|
|
200
|
+
isPublic: boolean;
|
|
201
|
+
enabled: boolean;
|
|
202
|
+
};
|
|
203
|
+
refresh?: {
|
|
204
|
+
route?: string;
|
|
205
|
+
isPublic: boolean;
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
};
|
|
208
|
+
passwordReset?: {
|
|
209
|
+
route?: string;
|
|
210
|
+
isPublic: boolean;
|
|
211
|
+
enabled: boolean;
|
|
212
|
+
redirectUrl?: string;
|
|
213
|
+
};
|
|
214
|
+
passwordChange?: {
|
|
215
|
+
route?: string;
|
|
216
|
+
isPublic: boolean;
|
|
217
|
+
enabled: boolean;
|
|
218
|
+
};
|
|
219
|
+
passwordSet?: {
|
|
220
|
+
route?: string;
|
|
221
|
+
isPublic: boolean;
|
|
222
|
+
enabled: boolean;
|
|
223
|
+
};
|
|
224
|
+
sessions?: {
|
|
225
|
+
route?: string;
|
|
226
|
+
isPublic: boolean;
|
|
227
|
+
enabled: boolean;
|
|
228
|
+
maxActiveSessions?: number;
|
|
229
|
+
inactivityTimeout?: string;
|
|
230
|
+
allowMultipleDevices?: boolean;
|
|
231
|
+
trustNewDevices?: boolean;
|
|
232
|
+
notifyOnNewDevice?: boolean;
|
|
233
|
+
approvalRedirectUrl?: string;
|
|
234
|
+
};
|
|
235
|
+
magicLink?: {
|
|
236
|
+
route?: string;
|
|
237
|
+
verifyRoute?: string;
|
|
238
|
+
isPublic: boolean;
|
|
239
|
+
enabled: boolean;
|
|
240
|
+
expiresIn?: string;
|
|
241
|
+
redirectUrl?: string;
|
|
242
|
+
};
|
|
243
|
+
me?: {
|
|
244
|
+
route?: string;
|
|
245
|
+
isPublic?: boolean;
|
|
246
|
+
enabled?: boolean;
|
|
247
|
+
includeProfile?: boolean;
|
|
248
|
+
includeAddresses?: boolean;
|
|
249
|
+
includePhones?: boolean;
|
|
250
|
+
includeFiles?: boolean;
|
|
251
|
+
includeRoles?: boolean;
|
|
252
|
+
};
|
|
253
|
+
invite?: {
|
|
254
|
+
route?: string;
|
|
255
|
+
isPublic?: boolean;
|
|
256
|
+
enabled: boolean;
|
|
257
|
+
tokenExpiresIn?: string;
|
|
258
|
+
redirectUrl?: string;
|
|
259
|
+
};
|
|
260
|
+
emailVerification?: {
|
|
261
|
+
route?: string;
|
|
262
|
+
resendRoute?: string;
|
|
263
|
+
isPublic?: boolean;
|
|
264
|
+
enabled: boolean;
|
|
265
|
+
};
|
|
266
|
+
captcha?: {
|
|
267
|
+
route?: string;
|
|
268
|
+
isPublic?: boolean;
|
|
269
|
+
enabled: boolean;
|
|
270
|
+
type?: "math" | "image" | "puzzle" | "text";
|
|
271
|
+
difficulty?: "easy" | "medium" | "hard";
|
|
272
|
+
expiresIn?: string;
|
|
273
|
+
maxAttempts?: number;
|
|
274
|
+
caseSensitive?: boolean;
|
|
275
|
+
rateLimit?: {
|
|
276
|
+
maxGeneratePerMinute?: number;
|
|
277
|
+
maxGeneratePerHour?: number;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
verification?: {
|
|
282
|
+
enabled?: boolean;
|
|
283
|
+
autoResetOnRejection?: boolean;
|
|
284
|
+
requireSignatureByDefault?: boolean;
|
|
285
|
+
diffTrackingEnabled?: boolean;
|
|
286
|
+
endpoints?: {
|
|
287
|
+
enabled?: boolean;
|
|
288
|
+
basePath?: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
notification?: {
|
|
292
|
+
enabled?: boolean;
|
|
293
|
+
portalEnabled?: boolean;
|
|
294
|
+
emailEnabled?: boolean;
|
|
295
|
+
defaultChannel?: "portal" | "email" | "both";
|
|
296
|
+
templateVariables?: Record<string, string>;
|
|
297
|
+
};
|
|
298
|
+
authorization?: {
|
|
299
|
+
enabled?: boolean;
|
|
300
|
+
autoSeedClaims?: boolean;
|
|
301
|
+
skipTables?: string[];
|
|
302
|
+
skipColumns?: string[];
|
|
303
|
+
excludedPaths?: string[];
|
|
304
|
+
publicPaths?: string[];
|
|
305
|
+
godminEmail?: string;
|
|
306
|
+
godminPassword?: string;
|
|
307
|
+
};
|
|
308
|
+
audit?: {
|
|
309
|
+
enabled?: boolean;
|
|
310
|
+
actions?: {
|
|
311
|
+
GET?: boolean;
|
|
312
|
+
INSERT?: boolean;
|
|
313
|
+
UPDATE?: boolean;
|
|
314
|
+
DELETE?: boolean;
|
|
315
|
+
TOGGLE?: boolean;
|
|
316
|
+
VERIFICATION?: boolean;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
entities: NucleusTable[];
|
|
320
|
+
rateLimit?: {
|
|
321
|
+
enabled?: boolean;
|
|
322
|
+
strategy?: "sliding-window" | "fixed-window" | "token-bucket";
|
|
323
|
+
keyPrefix?: string;
|
|
324
|
+
authRoutes?: {
|
|
325
|
+
window?: string;
|
|
326
|
+
max?: number;
|
|
327
|
+
login?: {
|
|
328
|
+
window?: string;
|
|
329
|
+
max?: number;
|
|
330
|
+
blockDuration?: string;
|
|
331
|
+
};
|
|
332
|
+
register?: {
|
|
333
|
+
window?: string;
|
|
334
|
+
max?: number;
|
|
335
|
+
blockDuration?: string;
|
|
336
|
+
};
|
|
337
|
+
passwordReset?: {
|
|
338
|
+
window?: string;
|
|
339
|
+
max?: number;
|
|
340
|
+
blockDuration?: string;
|
|
341
|
+
};
|
|
342
|
+
magicLink?: {
|
|
343
|
+
window?: string;
|
|
344
|
+
max?: number;
|
|
345
|
+
blockDuration?: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
publicRoutes?: {
|
|
349
|
+
window?: string;
|
|
350
|
+
max?: number;
|
|
351
|
+
};
|
|
352
|
+
privateRoutes?: {
|
|
353
|
+
window?: string;
|
|
354
|
+
max?: number;
|
|
355
|
+
};
|
|
356
|
+
byIp?: boolean;
|
|
357
|
+
byUserId?: boolean;
|
|
358
|
+
byEndpoint?: boolean;
|
|
359
|
+
skipSuccessfulRequests?: boolean;
|
|
360
|
+
headers?: {
|
|
361
|
+
remaining?: string;
|
|
362
|
+
reset?: string;
|
|
363
|
+
limit?: string;
|
|
364
|
+
};
|
|
365
|
+
whitelist?: string[];
|
|
366
|
+
blacklist?: string[];
|
|
367
|
+
};
|
|
368
|
+
monitoring?: {
|
|
369
|
+
enabled?: boolean;
|
|
370
|
+
system?: {
|
|
371
|
+
enabled?: boolean;
|
|
372
|
+
collectInterval?: string;
|
|
373
|
+
metrics?: {
|
|
374
|
+
cpu?: boolean;
|
|
375
|
+
memory?: boolean;
|
|
376
|
+
disk?: boolean;
|
|
377
|
+
network?: boolean;
|
|
378
|
+
process?: boolean;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
application?: {
|
|
382
|
+
enabled?: boolean;
|
|
383
|
+
metrics?: {
|
|
384
|
+
requests?: boolean;
|
|
385
|
+
responseTime?: boolean;
|
|
386
|
+
errors?: boolean;
|
|
387
|
+
rateLimits?: boolean;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
database?: {
|
|
391
|
+
enabled?: boolean;
|
|
392
|
+
metrics?: {
|
|
393
|
+
connections?: boolean;
|
|
394
|
+
queryTime?: boolean;
|
|
395
|
+
slowQueryThreshold?: string;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
redis?: {
|
|
399
|
+
enabled?: boolean;
|
|
400
|
+
};
|
|
401
|
+
persistence?: {
|
|
402
|
+
enabled?: boolean;
|
|
403
|
+
flushInterval?: string;
|
|
404
|
+
retentionDays?: number;
|
|
405
|
+
};
|
|
406
|
+
alerts?: {
|
|
407
|
+
enabled?: boolean;
|
|
408
|
+
email?: {
|
|
409
|
+
enabled?: boolean;
|
|
410
|
+
recipients?: string[];
|
|
411
|
+
};
|
|
412
|
+
thresholds?: {
|
|
413
|
+
cpuPercent?: number;
|
|
414
|
+
memoryPercent?: number;
|
|
415
|
+
diskPercent?: number;
|
|
416
|
+
errorRatePercent?: number;
|
|
417
|
+
responseTimeMs?: number;
|
|
418
|
+
rateLimitBlocksPerMinute?: number;
|
|
419
|
+
};
|
|
420
|
+
cooldown?: string;
|
|
421
|
+
};
|
|
422
|
+
endpoints?: {
|
|
423
|
+
enabled?: boolean;
|
|
424
|
+
basePath?: string;
|
|
425
|
+
stream?: {
|
|
426
|
+
enabled?: boolean;
|
|
427
|
+
path?: string;
|
|
428
|
+
interval?: string;
|
|
429
|
+
};
|
|
430
|
+
snapshot?: {
|
|
431
|
+
enabled?: boolean;
|
|
432
|
+
path?: string;
|
|
433
|
+
};
|
|
434
|
+
history?: {
|
|
435
|
+
enabled?: boolean;
|
|
436
|
+
path?: string;
|
|
437
|
+
maxMinutes?: number;
|
|
438
|
+
};
|
|
439
|
+
alerts?: {
|
|
440
|
+
enabled?: boolean;
|
|
441
|
+
path?: string;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
email?: {
|
|
446
|
+
gmail?: {
|
|
447
|
+
enabled?: boolean;
|
|
448
|
+
json_file_path?: string;
|
|
449
|
+
from_email?: string;
|
|
450
|
+
from_name?: string;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
storage?: {
|
|
454
|
+
enabled?: boolean;
|
|
455
|
+
basePath?: string;
|
|
456
|
+
maxFileSizeBytes?: number;
|
|
457
|
+
allowedMimeTypes?: string[];
|
|
458
|
+
blockedMimeTypes?: string[];
|
|
459
|
+
cdn?: {
|
|
460
|
+
enabled?: boolean;
|
|
461
|
+
basePath?: string;
|
|
462
|
+
cacheMaxAge?: number;
|
|
463
|
+
enableRangeRequests?: boolean;
|
|
464
|
+
enableEtag?: boolean;
|
|
465
|
+
corsOrigins?: string[];
|
|
466
|
+
};
|
|
467
|
+
formData?: {
|
|
468
|
+
filesField?: string;
|
|
469
|
+
dataField?: string;
|
|
470
|
+
maxFiles?: number;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
export type SchemaTableRegistry = Record<string, any>;
|
|
475
|
+
export type StandardReturn<T> = {
|
|
476
|
+
success: boolean;
|
|
477
|
+
message?: string;
|
|
478
|
+
data?: T;
|
|
479
|
+
error?: Error | string;
|
|
480
|
+
};
|
|
481
|
+
export type SortDirection = "asc" | "desc";
|
|
482
|
+
export type FilterOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "in" | "notIn" | "isNull" | "isNotNull";
|
|
483
|
+
export interface FilterCondition {
|
|
484
|
+
field: string;
|
|
485
|
+
operator: FilterOperator;
|
|
486
|
+
value: unknown;
|
|
487
|
+
}
|
|
488
|
+
export interface SortCondition {
|
|
489
|
+
field: string;
|
|
490
|
+
direction: SortDirection;
|
|
491
|
+
}
|
|
492
|
+
export interface RelationQuery {
|
|
493
|
+
name: string;
|
|
494
|
+
columns?: string[];
|
|
495
|
+
where?: FilterCondition[];
|
|
496
|
+
limit?: number;
|
|
497
|
+
with?: RelationQuery[];
|
|
498
|
+
}
|
|
499
|
+
export interface StandardQueryParams {
|
|
500
|
+
page?: number;
|
|
501
|
+
limit?: number;
|
|
502
|
+
offset?: number;
|
|
503
|
+
search?: string;
|
|
504
|
+
searchFields?: string[];
|
|
505
|
+
filters?: FilterCondition[];
|
|
506
|
+
sort?: SortCondition[];
|
|
507
|
+
select?: string[];
|
|
508
|
+
with?: RelationQuery[];
|
|
509
|
+
distinct?: boolean;
|
|
510
|
+
distinctOn?: string[];
|
|
511
|
+
}
|
|
512
|
+
export interface PaginationMeta {
|
|
513
|
+
page: number;
|
|
514
|
+
limit: number;
|
|
515
|
+
offset: number;
|
|
516
|
+
totalItems: number;
|
|
517
|
+
totalPages: number;
|
|
518
|
+
hasNextPage: boolean;
|
|
519
|
+
hasPrevPage: boolean;
|
|
520
|
+
nextPage: number | null;
|
|
521
|
+
prevPage: number | null;
|
|
522
|
+
}
|
|
523
|
+
export interface PaginatedResult<T> {
|
|
524
|
+
items: T[];
|
|
525
|
+
meta: PaginationMeta;
|
|
526
|
+
}
|
|
527
|
+
export type PaginatedReturn<T> = StandardReturn<PaginatedResult<T>>;
|
|
528
|
+
export type Tokens = "access_token" | "refresh_token" | "session_token";
|
|
529
|
+
export type TokenNames = Record<Tokens, string>;
|
|
530
|
+
export type TokenValues = Record<Tokens, string | undefined>;
|
|
531
|
+
export type AuditPayload<T = unknown> = {
|
|
532
|
+
id: string;
|
|
533
|
+
user_id: string;
|
|
534
|
+
entity_name: string;
|
|
535
|
+
entity_id: string | null;
|
|
536
|
+
operation_type: string;
|
|
537
|
+
summary: string;
|
|
538
|
+
old_values: Record<string, T>;
|
|
539
|
+
new_values: Record<string, T>;
|
|
540
|
+
ip_address: string;
|
|
541
|
+
user_agent: string;
|
|
542
|
+
timestamp: string;
|
|
543
|
+
path: string;
|
|
544
|
+
query: string;
|
|
545
|
+
};
|
|
546
|
+
export interface NucleusSwaggerConfig {
|
|
547
|
+
enabled?: boolean;
|
|
548
|
+
path?: string;
|
|
549
|
+
provider?: "scalar" | "swagger-ui";
|
|
550
|
+
documentation?: {
|
|
551
|
+
info?: {
|
|
552
|
+
title?: string;
|
|
553
|
+
description?: string;
|
|
554
|
+
version?: string;
|
|
555
|
+
contact?: {
|
|
556
|
+
name?: string;
|
|
557
|
+
email?: string;
|
|
558
|
+
url?: string;
|
|
559
|
+
};
|
|
560
|
+
license?: {
|
|
561
|
+
name?: string;
|
|
562
|
+
url?: string;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
tags?: Array<{
|
|
566
|
+
name: string;
|
|
567
|
+
description?: string;
|
|
568
|
+
}>;
|
|
569
|
+
servers?: Array<{
|
|
570
|
+
url: string;
|
|
571
|
+
description?: string;
|
|
572
|
+
}>;
|
|
573
|
+
};
|
|
574
|
+
exclude?: (string | RegExp)[];
|
|
575
|
+
excludeStaticFile?: boolean;
|
|
576
|
+
scalarConfig?: Record<string, unknown>;
|
|
577
|
+
}
|
|
578
|
+
export interface NucleusElysiaPluginConfig {
|
|
579
|
+
options: NucleusConfigOptions | string;
|
|
580
|
+
schema: string;
|
|
581
|
+
relations: string;
|
|
582
|
+
targetSchemas?: string[];
|
|
583
|
+
swagger?: NucleusSwaggerConfig;
|
|
584
|
+
systemTables?: NucleusTable[];
|
|
585
|
+
/** Static assets path or false to disable. Defaults to `${process.cwd()}/public` */
|
|
586
|
+
staticAssets?: string | false;
|
|
587
|
+
}
|
|
588
|
+
//# sourceMappingURL=types.d.ts.map
|
package/package.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nucleus-core-ts",
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
|
+
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"backend",
|
|
9
|
+
"framework",
|
|
10
|
+
"elysia",
|
|
11
|
+
"drizzle",
|
|
12
|
+
"typescript"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"schemas",
|
|
17
|
+
"scripts",
|
|
18
|
+
"src/system.tables.json",
|
|
19
|
+
"public",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"module": "dist/index.js",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./client": {
|
|
31
|
+
"types": "./dist/client.d.ts",
|
|
32
|
+
"import": "./dist/client.js"
|
|
33
|
+
},
|
|
34
|
+
"./fe": {
|
|
35
|
+
"types": "./dist/fe/index.d.ts",
|
|
36
|
+
"import": "./dist/fe/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./proxy": {
|
|
39
|
+
"types": "./dist/src/Client/Proxy/index.d.ts",
|
|
40
|
+
"import": "./dist/src/Client/Proxy/index.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "bun run scripts/build.ts",
|
|
45
|
+
"build:quick": "bun run build:js && bun run build:types",
|
|
46
|
+
"build:js": "bun build ./index.ts ./client.ts ./fe/index.ts ./src/Client/Proxy/index.ts --outdir=dist --target=bun --format=esm --splitting --minify --external react --external react-dom --external gsap --external @gsap/react --external h-state --external three --external @react-three/fiber --external elysia --external drizzle-orm --external drizzle-kit --external ioredis --external googleapis --external @dapr/dapr --external pg",
|
|
47
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist --skipLibCheck",
|
|
48
|
+
"version:patch": "bun run scripts/version.ts patch",
|
|
49
|
+
"version:minor": "bun run scripts/version.ts minor",
|
|
50
|
+
"version:major": "bun run scripts/version.ts major",
|
|
51
|
+
"publish:npm": "bun run scripts/publish.ts",
|
|
52
|
+
"publish:dry": "bun run scripts/publish.ts --dry-run",
|
|
53
|
+
"release": "bun run version:patch && bun run build && bun run publish:npm",
|
|
54
|
+
"release:minor": "bun run version:minor && bun run build && bun run publish:npm",
|
|
55
|
+
"release:major": "bun run version:major && bun run build && bun run publish:npm",
|
|
56
|
+
"generate:schemas": "bun run scripts/generate-types-schema.ts",
|
|
57
|
+
"lint": "biome check . --write",
|
|
58
|
+
"prepublishOnly": "echo 'Use: bun run publish:npm'"
|
|
59
|
+
},
|
|
60
|
+
"bin": {
|
|
61
|
+
"nucleus-generate": "./scripts/generate-schema.ts"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@react-three/fiber": "latest",
|
|
65
|
+
"@types/bun": "latest",
|
|
66
|
+
"@types/pg": "latest",
|
|
67
|
+
"@types/react": "latest",
|
|
68
|
+
"@types/react-dom": "latest",
|
|
69
|
+
"@types/three": "latest",
|
|
70
|
+
"bun-plugin-tailwind": "latest",
|
|
71
|
+
"drizzle-kit": "latest",
|
|
72
|
+
"javascript-obfuscator": "^4.1.1",
|
|
73
|
+
"lucide-react": "latest",
|
|
74
|
+
"three": "latest"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"typescript": "latest",
|
|
78
|
+
"elysia": "latest",
|
|
79
|
+
"@dapr/dapr": "latest",
|
|
80
|
+
"react": "latest",
|
|
81
|
+
"react-dom": "latest",
|
|
82
|
+
"pg": "latest",
|
|
83
|
+
"tailwindcss": "latest",
|
|
84
|
+
"tailwind-merge": "latest",
|
|
85
|
+
"clsx": "latest"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@elysiajs/static": "latest",
|
|
89
|
+
"@elysiajs/swagger": "latest",
|
|
90
|
+
"@gsap/react": "latest",
|
|
91
|
+
"add": "latest",
|
|
92
|
+
"bun": "latest",
|
|
93
|
+
"drizzle-orm": "latest",
|
|
94
|
+
"googleapis": "latest",
|
|
95
|
+
"gsap": "latest",
|
|
96
|
+
"h-state": "latest",
|
|
97
|
+
"ioredis": "latest"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function CTA() {
|
|
2
|
+
return (
|
|
3
|
+
<section className="cta">
|
|
4
|
+
<div className="container">
|
|
5
|
+
<div className="cta-inner">
|
|
6
|
+
<div className="cta-content">
|
|
7
|
+
<h2 className="cta-title">Ready to Build Something Great?</h2>
|
|
8
|
+
<p className="cta-description">
|
|
9
|
+
Get started with Nucleus Core today. Full documentation, examples,
|
|
10
|
+
and community support included.
|
|
11
|
+
</p>
|
|
12
|
+
<div className="cta-actions">
|
|
13
|
+
<a href="/docs" className="btn btn-primary">
|
|
14
|
+
Read the Documentation
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://github.com" className="btn btn-secondary">
|
|
17
|
+
View on GitHub
|
|
18
|
+
</a>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
);
|
|
25
|
+
}
|