forlogic-core 1.15.2 → 1.15.4
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/dist/assets/index.d.ts +6 -0
- package/dist/auth/components/ProtectedRoute.d.ts +6 -0
- package/dist/auth/components/UserInfo.d.ts +10 -0
- package/dist/auth/contexts/AuthContext.d.ts +84 -0
- package/dist/auth/pages/CallbackPage.d.ts +1 -0
- package/dist/auth/pages/LoginPage.d.ts +2 -0
- package/dist/auth/services/AuthService.d.ts +40 -0
- package/dist/auth/services/SupabaseTokenService.d.ts +3 -0
- package/dist/auth/services/TokenManager.d.ts +51 -0
- package/dist/auth/services/TokenRegenerationService.d.ts +12 -0
- package/dist/auth/services/TokenService.d.ts +42 -0
- package/dist/auth/utils/AuthUtils.d.ts +4 -0
- package/dist/auth/utils/ErrorInterceptor.d.ts +15 -0
- package/dist/components/ErrorBoundary.d.ts +19 -0
- package/dist/components/layout/AppHeader.d.ts +63 -0
- package/dist/components/layout/AppLayout.d.ts +10 -0
- package/dist/components/layout/AppSidebar.d.ts +10 -0
- package/dist/components/layout/BodyContent.d.ts +60 -0
- package/dist/components/layout/SidebarActionTrigger.d.ts +34 -0
- package/dist/components/layout/SidebarHeader.d.ts +5 -0
- package/dist/components/layout/sidebar-utils.d.ts +12 -0
- package/dist/components/modules/ModuleGrid.d.ts +9 -0
- package/dist/components/modules/ModulesDialog.d.ts +3 -0
- package/dist/components/modules/icons/ModulesCardIcons.d.ts +19 -0
- package/dist/components/modules/index.d.ts +4 -0
- package/dist/components/modules/modulesData.d.ts +6 -0
- package/dist/components/modules/types.d.ts +35 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/action-button.d.ts +43 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/ui/button-group.d.ts +9 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/chart.d.ts +62 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/color-picker.d.ts +8 -0
- package/dist/components/ui/combobox.d.ts +33 -0
- package/dist/components/ui/command.d.ts +23 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/data-list.d.ts +86 -0
- package/dist/components/ui/date-picker.d.ts +9 -0
- package/dist/components/ui/dialog.d.ts +36 -0
- package/dist/components/ui/disabled-menu-item.d.ts +25 -0
- package/dist/components/ui/drawer.d.ts +22 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/empty-state.d.ts +79 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/grid.d.ts +53 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/icon-picker.d.ts +8 -0
- package/dist/components/ui/input-group.d.ts +97 -0
- package/dist/components/ui/input.d.ts +37 -0
- package/dist/components/ui/label.d.ts +23 -0
- package/dist/components/ui/loading-state.d.ts +52 -0
- package/dist/components/ui/menubar.d.ts +33 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/onboarding-dialog.d.ts +43 -0
- package/dist/components/ui/page-breadcrumb.d.ts +77 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/popover.d.ts +49 -0
- package/dist/components/ui/progress.d.ts +22 -0
- package/dist/components/ui/radio-group.d.ts +63 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/rich-text-editor.d.ts +45 -0
- package/dist/components/ui/scroll-area.d.ts +37 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +32 -0
- package/dist/components/ui/sidebar.d.ts +66 -0
- package/dist/components/ui/skeleton-variants.d.ts +16 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts +6 -0
- package/dist/components/ui/split-button.d.ts +70 -0
- package/dist/components/ui/stack.d.ts +12 -0
- package/dist/components/ui/step-selector.d.ts +39 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/tab-page-layout.d.ts +19 -0
- package/dist/components/ui/table-resize-handle.d.ts +15 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/truncated-cell.d.ts +7 -0
- package/dist/components/ui/typography.d.ts +16 -0
- package/dist/config/index.d.ts +53 -0
- package/dist/contexts/LocaleContext.d.ts +15 -0
- package/dist/contexts/ModalStateContext.d.ts +57 -0
- package/dist/contexts/NavigationContext.d.ts +13 -0
- package/dist/contexts/PageMetadataContext.d.ts +43 -0
- package/dist/crud/components/ActionMenuItems.d.ts +17 -0
- package/dist/crud/components/BaseForm.d.ts +6 -0
- package/dist/crud/components/ContextMenu.d.ts +21 -0
- package/dist/crud/components/CrudActionBar.d.ts +38 -0
- package/dist/crud/components/CrudGrid.d.ts +43 -0
- package/dist/crud/components/CrudPagination.d.ts +12 -0
- package/dist/crud/components/CrudTable.d.ts +41 -0
- package/dist/crud/components/FilterBar.d.ts +136 -0
- package/dist/crud/components/TableFooter.d.ts +14 -0
- package/dist/crud/components/TableRowActions.d.ts +14 -0
- package/dist/crud/createCrudPage.d.ts +99 -0
- package/dist/crud/createSimpleService.d.ts +85 -0
- package/dist/crud/generateCrudConfig.d.ts +73 -0
- package/dist/crud/hooks/useBaseForm.d.ts +8 -0
- package/dist/crud/hooks/useCrud.d.ts +117 -0
- package/dist/crud/primitives/ActionMenu.d.ts +28 -0
- package/dist/crud/primitives/FilterBar.d.ts +24 -0
- package/dist/crud/primitives/Pagination.d.ts +24 -0
- package/dist/crud/primitives/Table.d.ts +26 -0
- package/dist/crud/primitives/index.d.ts +11 -0
- package/dist/crud/primitives/types.d.ts +76 -0
- package/dist/crud/utils/routingHelpers.d.ts +30 -0
- package/dist/exports/crud.d.ts +21 -0
- package/dist/exports/integrations.d.ts +13 -0
- package/dist/exports/ui.d.ts +73 -0
- package/dist/hooks/useActiveModules.d.ts +45 -0
- package/dist/hooks/useColumnResize.d.ts +21 -0
- package/dist/hooks/useDebounce.d.ts +56 -0
- package/dist/hooks/useI18nFormatters.d.ts +40 -0
- package/dist/hooks/usePageTitle.d.ts +4 -0
- package/dist/hooks/usePermissionQuery.d.ts +49 -0
- package/dist/hooks/useRowResize.d.ts +19 -0
- package/dist/hooks/useSidebarResize.d.ts +19 -0
- package/dist/hooks/useWizard.d.ts +40 -0
- package/dist/i18n/DatabaseBackend.d.ts +9 -0
- package/dist/i18n/components/TranslationLoader.d.ts +10 -0
- package/dist/i18n/config.d.ts +2 -0
- package/dist/i18n/constants.d.ts +126 -0
- package/dist/i18n/index.d.ts +21 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/leadership/components/LeaderRow.d.ts +9 -0
- package/dist/leadership/components/LeadershipDialog.d.ts +10 -0
- package/dist/leadership/components/LeadershipForm.d.ts +8 -0
- package/dist/leadership/components/LeadershipPage.d.ts +1 -0
- package/dist/leadership/hooks/useLeadershipApi.d.ts +2 -0
- package/dist/leadership/hooks/useLeadershipMutations.d.ts +30 -0
- package/dist/leadership/index.d.ts +14 -0
- package/dist/leadership/types.d.ts +17 -0
- package/dist/leadership/utils/leadershipUtils.d.ts +8 -0
- package/dist/media/components/ImageEditor.d.ts +22 -0
- package/dist/media/components/ImageRenderer.d.ts +23 -0
- package/dist/media/components/VideoEditor.d.ts +22 -0
- package/dist/media/components/VideoRenderer.d.ts +8 -0
- package/dist/media/hooks/useMediaUpload.d.ts +20 -0
- package/dist/media/index.d.ts +49 -0
- package/dist/media/types.d.ts +66 -0
- package/dist/media/utils/imageHelpers.d.ts +28 -0
- package/dist/media/utils/videoHelpers.d.ts +35 -0
- package/dist/places/components/ManageAccessModal.d.ts +11 -0
- package/dist/places/components/PlaceCard.d.ts +12 -0
- package/dist/places/components/PlacesList.d.ts +12 -0
- package/dist/places/index.d.ts +8 -0
- package/dist/places/services/PlaceService.d.ts +9 -0
- package/dist/places/types.d.ts +10 -0
- package/dist/providers/CoreProviders.d.ts +66 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/qualiex/components/QualiexUserField.d.ts +125 -0
- package/dist/qualiex/hooks/useQualiexUsers.d.ts +51 -0
- package/dist/qualiex/services/qualiexApi.d.ts +21 -0
- package/dist/qualiex/utils/QualiexErrorInterceptor.d.ts +15 -0
- package/dist/qualiex/utils/userPlaceUtils.d.ts +16 -0
- package/dist/services/BaseService.d.ts +51 -0
- package/dist/services/EmailService.d.ts +110 -0
- package/dist/services/ErrorService.d.ts +19 -0
- package/dist/services/QualiexEnrichmentService.d.ts +65 -0
- package/dist/services/QualiexFieldHelpers.d.ts +17 -0
- package/dist/services/TranslationService.d.ts +20 -0
- package/dist/setup.d.ts +14 -0
- package/dist/sign/components/D4SignWidget.d.ts +2 -0
- package/dist/sign/components/DocumentSigner.d.ts +2 -0
- package/dist/sign/components/SignConfigForm.d.ts +2 -0
- package/dist/sign/components/SignWidget.d.ts +21 -0
- package/dist/sign/hooks/useSignConfig.d.ts +6 -0
- package/dist/sign/index.d.ts +7 -0
- package/dist/sign/services/signService.d.ts +23 -0
- package/dist/sign/types.d.ts +53 -0
- package/dist/supabase/SupabaseSingleton.d.ts +3 -0
- package/dist/supabase/client.d.ts +2 -0
- package/dist/supabase/publicClient.d.ts +2 -0
- package/dist/supabase/types.d.ts +377 -0
- package/dist/types/sidebar.d.ts +49 -0
- package/dist/types.d.ts +499 -0
- package/dist/utils/formatters/currencyFormatters.d.ts +1 -0
- package/dist/utils/formatters/dateFormatters.d.ts +52 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/linkHelpers.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
export type Json = string | number | boolean | null | {
|
|
2
|
+
[key: string]: Json | undefined;
|
|
3
|
+
} | Json[];
|
|
4
|
+
export type Database = {
|
|
5
|
+
__InternalSupabase: {
|
|
6
|
+
PostgrestVersion: "12.2.3 (519615d)";
|
|
7
|
+
};
|
|
8
|
+
central: {
|
|
9
|
+
Tables: {
|
|
10
|
+
employees: {
|
|
11
|
+
Row: {
|
|
12
|
+
id: string;
|
|
13
|
+
alias: string;
|
|
14
|
+
name: string;
|
|
15
|
+
email: string;
|
|
16
|
+
id_qualiex_user: string | null;
|
|
17
|
+
cpf: string | null;
|
|
18
|
+
phone: string | null;
|
|
19
|
+
admission_date: string | null;
|
|
20
|
+
birth_date: string | null;
|
|
21
|
+
id_leader: string | null;
|
|
22
|
+
is_removed: boolean;
|
|
23
|
+
is_active: boolean;
|
|
24
|
+
created_at: string;
|
|
25
|
+
updated_at: string;
|
|
26
|
+
};
|
|
27
|
+
Insert: {
|
|
28
|
+
id?: string;
|
|
29
|
+
alias: string;
|
|
30
|
+
name: string;
|
|
31
|
+
email: string;
|
|
32
|
+
id_qualiex_user?: string | null;
|
|
33
|
+
cpf?: string | null;
|
|
34
|
+
phone?: string | null;
|
|
35
|
+
admission_date?: string | null;
|
|
36
|
+
birth_date?: string | null;
|
|
37
|
+
id_leader?: string | null;
|
|
38
|
+
is_removed?: boolean;
|
|
39
|
+
is_active?: boolean;
|
|
40
|
+
created_at?: string;
|
|
41
|
+
updated_at?: string;
|
|
42
|
+
};
|
|
43
|
+
Update: {
|
|
44
|
+
id?: string;
|
|
45
|
+
alias?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
id_qualiex_user?: string | null;
|
|
49
|
+
cpf?: string | null;
|
|
50
|
+
phone?: string | null;
|
|
51
|
+
admission_date?: string | null;
|
|
52
|
+
birth_date?: string | null;
|
|
53
|
+
id_leader?: string | null;
|
|
54
|
+
is_removed?: boolean;
|
|
55
|
+
is_active?: boolean;
|
|
56
|
+
created_at?: string;
|
|
57
|
+
updated_at?: string;
|
|
58
|
+
};
|
|
59
|
+
Relationships: [];
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
Views: {};
|
|
63
|
+
Functions: {
|
|
64
|
+
execute_raw_sql: {
|
|
65
|
+
Args: {
|
|
66
|
+
params?: string[];
|
|
67
|
+
query: string;
|
|
68
|
+
};
|
|
69
|
+
Returns: Json;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
Enums: {};
|
|
73
|
+
CompositeTypes: {};
|
|
74
|
+
};
|
|
75
|
+
common: {
|
|
76
|
+
Tables: {
|
|
77
|
+
employees: {
|
|
78
|
+
Row: {
|
|
79
|
+
id: string;
|
|
80
|
+
alias: string;
|
|
81
|
+
name: string;
|
|
82
|
+
email: string;
|
|
83
|
+
id_qualiex_user: string | null;
|
|
84
|
+
cpf: string | null;
|
|
85
|
+
phone: string | null;
|
|
86
|
+
admission_date: string | null;
|
|
87
|
+
birth_date: string | null;
|
|
88
|
+
id_leader: string | null;
|
|
89
|
+
is_removed: boolean;
|
|
90
|
+
is_active: boolean;
|
|
91
|
+
created_at: string;
|
|
92
|
+
updated_at: string;
|
|
93
|
+
};
|
|
94
|
+
Insert: {
|
|
95
|
+
id?: string;
|
|
96
|
+
alias: string;
|
|
97
|
+
name: string;
|
|
98
|
+
email: string;
|
|
99
|
+
id_qualiex_user?: string | null;
|
|
100
|
+
cpf?: string | null;
|
|
101
|
+
phone?: string | null;
|
|
102
|
+
admission_date?: string | null;
|
|
103
|
+
birth_date?: string | null;
|
|
104
|
+
id_leader?: string | null;
|
|
105
|
+
is_removed?: boolean;
|
|
106
|
+
is_active?: boolean;
|
|
107
|
+
created_at?: string;
|
|
108
|
+
updated_at?: string;
|
|
109
|
+
};
|
|
110
|
+
Update: {
|
|
111
|
+
id?: string;
|
|
112
|
+
alias?: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
email?: string;
|
|
115
|
+
id_qualiex_user?: string | null;
|
|
116
|
+
cpf?: string | null;
|
|
117
|
+
phone?: string | null;
|
|
118
|
+
admission_date?: string | null;
|
|
119
|
+
birth_date?: string | null;
|
|
120
|
+
id_leader?: string | null;
|
|
121
|
+
is_removed?: boolean;
|
|
122
|
+
is_active?: boolean;
|
|
123
|
+
created_at?: string;
|
|
124
|
+
updated_at?: string;
|
|
125
|
+
};
|
|
126
|
+
Relationships: [];
|
|
127
|
+
};
|
|
128
|
+
additional_fields: {
|
|
129
|
+
Row: {
|
|
130
|
+
id: string;
|
|
131
|
+
title: string;
|
|
132
|
+
field_type: 'date' | 'boolean' | 'text' | 'list';
|
|
133
|
+
list_values: string[] | null;
|
|
134
|
+
alias: string;
|
|
135
|
+
display_order: number | null;
|
|
136
|
+
layout_width: 'full' | 'half' | null;
|
|
137
|
+
is_removed: boolean;
|
|
138
|
+
created_at: string;
|
|
139
|
+
updated_at: string;
|
|
140
|
+
};
|
|
141
|
+
Insert: {
|
|
142
|
+
id?: string;
|
|
143
|
+
title: string;
|
|
144
|
+
field_type: 'date' | 'boolean' | 'text' | 'list';
|
|
145
|
+
list_values?: string[] | null;
|
|
146
|
+
alias: string;
|
|
147
|
+
display_order?: number | null;
|
|
148
|
+
layout_width?: 'full' | 'half' | null;
|
|
149
|
+
is_removed?: boolean;
|
|
150
|
+
created_at?: string;
|
|
151
|
+
updated_at?: string;
|
|
152
|
+
};
|
|
153
|
+
Update: {
|
|
154
|
+
id?: string;
|
|
155
|
+
title?: string;
|
|
156
|
+
field_type?: 'date' | 'boolean' | 'text' | 'list';
|
|
157
|
+
list_values?: string[] | null;
|
|
158
|
+
alias?: string;
|
|
159
|
+
display_order?: number | null;
|
|
160
|
+
layout_width?: 'full' | 'half' | null;
|
|
161
|
+
is_removed?: boolean;
|
|
162
|
+
created_at?: string;
|
|
163
|
+
updated_at?: string;
|
|
164
|
+
};
|
|
165
|
+
Relationships: [];
|
|
166
|
+
};
|
|
167
|
+
employee_additional_field_values: {
|
|
168
|
+
Row: {
|
|
169
|
+
id: string;
|
|
170
|
+
employee_id: string;
|
|
171
|
+
field_id: string;
|
|
172
|
+
value: string;
|
|
173
|
+
created_at: string;
|
|
174
|
+
updated_at: string;
|
|
175
|
+
};
|
|
176
|
+
Insert: {
|
|
177
|
+
id?: string;
|
|
178
|
+
employee_id: string;
|
|
179
|
+
field_id: string;
|
|
180
|
+
value: string;
|
|
181
|
+
created_at?: string;
|
|
182
|
+
updated_at?: string;
|
|
183
|
+
};
|
|
184
|
+
Update: {
|
|
185
|
+
id?: string;
|
|
186
|
+
employee_id?: string;
|
|
187
|
+
field_id?: string;
|
|
188
|
+
value?: string;
|
|
189
|
+
created_at?: string;
|
|
190
|
+
updated_at?: string;
|
|
191
|
+
};
|
|
192
|
+
Relationships: [
|
|
193
|
+
{
|
|
194
|
+
foreignKeyName: "employee_additional_field_values_employee_id_fkey";
|
|
195
|
+
columns: ["employee_id"];
|
|
196
|
+
isOneToOne: false;
|
|
197
|
+
referencedRelation: "employees";
|
|
198
|
+
referencedColumns: ["id"];
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
foreignKeyName: "employee_additional_field_values_field_id_fkey";
|
|
202
|
+
columns: ["field_id"];
|
|
203
|
+
isOneToOne: false;
|
|
204
|
+
referencedRelation: "additional_fields";
|
|
205
|
+
referencedColumns: ["id"];
|
|
206
|
+
}
|
|
207
|
+
];
|
|
208
|
+
};
|
|
209
|
+
leaders: {
|
|
210
|
+
Row: {
|
|
211
|
+
id: string;
|
|
212
|
+
alias: string;
|
|
213
|
+
name: string;
|
|
214
|
+
email: string;
|
|
215
|
+
id_qualiex_user: string | null;
|
|
216
|
+
cpf: string | null;
|
|
217
|
+
phone: string | null;
|
|
218
|
+
admission_date: string | null;
|
|
219
|
+
birth_date: string | null;
|
|
220
|
+
id_leader: string | null;
|
|
221
|
+
is_removed: boolean;
|
|
222
|
+
is_active: boolean;
|
|
223
|
+
created_at: string;
|
|
224
|
+
updated_at: string;
|
|
225
|
+
};
|
|
226
|
+
Insert: {
|
|
227
|
+
id?: string;
|
|
228
|
+
alias: string;
|
|
229
|
+
name: string;
|
|
230
|
+
email: string;
|
|
231
|
+
id_qualiex_user?: string | null;
|
|
232
|
+
cpf?: string | null;
|
|
233
|
+
phone?: string | null;
|
|
234
|
+
admission_date?: string | null;
|
|
235
|
+
birth_date?: string | null;
|
|
236
|
+
id_leader?: string | null;
|
|
237
|
+
is_removed?: boolean;
|
|
238
|
+
is_active?: boolean;
|
|
239
|
+
created_at?: string;
|
|
240
|
+
updated_at?: string;
|
|
241
|
+
};
|
|
242
|
+
Update: {
|
|
243
|
+
id?: string;
|
|
244
|
+
alias?: string;
|
|
245
|
+
name?: string;
|
|
246
|
+
email?: string;
|
|
247
|
+
id_qualiex_user?: string | null;
|
|
248
|
+
cpf?: string | null;
|
|
249
|
+
phone?: string | null;
|
|
250
|
+
admission_date?: string | null;
|
|
251
|
+
birth_date?: string | null;
|
|
252
|
+
id_leader?: string | null;
|
|
253
|
+
is_removed?: boolean;
|
|
254
|
+
is_active?: boolean;
|
|
255
|
+
created_at?: string;
|
|
256
|
+
updated_at?: string;
|
|
257
|
+
};
|
|
258
|
+
Relationships: [];
|
|
259
|
+
};
|
|
260
|
+
user_roles: {
|
|
261
|
+
Row: {
|
|
262
|
+
id: string;
|
|
263
|
+
user_id_uuid: string;
|
|
264
|
+
role: string;
|
|
265
|
+
alias: string;
|
|
266
|
+
created_at: string;
|
|
267
|
+
updated_at: string;
|
|
268
|
+
};
|
|
269
|
+
Insert: {
|
|
270
|
+
id?: string;
|
|
271
|
+
user_id_uuid: string;
|
|
272
|
+
role: string;
|
|
273
|
+
alias: string;
|
|
274
|
+
created_at?: string;
|
|
275
|
+
updated_at?: string;
|
|
276
|
+
};
|
|
277
|
+
Update: {
|
|
278
|
+
id?: string;
|
|
279
|
+
user_id_uuid?: string;
|
|
280
|
+
role?: string;
|
|
281
|
+
alias?: string;
|
|
282
|
+
created_at?: string;
|
|
283
|
+
updated_at?: string;
|
|
284
|
+
};
|
|
285
|
+
Relationships: [];
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
Views: {};
|
|
289
|
+
Functions: {
|
|
290
|
+
execute_raw_sql: {
|
|
291
|
+
Args: {
|
|
292
|
+
params?: string[];
|
|
293
|
+
query: string;
|
|
294
|
+
};
|
|
295
|
+
Returns: Json;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
Enums: {};
|
|
299
|
+
CompositeTypes: {};
|
|
300
|
+
};
|
|
301
|
+
public: {
|
|
302
|
+
Tables: {};
|
|
303
|
+
Views: {};
|
|
304
|
+
Functions: {
|
|
305
|
+
execute_raw_sql: {
|
|
306
|
+
Args: {
|
|
307
|
+
params?: string[];
|
|
308
|
+
query: string;
|
|
309
|
+
};
|
|
310
|
+
Returns: Json;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
Enums: {};
|
|
314
|
+
CompositeTypes: {};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
318
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
319
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
320
|
+
schema: keyof DatabaseWithoutInternals;
|
|
321
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
322
|
+
schema: keyof DatabaseWithoutInternals;
|
|
323
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
324
|
+
schema: keyof DatabaseWithoutInternals;
|
|
325
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
326
|
+
Row: infer R;
|
|
327
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
328
|
+
Row: infer R;
|
|
329
|
+
} ? R : never : never;
|
|
330
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
331
|
+
schema: keyof DatabaseWithoutInternals;
|
|
332
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
333
|
+
schema: keyof DatabaseWithoutInternals;
|
|
334
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
335
|
+
schema: keyof DatabaseWithoutInternals;
|
|
336
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
337
|
+
Insert: infer I;
|
|
338
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
339
|
+
Insert: infer I;
|
|
340
|
+
} ? I : never : never;
|
|
341
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
342
|
+
schema: keyof DatabaseWithoutInternals;
|
|
343
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
344
|
+
schema: keyof DatabaseWithoutInternals;
|
|
345
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
346
|
+
schema: keyof DatabaseWithoutInternals;
|
|
347
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
348
|
+
Update: infer U;
|
|
349
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
350
|
+
Update: infer U;
|
|
351
|
+
} ? U : never : never;
|
|
352
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
353
|
+
schema: keyof DatabaseWithoutInternals;
|
|
354
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
355
|
+
schema: keyof DatabaseWithoutInternals;
|
|
356
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
357
|
+
schema: keyof DatabaseWithoutInternals;
|
|
358
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
359
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
360
|
+
schema: keyof DatabaseWithoutInternals;
|
|
361
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
362
|
+
schema: keyof DatabaseWithoutInternals;
|
|
363
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
364
|
+
schema: keyof DatabaseWithoutInternals;
|
|
365
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
366
|
+
export declare const Constants: {
|
|
367
|
+
readonly central: {
|
|
368
|
+
readonly Enums: {};
|
|
369
|
+
};
|
|
370
|
+
readonly common: {
|
|
371
|
+
readonly Enums: {};
|
|
372
|
+
};
|
|
373
|
+
readonly public: {
|
|
374
|
+
readonly Enums: {};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
/**
|
|
3
|
+
* Ação principal de módulo
|
|
4
|
+
*
|
|
5
|
+
* Representa uma ação que pode ser executada a partir do sidebar,
|
|
6
|
+
* não sendo um item de navegação, mas sim um gatilho de ação.
|
|
7
|
+
*/
|
|
8
|
+
export interface SidebarModuleAction {
|
|
9
|
+
/** Identificador único da ação */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Texto exibido no botão/dropdown */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Ícone opcional da ação */
|
|
14
|
+
icon?: LucideIcon;
|
|
15
|
+
/** Callback executado ao clicar */
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
/** Estado desabilitado */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Verificação de permissão opcional */
|
|
20
|
+
permissionCheck?: () => Promise<boolean>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Configuração de ações principais do módulo
|
|
24
|
+
*
|
|
25
|
+
* Quando o módulo possuir apenas uma ação: clique executa diretamente
|
|
26
|
+
* Quando o módulo possuir múltiplas ações: exibe dropdown
|
|
27
|
+
*/
|
|
28
|
+
export interface SidebarActionsConfig {
|
|
29
|
+
/** Rótulo do gatilho quando há múltiplas ações (padrão: 'Criar') */
|
|
30
|
+
triggerLabel?: string;
|
|
31
|
+
/** Ícone do gatilho (padrão: Plus) */
|
|
32
|
+
triggerIcon?: LucideIcon;
|
|
33
|
+
/** Lista de ações principais do módulo */
|
|
34
|
+
actions: SidebarModuleAction[];
|
|
35
|
+
}
|
|
36
|
+
export interface SidebarNavigationItem {
|
|
37
|
+
label: string;
|
|
38
|
+
path: string;
|
|
39
|
+
icon: LucideIcon;
|
|
40
|
+
complementaryText?: string;
|
|
41
|
+
permissionCheck?: () => Promise<boolean>;
|
|
42
|
+
children?: SidebarNavigationItem[];
|
|
43
|
+
}
|
|
44
|
+
export interface SidebarConfig {
|
|
45
|
+
appName?: string;
|
|
46
|
+
navigation?: SidebarNavigationItem[];
|
|
47
|
+
/** Ações principais do módulo (exibidas com destaque acima da navegação) */
|
|
48
|
+
moduleActions?: SidebarActionsConfig;
|
|
49
|
+
}
|