@jmruthers/pace-core 0.5.189 → 0.5.190
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/core-usage-manifest.json +0 -4
- package/dist/{AuthService-B-cd2MA4.d.ts → AuthService-CbP_utw2.d.ts} +7 -3
- package/dist/{DataTable-GUFUNZ3N.js → DataTable-ON3IXISJ.js} +8 -8
- package/dist/{PublicPageProvider-B8HaLe69.d.ts → PublicPageProvider-C4uxosp6.d.ts} +83 -24
- package/dist/{UnifiedAuthProvider-BG0AL5eE.d.ts → UnifiedAuthProvider-BYA9qB-o.d.ts} +4 -3
- package/dist/{UnifiedAuthProvider-643PUAIM.js → UnifiedAuthProvider-X5NXANVI.js} +4 -2
- package/dist/{api-YP7XD5L6.js → api-I6UCQ5S6.js} +4 -2
- package/dist/{chunk-DDM4CCYT.js → chunk-4QYC5L4K.js} +60 -35
- package/dist/chunk-4QYC5L4K.js.map +1 -0
- package/dist/{chunk-IM4QE42D.js → chunk-73HSNNOQ.js} +141 -326
- package/dist/chunk-73HSNNOQ.js.map +1 -0
- package/dist/{chunk-YHCN776L.js → chunk-DZWK57KZ.js} +2 -75
- package/dist/chunk-DZWK57KZ.js.map +1 -0
- package/dist/{chunk-3GOZZZYH.js → chunk-HQVPB5MZ.js} +238 -301
- package/dist/chunk-HQVPB5MZ.js.map +1 -0
- package/dist/{chunk-THRPYOFK.js → chunk-HW3OVDUF.js} +5 -5
- package/dist/chunk-HW3OVDUF.js.map +1 -0
- package/dist/{chunk-F2IMUDXZ.js → chunk-I7PSE6JW.js} +75 -2
- package/dist/chunk-I7PSE6JW.js.map +1 -0
- package/dist/{chunk-VGZZXKBR.js → chunk-J2XXC7R5.js} +280 -52
- package/dist/chunk-J2XXC7R5.js.map +1 -0
- package/dist/{chunk-UCQSRW7Z.js → chunk-NIU6J6OX.js} +425 -378
- package/dist/chunk-NIU6J6OX.js.map +1 -0
- package/dist/{chunk-HESYZWZW.js → chunk-QWWZ5CAQ.js} +2 -2
- package/dist/{chunk-HEHYGYOX.js → chunk-RUYZKXOD.js} +401 -46
- package/dist/chunk-RUYZKXOD.js.map +1 -0
- package/dist/{chunk-2UUZZJFT.js → chunk-SDMHPX3X.js} +176 -160
- package/dist/{chunk-2UUZZJFT.js.map → chunk-SDMHPX3X.js.map} +1 -1
- package/dist/{chunk-MX64ZF6I.js → chunk-STYK4OH2.js} +11 -11
- package/dist/chunk-STYK4OH2.js.map +1 -0
- package/dist/{chunk-YGPFYGA6.js → chunk-VVBAW5A5.js} +822 -498
- package/dist/chunk-VVBAW5A5.js.map +1 -0
- package/dist/chunk-Y4BUBBHD.js +614 -0
- package/dist/chunk-Y4BUBBHD.js.map +1 -0
- package/dist/{chunk-SAUPYVLF.js → chunk-ZSAAAMVR.js} +1 -1
- package/dist/chunk-ZSAAAMVR.js.map +1 -0
- package/dist/components.d.ts +3 -4
- package/dist/components.js +19 -19
- package/dist/components.js.map +1 -1
- package/dist/eslint-rules/pace-core-compliance.cjs +0 -2
- package/dist/{file-reference-D037xOFK.d.ts → file-reference-BavO2eQj.d.ts} +13 -10
- package/dist/hooks.d.ts +10 -5
- package/dist/hooks.js +14 -8
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +13 -11
- package/dist/index.js +79 -69
- package/dist/index.js.map +1 -1
- package/dist/providers.d.ts +3 -3
- package/dist/providers.js +3 -1
- package/dist/rbac/index.d.ts +76 -12
- package/dist/rbac/index.js +12 -9
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/{usePublicRouteParams-CTDELQ7H.d.ts → usePublicRouteParams-DxIDS4bC.d.ts} +16 -9
- package/dist/utils.js +16 -16
- package/docs/README.md +2 -2
- package/docs/api/classes/ColumnFactory.md +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/InvalidScopeError.md +2 -2
- package/docs/api/classes/Logger.md +1 -1
- package/docs/api/classes/MissingUserContextError.md +2 -2
- package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
- package/docs/api/classes/PermissionDeniedError.md +1 -1
- package/docs/api/classes/RBACAuditManager.md +1 -1
- package/docs/api/classes/RBACCache.md +1 -1
- package/docs/api/classes/RBACEngine.md +4 -4
- package/docs/api/classes/RBACError.md +1 -1
- package/docs/api/classes/RBACNotInitializedError.md +2 -2
- package/docs/api/classes/SecureSupabaseClient.md +21 -16
- package/docs/api/classes/StorageUtils.md +7 -4
- package/docs/api/enums/FileCategory.md +1 -1
- package/docs/api/enums/LogLevel.md +1 -1
- package/docs/api/enums/RBACErrorCode.md +1 -1
- package/docs/api/enums/RPCFunction.md +1 -1
- package/docs/api/interfaces/AddressFieldProps.md +1 -1
- package/docs/api/interfaces/AddressFieldRef.md +1 -1
- package/docs/api/interfaces/AggregateConfig.md +1 -1
- package/docs/api/interfaces/AutocompleteOptions.md +1 -1
- package/docs/api/interfaces/AvatarProps.md +1 -1
- package/docs/api/interfaces/BadgeProps.md +1 -1
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CalendarProps.md +20 -6
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +1 -1
- package/docs/api/interfaces/ComplianceResult.md +1 -1
- package/docs/api/interfaces/DataAccessRecord.md +9 -9
- package/docs/api/interfaces/DataRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/DatabaseComplianceResult.md +1 -1
- package/docs/api/interfaces/DatabaseIssue.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
- package/docs/api/interfaces/EventAppRoleData.md +1 -1
- package/docs/api/interfaces/ExportColumn.md +1 -1
- package/docs/api/interfaces/ExportOptions.md +1 -1
- package/docs/api/interfaces/FileDisplayProps.md +62 -16
- package/docs/api/interfaces/FileMetadata.md +1 -1
- package/docs/api/interfaces/FileReference.md +2 -2
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadOptions.md +26 -12
- package/docs/api/interfaces/FileUploadProps.md +30 -19
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/FormFieldProps.md +1 -1
- package/docs/api/interfaces/FormProps.md +1 -1
- package/docs/api/interfaces/GrantEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoggerConfig.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationAccessRecord.md +10 -10
- package/docs/api/interfaces/NavigationContextType.md +9 -9
- package/docs/api/interfaces/NavigationGuardProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +7 -7
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
- package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
- package/docs/api/interfaces/PageAccessRecord.md +8 -8
- package/docs/api/interfaces/PagePermissionContextType.md +8 -8
- package/docs/api/interfaces/PagePermissionGuardProps.md +1 -1
- package/docs/api/interfaces/PagePermissionProviderProps.md +7 -7
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/ParsedAddress.md +1 -1
- package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
- package/docs/api/interfaces/ProgressProps.md +3 -11
- package/docs/api/interfaces/ProtectedRouteProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/QuickFix.md +1 -1
- package/docs/api/interfaces/RBACAccessValidateParams.md +1 -1
- package/docs/api/interfaces/RBACAccessValidateResult.md +1 -1
- package/docs/api/interfaces/RBACAuditLogParams.md +1 -1
- package/docs/api/interfaces/RBACAuditLogResult.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +1 -1
- package/docs/api/interfaces/RBACContext.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +1 -1
- package/docs/api/interfaces/RBACPageAccessCheckParams.md +1 -1
- package/docs/api/interfaces/RBACPerformanceMetrics.md +1 -1
- package/docs/api/interfaces/RBACPermissionCheckParams.md +1 -1
- package/docs/api/interfaces/RBACPermissionCheckResult.md +1 -1
- package/docs/api/interfaces/RBACPermissionsGetParams.md +1 -1
- package/docs/api/interfaces/RBACPermissionsGetResult.md +1 -1
- package/docs/api/interfaces/RBACResult.md +1 -1
- package/docs/api/interfaces/RBACRoleGrantParams.md +1 -1
- package/docs/api/interfaces/RBACRoleGrantResult.md +1 -1
- package/docs/api/interfaces/RBACRoleRevokeParams.md +1 -1
- package/docs/api/interfaces/RBACRoleRevokeResult.md +1 -1
- package/docs/api/interfaces/RBACRoleValidateParams.md +1 -1
- package/docs/api/interfaces/RBACRoleValidateResult.md +1 -1
- package/docs/api/interfaces/RBACRolesListParams.md +1 -1
- package/docs/api/interfaces/RBACRolesListResult.md +1 -1
- package/docs/api/interfaces/RBACSessionTrackParams.md +1 -1
- package/docs/api/interfaces/RBACSessionTrackResult.md +1 -1
- package/docs/api/interfaces/ResourcePermissions.md +1 -1
- package/docs/api/interfaces/RevokeEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterContextType.md +8 -8
- package/docs/api/interfaces/RoleBasedRouterProps.md +10 -10
- package/docs/api/interfaces/RoleManagementResult.md +1 -1
- package/docs/api/interfaces/RouteAccessRecord.md +10 -10
- package/docs/api/interfaces/RouteConfig.md +10 -10
- package/docs/api/interfaces/RuntimeComplianceResult.md +1 -1
- package/docs/api/interfaces/SecureDataContextType.md +9 -9
- package/docs/api/interfaces/SecureDataProviderProps.md +8 -8
- package/docs/api/interfaces/SessionRestorationLoaderProps.md +1 -1
- package/docs/api/interfaces/SetupIssue.md +1 -1
- package/docs/api/interfaces/StorageConfig.md +4 -4
- package/docs/api/interfaces/StorageFileInfo.md +7 -7
- package/docs/api/interfaces/StorageFileMetadata.md +25 -14
- package/docs/api/interfaces/StorageListOptions.md +22 -9
- package/docs/api/interfaces/StorageListResult.md +4 -4
- package/docs/api/interfaces/StorageUploadOptions.md +21 -8
- package/docs/api/interfaces/StorageUploadResult.md +6 -6
- package/docs/api/interfaces/StorageUrlOptions.md +19 -6
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/SwitchProps.md +1 -1
- package/docs/api/interfaces/TabsContentProps.md +1 -1
- package/docs/api/interfaces/TabsListProps.md +1 -1
- package/docs/api/interfaces/TabsProps.md +1 -1
- package/docs/api/interfaces/TabsTriggerProps.md +1 -1
- package/docs/api/interfaces/TextareaProps.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +53 -53
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +13 -13
- package/docs/api/interfaces/UseFormDialogOptions.md +1 -1
- package/docs/api/interfaces/UseFormDialogReturn.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayOptions.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeOptions.md +4 -4
- package/docs/api/interfaces/UseResolvedScopeReturn.md +4 -4
- package/docs/api/interfaces/UseResourcePermissionsOptions.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +11 -11
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +151 -92
- package/docs/api-reference/components.md +15 -7
- package/docs/api-reference/providers.md +2 -2
- package/docs/api-reference/rpc-functions.md +1 -0
- package/docs/best-practices/README.md +1 -1
- package/docs/best-practices/deployment.md +8 -8
- package/docs/getting-started/examples/README.md +2 -2
- package/docs/getting-started/installation-guide.md +4 -4
- package/docs/getting-started/quick-start.md +3 -3
- package/docs/migration/MIGRATION_GUIDE.md +3 -3
- package/docs/rbac/compliance/compliance-guide.md +2 -2
- package/docs/rbac/event-based-apps.md +2 -2
- package/docs/rbac/getting-started.md +2 -2
- package/docs/rbac/quick-start.md +2 -2
- package/docs/security/README.md +4 -4
- package/docs/standards/07-rbac-and-rls-standard.md +430 -7
- package/docs/troubleshooting/README.md +2 -2
- package/docs/troubleshooting/migration.md +3 -3
- package/package.json +1 -3
- package/scripts/check-pace-core-compliance.cjs +1 -1
- package/scripts/check-pace-core-compliance.js +1 -1
- package/src/__tests__/fixtures/supabase.ts +301 -0
- package/src/__tests__/public-recipe-view.test.ts +9 -9
- package/src/__tests__/rls-policies.test.ts +197 -61
- package/src/components/AddressField/AddressField.test.tsx +42 -0
- package/src/components/AddressField/AddressField.tsx +71 -60
- package/src/components/AddressField/README.md +1 -0
- package/src/components/Alert/Alert.test.tsx +50 -10
- package/src/components/Alert/Alert.tsx +5 -3
- package/src/components/Avatar/Avatar.test.tsx +95 -43
- package/src/components/Avatar/Avatar.tsx +16 -16
- package/src/components/Button/Button.test.tsx +2 -1
- package/src/components/Button/Button.tsx +3 -3
- package/src/components/Calendar/Calendar.test.tsx +53 -37
- package/src/components/Calendar/Calendar.tsx +409 -82
- package/src/components/Card/Card.test.tsx +7 -4
- package/src/components/Card/Card.tsx +3 -6
- package/src/components/Checkbox/Checkbox.tsx +2 -2
- package/src/components/DataTable/components/ActionButtons.tsx +5 -5
- package/src/components/DataTable/components/BulkOperationsDropdown.tsx +2 -2
- package/src/components/DataTable/components/ColumnFilter.tsx +1 -1
- package/src/components/DataTable/components/ColumnVisibilityDropdown.tsx +3 -3
- package/src/components/DataTable/components/DataTableBody.tsx +12 -12
- package/src/components/DataTable/components/DataTableCore.tsx +3 -3
- package/src/components/DataTable/components/DataTableToolbar.tsx +5 -5
- package/src/components/DataTable/components/DraggableColumnHeader.tsx +3 -3
- package/src/components/DataTable/components/EditableRow.tsx +2 -2
- package/src/components/DataTable/components/EmptyState.tsx +3 -3
- package/src/components/DataTable/components/GroupHeader.tsx +2 -2
- package/src/components/DataTable/components/GroupingDropdown.tsx +1 -1
- package/src/components/DataTable/components/ImportModal.tsx +4 -4
- package/src/components/DataTable/components/LoadingState.tsx +1 -1
- package/src/components/DataTable/components/PaginationControls.tsx +11 -11
- package/src/components/DataTable/components/UnifiedTableBody.tsx +9 -9
- package/src/components/DataTable/components/ViewRowModal.tsx +2 -2
- package/src/components/DataTable/components/__tests__/AccessDeniedPage.test.tsx +11 -37
- package/src/components/DataTable/components/__tests__/DataTableToolbar.test.tsx +157 -0
- package/src/components/DataTable/components/__tests__/LoadingState.test.tsx +2 -1
- package/src/components/DataTable/components/__tests__/VirtualizedDataTable.test.tsx +128 -0
- package/src/components/DataTable/core/__tests__/ActionManager.test.ts +19 -0
- package/src/components/DataTable/core/__tests__/ColumnFactory.test.ts +51 -0
- package/src/components/DataTable/core/__tests__/ColumnManager.test.ts +84 -0
- package/src/components/DataTable/core/__tests__/DataManager.test.ts +14 -0
- package/src/components/DataTable/core/__tests__/DataTableContext.test.tsx +136 -0
- package/src/components/DataTable/core/__tests__/LocalDataAdapter.test.ts +16 -0
- package/src/components/DataTable/core/__tests__/PluginRegistry.test.ts +18 -0
- package/src/components/DataTable/hooks/useDataTablePermissions.ts +28 -7
- package/src/components/DataTable/utils/__tests__/hierarchicalUtils.test.ts +30 -1
- package/src/components/DataTable/utils/hierarchicalUtils.ts +38 -10
- package/src/components/DatePickerWithTimezone/DatePickerWithTimezone.test.tsx +8 -3
- package/src/components/DatePickerWithTimezone/DatePickerWithTimezone.tsx +4 -4
- package/src/components/Dialog/Dialog.tsx +2 -2
- package/src/components/EventSelector/EventSelector.tsx +7 -7
- package/src/components/FileDisplay/FileDisplay.tsx +291 -179
- package/src/components/FileUpload/FileUpload.tsx +7 -4
- package/src/components/Header/Header.test.tsx +28 -0
- package/src/components/Header/Header.tsx +22 -9
- package/src/components/InactivityWarningModal/InactivityWarningModal.tsx +2 -2
- package/src/components/LoadingSpinner/LoadingSpinner.test.tsx +19 -14
- package/src/components/LoadingSpinner/LoadingSpinner.tsx +5 -5
- package/src/components/NavigationMenu/NavigationMenu.test.tsx +127 -1
- package/src/components/OrganisationSelector/OrganisationSelector.tsx +8 -8
- package/src/components/PaceAppLayout/PaceAppLayout.integration.test.tsx +4 -0
- package/src/components/PaceAppLayout/PaceAppLayout.performance.test.tsx +3 -0
- package/src/components/PaceAppLayout/PaceAppLayout.security.test.tsx +3 -0
- package/src/components/PaceAppLayout/PaceAppLayout.test.tsx +16 -6
- package/src/components/PaceAppLayout/PaceAppLayout.tsx +37 -3
- package/src/components/PaceAppLayout/test-setup.tsx +1 -0
- package/src/components/PaceLoginPage/PaceLoginPage.test.tsx +66 -45
- package/src/components/PaceLoginPage/PaceLoginPage.tsx +6 -4
- package/src/components/Progress/Progress.test.tsx +18 -19
- package/src/components/Progress/Progress.tsx +31 -32
- package/src/components/PublicLayout/PublicLayout.test.tsx +6 -6
- package/src/components/PublicLayout/PublicPageProvider.tsx +5 -3
- package/src/components/Select/Select.tsx +5 -5
- package/src/components/Switch/Switch.test.tsx +2 -1
- package/src/components/Switch/Switch.tsx +1 -1
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/components/Tooltip/Tooltip.test.tsx +8 -2
- package/src/components/UserMenu/UserMenu.tsx +3 -3
- package/src/eslint-rules/pace-core-compliance.cjs +0 -2
- package/src/eslint-rules/pace-core-compliance.js +0 -2
- package/src/hooks/__tests__/hooks.integration.test.tsx +4 -1
- package/src/hooks/__tests__/useAppConfig.unit.test.ts +76 -5
- package/src/hooks/__tests__/useDataTableState.test.ts +76 -0
- package/src/hooks/__tests__/useFileUrl.unit.test.ts +25 -69
- package/src/hooks/__tests__/useFileUrlCache.test.ts +129 -0
- package/src/hooks/__tests__/usePreventTabReload.test.ts +88 -0
- package/src/hooks/__tests__/{usePublicEvent.unit.test.ts → usePublicEvent.test.ts} +28 -1
- package/src/hooks/__tests__/useQueryCache.test.ts +144 -0
- package/src/hooks/__tests__/useSecureDataAccess.unit.test.tsx +58 -16
- package/src/hooks/index.ts +1 -1
- package/src/hooks/public/usePublicEvent.ts +2 -2
- package/src/hooks/public/usePublicFileDisplay.ts +173 -87
- package/src/hooks/useAppConfig.ts +24 -5
- package/src/hooks/useFileDisplay.ts +297 -34
- package/src/hooks/useFileReference.ts +56 -11
- package/src/hooks/useFileUrl.ts +1 -1
- package/src/hooks/useInactivityTracker.ts +16 -7
- package/src/hooks/usePermissionCache.test.ts +85 -8
- package/src/hooks/useQueryCache.ts +21 -0
- package/src/hooks/useSecureDataAccess.test.ts +80 -35
- package/src/hooks/useSecureDataAccess.ts +80 -37
- package/src/providers/services/EventServiceProvider.tsx +37 -17
- package/src/providers/services/InactivityServiceProvider.tsx +4 -4
- package/src/providers/services/OrganisationServiceProvider.tsx +8 -1
- package/src/providers/services/UnifiedAuthProvider.tsx +115 -29
- package/src/rbac/__tests__/auth-rbac.e2e.test.tsx +451 -0
- package/src/rbac/__tests__/engine.comprehensive.test.ts +12 -0
- package/src/rbac/__tests__/rbac-engine-core-logic.test.ts +8 -0
- package/src/rbac/__tests__/rbac-engine-simplified.test.ts +4 -0
- package/src/rbac/api.ts +240 -36
- package/src/rbac/cache-invalidation.ts +21 -7
- package/src/rbac/compliance/quick-fix-suggestions.ts +1 -1
- package/src/rbac/components/NavigationGuard.tsx +23 -63
- package/src/rbac/components/NavigationProvider.test.tsx +52 -23
- package/src/rbac/components/NavigationProvider.tsx +13 -11
- package/src/rbac/components/PagePermissionGuard.tsx +77 -203
- package/src/rbac/components/PagePermissionProvider.tsx +13 -11
- package/src/rbac/components/PermissionEnforcer.tsx +24 -62
- package/src/rbac/components/RoleBasedRouter.tsx +14 -12
- package/src/rbac/components/SecureDataProvider.tsx +13 -11
- package/src/rbac/components/__tests__/NavigationGuard.test.tsx +104 -41
- package/src/rbac/components/__tests__/NavigationProvider.test.tsx +49 -12
- package/src/rbac/components/__tests__/PagePermissionGuard.race-condition.test.tsx +22 -1
- package/src/rbac/components/__tests__/PagePermissionGuard.test.tsx +161 -82
- package/src/rbac/components/__tests__/PagePermissionGuard.verification.test.tsx +22 -1
- package/src/rbac/components/__tests__/PermissionEnforcer.test.tsx +77 -30
- package/src/rbac/components/__tests__/RoleBasedRouter.test.tsx +39 -5
- package/src/rbac/components/__tests__/SecureDataProvider.test.tsx +47 -4
- package/src/rbac/engine.ts +4 -2
- package/src/rbac/hooks/__tests__/useSecureSupabase.test.ts +144 -52
- package/src/rbac/hooks/index.ts +3 -0
- package/src/rbac/hooks/useCan.test.ts +101 -53
- package/src/rbac/hooks/usePermissions.ts +108 -41
- package/src/rbac/hooks/useRBAC.test.ts +11 -3
- package/src/rbac/hooks/useRBAC.ts +83 -40
- package/src/rbac/hooks/useResolvedScope.test.ts +189 -63
- package/src/rbac/hooks/useResolvedScope.ts +128 -70
- package/src/rbac/hooks/useSecureSupabase.ts +36 -19
- package/src/rbac/hooks/useSuperAdminBypass.ts +126 -0
- package/src/rbac/request-deduplication.ts +1 -1
- package/src/rbac/secureClient.ts +72 -12
- package/src/rbac/security.ts +29 -23
- package/src/rbac/types.ts +10 -0
- package/src/rbac/utils/__tests__/contextValidator.test.ts +150 -0
- package/src/rbac/utils/__tests__/deep-equal.test.ts +53 -0
- package/src/rbac/utils/__tests__/eventContext.test.ts +6 -1
- package/src/rbac/utils/contextValidator.ts +288 -0
- package/src/rbac/utils/eventContext.ts +48 -2
- package/src/services/EventService.ts +165 -21
- package/src/services/OrganisationService.ts +37 -2
- package/src/services/__tests__/EventService.test.ts +26 -21
- package/src/types/file-reference.ts +13 -10
- package/src/utils/app/appNameResolver.test.ts +346 -73
- package/src/utils/context/superAdminOverride.ts +58 -0
- package/src/utils/file-reference/index.ts +61 -33
- package/src/utils/google-places/googlePlacesUtils.test.ts +98 -0
- package/src/utils/google-places/loadGoogleMapsScript.test.ts +83 -0
- package/src/utils/storage/helpers.test.ts +1 -1
- package/src/utils/storage/helpers.ts +38 -19
- package/src/utils/storage/types.ts +15 -8
- package/src/utils/validation/__tests__/csrf.test.ts +105 -0
- package/src/utils/validation/__tests__/sqlInjectionProtection.test.ts +92 -0
- package/src/vite-env.d.ts +2 -2
- package/dist/chunk-3GOZZZYH.js.map +0 -1
- package/dist/chunk-DDM4CCYT.js.map +0 -1
- package/dist/chunk-E7UAOUMY.js +0 -75
- package/dist/chunk-E7UAOUMY.js.map +0 -1
- package/dist/chunk-F2IMUDXZ.js.map +0 -1
- package/dist/chunk-HEHYGYOX.js.map +0 -1
- package/dist/chunk-IM4QE42D.js.map +0 -1
- package/dist/chunk-MX64ZF6I.js.map +0 -1
- package/dist/chunk-SAUPYVLF.js.map +0 -1
- package/dist/chunk-THRPYOFK.js.map +0 -1
- package/dist/chunk-UCQSRW7Z.js.map +0 -1
- package/dist/chunk-VGZZXKBR.js.map +0 -1
- package/dist/chunk-YGPFYGA6.js.map +0 -1
- package/dist/chunk-YHCN776L.js.map +0 -1
- package/src/hooks/__tests__/usePermissionCache.simple.test.ts +0 -192
- package/src/hooks/__tests__/usePermissionCache.unit.test.ts +0 -741
- package/src/hooks/__tests__/usePublicEvent.simple.test.ts +0 -703
- package/src/rbac/hooks/useRBAC.simple.test.ts +0 -95
- package/src/rbac/utils/__tests__/eventContext.unit.test.ts +0 -428
- /package/dist/{DataTable-GUFUNZ3N.js.map → DataTable-ON3IXISJ.js.map} +0 -0
- /package/dist/{UnifiedAuthProvider-643PUAIM.js.map → UnifiedAuthProvider-X5NXANVI.js.map} +0 -0
- /package/dist/{api-YP7XD5L6.js.map → api-I6UCQ5S6.js.map} +0 -0
- /package/dist/{chunk-HESYZWZW.js.map → chunk-QWWZ5CAQ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageConfig
|
|
2
2
|
|
|
3
3
|
# Interface: StorageConfig
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/core/src/utils/storage/types.ts:
|
|
21
|
+
[packages/core/src/utils/storage/types.ts:94](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L94)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[packages/core/src/utils/storage/types.ts:
|
|
31
|
+
[packages/core/src/utils/storage/types.ts:95](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L95)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[packages/core/src/utils/storage/types.ts:
|
|
41
|
+
[packages/core/src/utils/storage/types.ts:96](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L96)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageFileInfo
|
|
2
2
|
|
|
3
3
|
# Interface: StorageFileInfo
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
#### Defined in
|
|
23
23
|
|
|
24
|
-
[packages/core/src/utils/storage/types.ts:
|
|
24
|
+
[packages/core/src/utils/storage/types.ts:75](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L75)
|
|
25
25
|
|
|
26
26
|
___
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ ___
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[packages/core/src/utils/storage/types.ts:
|
|
34
|
+
[packages/core/src/utils/storage/types.ts:76](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L76)
|
|
35
35
|
|
|
36
36
|
___
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ ___
|
|
|
41
41
|
|
|
42
42
|
#### Defined in
|
|
43
43
|
|
|
44
|
-
[packages/core/src/utils/storage/types.ts:
|
|
44
|
+
[packages/core/src/utils/storage/types.ts:77](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L77)
|
|
45
45
|
|
|
46
46
|
___
|
|
47
47
|
|
|
@@ -51,7 +51,7 @@ ___
|
|
|
51
51
|
|
|
52
52
|
#### Defined in
|
|
53
53
|
|
|
54
|
-
[packages/core/src/utils/storage/types.ts:
|
|
54
|
+
[packages/core/src/utils/storage/types.ts:78](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L78)
|
|
55
55
|
|
|
56
56
|
___
|
|
57
57
|
|
|
@@ -61,7 +61,7 @@ ___
|
|
|
61
61
|
|
|
62
62
|
#### Defined in
|
|
63
63
|
|
|
64
|
-
[packages/core/src/utils/storage/types.ts:
|
|
64
|
+
[packages/core/src/utils/storage/types.ts:79](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L79)
|
|
65
65
|
|
|
66
66
|
___
|
|
67
67
|
|
|
@@ -71,4 +71,4 @@ ___
|
|
|
71
71
|
|
|
72
72
|
#### Defined in
|
|
73
73
|
|
|
74
|
-
[packages/core/src/utils/storage/types.ts:
|
|
74
|
+
[packages/core/src/utils/storage/types.ts:80](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L80)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageFileMetadata
|
|
2
2
|
|
|
3
3
|
# Interface: StorageFileMetadata
|
|
4
4
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
- [height](StorageFileMetadata.md#height)
|
|
13
13
|
- [hash](StorageFileMetadata.md#hash)
|
|
14
14
|
- [orgId](StorageFileMetadata.md#orgid)
|
|
15
|
+
- [userId](StorageFileMetadata.md#userid)
|
|
15
16
|
- [appName](StorageFileMetadata.md#appname)
|
|
16
17
|
- [uploadedBy](StorageFileMetadata.md#uploadedby)
|
|
17
18
|
- [uploadedAt](StorageFileMetadata.md#uploadedat)
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
|
|
28
29
|
#### Defined in
|
|
29
30
|
|
|
30
|
-
[packages/core/src/utils/storage/types.ts:
|
|
31
|
+
[packages/core/src/utils/storage/types.ts:23](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L23)
|
|
31
32
|
|
|
32
33
|
___
|
|
33
34
|
|
|
@@ -37,7 +38,7 @@ ___
|
|
|
37
38
|
|
|
38
39
|
#### Defined in
|
|
39
40
|
|
|
40
|
-
[packages/core/src/utils/storage/types.ts:
|
|
41
|
+
[packages/core/src/utils/storage/types.ts:24](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L24)
|
|
41
42
|
|
|
42
43
|
___
|
|
43
44
|
|
|
@@ -47,7 +48,7 @@ ___
|
|
|
47
48
|
|
|
48
49
|
#### Defined in
|
|
49
50
|
|
|
50
|
-
[packages/core/src/utils/storage/types.ts:
|
|
51
|
+
[packages/core/src/utils/storage/types.ts:25](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L25)
|
|
51
52
|
|
|
52
53
|
___
|
|
53
54
|
|
|
@@ -57,7 +58,7 @@ ___
|
|
|
57
58
|
|
|
58
59
|
#### Defined in
|
|
59
60
|
|
|
60
|
-
[packages/core/src/utils/storage/types.ts:
|
|
61
|
+
[packages/core/src/utils/storage/types.ts:26](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L26)
|
|
61
62
|
|
|
62
63
|
___
|
|
63
64
|
|
|
@@ -67,17 +68,27 @@ ___
|
|
|
67
68
|
|
|
68
69
|
#### Defined in
|
|
69
70
|
|
|
70
|
-
[packages/core/src/utils/storage/types.ts:
|
|
71
|
+
[packages/core/src/utils/storage/types.ts:27](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L27)
|
|
71
72
|
|
|
72
73
|
___
|
|
73
74
|
|
|
74
75
|
### orgId
|
|
75
76
|
|
|
76
|
-
• **orgId**: `string`
|
|
77
|
+
• `Optional` **orgId**: `string`
|
|
77
78
|
|
|
78
79
|
#### Defined in
|
|
79
80
|
|
|
80
|
-
[packages/core/src/utils/storage/types.ts:
|
|
81
|
+
[packages/core/src/utils/storage/types.ts:28](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L28)
|
|
82
|
+
|
|
83
|
+
___
|
|
84
|
+
|
|
85
|
+
### userId
|
|
86
|
+
|
|
87
|
+
• `Optional` **userId**: `string`
|
|
88
|
+
|
|
89
|
+
#### Defined in
|
|
90
|
+
|
|
91
|
+
[packages/core/src/utils/storage/types.ts:29](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L29)
|
|
81
92
|
|
|
82
93
|
___
|
|
83
94
|
|
|
@@ -87,7 +98,7 @@ ___
|
|
|
87
98
|
|
|
88
99
|
#### Defined in
|
|
89
100
|
|
|
90
|
-
[packages/core/src/utils/storage/types.ts:
|
|
101
|
+
[packages/core/src/utils/storage/types.ts:30](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L30)
|
|
91
102
|
|
|
92
103
|
___
|
|
93
104
|
|
|
@@ -97,7 +108,7 @@ ___
|
|
|
97
108
|
|
|
98
109
|
#### Defined in
|
|
99
110
|
|
|
100
|
-
[packages/core/src/utils/storage/types.ts:
|
|
111
|
+
[packages/core/src/utils/storage/types.ts:31](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L31)
|
|
101
112
|
|
|
102
113
|
___
|
|
103
114
|
|
|
@@ -107,7 +118,7 @@ ___
|
|
|
107
118
|
|
|
108
119
|
#### Defined in
|
|
109
120
|
|
|
110
|
-
[packages/core/src/utils/storage/types.ts:
|
|
121
|
+
[packages/core/src/utils/storage/types.ts:32](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L32)
|
|
111
122
|
|
|
112
123
|
___
|
|
113
124
|
|
|
@@ -117,7 +128,7 @@ ___
|
|
|
117
128
|
|
|
118
129
|
#### Defined in
|
|
119
130
|
|
|
120
|
-
[packages/core/src/utils/storage/types.ts:
|
|
131
|
+
[packages/core/src/utils/storage/types.ts:33](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L33)
|
|
121
132
|
|
|
122
133
|
___
|
|
123
134
|
|
|
@@ -127,7 +138,7 @@ ___
|
|
|
127
138
|
|
|
128
139
|
#### Defined in
|
|
129
140
|
|
|
130
|
-
[packages/core/src/utils/storage/types.ts:
|
|
141
|
+
[packages/core/src/utils/storage/types.ts:34](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L34)
|
|
131
142
|
|
|
132
143
|
___
|
|
133
144
|
|
|
@@ -137,4 +148,4 @@ ___
|
|
|
137
148
|
|
|
138
149
|
#### Defined in
|
|
139
150
|
|
|
140
|
-
[packages/core/src/utils/storage/types.ts:
|
|
151
|
+
[packages/core/src/utils/storage/types.ts:35](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L35)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageListOptions
|
|
2
2
|
|
|
3
3
|
# Interface: StorageListOptions
|
|
4
4
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
- [appName](StorageListOptions.md#appname)
|
|
10
10
|
- [orgId](StorageListOptions.md#orgid)
|
|
11
|
+
- [userId](StorageListOptions.md#userid)
|
|
11
12
|
- [pathPrefix](StorageListOptions.md#pathprefix)
|
|
12
13
|
- [tags](StorageListOptions.md#tags)
|
|
13
14
|
- [limit](StorageListOptions.md#limit)
|
|
@@ -23,19 +24,31 @@ The app name from rbac_apps
|
|
|
23
24
|
|
|
24
25
|
#### Defined in
|
|
25
26
|
|
|
26
|
-
[packages/core/src/utils/storage/types.ts:
|
|
27
|
+
[packages/core/src/utils/storage/types.ts:59](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L59)
|
|
27
28
|
|
|
28
29
|
___
|
|
29
30
|
|
|
30
31
|
### orgId
|
|
31
32
|
|
|
32
|
-
• **orgId**: `string`
|
|
33
|
+
• `Optional` **orgId**: `string`
|
|
33
34
|
|
|
34
|
-
Organisation ID for scoping
|
|
35
|
+
Organisation ID for scoping (required if userId not provided)
|
|
35
36
|
|
|
36
37
|
#### Defined in
|
|
37
38
|
|
|
38
|
-
[packages/core/src/utils/storage/types.ts:
|
|
39
|
+
[packages/core/src/utils/storage/types.ts:61](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L61)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### userId
|
|
44
|
+
|
|
45
|
+
• `Optional` **userId**: `string`
|
|
46
|
+
|
|
47
|
+
User ID for user-scoped files (required if orgId not provided)
|
|
48
|
+
|
|
49
|
+
#### Defined in
|
|
50
|
+
|
|
51
|
+
[packages/core/src/utils/storage/types.ts:63](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L63)
|
|
39
52
|
|
|
40
53
|
___
|
|
41
54
|
|
|
@@ -47,7 +60,7 @@ Optional path prefix to filter by
|
|
|
47
60
|
|
|
48
61
|
#### Defined in
|
|
49
62
|
|
|
50
|
-
[packages/core/src/utils/storage/types.ts:
|
|
63
|
+
[packages/core/src/utils/storage/types.ts:65](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L65)
|
|
51
64
|
|
|
52
65
|
___
|
|
53
66
|
|
|
@@ -59,7 +72,7 @@ Optional tags to filter by
|
|
|
59
72
|
|
|
60
73
|
#### Defined in
|
|
61
74
|
|
|
62
|
-
[packages/core/src/utils/storage/types.ts:
|
|
75
|
+
[packages/core/src/utils/storage/types.ts:67](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L67)
|
|
63
76
|
|
|
64
77
|
___
|
|
65
78
|
|
|
@@ -71,7 +84,7 @@ Maximum number of files to return
|
|
|
71
84
|
|
|
72
85
|
#### Defined in
|
|
73
86
|
|
|
74
|
-
[packages/core/src/utils/storage/types.ts:
|
|
87
|
+
[packages/core/src/utils/storage/types.ts:69](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L69)
|
|
75
88
|
|
|
76
89
|
___
|
|
77
90
|
|
|
@@ -83,4 +96,4 @@ Offset for pagination
|
|
|
83
96
|
|
|
84
97
|
#### Defined in
|
|
85
98
|
|
|
86
|
-
[packages/core/src/utils/storage/types.ts:
|
|
99
|
+
[packages/core/src/utils/storage/types.ts:71](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L71)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageListResult
|
|
2
2
|
|
|
3
3
|
# Interface: StorageListResult
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/core/src/utils/storage/types.ts:
|
|
21
|
+
[packages/core/src/utils/storage/types.ts:84](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L84)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[packages/core/src/utils/storage/types.ts:
|
|
31
|
+
[packages/core/src/utils/storage/types.ts:85](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L85)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[packages/core/src/utils/storage/types.ts:
|
|
41
|
+
[packages/core/src/utils/storage/types.ts:86](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L86)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageUploadOptions
|
|
2
2
|
|
|
3
3
|
# Interface: StorageUploadOptions
|
|
4
4
|
|
|
@@ -10,6 +10,7 @@ Storage utility types for pace-core
|
|
|
10
10
|
|
|
11
11
|
- [appName](StorageUploadOptions.md#appname)
|
|
12
12
|
- [orgId](StorageUploadOptions.md#orgid)
|
|
13
|
+
- [userId](StorageUploadOptions.md#userid)
|
|
13
14
|
- [isPublic](StorageUploadOptions.md#ispublic)
|
|
14
15
|
- [tags](StorageUploadOptions.md#tags)
|
|
15
16
|
- [customPath](StorageUploadOptions.md#custompath)
|
|
@@ -31,9 +32,9 @@ ___
|
|
|
31
32
|
|
|
32
33
|
### orgId
|
|
33
34
|
|
|
34
|
-
• **orgId**: `string`
|
|
35
|
+
• `Optional` **orgId**: `string`
|
|
35
36
|
|
|
36
|
-
Organisation ID for scoping
|
|
37
|
+
Organisation ID for scoping (required if userId not provided)
|
|
37
38
|
|
|
38
39
|
#### Defined in
|
|
39
40
|
|
|
@@ -41,6 +42,18 @@ Organisation ID for scoping
|
|
|
41
42
|
|
|
42
43
|
___
|
|
43
44
|
|
|
45
|
+
### userId
|
|
46
|
+
|
|
47
|
+
• `Optional` **userId**: `string`
|
|
48
|
+
|
|
49
|
+
User ID for user-scoped files (required if orgId not provided)
|
|
50
|
+
|
|
51
|
+
#### Defined in
|
|
52
|
+
|
|
53
|
+
[packages/core/src/utils/storage/types.ts:11](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L11)
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
44
57
|
### isPublic
|
|
45
58
|
|
|
46
59
|
• `Optional` **isPublic**: `boolean`
|
|
@@ -49,7 +62,7 @@ Whether the file should be publicly accessible
|
|
|
49
62
|
|
|
50
63
|
#### Defined in
|
|
51
64
|
|
|
52
|
-
[packages/core/src/utils/storage/types.ts:
|
|
65
|
+
[packages/core/src/utils/storage/types.ts:13](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L13)
|
|
53
66
|
|
|
54
67
|
___
|
|
55
68
|
|
|
@@ -61,7 +74,7 @@ Optional tags for categorisation
|
|
|
61
74
|
|
|
62
75
|
#### Defined in
|
|
63
76
|
|
|
64
|
-
[packages/core/src/utils/storage/types.ts:
|
|
77
|
+
[packages/core/src/utils/storage/types.ts:15](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L15)
|
|
65
78
|
|
|
66
79
|
___
|
|
67
80
|
|
|
@@ -69,11 +82,11 @@ ___
|
|
|
69
82
|
|
|
70
83
|
• `Optional` **customPath**: `string`
|
|
71
84
|
|
|
72
|
-
Optional custom path within the app/org structure
|
|
85
|
+
Optional custom path within the app/org/user structure
|
|
73
86
|
|
|
74
87
|
#### Defined in
|
|
75
88
|
|
|
76
|
-
[packages/core/src/utils/storage/types.ts:
|
|
89
|
+
[packages/core/src/utils/storage/types.ts:17](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L17)
|
|
77
90
|
|
|
78
91
|
___
|
|
79
92
|
|
|
@@ -85,4 +98,4 @@ Optional metadata to store with the file
|
|
|
85
98
|
|
|
86
99
|
#### Defined in
|
|
87
100
|
|
|
88
|
-
[packages/core/src/utils/storage/types.ts:
|
|
101
|
+
[packages/core/src/utils/storage/types.ts:19](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L19)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageUploadResult
|
|
2
2
|
|
|
3
3
|
# Interface: StorageUploadResult
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
#### Defined in
|
|
22
22
|
|
|
23
|
-
[packages/core/src/utils/storage/types.ts:
|
|
23
|
+
[packages/core/src/utils/storage/types.ts:39](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L39)
|
|
24
24
|
|
|
25
25
|
___
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ ___
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[packages/core/src/utils/storage/types.ts:
|
|
33
|
+
[packages/core/src/utils/storage/types.ts:40](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L40)
|
|
34
34
|
|
|
35
35
|
___
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ ___
|
|
|
40
40
|
|
|
41
41
|
#### Defined in
|
|
42
42
|
|
|
43
|
-
[packages/core/src/utils/storage/types.ts:
|
|
43
|
+
[packages/core/src/utils/storage/types.ts:41](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L41)
|
|
44
44
|
|
|
45
45
|
___
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@ ___
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[packages/core/src/utils/storage/types.ts:
|
|
53
|
+
[packages/core/src/utils/storage/types.ts:42](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L42)
|
|
54
54
|
|
|
55
55
|
___
|
|
56
56
|
|
|
@@ -60,4 +60,4 @@ ___
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[packages/core/src/utils/storage/types.ts:
|
|
63
|
+
[packages/core/src/utils/storage/types.ts:43](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L43)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.190](../README.md) / [Exports](../modules.md) / StorageUrlOptions
|
|
2
2
|
|
|
3
3
|
# Interface: StorageUrlOptions
|
|
4
4
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
- [appName](StorageUrlOptions.md#appname)
|
|
10
10
|
- [orgId](StorageUrlOptions.md#orgid)
|
|
11
|
+
- [userId](StorageUrlOptions.md#userid)
|
|
11
12
|
- [expiresIn](StorageUrlOptions.md#expiresin)
|
|
12
13
|
|
|
13
14
|
## Properties
|
|
@@ -20,19 +21,31 @@ The app name from rbac_apps
|
|
|
20
21
|
|
|
21
22
|
#### Defined in
|
|
22
23
|
|
|
23
|
-
[packages/core/src/utils/storage/types.ts:
|
|
24
|
+
[packages/core/src/utils/storage/types.ts:48](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L48)
|
|
24
25
|
|
|
25
26
|
___
|
|
26
27
|
|
|
27
28
|
### orgId
|
|
28
29
|
|
|
29
|
-
• **orgId**: `string`
|
|
30
|
+
• `Optional` **orgId**: `string`
|
|
30
31
|
|
|
31
|
-
Organisation ID for scoping
|
|
32
|
+
Organisation ID for scoping (required if userId not provided)
|
|
32
33
|
|
|
33
34
|
#### Defined in
|
|
34
35
|
|
|
35
|
-
[packages/core/src/utils/storage/types.ts:
|
|
36
|
+
[packages/core/src/utils/storage/types.ts:50](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L50)
|
|
37
|
+
|
|
38
|
+
___
|
|
39
|
+
|
|
40
|
+
### userId
|
|
41
|
+
|
|
42
|
+
• `Optional` **userId**: `string`
|
|
43
|
+
|
|
44
|
+
User ID for user-scoped files (required if orgId not provided)
|
|
45
|
+
|
|
46
|
+
#### Defined in
|
|
47
|
+
|
|
48
|
+
[packages/core/src/utils/storage/types.ts:52](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L52)
|
|
36
49
|
|
|
37
50
|
___
|
|
38
51
|
|
|
@@ -44,4 +57,4 @@ Expiry time in seconds for signed URLs (default: 3600)
|
|
|
44
57
|
|
|
45
58
|
#### Defined in
|
|
46
59
|
|
|
47
|
-
[packages/core/src/utils/storage/types.ts:
|
|
60
|
+
[packages/core/src/utils/storage/types.ts:54](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/types.ts#L54)
|