@pattern-stack/frontend-patterns 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/LICENSE +19 -0
- package/cli/cli/commands/generate-hooks.js +291 -0
- package/cli/cli/commands/init.js +25 -0
- package/cli/cli/commands/scaffold.js +201 -0
- package/cli/cli/index.js +113 -0
- package/cli/commands/generate-hooks.js +288 -0
- package/cli/commands/generate-hooks.ts +316 -0
- package/cli/commands/init.js +22 -0
- package/cli/commands/init.ts +33 -0
- package/cli/commands/scaffold.js +198 -0
- package/cli/commands/scaffold.ts +224 -0
- package/cli/index.js +3210 -0
- package/cli/index.ts +122 -0
- package/cli/src/codegen/openapi/bulk-hook-generator.js +252 -0
- package/cli/src/codegen/openapi/bulk-types.js +89 -0
- package/cli/src/codegen/openapi/client-generator.js +672 -0
- package/cli/src/codegen/openapi/confidence-scorer.js +204 -0
- package/cli/src/codegen/openapi/hook-config.js +66 -0
- package/cli/src/codegen/openapi/hook-generator.js +1057 -0
- package/cli/src/codegen/openapi/parser.js +279 -0
- package/cli/src/codegen/openapi/type-generator.js +339 -0
- package/dist/atoms/components/core/Avatar/Avatar.d.ts +41 -0
- package/dist/atoms/components/core/Avatar/Avatar.d.ts.map +1 -0
- package/dist/atoms/components/core/Avatar/index.d.ts +2 -0
- package/dist/atoms/components/core/Avatar/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Badge/Badge.d.ts +38 -0
- package/dist/atoms/components/core/Badge/Badge.d.ts.map +1 -0
- package/dist/atoms/components/core/Badge/index.d.ts +2 -0
- package/dist/atoms/components/core/Badge/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Button/Button.d.ts +28 -0
- package/dist/atoms/components/core/Button/Button.d.ts.map +1 -0
- package/dist/atoms/components/core/Button/index.d.ts +3 -0
- package/dist/atoms/components/core/Button/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Card/Card.d.ts +41 -0
- package/dist/atoms/components/core/Card/Card.d.ts.map +1 -0
- package/dist/atoms/components/core/Card/index.d.ts +3 -0
- package/dist/atoms/components/core/Card/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Checkbox/Checkbox.d.ts +28 -0
- package/dist/atoms/components/core/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/atoms/components/core/Checkbox/index.d.ts +3 -0
- package/dist/atoms/components/core/Checkbox/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Input/Input.d.ts +37 -0
- package/dist/atoms/components/core/Input/Input.d.ts.map +1 -0
- package/dist/atoms/components/core/Input/index.d.ts +3 -0
- package/dist/atoms/components/core/Input/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Label/Label.d.ts +23 -0
- package/dist/atoms/components/core/Label/Label.d.ts.map +1 -0
- package/dist/atoms/components/core/Label/index.d.ts +3 -0
- package/dist/atoms/components/core/Label/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Select/Select.d.ts +42 -0
- package/dist/atoms/components/core/Select/Select.d.ts.map +1 -0
- package/dist/atoms/components/core/Select/index.d.ts +3 -0
- package/dist/atoms/components/core/Select/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Spinner/Spinner.d.ts +25 -0
- package/dist/atoms/components/core/Spinner/Spinner.d.ts.map +1 -0
- package/dist/atoms/components/core/Spinner/index.d.ts +3 -0
- package/dist/atoms/components/core/Spinner/index.d.ts.map +1 -0
- package/dist/atoms/components/core/Switch/Switch.d.ts +35 -0
- package/dist/atoms/components/core/Switch/Switch.d.ts.map +1 -0
- package/dist/atoms/components/core/Switch/index.d.ts +2 -0
- package/dist/atoms/components/core/Switch/index.d.ts.map +1 -0
- package/dist/atoms/components/core/index.d.ts +11 -0
- package/dist/atoms/components/core/index.d.ts.map +1 -0
- package/dist/atoms/components/data/ActivityFeed/ActivityFeed.d.ts +4 -0
- package/dist/atoms/components/data/ActivityFeed/ActivityFeed.d.ts.map +1 -0
- package/dist/atoms/components/data/ActivityFeed/ActivityFeed.stories.d.ts +38 -0
- package/dist/atoms/components/data/ActivityFeed/ActivityFeed.stories.d.ts.map +1 -0
- package/dist/atoms/components/data/ActivityFeed/ActivityFeedItem.d.ts +9 -0
- package/dist/atoms/components/data/ActivityFeed/ActivityFeedItem.d.ts.map +1 -0
- package/dist/atoms/components/data/ActivityFeed/index.d.ts +4 -0
- package/dist/atoms/components/data/ActivityFeed/index.d.ts.map +1 -0
- package/dist/atoms/components/data/ActivityFeed/types.d.ts +26 -0
- package/dist/atoms/components/data/ActivityFeed/types.d.ts.map +1 -0
- package/dist/atoms/components/data/ActivityFeed/utils.d.ts +5 -0
- package/dist/atoms/components/data/ActivityFeed/utils.d.ts.map +1 -0
- package/dist/atoms/components/data/Chart/Chart.d.ts +37 -0
- package/dist/atoms/components/data/Chart/Chart.d.ts.map +1 -0
- package/{src/atoms/composed/Chart/index.ts → dist/atoms/components/data/Chart/index.d.ts} +2 -1
- package/dist/atoms/components/data/Chart/index.d.ts.map +1 -0
- package/dist/atoms/components/data/DataBadge/DataBadge.d.ts +18 -0
- package/dist/atoms/components/data/DataBadge/DataBadge.d.ts.map +1 -0
- package/dist/atoms/components/data/DataBadge/index.d.ts +2 -0
- package/dist/atoms/components/data/DataBadge/index.d.ts.map +1 -0
- package/dist/atoms/components/data/DataTable/DataTable.d.ts +5 -0
- package/dist/atoms/components/data/DataTable/DataTable.d.ts.map +1 -0
- package/dist/atoms/components/data/DataTable/DataTable.types.d.ts +51 -0
- package/dist/atoms/components/data/DataTable/DataTable.types.d.ts.map +1 -0
- package/dist/atoms/components/data/DataTable/TableCellWithTooltip.d.ts +10 -0
- package/dist/atoms/components/data/DataTable/TableCellWithTooltip.d.ts.map +1 -0
- package/dist/atoms/components/data/DataTable/index.d.ts +3 -0
- package/dist/atoms/components/data/DataTable/index.d.ts.map +1 -0
- package/dist/atoms/components/data/DetailedCard/DetailedCard.d.ts +30 -0
- package/dist/atoms/components/data/DetailedCard/DetailedCard.d.ts.map +1 -0
- package/dist/atoms/components/data/DetailedCard/index.d.ts +3 -0
- package/dist/atoms/components/data/DetailedCard/index.d.ts.map +1 -0
- package/dist/atoms/components/data/EntityIcon/EntityIcon.d.ts +24 -0
- package/dist/atoms/components/data/EntityIcon/EntityIcon.d.ts.map +1 -0
- package/dist/atoms/components/data/EntityIcon/index.d.ts +2 -0
- package/dist/atoms/components/data/EntityIcon/index.d.ts.map +1 -0
- package/dist/atoms/components/data/IconBadge/IconBadge.d.ts +17 -0
- package/dist/atoms/components/data/IconBadge/IconBadge.d.ts.map +1 -0
- package/dist/atoms/components/data/IconBadge/index.d.ts +3 -0
- package/dist/atoms/components/data/IconBadge/index.d.ts.map +1 -0
- package/dist/atoms/components/data/ListCard/ListCard.d.ts +32 -0
- package/dist/atoms/components/data/ListCard/ListCard.d.ts.map +1 -0
- package/dist/atoms/components/data/ListCard/index.d.ts +2 -0
- package/dist/atoms/components/data/ListCard/index.d.ts.map +1 -0
- package/dist/atoms/components/data/ProgressBar/ProgressBar.d.ts +25 -0
- package/dist/atoms/components/data/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/{src/atoms/composed/ProgressBar/index.ts → dist/atoms/components/data/ProgressBar/index.d.ts} +2 -1
- package/dist/atoms/components/data/ProgressBar/index.d.ts.map +1 -0
- package/dist/atoms/components/data/StatCard/StatCard.d.ts +21 -0
- package/dist/atoms/components/data/StatCard/StatCard.d.ts.map +1 -0
- package/dist/atoms/components/data/StatCard/index.d.ts +2 -0
- package/dist/atoms/components/data/StatCard/index.d.ts.map +1 -0
- package/dist/atoms/components/data/Table/Table.d.ts +41 -0
- package/dist/atoms/components/data/Table/Table.d.ts.map +1 -0
- package/dist/atoms/components/data/Table/index.d.ts +2 -0
- package/dist/atoms/components/data/Table/index.d.ts.map +1 -0
- package/dist/atoms/components/data/TruncatedText/TruncatedText.d.ts +26 -0
- package/dist/atoms/components/data/TruncatedText/TruncatedText.d.ts.map +1 -0
- package/dist/atoms/components/data/TruncatedText/index.d.ts +2 -0
- package/dist/atoms/components/data/TruncatedText/index.d.ts.map +1 -0
- package/dist/atoms/components/data/index.d.ts +13 -0
- package/dist/atoms/components/data/index.d.ts.map +1 -0
- package/dist/atoms/components/domain/SalesPanel/SalesPanel.d.ts +19 -0
- package/dist/atoms/components/domain/SalesPanel/SalesPanel.d.ts.map +1 -0
- package/dist/atoms/components/domain/SalesPanel/index.d.ts +2 -0
- package/dist/atoms/components/domain/SalesPanel/index.d.ts.map +1 -0
- package/dist/atoms/components/domain/SalesPanel/mockSalesData.d.ts +63 -0
- package/dist/atoms/components/domain/SalesPanel/mockSalesData.d.ts.map +1 -0
- package/dist/atoms/components/domain/index.d.ts +2 -0
- package/dist/atoms/components/domain/index.d.ts.map +1 -0
- package/dist/atoms/components/feedback/Alert/Alert.d.ts +25 -0
- package/dist/atoms/components/feedback/Alert/Alert.d.ts.map +1 -0
- package/dist/atoms/components/feedback/Alert/index.d.ts +2 -0
- package/dist/atoms/components/feedback/Alert/index.d.ts.map +1 -0
- package/dist/atoms/components/feedback/EmptyState/EmptyState.d.ts +18 -0
- package/dist/atoms/components/feedback/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/atoms/components/feedback/EmptyState/index.d.ts +2 -0
- package/dist/atoms/components/feedback/EmptyState/index.d.ts.map +1 -0
- package/dist/atoms/components/feedback/ErrorBoundary/ErrorBoundary.d.ts +61 -0
- package/dist/atoms/components/feedback/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/dist/atoms/components/feedback/ErrorBoundary/index.d.ts +2 -0
- package/dist/atoms/components/feedback/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/atoms/components/feedback/Skeleton/Skeleton.d.ts +41 -0
- package/dist/atoms/components/feedback/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/atoms/components/feedback/Skeleton/index.d.ts +2 -0
- package/dist/atoms/components/feedback/Skeleton/index.d.ts.map +1 -0
- package/dist/atoms/components/feedback/Toast/Toast.d.ts +40 -0
- package/dist/atoms/components/feedback/Toast/Toast.d.ts.map +1 -0
- package/{src/atoms/composed/Toast/index.ts → dist/atoms/components/feedback/Toast/index.d.ts} +2 -1
- package/dist/atoms/components/feedback/Toast/index.d.ts.map +1 -0
- package/dist/atoms/components/feedback/index.d.ts +6 -0
- package/dist/atoms/components/feedback/index.d.ts.map +1 -0
- package/dist/atoms/components/forms/DateTimePicker/DateTimePicker.d.ts +45 -0
- package/dist/atoms/components/forms/DateTimePicker/DateTimePicker.d.ts.map +1 -0
- package/dist/atoms/components/forms/DateTimePicker/index.d.ts +3 -0
- package/dist/atoms/components/forms/DateTimePicker/index.d.ts.map +1 -0
- package/dist/atoms/components/forms/FileUpload/FileUpload.d.ts +46 -0
- package/dist/atoms/components/forms/FileUpload/FileUpload.d.ts.map +1 -0
- package/{src/atoms/composed/FileUpload/index.ts → dist/atoms/components/forms/FileUpload/index.d.ts} +2 -1
- package/dist/atoms/components/forms/FileUpload/index.d.ts.map +1 -0
- package/dist/atoms/components/forms/FormField/FormField.d.ts +23 -0
- package/dist/atoms/components/forms/FormField/FormField.d.ts.map +1 -0
- package/dist/atoms/components/forms/FormField/index.d.ts +2 -0
- package/dist/atoms/components/forms/FormField/index.d.ts.map +1 -0
- package/dist/atoms/components/forms/index.d.ts +4 -0
- package/dist/atoms/components/forms/index.d.ts.map +1 -0
- package/dist/atoms/components/index.d.ts +10 -0
- package/dist/atoms/components/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Accordion/Accordion.d.ts +20 -0
- package/dist/atoms/components/layout/Accordion/Accordion.d.ts.map +1 -0
- package/{src/atoms/composed/Accordion/index.ts → dist/atoms/components/layout/Accordion/index.d.ts} +2 -1
- package/dist/atoms/components/layout/Accordion/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Breadcrumb/Breadcrumb.d.ts +17 -0
- package/dist/atoms/components/layout/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/atoms/components/layout/Breadcrumb/index.d.ts +2 -0
- package/dist/atoms/components/layout/Breadcrumb/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Dialog/index.d.ts +3 -0
- package/dist/atoms/components/layout/Dialog/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Dropdown/Dropdown.d.ts +40 -0
- package/dist/atoms/components/layout/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/atoms/components/layout/Dropdown/index.d.ts +3 -0
- package/dist/atoms/components/layout/Dropdown/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Modal/Modal.d.ts +18 -0
- package/dist/atoms/components/layout/Modal/Modal.d.ts.map +1 -0
- package/dist/atoms/components/layout/Modal/index.d.ts +3 -0
- package/dist/atoms/components/layout/Modal/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Tabs/index.d.ts +2 -0
- package/dist/atoms/components/layout/Tabs/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/Tooltip/Tooltip.d.ts +16 -0
- package/dist/atoms/components/layout/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/atoms/components/layout/Tooltip/index.d.ts +2 -0
- package/dist/atoms/components/layout/Tooltip/index.d.ts.map +1 -0
- package/dist/atoms/components/layout/index.d.ts +8 -0
- package/dist/atoms/components/layout/index.d.ts.map +1 -0
- package/dist/atoms/components/navigation/GlobalSearch/GlobalSearch.d.ts +8 -0
- package/dist/atoms/components/navigation/GlobalSearch/GlobalSearch.d.ts.map +1 -0
- package/dist/atoms/components/navigation/GlobalSearch/index.d.ts +2 -0
- package/dist/atoms/components/navigation/GlobalSearch/index.d.ts.map +1 -0
- package/dist/atoms/components/navigation/index.d.ts +2 -0
- package/dist/atoms/components/navigation/index.d.ts.map +1 -0
- package/dist/atoms/components/theme/ColorSwatch/ColorSwatch.d.ts +19 -0
- package/dist/atoms/components/theme/ColorSwatch/ColorSwatch.d.ts.map +1 -0
- package/{src/atoms/composed/ColorSwatch/index.ts → dist/atoms/components/theme/ColorSwatch/index.d.ts} +2 -1
- package/dist/atoms/components/theme/ColorSwatch/index.d.ts.map +1 -0
- package/dist/atoms/components/theme/DarkModeToggle.d.ts +4 -0
- package/dist/atoms/components/theme/DarkModeToggle.d.ts.map +1 -0
- package/dist/atoms/components/theme/PaletteSwitcher.d.ts +7 -0
- package/dist/atoms/components/theme/PaletteSwitcher.d.ts.map +1 -0
- package/dist/atoms/components/theme/StyleGuide.d.ts +3 -0
- package/dist/atoms/components/theme/StyleGuide.d.ts.map +1 -0
- package/dist/atoms/components/theme/index.d.ts +5 -0
- package/dist/atoms/components/theme/index.d.ts.map +1 -0
- package/dist/atoms/components/user/UserAvatar/UserAvatar.d.ts +8 -0
- package/dist/atoms/components/user/UserAvatar/UserAvatar.d.ts.map +1 -0
- package/dist/atoms/components/user/UserAvatar/index.d.ts +2 -0
- package/dist/atoms/components/user/UserAvatar/index.d.ts.map +1 -0
- package/dist/atoms/components/user/UserMenu/UserMenu.d.ts +8 -0
- package/dist/atoms/components/user/UserMenu/UserMenu.d.ts.map +1 -0
- package/dist/atoms/components/user/UserMenu/index.d.ts +2 -0
- package/dist/atoms/components/user/UserMenu/index.d.ts.map +1 -0
- package/dist/atoms/components/user/index.d.ts +3 -0
- package/dist/atoms/components/user/index.d.ts.map +1 -0
- package/dist/atoms/config/responsive.d.ts +147 -0
- package/dist/atoms/config/responsive.d.ts.map +1 -0
- package/dist/atoms/hooks/index.d.ts +5 -0
- package/dist/atoms/hooks/index.d.ts.map +1 -0
- package/dist/atoms/hooks/use-toast.d.ts +16 -0
- package/dist/atoms/hooks/use-toast.d.ts.map +1 -0
- package/dist/atoms/hooks/useApi.d.ts +25 -0
- package/dist/atoms/hooks/useApi.d.ts.map +1 -0
- package/dist/atoms/hooks/useHealth.d.ts +19 -0
- package/dist/atoms/hooks/useHealth.d.ts.map +1 -0
- package/dist/atoms/hooks/useResponsive.d.ts +42 -0
- package/dist/atoms/hooks/useResponsive.d.ts.map +1 -0
- package/dist/atoms/index.d.ts +8 -0
- package/dist/atoms/index.d.ts.map +1 -0
- package/dist/atoms/primitives/Badge.d.ts +10 -0
- package/dist/atoms/primitives/Badge.d.ts.map +1 -0
- package/dist/atoms/primitives/ErrorBoundary.d.ts +18 -0
- package/dist/atoms/primitives/ErrorBoundary.d.ts.map +1 -0
- package/dist/atoms/primitives/Select.d.ts +28 -0
- package/dist/atoms/primitives/Select.d.ts.map +1 -0
- package/dist/atoms/primitives/Switch.d.ts +9 -0
- package/dist/atoms/primitives/Switch.d.ts.map +1 -0
- package/dist/atoms/primitives/Tabs.d.ts +30 -0
- package/dist/atoms/primitives/Tabs.d.ts.map +1 -0
- package/dist/atoms/primitives/avatar.d.ts +7 -0
- package/dist/atoms/primitives/avatar.d.ts.map +1 -0
- package/dist/atoms/primitives/button.d.ts +14 -0
- package/dist/atoms/primitives/button.d.ts.map +1 -0
- package/dist/atoms/primitives/card.d.ts +12 -0
- package/dist/atoms/primitives/card.d.ts.map +1 -0
- package/dist/atoms/primitives/checkbox.d.ts +12 -0
- package/dist/atoms/primitives/checkbox.d.ts.map +1 -0
- package/dist/atoms/primitives/dialog.d.ts +34 -0
- package/dist/atoms/primitives/dialog.d.ts.map +1 -0
- package/dist/atoms/primitives/dropdown-menu.d.ts +28 -0
- package/dist/atoms/primitives/dropdown-menu.d.ts.map +1 -0
- package/{src/atoms/ui/index.ts → dist/atoms/primitives/index.d.ts} +5 -27
- package/dist/atoms/primitives/index.d.ts.map +1 -0
- package/dist/atoms/primitives/input.d.ts +5 -0
- package/dist/atoms/primitives/input.d.ts.map +1 -0
- package/dist/atoms/primitives/label.d.ts +6 -0
- package/dist/atoms/primitives/label.d.ts.map +1 -0
- package/dist/atoms/primitives/skeleton.d.ts +3 -0
- package/dist/atoms/primitives/skeleton.d.ts.map +1 -0
- package/dist/atoms/primitives/spinner.d.ts +14 -0
- package/dist/atoms/primitives/spinner.d.ts.map +1 -0
- package/dist/atoms/primitives/table.d.ts +11 -0
- package/dist/atoms/primitives/table.d.ts.map +1 -0
- package/dist/atoms/services/api/client.d.ts +20 -0
- package/dist/atoms/services/api/client.d.ts.map +1 -0
- package/dist/atoms/services/auth-service.d.ts +24 -0
- package/dist/atoms/services/auth-service.d.ts.map +1 -0
- package/dist/atoms/services/health.d.ts +7 -0
- package/dist/atoms/services/health.d.ts.map +1 -0
- package/{src/atoms/services/index.ts → dist/atoms/services/index.d.ts} +2 -1
- package/dist/atoms/services/index.d.ts.map +1 -0
- package/dist/atoms/shared/config/constants.d.ts +15 -0
- package/dist/atoms/shared/config/constants.d.ts.map +1 -0
- package/dist/atoms/shared/config/dashboard-sizes.d.ts +83 -0
- package/dist/atoms/shared/config/dashboard-sizes.d.ts.map +1 -0
- package/dist/atoms/shared/config/environment.d.ts +10 -0
- package/dist/atoms/shared/config/environment.d.ts.map +1 -0
- package/dist/atoms/shared/index.d.ts +5 -0
- package/dist/atoms/shared/index.d.ts.map +1 -0
- package/dist/atoms/types/auth.d.ts +56 -0
- package/dist/atoms/types/auth.d.ts.map +1 -0
- package/dist/atoms/types/entity-config.d.ts +117 -0
- package/dist/atoms/types/entity-config.d.ts.map +1 -0
- package/{src/atoms/types/generated.ts → dist/atoms/types/generated.d.ts} +1 -1
- package/dist/atoms/types/generated.d.ts.map +1 -0
- package/dist/atoms/types/index.d.ts +7 -0
- package/dist/atoms/types/index.d.ts.map +1 -0
- package/{src/atoms/types/loading.ts → dist/atoms/types/loading.d.ts} +8 -10
- package/dist/atoms/types/loading.d.ts.map +1 -0
- package/dist/atoms/types/navigation.d.ts +30 -0
- package/dist/atoms/types/navigation.d.ts.map +1 -0
- package/dist/atoms/types/ui-config.d.ts +50 -0
- package/dist/atoms/types/ui-config.d.ts.map +1 -0
- package/dist/atoms/utils/animations.d.ts +65 -0
- package/dist/atoms/utils/animations.d.ts.map +1 -0
- package/dist/atoms/utils/color-manager.d.ts +68 -0
- package/dist/atoms/utils/color-manager.d.ts.map +1 -0
- package/dist/atoms/utils/debounce.d.ts +6 -0
- package/dist/atoms/utils/debounce.d.ts.map +1 -0
- package/dist/atoms/utils/field-detection.d.ts +15 -0
- package/dist/atoms/utils/field-detection.d.ts.map +1 -0
- package/dist/atoms/utils/icon-resolver.d.ts +76 -0
- package/dist/atoms/utils/icon-resolver.d.ts.map +1 -0
- package/dist/atoms/utils/index.d.ts +5 -0
- package/dist/atoms/utils/index.d.ts.map +1 -0
- package/dist/atoms/utils/metric-engine.d.ts +30 -0
- package/dist/atoms/utils/metric-engine.d.ts.map +1 -0
- package/dist/atoms/utils/tooltip-helpers.d.ts +71 -0
- package/dist/atoms/utils/tooltip-helpers.d.ts.map +1 -0
- package/dist/atoms/utils/ui-mapping.d.ts +17 -0
- package/dist/atoms/utils/ui-mapping.d.ts.map +1 -0
- package/dist/atoms/utils/utils.d.ts +9 -0
- package/dist/atoms/utils/utils.d.ts.map +1 -0
- package/dist/codegen/index.d.ts +7 -0
- package/dist/codegen/index.d.ts.map +1 -0
- package/dist/codegen/openapi/bulk-hook-generator.d.ts +40 -0
- package/dist/codegen/openapi/bulk-hook-generator.d.ts.map +1 -0
- package/dist/codegen/openapi/bulk-types.d.ts +142 -0
- package/dist/codegen/openapi/bulk-types.d.ts.map +1 -0
- package/dist/codegen/openapi/client-generator.d.ts +52 -0
- package/dist/codegen/openapi/client-generator.d.ts.map +1 -0
- package/dist/codegen/openapi/confidence-scorer.d.ts +30 -0
- package/dist/codegen/openapi/confidence-scorer.d.ts.map +1 -0
- package/dist/codegen/openapi/hook-config.d.ts +50 -0
- package/dist/codegen/openapi/hook-config.d.ts.map +1 -0
- package/dist/codegen/openapi/hook-generator.d.ts +108 -0
- package/dist/codegen/openapi/hook-generator.d.ts.map +1 -0
- package/dist/codegen/openapi/index.d.ts +27 -0
- package/dist/codegen/openapi/index.d.ts.map +1 -0
- package/dist/codegen/openapi/parser.d.ts +107 -0
- package/dist/codegen/openapi/parser.d.ts.map +1 -0
- package/dist/codegen/openapi/type-generator.d.ts +53 -0
- package/dist/codegen/openapi/type-generator.d.ts.map +1 -0
- package/dist/features/auth/components/LoginForm.d.ts +2 -0
- package/dist/features/auth/components/LoginForm.d.ts.map +1 -0
- package/dist/features/auth/components/LogoutButton.d.ts +2 -0
- package/dist/features/auth/components/LogoutButton.d.ts.map +1 -0
- package/dist/features/auth/components/ProtectedRoute.d.ts +10 -0
- package/dist/features/auth/components/ProtectedRoute.d.ts.map +1 -0
- package/{src/features/auth/components/index.ts → dist/features/auth/components/index.d.ts} +1 -1
- package/dist/features/auth/components/index.d.ts.map +1 -0
- package/dist/features/auth/hooks/index.d.ts +4 -0
- package/dist/features/auth/hooks/index.d.ts.map +1 -0
- package/dist/features/auth/hooks/useAuth.d.ts +10 -0
- package/dist/features/auth/hooks/useAuth.d.ts.map +1 -0
- package/dist/features/auth/hooks/useAuthContext.d.ts +7 -0
- package/dist/features/auth/hooks/useAuthContext.d.ts.map +1 -0
- package/dist/features/auth/hooks/usePermissions.d.ts +13 -0
- package/dist/features/auth/hooks/usePermissions.d.ts.map +1 -0
- package/dist/features/auth/index.d.ts +4 -0
- package/dist/features/auth/index.d.ts.map +1 -0
- package/dist/features/auth/providers/MockAuthProvider.d.ts +9 -0
- package/dist/features/auth/providers/MockAuthProvider.d.ts.map +1 -0
- package/dist/features/auth/providers/index.d.ts +2 -0
- package/dist/features/auth/providers/index.d.ts.map +1 -0
- package/dist/features/auth/services/mock-auth-service.d.ts +17 -0
- package/dist/features/auth/services/mock-auth-service.d.ts.map +1 -0
- package/dist/features/index.d.ts +2 -0
- package/dist/features/index.d.ts.map +1 -0
- package/dist/frontend-patterns.css +4417 -1
- package/dist/generated/client/client.d.ts +23 -0
- package/dist/generated/client/client.d.ts.map +1 -0
- package/dist/generated/client/config.d.ts +10 -0
- package/dist/generated/client/config.d.ts.map +1 -0
- package/dist/generated/client/index.d.ts +12 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/methods.d.ts +591 -0
- package/dist/generated/client/methods.d.ts.map +1 -0
- package/dist/generated/client/types.d.ts +37 -0
- package/dist/generated/client/types.d.ts.map +1 -0
- package/dist/generated/example.d.ts +8 -0
- package/dist/generated/example.d.ts.map +1 -0
- package/dist/generated/hooks/index.d.ts +11 -0
- package/dist/generated/hooks/index.d.ts.map +1 -0
- package/dist/generated/hooks/keys.d.ts +59 -0
- package/dist/generated/hooks/keys.d.ts.map +1 -0
- package/dist/generated/hooks/mutations.d.ts +551 -0
- package/dist/generated/hooks/mutations.d.ts.map +1 -0
- package/dist/generated/hooks/queries.d.ts +426 -0
- package/dist/generated/hooks/queries.d.ts.map +1 -0
- package/dist/generated/hooks/types.d.ts +318 -0
- package/dist/generated/hooks/types.d.ts.map +1 -0
- package/dist/generated/index.d.ts +13 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/types/endpoints.d.ts +1364 -0
- package/dist/generated/types/endpoints.d.ts.map +1 -0
- package/dist/generated/types/index.d.ts +11 -0
- package/dist/generated/types/index.d.ts.map +1 -0
- package/dist/generated/types/parameters.d.ts +8 -0
- package/dist/generated/types/parameters.d.ts.map +1 -0
- package/dist/generated/types/responses.d.ts +8 -0
- package/dist/generated/types/responses.d.ts.map +1 -0
- package/dist/generated/types/schemas.d.ts +652 -0
- package/dist/generated/types/schemas.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +25027 -7925
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +25048 -7925
- package/dist/index.js.map +1 -1
- package/dist/molecules/feedback/index.d.ts +2 -0
- package/dist/molecules/feedback/index.d.ts.map +1 -0
- package/dist/molecules/forms/FormGroup.d.ts +17 -0
- package/dist/molecules/forms/FormGroup.d.ts.map +1 -0
- package/dist/molecules/forms/SearchInput.d.ts +36 -0
- package/dist/molecules/forms/SearchInput.d.ts.map +1 -0
- package/dist/molecules/forms/index.d.ts +3 -0
- package/dist/molecules/forms/index.d.ts.map +1 -0
- package/dist/molecules/index.d.ts +4 -0
- package/dist/molecules/index.d.ts.map +1 -0
- package/dist/molecules/layout/AppHeader/AppHeader.d.ts +7 -0
- package/dist/molecules/layout/AppHeader/AppHeader.d.ts.map +1 -0
- package/dist/molecules/layout/AppHeader/index.d.ts +2 -0
- package/dist/molecules/layout/AppHeader/index.d.ts.map +1 -0
- package/dist/molecules/layout/AppLayout.d.ts +2 -0
- package/dist/molecules/layout/AppLayout.d.ts.map +1 -0
- package/dist/molecules/layout/BulkSelectionBar.d.ts +15 -0
- package/dist/molecules/layout/BulkSelectionBar.d.ts.map +1 -0
- package/dist/molecules/layout/DashboardWithSidePanel/DashboardWithSidePanel.d.ts +16 -0
- package/dist/molecules/layout/DashboardWithSidePanel/DashboardWithSidePanel.d.ts.map +1 -0
- package/{src/molecules/layout/DashboardWithSidePanel/index.ts → dist/molecules/layout/DashboardWithSidePanel/index.d.ts} +2 -1
- package/dist/molecules/layout/DashboardWithSidePanel/index.d.ts.map +1 -0
- package/dist/molecules/layout/NavigationContext.d.ts +15 -0
- package/dist/molecules/layout/NavigationContext.d.ts.map +1 -0
- package/dist/molecules/layout/PageTemplate.d.ts +19 -0
- package/dist/molecules/layout/PageTemplate.d.ts.map +1 -0
- package/dist/molecules/layout/SectionHeader/SectionHeader.d.ts +24 -0
- package/dist/molecules/layout/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/{src/molecules/layout/SectionHeader/index.ts → dist/molecules/layout/SectionHeader/index.d.ts} +2 -1
- package/dist/molecules/layout/SectionHeader/index.d.ts.map +1 -0
- package/dist/molecules/layout/ShowcaseSection.d.ts +22 -0
- package/dist/molecules/layout/ShowcaseSection.d.ts.map +1 -0
- package/dist/molecules/layout/Sidebar.d.ts +6 -0
- package/dist/molecules/layout/Sidebar.d.ts.map +1 -0
- package/dist/molecules/layout/SidebarButton/SidebarButton.d.ts +15 -0
- package/dist/molecules/layout/SidebarButton/SidebarButton.d.ts.map +1 -0
- package/dist/molecules/layout/SidebarButton/index.d.ts +2 -0
- package/dist/molecules/layout/SidebarButton/index.d.ts.map +1 -0
- package/dist/molecules/layout/SidebarContext.d.ts +12 -0
- package/dist/molecules/layout/SidebarContext.d.ts.map +1 -0
- package/{src/molecules/layout/index.ts → dist/molecules/layout/index.d.ts} +5 -1
- package/dist/molecules/layout/index.d.ts.map +1 -0
- package/dist/molecules/navigation/NavMenu.d.ts +20 -0
- package/dist/molecules/navigation/NavMenu.d.ts.map +1 -0
- package/dist/molecules/navigation/Pagination.d.ts +14 -0
- package/dist/molecules/navigation/Pagination.d.ts.map +1 -0
- package/dist/molecules/navigation/index.d.ts +3 -0
- package/dist/molecules/navigation/index.d.ts.map +1 -0
- package/dist/organisms/index.d.ts +2 -0
- package/dist/organisms/index.d.ts.map +1 -0
- package/dist/organisms/showcase/ComponentShowcasePage.d.ts +3 -0
- package/dist/organisms/showcase/ComponentShowcasePage.d.ts.map +1 -0
- package/dist/templates/AuthTemplate.d.ts +68 -0
- package/dist/templates/AuthTemplate.d.ts.map +1 -0
- package/dist/templates/ComponentShowcaseTemplate.d.ts +53 -0
- package/dist/templates/ComponentShowcaseTemplate.d.ts.map +1 -0
- package/dist/templates/DashboardTemplate.d.ts +62 -0
- package/dist/templates/DashboardTemplate.d.ts.map +1 -0
- package/dist/templates/DataTemplate.d.ts +78 -0
- package/dist/templates/DataTemplate.d.ts.map +1 -0
- package/dist/templates/EnhancedDataTemplate.d.ts +188 -0
- package/dist/templates/EnhancedDataTemplate.d.ts.map +1 -0
- package/dist/templates/EnhancedDataTemplate.hooks.bulk.d.ts +18 -0
- package/dist/templates/EnhancedDataTemplate.hooks.bulk.d.ts.map +1 -0
- package/dist/templates/EnhancedDataTemplate.hooks.d.ts +22 -0
- package/dist/templates/EnhancedDataTemplate.hooks.d.ts.map +1 -0
- package/dist/templates/admin/AdminCRUDTemplate.d.ts +105 -0
- package/dist/templates/admin/AdminCRUDTemplate.d.ts.map +1 -0
- package/dist/templates/admin/AdminDashboardTemplate.d.ts +86 -0
- package/dist/templates/admin/AdminDashboardTemplate.d.ts.map +1 -0
- package/dist/templates/admin/AdminDetailTemplate.d.ts +132 -0
- package/dist/templates/admin/AdminDetailTemplate.d.ts.map +1 -0
- package/dist/templates/admin/index.d.ts +4 -0
- package/dist/templates/admin/index.d.ts.map +1 -0
- package/dist/templates/api/APIDataTemplate.d.ts +66 -0
- package/dist/templates/api/APIDataTemplate.d.ts.map +1 -0
- package/dist/templates/api/index.d.ts +8 -0
- package/dist/templates/api/index.d.ts.map +1 -0
- package/dist/templates/factory.d.ts +29 -0
- package/dist/templates/factory.d.ts.map +1 -0
- package/dist/templates/index.d.ts +9 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/package.json +31 -9
- package/src/App.css +0 -42
- package/src/App.tsx +0 -64
- package/src/__tests__/README.md +0 -221
- package/src/__tests__/atoms/hooks/simple-hooks.test.ts +0 -44
- package/src/__tests__/atoms/ui/button.test.tsx +0 -68
- package/src/__tests__/atoms/utils/simple.test.ts +0 -18
- package/src/__tests__/atoms/utils/utils.test.ts +0 -77
- package/src/__tests__/features/auth/simple-auth.test.tsx +0 -40
- package/src/__tests__/molecules/layout/simple-layout.test.tsx +0 -81
- package/src/__tests__/organisms/showcase/simple-showcase.test.tsx +0 -167
- package/src/__tests__/setup.ts +0 -51
- package/src/__tests__/utils.tsx +0 -123
- package/src/atoms/composed/Accordion/Accordion.tsx +0 -271
- package/src/atoms/composed/Alert/Alert.tsx +0 -132
- package/src/atoms/composed/Alert/index.ts +0 -1
- package/src/atoms/composed/Breadcrumb/Breadcrumb.tsx +0 -83
- package/src/atoms/composed/Breadcrumb/index.ts +0 -1
- package/src/atoms/composed/Chart/Chart.tsx +0 -425
- package/src/atoms/composed/ColorSwatch/ColorSwatch.tsx +0 -72
- package/src/atoms/composed/DarkModeToggle.tsx +0 -66
- package/src/atoms/composed/DataBadge/DataBadge.tsx +0 -81
- package/src/atoms/composed/DataBadge/index.ts +0 -1
- package/src/atoms/composed/DataTable/DataTable.tsx +0 -394
- package/src/atoms/composed/DataTable/TableCellWithTooltip.tsx +0 -41
- package/src/atoms/composed/DataTable/index.ts +0 -2
- package/src/atoms/composed/DateTimePicker/DateTimePicker.tsx +0 -611
- package/src/atoms/composed/DateTimePicker/index.ts +0 -2
- package/src/atoms/composed/DetailedCard/DetailedCard.tsx +0 -181
- package/src/atoms/composed/DetailedCard/index.ts +0 -2
- package/src/atoms/composed/EmptyState/EmptyState.tsx +0 -90
- package/src/atoms/composed/EmptyState/index.ts +0 -1
- package/src/atoms/composed/FileUpload/FileUpload.tsx +0 -477
- package/src/atoms/composed/FormField/FormField.tsx +0 -92
- package/src/atoms/composed/FormField/index.ts +0 -1
- package/src/atoms/composed/GlobalSearch/GlobalSearch.tsx +0 -37
- package/src/atoms/composed/GlobalSearch/index.ts +0 -1
- package/src/atoms/composed/IconBadge/IconBadge.tsx +0 -95
- package/src/atoms/composed/IconBadge/index.ts +0 -2
- package/src/atoms/composed/Modal/Modal.tsx +0 -223
- package/src/atoms/composed/Modal/index.ts +0 -2
- package/src/atoms/composed/PaletteSwitcher.tsx +0 -386
- package/src/atoms/composed/ProgressBar/ProgressBar.tsx +0 -116
- package/src/atoms/composed/SalesPanel/SalesPanel.tsx +0 -116
- package/src/atoms/composed/SalesPanel/index.ts +0 -1
- package/src/atoms/composed/SalesPanel/mockSalesData.ts +0 -151
- package/src/atoms/composed/StatCard/StatCard.tsx +0 -219
- package/src/atoms/composed/StatCard/index.ts +0 -1
- package/src/atoms/composed/StyleGuide.tsx +0 -717
- package/src/atoms/composed/Toast/Toast.tsx +0 -219
- package/src/atoms/composed/Tooltip/Tooltip.tsx +0 -213
- package/src/atoms/composed/Tooltip/index.ts +0 -1
- package/src/atoms/composed/UserAvatar/UserAvatar.tsx +0 -139
- package/src/atoms/composed/UserAvatar/index.ts +0 -1
- package/src/atoms/composed/UserMenu/UserMenu.tsx +0 -16
- package/src/atoms/composed/UserMenu/index.ts +0 -1
- package/src/atoms/composed/index.ts +0 -30
- package/src/atoms/hooks/useApi.ts +0 -80
- package/src/atoms/hooks/useHealth.ts +0 -17
- package/src/atoms/index.ts +0 -13
- package/src/atoms/services/api/client.ts +0 -134
- package/src/atoms/services/auth-service.ts +0 -248
- package/src/atoms/services/health.ts +0 -15
- package/src/atoms/shared/config/constants.ts +0 -17
- package/src/atoms/shared/config/dashboard-sizes.ts +0 -111
- package/src/atoms/shared/config/environment.ts +0 -10
- package/src/atoms/shared/index.ts +0 -4
- package/src/atoms/shared/styles/color-palettes.css +0 -566
- package/src/atoms/types/auth.ts +0 -62
- package/src/atoms/types/entity-config.ts +0 -127
- package/src/atoms/types/index.ts +0 -5
- package/src/atoms/ui/Badge.tsx +0 -30
- package/src/atoms/ui/ErrorBoundary.tsx +0 -59
- package/src/atoms/ui/Select.tsx +0 -53
- package/src/atoms/ui/Switch.tsx +0 -42
- package/src/atoms/ui/Tabs.tsx +0 -118
- package/src/atoms/ui/avatar.tsx +0 -48
- package/src/atoms/ui/button.tsx +0 -70
- package/src/atoms/ui/card.tsx +0 -76
- package/src/atoms/ui/dropdown-menu.tsx +0 -199
- package/src/atoms/ui/input.tsx +0 -23
- package/src/atoms/ui/label.tsx +0 -23
- package/src/atoms/ui/skeleton.tsx +0 -13
- package/src/atoms/ui/spinner.tsx +0 -49
- package/src/atoms/ui/table.tsx +0 -116
- package/src/atoms/utils/animations.ts +0 -135
- package/src/atoms/utils/metric-engine.ts +0 -236
- package/src/atoms/utils/tooltip-helpers.ts +0 -140
- package/src/atoms/utils/utils.ts +0 -10
- package/src/features/auth/components/LoginForm.tsx +0 -168
- package/src/features/auth/components/LogoutButton.tsx +0 -19
- package/src/features/auth/components/ProtectedRoute.tsx +0 -60
- package/src/features/auth/hooks/index.ts +0 -2
- package/src/features/auth/hooks/useAuth.tsx +0 -205
- package/src/features/auth/hooks/usePermissions.ts +0 -35
- package/src/features/auth/index.ts +0 -2
- package/src/features/index.ts +0 -2
- package/src/index.css +0 -704
- package/src/index.ts +0 -13
- package/src/main.tsx +0 -48
- package/src/molecules/.gitkeep +0 -0
- package/src/molecules/forms/FormGroup.tsx +0 -75
- package/src/molecules/forms/SearchInput.tsx +0 -259
- package/src/molecules/forms/index.ts +0 -4
- package/src/molecules/index.ts +0 -4
- package/src/molecules/layout/AppHeader/AppHeader.tsx +0 -42
- package/src/molecules/layout/AppHeader/index.ts +0 -1
- package/src/molecules/layout/AppLayout.tsx +0 -29
- package/src/molecules/layout/DashboardWithSidePanel/DashboardWithSidePanel.tsx +0 -42
- package/src/molecules/layout/PageTemplate.tsx +0 -87
- package/src/molecules/layout/SectionHeader/SectionHeader.tsx +0 -87
- package/src/molecules/layout/ShowcaseSection.tsx +0 -57
- package/src/molecules/layout/Sidebar.tsx +0 -152
- package/src/molecules/layout/SidebarButton/SidebarButton.tsx +0 -99
- package/src/molecules/layout/SidebarButton/index.ts +0 -1
- package/src/molecules/layout/SidebarContext.tsx +0 -31
- package/src/molecules/navigation/NavMenu.tsx +0 -188
- package/src/molecules/navigation/Pagination.tsx +0 -172
- package/src/molecules/navigation/index.ts +0 -4
- package/src/organisms/entity/CategoryBreakdownPanel.tsx +0 -427
- package/src/organisms/entity/EntityListPanel.tsx +0 -339
- package/src/organisms/entity/MetricsOverviewPanel.tsx +0 -236
- package/src/organisms/entity/TrendAnalysisPanel.tsx +0 -337
- package/src/organisms/entity/index.ts +0 -4
- package/src/organisms/index.ts +0 -8
- package/src/organisms/showcase/ComponentShowcasePage.tsx +0 -2496
- package/src/organisms/showcase/index.ts +0 -1
- package/src/pages/AdminShowcase/AdminCRUDShowcase.tsx +0 -242
- package/src/pages/AdminShowcase/AdminDashboardShowcase.tsx +0 -173
- package/src/pages/AdminShowcase/AdminDetailShowcase.tsx +0 -385
- package/src/pages/AdminShowcase/SalesPerformanceDashboard.tsx +0 -158
- package/src/pages/AdminShowcase/index.tsx +0 -4
- package/src/pages/ComponentShowcase/BadgesShowcase.tsx +0 -188
- package/src/pages/ComponentShowcase/CardsShowcase.tsx +0 -392
- package/src/pages/ComponentShowcase/PalettesShowcase.tsx +0 -207
- package/src/pages/ComponentShowcase/StatesShowcase.tsx +0 -485
- package/src/pages/ComponentShowcase/TablesShowcase.tsx +0 -134
- package/src/pages/ComponentShowcase/TypographyShowcase.tsx +0 -255
- package/src/pages/ComponentShowcase/index.tsx +0 -188
- package/src/pages/EntityShowcase/EntityManagementShowcase.tsx +0 -137
- package/src/pages/EntityShowcase/EntityPerformanceShowcase.tsx +0 -117
- package/src/pages/EntityShowcase/index.ts +0 -2
- package/src/pages/EntityTemplateExample.tsx +0 -229
- package/src/pages/TestEntityTemplate.tsx +0 -40
- package/src/pages/index.ts +0 -3
- package/src/templates/AuthTemplate.tsx +0 -216
- package/src/templates/ComponentShowcaseTemplate.tsx +0 -173
- package/src/templates/DashboardTemplate.tsx +0 -232
- package/src/templates/DataTemplate.tsx +0 -319
- package/src/templates/admin/AdminCRUDTemplate.tsx +0 -630
- package/src/templates/admin/AdminDashboardTemplate.tsx +0 -351
- package/src/templates/admin/AdminDetailTemplate.tsx +0 -563
- package/src/templates/admin/index.ts +0 -29
- package/src/templates/entity/EntityManagementTemplate.tsx +0 -430
- package/src/templates/entity/EntityPerformanceDashboardTemplate.tsx +0 -277
- package/src/templates/entity/configs/financial-config.ts +0 -141
- package/src/templates/entity/configs/index.ts +0 -1
- package/src/templates/entity/index.ts +0 -3
- package/src/templates/factory.tsx +0 -169
- package/src/templates/financial/FinancialDashboardTemplate.tsx +0 -326
- package/src/templates/index.ts +0 -40
- package/src/vite-env.d.ts +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Client Types
|
|
3
|
+
*
|
|
4
|
+
* Configuration and utility types for the generated API client
|
|
5
|
+
*/
|
|
6
|
+
export interface APIClientConfig {
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
timeout?: number;
|
|
9
|
+
defaultHeaders?: Record<string, string>;
|
|
10
|
+
retries?: number;
|
|
11
|
+
getAuthToken?: () => Promise<string | null> | string | null;
|
|
12
|
+
onRequest?: (config: any) => any;
|
|
13
|
+
onRequestError?: (error: any) => void;
|
|
14
|
+
onResponse?: (response: any) => any;
|
|
15
|
+
onResponseError?: (error: any) => Promise<any> | any;
|
|
16
|
+
onError?: (error: APIError) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface RequestOptions {
|
|
19
|
+
params?: Record<string, any>;
|
|
20
|
+
data?: any;
|
|
21
|
+
headers?: Record<string, string>;
|
|
22
|
+
config?: any;
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
export interface APIError {
|
|
27
|
+
message: string;
|
|
28
|
+
status?: number;
|
|
29
|
+
statusText?: string;
|
|
30
|
+
data?: any;
|
|
31
|
+
config: {
|
|
32
|
+
url?: string;
|
|
33
|
+
method?: string;
|
|
34
|
+
headers?: any;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/generated/client/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAA;IAChC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IACrC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAA;IACnC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;IACpD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAA;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,MAAM,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,GAAG,CAAA;KACd,CAAA;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../src/generated/example.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AA4BH,iBAAS,GAAG,4CAMX;AAqFD,eAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated React Hooks
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated React hooks from OpenAPI specification
|
|
5
|
+
* Do not edit manually - regenerate using the hook generator
|
|
6
|
+
*/
|
|
7
|
+
export * from './queries';
|
|
8
|
+
export * from './mutations';
|
|
9
|
+
export { queryKeys } from './keys';
|
|
10
|
+
export * from './types';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,WAAW,CAAA;AAGzB,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlC,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query Keys
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated React hooks from OpenAPI specification
|
|
5
|
+
* Do not edit manually - regenerate using the hook generator
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Centralized query key factory
|
|
9
|
+
* Ensures consistent cache key generation across the application
|
|
10
|
+
*/
|
|
11
|
+
export declare const queryKeys: {
|
|
12
|
+
all: readonly ["api"];
|
|
13
|
+
Health: () => readonly ["api", "Health"];
|
|
14
|
+
healthStatus: () => readonly ["api", "Health", "healthStatus"];
|
|
15
|
+
Authentication: () => readonly ["api", "Authentication"];
|
|
16
|
+
authHealths: () => readonly ["api", "Authentication", "authHealths"];
|
|
17
|
+
currentUserInfo: () => readonly ["api", "Authentication", "currentUserInfo"];
|
|
18
|
+
Users: () => readonly ["api", "Users"];
|
|
19
|
+
users: () => readonly ["api", "Users", "users"];
|
|
20
|
+
user: (params: any) => readonly ["api", "Users", "user", any];
|
|
21
|
+
userPermissions: (params: any) => readonly ["api", "Users", "userPermissions", any];
|
|
22
|
+
Accounts: () => readonly ["api", "Accounts"];
|
|
23
|
+
accounts: () => readonly ["api", "Accounts", "accounts"];
|
|
24
|
+
account: (params: any) => readonly ["api", "Accounts", "account", any];
|
|
25
|
+
accountStats: (params: any) => readonly ["api", "Accounts", "accountStats", any];
|
|
26
|
+
Categories: () => readonly ["api", "Categories"];
|
|
27
|
+
categories: () => readonly ["api", "Categories", "categories"];
|
|
28
|
+
category: (params: any) => readonly ["api", "Categories", "category", any];
|
|
29
|
+
categoryWithSubcategories: (params: any) => readonly ["api", "Categories", "categoryWithSubcategories", any];
|
|
30
|
+
categorySubcategoriesList: (params: any) => readonly ["api", "Categories", "categorySubcategoriesList", any];
|
|
31
|
+
categorySubcategories: (params: any) => readonly ["api", "Categories", "categorySubcategories", any];
|
|
32
|
+
Transactions: () => readonly ["api", "Transactions"];
|
|
33
|
+
transactions: () => readonly ["api", "Transactions", "transactions"];
|
|
34
|
+
transaction: (params: any) => readonly ["api", "Transactions", "transaction", any];
|
|
35
|
+
transactionNeedingSettlements: () => readonly ["api", "Transactions", "transactionNeedingSettlements"];
|
|
36
|
+
transactionAnalytics: () => readonly ["api", "Transactions", "transactionAnalytics"];
|
|
37
|
+
transactionStats: () => readonly ["api", "Transactions", "transactionStats"];
|
|
38
|
+
Budgets: () => readonly ["api", "Budgets"];
|
|
39
|
+
budgets: () => readonly ["api", "Budgets", "budgets"];
|
|
40
|
+
budget: (params: any) => readonly ["api", "Budgets", "budget", any];
|
|
41
|
+
budgetPerformance: (params: any) => readonly ["api", "Budgets", "budgetPerformance", any];
|
|
42
|
+
budgetAnalytics: () => readonly ["api", "Budgets", "budgetAnalytics"];
|
|
43
|
+
budgetSummaries: () => readonly ["api", "Budgets", "budgetSummaries"];
|
|
44
|
+
budgetComparisons: (params: any) => readonly ["api", "Budgets", "budgetComparisons", any];
|
|
45
|
+
budgetAlerts: () => readonly ["api", "Budgets", "budgetAlerts"];
|
|
46
|
+
Settlements: () => readonly ["api", "Settlements"];
|
|
47
|
+
settlements: () => readonly ["api", "Settlements", "settlements"];
|
|
48
|
+
settlement: (params: any) => readonly ["api", "Settlements", "settlement", any];
|
|
49
|
+
settlementUsers: (params: any) => readonly ["api", "Settlements", "settlementUsers", any];
|
|
50
|
+
settlementSuggestions: () => readonly ["api", "Settlements", "settlementSuggestions"];
|
|
51
|
+
settlementStats: () => readonly ["api", "Settlements", "settlementStats"];
|
|
52
|
+
Households: () => readonly ["api", "Households"];
|
|
53
|
+
households: () => readonly ["api", "Households", "households"];
|
|
54
|
+
household: (params: any) => readonly ["api", "Households", "household", any];
|
|
55
|
+
householdMembers: (params: any) => readonly ["api", "Households", "householdMembers", any];
|
|
56
|
+
householdStats: (params: any) => readonly ["api", "Households", "householdStats", any];
|
|
57
|
+
householdMyHouseholds: () => readonly ["api", "Households", "householdMyHouseholds"];
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/generated/hooks/keys.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;mBAeL,GAAG;8BACQ,GAAG;;;sBAKX,GAAG;2BACE,GAAG;;;uBAKP,GAAG;wCACc,GAAG;wCACH,GAAG;oCACP,GAAG;;;0BAKb,GAAG;;;;;;qBAQR,GAAG;gCACQ,GAAG;;;gCAGH,GAAG;;;;yBAMV,GAAG;8BACE,GAAG;;;;;wBAOT,GAAG;+BACI,GAAG;6BACL,GAAG;;CAG7B,CAAA"}
|
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mutation Hooks
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated React hooks from OpenAPI specification
|
|
5
|
+
* Do not edit manually - regenerate using the hook generator
|
|
6
|
+
*/
|
|
7
|
+
import { type UseMutationOptions } from '@tanstack/react-query';
|
|
8
|
+
/**
|
|
9
|
+
* Login
|
|
10
|
+
* User login endpoint.
|
|
11
|
+
|
|
12
|
+
Authenticate with username/email and password to receive access token.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useLogin(options?: UseMutationOptions<any, any, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}, unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Logout
|
|
21
|
+
* User logout endpoint.
|
|
22
|
+
|
|
23
|
+
Logout the current user (client-side token invalidation).
|
|
24
|
+
*/
|
|
25
|
+
export declare function useLogout(options?: UseMutationOptions<any, any, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Create User
|
|
32
|
+
* Create a new user.
|
|
33
|
+
|
|
34
|
+
Requires admin privileges.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useCreateUser(options?: UseMutationOptions<any, any, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Update User
|
|
43
|
+
* Update user information.
|
|
44
|
+
|
|
45
|
+
Requires admin privileges.
|
|
46
|
+
*/
|
|
47
|
+
export declare function useUpdateUser(options?: UseMutationOptions<any, any, {
|
|
48
|
+
pathParams: {
|
|
49
|
+
user_id: string;
|
|
50
|
+
};
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
pathParams: {
|
|
55
|
+
user_id: string;
|
|
56
|
+
};
|
|
57
|
+
}, unknown>;
|
|
58
|
+
/**
|
|
59
|
+
* Delete User
|
|
60
|
+
* Delete a user.
|
|
61
|
+
|
|
62
|
+
Requires admin privileges. Cannot delete your own account.
|
|
63
|
+
*/
|
|
64
|
+
export declare function useDeleteUser(options?: UseMutationOptions<any, any, {
|
|
65
|
+
pathParams: {
|
|
66
|
+
user_id: string;
|
|
67
|
+
};
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
pathParams: {
|
|
72
|
+
user_id: string;
|
|
73
|
+
};
|
|
74
|
+
}, unknown>;
|
|
75
|
+
/**
|
|
76
|
+
* Assign Roles
|
|
77
|
+
* Assign roles to a user.
|
|
78
|
+
|
|
79
|
+
Requires admin privileges.
|
|
80
|
+
*/
|
|
81
|
+
export declare function useAssignUserRoles(options?: UseMutationOptions<any, any, {
|
|
82
|
+
pathParams: {
|
|
83
|
+
user_id: string;
|
|
84
|
+
};
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
pathParams: {
|
|
89
|
+
user_id: string;
|
|
90
|
+
};
|
|
91
|
+
}, unknown>;
|
|
92
|
+
/**
|
|
93
|
+
* Create Account
|
|
94
|
+
* Create a new account.
|
|
95
|
+
|
|
96
|
+
Users can create accounts in their household.
|
|
97
|
+
Account visibility will be set based on the visibility_scope field.
|
|
98
|
+
*/
|
|
99
|
+
export declare function useCreateAccount(options?: UseMutationOptions<any, any, {
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}, unknown>;
|
|
104
|
+
/**
|
|
105
|
+
* Update Account
|
|
106
|
+
* Update account information.
|
|
107
|
+
|
|
108
|
+
Users can only update accounts they own or have household admin privileges.
|
|
109
|
+
*/
|
|
110
|
+
export declare function useUpdateAccount(options?: UseMutationOptions<any, any, {
|
|
111
|
+
pathParams: {
|
|
112
|
+
account_id: string;
|
|
113
|
+
};
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
pathParams: {
|
|
118
|
+
account_id: string;
|
|
119
|
+
};
|
|
120
|
+
}, unknown>;
|
|
121
|
+
/**
|
|
122
|
+
* Delete Account
|
|
123
|
+
* Delete an account.
|
|
124
|
+
|
|
125
|
+
Users can only delete accounts they own or have household admin privileges.
|
|
126
|
+
Cannot delete accounts with associated transactions.
|
|
127
|
+
*/
|
|
128
|
+
export declare function useDeleteAccount(options?: UseMutationOptions<any, any, {
|
|
129
|
+
pathParams: {
|
|
130
|
+
account_id: string;
|
|
131
|
+
};
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
pathParams: {
|
|
136
|
+
account_id: string;
|
|
137
|
+
};
|
|
138
|
+
}, unknown>;
|
|
139
|
+
/**
|
|
140
|
+
* Create Category
|
|
141
|
+
* Create a new category.
|
|
142
|
+
|
|
143
|
+
Household members can create categories for their household.
|
|
144
|
+
*/
|
|
145
|
+
export declare function useCreateCategory(options?: UseMutationOptions<any, any, {
|
|
146
|
+
[key: string]: any;
|
|
147
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}, unknown>;
|
|
150
|
+
/**
|
|
151
|
+
* Update Category
|
|
152
|
+
* Update category information.
|
|
153
|
+
|
|
154
|
+
Household members can update categories in their household.
|
|
155
|
+
*/
|
|
156
|
+
export declare function useUpdateCategory(options?: UseMutationOptions<any, any, {
|
|
157
|
+
pathParams: {
|
|
158
|
+
category_id: string;
|
|
159
|
+
};
|
|
160
|
+
[key: string]: any;
|
|
161
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
162
|
+
[key: string]: any;
|
|
163
|
+
pathParams: {
|
|
164
|
+
category_id: string;
|
|
165
|
+
};
|
|
166
|
+
}, unknown>;
|
|
167
|
+
/**
|
|
168
|
+
* Delete Category
|
|
169
|
+
* Delete a category.
|
|
170
|
+
|
|
171
|
+
Household members can delete categories in their household.
|
|
172
|
+
Cannot delete categories with associated transactions or subcategories.
|
|
173
|
+
*/
|
|
174
|
+
export declare function useDeleteCategory(options?: UseMutationOptions<any, any, {
|
|
175
|
+
pathParams: {
|
|
176
|
+
category_id: string;
|
|
177
|
+
};
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
pathParams: {
|
|
182
|
+
category_id: string;
|
|
183
|
+
};
|
|
184
|
+
}, unknown>;
|
|
185
|
+
/**
|
|
186
|
+
* Create Subcategory
|
|
187
|
+
* Create a new subcategory under a category.
|
|
188
|
+
|
|
189
|
+
Household members can create subcategories for their household categories.
|
|
190
|
+
*/
|
|
191
|
+
export declare function useCreateCategorySubcategory(options?: UseMutationOptions<any, any, {
|
|
192
|
+
pathParams: {
|
|
193
|
+
category_id: string;
|
|
194
|
+
};
|
|
195
|
+
[key: string]: any;
|
|
196
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
197
|
+
[key: string]: any;
|
|
198
|
+
pathParams: {
|
|
199
|
+
category_id: string;
|
|
200
|
+
};
|
|
201
|
+
}, unknown>;
|
|
202
|
+
/**
|
|
203
|
+
* Update Subcategory
|
|
204
|
+
* Update subcategory information.
|
|
205
|
+
|
|
206
|
+
Household members can update subcategories in their household.
|
|
207
|
+
*/
|
|
208
|
+
export declare function useSetCategorySubcategories(options?: UseMutationOptions<any, any, {
|
|
209
|
+
pathParams: {
|
|
210
|
+
subcategory_id: string;
|
|
211
|
+
};
|
|
212
|
+
[key: string]: any;
|
|
213
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
pathParams: {
|
|
216
|
+
subcategory_id: string;
|
|
217
|
+
};
|
|
218
|
+
}, unknown>;
|
|
219
|
+
/**
|
|
220
|
+
* Delete Subcategory
|
|
221
|
+
* Delete a subcategory.
|
|
222
|
+
|
|
223
|
+
Household members can delete subcategories in their household.
|
|
224
|
+
Cannot delete subcategories with associated transactions.
|
|
225
|
+
*/
|
|
226
|
+
export declare function useRemoveCategorySubcategories(options?: UseMutationOptions<any, any, {
|
|
227
|
+
pathParams: {
|
|
228
|
+
subcategory_id: string;
|
|
229
|
+
};
|
|
230
|
+
[key: string]: any;
|
|
231
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
pathParams: {
|
|
234
|
+
subcategory_id: string;
|
|
235
|
+
};
|
|
236
|
+
}, unknown>;
|
|
237
|
+
/**
|
|
238
|
+
* Create Transaction
|
|
239
|
+
* Create a new transaction.
|
|
240
|
+
|
|
241
|
+
Users can only create transactions on accounts they have access to.
|
|
242
|
+
The budget ownership system will automatically determine if settlement is needed.
|
|
243
|
+
*/
|
|
244
|
+
export declare function useCreateTransaction(options?: UseMutationOptions<any, any, {
|
|
245
|
+
[key: string]: any;
|
|
246
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
247
|
+
[key: string]: any;
|
|
248
|
+
}, unknown>;
|
|
249
|
+
/**
|
|
250
|
+
* Update Transaction
|
|
251
|
+
* Update transaction information.
|
|
252
|
+
|
|
253
|
+
Users can only update transactions from accounts they have access to.
|
|
254
|
+
Budget ownership changes will automatically recalculate settlement needs.
|
|
255
|
+
*/
|
|
256
|
+
export declare function useUpdateTransaction(options?: UseMutationOptions<any, any, {
|
|
257
|
+
pathParams: {
|
|
258
|
+
transaction_id: string;
|
|
259
|
+
};
|
|
260
|
+
[key: string]: any;
|
|
261
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
262
|
+
[key: string]: any;
|
|
263
|
+
pathParams: {
|
|
264
|
+
transaction_id: string;
|
|
265
|
+
};
|
|
266
|
+
}, unknown>;
|
|
267
|
+
/**
|
|
268
|
+
* Delete Transaction
|
|
269
|
+
* Delete a transaction.
|
|
270
|
+
|
|
271
|
+
Users can only delete transactions from accounts they have access to.
|
|
272
|
+
*/
|
|
273
|
+
export declare function useDeleteTransaction(options?: UseMutationOptions<any, any, {
|
|
274
|
+
pathParams: {
|
|
275
|
+
transaction_id: string;
|
|
276
|
+
};
|
|
277
|
+
[key: string]: any;
|
|
278
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
279
|
+
[key: string]: any;
|
|
280
|
+
pathParams: {
|
|
281
|
+
transaction_id: string;
|
|
282
|
+
};
|
|
283
|
+
}, unknown>;
|
|
284
|
+
/**
|
|
285
|
+
* Reassign Transaction Budget
|
|
286
|
+
* Reassign a transaction's budget ownership.
|
|
287
|
+
|
|
288
|
+
This is the core feature that allows changing PERSONAL ↔ SHARED budget ownership
|
|
289
|
+
after a transaction is created. Settlement needs will be automatically recalculated.
|
|
290
|
+
*/
|
|
291
|
+
export declare function useReassignTransactionBudget(options?: UseMutationOptions<any, any, {
|
|
292
|
+
pathParams: {
|
|
293
|
+
transaction_id: string;
|
|
294
|
+
};
|
|
295
|
+
[key: string]: any;
|
|
296
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
297
|
+
[key: string]: any;
|
|
298
|
+
pathParams: {
|
|
299
|
+
transaction_id: string;
|
|
300
|
+
};
|
|
301
|
+
}, unknown>;
|
|
302
|
+
/**
|
|
303
|
+
* Create Budget
|
|
304
|
+
* Create a new budget.
|
|
305
|
+
|
|
306
|
+
Users can create personal budgets for themselves.
|
|
307
|
+
Household admins can create shared budgets and personal budgets for others.
|
|
308
|
+
*/
|
|
309
|
+
export declare function useCreateBudget(options?: UseMutationOptions<any, any, {
|
|
310
|
+
[key: string]: any;
|
|
311
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
312
|
+
[key: string]: any;
|
|
313
|
+
}, unknown>;
|
|
314
|
+
/**
|
|
315
|
+
* Update Budget
|
|
316
|
+
* Update budget information.
|
|
317
|
+
|
|
318
|
+
Users can update their own personal budgets.
|
|
319
|
+
Household admins can update any household budget.
|
|
320
|
+
*/
|
|
321
|
+
export declare function useUpdateBudget(options?: UseMutationOptions<any, any, {
|
|
322
|
+
pathParams: {
|
|
323
|
+
budget_id: string;
|
|
324
|
+
};
|
|
325
|
+
[key: string]: any;
|
|
326
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
327
|
+
[key: string]: any;
|
|
328
|
+
pathParams: {
|
|
329
|
+
budget_id: string;
|
|
330
|
+
};
|
|
331
|
+
}, unknown>;
|
|
332
|
+
/**
|
|
333
|
+
* Delete Budget
|
|
334
|
+
* Delete a budget.
|
|
335
|
+
|
|
336
|
+
Users can delete their own personal budgets.
|
|
337
|
+
Household admins can delete any household budget.
|
|
338
|
+
*/
|
|
339
|
+
export declare function useDeleteBudget(options?: UseMutationOptions<any, any, {
|
|
340
|
+
pathParams: {
|
|
341
|
+
budget_id: string;
|
|
342
|
+
};
|
|
343
|
+
[key: string]: any;
|
|
344
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
345
|
+
[key: string]: any;
|
|
346
|
+
pathParams: {
|
|
347
|
+
budget_id: string;
|
|
348
|
+
};
|
|
349
|
+
}, unknown>;
|
|
350
|
+
/**
|
|
351
|
+
* Create Settlement
|
|
352
|
+
* Create a new settlement.
|
|
353
|
+
|
|
354
|
+
Only household members can create settlements within their household.
|
|
355
|
+
*/
|
|
356
|
+
export declare function useCreateSettlement(options?: UseMutationOptions<any, any, {
|
|
357
|
+
[key: string]: any;
|
|
358
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
359
|
+
[key: string]: any;
|
|
360
|
+
}, unknown>;
|
|
361
|
+
/**
|
|
362
|
+
* Update Settlement
|
|
363
|
+
* Update settlement information.
|
|
364
|
+
|
|
365
|
+
Only involved users or household admins can update settlements.
|
|
366
|
+
Can only update pending settlements.
|
|
367
|
+
*/
|
|
368
|
+
export declare function useUpdateSettlement(options?: UseMutationOptions<any, any, {
|
|
369
|
+
pathParams: {
|
|
370
|
+
settlement_id: string;
|
|
371
|
+
};
|
|
372
|
+
[key: string]: any;
|
|
373
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
374
|
+
[key: string]: any;
|
|
375
|
+
pathParams: {
|
|
376
|
+
settlement_id: string;
|
|
377
|
+
};
|
|
378
|
+
}, unknown>;
|
|
379
|
+
/**
|
|
380
|
+
* Delete Settlement
|
|
381
|
+
* Delete a settlement.
|
|
382
|
+
|
|
383
|
+
Only involved users or household admins can delete settlements.
|
|
384
|
+
Can only delete pending settlements.
|
|
385
|
+
*/
|
|
386
|
+
export declare function useDeleteSettlement(options?: UseMutationOptions<any, any, {
|
|
387
|
+
pathParams: {
|
|
388
|
+
settlement_id: string;
|
|
389
|
+
};
|
|
390
|
+
[key: string]: any;
|
|
391
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
392
|
+
[key: string]: any;
|
|
393
|
+
pathParams: {
|
|
394
|
+
settlement_id: string;
|
|
395
|
+
};
|
|
396
|
+
}, unknown>;
|
|
397
|
+
/**
|
|
398
|
+
* Complete Settlement
|
|
399
|
+
* Mark a settlement as completed.
|
|
400
|
+
|
|
401
|
+
Only the payer can mark a settlement as completed.
|
|
402
|
+
*/
|
|
403
|
+
export declare function useCreateSettlementComplete(options?: UseMutationOptions<any, any, {
|
|
404
|
+
pathParams: {
|
|
405
|
+
settlement_id: string;
|
|
406
|
+
};
|
|
407
|
+
[key: string]: any;
|
|
408
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
409
|
+
[key: string]: any;
|
|
410
|
+
pathParams: {
|
|
411
|
+
settlement_id: string;
|
|
412
|
+
};
|
|
413
|
+
}, unknown>;
|
|
414
|
+
/**
|
|
415
|
+
* Cancel Settlement
|
|
416
|
+
* Cancel a settlement.
|
|
417
|
+
|
|
418
|
+
Only involved users or household admins can cancel settlements.
|
|
419
|
+
*/
|
|
420
|
+
export declare function useCreateSettlementCancel(options?: UseMutationOptions<any, any, {
|
|
421
|
+
pathParams: {
|
|
422
|
+
settlement_id: string;
|
|
423
|
+
};
|
|
424
|
+
[key: string]: any;
|
|
425
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
426
|
+
[key: string]: any;
|
|
427
|
+
pathParams: {
|
|
428
|
+
settlement_id: string;
|
|
429
|
+
};
|
|
430
|
+
}, unknown>;
|
|
431
|
+
/**
|
|
432
|
+
* Add Settlement Item
|
|
433
|
+
* Add an item to a settlement.
|
|
434
|
+
|
|
435
|
+
Only involved users or household admins can add items.
|
|
436
|
+
Can only add items to pending settlements.
|
|
437
|
+
*/
|
|
438
|
+
export declare function useCreateSettlementItem(options?: UseMutationOptions<any, any, {
|
|
439
|
+
pathParams: {
|
|
440
|
+
settlement_id: string;
|
|
441
|
+
};
|
|
442
|
+
[key: string]: any;
|
|
443
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
444
|
+
[key: string]: any;
|
|
445
|
+
pathParams: {
|
|
446
|
+
settlement_id: string;
|
|
447
|
+
};
|
|
448
|
+
}, unknown>;
|
|
449
|
+
/**
|
|
450
|
+
* Create Household
|
|
451
|
+
* Create a new household.
|
|
452
|
+
|
|
453
|
+
Any authenticated user can create a household and becomes the owner.
|
|
454
|
+
*/
|
|
455
|
+
export declare function useCreateHousehold(options?: UseMutationOptions<any, any, {
|
|
456
|
+
[key: string]: any;
|
|
457
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
458
|
+
[key: string]: any;
|
|
459
|
+
}, unknown>;
|
|
460
|
+
/**
|
|
461
|
+
* Update Household
|
|
462
|
+
* Update household information.
|
|
463
|
+
|
|
464
|
+
Only household owners and admins can update household information.
|
|
465
|
+
*/
|
|
466
|
+
export declare function useUpdateHousehold(options?: UseMutationOptions<any, any, {
|
|
467
|
+
pathParams: {
|
|
468
|
+
household_id: string;
|
|
469
|
+
};
|
|
470
|
+
[key: string]: any;
|
|
471
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
472
|
+
[key: string]: any;
|
|
473
|
+
pathParams: {
|
|
474
|
+
household_id: string;
|
|
475
|
+
};
|
|
476
|
+
}, unknown>;
|
|
477
|
+
/**
|
|
478
|
+
* Delete Household
|
|
479
|
+
* Delete a household.
|
|
480
|
+
|
|
481
|
+
Only household owners and admins can delete households.
|
|
482
|
+
This will remove all associated data (accounts, transactions, etc.).
|
|
483
|
+
*/
|
|
484
|
+
export declare function useDeleteHousehold(options?: UseMutationOptions<any, any, {
|
|
485
|
+
pathParams: {
|
|
486
|
+
household_id: string;
|
|
487
|
+
};
|
|
488
|
+
[key: string]: any;
|
|
489
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
490
|
+
[key: string]: any;
|
|
491
|
+
pathParams: {
|
|
492
|
+
household_id: string;
|
|
493
|
+
};
|
|
494
|
+
}, unknown>;
|
|
495
|
+
/**
|
|
496
|
+
* Add Household Member
|
|
497
|
+
* Add a member to a household.
|
|
498
|
+
|
|
499
|
+
Only household owners and admins can add members.
|
|
500
|
+
*/
|
|
501
|
+
export declare function useCreateHouseholdMember(options?: UseMutationOptions<any, any, {
|
|
502
|
+
pathParams: {
|
|
503
|
+
household_id: string;
|
|
504
|
+
};
|
|
505
|
+
[key: string]: any;
|
|
506
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
507
|
+
[key: string]: any;
|
|
508
|
+
pathParams: {
|
|
509
|
+
household_id: string;
|
|
510
|
+
};
|
|
511
|
+
}, unknown>;
|
|
512
|
+
/**
|
|
513
|
+
* Update Household Member
|
|
514
|
+
* Update a household member's role or status.
|
|
515
|
+
|
|
516
|
+
Only household owners and admins can update member information.
|
|
517
|
+
*/
|
|
518
|
+
export declare function useSetHouseholdMembers(options?: UseMutationOptions<any, any, {
|
|
519
|
+
pathParams: {
|
|
520
|
+
household_id: string;
|
|
521
|
+
user_id: string;
|
|
522
|
+
};
|
|
523
|
+
[key: string]: any;
|
|
524
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
525
|
+
[key: string]: any;
|
|
526
|
+
pathParams: {
|
|
527
|
+
household_id: string;
|
|
528
|
+
user_id: string;
|
|
529
|
+
};
|
|
530
|
+
}, unknown>;
|
|
531
|
+
/**
|
|
532
|
+
* Remove Household Member
|
|
533
|
+
* Remove a member from a household.
|
|
534
|
+
|
|
535
|
+
Only household owners and admins can remove members.
|
|
536
|
+
Cannot remove the household owner.
|
|
537
|
+
*/
|
|
538
|
+
export declare function useRemoveHouseholdMembers(options?: UseMutationOptions<any, any, {
|
|
539
|
+
pathParams: {
|
|
540
|
+
household_id: string;
|
|
541
|
+
user_id: string;
|
|
542
|
+
};
|
|
543
|
+
[key: string]: any;
|
|
544
|
+
}>): import("@tanstack/react-query").UseMutationResult<any, any, {
|
|
545
|
+
[key: string]: any;
|
|
546
|
+
pathParams: {
|
|
547
|
+
household_id: string;
|
|
548
|
+
user_id: string;
|
|
549
|
+
};
|
|
550
|
+
}, unknown>;
|
|
551
|
+
//# sourceMappingURL=mutations.d.ts.map
|