@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
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Changelog
|
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright (c) 2025-present - AntelopeJS Team
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @antelopejs/dms
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue?style=for-the-badge&labelColor=000000"></a>
|
|
5
|
+
<a href="https://discord.gg/sjK28QHrA7"><img src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000" alt="Discord"></a>
|
|
6
|
+
<a href="https://antelopejs.com"><img src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000" alt="Documentation"></a>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
The AntelopeJS dashboard management system (DMS). It provides an Inertia/Vue admin dashboard,
|
|
10
|
+
authentication and tenancy, declarative pages and components, data management, file uploads,
|
|
11
|
+
notifications, and realtime updates.
|
|
12
|
+
|
|
13
|
+
Its public contracts live in a separate package, [`@antelopejs/interface-dms`](../interface-dms):
|
|
14
|
+
modules import the interfaces from there and never from the runtime.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
ajs project modules add @antelopejs/dms
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The dashboard also requires an API module, a module implementing the Database interface, and an
|
|
23
|
+
authentication module. The frontend is served separately by the `ajs-dms` CLI from
|
|
24
|
+
[`@antelopejs/dms-frontend`](https://github.com/AntelopeJS/dms-frontend).
|
|
25
|
+
|
|
26
|
+
## Getting started
|
|
27
|
+
|
|
28
|
+
Start with the [installation guide](./docs/01.getting-started/02.installation.md) and
|
|
29
|
+
[quickstart](./docs/01.getting-started/03.quickstart.md). The quickstart uses the maintained
|
|
30
|
+
[`template-dms-demo`](https://github.com/AntelopeJS/template-dms-demo), which includes a complete
|
|
31
|
+
backend and frontend setup.
|
|
32
|
+
|
|
33
|
+
Module settings belong in the `config` block for `@antelopejs/dms` in
|
|
34
|
+
`antelope.config.ts`. See the [configuration reference](./docs/02.building/02.configuration.md) for
|
|
35
|
+
the verified options and defaults. In production, set strong values for `auth.jwtSecret`,
|
|
36
|
+
`htmlRender.serviceSecret`, and `frontend.bootstrapSecret`; use Redis for realtime operation across
|
|
37
|
+
multiple backend instances.
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
Run from the repository root, which is a pnpm workspace holding this package and
|
|
42
|
+
`packages/interface-dms`:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pnpm install
|
|
46
|
+
pnpm build
|
|
47
|
+
pnpm test
|
|
48
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RequestContext } from "@antelopejs/interface-api";
|
|
2
|
+
import type { NativeUploadFieldRegistration } from "@antelopejs/interface-dms/uploads";
|
|
3
|
+
import { type RequestPrincipal } from "@antelopejs/interface-dms/auth";
|
|
4
|
+
import type { UploadTokenClaims } from "../utils/upload-token";
|
|
5
|
+
export declare const RegisterNativeUploadField: {
|
|
6
|
+
register(registration: NativeUploadFieldRegistration): void;
|
|
7
|
+
unregister(registration: NativeUploadFieldRegistration): void;
|
|
8
|
+
};
|
|
9
|
+
export declare function assertNativeFileAccess(context: RequestContext, owner: UploadTokenClaims, write: boolean): Promise<RequestPrincipal>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterNativeUploadField = void 0;
|
|
4
|
+
exports.assertNativeFileAccess = assertNativeFileAccess;
|
|
5
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
6
|
+
const page_1 = require("../implementations/dms/page");
|
|
7
|
+
const db_1 = require("@antelopejs/interface-dms/db");
|
|
8
|
+
const permissions_1 = require("@antelopejs/interface-dms/permissions");
|
|
9
|
+
const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
10
|
+
const registry_1 = require("./registry");
|
|
11
|
+
const registrations = new Map();
|
|
12
|
+
exports.RegisterNativeUploadField = {
|
|
13
|
+
register(registration) {
|
|
14
|
+
const key = JSON.stringify(registration);
|
|
15
|
+
const current = registrations.get(key);
|
|
16
|
+
registrations.set(key, {
|
|
17
|
+
declaration: JSON.parse(key),
|
|
18
|
+
count: (current?.count || 0) + 1,
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
unregister(registration) {
|
|
22
|
+
const key = JSON.stringify(registration);
|
|
23
|
+
const current = registrations.get(key);
|
|
24
|
+
if (current && current.count > 1)
|
|
25
|
+
current.count -= 1;
|
|
26
|
+
else
|
|
27
|
+
registrations.delete(key);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
function declarationsMatch(declaration, claims, write) {
|
|
31
|
+
return (declaration.pageId === claims.pageId &&
|
|
32
|
+
declaration.componentId === claims.componentId &&
|
|
33
|
+
declaration.field === claims.field &&
|
|
34
|
+
declaration.storage === claims.storage &&
|
|
35
|
+
declaration.path === claims.path &&
|
|
36
|
+
declaration.visibility === claims.visibility &&
|
|
37
|
+
(!write || declaration.writePermission === claims.writePermission));
|
|
38
|
+
}
|
|
39
|
+
async function hasComponentAccess(principal, registration, memberModel, roleModel, write) {
|
|
40
|
+
const member = await memberModel.getByUser(principal.user._id);
|
|
41
|
+
if (!member)
|
|
42
|
+
return false;
|
|
43
|
+
const permissions = await (0, permissions_1.GetEffectiveUserPermissions)(principal.user, principal.tenantId, member.roleIds, roleModel);
|
|
44
|
+
const required = [...registration.readPermissions];
|
|
45
|
+
if (write && registration.writePermission)
|
|
46
|
+
required.push(registration.writePermission);
|
|
47
|
+
return (await Promise.all(required.map((id) => (0, permissions_1.HasPermission)(permissions, id)))).every(Boolean);
|
|
48
|
+
}
|
|
49
|
+
async function assertNativeFileAccess(context, owner, write) {
|
|
50
|
+
if (!owner.pageId || !owner.componentId)
|
|
51
|
+
(0, registry_1.denyAttachment)();
|
|
52
|
+
const registration = [...registrations.values()].find((item) => declarationsMatch(item.declaration, owner, write))?.declaration;
|
|
53
|
+
if (!registration)
|
|
54
|
+
(0, registry_1.denyAttachment)();
|
|
55
|
+
if (write && registration.writePermission === "__native_upload_disabled__")
|
|
56
|
+
(0, registry_1.denyAttachment)();
|
|
57
|
+
const principal = await (0, auth_1.authenticateRequestPrincipal)(context);
|
|
58
|
+
const memberModel = (0, interface_database_decorators_1.GetModel)(db_1.TenantMemberModel, principal.tenantId);
|
|
59
|
+
const roleModel = (0, interface_database_decorators_1.GetModel)(db_1.RoleModel, principal.tenantId);
|
|
60
|
+
if (!(await (0, page_1.userCanAccessPage)(principal.user, registration.pageId, memberModel, roleModel, principal.tenantId)))
|
|
61
|
+
(0, registry_1.denyAttachment)();
|
|
62
|
+
if (!(await hasComponentAccess(principal, registration, memberModel, roleModel, write)))
|
|
63
|
+
(0, registry_1.denyAttachment)();
|
|
64
|
+
return principal;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=access.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/attachments/access.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tableAttachmentFields = tableAttachmentFields;
|
|
4
|
+
const data_types_1 = require("@antelopejs/interface-dms/base/data-types");
|
|
5
|
+
function tableAttachmentFields(meta, scope) {
|
|
6
|
+
return Object.entries(meta.columns).flatMap(([key, column]) => {
|
|
7
|
+
const kind = (0, data_types_1.getDataTypeId)(column.type);
|
|
8
|
+
if (kind !== "file" && kind !== "image")
|
|
9
|
+
return [];
|
|
10
|
+
const options = column.type.options;
|
|
11
|
+
return [
|
|
12
|
+
{
|
|
13
|
+
id: `${scope}#${key}`,
|
|
14
|
+
key,
|
|
15
|
+
kind,
|
|
16
|
+
storage: options?.storage,
|
|
17
|
+
visibility: options?.visibility === "public"
|
|
18
|
+
? "public"
|
|
19
|
+
: "private",
|
|
20
|
+
constraints: options?.constraints,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=bindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bindings.js","sourceRoot":"","sources":["../../src/attachments/bindings.ts"],"names":[],"mappings":";;AAIA,sDAsBC;AAzBD,0EAA0E;AAG1E,SAAgB,qBAAqB,CACnC,IAAmB,EACnB,KAAa;IAEb,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;QAC5D,MAAM,IAAI,GAAG,IAAA,0BAAa,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,OAAO;YAAE,OAAO,EAAE,CAAC;QACnD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;QACpC,OAAO;YACL;gBACE,EAAE,EAAE,GAAG,KAAK,IAAI,GAAG,EAAE;gBACrB,GAAG;gBACH,IAAI;gBACJ,OAAO,EAAE,OAAO,EAAE,OAA6B;gBAC/C,UAAU,EACR,OAAO,EAAE,UAAU,KAAK,QAAQ;oBAC9B,CAAC,CAAE,QAAkB;oBACrB,CAAC,CAAE,SAAmB;gBAC1B,WAAW,EAAE,OAAO,EAAE,WAA6C;aACpE;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AttachmentField } from "@antelopejs/interface-dms/attachments";
|
|
2
|
+
export interface AttachmentReference {
|
|
3
|
+
key: string;
|
|
4
|
+
field: AttachmentField;
|
|
5
|
+
}
|
|
6
|
+
export declare function collectAttachments(fields: AttachmentField[], document: Record<string, unknown>): AttachmentReference[];
|
|
7
|
+
export declare function containsAttachment(references: AttachmentReference[], reference: AttachmentReference): boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.collectAttachments = collectAttachments;
|
|
4
|
+
exports.containsAttachment = containsAttachment;
|
|
5
|
+
function extractKeys(value, kind) {
|
|
6
|
+
if (kind === "file" && typeof value === "string")
|
|
7
|
+
return value ? [value] : [];
|
|
8
|
+
if (!value || typeof value !== "object")
|
|
9
|
+
return [];
|
|
10
|
+
if (!Array.isArray(value) && kind === "image" && "key" in value) {
|
|
11
|
+
return typeof value.key === "string" && value.key ? [value.key] : [];
|
|
12
|
+
}
|
|
13
|
+
return Object.values(value).flatMap((item) => extractKeys(item, kind));
|
|
14
|
+
}
|
|
15
|
+
function collectAttachments(fields, document) {
|
|
16
|
+
return fields.flatMap((field) => [...new Set(extractKeys(document[field.key], field.kind))].map((key) => ({
|
|
17
|
+
key,
|
|
18
|
+
field,
|
|
19
|
+
})));
|
|
20
|
+
}
|
|
21
|
+
function containsAttachment(references, reference) {
|
|
22
|
+
return references.some((candidate) => candidate.key === reference.key &&
|
|
23
|
+
candidate.field.id === reference.field.id);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../src/attachments/fields.ts"],"names":[],"mappings":";;AAgBA,gDAUC;AAED,gDASC;AA9BD,SAAS,WAAW,CAAC,KAAc,EAAE,IAA6B;IAChE,IAAI,IAAI,KAAK,MAAM,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9E,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IACnD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,OAAO,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;QAChE,OAAO,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACvE,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,SAAgB,kBAAkB,CAChC,MAAyB,EACzB,QAAiC;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAC9B,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACvE,GAAG;QACH,KAAK;KACN,CAAC,CAAC,CACJ,CAAC;AACJ,CAAC;AAED,SAAgB,kBAAkB,CAChC,UAAiC,EACjC,SAA8B;IAE9B,OAAO,UAAU,CAAC,IAAI,CACpB,CAAC,SAAS,EAAE,EAAE,CACZ,SAAS,CAAC,GAAG,KAAK,SAAS,CAAC,GAAG;QAC/B,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,SAAS,CAAC,KAAK,CAAC,EAAE,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RequestContext } from "@antelopejs/interface-api";
|
|
2
|
+
export declare function readAttachment(context: RequestContext, key: string, storage?: string): Promise<{
|
|
3
|
+
url: string;
|
|
4
|
+
expiresAt?: number;
|
|
5
|
+
resourceKey: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
size: number;
|
|
8
|
+
mimetype: string;
|
|
9
|
+
lastModified: number;
|
|
10
|
+
metadata?: Record<string, string>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readAttachment = readAttachment;
|
|
4
|
+
const interface_api_1 = require("@antelopejs/interface-api");
|
|
5
|
+
const interface_file_storage_1 = require("@antelopejs/interface-file-storage");
|
|
6
|
+
const access_1 = require("./access");
|
|
7
|
+
const registry_1 = require("./registry");
|
|
8
|
+
const SIGNING_MARGIN_SECONDS = 1;
|
|
9
|
+
const MILLISECONDS_PER_SECOND = 1000;
|
|
10
|
+
async function readStoredFile(key, storage) {
|
|
11
|
+
try {
|
|
12
|
+
const metadata = await (0, interface_file_storage_1.GetFileMetadata)(key, storage);
|
|
13
|
+
const read = await (0, interface_file_storage_1.CreateReadUrl)(key, registry_1.PRIVATE_LINK_TTL_SECONDS - SIGNING_MARGIN_SECONDS, storage);
|
|
14
|
+
return { ...metadata, ...read };
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
if (error instanceof interface_file_storage_1.FileNotFoundError)
|
|
18
|
+
throw new interface_api_1.HTTPResult(404, "File not found");
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function readAttachment(context, key, storage) {
|
|
23
|
+
const attachment = await (0, registry_1.loadAttachment)(key, storage);
|
|
24
|
+
const claims = JSON.parse(attachment.claimsJson);
|
|
25
|
+
const principal = await (0, access_1.assertNativeFileAccess)(context, claims, false);
|
|
26
|
+
if (attachment.tenantId !== principal.tenantId)
|
|
27
|
+
(0, registry_1.denyAttachment)();
|
|
28
|
+
const deadline = Date.now() + registry_1.PRIVATE_LINK_TTL_SECONDS * MILLISECONDS_PER_SECOND;
|
|
29
|
+
const read = await readStoredFile(key, storage);
|
|
30
|
+
if (claims.visibility !== "public" &&
|
|
31
|
+
(!Number.isFinite(read.expiresAt) || read.expiresAt > deadline)) {
|
|
32
|
+
(0, registry_1.denyAttachment)();
|
|
33
|
+
}
|
|
34
|
+
return read;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/attachments/read.ts"],"names":[],"mappings":";;AAkCA,wCAmBC;AArDD,6DAA4E;AAC5E,+EAI4C;AAE5C,qCAAkD;AAClD,yCAIoB;AAEpB,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACjC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,KAAK,UAAU,cAAc,CAAC,GAAW,EAAE,OAAgB;IACzD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,IAAA,wCAAe,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,IAAA,sCAAa,EAC9B,GAAG,EACH,mCAAwB,GAAG,sBAAsB,EACjD,OAAO,CACR,CAAC;QACF,OAAO,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,0CAAiB;YACpC,MAAM,IAAI,0BAAU,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAC9C,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAGM,KAAK,UAAU,cAAc,CAClC,OAAuB,EACvB,GAAW,EACX,OAAgB;IAEhB,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAc,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACtD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAsB,CAAC;IACtE,MAAM,SAAS,GAAG,MAAM,IAAA,+BAAsB,EAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACvE,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ;QAAE,IAAA,yBAAc,GAAE,CAAC;IACjE,MAAM,QAAQ,GACZ,IAAI,CAAC,GAAG,EAAE,GAAG,mCAAwB,GAAG,uBAAuB,CAAC;IAClE,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChD,IACE,MAAM,CAAC,UAAU,KAAK,QAAQ;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAK,IAAI,CAAC,SAAoB,GAAG,QAAQ,CAAC,EAC3E,CAAC;QACD,IAAA,yBAAc,GAAE,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PRIVATE_LINK_TTL_SECONDS = 60;
|
|
2
|
+
export declare function attachmentTable(): import("@antelopejs/interface-database").Table<import("../db").Attachment>;
|
|
3
|
+
export declare function denyAttachment(): never;
|
|
4
|
+
export declare function attachmentId(key: string, storage?: string): string;
|
|
5
|
+
export declare function findAttachment(key: string, storage?: string): Promise<import("../db").Attachment | undefined>;
|
|
6
|
+
export declare function loadAttachment(key: string, storage?: string): Promise<import("../db").Attachment>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRIVATE_LINK_TTL_SECONDS = void 0;
|
|
4
|
+
exports.attachmentTable = attachmentTable;
|
|
5
|
+
exports.denyAttachment = denyAttachment;
|
|
6
|
+
exports.attachmentId = attachmentId;
|
|
7
|
+
exports.findAttachment = findAttachment;
|
|
8
|
+
exports.loadAttachment = loadAttachment;
|
|
9
|
+
const node_crypto_1 = require("node:crypto");
|
|
10
|
+
const interface_api_1 = require("@antelopejs/interface-api");
|
|
11
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
12
|
+
const interface_file_storage_1 = require("@antelopejs/interface-file-storage");
|
|
13
|
+
const attachments_model_1 = require("../db/models/attachments.model");
|
|
14
|
+
exports.PRIVATE_LINK_TTL_SECONDS = 60;
|
|
15
|
+
const FORBIDDEN = 403;
|
|
16
|
+
function attachmentTable() {
|
|
17
|
+
return (0, interface_database_decorators_1.GetModel)(attachments_model_1.AttachmentModel).table;
|
|
18
|
+
}
|
|
19
|
+
function denyAttachment() {
|
|
20
|
+
throw new interface_api_1.HTTPResult(FORBIDDEN, "File access denied.");
|
|
21
|
+
}
|
|
22
|
+
function attachmentId(key, storage) {
|
|
23
|
+
return (0, node_crypto_1.createHash)("sha256")
|
|
24
|
+
.update(JSON.stringify([storage || "", (0, interface_file_storage_1.stripStagingPrefix)(key)]))
|
|
25
|
+
.digest("hex");
|
|
26
|
+
}
|
|
27
|
+
async function findAttachment(key, storage) {
|
|
28
|
+
return (0, interface_database_decorators_1.GetModel)(attachments_model_1.AttachmentModel).get(attachmentId(key, storage));
|
|
29
|
+
}
|
|
30
|
+
async function loadAttachment(key, storage) {
|
|
31
|
+
const attachment = await findAttachment(key, storage);
|
|
32
|
+
if (!attachment)
|
|
33
|
+
denyAttachment();
|
|
34
|
+
return attachment;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/attachments/registry.ts"],"names":[],"mappings":";;;AASA,0CAEC;AAED,wCAEC;AAED,oCAIC;AAED,wCAEC;AAED,wCAIC;AA/BD,6CAAyC;AACzC,6DAAuD;AACvD,6FAAqE;AACrE,+EAAwE;AACxE,sEAAiE;AAEpD,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC3C,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,SAAgB,eAAe;IAC7B,OAAO,IAAA,wCAAQ,EAAC,mCAAe,CAAC,CAAC,KAAK,CAAC;AACzC,CAAC;AAED,SAAgB,cAAc;IAC5B,MAAM,IAAI,0BAAU,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,YAAY,CAAC,GAAW,EAAE,OAAgB;IACxD,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC;SACxB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,IAAI,EAAE,EAAE,IAAA,2CAAkB,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SAChE,MAAM,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC;AAEM,KAAK,UAAU,cAAc,CAAC,GAAW,EAAE,OAAgB;IAChE,OAAO,IAAA,wCAAQ,EAAC,mCAAe,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AACnE,CAAC;AAEM,KAAK,UAAU,cAAc,CAAC,GAAW,EAAE,OAAgB;IAChE,MAAM,UAAU,GAAG,MAAM,cAAc,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACtD,IAAI,CAAC,UAAU;QAAE,cAAc,EAAE,CAAC;IAClC,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SaveComponentFiles = SaveComponentFiles;
|
|
4
|
+
const logging_1 = require("@antelopejs/interface-core/logging");
|
|
5
|
+
const interface_file_storage_1 = require("@antelopejs/interface-file-storage");
|
|
6
|
+
const access_1 = require("./access");
|
|
7
|
+
const fields_1 = require("./fields");
|
|
8
|
+
const registry_1 = require("./registry");
|
|
9
|
+
function assertConstraints(metadata, reference) {
|
|
10
|
+
const constraints = reference.field.constraints;
|
|
11
|
+
if (constraints?.maxSize !== undefined && metadata.size > constraints.maxSize)
|
|
12
|
+
(0, registry_1.denyAttachment)();
|
|
13
|
+
const allowed = constraints?.allowedMimetypes;
|
|
14
|
+
if (allowed?.length &&
|
|
15
|
+
!allowed.some((pattern) => pattern === metadata.mimetype ||
|
|
16
|
+
(pattern.endsWith("/*") &&
|
|
17
|
+
metadata.mimetype.startsWith(pattern.slice(0, -1)))))
|
|
18
|
+
(0, registry_1.denyAttachment)();
|
|
19
|
+
}
|
|
20
|
+
async function validateReference(request, ref) {
|
|
21
|
+
const attachment = await (0, registry_1.loadAttachment)(ref.key, ref.field.storage);
|
|
22
|
+
const owner = JSON.parse(attachment.claimsJson);
|
|
23
|
+
const principal = await (0, access_1.assertNativeFileAccess)(request.context, owner, false);
|
|
24
|
+
if (principal.tenantId !== attachment.tenantId ||
|
|
25
|
+
!owner.componentId ||
|
|
26
|
+
!request.componentIds.includes(owner.componentId) ||
|
|
27
|
+
owner.visibility !== (ref.field.visibility || "private"))
|
|
28
|
+
(0, registry_1.denyAttachment)();
|
|
29
|
+
}
|
|
30
|
+
async function prepareReferences(request) {
|
|
31
|
+
const submitted = (0, fields_1.collectAttachments)(request.fields, request.submitted);
|
|
32
|
+
for (const ref of (0, fields_1.collectAttachments)(request.fields, request.before))
|
|
33
|
+
await validateReference(request, ref);
|
|
34
|
+
for (const ref of submitted)
|
|
35
|
+
await validateReference(request, ref);
|
|
36
|
+
return submitted;
|
|
37
|
+
}
|
|
38
|
+
async function remapValue(value, map) {
|
|
39
|
+
if (typeof value === "string")
|
|
40
|
+
return map.get(value) ?? value;
|
|
41
|
+
if (!value || typeof value !== "object")
|
|
42
|
+
return value;
|
|
43
|
+
if (Array.isArray(value))
|
|
44
|
+
return Promise.all(value.map((item) => remapValue(item, map)));
|
|
45
|
+
return Object.fromEntries(await Promise.all(Object.entries(value).map(async ([key, item]) => [
|
|
46
|
+
key,
|
|
47
|
+
await remapValue(item, map),
|
|
48
|
+
])));
|
|
49
|
+
}
|
|
50
|
+
async function promoteReferences(request, refs) {
|
|
51
|
+
const document = { ...request.submitted };
|
|
52
|
+
for (const field of request.fields) {
|
|
53
|
+
const mapping = new Map();
|
|
54
|
+
for (const ref of refs.filter((ref) => ref.field.id === field.id)) {
|
|
55
|
+
const key = (0, interface_file_storage_1.isStagedKey)(ref.key)
|
|
56
|
+
? (await (0, interface_file_storage_1.PromoteFile)(ref.key, field.storage)).resourceKey
|
|
57
|
+
: ref.key;
|
|
58
|
+
assertConstraints(await (0, interface_file_storage_1.GetFileMetadata)(key, field.storage), ref);
|
|
59
|
+
mapping.set(ref.key, key);
|
|
60
|
+
}
|
|
61
|
+
if (field.key in document)
|
|
62
|
+
document[field.key] = await remapValue(document[field.key], mapping);
|
|
63
|
+
}
|
|
64
|
+
return document;
|
|
65
|
+
}
|
|
66
|
+
async function cleanRemoved(request, document) {
|
|
67
|
+
const after = (0, fields_1.collectAttachments)(request.fields, document);
|
|
68
|
+
for (const ref of (0, fields_1.collectAttachments)(request.fields, request.before)) {
|
|
69
|
+
try {
|
|
70
|
+
if ((0, fields_1.containsAttachment)(after, ref) ||
|
|
71
|
+
!(await (0, registry_1.findAttachment)(ref.key, ref.field.storage)))
|
|
72
|
+
continue;
|
|
73
|
+
await (0, interface_file_storage_1.DeleteFile)(ref.key, ref.field.storage);
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
logging_1.Logging.Error("Native file cleanup failed", error);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
async function SaveComponentFiles(request, save) {
|
|
81
|
+
const refs = await prepareReferences(request);
|
|
82
|
+
const saved = await save(await promoteReferences(request, refs));
|
|
83
|
+
await cleanRemoved(request, saved.document);
|
|
84
|
+
return saved.result;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=save.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save.js","sourceRoot":"","sources":["../../src/attachments/save.ts"],"names":[],"mappings":"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"}
|