@jsudc/react 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +228 -2
- package/dist/calendar/CalendarRenderer.d.ts +11 -0
- package/dist/calendar/CalendarRenderer.js +343 -0
- package/dist/calendar/CalendarRenderer.js.map +1 -0
- package/dist/calendar/EventBlock.d.ts +16 -0
- package/dist/calendar/EventBlock.js +57 -0
- package/dist/calendar/EventBlock.js.map +1 -0
- package/dist/calendar/EventDetail.d.ts +20 -0
- package/dist/calendar/EventDetail.js +186 -0
- package/dist/calendar/EventDetail.js.map +1 -0
- package/dist/calendar/MonthGrid.d.ts +19 -0
- package/dist/calendar/MonthGrid.js +120 -0
- package/dist/calendar/MonthGrid.js.map +1 -0
- package/dist/calendar/TimeGrid.d.ts +24 -0
- package/dist/calendar/TimeGrid.js +330 -0
- package/dist/calendar/TimeGrid.js.map +1 -0
- package/dist/calendar/model.d.ts +97 -0
- package/dist/calendar/model.js +279 -0
- package/dist/calendar/model.js.map +1 -0
- package/dist/cards/CardRenderer.d.ts +24 -0
- package/dist/cards/CardRenderer.js +274 -0
- package/dist/cards/CardRenderer.js.map +1 -0
- package/dist/cards/cardModel.d.ts +48 -0
- package/dist/cards/cardModel.js +86 -0
- package/dist/cards/cardModel.js.map +1 -0
- package/dist/chart/ChartRenderer.d.ts +16 -0
- package/dist/chart/ChartRenderer.js +529 -0
- package/dist/chart/ChartRenderer.js.map +1 -0
- package/dist/chart/ChartWindowControl.d.ts +13 -0
- package/dist/chart/ChartWindowControl.js +99 -0
- package/dist/chart/ChartWindowControl.js.map +1 -0
- package/dist/chart/model.d.ts +45 -0
- package/dist/chart/model.js +179 -0
- package/dist/chart/model.js.map +1 -0
- package/dist/chart/useChartWindow.d.ts +18 -0
- package/dist/chart/useChartWindow.js +70 -0
- package/dist/chart/useChartWindow.js.map +1 -0
- package/dist/chart/window.d.ts +50 -0
- package/dist/chart/window.js +130 -0
- package/dist/chart/window.js.map +1 -0
- package/dist/components/ui/button.d.ts +21 -0
- package/dist/components/ui/button.js +30 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/checkbox.js +23 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +14 -0
- package/dist/components/ui/dialog.js +52 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +12 -0
- package/dist/components/ui/dropdown-menu.js +35 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.js +24 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/misc.d.ts +6 -0
- package/dist/components/ui/misc.js +24 -0
- package/dist/components/ui/misc.js.map +1 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/popover.js +21 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +18 -0
- package/dist/components/ui/segmented.js +35 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.js +39 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/toast.d.ts +14 -0
- package/dist/components/ui/toast.js +72 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.js +19 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/data-view/DocTab.d.ts +8 -0
- package/dist/data-view/DocTab.js +26 -0
- package/dist/data-view/DocTab.js.map +1 -0
- package/dist/data-view/FilePreview.d.ts +10 -0
- package/dist/data-view/FilePreview.js +71 -0
- package/dist/data-view/FilePreview.js.map +1 -0
- package/dist/data-view/FilterBuilder.d.ts +26 -0
- package/dist/data-view/FilterBuilder.js +350 -0
- package/dist/data-view/FilterBuilder.js.map +1 -0
- package/dist/data-view/FilterChips.d.ts +12 -0
- package/dist/data-view/FilterChips.js +295 -0
- package/dist/data-view/FilterChips.js.map +1 -0
- package/dist/data-view/FolderBar.d.ts +5 -0
- package/dist/data-view/FolderBar.js +46 -0
- package/dist/data-view/FolderBar.js.map +1 -0
- package/dist/data-view/FolderEntry.d.ts +13 -0
- package/dist/data-view/FolderEntry.js +37 -0
- package/dist/data-view/FolderEntry.js.map +1 -0
- package/dist/data-view/Freshness.d.ts +18 -0
- package/dist/data-view/Freshness.js +86 -0
- package/dist/data-view/Freshness.js.map +1 -0
- package/dist/data-view/SearchBox.d.ts +7 -0
- package/dist/data-view/SearchBox.js +65 -0
- package/dist/data-view/SearchBox.js.map +1 -0
- package/dist/data-view/SourceTab.d.ts +9 -0
- package/dist/data-view/SourceTab.js +103 -0
- package/dist/data-view/SourceTab.js.map +1 -0
- package/dist/data-view/UdcDataView.d.ts +8 -0
- package/dist/data-view/UdcDataView.js +366 -0
- package/dist/data-view/UdcDataView.js.map +1 -0
- package/dist/data-view/compose.d.ts +24 -0
- package/dist/data-view/compose.js +86 -0
- package/dist/data-view/compose.js.map +1 -0
- package/dist/data-view/folder.d.ts +13 -0
- package/dist/data-view/folder.js +52 -0
- package/dist/data-view/folder.js.map +1 -0
- package/dist/data-view/liveView.d.ts +20 -0
- package/dist/data-view/liveView.js +67 -0
- package/dist/data-view/liveView.js.map +1 -0
- package/dist/data-view/urlState.d.ts +44 -0
- package/dist/data-view/urlState.js +139 -0
- package/dist/data-view/urlState.js.map +1 -0
- package/dist/data-view/useDataViewState.d.ts +36 -0
- package/dist/data-view/useDataViewState.js +69 -0
- package/dist/data-view/useDataViewState.js.map +1 -0
- package/dist/i18n/i18n.d.ts +71 -0
- package/dist/i18n/i18n.js +151 -0
- package/dist/i18n/i18n.js.map +1 -0
- package/dist/i18n/translations.d.ts +16 -0
- package/dist/i18n/translations.js +959 -0
- package/dist/i18n/translations.js.map +1 -0
- package/dist/icons/lucide.generated.d.ts +2 -0
- package/dist/icons/lucide.generated.js +32 -0
- package/dist/icons/lucide.generated.js.map +1 -0
- package/dist/icons/resolve.d.ts +9 -0
- package/dist/icons/resolve.js +25 -0
- package/dist/icons/resolve.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +28 -0
- package/dist/kanban/CardDetailDialog.d.ts +17 -0
- package/dist/kanban/CardDetailDialog.js +52 -0
- package/dist/kanban/CardDetailDialog.js.map +1 -0
- package/dist/kanban/KanbanBoardSwitcher.d.ts +6 -0
- package/dist/kanban/KanbanBoardSwitcher.js +27 -0
- package/dist/kanban/KanbanBoardSwitcher.js.map +1 -0
- package/dist/kanban/KanbanCard.d.ts +21 -0
- package/dist/kanban/KanbanCard.js +188 -0
- package/dist/kanban/KanbanCard.js.map +1 -0
- package/dist/kanban/KanbanColumn.d.ts +30 -0
- package/dist/kanban/KanbanColumn.js +227 -0
- package/dist/kanban/KanbanColumn.js.map +1 -0
- package/dist/kanban/KanbanRenderer.d.ts +3 -0
- package/dist/kanban/KanbanRenderer.js +472 -0
- package/dist/kanban/KanbanRenderer.js.map +1 -0
- package/dist/kanban/model.d.ts +89 -0
- package/dist/kanban/model.js +159 -0
- package/dist/kanban/model.js.map +1 -0
- package/dist/kanban/persist.d.ts +27 -0
- package/dist/kanban/persist.js +54 -0
- package/dist/kanban/persist.js.map +1 -0
- package/dist/kanban/useKanbanBoard.d.ts +21 -0
- package/dist/kanban/useKanbanBoard.js +47 -0
- package/dist/kanban/useKanbanBoard.js.map +1 -0
- package/dist/lib/theme.d.ts +11 -0
- package/dist/lib/theme.js +43 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/lib/utils.d.ts +9 -0
- package/dist/lib/utils.js +29 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/map/MapRenderer.d.ts +13 -0
- package/dist/map/MapRenderer.js +405 -0
- package/dist/map/MapRenderer.js.map +1 -0
- package/dist/map/model.d.ts +68 -0
- package/dist/map/model.js +140 -0
- package/dist/map/model.js.map +1 -0
- package/dist/renderers/AllRowsStatus.d.ts +8 -0
- package/dist/renderers/AllRowsStatus.js +34 -0
- package/dist/renderers/AllRowsStatus.js.map +1 -0
- package/dist/renderers/registry.d.ts +21 -0
- package/dist/renderers/registry.js +103 -0
- package/dist/renderers/registry.js.map +1 -0
- package/dist/renderers/types.d.ts +83 -0
- package/dist/renderers/types.js +8 -0
- package/dist/renderers/types.js.map +1 -0
- package/dist/schema-editor/ColumnHeaderMenu.d.ts +11 -0
- package/dist/schema-editor/ColumnHeaderMenu.js +74 -0
- package/dist/schema-editor/ColumnHeaderMenu.js.map +1 -0
- package/dist/schema-editor/DeleteFieldDialog.d.ts +8 -0
- package/dist/schema-editor/DeleteFieldDialog.js +79 -0
- package/dist/schema-editor/DeleteFieldDialog.js.map +1 -0
- package/dist/schema-editor/FieldFormDialog.d.ts +22 -0
- package/dist/schema-editor/FieldFormDialog.js +313 -0
- package/dist/schema-editor/FieldFormDialog.js.map +1 -0
- package/dist/schema-editor/TagInput.d.ts +9 -0
- package/dist/schema-editor/TagInput.js +46 -0
- package/dist/schema-editor/TagInput.js.map +1 -0
- package/dist/schema-editor/fieldForm.d.ts +52 -0
- package/dist/schema-editor/fieldForm.js +131 -0
- package/dist/schema-editor/fieldForm.js.map +1 -0
- package/dist/schema-editor/useSchemaEditor.d.ts +15 -0
- package/dist/schema-editor/useSchemaEditor.js +87 -0
- package/dist/schema-editor/useSchemaEditor.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/table/CellEditor.d.ts +31 -0
- package/dist/table/CellEditor.js +144 -0
- package/dist/table/CellEditor.js.map +1 -0
- package/dist/table/Pager.d.ts +8 -0
- package/dist/table/Pager.js +90 -0
- package/dist/table/Pager.js.map +1 -0
- package/dist/table/TableRenderer.d.ts +27 -0
- package/dist/table/TableRenderer.js +458 -0
- package/dist/table/TableRenderer.js.map +1 -0
- package/dist/table/cells.d.ts +38 -0
- package/dist/table/cells.js +218 -0
- package/dist/table/cells.js.map +1 -0
- package/dist/table/sparkline.d.ts +31 -0
- package/dist/table/sparkline.js +105 -0
- package/dist/table/sparkline.js.map +1 -0
- package/dist/table/states.d.ts +10 -0
- package/dist/table/states.js +71 -0
- package/dist/table/states.js.map +1 -0
- package/dist/table/style.d.ts +15 -0
- package/dist/table/style.js +53 -0
- package/dist/table/style.js.map +1 -0
- package/dist/table/transforms.d.ts +17 -0
- package/dist/table/transforms.js +95 -0
- package/dist/table/transforms.js.map +1 -0
- package/dist/table/useInfiniteSentinel.d.ts +8 -0
- package/dist/table/useInfiniteSentinel.js +34 -0
- package/dist/table/useInfiniteSentinel.js.map +1 -0
- package/dist/time/timezone.d.ts +27 -0
- package/dist/time/timezone.js +69 -0
- package/dist/time/timezone.js.map +1 -0
- package/dist/time/zoned.d.ts +65 -0
- package/dist/time/zoned.js +208 -0
- package/dist/time/zoned.js.map +1 -0
- package/dist/tokens.css +454 -0
- package/dist/tree/TreeNode.d.ts +9 -0
- package/dist/tree/TreeNode.js +291 -0
- package/dist/tree/TreeNode.js.map +1 -0
- package/dist/tree/TreeRenderer.d.ts +54 -0
- package/dist/tree/TreeRenderer.js +446 -0
- package/dist/tree/TreeRenderer.js.map +1 -0
- package/dist/tree/expand.d.ts +31 -0
- package/dist/tree/expand.js +80 -0
- package/dist/tree/expand.js.map +1 -0
- package/dist/tree/model.d.ts +108 -0
- package/dist/tree/model.js +294 -0
- package/dist/tree/model.js.map +1 -0
- package/dist/udc/hooks.d.ts +644 -0
- package/dist/udc/hooks.js +353 -0
- package/dist/udc/hooks.js.map +1 -0
- package/dist/udc/keys.d.ts +19 -0
- package/dist/udc/keys.js +30 -0
- package/dist/udc/keys.js.map +1 -0
- package/dist/udc/provider.d.ts +14 -0
- package/dist/udc/provider.js +36 -0
- package/dist/udc/provider.js.map +1 -0
- package/package.json +113 -4
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
import { type ActionRequest, type Capabilities, type FilterNode, type ListResponse, type Row, type SortKey } from "@jsudc/core";
|
|
2
|
+
import type { UdcClient } from "@jsudc/core/client";
|
|
3
|
+
import { type InfiniteData } from "@tanstack/react-query";
|
|
4
|
+
import { type PagingMode } from "./keys";
|
|
5
|
+
export declare function useUdcCollections(): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
collections: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
name: string;
|
|
9
|
+
default_renderer: string;
|
|
10
|
+
capabilities: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
mutate: boolean;
|
|
13
|
+
subscribe: boolean;
|
|
14
|
+
total_count: boolean;
|
|
15
|
+
schema_edit: boolean;
|
|
16
|
+
config_edit: boolean;
|
|
17
|
+
reindex: boolean;
|
|
18
|
+
tree_reparent: boolean;
|
|
19
|
+
source_yaml: boolean;
|
|
20
|
+
supported_filter_ops: ("eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null")[];
|
|
21
|
+
paging?: ("cursor" | "offset")[] | undefined;
|
|
22
|
+
};
|
|
23
|
+
source_kind: "postgres_jsonb" | "memory" | "filesystem" | "http_api" | "yaml_menu";
|
|
24
|
+
label?: string | undefined;
|
|
25
|
+
group?: "database" | "files" | "internet" | undefined;
|
|
26
|
+
}[];
|
|
27
|
+
}, Error>;
|
|
28
|
+
export declare function useUdcDescribe(collection: string, opts?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
}): import("@tanstack/react-query").UseQueryResult<{
|
|
31
|
+
collection: string;
|
|
32
|
+
capabilities: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
mutate: boolean;
|
|
35
|
+
subscribe: boolean;
|
|
36
|
+
total_count: boolean;
|
|
37
|
+
schema_edit: boolean;
|
|
38
|
+
config_edit: boolean;
|
|
39
|
+
reindex: boolean;
|
|
40
|
+
tree_reparent: boolean;
|
|
41
|
+
source_yaml: boolean;
|
|
42
|
+
supported_filter_ops: ("eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null")[];
|
|
43
|
+
paging?: ("cursor" | "offset")[] | undefined;
|
|
44
|
+
};
|
|
45
|
+
source_kind: "postgres_jsonb" | "memory" | "filesystem" | "http_api" | "yaml_menu";
|
|
46
|
+
schema: {
|
|
47
|
+
field_order: string[];
|
|
48
|
+
version: string;
|
|
49
|
+
core_fields: string[];
|
|
50
|
+
fields: Record<string, {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
type: "string" | "date" | "enum" | "text" | "integer" | "year" | "decimal" | "bool" | "datetime" | "image" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
53
|
+
length?: number | undefined;
|
|
54
|
+
index?: boolean | undefined;
|
|
55
|
+
required?: boolean | undefined;
|
|
56
|
+
deleted?: boolean | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
values?: string[] | undefined;
|
|
59
|
+
min?: number | undefined;
|
|
60
|
+
max?: number | undefined;
|
|
61
|
+
ref?: string | undefined;
|
|
62
|
+
label_field?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
};
|
|
65
|
+
view: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
default_renderer: string;
|
|
68
|
+
available_renderers: string[];
|
|
69
|
+
columns: {
|
|
70
|
+
[x: string]: unknown;
|
|
71
|
+
field: string;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
pin?: "left" | "right" | null | undefined;
|
|
74
|
+
editable?: boolean | undefined;
|
|
75
|
+
width?: number | undefined;
|
|
76
|
+
render?: string | undefined;
|
|
77
|
+
render_options?: Record<string, unknown> | undefined;
|
|
78
|
+
align?: "left" | "right" | "center" | undefined;
|
|
79
|
+
transform?: string | string[] | undefined;
|
|
80
|
+
color?: "success" | "default" | "accent" | "warning" | "danger" | "info" | "muted" | undefined;
|
|
81
|
+
bg?: "success" | "default" | "accent" | "warning" | "danger" | "info" | "muted" | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
page_size_default: number;
|
|
84
|
+
pagination: "infinite" | "pages";
|
|
85
|
+
default_column_width: number;
|
|
86
|
+
row_actions: string[];
|
|
87
|
+
row_height?: number | undefined;
|
|
88
|
+
search?: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
fields: string[];
|
|
91
|
+
case_insensitive: boolean;
|
|
92
|
+
placeholder?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
filters?: {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
field: string;
|
|
97
|
+
kind: "bool" | "select" | "range";
|
|
98
|
+
label?: string | undefined;
|
|
99
|
+
options?: (string | number | boolean)[] | undefined;
|
|
100
|
+
min?: number | undefined;
|
|
101
|
+
max?: number | undefined;
|
|
102
|
+
step?: number | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
filterable?: {
|
|
105
|
+
[x: string]: unknown;
|
|
106
|
+
fields: (string | {
|
|
107
|
+
[x: string]: unknown;
|
|
108
|
+
field: string;
|
|
109
|
+
ops?: ("eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null")[] | undefined;
|
|
110
|
+
default_op?: "eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null" | undefined;
|
|
111
|
+
label?: string | undefined;
|
|
112
|
+
widget?: string | undefined;
|
|
113
|
+
values?: unknown[] | undefined;
|
|
114
|
+
})[];
|
|
115
|
+
default_op?: Record<string, "eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null"> | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
card_options?: {
|
|
118
|
+
[x: string]: unknown;
|
|
119
|
+
title_field?: string | undefined;
|
|
120
|
+
subtitle_field?: string | undefined;
|
|
121
|
+
image_field?: string | undefined;
|
|
122
|
+
meta_fields?: string[] | undefined;
|
|
123
|
+
image_style?: "cover" | "avatar" | undefined;
|
|
124
|
+
size?: "small" | "sm" | "medium" | "lg" | "large" | undefined;
|
|
125
|
+
metric?: {
|
|
126
|
+
[x: string]: unknown;
|
|
127
|
+
field: string;
|
|
128
|
+
label?: string | undefined;
|
|
129
|
+
unit?: string | undefined;
|
|
130
|
+
precision?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
sparkline?: {
|
|
133
|
+
[x: string]: unknown;
|
|
134
|
+
field: string;
|
|
135
|
+
width?: number | undefined;
|
|
136
|
+
height?: number | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
kanban_options?: {
|
|
140
|
+
[x: string]: unknown;
|
|
141
|
+
bucket_collection: string;
|
|
142
|
+
bucket_filter_field: string;
|
|
143
|
+
bucket_order_field: string;
|
|
144
|
+
bucket_label_field: string;
|
|
145
|
+
ticket_board_field: string;
|
|
146
|
+
ticket_bucket_field: string;
|
|
147
|
+
ticket_order_field: string;
|
|
148
|
+
card: {
|
|
149
|
+
[x: string]: unknown;
|
|
150
|
+
title_field: string;
|
|
151
|
+
body_field?: string | undefined;
|
|
152
|
+
priority_field?: string | undefined;
|
|
153
|
+
tags_field?: string | undefined;
|
|
154
|
+
due_field?: string | undefined;
|
|
155
|
+
assignees_field?: string | undefined;
|
|
156
|
+
footer_fields?: string[] | undefined;
|
|
157
|
+
};
|
|
158
|
+
cards: {
|
|
159
|
+
[x: string]: unknown;
|
|
160
|
+
title_lines: number;
|
|
161
|
+
body_lines: number;
|
|
162
|
+
show_priority_left_border: boolean;
|
|
163
|
+
tags_max_visible: number;
|
|
164
|
+
density: "comfortable" | "compact";
|
|
165
|
+
};
|
|
166
|
+
buckets: {
|
|
167
|
+
[x: string]: unknown;
|
|
168
|
+
max_visible_tickets: number;
|
|
169
|
+
show_count: boolean;
|
|
170
|
+
show_add_ticket_button: boolean;
|
|
171
|
+
min_width_px: number;
|
|
172
|
+
};
|
|
173
|
+
board: {
|
|
174
|
+
[x: string]: unknown;
|
|
175
|
+
extendable_with_buckets: boolean;
|
|
176
|
+
buckets_sortable: boolean;
|
|
177
|
+
};
|
|
178
|
+
permissions: {
|
|
179
|
+
[x: string]: unknown;
|
|
180
|
+
read_only: boolean;
|
|
181
|
+
};
|
|
182
|
+
bucket_color_field?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
calendar_options?: {
|
|
185
|
+
[x: string]: unknown;
|
|
186
|
+
start_field: string;
|
|
187
|
+
end_field: string;
|
|
188
|
+
title_field: string;
|
|
189
|
+
color_map: Record<string, string>;
|
|
190
|
+
default_preset: "day" | "workweek" | "week" | "biweekly" | "month";
|
|
191
|
+
available_presets: ("day" | "workweek" | "week" | "biweekly" | "month")[];
|
|
192
|
+
workweek_days: number;
|
|
193
|
+
snap_minutes: number;
|
|
194
|
+
min_event_minutes: number;
|
|
195
|
+
business_hours: [number, number];
|
|
196
|
+
hour_height_px: number;
|
|
197
|
+
show_now_line: boolean;
|
|
198
|
+
week_starts_on: "monday" | "sunday";
|
|
199
|
+
month_max_chips_per_day: number;
|
|
200
|
+
color_field?: string | undefined;
|
|
201
|
+
scroll_to_hour?: number | undefined;
|
|
202
|
+
detail?: {
|
|
203
|
+
[x: string]: unknown;
|
|
204
|
+
fields: {
|
|
205
|
+
[x: string]: unknown;
|
|
206
|
+
field: string;
|
|
207
|
+
editable?: boolean | undefined;
|
|
208
|
+
}[];
|
|
209
|
+
delete: boolean;
|
|
210
|
+
} | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
tree_options?: {
|
|
213
|
+
root_filter: {
|
|
214
|
+
[x: string]: unknown;
|
|
215
|
+
field: string;
|
|
216
|
+
op: "eq" | "is_null";
|
|
217
|
+
value?: string | number | boolean | undefined;
|
|
218
|
+
};
|
|
219
|
+
sibling_sort: {
|
|
220
|
+
[x: string]: unknown;
|
|
221
|
+
field: string;
|
|
222
|
+
dir: "asc" | "desc";
|
|
223
|
+
}[];
|
|
224
|
+
parent_field: string;
|
|
225
|
+
order_field: string;
|
|
226
|
+
label_field: string;
|
|
227
|
+
label_i18n: boolean;
|
|
228
|
+
lazy: boolean;
|
|
229
|
+
lazy_page_size: number;
|
|
230
|
+
expand: {
|
|
231
|
+
[x: string]: unknown;
|
|
232
|
+
persist: "localstorage" | "none";
|
|
233
|
+
default_depth: number;
|
|
234
|
+
key?: string | undefined;
|
|
235
|
+
};
|
|
236
|
+
interactive: {
|
|
237
|
+
[x: string]: unknown;
|
|
238
|
+
rename: boolean;
|
|
239
|
+
reparent: boolean;
|
|
240
|
+
reply: boolean;
|
|
241
|
+
delete: boolean;
|
|
242
|
+
};
|
|
243
|
+
on_search: {
|
|
244
|
+
[x: string]: unknown;
|
|
245
|
+
mode: "highlight_and_expand" | "filter_only";
|
|
246
|
+
collapse_others: boolean;
|
|
247
|
+
};
|
|
248
|
+
icon_field?: string | undefined;
|
|
249
|
+
avatar_field?: string | undefined;
|
|
250
|
+
path_field?: string | undefined;
|
|
251
|
+
depth_field?: string | undefined;
|
|
252
|
+
children_count_field?: string | undefined;
|
|
253
|
+
ancestor_ids_field?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
map_options?: {
|
|
256
|
+
trail?: {
|
|
257
|
+
[x: string]: unknown;
|
|
258
|
+
lat_history_field: string;
|
|
259
|
+
lng_history_field: string;
|
|
260
|
+
max_points: number;
|
|
261
|
+
} | undefined;
|
|
262
|
+
fit_bounds: boolean;
|
|
263
|
+
lat_field: string;
|
|
264
|
+
lng_field: string;
|
|
265
|
+
radius_min: number;
|
|
266
|
+
radius_scale: number;
|
|
267
|
+
radius_max: number;
|
|
268
|
+
zoom: number;
|
|
269
|
+
max_rows: number;
|
|
270
|
+
icon: "circle" | "airplane";
|
|
271
|
+
icon_size: number;
|
|
272
|
+
radius_field?: string | undefined;
|
|
273
|
+
popup_fields?: string[] | undefined;
|
|
274
|
+
center?: [number, number] | undefined;
|
|
275
|
+
regions?: {
|
|
276
|
+
[x: string]: unknown;
|
|
277
|
+
id: string;
|
|
278
|
+
label: string;
|
|
279
|
+
center: [number, number];
|
|
280
|
+
zoom: number;
|
|
281
|
+
}[] | undefined;
|
|
282
|
+
default_region?: string | undefined;
|
|
283
|
+
rotate_field?: string | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
chart_options?: {
|
|
286
|
+
[x: string]: unknown;
|
|
287
|
+
type: "line" | "area" | "bar" | "pie";
|
|
288
|
+
series: {
|
|
289
|
+
[x: string]: unknown;
|
|
290
|
+
field: string;
|
|
291
|
+
axis: "left" | "right";
|
|
292
|
+
agg: "max" | "mean" | "sum";
|
|
293
|
+
label?: string | undefined;
|
|
294
|
+
color?: string | undefined;
|
|
295
|
+
stack?: string | undefined;
|
|
296
|
+
}[];
|
|
297
|
+
max_slices: number;
|
|
298
|
+
y_axis: {
|
|
299
|
+
[x: string]: unknown;
|
|
300
|
+
left: {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
baseline: "zero" | "data";
|
|
303
|
+
format?: "number_format" | "percent" | "bytes" | undefined;
|
|
304
|
+
};
|
|
305
|
+
right: {
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
baseline: "zero" | "data";
|
|
308
|
+
format?: "number_format" | "percent" | "bytes" | undefined;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
legend: boolean;
|
|
312
|
+
height_px: number;
|
|
313
|
+
max_rows: number;
|
|
314
|
+
x_field?: string | undefined;
|
|
315
|
+
category_field?: string | undefined;
|
|
316
|
+
value_field?: string | undefined;
|
|
317
|
+
window?: {
|
|
318
|
+
[x: string]: unknown;
|
|
319
|
+
field: string;
|
|
320
|
+
presets: string[];
|
|
321
|
+
default: string;
|
|
322
|
+
allow_custom: boolean;
|
|
323
|
+
} | undefined;
|
|
324
|
+
empty_label?: string | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
folder_options?: {
|
|
327
|
+
[x: string]: unknown;
|
|
328
|
+
path_field: string;
|
|
329
|
+
kind_field: string;
|
|
330
|
+
dir_value: string;
|
|
331
|
+
label_field: string;
|
|
332
|
+
preview: boolean;
|
|
333
|
+
} | undefined;
|
|
334
|
+
row_color?: {
|
|
335
|
+
[x: string]: unknown;
|
|
336
|
+
field: string;
|
|
337
|
+
rules: {
|
|
338
|
+
[x: string]: unknown;
|
|
339
|
+
value?: unknown;
|
|
340
|
+
min?: number | undefined;
|
|
341
|
+
max?: number | undefined;
|
|
342
|
+
else?: boolean | undefined;
|
|
343
|
+
color?: "success" | "default" | "accent" | "warning" | "danger" | "info" | "muted" | undefined;
|
|
344
|
+
bg?: "success" | "default" | "accent" | "warning" | "danger" | "info" | "muted" | undefined;
|
|
345
|
+
}[];
|
|
346
|
+
apply?: boolean | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
row_action_defs?: {
|
|
349
|
+
[x: string]: unknown;
|
|
350
|
+
kind: string;
|
|
351
|
+
label?: string | undefined;
|
|
352
|
+
when?: boolean | FilterNode | undefined;
|
|
353
|
+
icon?: string | undefined;
|
|
354
|
+
variant?: "default" | "outline" | "destructive" | undefined;
|
|
355
|
+
}[] | undefined;
|
|
356
|
+
bulk_actions?: {
|
|
357
|
+
[x: string]: unknown;
|
|
358
|
+
kind: string;
|
|
359
|
+
label?: string | undefined;
|
|
360
|
+
when?: boolean | FilterNode | undefined;
|
|
361
|
+
icon?: string | undefined;
|
|
362
|
+
variant?: "default" | "outline" | "destructive" | undefined;
|
|
363
|
+
}[] | undefined;
|
|
364
|
+
multiselect?: boolean | undefined;
|
|
365
|
+
row_actions_display?: "inline" | "menu" | undefined;
|
|
366
|
+
edit_mode?: {
|
|
367
|
+
[x: string]: unknown;
|
|
368
|
+
enabled: boolean;
|
|
369
|
+
default_enabled: boolean;
|
|
370
|
+
enter_policy: "edit_mode" | "double_click";
|
|
371
|
+
} | undefined;
|
|
372
|
+
preview?: {
|
|
373
|
+
[x: string]: unknown;
|
|
374
|
+
placement?: "modal" | "right_drawer" | undefined;
|
|
375
|
+
renderer?: string | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
refresh_interval_ms?: number | undefined;
|
|
378
|
+
};
|
|
379
|
+
filterable: {
|
|
380
|
+
fields: {
|
|
381
|
+
[x: string]: unknown;
|
|
382
|
+
field: string;
|
|
383
|
+
type: "string" | "date" | "enum" | "text" | "integer" | "year" | "decimal" | "bool" | "datetime" | "image" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
384
|
+
ops: ("eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null")[];
|
|
385
|
+
default_op: "eq" | "neq" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "between" | "is_null" | "is_not_null";
|
|
386
|
+
widget: string;
|
|
387
|
+
label?: string | undefined;
|
|
388
|
+
}[];
|
|
389
|
+
};
|
|
390
|
+
source?: {
|
|
391
|
+
[x: string]: unknown;
|
|
392
|
+
auth?: "anonymous" | "oauth2" | undefined;
|
|
393
|
+
cache_ttl_ms?: number | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
docs?: {
|
|
396
|
+
en?: string | undefined;
|
|
397
|
+
sr?: string | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
}, Error>;
|
|
400
|
+
/** The file a `source_yaml` collection is read from (`source.read`); fetched again on every mount. */
|
|
401
|
+
export declare function useUdcSource(collection: string, opts?: {
|
|
402
|
+
enabled?: boolean;
|
|
403
|
+
}): import("@tanstack/react-query").UseQueryResult<{
|
|
404
|
+
path: string;
|
|
405
|
+
text: string;
|
|
406
|
+
mtime: string;
|
|
407
|
+
error?: string | undefined;
|
|
408
|
+
}, Error>;
|
|
409
|
+
export interface UseUdcCollectionArgs {
|
|
410
|
+
collection: string;
|
|
411
|
+
filter?: FilterNode | undefined;
|
|
412
|
+
sort?: SortKey[];
|
|
413
|
+
mode: PagingMode;
|
|
414
|
+
pageLimit: number;
|
|
415
|
+
/** 1-based; pages mode only. */
|
|
416
|
+
page?: number;
|
|
417
|
+
enabled?: boolean;
|
|
418
|
+
/** From `describe`: a source without `cursor` paging is walked by offset in infinite mode too. */
|
|
419
|
+
capabilities?: Pick<Capabilities, "paging"> | undefined;
|
|
420
|
+
/** Poll: refetch the loaded rows this often (the view's `refresh_interval_ms`). */
|
|
421
|
+
refetchInterval?: number | undefined;
|
|
422
|
+
}
|
|
423
|
+
export interface UdcCollectionResult {
|
|
424
|
+
rows: Row[];
|
|
425
|
+
total: number | null;
|
|
426
|
+
isLoading: boolean;
|
|
427
|
+
isFetching: boolean;
|
|
428
|
+
error: Error | null;
|
|
429
|
+
refetch: () => void;
|
|
430
|
+
/** Infinite mode only; always false in pages mode. */
|
|
431
|
+
hasNextPage: boolean;
|
|
432
|
+
isFetchingNextPage: boolean;
|
|
433
|
+
fetchNextPage: () => void;
|
|
434
|
+
/** A source serving a fetched copy: when it was fetched, and whether the last refresh failed. */
|
|
435
|
+
fetchedAt: string | null;
|
|
436
|
+
stale: boolean;
|
|
437
|
+
}
|
|
438
|
+
/** `refetchInterval` for TanStack: a positive number of ms, else off. */
|
|
439
|
+
export declare function pollInterval(ms: number | undefined): number | false;
|
|
440
|
+
/** The freshness of a list answer: `fetched_at` and `stale` when the source sent them. */
|
|
441
|
+
export declare function freshnessOf(res: Pick<ListResponse, "fetched_at" | "stale"> | undefined): {
|
|
442
|
+
fetchedAt: string | null;
|
|
443
|
+
stale: boolean;
|
|
444
|
+
};
|
|
445
|
+
/** The `offset` a 1-based page asks for. */
|
|
446
|
+
export declare function pageOffset(page: number, limit: number): number;
|
|
447
|
+
/**
|
|
448
|
+
* Rows of one collection. Infinite mode follows `next_cursor` page by page
|
|
449
|
+
* (`useInfiniteQuery`), or the next `offset` while rows remain when the
|
|
450
|
+
* source pages by offset only; pages mode asks for one `offset` page
|
|
451
|
+
* (`useQuery`). Both hooks are always mounted and the inactive one is
|
|
452
|
+
* disabled, so switching modes keeps each cache warm. `refetchInterval`
|
|
453
|
+
* polls the active one.
|
|
454
|
+
*/
|
|
455
|
+
export declare function useUdcCollection(args: UseUdcCollectionArgs): UdcCollectionResult;
|
|
456
|
+
export declare const ALL_ROWS_MAX = 2000;
|
|
457
|
+
export interface FetchAllRowsArgs {
|
|
458
|
+
collection: string;
|
|
459
|
+
filter?: FilterNode | undefined;
|
|
460
|
+
sort?: SortKey[];
|
|
461
|
+
/** Stop after this many rows. */
|
|
462
|
+
max: number;
|
|
463
|
+
/** Rows per `list` call. */
|
|
464
|
+
pageLimit?: number;
|
|
465
|
+
/** Keyset paging unless the source pages by offset only. */
|
|
466
|
+
cursor: boolean;
|
|
467
|
+
signal?: AbortSignal;
|
|
468
|
+
onProgress?: (loaded: number, total: number | null) => void;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Every row of a filter, `list` page after page, until `total` or `max`.
|
|
472
|
+
* Follows `next_cursor` when keyset paging is on; a source that answers no
|
|
473
|
+
* cursor while rows remain is walked on by offset. Answers one list whose
|
|
474
|
+
* `total` is the server's (so `rows.length < total` means capped), with the
|
|
475
|
+
* first page's `fetched_at` and `stale`.
|
|
476
|
+
*/
|
|
477
|
+
export declare function fetchAllRows(client: UdcClient, args: FetchAllRowsArgs): Promise<ListResponse>;
|
|
478
|
+
export interface UseUdcAllRowsArgs {
|
|
479
|
+
collection: string;
|
|
480
|
+
filter?: FilterNode | undefined;
|
|
481
|
+
sort?: SortKey[];
|
|
482
|
+
/** Default 2,000. */
|
|
483
|
+
max?: number;
|
|
484
|
+
/** From `describe`: whether the source pages by cursor. */
|
|
485
|
+
capabilities?: Pick<Capabilities, "paging"> | undefined;
|
|
486
|
+
enabled?: boolean;
|
|
487
|
+
/** Poll: refetch every row this often (the view's `refresh_interval_ms`). */
|
|
488
|
+
refetchInterval?: number | undefined;
|
|
489
|
+
}
|
|
490
|
+
export interface UdcAllRowsResult {
|
|
491
|
+
rows: Row[];
|
|
492
|
+
total: number | null;
|
|
493
|
+
isLoading: boolean;
|
|
494
|
+
isFetching: boolean;
|
|
495
|
+
error: Error | null;
|
|
496
|
+
refetch: () => Promise<unknown>;
|
|
497
|
+
/** More rows match than `max`: only the first `max` are here. */
|
|
498
|
+
capped: boolean;
|
|
499
|
+
/** Rows loaded so far by the fetch in flight, for a progress bar. */
|
|
500
|
+
progress: {
|
|
501
|
+
loaded: number;
|
|
502
|
+
total: number | null;
|
|
503
|
+
} | null;
|
|
504
|
+
fetchedAt: string | null;
|
|
505
|
+
stale: boolean;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* All rows of the current filter in one cached list: what the kanban (and
|
|
509
|
+
* the calendar, tree, map and charts after it) draw from. The cache entry
|
|
510
|
+
* sits under `udcKeys.lists(collection)`, so `useUdcMutate`'s optimistic
|
|
511
|
+
* patches and invalidations reach it like every other list.
|
|
512
|
+
*/
|
|
513
|
+
export declare function useUdcAllRows(args: UseUdcAllRowsArgs): UdcAllRowsResult;
|
|
514
|
+
type ListCache = ListResponse | InfiniteData<ListResponse, unknown>;
|
|
515
|
+
/** `data` with every row whose id is `id` passed through `patch`. */
|
|
516
|
+
export declare function patchRowInList(data: ListCache | undefined, id: string, patch: (row: Row) => Row): ListCache | undefined;
|
|
517
|
+
export type UdcMutateVars = Omit<ActionRequest<"mutate">, "collection">;
|
|
518
|
+
/**
|
|
519
|
+
* Insert / update / delete one row. An update is applied optimistically to
|
|
520
|
+
* the row in every cached list page and rolled back if the server says no.
|
|
521
|
+
* A `version_conflict` additionally re-reads the row, so the cache holds the
|
|
522
|
+
* value that won; the error still reaches the caller. Lists are invalidated
|
|
523
|
+
* once the call settles.
|
|
524
|
+
*/
|
|
525
|
+
export declare function useUdcMutate(collection: string): import("@tanstack/react-query").UseMutationResult<{
|
|
526
|
+
row: {
|
|
527
|
+
[x: string]: unknown;
|
|
528
|
+
__meta: {
|
|
529
|
+
[x: string]: unknown;
|
|
530
|
+
id: string;
|
|
531
|
+
version: number;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
}, Error, UdcMutateVars, {
|
|
535
|
+
snapshot: [readonly unknown[], ListCache | undefined][];
|
|
536
|
+
}>;
|
|
537
|
+
/**
|
|
538
|
+
* The three schema edits. Each answers the new schema; `describe` (which
|
|
539
|
+
* derives the columns) and the lists are refetched afterwards.
|
|
540
|
+
*/
|
|
541
|
+
export declare function useUdcSchema(collection: string): {
|
|
542
|
+
addField: import("@tanstack/react-query").UseMutationResult<{
|
|
543
|
+
schema: {
|
|
544
|
+
field_order: string[];
|
|
545
|
+
version: string;
|
|
546
|
+
core_fields: string[];
|
|
547
|
+
fields: Record<string, {
|
|
548
|
+
[x: string]: unknown;
|
|
549
|
+
type: "string" | "date" | "enum" | "text" | "integer" | "year" | "decimal" | "bool" | "datetime" | "image" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
550
|
+
length?: number | undefined;
|
|
551
|
+
index?: boolean | undefined;
|
|
552
|
+
required?: boolean | undefined;
|
|
553
|
+
deleted?: boolean | undefined;
|
|
554
|
+
description?: string | undefined;
|
|
555
|
+
values?: string[] | undefined;
|
|
556
|
+
min?: number | undefined;
|
|
557
|
+
max?: number | undefined;
|
|
558
|
+
ref?: string | undefined;
|
|
559
|
+
label_field?: string | undefined;
|
|
560
|
+
}>;
|
|
561
|
+
};
|
|
562
|
+
}, Error, Omit<{
|
|
563
|
+
collection: string;
|
|
564
|
+
name: string;
|
|
565
|
+
fielddef: {
|
|
566
|
+
[x: string]: unknown;
|
|
567
|
+
type: "string" | "image" | "text" | "decimal" | "date" | "year" | "bool" | "enum" | "integer" | "datetime" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
568
|
+
length?: number | undefined;
|
|
569
|
+
index?: boolean | undefined;
|
|
570
|
+
required?: boolean | undefined;
|
|
571
|
+
deleted?: boolean | undefined;
|
|
572
|
+
description?: string | undefined;
|
|
573
|
+
values?: string[] | undefined;
|
|
574
|
+
min?: number | undefined;
|
|
575
|
+
max?: number | undefined;
|
|
576
|
+
ref?: string | undefined;
|
|
577
|
+
label_field?: string | undefined;
|
|
578
|
+
};
|
|
579
|
+
position: {
|
|
580
|
+
where: "end" | "before" | "after";
|
|
581
|
+
anchor?: string | undefined;
|
|
582
|
+
};
|
|
583
|
+
}, "collection">, unknown>;
|
|
584
|
+
updateField: import("@tanstack/react-query").UseMutationResult<{
|
|
585
|
+
schema: {
|
|
586
|
+
field_order: string[];
|
|
587
|
+
version: string;
|
|
588
|
+
core_fields: string[];
|
|
589
|
+
fields: Record<string, {
|
|
590
|
+
[x: string]: unknown;
|
|
591
|
+
type: "string" | "date" | "enum" | "text" | "integer" | "year" | "decimal" | "bool" | "datetime" | "image" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
592
|
+
length?: number | undefined;
|
|
593
|
+
index?: boolean | undefined;
|
|
594
|
+
required?: boolean | undefined;
|
|
595
|
+
deleted?: boolean | undefined;
|
|
596
|
+
description?: string | undefined;
|
|
597
|
+
values?: string[] | undefined;
|
|
598
|
+
min?: number | undefined;
|
|
599
|
+
max?: number | undefined;
|
|
600
|
+
ref?: string | undefined;
|
|
601
|
+
label_field?: string | undefined;
|
|
602
|
+
}>;
|
|
603
|
+
};
|
|
604
|
+
}, Error, Omit<{
|
|
605
|
+
collection: string;
|
|
606
|
+
name: string;
|
|
607
|
+
fielddef: {
|
|
608
|
+
[x: string]: unknown;
|
|
609
|
+
type: "string" | "image" | "text" | "decimal" | "date" | "year" | "bool" | "enum" | "integer" | "datetime" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
610
|
+
length?: number | undefined;
|
|
611
|
+
index?: boolean | undefined;
|
|
612
|
+
required?: boolean | undefined;
|
|
613
|
+
deleted?: boolean | undefined;
|
|
614
|
+
description?: string | undefined;
|
|
615
|
+
values?: string[] | undefined;
|
|
616
|
+
min?: number | undefined;
|
|
617
|
+
max?: number | undefined;
|
|
618
|
+
ref?: string | undefined;
|
|
619
|
+
label_field?: string | undefined;
|
|
620
|
+
};
|
|
621
|
+
}, "collection">, unknown>;
|
|
622
|
+
softDeleteField: import("@tanstack/react-query").UseMutationResult<{
|
|
623
|
+
schema: {
|
|
624
|
+
field_order: string[];
|
|
625
|
+
version: string;
|
|
626
|
+
core_fields: string[];
|
|
627
|
+
fields: Record<string, {
|
|
628
|
+
[x: string]: unknown;
|
|
629
|
+
type: "string" | "date" | "enum" | "text" | "integer" | "year" | "decimal" | "bool" | "datetime" | "image" | "relation" | "string_array" | "rating" | "json" | "lookup" | "lookup_array";
|
|
630
|
+
length?: number | undefined;
|
|
631
|
+
index?: boolean | undefined;
|
|
632
|
+
required?: boolean | undefined;
|
|
633
|
+
deleted?: boolean | undefined;
|
|
634
|
+
description?: string | undefined;
|
|
635
|
+
values?: string[] | undefined;
|
|
636
|
+
min?: number | undefined;
|
|
637
|
+
max?: number | undefined;
|
|
638
|
+
ref?: string | undefined;
|
|
639
|
+
label_field?: string | undefined;
|
|
640
|
+
}>;
|
|
641
|
+
};
|
|
642
|
+
}, Error, string, unknown>;
|
|
643
|
+
};
|
|
644
|
+
export {};
|