@antelopejs/dms 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/LICENSE +190 -0
- package/README.md +48 -0
- package/dist/attachments/access.d.ts +9 -0
- package/dist/attachments/access.js +66 -0
- package/dist/attachments/access.js.map +1 -0
- package/dist/attachments/bindings.d.ts +3 -0
- package/dist/attachments/bindings.js +25 -0
- package/dist/attachments/bindings.js.map +1 -0
- package/dist/attachments/fields.d.ts +7 -0
- package/dist/attachments/fields.js +25 -0
- package/dist/attachments/fields.js.map +1 -0
- package/dist/attachments/read.d.ts +11 -0
- package/dist/attachments/read.js +36 -0
- package/dist/attachments/read.js.map +1 -0
- package/dist/attachments/registry.d.ts +6 -0
- package/dist/attachments/registry.js +36 -0
- package/dist/attachments/registry.js.map +1 -0
- package/dist/attachments/save.d.ts +2 -0
- package/dist/attachments/save.js +86 -0
- package/dist/attachments/save.js.map +1 -0
- package/dist/attachments/table-view.d.ts +2 -0
- package/dist/attachments/table-view.js +71 -0
- package/dist/attachments/table-view.js.map +1 -0
- package/dist/attachments/uploads.d.ts +5 -0
- package/dist/attachments/uploads.js +29 -0
- package/dist/attachments/uploads.js.map +1 -0
- package/dist/automation/actions.d.ts +2 -0
- package/dist/automation/actions.js +150 -0
- package/dist/automation/actions.js.map +1 -0
- package/dist/automation/events.d.ts +49 -0
- package/dist/automation/events.js +23 -0
- package/dist/automation/events.js.map +1 -0
- package/dist/automation/index.d.ts +3 -0
- package/dist/automation/index.js +123 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/registration-lifecycle.d.ts +7 -0
- package/dist/automation/registration-lifecycle.js +24 -0
- package/dist/automation/registration-lifecycle.js.map +1 -0
- package/dist/automation/sources.d.ts +2 -0
- package/dist/automation/sources.js +81 -0
- package/dist/automation/sources.js.map +1 -0
- package/dist/automation/triggers.d.ts +2 -0
- package/dist/automation/triggers.js +139 -0
- package/dist/automation/triggers.js.map +1 -0
- package/dist/config.d.ts +58 -0
- package/dist/config.js +83 -0
- package/dist/config.js.map +1 -0
- package/dist/crons/cleanup-user-invites.d.ts +4 -0
- package/dist/crons/cleanup-user-invites.js +94 -0
- package/dist/crons/cleanup-user-invites.js.map +1 -0
- package/dist/crons/index.d.ts +4 -0
- package/dist/crons/index.js +25 -0
- package/dist/crons/index.js.map +1 -0
- package/dist/crons/sweep-stale-exports.d.ts +4 -0
- package/dist/crons/sweep-stale-exports.js +24 -0
- package/dist/crons/sweep-stale-exports.js.map +1 -0
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.js +19 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/models/attachments.model.d.ts +22 -0
- package/dist/db/models/attachments.model.js +9 -0
- package/dist/db/models/attachments.model.js.map +1 -0
- package/dist/db/models/index.d.ts +4 -0
- package/dist/db/models/index.js +21 -0
- package/dist/db/models/index.js.map +1 -0
- package/dist/db/models/systemState.model.d.ts +24 -0
- package/dist/db/models/systemState.model.js +19 -0
- package/dist/db/models/systemState.model.js.map +1 -0
- package/dist/db/models/userNotificationPreferences.model.d.ts +26 -0
- package/dist/db/models/userNotificationPreferences.model.js +71 -0
- package/dist/db/models/userNotificationPreferences.model.js.map +1 -0
- package/dist/db/models/userNotifications.model.d.ts +49 -0
- package/dist/db/models/userNotifications.model.js +217 -0
- package/dist/db/models/userNotifications.model.js.map +1 -0
- package/dist/db/tables/attachments.table.d.ts +9 -0
- package/dist/db/tables/attachments.table.js +43 -0
- package/dist/db/tables/attachments.table.js.map +1 -0
- package/dist/db/tables/index.d.ts +4 -0
- package/dist/db/tables/index.js +21 -0
- package/dist/db/tables/index.js.map +1 -0
- package/dist/db/tables/systemState.table.d.ts +8 -0
- package/dist/db/tables/systemState.table.js +48 -0
- package/dist/db/tables/systemState.table.js.map +1 -0
- package/dist/db/tables/userNotificationPreferences.table.d.ts +9 -0
- package/dist/db/tables/userNotificationPreferences.table.js +49 -0
- package/dist/db/tables/userNotificationPreferences.table.js.map +1 -0
- package/dist/db/tables/userNotifications.table.d.ts +19 -0
- package/dist/db/tables/userNotifications.table.js +93 -0
- package/dist/db/tables/userNotifications.table.js.map +1 -0
- package/dist/dev/module-update-notifications.d.ts +10 -0
- package/dist/dev/module-update-notifications.js +146 -0
- package/dist/dev/module-update-notifications.js.map +1 -0
- package/dist/hooks/invite-extensions.d.ts +1 -0
- package/dist/hooks/invite-extensions.js +43 -0
- package/dist/hooks/invite-extensions.js.map +1 -0
- package/dist/hooks/tenant-deleted.d.ts +1 -0
- package/dist/hooks/tenant-deleted.js +33 -0
- package/dist/hooks/tenant-deleted.js.map +1 -0
- package/dist/implementations/dms/attachments.d.ts +6 -0
- package/dist/implementations/dms/attachments.js +10 -0
- package/dist/implementations/dms/attachments.js.map +1 -0
- package/dist/implementations/dms/client-base-url.d.ts +1 -0
- package/dist/implementations/dms/client-base-url.js +6 -0
- package/dist/implementations/dms/client-base-url.js.map +1 -0
- package/dist/implementations/dms/dev-handshake.d.ts +1 -0
- package/dist/implementations/dms/dev-handshake.js +41 -0
- package/dist/implementations/dms/dev-handshake.js.map +1 -0
- package/dist/implementations/dms/dev-reload.d.ts +10 -0
- package/dist/implementations/dms/dev-reload.js +93 -0
- package/dist/implementations/dms/dev-reload.js.map +1 -0
- package/dist/implementations/dms/frontend-bootstrap.d.ts +7 -0
- package/dist/implementations/dms/frontend-bootstrap.js +39 -0
- package/dist/implementations/dms/frontend-bootstrap.js.map +1 -0
- package/dist/implementations/dms/frontend-modules.d.ts +23 -0
- package/dist/implementations/dms/frontend-modules.js +215 -0
- package/dist/implementations/dms/frontend-modules.js.map +1 -0
- package/dist/implementations/dms/guards.d.ts +7 -0
- package/dist/implementations/dms/guards.js +45 -0
- package/dist/implementations/dms/guards.js.map +1 -0
- package/dist/implementations/dms/invite-extensions.d.ts +7 -0
- package/dist/implementations/dms/invite-extensions.js +19 -0
- package/dist/implementations/dms/invite-extensions.js.map +1 -0
- package/dist/implementations/dms/manifest.d.ts +27 -0
- package/dist/implementations/dms/manifest.js +96 -0
- package/dist/implementations/dms/manifest.js.map +1 -0
- package/dist/implementations/dms/page.d.ts +93 -0
- package/dist/implementations/dms/page.js +894 -0
- package/dist/implementations/dms/page.js.map +1 -0
- package/dist/implementations/dms/permissions-resolver.d.ts +8 -0
- package/dist/implementations/dms/permissions-resolver.js +33 -0
- package/dist/implementations/dms/permissions-resolver.js.map +1 -0
- package/dist/implementations/dms/permissions.d.ts +9 -0
- package/dist/implementations/dms/permissions.js +64 -0
- package/dist/implementations/dms/permissions.js.map +1 -0
- package/dist/implementations/dms/quick-actions.d.ts +33 -0
- package/dist/implementations/dms/quick-actions.js +52 -0
- package/dist/implementations/dms/quick-actions.js.map +1 -0
- package/dist/implementations/dms/realtime.d.ts +12 -0
- package/dist/implementations/dms/realtime.js +37 -0
- package/dist/implementations/dms/realtime.js.map +1 -0
- package/dist/implementations/dms/route-params.d.ts +2 -0
- package/dist/implementations/dms/route-params.js +24 -0
- package/dist/implementations/dms/route-params.js.map +1 -0
- package/dist/implementations/dms/tenant-access.d.ts +8 -0
- package/dist/implementations/dms/tenant-access.js +34 -0
- package/dist/implementations/dms/tenant-access.js.map +1 -0
- package/dist/implementations/dms/uploads.d.ts +8 -0
- package/dist/implementations/dms/uploads.js +11 -0
- package/dist/implementations/dms/uploads.js.map +1 -0
- package/dist/implementations/dms/warn-once.d.ts +1 -0
- package/dist/implementations/dms/warn-once.js +17 -0
- package/dist/implementations/dms/warn-once.js.map +1 -0
- package/dist/implementations/dms-auth/index.d.ts +55 -0
- package/dist/implementations/dms-auth/index.js +349 -0
- package/dist/implementations/dms-auth/index.js.map +1 -0
- package/dist/implementations/dms-base/export-jobs.d.ts +2 -0
- package/dist/implementations/dms-base/export-jobs.js +12 -0
- package/dist/implementations/dms-base/export-jobs.js.map +1 -0
- package/dist/implementations/dms-base/search-route.d.ts +29 -0
- package/dist/implementations/dms-base/search-route.js +168 -0
- package/dist/implementations/dms-base/search-route.js.map +1 -0
- package/dist/implementations/dms-base/table-view.d.ts +43 -0
- package/dist/implementations/dms-base/table-view.js +232 -0
- package/dist/implementations/dms-base/table-view.js.map +1 -0
- package/dist/implementations/dms-base/tenant-export-archive.d.ts +1 -0
- package/dist/implementations/dms-base/tenant-export-archive.js +7 -0
- package/dist/implementations/dms-base/tenant-export-archive.js.map +1 -0
- package/dist/implementations/dms-html-render/constants.d.ts +2 -0
- package/dist/implementations/dms-html-render/constants.js +6 -0
- package/dist/implementations/dms-html-render/constants.js.map +1 -0
- package/dist/implementations/dms-html-render/index.d.ts +4 -0
- package/dist/implementations/dms-html-render/index.js +50 -0
- package/dist/implementations/dms-html-render/index.js.map +1 -0
- package/dist/implementations/dms-html-render/service-jwt.d.ts +1 -0
- package/dist/implementations/dms-html-render/service-jwt.js +17 -0
- package/dist/implementations/dms-html-render/service-jwt.js.map +1 -0
- package/dist/implementations/dms-html-render/template-registry.d.ts +9 -0
- package/dist/implementations/dms-html-render/template-registry.js +28 -0
- package/dist/implementations/dms-html-render/template-registry.js.map +1 -0
- package/dist/implementations/dms-notifications/index.d.ts +19 -0
- package/dist/implementations/dms-notifications/index.js +193 -0
- package/dist/implementations/dms-notifications/index.js.map +1 -0
- package/dist/implementations/dms-notifications/registry.d.ts +6 -0
- package/dist/implementations/dms-notifications/registry.js +18 -0
- package/dist/implementations/dms-notifications/registry.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +195 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/index.js +20 -0
- package/dist/pages/index.js.map +1 -0
- package/dist/pages/modules/index.d.ts +1 -0
- package/dist/pages/modules/index.js +18 -0
- package/dist/pages/modules/index.js.map +1 -0
- package/dist/pages/modules/modules-index.d.ts +4 -0
- package/dist/pages/modules/modules-index.js +22 -0
- package/dist/pages/modules/modules-index.js.map +1 -0
- package/dist/pages/public/auth/2fa.d.ts +9 -0
- package/dist/pages/public/auth/2fa.js +26 -0
- package/dist/pages/public/auth/2fa.js.map +1 -0
- package/dist/pages/public/auth/accounts.d.ts +9 -0
- package/dist/pages/public/auth/accounts.js +27 -0
- package/dist/pages/public/auth/accounts.js.map +1 -0
- package/dist/pages/public/auth/backup.d.ts +9 -0
- package/dist/pages/public/auth/backup.js +26 -0
- package/dist/pages/public/auth/backup.js.map +1 -0
- package/dist/pages/public/auth/forgot-validation.d.ts +9 -0
- package/dist/pages/public/auth/forgot-validation.js +26 -0
- package/dist/pages/public/auth/forgot-validation.js.map +1 -0
- package/dist/pages/public/auth/forgot.d.ts +9 -0
- package/dist/pages/public/auth/forgot.js +26 -0
- package/dist/pages/public/auth/forgot.js.map +1 -0
- package/dist/pages/public/auth/login.d.ts +9 -0
- package/dist/pages/public/auth/login.js +26 -0
- package/dist/pages/public/auth/login.js.map +1 -0
- package/dist/pages/public/auth/oauth-complete.d.ts +9 -0
- package/dist/pages/public/auth/oauth-complete.js +26 -0
- package/dist/pages/public/auth/oauth-complete.js.map +1 -0
- package/dist/pages/public/auth/recover-success.d.ts +9 -0
- package/dist/pages/public/auth/recover-success.js +26 -0
- package/dist/pages/public/auth/recover-success.js.map +1 -0
- package/dist/pages/public/auth/recover.d.ts +9 -0
- package/dist/pages/public/auth/recover.js +26 -0
- package/dist/pages/public/auth/recover.js.map +1 -0
- package/dist/pages/public/auth/signup.d.ts +9 -0
- package/dist/pages/public/auth/signup.js +26 -0
- package/dist/pages/public/auth/signup.js.map +1 -0
- package/dist/pages/public/auth/validate.d.ts +9 -0
- package/dist/pages/public/auth/validate.js +26 -0
- package/dist/pages/public/auth/validate.js.map +1 -0
- package/dist/pages/public/index.d.ts +12 -0
- package/dist/pages/public/index.js +15 -0
- package/dist/pages/public/index.js.map +1 -0
- package/dist/pages/public/onboarding/index.d.ts +9 -0
- package/dist/pages/public/onboarding/index.js +26 -0
- package/dist/pages/public/onboarding/index.js.map +1 -0
- package/dist/pages/settings/index.d.ts +2 -0
- package/dist/pages/settings/index.js +19 -0
- package/dist/pages/settings/index.js.map +1 -0
- package/dist/pages/settings/settings-index.d.ts +4 -0
- package/dist/pages/settings/settings-index.js +22 -0
- package/dist/pages/settings/settings-index.js.map +1 -0
- package/dist/pages/settings/users/appearance.d.ts +9 -0
- package/dist/pages/settings/users/appearance.js +30 -0
- package/dist/pages/settings/users/appearance.js.map +1 -0
- package/dist/pages/settings/users/category.d.ts +1 -0
- package/dist/pages/settings/users/category.js +12 -0
- package/dist/pages/settings/users/category.js.map +1 -0
- package/dist/pages/settings/users/index.d.ts +8 -0
- package/dist/pages/settings/users/index.js +27 -0
- package/dist/pages/settings/users/index.js.map +1 -0
- package/dist/pages/settings/users/invites.d.ts +37 -0
- package/dist/pages/settings/users/invites.js +307 -0
- package/dist/pages/settings/users/invites.js.map +1 -0
- package/dist/pages/settings/users/member-invite-form.d.ts +5 -0
- package/dist/pages/settings/users/member-invite-form.js +125 -0
- package/dist/pages/settings/users/member-invite-form.js.map +1 -0
- package/dist/pages/settings/users/members.d.ts +18 -0
- package/dist/pages/settings/users/members.js +222 -0
- package/dist/pages/settings/users/members.js.map +1 -0
- package/dist/pages/settings/users/notifications.d.ts +39 -0
- package/dist/pages/settings/users/notifications.js +177 -0
- package/dist/pages/settings/users/notifications.js.map +1 -0
- package/dist/pages/settings/users/profile-helpers.d.ts +56 -0
- package/dist/pages/settings/users/profile-helpers.js +141 -0
- package/dist/pages/settings/users/profile-helpers.js.map +1 -0
- package/dist/pages/settings/users/profile.d.ts +63 -0
- package/dist/pages/settings/users/profile.js +414 -0
- package/dist/pages/settings/users/profile.js.map +1 -0
- package/dist/pages/settings/users/roles.d.ts +11 -0
- package/dist/pages/settings/users/roles.js +71 -0
- package/dist/pages/settings/users/roles.js.map +1 -0
- package/dist/pages/settings/users/shortcuts.d.ts +9 -0
- package/dist/pages/settings/users/shortcuts.js +30 -0
- package/dist/pages/settings/users/shortcuts.js.map +1 -0
- package/dist/realtime/broker.d.ts +31 -0
- package/dist/realtime/broker.js +34 -0
- package/dist/realtime/broker.js.map +1 -0
- package/dist/realtime/current.d.ts +5 -0
- package/dist/realtime/current.js +20 -0
- package/dist/realtime/current.js.map +1 -0
- package/dist/realtime/heartbeat.d.ts +5 -0
- package/dist/realtime/heartbeat.js +35 -0
- package/dist/realtime/heartbeat.js.map +1 -0
- package/dist/realtime/index.d.ts +16 -0
- package/dist/realtime/index.js +143 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/realtime/instance.d.ts +1 -0
- package/dist/realtime/instance.js +6 -0
- package/dist/realtime/instance.js.map +1 -0
- package/dist/realtime/presence.d.ts +38 -0
- package/dist/realtime/presence.js +241 -0
- package/dist/realtime/presence.js.map +1 -0
- package/dist/realtime/redis-broker.d.ts +14 -0
- package/dist/realtime/redis-broker.js +127 -0
- package/dist/realtime/redis-broker.js.map +1 -0
- package/dist/realtime/registry.d.ts +7 -0
- package/dist/realtime/registry.js +34 -0
- package/dist/realtime/registry.js.map +1 -0
- package/dist/realtime/sessions.d.ts +14 -0
- package/dist/realtime/sessions.js +30 -0
- package/dist/realtime/sessions.js.map +1 -0
- package/dist/realtime/sse.d.ts +7 -0
- package/dist/realtime/sse.js +55 -0
- package/dist/realtime/sse.js.map +1 -0
- package/dist/realtime/tableview-bridge.d.ts +1 -0
- package/dist/realtime/tableview-bridge.js +38 -0
- package/dist/realtime/tableview-bridge.js.map +1 -0
- package/dist/routes/auth/constants.d.ts +3 -0
- package/dist/routes/auth/constants.js +7 -0
- package/dist/routes/auth/constants.js.map +1 -0
- package/dist/routes/auth/forgot-password.d.ts +2 -0
- package/dist/routes/auth/forgot-password.js +33 -0
- package/dist/routes/auth/forgot-password.js.map +1 -0
- package/dist/routes/auth/index.d.ts +16 -0
- package/dist/routes/auth/index.js +33 -0
- package/dist/routes/auth/index.js.map +1 -0
- package/dist/routes/auth/invite.d.ts +8 -0
- package/dist/routes/auth/invite.js +30 -0
- package/dist/routes/auth/invite.js.map +1 -0
- package/dist/routes/auth/login.d.ts +3 -0
- package/dist/routes/auth/login.js +16 -0
- package/dist/routes/auth/login.js.map +1 -0
- package/dist/routes/auth/logout.d.ts +3 -0
- package/dist/routes/auth/logout.js +22 -0
- package/dist/routes/auth/logout.js.map +1 -0
- package/dist/routes/auth/me.d.ts +2 -0
- package/dist/routes/auth/me.js +8 -0
- package/dist/routes/auth/me.js.map +1 -0
- package/dist/routes/auth/oauth/authorize-url.d.ts +5 -0
- package/dist/routes/auth/oauth/authorize-url.js +18 -0
- package/dist/routes/auth/oauth/authorize-url.js.map +1 -0
- package/dist/routes/auth/oauth/callback.d.ts +11 -0
- package/dist/routes/auth/oauth/callback.js +51 -0
- package/dist/routes/auth/oauth/callback.js.map +1 -0
- package/dist/routes/auth/oauth/config.d.ts +21 -0
- package/dist/routes/auth/oauth/config.js +55 -0
- package/dist/routes/auth/oauth/config.js.map +1 -0
- package/dist/routes/auth/oauth/identity-resolution.d.ts +16 -0
- package/dist/routes/auth/oauth/identity-resolution.js +108 -0
- package/dist/routes/auth/oauth/identity-resolution.js.map +1 -0
- package/dist/routes/auth/oauth/index.d.ts +9 -0
- package/dist/routes/auth/oauth/index.js +26 -0
- package/dist/routes/auth/oauth/index.js.map +1 -0
- package/dist/routes/auth/oauth/linking-policy.d.ts +11 -0
- package/dist/routes/auth/oauth/linking-policy.js +28 -0
- package/dist/routes/auth/oauth/linking-policy.js.map +1 -0
- package/dist/routes/auth/oauth/providers.d.ts +15 -0
- package/dist/routes/auth/oauth/providers.js +80 -0
- package/dist/routes/auth/oauth/providers.js.map +1 -0
- package/dist/routes/auth/oauth/relay.d.ts +2 -0
- package/dist/routes/auth/oauth/relay.js +25 -0
- package/dist/routes/auth/oauth/relay.js.map +1 -0
- package/dist/routes/auth/oauth/state.d.ts +2 -0
- package/dist/routes/auth/oauth/state.js +71 -0
- package/dist/routes/auth/oauth/state.js.map +1 -0
- package/dist/routes/auth/oauth/token-exchange.d.ts +2 -0
- package/dist/routes/auth/oauth/token-exchange.js +34 -0
- package/dist/routes/auth/oauth/token-exchange.js.map +1 -0
- package/dist/routes/auth/pick-tenant.d.ts +1 -0
- package/dist/routes/auth/pick-tenant.js +12 -0
- package/dist/routes/auth/pick-tenant.js.map +1 -0
- package/dist/routes/auth/refresh.d.ts +4 -0
- package/dist/routes/auth/refresh.js +61 -0
- package/dist/routes/auth/refresh.js.map +1 -0
- package/dist/routes/auth/request-2fa-email.d.ts +6 -0
- package/dist/routes/auth/request-2fa-email.js +30 -0
- package/dist/routes/auth/request-2fa-email.js.map +1 -0
- package/dist/routes/auth/request-email-verification.d.ts +2 -0
- package/dist/routes/auth/request-email-verification.js +28 -0
- package/dist/routes/auth/request-email-verification.js.map +1 -0
- package/dist/routes/auth/reset-password.d.ts +2 -0
- package/dist/routes/auth/reset-password.js +23 -0
- package/dist/routes/auth/reset-password.js.map +1 -0
- package/dist/routes/auth/session-response.d.ts +5 -0
- package/dist/routes/auth/session-response.js +42 -0
- package/dist/routes/auth/session-response.js.map +1 -0
- package/dist/routes/auth/signup.d.ts +3 -0
- package/dist/routes/auth/signup.js +103 -0
- package/dist/routes/auth/signup.js.map +1 -0
- package/dist/routes/auth/switch-tenant.d.ts +3 -0
- package/dist/routes/auth/switch-tenant.js +46 -0
- package/dist/routes/auth/switch-tenant.js.map +1 -0
- package/dist/routes/auth/types.d.ts +18 -0
- package/dist/routes/auth/types.js +3 -0
- package/dist/routes/auth/types.js.map +1 -0
- package/dist/routes/auth/validate-forgot-password-token.d.ts +2 -0
- package/dist/routes/auth/validate-forgot-password-token.js +17 -0
- package/dist/routes/auth/validate-forgot-password-token.js.map +1 -0
- package/dist/routes/auth/verify-2fa.d.ts +3 -0
- package/dist/routes/auth/verify-2fa.js +62 -0
- package/dist/routes/auth/verify-2fa.js.map +1 -0
- package/dist/routes/auth/verify-email.d.ts +2 -0
- package/dist/routes/auth/verify-email.js +21 -0
- package/dist/routes/auth/verify-email.js.map +1 -0
- package/dist/routes/auth.d.ts +30 -0
- package/dist/routes/auth.js +239 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/files.d.ts +18 -0
- package/dist/routes/files.js +76 -0
- package/dist/routes/files.js.map +1 -0
- package/dist/routes/index.d.ts +5 -0
- package/dist/routes/index.js +22 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/onboarding.d.ts +12 -0
- package/dist/routes/onboarding.js +90 -0
- package/dist/routes/onboarding.js.map +1 -0
- package/dist/routes/realtime.d.ts +15 -0
- package/dist/routes/realtime.js +226 -0
- package/dist/routes/realtime.js.map +1 -0
- package/dist/routes/system-state.d.ts +16 -0
- package/dist/routes/system-state.js +43 -0
- package/dist/routes/system-state.js.map +1 -0
- package/dist/test/antelope.test.d.ts +2 -0
- package/dist/test/antelope.test.js +130 -0
- package/dist/test/antelope.test.js.map +1 -0
- package/dist/test/attachment-host/index.d.ts +1 -0
- package/dist/test/attachment-host/index.js +4 -0
- package/dist/test/attachment-host/index.js.map +1 -0
- package/dist/test/attachment-host/native.d.ts +14 -0
- package/dist/test/attachment-host/native.js +158 -0
- package/dist/test/attachment-host/native.js.map +1 -0
- package/dist/test/helpers/attachments.d.ts +18 -0
- package/dist/test/helpers/attachments.js +57 -0
- package/dist/test/helpers/attachments.js.map +1 -0
- package/dist/test/helpers/auth.d.ts +23 -0
- package/dist/test/helpers/auth.js +58 -0
- package/dist/test/helpers/auth.js.map +1 -0
- package/dist/test/helpers/db.d.ts +2 -0
- package/dist/test/helpers/db.js +47 -0
- package/dist/test/helpers/db.js.map +1 -0
- package/dist/test/helpers/fixtures.d.ts +23 -0
- package/dist/test/helpers/fixtures.js +62 -0
- package/dist/test/helpers/fixtures.js.map +1 -0
- package/dist/test/helpers/http.d.ts +3 -0
- package/dist/test/helpers/http.js +22 -0
- package/dist/test/helpers/http.js.map +1 -0
- package/dist/test/helpers/logging.d.ts +5 -0
- package/dist/test/helpers/logging.js +18 -0
- package/dist/test/helpers/logging.js.map +1 -0
- package/dist/test/helpers/page-access.d.ts +16 -0
- package/dist/test/helpers/page-access.js +44 -0
- package/dist/test/helpers/page-access.js.map +1 -0
- package/dist/test/integration/auth/login.test.d.ts +1 -0
- package/dist/test/integration/auth/login.test.js +57 -0
- package/dist/test/integration/auth/login.test.js.map +1 -0
- package/dist/test/integration/auth/refresh.test.d.ts +1 -0
- package/dist/test/integration/auth/refresh.test.js +59 -0
- package/dist/test/integration/auth/refresh.test.js.map +1 -0
- package/dist/test/integration/auth/sessions.test.d.ts +1 -0
- package/dist/test/integration/auth/sessions.test.js +58 -0
- package/dist/test/integration/auth/sessions.test.js.map +1 -0
- package/dist/test/integration/auth/signup.test.d.ts +1 -0
- package/dist/test/integration/auth/signup.test.js +99 -0
- package/dist/test/integration/auth/signup.test.js.map +1 -0
- package/dist/test/integration/export-cleanup.test.d.ts +1 -0
- package/dist/test/integration/export-cleanup.test.js +144 -0
- package/dist/test/integration/export-cleanup.test.js.map +1 -0
- package/dist/test/integration/files/component-file-retries.test.d.ts +1 -0
- package/dist/test/integration/files/component-file-retries.test.js +219 -0
- package/dist/test/integration/files/component-file-retries.test.js.map +1 -0
- package/dist/test/integration/files/component-files.test.d.ts +1 -0
- package/dist/test/integration/files/component-files.test.js +264 -0
- package/dist/test/integration/files/component-files.test.js.map +1 -0
- package/dist/test/integration/files/sign-upload-token.test.d.ts +1 -0
- package/dist/test/integration/files/sign-upload-token.test.js +16 -0
- package/dist/test/integration/files/sign-upload-token.test.js.map +1 -0
- package/dist/test/integration/files/upload.test.d.ts +1 -0
- package/dist/test/integration/files/upload.test.js +114 -0
- package/dist/test/integration/files/upload.test.js.map +1 -0
- package/dist/test/integration/frontend-endpoints.test.d.ts +1 -0
- package/dist/test/integration/frontend-endpoints.test.js +84 -0
- package/dist/test/integration/frontend-endpoints.test.js.map +1 -0
- package/dist/test/integration/invite-resolution.test.d.ts +1 -0
- package/dist/test/integration/invite-resolution.test.js +438 -0
- package/dist/test/integration/invite-resolution.test.js.map +1 -0
- package/dist/test/integration/notifications.test.d.ts +1 -0
- package/dist/test/integration/notifications.test.js +263 -0
- package/dist/test/integration/notifications.test.js.map +1 -0
- package/dist/test/integration/setup.test.d.ts +1 -0
- package/dist/test/integration/setup.test.js +45 -0
- package/dist/test/integration/setup.test.js.map +1 -0
- package/dist/test/integration/tenant-lifecycle.test.d.ts +1 -0
- package/dist/test/integration/tenant-lifecycle.test.js +244 -0
- package/dist/test/integration/tenant-lifecycle.test.js.map +1 -0
- package/dist/test/unit/auth-token-purpose.test.d.ts +1 -0
- package/dist/test/unit/auth-token-purpose.test.js +84 -0
- package/dist/test/unit/auth-token-purpose.test.js.map +1 -0
- package/dist/test/unit/automation-registration-lifecycle.test.d.ts +1 -0
- package/dist/test/unit/automation-registration-lifecycle.test.js +23 -0
- package/dist/test/unit/automation-registration-lifecycle.test.js.map +1 -0
- package/dist/test/unit/db/system-state.model.test.d.ts +1 -0
- package/dist/test/unit/db/system-state.model.test.js +55 -0
- package/dist/test/unit/db/system-state.model.test.js.map +1 -0
- package/dist/test/unit/dev/module-update-notifications.test.d.ts +1 -0
- package/dist/test/unit/dev/module-update-notifications.test.js +43 -0
- package/dist/test/unit/dev/module-update-notifications.test.js.map +1 -0
- package/dist/test/unit/dist-self-imports.test.d.ts +1 -0
- package/dist/test/unit/dist-self-imports.test.js +25 -0
- package/dist/test/unit/dist-self-imports.test.js.map +1 -0
- package/dist/test/unit/frontend-bootstrap.test.d.ts +1 -0
- package/dist/test/unit/frontend-bootstrap.test.js +55 -0
- package/dist/test/unit/frontend-bootstrap.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/archive-filter.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/archive-filter.test.js +63 -0
- package/dist/test/unit/implementations/dms/archive-filter.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/category-slug-registry.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/category-slug-registry.test.js +187 -0
- package/dist/test/unit/implementations/dms/category-slug-registry.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/dynamic-menu-hardening.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/dynamic-menu-hardening.test.js +168 -0
- package/dist/test/unit/implementations/dms/dynamic-menu-hardening.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/dynamic-menu.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/dynamic-menu.test.js +478 -0
- package/dist/test/unit/implementations/dms/dynamic-menu.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/frontend-module-metadata.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/frontend-module-metadata.test.js +38 -0
- package/dist/test/unit/implementations/dms/frontend-module-metadata.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/gate-consistency.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/gate-consistency.test.js +112 -0
- package/dist/test/unit/implementations/dms/gate-consistency.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/manifest-strip.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/manifest-strip.test.js +91 -0
- package/dist/test/unit/implementations/dms/manifest-strip.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/notify-menu-changed.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/notify-menu-changed.test.js +47 -0
- package/dist/test/unit/implementations/dms/notify-menu-changed.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/page-tenant-gate.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/page-tenant-gate.test.js +189 -0
- package/dist/test/unit/implementations/dms/page-tenant-gate.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/permission-teardown.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/permission-teardown.test.js +105 -0
- package/dist/test/unit/implementations/dms/permission-teardown.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/quick-actions-access.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/quick-actions-access.test.js +159 -0
- package/dist/test/unit/implementations/dms/quick-actions-access.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/quick-actions-openform.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/quick-actions-openform.test.js +184 -0
- package/dist/test/unit/implementations/dms/quick-actions-openform.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/subscribe-message.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/subscribe-message.test.js +68 -0
- package/dist/test/unit/implementations/dms/subscribe-message.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/surface-redaction.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/surface-redaction.test.js +171 -0
- package/dist/test/unit/implementations/dms/surface-redaction.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/user-can-access-page.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/user-can-access-page.test.js +113 -0
- package/dist/test/unit/implementations/dms/user-can-access-page.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/user-permissions-gate.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/user-permissions-gate.test.js +158 -0
- package/dist/test/unit/implementations/dms/user-permissions-gate.test.js.map +1 -0
- package/dist/test/unit/implementations/dms/warn-once.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms/warn-once.test.js +179 -0
- package/dist/test/unit/implementations/dms/warn-once.test.js.map +1 -0
- package/dist/test/unit/implementations/dms-base/archive-mode-helpers.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms-base/archive-mode-helpers.test.js +121 -0
- package/dist/test/unit/implementations/dms-base/archive-mode-helpers.test.js.map +1 -0
- package/dist/test/unit/implementations/dms-base/table-view-export-batching.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms-base/table-view-export-batching.test.js +120 -0
- package/dist/test/unit/implementations/dms-base/table-view-export-batching.test.js.map +1 -0
- package/dist/test/unit/implementations/dms-html-render/generate-html.test.d.ts +1 -0
- package/dist/test/unit/implementations/dms-html-render/generate-html.test.js +44 -0
- package/dist/test/unit/implementations/dms-html-render/generate-html.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/component-children-permissions.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/component-children-permissions.test.js +357 -0
- package/dist/test/unit/interfaces/dms/component-children-permissions.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/component-transform.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/component-transform.test.js +45 -0
- package/dist/test/unit/interfaces/dms/component-transform.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/has-permission-module-scope.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/has-permission-module-scope.test.js +70 -0
- package/dist/test/unit/interfaces/dms/has-permission-module-scope.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/invite-extension.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/invite-extension.test.js +371 -0
- package/dist/test/unit/interfaces/dms/invite-extension.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/module-permission-registration.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/module-permission-registration.test.js +96 -0
- package/dist/test/unit/interfaces/dms/module-permission-registration.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/module-scoped-permissions.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/module-scoped-permissions.test.js +28 -0
- package/dist/test/unit/interfaces/dms/module-scoped-permissions.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/native-file-registration.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/native-file-registration.test.js +135 -0
- package/dist/test/unit/interfaces/dms/native-file-registration.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/page-extension.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/page-extension.test.js +599 -0
- package/dist/test/unit/interfaces/dms/page-extension.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/page-layout-gate.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/page-layout-gate.test.js +143 -0
- package/dist/test/unit/interfaces/dms/page-layout-gate.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/page-permission-teardown.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/page-permission-teardown.test.js +75 -0
- package/dist/test/unit/interfaces/dms/page-permission-teardown.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/page-registration-identity.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/page-registration-identity.test.js +203 -0
- package/dist/test/unit/interfaces/dms/page-registration-identity.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/page-teardown.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/page-teardown.test.js +290 -0
- package/dist/test/unit/interfaces/dms/page-teardown.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms/tenant-being-provisioned-hook.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms/tenant-being-provisioned-hook.test.js +92 -0
- package/dist/test/unit/interfaces/dms/tenant-being-provisioned-hook.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-auth/refresh-token-rotation.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-auth/refresh-token-rotation.test.js +88 -0
- package/dist/test/unit/interfaces/dms-auth/refresh-token-rotation.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/chart-value-precision.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/chart-value-precision.test.js +29 -0
- package/dist/test/unit/interfaces/dms-base/chart-value-precision.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/data-types/default-types.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/data-types/default-types.test.js +254 -0
- package/dist/test/unit/interfaces/dms-base/data-types/default-types.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/data-types/status-type.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/data-types/status-type.test.js +56 -0
- package/dist/test/unit/interfaces/dms-base/data-types/status-type.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/form-upload-tokens.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/form-upload-tokens.test.js +175 -0
- package/dist/test/unit/interfaces/dms-base/form-upload-tokens.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/layouts.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/layouts.test.js +33 -0
- package/dist/test/unit/interfaces/dms-base/layouts.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/nested-chart-card.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/nested-chart-card.test.js +85 -0
- package/dist/test/unit/interfaces/dms-base/nested-chart-card.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/table-cell-wrap.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/table-cell-wrap.test.js +29 -0
- package/dist/test/unit/interfaces/dms-base/table-cell-wrap.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/table-view-get-guard.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/table-view-get-guard.test.js +205 -0
- package/dist/test/unit/interfaces/dms-base/table-view-get-guard.test.js.map +1 -0
- package/dist/test/unit/interfaces/dms-base/table-view-tenant-gate.test.d.ts +1 -0
- package/dist/test/unit/interfaces/dms-base/table-view-tenant-gate.test.js +208 -0
- package/dist/test/unit/interfaces/dms-base/table-view-tenant-gate.test.js.map +1 -0
- package/dist/test/unit/oauth-account-guard.test.d.ts +1 -0
- package/dist/test/unit/oauth-account-guard.test.js +96 -0
- package/dist/test/unit/oauth-account-guard.test.js.map +1 -0
- package/dist/test/unit/oauth-claim-account.test.d.ts +1 -0
- package/dist/test/unit/oauth-claim-account.test.js +90 -0
- package/dist/test/unit/oauth-claim-account.test.js.map +1 -0
- package/dist/test/unit/oauth-config.test.d.ts +1 -0
- package/dist/test/unit/oauth-config.test.js +112 -0
- package/dist/test/unit/oauth-config.test.js.map +1 -0
- package/dist/test/unit/oauth-linking-policy.test.d.ts +1 -0
- package/dist/test/unit/oauth-linking-policy.test.js +114 -0
- package/dist/test/unit/oauth-linking-policy.test.js.map +1 -0
- package/dist/test/unit/oauth-provider-identity.test.d.ts +1 -0
- package/dist/test/unit/oauth-provider-identity.test.js +126 -0
- package/dist/test/unit/oauth-provider-identity.test.js.map +1 -0
- package/dist/test/unit/oauth-relay.test.d.ts +1 -0
- package/dist/test/unit/oauth-relay.test.js +40 -0
- package/dist/test/unit/oauth-relay.test.js.map +1 -0
- package/dist/test/unit/oauth-state.test.d.ts +1 -0
- package/dist/test/unit/oauth-state.test.js +61 -0
- package/dist/test/unit/oauth-state.test.js.map +1 -0
- package/dist/test/unit/request-authenticators.test.d.ts +1 -0
- package/dist/test/unit/request-authenticators.test.js +153 -0
- package/dist/test/unit/request-authenticators.test.js.map +1 -0
- package/dist/test/unit/request-tenant-guards.test.d.ts +1 -0
- package/dist/test/unit/request-tenant-guards.test.js +161 -0
- package/dist/test/unit/request-tenant-guards.test.js.map +1 -0
- package/dist/test/unit/signup-account-guard.test.d.ts +1 -0
- package/dist/test/unit/signup-account-guard.test.js +123 -0
- package/dist/test/unit/signup-account-guard.test.js.map +1 -0
- package/dist/test/unit/upload-constraints.test.d.ts +1 -0
- package/dist/test/unit/upload-constraints.test.js +43 -0
- package/dist/test/unit/upload-constraints.test.js.map +1 -0
- package/dist/test/unit/upload-token.test.d.ts +1 -0
- package/dist/test/unit/upload-token.test.js +46 -0
- package/dist/test/unit/upload-token.test.js.map +1 -0
- package/dist/test/unit/utils/row-action-rule-evaluator.test.d.ts +1 -0
- package/dist/test/unit/utils/row-action-rule-evaluator.test.js +143 -0
- package/dist/test/unit/utils/row-action-rule-evaluator.test.js.map +1 -0
- package/dist/test/unit/utils/tenant-export-archive.test.d.ts +1 -0
- package/dist/test/unit/utils/tenant-export-archive.test.js +138 -0
- package/dist/test/unit/utils/tenant-export-archive.test.js.map +1 -0
- package/dist/test/unit/utils/type-check.test.d.ts +1 -0
- package/dist/test/unit/utils/type-check.test.js +143 -0
- package/dist/test/unit/utils/type-check.test.js.map +1 -0
- package/dist/test/unit/utils/value-parser.test.d.ts +1 -0
- package/dist/test/unit/utils/value-parser.test.js +166 -0
- package/dist/test/unit/utils/value-parser.test.js.map +1 -0
- package/dist/test/unit/validation/auth.schema.test.d.ts +1 -0
- package/dist/test/unit/validation/auth.schema.test.js +77 -0
- package/dist/test/unit/validation/auth.schema.test.js.map +1 -0
- package/dist/test/unit/validation/file.schema.test.d.ts +1 -0
- package/dist/test/unit/validation/file.schema.test.js +140 -0
- package/dist/test/unit/validation/file.schema.test.js.map +1 -0
- package/dist/test/unit/validation/member-invite.schema.test.d.ts +1 -0
- package/dist/test/unit/validation/member-invite.schema.test.js +117 -0
- package/dist/test/unit/validation/member-invite.schema.test.js.map +1 -0
- package/dist/test/unit/validation/onboarding/register-admin.schema.test.d.ts +1 -0
- package/dist/test/unit/validation/onboarding/register-admin.schema.test.js +69 -0
- package/dist/test/unit/validation/onboarding/register-admin.schema.test.js.map +1 -0
- package/dist/test/unit/validation/user-notification-preferences.schema.test.d.ts +1 -0
- package/dist/test/unit/validation/user-notification-preferences.schema.test.js +29 -0
- package/dist/test/unit/validation/user-notification-preferences.schema.test.js.map +1 -0
- package/dist/utils/account-notifications.d.ts +10 -0
- package/dist/utils/account-notifications.js +147 -0
- package/dist/utils/account-notifications.js.map +1 -0
- package/dist/utils/auth-key.d.ts +1 -0
- package/dist/utils/auth-key.js +12 -0
- package/dist/utils/auth-key.js.map +1 -0
- package/dist/utils/ensure-default-tenant.d.ts +1 -0
- package/dist/utils/ensure-default-tenant.js +27 -0
- package/dist/utils/ensure-default-tenant.js.map +1 -0
- package/dist/utils/export-jobs-run.d.ts +17 -0
- package/dist/utils/export-jobs-run.js +212 -0
- package/dist/utils/export-jobs-run.js.map +1 -0
- package/dist/utils/export-jobs.d.ts +14 -0
- package/dist/utils/export-jobs.js +241 -0
- package/dist/utils/export-jobs.js.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +26 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/row-action-rule-evaluator.d.ts +4 -0
- package/dist/utils/row-action-rule-evaluator.js +47 -0
- package/dist/utils/row-action-rule-evaluator.js.map +1 -0
- package/dist/utils/run-in-batches.d.ts +1 -0
- package/dist/utils/run-in-batches.js +17 -0
- package/dist/utils/run-in-batches.js.map +1 -0
- package/dist/utils/tenant-export-archive.d.ts +6 -0
- package/dist/utils/tenant-export-archive.js +271 -0
- package/dist/utils/tenant-export-archive.js.map +1 -0
- package/dist/utils/upload-constraints.d.ts +4 -0
- package/dist/utils/upload-constraints.js +19 -0
- package/dist/utils/upload-constraints.js.map +1 -0
- package/dist/utils/upload-token.d.ts +11 -0
- package/dist/utils/upload-token.js +75 -0
- package/dist/utils/upload-token.js.map +1 -0
- package/dist/utils/user-agent.d.ts +3 -0
- package/dist/utils/user-agent.js +22 -0
- package/dist/utils/user-agent.js.map +1 -0
- package/dist/validation/auth.schema.d.ts +149 -0
- package/dist/validation/auth.schema.js +102 -0
- package/dist/validation/auth.schema.js.map +1 -0
- package/dist/validation/file.schema.d.ts +27 -0
- package/dist/validation/file.schema.js +50 -0
- package/dist/validation/file.schema.js.map +1 -0
- package/dist/validation/member-invite.schema.d.ts +59 -0
- package/dist/validation/member-invite.schema.js +38 -0
- package/dist/validation/member-invite.schema.js.map +1 -0
- package/dist/validation/onboarding/index.d.ts +1 -0
- package/dist/validation/onboarding/index.js +18 -0
- package/dist/validation/onboarding/index.js.map +1 -0
- package/dist/validation/onboarding/register-admin.schema.d.ts +22 -0
- package/dist/validation/onboarding/register-admin.schema.js +54 -0
- package/dist/validation/onboarding/register-admin.schema.js.map +1 -0
- package/dist/validation/password.d.ts +3 -0
- package/dist/validation/password.js +40 -0
- package/dist/validation/password.js.map +1 -0
- package/dist/validation/user-notification-preferences.schema.d.ts +2 -0
- package/dist/validation/user-notification-preferences.schema.js +39 -0
- package/dist/validation/user-notification-preferences.schema.js.map +1 -0
- package/frontend-vue/.prettierrc +10 -0
- package/frontend-vue/.vscode/settings.json +42 -0
- package/frontend-vue/antelope.config.json +5 -0
- package/frontend-vue/deferred-plugins.ts +29 -0
- package/frontend-vue/dms.email.ts +13 -0
- package/frontend-vue/dms.frontend.ts +190 -0
- package/frontend-vue/eslint.config.mjs +50 -0
- package/frontend-vue/i18n.config.ts +3 -0
- package/frontend-vue/layers/dms-auth/app/components/OAuthButtons.vue +58 -0
- package/frontend-vue/layers/dms-auth/app/composables/useAuthLinks.ts +33 -0
- package/frontend-vue/layers/dms-auth/app/composables/useCooldown.ts +23 -0
- package/frontend-vue/layers/dms-auth/app/composables/useLogout.ts +32 -0
- package/frontend-vue/layers/dms-auth/app/composables/useOAuthErrorToast.ts +39 -0
- package/frontend-vue/layers/dms-auth/app/composables/usePostLoginRedirect.ts +28 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +168 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/accounts.vue +168 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/backup.vue +98 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +158 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot.vue +82 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/login.vue +201 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/oauth-complete.vue +80 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover-success.vue +15 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover.vue +124 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +140 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +151 -0
- package/frontend-vue/layers/dms-auth/app/middleware/auth.ts +91 -0
- package/frontend-vue/layers/dms-auth/app/utils/accountsFlow.ts +22 -0
- package/frontend-vue/layers/dms-auth/i18n/locales/auth-en-GB.json +174 -0
- package/frontend-vue/layers/dms-auth/i18n/locales/auth-fr-FR.json +174 -0
- package/frontend-vue/layers/dms-auth/shared/oauth.ts +48 -0
- package/frontend-vue/layers/dms-core/app/components/PermissionGate.vue +13 -0
- package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +134 -0
- package/frontend-vue/layers/dms-core/app/composables/auth/useCurrentUser.ts +23 -0
- package/frontend-vue/layers/dms-core/app/composables/auth/useMultiAccount.ts +250 -0
- package/frontend-vue/layers/dms-core/app/composables/auth/usePermissions.ts +73 -0
- package/frontend-vue/layers/dms-core/app/composables/auth/useSessionRecovery.ts +50 -0
- package/frontend-vue/layers/dms-core/app/composables/components/useComponentEvent.ts +29 -0
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +39 -0
- package/frontend-vue/layers/dms-core/app/composables/functions/useDefinedFunction.ts +23 -0
- package/frontend-vue/layers/dms-core/app/composables/leave-guard/index.ts +2 -0
- package/frontend-vue/layers/dms-core/app/composables/leave-guard/types.ts +19 -0
- package/frontend-vue/layers/dms-core/app/composables/leave-guard/useLeaveGuard.ts +105 -0
- package/frontend-vue/layers/dms-core/app/composables/period/compareResolvers.ts +44 -0
- package/frontend-vue/layers/dms-core/app/composables/period/presetResolvers.ts +142 -0
- package/frontend-vue/layers/dms-core/app/composables/period/types.ts +59 -0
- package/frontend-vue/layers/dms-core/app/composables/period/usePeriod.ts +173 -0
- package/frontend-vue/layers/dms-core/app/composables/period/usePeriodScope.ts +86 -0
- package/frontend-vue/layers/dms-core/app/composables/realtime/usePageRealtime.ts +46 -0
- package/frontend-vue/layers/dms-core/app/composables/realtime/useRealtimeTopic.ts +25 -0
- package/frontend-vue/layers/dms-core/app/composables/realtime/useSseStream.ts +173 -0
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +286 -0
- package/frontend-vue/layers/dms-core/app/composables/translation/useTranslation.ts +104 -0
- package/frontend-vue/layers/dms-core/app/composables/translation/useUniqueLocales.ts +18 -0
- package/frontend-vue/layers/dms-core/app/composables/useApiError.ts +57 -0
- package/frontend-vue/layers/dms-core/app/composables/useEventedAction.ts +53 -0
- package/frontend-vue/layers/dms-core/app/composables/useHomepage.ts +6 -0
- package/frontend-vue/layers/dms-core/app/composables/useTrailingDeduper.ts +24 -0
- package/frontend-vue/layers/dms-core/app/composables/user/usePreferences.ts +98 -0
- package/frontend-vue/layers/dms-core/app/composables/watch/useWatch.ts +132 -0
- package/frontend-vue/layers/dms-core/app/types/auth-types.ts +2 -0
- package/frontend-vue/layers/dms-core/app/types/auth.ts +31 -0
- package/frontend-vue/layers/dms-core/app/types/button.ts +7 -0
- package/frontend-vue/layers/dms-core/app/types/color.ts +11 -0
- package/frontend-vue/layers/dms-core/app/types/component.ts +23 -0
- package/frontend-vue/layers/dms-core/app/types/data-type.ts +11 -0
- package/frontend-vue/layers/dms-core/app/types/http.ts +18 -0
- package/frontend-vue/layers/dms-core/app/types/image.ts +5 -0
- package/frontend-vue/layers/dms-core/app/types/json.ts +6 -0
- package/frontend-vue/layers/dms-core/app/types/menu.ts +36 -0
- package/frontend-vue/layers/dms-core/app/types/orientation.ts +4 -0
- package/frontend-vue/layers/dms-core/app/types/row-action-operators.ts +60 -0
- package/frontend-vue/layers/dms-core/app/types/row-action.ts +51 -0
- package/frontend-vue/layers/dms-core/app/types/size.ts +7 -0
- package/frontend-vue/layers/dms-core/app/types/user.ts +9 -0
- package/frontend-vue/layers/dms-core/app/types/utils.ts +1 -0
- package/frontend-vue/layers/dms-core/app/types/watch.ts +25 -0
- package/frontend-vue/layers/dms-core/app/utils/dedupedRefresh.ts +33 -0
- package/frontend-vue/layers/dms-core/app/utils/downloadFile.ts +8 -0
- package/frontend-vue/layers/dms-core/app/utils/formatter.ts +280 -0
- package/frontend-vue/layers/dms-core/app/utils/http-status.ts +8 -0
- package/frontend-vue/layers/dms-core/app/utils/menu.ts +187 -0
- package/frontend-vue/layers/dms-core/app/utils/query-validation.ts +37 -0
- package/frontend-vue/layers/dms-core/app/utils/routePath.ts +11 -0
- package/frontend-vue/layers/dms-core/app/utils/row-action-rule-evaluator.ts +90 -0
- package/frontend-vue/layers/dms-core/app/utils/stringTypeParser.ts +80 -0
- package/frontend-vue/layers/dms-core/app/utils/trailingDeduper.ts +42 -0
- package/frontend-vue/layers/dms-core/app/utils/type-check.ts +32 -0
- package/frontend-vue/layers/dms-core/app/utils/url-interpolation.ts +16 -0
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +441 -0
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +441 -0
- package/frontend-vue/layers/dms-core/shared/types/app-config.ts +37 -0
- package/frontend-vue/layers/dms-core/shared/types/runtime-config.d.ts +73 -0
- package/frontend-vue/layers/dms-core/types.d.ts +15 -0
- package/frontend-vue/layers/dms-layout/app/app.config.ts +258 -0
- package/frontend-vue/layers/dms-layout/app/assets/css/main.css +268 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/Container.vue +13 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +271 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +341 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/Footer.vue +48 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeader.vue +67 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/QuickActionsPopover.vue +68 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/sidebarState.ts +17 -0
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationCard.vue +99 -0
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +231 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +291 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationsList.vue +226 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shortcut/KeyboardShortcut.vue +19 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +209 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/ScalePreview.vue +43 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/ThemePreview.vue +78 -0
- package/frontend-vue/layers/dms-layout/app/components/AppWidgetsDock.vue +81 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/AppLogo.vue +11 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/DashboardSearch.vue +17 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/HStack.vue +36 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/Spacer.vue +28 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/VStack.vue +33 -0
- package/frontend-vue/layers/dms-layout/app/components/navigation/AccordionItemSync.vue +45 -0
- package/frontend-vue/layers/dms-layout/app/components/navigation/CollapsedMenuItem.vue +187 -0
- package/frontend-vue/layers/dms-layout/app/components/navigation/NavigationMenu.vue +224 -0
- package/frontend-vue/layers/dms-layout/app/components/profile/ProfileLanguage.vue +71 -0
- package/frontend-vue/layers/dms-layout/app/components/profile/ProfileSessions.vue +321 -0
- package/frontend-vue/layers/dms-layout/app/components/profile/ProfileTwoFactor.vue +501 -0
- package/frontend-vue/layers/dms-layout/app/composables/favorites/useFavoritePages.ts +87 -0
- package/frontend-vue/layers/dms-layout/app/composables/general/types/index.ts +20 -0
- package/frontend-vue/layers/dms-layout/app/composables/general/useInterfaceScale.ts +12 -0
- package/frontend-vue/layers/dms-layout/app/composables/general/useSystemState.ts +43 -0
- package/frontend-vue/layers/dms-layout/app/composables/layout/stack-types.ts +24 -0
- package/frontend-vue/layers/dms-layout/app/composables/layout/useInfiniteScroll.ts +45 -0
- package/frontend-vue/layers/dms-layout/app/composables/notification/types/events.ts +6 -0
- package/frontend-vue/layers/dms-layout/app/composables/notification/useNotifications.ts +223 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useCurrentModule.ts +33 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useFirstAccessiblePage.ts +91 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useIsOwner.ts +6 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useModuleHistory.ts +42 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useModulesListing.ts +88 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageComponentPreload.ts +67 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageLayout.ts +27 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageLeaveGuard.ts +14 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/usePrefetch.ts +21 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useQuickActions.ts +95 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useSiteLayout.ts +408 -0
- package/frontend-vue/layers/dms-layout/app/composables/useAppOverlay.ts +31 -0
- package/frontend-vue/layers/dms-layout/app/composables/useAppWidgets.ts +58 -0
- package/frontend-vue/layers/dms-layout/app/composables/useCommandPaletteSources.ts +171 -0
- package/frontend-vue/layers/dms-layout/app/composables/useDevReload.ts +401 -0
- package/frontend-vue/layers/dms-layout/app/composables/useFooterLinks.ts +32 -0
- package/frontend-vue/layers/dms-layout/app/composables/useHeaderActions.ts +72 -0
- package/frontend-vue/layers/dms-layout/app/composables/useSidebarWidgets.ts +144 -0
- package/frontend-vue/layers/dms-layout/app/custom-layouts/DefaultLayout.vue +55 -0
- package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +23 -0
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +114 -0
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/appearance.vue +174 -0
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/index.vue +164 -0
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/notifications.vue +15 -0
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/shortcuts.vue +136 -0
- package/frontend-vue/layers/dms-layout/app/emails/EmailAdminInvite.vue +32 -0
- package/frontend-vue/layers/dms-layout/app/emails/EmailExportReady.vue +45 -0
- package/frontend-vue/layers/dms-layout/app/emails/EmailResetPassword.vue +31 -0
- package/frontend-vue/layers/dms-layout/app/emails/EmailTwoFactor.vue +18 -0
- package/frontend-vue/layers/dms-layout/app/emails/EmailUserValidation.vue +30 -0
- package/frontend-vue/layers/dms-layout/app/emails/components/EmailButton.vue +21 -0
- package/frontend-vue/layers/dms-layout/app/emails/components/EmailLayout.vue +52 -0
- package/frontend-vue/layers/dms-layout/app/emails/components/EmailOTP.vue +22 -0
- package/frontend-vue/layers/dms-layout/app/emails/components/index.ts +93 -0
- package/frontend-vue/layers/dms-layout/app/error.vue +148 -0
- package/frontend-vue/layers/dms-layout/app/middleware/homepage-redirect.global.ts +11 -0
- package/frontend-vue/layers/dms-layout/app/middleware/module-routing.global.ts +136 -0
- package/frontend-vue/layers/dms-layout/app/middleware/page-leave-guard.global.ts +14 -0
- package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +475 -0
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-navigation.client.ts +76 -0
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-personal-pages.client.ts +97 -0
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-quick-actions.client.ts +44 -0
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-session.client.ts +96 -0
- package/frontend-vue/layers/dms-layout/app/plugins/dms-dev-reload.client.ts +45 -0
- package/frontend-vue/layers/dms-layout/app/plugins/dms-menu-sync.client.ts +45 -0
- package/frontend-vue/layers/dms-layout/app/plugins/interface-scale.ts +9 -0
- package/frontend-vue/layers/dms-layout/app/plugins/language-sync.ts +10 -0
- package/frontend-vue/layers/dms-layout/app/plugins/notification-stream.client.ts +61 -0
- package/frontend-vue/layers/dms-layout/app/plugins/profile-sync.client.ts +24 -0
- package/frontend-vue/layers/dms-layout/app/plugins/seo.ts +29 -0
- package/frontend-vue/layers/dms-layout/app/types/page-setup.ts +31 -0
- package/frontend-vue/layers/dms-layout/app/types/page.ts +129 -0
- package/frontend-vue/layers/dms-layout/app/utils/account-menu.ts +28 -0
- package/frontend-vue/layers/dms-layout/app/utils/dms-icons.ts +1 -0
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +272 -0
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +276 -0
- package/frontend-vue/layers/dms-layout/public/fonts/Geist-Italic-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/public/fonts/Geist-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/public/fonts/GeistMono-Italic-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/public/fonts/GeistMono-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/public/fonts/LICENSE.txt +92 -0
- package/frontend-vue/layers/dms-layout/public/images/antelope-logo/dark.svg +46 -0
- package/frontend-vue/layers/dms-layout/public/images/antelope-logo/icon.svg +29 -0
- package/frontend-vue/layers/dms-layout/public/images/antelope-logo/light.svg +46 -0
- package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/register.vue +172 -0
- package/frontend-vue/layers/dms-onboarding/app/composables/onboarding/index.ts +1 -0
- package/frontend-vue/layers/dms-onboarding/app/composables/onboarding/useOnboardingMiddleware.ts +51 -0
- package/frontend-vue/layers/dms-onboarding/app/custom-pages/onboarding.vue +9 -0
- package/frontend-vue/layers/dms-onboarding/app/middleware/onboarding.global.ts +21 -0
- package/frontend-vue/layers/dms-onboarding/i18n/locales/onboarding-en-GB.json +22 -0
- package/frontend-vue/layers/dms-onboarding/i18n/locales/onboarding-fr-FR.json +22 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/drawer/DynamicDrawer.vue +117 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/modal/DynamicModal.vue +131 -0
- package/frontend-vue/layers/dms-ui/app/build/components/form/PermissionsTreeNode.vue +148 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/Actions.vue +258 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/Empty.vue +143 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +197 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/Menu.vue +133 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuColumns.vue +163 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +371 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuImport.vue +71 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuPage.vue +60 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +140 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +107 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +115 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/Pagination.vue +111 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +89 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/Table.vue +814 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/Tabs.vue +94 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerDefaults.ts +573 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/registerFormFunctions.ts +43 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/shortcuts/useShortcutRegistry.ts +31 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/constants.ts +10 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/types.ts +4 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTable.ts +181 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableColumns.ts +566 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableConfigClipboard.ts +124 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableContext.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableStates.ts +113 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/formatFilterValue.ts +32 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/menuItemFactory.ts +25 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/registerDefaultFunctions.ts +32 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/types.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewConfig.ts +130 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewRowActions.ts +826 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +75 -0
- package/frontend-vue/layers/dms-ui/app/build/types/tree.ts +172 -0
- package/frontend-vue/layers/dms-ui/app/components/PasswordStrength.vue +62 -0
- package/frontend-vue/layers/dms-ui/app/components/Placeholder.vue +49 -0
- package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +85 -0
- package/frontend-vue/layers/dms-ui/app/components/activity/ActivityItem.vue +64 -0
- package/frontend-vue/layers/dms-ui/app/components/banner/Banner.vue +90 -0
- package/frontend-vue/layers/dms-ui/app/components/card/Card.vue +37 -0
- package/frontend-vue/layers/dms-ui/app/components/card/NavCard.vue +45 -0
- package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +84 -0
- package/frontend-vue/layers/dms-ui/app/components/chart/Chart.vue +325 -0
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +196 -0
- package/frontend-vue/layers/dms-ui/app/components/chart/internal/Sparkline.vue +119 -0
- package/frontend-vue/layers/dms-ui/app/components/chart/internal/TrendBadge.vue +57 -0
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +58 -0
- package/frontend-vue/layers/dms-ui/app/components/copy/CopyButton.vue +38 -0
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +501 -0
- package/frontend-vue/layers/dms-ui/app/components/form/Form.vue +533 -0
- package/frontend-vue/layers/dms-ui/app/components/form/LocalizedField.vue +151 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Calendar.vue +121 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Cascader.vue +482 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Checkbox.vue +18 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +151 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePickerRange.vue +61 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Display.vue +59 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayColor.vue +31 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayFile.vue +35 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayImage.vue +54 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayPassword.vue +28 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayRichText.vue +31 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/File.vue +433 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Image.vue +946 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputAddress.vue +525 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputColor.vue +57 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputEmail.vue +14 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputNumber.vue +22 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPassword.vue +110 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPercentage.vue +48 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPhone.vue +18 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputText.vue +18 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputTime.vue +64 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputTree.vue +98 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/PermissionsTree.vue +133 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/RadioGroup.vue +24 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Relation.vue +424 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/RichText.vue +286 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Select.vue +118 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Slider.vue +13 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Switch.vue +18 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Textarea.vue +18 -0
- package/frontend-vue/layers/dms-ui/app/components/grid/Grid.vue +42 -0
- package/frontend-vue/layers/dms-ui/app/components/grid/GridRow.vue +28 -0
- package/frontend-vue/layers/dms-ui/app/components/grid/constants.ts +7 -0
- package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +163 -0
- package/frontend-vue/layers/dms-ui/app/components/master-detail/MasterDetail.vue +75 -0
- package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +308 -0
- package/frontend-vue/layers/dms-ui/app/components/segmented/Segmented.vue +106 -0
- package/frontend-vue/layers/dms-ui/app/components/status/StatusSummary.vue +118 -0
- package/frontend-vue/layers/dms-ui/app/components/tab/Tab.vue +82 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/CascaderPath.vue +78 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/ExportToastContent.vue +24 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/FilePreview.vue +57 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/ImagePreview.vue +78 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +486 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +70 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/PresenceEditModal.vue +142 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +1143 -0
- package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +235 -0
- package/frontend-vue/layers/dms-ui/app/components/top-list/internal/TopListRow.vue +96 -0
- package/frontend-vue/layers/dms-ui/app/components/tree/Tree.vue +195 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexAnnotations.ts +74 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexLocales.ts +42 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexPlotOptions.ts +100 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexTypeConfigs.ts +109 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/events.ts +44 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/formatValue.ts +156 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/resolveSparklineAccent.ts +56 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/types.ts +145 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.ts +709 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.types.ts +80 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/useChartFetch.ts +204 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/useChartTheme.ts +119 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/useThemeRevision.ts +59 -0
- package/frontend-vue/layers/dms-ui/app/composables/confirm/index.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/composables/confirm/useConfirm.ts +24 -0
- package/frontend-vue/layers/dms-ui/app/composables/confirm/usePresenceEditWarning.ts +19 -0
- package/frontend-vue/layers/dms-ui/app/composables/containers/index.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/composables/containers/openDynamicContainer.ts +99 -0
- package/frontend-vue/layers/dms-ui/app/composables/containers/types.ts +43 -0
- package/frontend-vue/layers/dms-ui/app/composables/containers/useDrawer.ts +27 -0
- package/frontend-vue/layers/dms-ui/app/composables/containers/useModal.ts +27 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/api.ts +8 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/content-language.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/events.ts +7 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/field-loading.ts +6 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/field.ts +28 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/functions.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/index.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +29 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/validation.ts +7 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/value.ts +12 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +543 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/useUploadWithProgress.ts +40 -0
- package/frontend-vue/layers/dms-ui/app/composables/resolveDmsComponent.ts +61 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/shortcuts/index.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/shortcuts/tabBuildShortcuts.ts +16 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/shortcuts/tabShortcuts.ts +8 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/shortcuts/useTabShortcuts.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/types/composable.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/types/events.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/types/index.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/types/item.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/types/props.ts +25 -0
- package/frontend-vue/layers/dms-ui/app/composables/tab/useTab.ts +122 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/kanban.ts +151 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/index.ts +61 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewDelete.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewEscape.ts +24 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewMetaR.ts +9 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftA.ts +41 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftF.ts +18 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftN.ts +22 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +48 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/column.ts +39 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +94 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/custom-button.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +160 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/events.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/functions.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/index.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewDisplays.ts +66 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewExport.ts +49 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/index.ts +50 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeArrowDown.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeArrowUp.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeEnd.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeEnter.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeEscape.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeHome.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeShiftA.ts +32 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeSpace.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/types/events.ts +8 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/types/index.ts +4 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/types/navigation.ts +7 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/types/node.ts +12 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/types/props.ts +34 -0
- package/frontend-vue/layers/dms-ui/app/composables/tree/useTree.ts +336 -0
- package/frontend-vue/layers/dms-ui/app/composables/useExportJob.ts +356 -0
- package/frontend-vue/layers/dms-ui/app/composables/useFileReadUrls.ts +105 -0
- package/frontend-vue/layers/dms-ui/app/composables/usePasswordStrength.ts +71 -0
- package/frontend-vue/layers/dms-ui/app/config/shortcuts-registry.ts +19 -0
- package/frontend-vue/layers/dms-ui/app/plugins/register.ts +9 -0
- package/frontend-vue/layers/dms-ui/app/plugins/shortcuts.ts +10 -0
- package/frontend-vue/layers/dms-ui/app/plugins/table-view-displays.client.ts +31 -0
- package/frontend-vue/layers/dms-ui/app/types/modal.ts +9 -0
- package/frontend-vue/layers/dms-ui/app/types/quick-actions.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/types/row-action.ts +12 -0
- package/frontend-vue/layers/dms-ui/app/types/shortcuts.ts +16 -0
- package/frontend-vue/layers/dms-ui/app/types/table/base.ts +10 -0
- package/frontend-vue/layers/dms-ui/app/types/table/index.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/types/table/query.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/utils/cascader.ts +203 -0
- package/frontend-vue/layers/dms-ui/app/utils/fileConstraints.ts +47 -0
- package/frontend-vue/layers/dms-ui/app/utils/imageResize.ts +100 -0
- package/frontend-vue/layers/dms-ui/app/utils/rowClickAction.ts +48 -0
- package/frontend-vue/layers/dms-ui/app/utils/semanticTint.ts +21 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +460 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +461 -0
- package/frontend-vue/package.json +93 -0
- package/frontend-vue/pnpm-lock.yaml +7008 -0
- package/frontend-vue/pnpm-workspace.yaml +9 -0
- package/frontend-vue/tests/api-message-i18n.test.ts +46 -0
- package/frontend-vue/tests/async-data-key-owners.test.ts +74 -0
- package/frontend-vue/tests/cascader.test.ts +189 -0
- package/frontend-vue/tests/chart-auto-y-range.test.ts +115 -0
- package/frontend-vue/tests/chart-click-payload.test.ts +34 -0
- package/frontend-vue/tests/chart-colors.browser.html +157 -0
- package/frontend-vue/tests/chart-colors.test.ts +177 -0
- package/frontend-vue/tests/chart-options.test.ts +281 -0
- package/frontend-vue/tests/chart-series-styles.test.ts +131 -0
- package/frontend-vue/tests/chart-value-precision.test.ts +54 -0
- package/frontend-vue/tests/chart-value-propagation.test.ts +156 -0
- package/frontend-vue/tests/command-palette-search-text.test.ts +118 -0
- package/frontend-vue/tests/dev-reload.test.ts +252 -0
- package/frontend-vue/tests/file-constraints.test.ts +72 -0
- package/frontend-vue/tests/file-read-urls.test.ts +135 -0
- package/frontend-vue/tests/fixtures/TableCellLayout.vue +73 -0
- package/frontend-vue/tests/fixtures/chart-axes.html +39 -0
- package/frontend-vue/tests/fixtures/chart-axes.ts +67 -0
- package/frontend-vue/tests/fixtures/chart-precision.html +37 -0
- package/frontend-vue/tests/fixtures/chart-precision.ts +118 -0
- package/frontend-vue/tests/fixtures/theming/app/app.vue +49 -0
- package/frontend-vue/tests/fixtures/theming/base/app/app.config.ts +1 -0
- package/frontend-vue/tests/fixtures/theming/config.ts +7 -0
- package/frontend-vue/tests/fixtures/theming/consumer/app/app.config.ts +15 -0
- package/frontend-vue/tests/fixtures/theming/consumer/public/brand/dark.svg +1 -0
- package/frontend-vue/tests/fixtures/theming/consumer/public/brand/icon.svg +1 -0
- package/frontend-vue/tests/fixtures/theming/consumer/public/brand/light.svg +1 -0
- package/frontend-vue/tests/fixtures/theming/consumer.css +19 -0
- package/frontend-vue/tests/fixtures/theming/index.html +11 -0
- package/frontend-vue/tests/fixtures/theming/main.ts +36 -0
- package/frontend-vue/tests/fixtures/theming/runtime.ts +12 -0
- package/frontend-vue/tests/fixtures/theming/vite.config.ts +36 -0
- package/frontend-vue/tests/form-required-fields.test.ts +88 -0
- package/frontend-vue/tests/form-reset.test.ts +66 -0
- package/frontend-vue/tests/image-reference-preservation.test.ts +234 -0
- package/frontend-vue/tests/menu-navigation.test.ts +106 -0
- package/frontend-vue/tests/multi-account-validate.test.ts +99 -0
- package/frontend-vue/tests/onboarding-register.test.ts +128 -0
- package/frontend-vue/tests/page-layout-background-refresh.test.ts +321 -0
- package/frontend-vue/tests/page-layout-registration.test.ts +70 -0
- package/frontend-vue/tests/period-presets.test.ts +96 -0
- package/frontend-vue/tests/period-relative-refresh.test.ts +61 -0
- package/frontend-vue/tests/period-scope-first-fetch.test.ts +276 -0
- package/frontend-vue/tests/post-login-redirect.test.ts +87 -0
- package/frontend-vue/tests/quick-actions.test.ts +32 -0
- package/frontend-vue/tests/realtime-auth-recovery.test.ts +146 -0
- package/frontend-vue/tests/sidebar-footer-navigation.test.ts +128 -0
- package/frontend-vue/tests/sidebar-widget-position.test.ts +117 -0
- package/frontend-vue/tests/site-layout-hydration.test.ts +82 -0
- package/frontend-vue/tests/site-layout-refresh.test.ts +131 -0
- package/frontend-vue/tests/sse-stream.test.ts +268 -0
- package/frontend-vue/tests/string-type-parser.test.ts +50 -0
- package/frontend-vue/tests/table-async-data-key.test.ts +33 -0
- package/frontend-vue/tests/table-cell-wrap.test.ts +44 -0
- package/frontend-vue/tests/table-row-hover.test.ts +153 -0
- package/frontend-vue/tests/theming-browser.mjs +130 -0
- package/frontend-vue/tests/trailing-deduper.test.ts +74 -0
- package/frontend-vue/tests/trend-delta-format.test.ts +24 -0
- package/frontend-vue/tests/vue-inventory.test.ts +92 -0
- package/frontend-vue/tests/widget-label-i18n.test.ts +179 -0
- package/frontend-vue/vitest.config.ts +20 -0
- package/package.json +127 -0
- package/skills/dms/REFERENCE.md +39 -0
- package/skills/dms/SKILL.md +98 -0
- package/skills/dms-auth/SKILL.md +105 -0
- package/skills/dms-dev/SKILL.md +107 -0
- package/skills/dms-dev/scripts/dms-dev.sh +198 -0
- package/skills/dms-module/REFERENCE.md +84 -0
- package/skills/dms-module/SKILL.md +104 -0
- package/skills/dms-pages/REFERENCE.md +27 -0
- package/skills/dms-pages/SKILL.md +110 -0
- package/skills/dms-project/REFERENCE.md +24 -0
- package/skills/dms-project/SKILL.md +122 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UserNotificationPreferences } from "../tables";
|
|
2
|
+
declare const UserNotificationPreferencesModel_base: {
|
|
3
|
+
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
|
+
readonly table: import("@antelopejs/interface-database").Table<UserNotificationPreferences>;
|
|
5
|
+
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
+
get(id: string): PromiseLike<UserNotificationPreferences | undefined>;
|
|
7
|
+
getBy(index: keyof UserNotificationPreferences, ...keys: any[]): PromiseLike<UserNotificationPreferences[]>;
|
|
8
|
+
getAll(): PromiseLike<UserNotificationPreferences[]>;
|
|
9
|
+
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences> | import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
|
+
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotificationPreferences>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
|
+
delete(id: string): Promise<number>;
|
|
13
|
+
};
|
|
14
|
+
readonly schemaName: string;
|
|
15
|
+
fromPlainData(obj: any): UserNotificationPreferences;
|
|
16
|
+
fromDatabase(obj: any): UserNotificationPreferences | undefined;
|
|
17
|
+
toDatabase(obj: any): Record<string, any>;
|
|
18
|
+
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
19
|
+
};
|
|
20
|
+
export declare class UserNotificationPreferencesModel extends UserNotificationPreferencesModel_base {
|
|
21
|
+
getByUserId(userId: string): Promise<UserNotificationPreferences | undefined>;
|
|
22
|
+
createDefault(userId: string): Promise<UserNotificationPreferences>;
|
|
23
|
+
updatePreferences(userId: string, preferences: Record<string, boolean>): Promise<Record<string, boolean>>;
|
|
24
|
+
getOrCreatePreferences(userId: string): Promise<UserNotificationPreferences>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserNotificationPreferencesModel = void 0;
|
|
4
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
5
|
+
const registry_1 = require("../../implementations/dms-notifications/registry");
|
|
6
|
+
const tables_1 = require("../tables");
|
|
7
|
+
const buildDefaultPreferences = () => {
|
|
8
|
+
const subjects = (0, registry_1.getRegisteredSubjects)();
|
|
9
|
+
const preferences = {};
|
|
10
|
+
for (const subject of subjects) {
|
|
11
|
+
const key = `${subject.category.id}:${subject.id}`;
|
|
12
|
+
preferences[key] = true;
|
|
13
|
+
}
|
|
14
|
+
return preferences;
|
|
15
|
+
};
|
|
16
|
+
class UserNotificationPreferencesModel extends (0, interface_database_decorators_1.BasicDataModel)(tables_1.UserNotificationPreferences, tables_1.userNotificationPreferencesTableName) {
|
|
17
|
+
async getByUserId(userId) {
|
|
18
|
+
const result = await this.table
|
|
19
|
+
.getAll(userId, "userId")
|
|
20
|
+
.nth(0)
|
|
21
|
+
.default(undefined)
|
|
22
|
+
.run();
|
|
23
|
+
if (!result) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return UserNotificationPreferencesModel.fromDatabase(result);
|
|
27
|
+
}
|
|
28
|
+
async createDefault(userId) {
|
|
29
|
+
const defaultPreferences = buildDefaultPreferences();
|
|
30
|
+
await this.table
|
|
31
|
+
.insert({
|
|
32
|
+
userId,
|
|
33
|
+
preferences: defaultPreferences,
|
|
34
|
+
createdAt: new Date(),
|
|
35
|
+
updatedAt: new Date(),
|
|
36
|
+
})
|
|
37
|
+
.run();
|
|
38
|
+
const created = await this.getByUserId(userId);
|
|
39
|
+
if (!created) {
|
|
40
|
+
throw new Error("Failed to create notification preferences");
|
|
41
|
+
}
|
|
42
|
+
return created;
|
|
43
|
+
}
|
|
44
|
+
async updatePreferences(userId, preferences) {
|
|
45
|
+
await this.table
|
|
46
|
+
.getAll(userId, "userId")
|
|
47
|
+
.update({
|
|
48
|
+
preferences,
|
|
49
|
+
updatedAt: new Date(),
|
|
50
|
+
})
|
|
51
|
+
.run();
|
|
52
|
+
return preferences;
|
|
53
|
+
}
|
|
54
|
+
async getOrCreatePreferences(userId) {
|
|
55
|
+
const existing = await this.getByUserId(userId);
|
|
56
|
+
const hasValidPreferences = existing &&
|
|
57
|
+
typeof existing.preferences === "object" &&
|
|
58
|
+
existing.preferences !== null;
|
|
59
|
+
if (hasValidPreferences) {
|
|
60
|
+
return existing;
|
|
61
|
+
}
|
|
62
|
+
if (existing) {
|
|
63
|
+
const defaultPreferences = buildDefaultPreferences();
|
|
64
|
+
await this.updatePreferences(userId, defaultPreferences);
|
|
65
|
+
return { ...existing, preferences: defaultPreferences };
|
|
66
|
+
}
|
|
67
|
+
return await this.createDefault(userId);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.UserNotificationPreferencesModel = UserNotificationPreferencesModel;
|
|
71
|
+
//# sourceMappingURL=userNotificationPreferences.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userNotificationPreferences.model.js","sourceRoot":"","sources":["../../../src/db/models/userNotificationPreferences.model.ts"],"names":[],"mappings":";;;AAAA,6FAA2E;AAC3E,+EAAyF;AACzF,sCAGmB;AAEnB,MAAM,uBAAuB,GAAG,GAA4B,EAAE;IAC5D,MAAM,QAAQ,GAAG,IAAA,gCAAqB,GAAE,CAAC;IACzC,MAAM,WAAW,GAA4B,EAAE,CAAC;IAEhD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,OAAO,CAAC,EAAE,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E,CAAC;QAET,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,MAAc;QAEd,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAEhD,MAAM,mBAAmB,GACvB,QAAQ;YACR,OAAO,QAAQ,CAAC,WAAW,KAAK,QAAQ;YACxC,QAAQ,CAAC,WAAW,KAAK,IAAI,CAAC;QAEhC,IAAI,mBAAmB,EAAE,CAAC;YACxB,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,kBAAkB,GAAG,uBAAuB,EAAE,CAAC;YACrD,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;YAKzD,OAAO,EAAE,GAAG,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;QAC1D,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;CACF;AAlFD,4EAkFC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { NotificationData } from "@antelopejs/interface-dms/notifications/types";
|
|
2
|
+
import { UserNotification } from "../tables";
|
|
3
|
+
export interface NewUserNotification {
|
|
4
|
+
userId: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
categoryId: string;
|
|
9
|
+
subjectId: string;
|
|
10
|
+
linkTo?: string;
|
|
11
|
+
groupId?: string;
|
|
12
|
+
params?: Record<string, string | number>;
|
|
13
|
+
id?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const UserNotificationsModel_base: {
|
|
16
|
+
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
17
|
+
readonly table: import("@antelopejs/interface-database").Table<UserNotification>;
|
|
18
|
+
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
19
|
+
get(id: string): PromiseLike<UserNotification | undefined>;
|
|
20
|
+
getBy(index: keyof UserNotification, ...keys: any[]): PromiseLike<UserNotification[]>;
|
|
21
|
+
getAll(): PromiseLike<UserNotification[]>;
|
|
22
|
+
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification> | import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
23
|
+
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
24
|
+
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserNotification>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
25
|
+
delete(id: string): Promise<number>;
|
|
26
|
+
};
|
|
27
|
+
readonly schemaName: string;
|
|
28
|
+
fromPlainData(obj: any): UserNotification;
|
|
29
|
+
fromDatabase(obj: any): UserNotification | undefined;
|
|
30
|
+
toDatabase(obj: any): Record<string, any>;
|
|
31
|
+
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
32
|
+
};
|
|
33
|
+
export declare class UserNotificationsModel extends UserNotificationsModel_base {
|
|
34
|
+
get(id: string): Promise<UserNotification | undefined>;
|
|
35
|
+
getAll(): Promise<UserNotification[]>;
|
|
36
|
+
getBy(index: keyof UserNotification, ...keys: unknown[]): Promise<UserNotification[]>;
|
|
37
|
+
getByUserId(userId: string, limit?: number, offset?: number): Promise<UserNotification[]>;
|
|
38
|
+
getUnreadByUserId(userId: string, limit?: number): Promise<UserNotification[]>;
|
|
39
|
+
getBySubject(categoryId: string, subjectId: string): Promise<UserNotification[]>;
|
|
40
|
+
countUnread(userId: string): Promise<number>;
|
|
41
|
+
markAsRead(id: string): Promise<void>;
|
|
42
|
+
markSharedGroupAsRead(groupId: string): Promise<void>;
|
|
43
|
+
markAllAsRead(userId: string): Promise<void>;
|
|
44
|
+
delete(id: string): Promise<number>;
|
|
45
|
+
deleteAll(userId: string): Promise<void>;
|
|
46
|
+
createIdempotently(userId: string, data: NotificationData, key: string, groupId?: string): Promise<UserNotification | undefined>;
|
|
47
|
+
create({ userId, icon, title, description, categoryId, subjectId, linkTo, groupId, params, id, }: NewUserNotification): Promise<UserNotification>;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserNotificationsModel = void 0;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
|
+
const node_util_1 = require("node:util");
|
|
6
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
7
|
+
const run_in_batches_1 = require("../../utils/run-in-batches");
|
|
8
|
+
const tables_1 = require("../tables");
|
|
9
|
+
const SHARED_GROUP_UPDATE_BATCH_SIZE = 10;
|
|
10
|
+
function matchesDelivery(existing, userId, data, groupId) {
|
|
11
|
+
return (existing.isIdempotent === true &&
|
|
12
|
+
(0, node_util_1.isDeepStrictEqual)([
|
|
13
|
+
existing.userId,
|
|
14
|
+
existing.categoryId,
|
|
15
|
+
existing.subjectId,
|
|
16
|
+
existing.groupId,
|
|
17
|
+
existing.icon,
|
|
18
|
+
existing.title,
|
|
19
|
+
existing.description,
|
|
20
|
+
existing.linkTo,
|
|
21
|
+
existing.params,
|
|
22
|
+
], [
|
|
23
|
+
userId,
|
|
24
|
+
data.subject.category.id,
|
|
25
|
+
data.subject.id,
|
|
26
|
+
groupId || null,
|
|
27
|
+
data.icon,
|
|
28
|
+
data.title,
|
|
29
|
+
data.description,
|
|
30
|
+
data.linkTo || null,
|
|
31
|
+
data.params || null,
|
|
32
|
+
]));
|
|
33
|
+
}
|
|
34
|
+
class UserNotificationsModel extends (0, interface_database_decorators_1.BasicDataModel)(tables_1.UserNotification, tables_1.userNotificationsTableName) {
|
|
35
|
+
async get(id) {
|
|
36
|
+
const row = await super.get(id);
|
|
37
|
+
return row?.isDismissed ? undefined : row;
|
|
38
|
+
}
|
|
39
|
+
async getAll() {
|
|
40
|
+
return (await super.getAll()).filter((row) => !row.isDismissed);
|
|
41
|
+
}
|
|
42
|
+
async getBy(index, ...keys) {
|
|
43
|
+
return (await super.getBy(index, ...keys)).filter((row) => !row.isDismissed);
|
|
44
|
+
}
|
|
45
|
+
async getByUserId(userId, limit, offset) {
|
|
46
|
+
let query = this.table
|
|
47
|
+
.getAll(userId, "userId")
|
|
48
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
49
|
+
.orderBy("createdAt", "desc");
|
|
50
|
+
if (limit !== undefined && offset !== undefined) {
|
|
51
|
+
query = query.slice(offset, offset + limit);
|
|
52
|
+
}
|
|
53
|
+
return query
|
|
54
|
+
.run()
|
|
55
|
+
.then((results) => results
|
|
56
|
+
.map((r) => UserNotificationsModel.fromDatabase(r))
|
|
57
|
+
.filter((n) => n !== undefined));
|
|
58
|
+
}
|
|
59
|
+
async getUnreadByUserId(userId, limit) {
|
|
60
|
+
let query = this.table
|
|
61
|
+
.getAll(userId, "userId")
|
|
62
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
63
|
+
.filter((row) => row.key("isRead").eq(false))
|
|
64
|
+
.orderBy("createdAt", "desc");
|
|
65
|
+
if (limit) {
|
|
66
|
+
query = query.slice(0, limit);
|
|
67
|
+
}
|
|
68
|
+
return query
|
|
69
|
+
.run()
|
|
70
|
+
.then((results) => results
|
|
71
|
+
.map((r) => UserNotificationsModel.fromDatabase(r))
|
|
72
|
+
.filter((n) => n !== undefined));
|
|
73
|
+
}
|
|
74
|
+
async getBySubject(categoryId, subjectId) {
|
|
75
|
+
return this.table
|
|
76
|
+
.filter((row) => row.key("categoryId").eq(categoryId))
|
|
77
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
78
|
+
.filter((row) => row.key("subjectId").eq(subjectId))
|
|
79
|
+
.run()
|
|
80
|
+
.then((results) => results
|
|
81
|
+
.map((r) => UserNotificationsModel.fromDatabase(r))
|
|
82
|
+
.filter((n) => n !== undefined));
|
|
83
|
+
}
|
|
84
|
+
async countUnread(userId) {
|
|
85
|
+
return this.table
|
|
86
|
+
.getAll(userId, "userId")
|
|
87
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
88
|
+
.filter((row) => row.key("isRead").eq(false))
|
|
89
|
+
.count()
|
|
90
|
+
.run();
|
|
91
|
+
}
|
|
92
|
+
async markAsRead(id) {
|
|
93
|
+
const notification = await this.get(id);
|
|
94
|
+
if (!notification)
|
|
95
|
+
return;
|
|
96
|
+
if (notification?.groupId) {
|
|
97
|
+
await this.markSharedGroupAsRead(notification.groupId);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
await this.table
|
|
101
|
+
.get(id)
|
|
102
|
+
.update({
|
|
103
|
+
isRead: true,
|
|
104
|
+
updatedAt: new Date(),
|
|
105
|
+
})
|
|
106
|
+
.run();
|
|
107
|
+
}
|
|
108
|
+
async markSharedGroupAsRead(groupId) {
|
|
109
|
+
await this.table
|
|
110
|
+
.getAll(groupId, "groupId")
|
|
111
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
112
|
+
.filter((row) => row.key("isRead").eq(false))
|
|
113
|
+
.update({
|
|
114
|
+
isRead: true,
|
|
115
|
+
updatedAt: new Date(),
|
|
116
|
+
})
|
|
117
|
+
.run();
|
|
118
|
+
}
|
|
119
|
+
async markAllAsRead(userId) {
|
|
120
|
+
const notifications = await this.table
|
|
121
|
+
.getAll(userId, "userId")
|
|
122
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
123
|
+
.filter((row) => row.key("isRead").eq(false))
|
|
124
|
+
.run();
|
|
125
|
+
if (notifications.length === 0) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const uniqueGroupIds = [
|
|
129
|
+
...new Set(notifications
|
|
130
|
+
.map((n) => n.groupId)
|
|
131
|
+
.filter((id) => id !== null && id !== undefined)),
|
|
132
|
+
];
|
|
133
|
+
await this.table
|
|
134
|
+
.getAll(userId, "userId")
|
|
135
|
+
.filter((row) => row.key("isDismissed").ne(true))
|
|
136
|
+
.filter((row) => row.key("isRead").eq(false))
|
|
137
|
+
.update({
|
|
138
|
+
isRead: true,
|
|
139
|
+
updatedAt: new Date(),
|
|
140
|
+
})
|
|
141
|
+
.run();
|
|
142
|
+
await (0, run_in_batches_1.runInBatches)(uniqueGroupIds, SHARED_GROUP_UPDATE_BATCH_SIZE, (groupId) => this.markSharedGroupAsRead(groupId));
|
|
143
|
+
}
|
|
144
|
+
async delete(id) {
|
|
145
|
+
const row = await this.get(id);
|
|
146
|
+
if (!row)
|
|
147
|
+
return 0;
|
|
148
|
+
if (!row.isIdempotent)
|
|
149
|
+
return super.delete(id);
|
|
150
|
+
return this.table.get(id).update({ isDismissed: true }).run();
|
|
151
|
+
}
|
|
152
|
+
async deleteAll(userId) {
|
|
153
|
+
await this.table
|
|
154
|
+
.getAll(userId, "userId")
|
|
155
|
+
.filter((row) => row.key("isIdempotent").eq(true))
|
|
156
|
+
.update({ isDismissed: true })
|
|
157
|
+
.run();
|
|
158
|
+
await this.table
|
|
159
|
+
.getAll(userId, "userId")
|
|
160
|
+
.filter((row) => row.key("isIdempotent").ne(true))
|
|
161
|
+
.delete()
|
|
162
|
+
.run();
|
|
163
|
+
}
|
|
164
|
+
async createIdempotently(userId, data, key, groupId) {
|
|
165
|
+
const id = `notification:${(0, node_crypto_1.createHash)("sha256")
|
|
166
|
+
.update(JSON.stringify([key, userId]))
|
|
167
|
+
.digest("hex")}`;
|
|
168
|
+
try {
|
|
169
|
+
return await this.create({
|
|
170
|
+
userId,
|
|
171
|
+
icon: data.icon,
|
|
172
|
+
title: data.title,
|
|
173
|
+
description: data.description,
|
|
174
|
+
categoryId: data.subject.category.id,
|
|
175
|
+
subjectId: data.subject.id,
|
|
176
|
+
linkTo: data.linkTo,
|
|
177
|
+
groupId,
|
|
178
|
+
params: data.params,
|
|
179
|
+
id,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
const existing = await this.table.get(id).run();
|
|
184
|
+
if (!existing || !matchesDelivery(existing, userId, data, groupId))
|
|
185
|
+
throw error;
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
async create({ userId, icon, title, description, categoryId, subjectId, linkTo, groupId, params, id, }) {
|
|
190
|
+
const notification = {
|
|
191
|
+
userId,
|
|
192
|
+
icon,
|
|
193
|
+
title,
|
|
194
|
+
description,
|
|
195
|
+
linkTo: linkTo || null,
|
|
196
|
+
params: params || null,
|
|
197
|
+
isRead: false,
|
|
198
|
+
categoryId,
|
|
199
|
+
subjectId,
|
|
200
|
+
groupId: groupId || null,
|
|
201
|
+
createdAt: new Date(),
|
|
202
|
+
updatedAt: new Date(),
|
|
203
|
+
};
|
|
204
|
+
if (id !== undefined) {
|
|
205
|
+
notification._id = id;
|
|
206
|
+
notification.isIdempotent = true;
|
|
207
|
+
}
|
|
208
|
+
const [createdId] = await this.table.insert(notification).run();
|
|
209
|
+
const created = await super.get(createdId);
|
|
210
|
+
if (!created) {
|
|
211
|
+
throw new Error("Failed to create notification");
|
|
212
|
+
}
|
|
213
|
+
return created;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
exports.UserNotificationsModel = UserNotificationsModel;
|
|
217
|
+
//# sourceMappingURL=userNotifications.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userNotifications.model.js","sourceRoot":"","sources":["../../../src/db/models/userNotifications.model.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,yCAA8C;AAC9C,6FAA2E;AAE3E,+DAA0D;AAC1D,sCAAyE;AAEzE,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAoB1C,SAAS,eAAe,CACtB,QAA0B,EAC1B,MAAc,EACd,IAAsB,EACtB,OAAgB;IAEhB,OA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AAY,CAAC,GAAG,GAAG,EAAE,CAAC;YACtB,YAAY,CAAC,YAAY,GAAG,IAAI,CAAC;QACnC,CAAC;QAED,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC;QAChE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAE3C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAjQD,wDAiQC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
+
export declare const attachmentsTableName = "attachments";
|
|
3
|
+
export declare class Attachment extends Table {
|
|
4
|
+
_id: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
storage: string;
|
|
7
|
+
resourceKey: string;
|
|
8
|
+
claimsJson: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Attachment = exports.attachmentsTableName = void 0;
|
|
13
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
|
+
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
|
+
exports.attachmentsTableName = "attachments";
|
|
16
|
+
let Attachment = class Attachment extends interface_database_decorators_1.Table {
|
|
17
|
+
};
|
|
18
|
+
exports.Attachment = Attachment;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Attachment.prototype, "_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, interface_database_decorators_1.Index)(),
|
|
25
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Attachment.prototype, "tenantId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Attachment.prototype, "storage", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Attachment.prototype, "resourceKey", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Attachment.prototype, "claimsJson", void 0);
|
|
40
|
+
exports.Attachment = Attachment = __decorate([
|
|
41
|
+
(0, interface_database_decorators_1.RegisterTable)(exports.attachmentsTableName, constants_1.CORE_SCHEMA_NAME)
|
|
42
|
+
], Attachment);
|
|
43
|
+
//# sourceMappingURL=attachments.table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachments.table.js","sourceRoot":"","sources":["../../../src/db/tables/attachments.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAKmD;AACnD,mEAAuE;AAE1D,QAAA,oBAAoB,GAAG,aAAa,CAAC;AAG3C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qCAAK;CAMpC,CAAA;AANY,gCAAU;AACI;IAAxB,IAAA,qCAAK,EAAC,QAAQ,CAAC;;uCAAqB;AACH;IAAjC,IAAA,qCAAK,GAAE;IAAE,IAAA,qCAAK,EAAC,QAAQ,CAAC;;4CAA0B;AAC1B;IAAxB,IAAA,qCAAK,EAAC,QAAQ,CAAC;;2CAAyB;AAChB;IAAxB,IAAA,qCAAK,EAAC,QAAQ,CAAC;;+CAA6B;AACpB;IAAxB,IAAA,qCAAK,EAAC,QAAQ,CAAC;;8CAA4B;qBALjC,UAAU;IADtB,IAAA,6CAAa,EAAC,4BAAoB,EAAE,4BAAgB,CAAC;GACzC,UAAU,CAMtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./attachments.table"), exports);
|
|
18
|
+
__exportStar(require("./systemState.table"), exports);
|
|
19
|
+
__exportStar(require("./userNotificationPreferences.table"), exports);
|
|
20
|
+
__exportStar(require("./userNotifications.table"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/tables/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC;AACpC,sEAAoD;AACpD,4DAA0C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SystemState = exports.systemStateTableName = void 0;
|
|
13
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
|
+
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
|
+
exports.systemStateTableName = "system_state";
|
|
16
|
+
const defaultSystemState = [
|
|
17
|
+
{
|
|
18
|
+
has_onboarded: false,
|
|
19
|
+
createdAt: new Date(),
|
|
20
|
+
updatedAt: new Date(),
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
let SystemState = class SystemState extends interface_database_decorators_1.Table {
|
|
24
|
+
};
|
|
25
|
+
exports.SystemState = SystemState;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SystemState.prototype, "_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, interface_database_decorators_1.Field)("boolean"),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], SystemState.prototype, "has_onboarded", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, interface_database_decorators_1.Index)(),
|
|
36
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], SystemState.prototype, "createdAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, interface_database_decorators_1.Index)(),
|
|
41
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], SystemState.prototype, "updatedAt", void 0);
|
|
44
|
+
exports.SystemState = SystemState = __decorate([
|
|
45
|
+
(0, interface_database_decorators_1.Fixture)(() => defaultSystemState),
|
|
46
|
+
(0, interface_database_decorators_1.RegisterTable)(exports.systemStateTableName, constants_1.CORE_SCHEMA_NAME)
|
|
47
|
+
], SystemState);
|
|
48
|
+
//# sourceMappingURL=systemState.table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemState.table.js","sourceRoot":"","sources":["../../../src/db/tables/systemState.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAMmD;AACnD,mEAAuE;AAE1D,QAAA,oBAAoB,GAAG,cAAc,CAAC;AAEnD,MAAM,kBAAkB,GAA2B;IACjD;QACE,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,IAAI,IAAI,EAAE;QACrB,SAAS,EAAE,IAAI,IAAI,EAAE;KACtB;CACF,CAAC;AAIK,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,qCAAK;CAOrC,CAAA;AAPY,kCAAW;AACG;IAAxB,IAAA,qCAAK,EAAC,QAAQ,CAAC;;wCAAqB;AAEX;IAAzB,IAAA,qCAAK,EAAC,SAAS,CAAC;;kDAAgC;AAEjB;IAA/B,IAAA,qCAAK,GAAE;IAAE,IAAA,qCAAK,EAAC,MAAM,CAAC;8BAAoB,IAAI;8CAAC;AAChB;IAA/B,IAAA,qCAAK,GAAE;IAAE,IAAA,qCAAK,EAAC,MAAM,CAAC;8BAAoB,IAAI;8CAAC;sBANrC,WAAW;IAFvB,IAAA,uCAAO,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;IACjC,IAAA,6CAAa,EAAC,4BAAoB,EAAE,4BAAgB,CAAC;GACzC,WAAW,CAOvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
+
export declare const userNotificationPreferencesTableName = "user_notification_preferences";
|
|
3
|
+
export declare class UserNotificationPreferences extends Table {
|
|
4
|
+
_id: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
preferences: Record<string, boolean>;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserNotificationPreferences = exports.userNotificationPreferencesTableName = void 0;
|
|
13
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
|
+
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
|
+
const users_table_1 = require("@antelopejs/interface-dms/auth/db/tables/users.table");
|
|
16
|
+
exports.userNotificationPreferencesTableName = "user_notification_preferences";
|
|
17
|
+
let UserNotificationPreferences = class UserNotificationPreferences extends interface_database_decorators_1.Table {
|
|
18
|
+
};
|
|
19
|
+
exports.UserNotificationPreferences = UserNotificationPreferences;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], UserNotificationPreferences.prototype, "_id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, interface_database_decorators_1.Index)(),
|
|
26
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
27
|
+
(0, interface_database_decorators_1.Relation)({ to: () => users_table_1.User }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UserNotificationPreferences.prototype, "userId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, interface_database_decorators_1.Field)("any"),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], UserNotificationPreferences.prototype, "preferences", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, interface_database_decorators_1.CreationTime)(),
|
|
36
|
+
(0, interface_database_decorators_1.Index)(),
|
|
37
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], UserNotificationPreferences.prototype, "createdAt", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, interface_database_decorators_1.UpdateTime)(),
|
|
42
|
+
(0, interface_database_decorators_1.Index)(),
|
|
43
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], UserNotificationPreferences.prototype, "updatedAt", void 0);
|
|
46
|
+
exports.UserNotificationPreferences = UserNotificationPreferences = __decorate([
|
|
47
|
+
(0, interface_database_decorators_1.RegisterTable)(exports.userNotificationPreferencesTableName, constants_1.CORE_SCHEMA_NAME)
|
|
48
|
+
], UserNotificationPreferences);
|
|
49
|
+
//# sourceMappingURL=userNotificationPreferences.table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userNotificationPreferences.table.js","sourceRoot":"","sources":["../../../src/db/tables/userNotificationPreferences.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAQmD;AACnD,mEAAuE;AACvE,sFAA4E;AAE/D,QAAA,oCAAoC,GAC/C,+BAA+B,CAAC;AAG3B,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,qCAAK;CAqBrD,CAAA;AArBY,kEAA2B;AAE9B;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;wDACI;AAKZ;IAHP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,QAAQ,CAAC;IACf,IAAA,wCAAQ,EAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC;;2DACN;AAGf;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;gEACgC;AAKrC;IAHP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;8DAAC;AAKhB;IAHP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;8DAAC;sCApBb,2BAA2B;IADvC,IAAA,6CAAa,EAAC,4CAAoC,EAAE,4BAAgB,CAAC;GACzD,2BAA2B,CAqBvC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
+
export declare const userNotificationsTableName = "user_notifications";
|
|
3
|
+
export declare class UserNotification extends Table {
|
|
4
|
+
_id: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
linkTo: string | null;
|
|
10
|
+
params: Record<string, string | number> | null;
|
|
11
|
+
isRead: boolean;
|
|
12
|
+
isDismissed?: boolean;
|
|
13
|
+
isIdempotent?: boolean;
|
|
14
|
+
categoryId: string;
|
|
15
|
+
subjectId: string;
|
|
16
|
+
groupId: string | null;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
}
|