@fragno-dev/forms 0.1.0 → 0.1.2
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/browser/client/react.d.ts +20 -20
- package/dist/browser/client/react.d.ts.map +1 -1
- package/dist/browser/client/react.js +105 -13
- package/dist/browser/client/react.js.map +1 -1
- package/dist/browser/client/solid.d.ts +20 -20
- package/dist/browser/client/solid.d.ts.map +1 -1
- package/dist/browser/client/solid.js +25 -11
- package/dist/browser/client/solid.js.map +1 -1
- package/dist/browser/client/svelte.d.ts +20 -20
- package/dist/browser/client/svelte.d.ts.map +1 -1
- package/dist/browser/client/svelte.js +11 -3
- package/dist/browser/client/svelte.js.map +1 -1
- package/dist/browser/client/vanilla.d.ts +20 -20
- package/dist/browser/client/vanilla.d.ts.map +1 -1
- package/dist/browser/client/vanilla.js +21 -1
- package/dist/browser/client/vanilla.js.map +1 -1
- package/dist/browser/client/vue.d.ts +17 -17
- package/dist/browser/client/vue.d.ts.map +1 -1
- package/dist/browser/client/vue.js +19 -11
- package/dist/browser/client/vue.js.map +1 -1
- package/dist/browser/index.d.ts +417 -107
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/{src-BBaSaf29.js → src-BNcd9ogF.js} +364 -331
- package/dist/browser/src-BNcd9ogF.js.map +1 -0
- package/dist/node/index.d.ts +417 -107
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +83 -90
- package/dist/node/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +28 -48
- package/dist/browser/src-BBaSaf29.js.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _fragno_dev_core25 from "@fragno-dev/core";
|
|
2
2
|
import * as _fragno_dev_core0 from "@fragno-dev/core";
|
|
3
3
|
import { FragnoRouteConfig } from "@fragno-dev/core";
|
|
4
4
|
import * as zod211 from "zod";
|
|
@@ -8,13 +8,11 @@ import * as _fragno_dev_core_api4 from "@fragno-dev/core/api";
|
|
|
8
8
|
import * as _standard_schema_spec6 from "@standard-schema/spec";
|
|
9
9
|
import * as _fragno_dev_core_client0 from "@fragno-dev/core/client";
|
|
10
10
|
import { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
11
|
-
import * as
|
|
11
|
+
import * as _fragno_dev_db_schema164 from "@fragno-dev/db/schema";
|
|
12
12
|
import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema";
|
|
13
|
-
import * as
|
|
13
|
+
import * as _fragno_dev_db88 from "@fragno-dev/db";
|
|
14
14
|
import * as _fragno_dev_db0 from "@fragno-dev/db";
|
|
15
15
|
import { FragnoPublicConfigWithDatabase } from "@fragno-dev/db";
|
|
16
|
-
import * as _fragno_dev_db_query2 from "@fragno-dev/db/query";
|
|
17
|
-
import * as _fragno_dev_db_query0 from "@fragno-dev/db/query";
|
|
18
16
|
import * as _fragno_dev_db_fragment_definition_builder0$1 from "@fragno-dev/db/fragment-definition-builder";
|
|
19
17
|
import * as _fragno_dev_db_fragment_definition_builder0 from "@fragno-dev/db/fragment-definition-builder";
|
|
20
18
|
import { UISchemaElement } from "@jsonforms/core";
|
|
@@ -46,28 +44,28 @@ declare const FormSchema: z.ZodObject<{
|
|
|
46
44
|
updatedAt: z.ZodDate;
|
|
47
45
|
}, z.core.$strip>;
|
|
48
46
|
declare const NewFormSchema: z.ZodObject<{
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
slug: z.ZodString;
|
|
49
50
|
status: z.ZodEnum<{
|
|
50
51
|
draft: "draft";
|
|
51
52
|
open: "open";
|
|
52
53
|
closed: "closed";
|
|
53
54
|
static: "static";
|
|
54
55
|
}>;
|
|
55
|
-
title: z.ZodString;
|
|
56
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
slug: z.ZodString;
|
|
58
56
|
dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
59
57
|
uiSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
58
|
}, z.core.$strip>;
|
|
61
59
|
declare const UpdateFormSchema: z.ZodObject<{
|
|
60
|
+
title: z.ZodOptional<z.ZodString>;
|
|
61
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
62
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
62
63
|
status: z.ZodOptional<z.ZodEnum<{
|
|
63
64
|
draft: "draft";
|
|
64
65
|
open: "open";
|
|
65
66
|
closed: "closed";
|
|
66
67
|
static: "static";
|
|
67
68
|
}>>;
|
|
68
|
-
title: z.ZodOptional<z.ZodString>;
|
|
69
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
70
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
71
69
|
dataSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
70
|
uiSchema: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
73
71
|
}, z.core.$strip>;
|
|
@@ -118,12 +116,26 @@ interface SubmissionSortOptions {
|
|
|
118
116
|
field: "submittedAt";
|
|
119
117
|
order: "asc" | "desc";
|
|
120
118
|
}
|
|
121
|
-
declare const formsFragmentDef:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
declare const formsFragmentDef: _fragno_dev_core25.FragmentDefinition<FormsConfig, _fragno_dev_db88.FragnoPublicConfigWithDatabase, _fragno_dev_db88.ImplicitDatabaseDependencies<_fragno_dev_db_schema164.Schema<Record<"form", _fragno_dev_db_schema164.Table<Record<"id", _fragno_dev_db_schema164.IdColumn<"varchar(128)", string | _fragno_dev_db_schema164.FragnoId | null, _fragno_dev_db_schema164.FragnoId>> & Record<"title", _fragno_dev_db_schema164.Column<"string", string, string>> & Record<"description", _fragno_dev_db_schema164.Column<"string", string | null, string | null>> & Record<"slug", _fragno_dev_db_schema164.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema164.Column<"string", string | null, string>> & Record<"dataSchema", _fragno_dev_db_schema164.Column<"json", unknown, unknown>> & Record<"uiSchema", _fragno_dev_db_schema164.Column<"json", unknown, unknown>> & Record<"version", _fragno_dev_db_schema164.Column<"integer", number | null, number>> & Record<"createdAt", _fragno_dev_db_schema164.Column<"timestamp", (Date | _fragno_dev_db88.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema164.Column<"timestamp", (Date | _fragno_dev_db88.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema164.AnyRelation>, Record<string, _fragno_dev_db_schema164.Index<_fragno_dev_db_schema164.AnyColumn[], readonly string[]>> & Record<"idx_form_status", _fragno_dev_db_schema164.Index<readonly [_fragno_dev_db_schema164.Column<"string", string | null, string>] & _fragno_dev_db_schema164.AnyColumn[], readonly ["status"]>> & Record<"idx_form_slug", _fragno_dev_db_schema164.Index<readonly [_fragno_dev_db_schema164.Column<"string", string, string>] & _fragno_dev_db_schema164.AnyColumn[], readonly ["slug"]>>>> & Record<"response", _fragno_dev_db_schema164.Table<Record<"id", _fragno_dev_db_schema164.IdColumn<"varchar(128)", string | _fragno_dev_db_schema164.FragnoId | null, _fragno_dev_db_schema164.FragnoId>> & Record<"formId", _fragno_dev_db_schema164.Column<"string", string, string>> & Record<"formVersion", _fragno_dev_db_schema164.Column<"integer", number, number>> & Record<"data", _fragno_dev_db_schema164.Column<"json", unknown, unknown>> & Record<"submittedAt", _fragno_dev_db_schema164.Column<"timestamp", (Date | _fragno_dev_db88.DbNow) | null, Date>> & Record<"userAgent", _fragno_dev_db_schema164.Column<"string", string | null, string | null>> & Record<"ip", _fragno_dev_db_schema164.Column<"string", string | null, string | null>>, Record<string, _fragno_dev_db_schema164.AnyRelation>, Record<string, _fragno_dev_db_schema164.Index<_fragno_dev_db_schema164.AnyColumn[], readonly string[]>> & Record<"idx_response_form", _fragno_dev_db_schema164.Index<readonly [_fragno_dev_db_schema164.Column<"string", string, string>] & _fragno_dev_db_schema164.AnyColumn[], readonly ["formId"]>> & Record<"idx_response_submitted_at", _fragno_dev_db_schema164.Index<readonly [_fragno_dev_db_schema164.Column<"timestamp", (Date | _fragno_dev_db88.DbNow) | null, Date>] & _fragno_dev_db_schema164.AnyColumn[], readonly ["submittedAt"]>>>>>>, {
|
|
120
|
+
createForm: (input: NewForm) => _fragno_dev_db88.TxResult<string, _fragno_dev_db_schema164.FragnoId>;
|
|
121
|
+
getForm: (id: string) => _fragno_dev_db88.TxResult<({
|
|
122
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
123
|
+
title: string;
|
|
124
|
+
description: string | null;
|
|
125
|
+
slug: string;
|
|
126
|
+
status: string;
|
|
127
|
+
dataSchema: unknown;
|
|
128
|
+
uiSchema: unknown;
|
|
129
|
+
version: number;
|
|
130
|
+
createdAt: Date;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
} & {
|
|
133
|
+
id: string;
|
|
134
|
+
status: FormStatus;
|
|
135
|
+
dataSchema: JSONSchema;
|
|
136
|
+
uiSchema: UIElementSchema;
|
|
137
|
+
}) | null, ({
|
|
138
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
127
139
|
title: string;
|
|
128
140
|
description: string | null;
|
|
129
141
|
slug: string;
|
|
@@ -139,8 +151,24 @@ declare const formsFragmentDef: _fragno_dev_core26.FragmentDefinition<FormsConfi
|
|
|
139
151
|
dataSchema: JSONSchema;
|
|
140
152
|
uiSchema: UIElementSchema;
|
|
141
153
|
}) | null>;
|
|
142
|
-
getFormBySlug: (slug: string) =>
|
|
143
|
-
id:
|
|
154
|
+
getFormBySlug: (slug: string) => _fragno_dev_db88.TxResult<({
|
|
155
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
156
|
+
title: string;
|
|
157
|
+
description: string | null;
|
|
158
|
+
slug: string;
|
|
159
|
+
status: string;
|
|
160
|
+
dataSchema: unknown;
|
|
161
|
+
uiSchema: unknown;
|
|
162
|
+
version: number;
|
|
163
|
+
createdAt: Date;
|
|
164
|
+
updatedAt: Date;
|
|
165
|
+
} & {
|
|
166
|
+
id: string;
|
|
167
|
+
status: FormStatus;
|
|
168
|
+
dataSchema: JSONSchema;
|
|
169
|
+
uiSchema: UIElementSchema;
|
|
170
|
+
}) | null, ({
|
|
171
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
144
172
|
title: string;
|
|
145
173
|
description: string | null;
|
|
146
174
|
slug: string;
|
|
@@ -156,11 +184,38 @@ declare const formsFragmentDef: _fragno_dev_core26.FragmentDefinition<FormsConfi
|
|
|
156
184
|
dataSchema: JSONSchema;
|
|
157
185
|
uiSchema: UIElementSchema;
|
|
158
186
|
}) | null>;
|
|
159
|
-
updateForm: (id: string, input: UpdateForm) =>
|
|
187
|
+
updateForm: (id: string, input: UpdateForm) => _fragno_dev_db88.TxResult<{
|
|
160
188
|
success: boolean;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
189
|
+
}, [{
|
|
190
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
191
|
+
title: string;
|
|
192
|
+
description: string | null;
|
|
193
|
+
slug: string;
|
|
194
|
+
status: string;
|
|
195
|
+
dataSchema: unknown;
|
|
196
|
+
uiSchema: unknown;
|
|
197
|
+
version: number;
|
|
198
|
+
createdAt: Date;
|
|
199
|
+
updatedAt: Date;
|
|
200
|
+
}[]]>;
|
|
201
|
+
listForms: () => _fragno_dev_db88.TxResult<({
|
|
202
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
203
|
+
title: string;
|
|
204
|
+
description: string | null;
|
|
205
|
+
slug: string;
|
|
206
|
+
status: string;
|
|
207
|
+
dataSchema: unknown;
|
|
208
|
+
uiSchema: unknown;
|
|
209
|
+
version: number;
|
|
210
|
+
createdAt: Date;
|
|
211
|
+
updatedAt: Date;
|
|
212
|
+
} & {
|
|
213
|
+
id: string;
|
|
214
|
+
status: FormStatus;
|
|
215
|
+
dataSchema: JSONSchema;
|
|
216
|
+
uiSchema: UIElementSchema;
|
|
217
|
+
})[], ({
|
|
218
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
164
219
|
title: string;
|
|
165
220
|
description: string | null;
|
|
166
221
|
slug: string;
|
|
@@ -176,14 +231,25 @@ declare const formsFragmentDef: _fragno_dev_core26.FragmentDefinition<FormsConfi
|
|
|
176
231
|
dataSchema: JSONSchema;
|
|
177
232
|
uiSchema: UIElementSchema;
|
|
178
233
|
})[]>;
|
|
179
|
-
deleteForm: (id: string) =>
|
|
234
|
+
deleteForm: (id: string) => _fragno_dev_db88.TxResult<void, void>;
|
|
180
235
|
validateData: (schema: JSONSchema, data: Record<string, unknown>) => ValidationResult;
|
|
181
236
|
createResponse: (formId: string, formVersion: number, data: ValidatedData, metadata?: {
|
|
182
237
|
ip?: string | null;
|
|
183
238
|
userAgent?: string | null;
|
|
184
|
-
}) =>
|
|
185
|
-
getResponse: (id: string) =>
|
|
186
|
-
id:
|
|
239
|
+
}) => _fragno_dev_db88.TxResult<string, _fragno_dev_db_schema164.FragnoId>;
|
|
240
|
+
getResponse: (id: string) => _fragno_dev_db88.TxResult<({
|
|
241
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
242
|
+
formId: string;
|
|
243
|
+
formVersion: number;
|
|
244
|
+
data: unknown;
|
|
245
|
+
submittedAt: Date;
|
|
246
|
+
userAgent: string | null;
|
|
247
|
+
ip: string | null;
|
|
248
|
+
} & {
|
|
249
|
+
id: string;
|
|
250
|
+
data: Record<string, unknown>;
|
|
251
|
+
}) | null, ({
|
|
252
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
187
253
|
formId: string;
|
|
188
254
|
formVersion: number;
|
|
189
255
|
data: unknown;
|
|
@@ -194,8 +260,19 @@ declare const formsFragmentDef: _fragno_dev_core26.FragmentDefinition<FormsConfi
|
|
|
194
260
|
id: string;
|
|
195
261
|
data: Record<string, unknown>;
|
|
196
262
|
}) | null>;
|
|
197
|
-
listResponses: (formId: string, sort?: SubmissionSortOptions) =>
|
|
198
|
-
id:
|
|
263
|
+
listResponses: (formId: string, sort?: SubmissionSortOptions) => _fragno_dev_db88.TxResult<({
|
|
264
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
265
|
+
formId: string;
|
|
266
|
+
formVersion: number;
|
|
267
|
+
data: unknown;
|
|
268
|
+
submittedAt: Date;
|
|
269
|
+
userAgent: string | null;
|
|
270
|
+
ip: string | null;
|
|
271
|
+
} & {
|
|
272
|
+
id: string;
|
|
273
|
+
data: Record<string, unknown>;
|
|
274
|
+
})[], ({
|
|
275
|
+
id: _fragno_dev_db_schema164.FragnoId;
|
|
199
276
|
formId: string;
|
|
200
277
|
formVersion: number;
|
|
201
278
|
data: unknown;
|
|
@@ -206,10 +283,8 @@ declare const formsFragmentDef: _fragno_dev_core26.FragmentDefinition<FormsConfi
|
|
|
206
283
|
id: string;
|
|
207
284
|
data: Record<string, unknown>;
|
|
208
285
|
})[]>;
|
|
209
|
-
deleteResponse: (id: string) =>
|
|
210
|
-
}, {}, {}, {},
|
|
211
|
-
_fragno_internal: _fragno_dev_db71.InternalFragmentInstance;
|
|
212
|
-
}>;
|
|
286
|
+
deleteResponse: (id: string) => _fragno_dev_db88.TxResult<void, void>;
|
|
287
|
+
}, {}, {}, {}, _fragno_dev_db88.DatabaseServiceContext<_fragno_dev_db88.HooksMap>, _fragno_dev_db88.DatabaseRequestContext<_fragno_dev_db88.HooksMap>, _fragno_dev_db_fragment_definition_builder0$1.DatabaseRequestStorage, []>;
|
|
213
288
|
//# sourceMappingURL=definition.d.ts.map
|
|
214
289
|
//#endregion
|
|
215
290
|
//#region src/index.d.ts
|
|
@@ -227,11 +302,25 @@ interface FormsConfig {
|
|
|
227
302
|
onResponseSubmitted?: (response: FormResponse) => Promise<void>;
|
|
228
303
|
staticForms?: StaticForm[];
|
|
229
304
|
}
|
|
230
|
-
declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
305
|
+
declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<Record<"form", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"title", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"description", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"slug", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string | null, string>> & Record<"dataSchema", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"uiSchema", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"version", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_form_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string | null, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"idx_form_slug", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["slug"]>>>> & Record<"response", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"formId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"formVersion", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"data", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"submittedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"userAgent", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"ip", _fragno_dev_db_schema0.Column<"string", string | null, string | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_response_form", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["formId"]>> & Record<"idx_response_submitted_at", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["submittedAt"]>>>>>>, _fragno_dev_core0.BoundServices<{
|
|
306
|
+
createForm: (input: NewForm) => _fragno_dev_db0.TxResult<string, _fragno_dev_db_schema0.FragnoId>;
|
|
307
|
+
getForm: (id: string) => _fragno_dev_db0.TxResult<({
|
|
308
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
309
|
+
title: string;
|
|
310
|
+
description: string | null;
|
|
311
|
+
slug: string;
|
|
312
|
+
status: string;
|
|
313
|
+
dataSchema: unknown;
|
|
314
|
+
uiSchema: unknown;
|
|
315
|
+
version: number;
|
|
316
|
+
createdAt: Date;
|
|
317
|
+
updatedAt: Date;
|
|
318
|
+
} & {
|
|
319
|
+
id: string;
|
|
320
|
+
status: FormStatus;
|
|
321
|
+
dataSchema: JSONSchema;
|
|
322
|
+
uiSchema: UIElementSchema;
|
|
323
|
+
}) | null, ({
|
|
235
324
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
236
325
|
title: string;
|
|
237
326
|
description: string | null;
|
|
@@ -248,7 +337,23 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
248
337
|
dataSchema: JSONSchema;
|
|
249
338
|
uiSchema: UIElementSchema;
|
|
250
339
|
}) | null>;
|
|
251
|
-
getFormBySlug: (slug: string) =>
|
|
340
|
+
getFormBySlug: (slug: string) => _fragno_dev_db0.TxResult<({
|
|
341
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
342
|
+
title: string;
|
|
343
|
+
description: string | null;
|
|
344
|
+
slug: string;
|
|
345
|
+
status: string;
|
|
346
|
+
dataSchema: unknown;
|
|
347
|
+
uiSchema: unknown;
|
|
348
|
+
version: number;
|
|
349
|
+
createdAt: Date;
|
|
350
|
+
updatedAt: Date;
|
|
351
|
+
} & {
|
|
352
|
+
id: string;
|
|
353
|
+
status: FormStatus;
|
|
354
|
+
dataSchema: JSONSchema;
|
|
355
|
+
uiSchema: UIElementSchema;
|
|
356
|
+
}) | null, ({
|
|
252
357
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
253
358
|
title: string;
|
|
254
359
|
description: string | null;
|
|
@@ -265,10 +370,37 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
265
370
|
dataSchema: JSONSchema;
|
|
266
371
|
uiSchema: UIElementSchema;
|
|
267
372
|
}) | null>;
|
|
268
|
-
updateForm: (id: string, input: UpdateForm) =>
|
|
373
|
+
updateForm: (id: string, input: UpdateForm) => _fragno_dev_db0.TxResult<{
|
|
269
374
|
success: boolean;
|
|
270
|
-
}
|
|
271
|
-
|
|
375
|
+
}, [{
|
|
376
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
377
|
+
title: string;
|
|
378
|
+
description: string | null;
|
|
379
|
+
slug: string;
|
|
380
|
+
status: string;
|
|
381
|
+
dataSchema: unknown;
|
|
382
|
+
uiSchema: unknown;
|
|
383
|
+
version: number;
|
|
384
|
+
createdAt: Date;
|
|
385
|
+
updatedAt: Date;
|
|
386
|
+
}[]]>;
|
|
387
|
+
listForms: () => _fragno_dev_db0.TxResult<({
|
|
388
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
389
|
+
title: string;
|
|
390
|
+
description: string | null;
|
|
391
|
+
slug: string;
|
|
392
|
+
status: string;
|
|
393
|
+
dataSchema: unknown;
|
|
394
|
+
uiSchema: unknown;
|
|
395
|
+
version: number;
|
|
396
|
+
createdAt: Date;
|
|
397
|
+
updatedAt: Date;
|
|
398
|
+
} & {
|
|
399
|
+
id: string;
|
|
400
|
+
status: FormStatus;
|
|
401
|
+
dataSchema: JSONSchema;
|
|
402
|
+
uiSchema: UIElementSchema;
|
|
403
|
+
})[], ({
|
|
272
404
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
273
405
|
title: string;
|
|
274
406
|
description: string | null;
|
|
@@ -285,13 +417,24 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
285
417
|
dataSchema: JSONSchema;
|
|
286
418
|
uiSchema: UIElementSchema;
|
|
287
419
|
})[]>;
|
|
288
|
-
deleteForm: (id: string) =>
|
|
420
|
+
deleteForm: (id: string) => _fragno_dev_db0.TxResult<void, void>;
|
|
289
421
|
validateData: (schema: JSONSchema, data: Record<string, unknown>) => ValidationResult;
|
|
290
422
|
createResponse: (formId: string, formVersion: number, data: ValidatedData, metadata?: {
|
|
291
423
|
ip?: string | null;
|
|
292
424
|
userAgent?: string | null;
|
|
293
|
-
}) =>
|
|
294
|
-
getResponse: (id: string) =>
|
|
425
|
+
}) => _fragno_dev_db0.TxResult<string, _fragno_dev_db_schema0.FragnoId>;
|
|
426
|
+
getResponse: (id: string) => _fragno_dev_db0.TxResult<({
|
|
427
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
428
|
+
formId: string;
|
|
429
|
+
formVersion: number;
|
|
430
|
+
data: unknown;
|
|
431
|
+
submittedAt: Date;
|
|
432
|
+
userAgent: string | null;
|
|
433
|
+
ip: string | null;
|
|
434
|
+
} & {
|
|
435
|
+
id: string;
|
|
436
|
+
data: Record<string, unknown>;
|
|
437
|
+
}) | null, ({
|
|
295
438
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
296
439
|
formId: string;
|
|
297
440
|
formVersion: number;
|
|
@@ -303,7 +446,18 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
303
446
|
id: string;
|
|
304
447
|
data: Record<string, unknown>;
|
|
305
448
|
}) | null>;
|
|
306
|
-
listResponses: (formId: string, sort?: SubmissionSortOptions) =>
|
|
449
|
+
listResponses: (formId: string, sort?: SubmissionSortOptions) => _fragno_dev_db0.TxResult<({
|
|
450
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
451
|
+
formId: string;
|
|
452
|
+
formVersion: number;
|
|
453
|
+
data: unknown;
|
|
454
|
+
submittedAt: Date;
|
|
455
|
+
userAgent: string | null;
|
|
456
|
+
ip: string | null;
|
|
457
|
+
} & {
|
|
458
|
+
id: string;
|
|
459
|
+
data: Record<string, unknown>;
|
|
460
|
+
})[], ({
|
|
307
461
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
308
462
|
formId: string;
|
|
309
463
|
formVersion: number;
|
|
@@ -315,7 +469,7 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
315
469
|
id: string;
|
|
316
470
|
data: Record<string, unknown>;
|
|
317
471
|
})[]>;
|
|
318
|
-
deleteResponse: (id: string) =>
|
|
472
|
+
deleteResponse: (id: string) => _fragno_dev_db0.TxResult<void, void>;
|
|
319
473
|
}>, {}, readonly [_fragno_dev_core0.FragnoRouteConfig<"GET", "/:slug", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodObject<{
|
|
320
474
|
id: zod211.ZodString;
|
|
321
475
|
title: zod211.ZodString;
|
|
@@ -335,11 +489,25 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
335
489
|
}, zod_v4_core12.$strip>, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/:slug/submit", zod211.ZodObject<{
|
|
336
490
|
data: zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>;
|
|
337
491
|
securityToken: zod211.ZodOptional<zod211.ZodString>;
|
|
338
|
-
}, zod_v4_core12.$strip>, zod211.ZodString, "NOT_FOUND" | "VALIDATION_ERROR" | "FORM_NOT_OPEN", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>]>, _fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
492
|
+
}, zod_v4_core12.$strip>, zod211.ZodString, "NOT_FOUND" | "VALIDATION_ERROR" | "FORM_NOT_OPEN", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>]>, _fragno_dev_core0.RouteFactory<FormsConfig, _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<Record<"form", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"title", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"description", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"slug", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string | null, string>> & Record<"dataSchema", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"uiSchema", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"version", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_form_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string | null, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"idx_form_slug", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["slug"]>>>> & Record<"response", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"formId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"formVersion", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"data", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"submittedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"userAgent", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"ip", _fragno_dev_db_schema0.Column<"string", string | null, string | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_response_form", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["formId"]>> & Record<"idx_response_submitted_at", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["submittedAt"]>>>>>>, _fragno_dev_core0.BoundServices<{
|
|
493
|
+
createForm: (input: NewForm) => _fragno_dev_db0.TxResult<string, _fragno_dev_db_schema0.FragnoId>;
|
|
494
|
+
getForm: (id: string) => _fragno_dev_db0.TxResult<({
|
|
495
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
496
|
+
title: string;
|
|
497
|
+
description: string | null;
|
|
498
|
+
slug: string;
|
|
499
|
+
status: string;
|
|
500
|
+
dataSchema: unknown;
|
|
501
|
+
uiSchema: unknown;
|
|
502
|
+
version: number;
|
|
503
|
+
createdAt: Date;
|
|
504
|
+
updatedAt: Date;
|
|
505
|
+
} & {
|
|
506
|
+
id: string;
|
|
507
|
+
status: FormStatus;
|
|
508
|
+
dataSchema: JSONSchema;
|
|
509
|
+
uiSchema: UIElementSchema;
|
|
510
|
+
}) | null, ({
|
|
343
511
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
344
512
|
title: string;
|
|
345
513
|
description: string | null;
|
|
@@ -356,7 +524,23 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
356
524
|
dataSchema: JSONSchema;
|
|
357
525
|
uiSchema: UIElementSchema;
|
|
358
526
|
}) | null>;
|
|
359
|
-
getFormBySlug: (slug: string) =>
|
|
527
|
+
getFormBySlug: (slug: string) => _fragno_dev_db0.TxResult<({
|
|
528
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
529
|
+
title: string;
|
|
530
|
+
description: string | null;
|
|
531
|
+
slug: string;
|
|
532
|
+
status: string;
|
|
533
|
+
dataSchema: unknown;
|
|
534
|
+
uiSchema: unknown;
|
|
535
|
+
version: number;
|
|
536
|
+
createdAt: Date;
|
|
537
|
+
updatedAt: Date;
|
|
538
|
+
} & {
|
|
539
|
+
id: string;
|
|
540
|
+
status: FormStatus;
|
|
541
|
+
dataSchema: JSONSchema;
|
|
542
|
+
uiSchema: UIElementSchema;
|
|
543
|
+
}) | null, ({
|
|
360
544
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
361
545
|
title: string;
|
|
362
546
|
description: string | null;
|
|
@@ -373,10 +557,37 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
373
557
|
dataSchema: JSONSchema;
|
|
374
558
|
uiSchema: UIElementSchema;
|
|
375
559
|
}) | null>;
|
|
376
|
-
updateForm: (id: string, input: UpdateForm) =>
|
|
560
|
+
updateForm: (id: string, input: UpdateForm) => _fragno_dev_db0.TxResult<{
|
|
377
561
|
success: boolean;
|
|
378
|
-
}
|
|
379
|
-
|
|
562
|
+
}, [{
|
|
563
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
564
|
+
title: string;
|
|
565
|
+
description: string | null;
|
|
566
|
+
slug: string;
|
|
567
|
+
status: string;
|
|
568
|
+
dataSchema: unknown;
|
|
569
|
+
uiSchema: unknown;
|
|
570
|
+
version: number;
|
|
571
|
+
createdAt: Date;
|
|
572
|
+
updatedAt: Date;
|
|
573
|
+
}[]]>;
|
|
574
|
+
listForms: () => _fragno_dev_db0.TxResult<({
|
|
575
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
576
|
+
title: string;
|
|
577
|
+
description: string | null;
|
|
578
|
+
slug: string;
|
|
579
|
+
status: string;
|
|
580
|
+
dataSchema: unknown;
|
|
581
|
+
uiSchema: unknown;
|
|
582
|
+
version: number;
|
|
583
|
+
createdAt: Date;
|
|
584
|
+
updatedAt: Date;
|
|
585
|
+
} & {
|
|
586
|
+
id: string;
|
|
587
|
+
status: FormStatus;
|
|
588
|
+
dataSchema: JSONSchema;
|
|
589
|
+
uiSchema: UIElementSchema;
|
|
590
|
+
})[], ({
|
|
380
591
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
381
592
|
title: string;
|
|
382
593
|
description: string | null;
|
|
@@ -393,13 +604,24 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
393
604
|
dataSchema: JSONSchema;
|
|
394
605
|
uiSchema: UIElementSchema;
|
|
395
606
|
})[]>;
|
|
396
|
-
deleteForm: (id: string) =>
|
|
607
|
+
deleteForm: (id: string) => _fragno_dev_db0.TxResult<void, void>;
|
|
397
608
|
validateData: (schema: JSONSchema, data: Record<string, unknown>) => ValidationResult;
|
|
398
609
|
createResponse: (formId: string, formVersion: number, data: ValidatedData, metadata?: {
|
|
399
610
|
ip?: string | null;
|
|
400
611
|
userAgent?: string | null;
|
|
401
|
-
}) =>
|
|
402
|
-
getResponse: (id: string) =>
|
|
612
|
+
}) => _fragno_dev_db0.TxResult<string, _fragno_dev_db_schema0.FragnoId>;
|
|
613
|
+
getResponse: (id: string) => _fragno_dev_db0.TxResult<({
|
|
614
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
615
|
+
formId: string;
|
|
616
|
+
formVersion: number;
|
|
617
|
+
data: unknown;
|
|
618
|
+
submittedAt: Date;
|
|
619
|
+
userAgent: string | null;
|
|
620
|
+
ip: string | null;
|
|
621
|
+
} & {
|
|
622
|
+
id: string;
|
|
623
|
+
data: Record<string, unknown>;
|
|
624
|
+
}) | null, ({
|
|
403
625
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
404
626
|
formId: string;
|
|
405
627
|
formVersion: number;
|
|
@@ -411,7 +633,18 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
411
633
|
id: string;
|
|
412
634
|
data: Record<string, unknown>;
|
|
413
635
|
}) | null>;
|
|
414
|
-
listResponses: (formId: string, sort?: SubmissionSortOptions) =>
|
|
636
|
+
listResponses: (formId: string, sort?: SubmissionSortOptions) => _fragno_dev_db0.TxResult<({
|
|
637
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
638
|
+
formId: string;
|
|
639
|
+
formVersion: number;
|
|
640
|
+
data: unknown;
|
|
641
|
+
submittedAt: Date;
|
|
642
|
+
userAgent: string | null;
|
|
643
|
+
ip: string | null;
|
|
644
|
+
} & {
|
|
645
|
+
id: string;
|
|
646
|
+
data: Record<string, unknown>;
|
|
647
|
+
})[], ({
|
|
415
648
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
416
649
|
formId: string;
|
|
417
650
|
formVersion: number;
|
|
@@ -423,7 +656,7 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
423
656
|
id: string;
|
|
424
657
|
data: Record<string, unknown>;
|
|
425
658
|
})[]>;
|
|
426
|
-
deleteResponse: (id: string) =>
|
|
659
|
+
deleteResponse: (id: string) => _fragno_dev_db0.TxResult<void, void>;
|
|
427
660
|
}>, {}, readonly [_fragno_dev_core0.FragnoRouteConfig<"GET", "/admin/forms", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodArray<zod211.ZodObject<{
|
|
428
661
|
id: zod211.ZodString;
|
|
429
662
|
title: zod211.ZodString;
|
|
@@ -457,27 +690,27 @@ declare const routes: readonly [_fragno_dev_core0.RouteFactory<FormsConfig, {
|
|
|
457
690
|
createdAt: zod211.ZodDate;
|
|
458
691
|
updatedAt: zod211.ZodDate;
|
|
459
692
|
}, zod_v4_core12.$strip>, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/admin/forms", zod211.ZodObject<{
|
|
693
|
+
title: zod211.ZodString;
|
|
694
|
+
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
695
|
+
slug: zod211.ZodString;
|
|
460
696
|
status: zod211.ZodEnum<{
|
|
461
697
|
draft: "draft";
|
|
462
698
|
open: "open";
|
|
463
699
|
closed: "closed";
|
|
464
700
|
static: "static";
|
|
465
701
|
}>;
|
|
466
|
-
title: zod211.ZodString;
|
|
467
|
-
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
468
|
-
slug: zod211.ZodString;
|
|
469
702
|
dataSchema: zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>;
|
|
470
703
|
uiSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
471
704
|
}, zod_v4_core12.$strip>, zod211.ZodString, "CREATE_FAILED" | "INVALID_JSON_SCHEMA", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"PUT", "/admin/forms/:id", zod211.ZodObject<{
|
|
705
|
+
title: zod211.ZodOptional<zod211.ZodString>;
|
|
706
|
+
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
707
|
+
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
472
708
|
status: zod211.ZodOptional<zod211.ZodEnum<{
|
|
473
709
|
draft: "draft";
|
|
474
710
|
open: "open";
|
|
475
711
|
closed: "closed";
|
|
476
712
|
static: "static";
|
|
477
713
|
}>>;
|
|
478
|
-
title: zod211.ZodOptional<zod211.ZodString>;
|
|
479
|
-
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
480
|
-
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
481
714
|
dataSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
482
715
|
uiSchema: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>>;
|
|
483
716
|
}, zod_v4_core12.$strip>, _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND" | "INVALID_JSON_SCHEMA" | "STATIC_FORM_READ_ONLY", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"DELETE", "/admin/forms/:id", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND" | "STATIC_FORM_READ_ONLY", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/admin/forms/:id/submissions", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodArray<zod211.ZodObject<{
|
|
@@ -549,27 +782,27 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
549
782
|
createdAt: zod211.ZodDate;
|
|
550
783
|
updatedAt: zod211.ZodDate;
|
|
551
784
|
}, zod_v4_core12.$strip>, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/admin/forms", zod211.ZodObject<{
|
|
785
|
+
title: zod211.ZodString;
|
|
786
|
+
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
787
|
+
slug: zod211.ZodString;
|
|
552
788
|
status: zod211.ZodEnum<{
|
|
553
789
|
draft: "draft";
|
|
554
790
|
open: "open";
|
|
555
791
|
closed: "closed";
|
|
556
792
|
static: "static";
|
|
557
793
|
}>;
|
|
558
|
-
title: zod211.ZodString;
|
|
559
|
-
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
560
|
-
slug: zod211.ZodString;
|
|
561
794
|
dataSchema: zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>;
|
|
562
795
|
uiSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
563
796
|
}, zod_v4_core12.$strip>, zod211.ZodString, "CREATE_FAILED" | "INVALID_JSON_SCHEMA", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"PUT", "/admin/forms/:id", zod211.ZodObject<{
|
|
797
|
+
title: zod211.ZodOptional<zod211.ZodString>;
|
|
798
|
+
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
799
|
+
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
564
800
|
status: zod211.ZodOptional<zod211.ZodEnum<{
|
|
565
801
|
draft: "draft";
|
|
566
802
|
open: "open";
|
|
567
803
|
closed: "closed";
|
|
568
804
|
static: "static";
|
|
569
805
|
}>>;
|
|
570
|
-
title: zod211.ZodOptional<zod211.ZodString>;
|
|
571
|
-
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
572
|
-
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
573
806
|
dataSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
574
807
|
uiSchema: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>>;
|
|
575
808
|
}, zod_v4_core12.$strip>, _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND" | "INVALID_JSON_SCHEMA" | "STATIC_FORM_READ_ONLY", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"DELETE", "/admin/forms/:id", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND" | "STATIC_FORM_READ_ONLY", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/admin/forms/:id/submissions", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodArray<zod211.ZodObject<{
|
|
@@ -588,11 +821,25 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
588
821
|
submittedAt: zod211.ZodDate;
|
|
589
822
|
ip: zod211.ZodNullable<zod211.ZodString>;
|
|
590
823
|
userAgent: zod211.ZodNullable<zod211.ZodString>;
|
|
591
|
-
}, zod_v4_core12.$strip>, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"DELETE", "/admin/submissions/:id", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>,
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
824
|
+
}, zod_v4_core12.$strip>, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"DELETE", "/admin/submissions/:id", _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>], _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<Record<"form", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"title", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"description", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"slug", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string | null, string>> & Record<"dataSchema", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"uiSchema", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"version", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_form_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string | null, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"idx_form_slug", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["slug"]>>>> & Record<"response", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"formId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"formVersion", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"data", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"submittedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"userAgent", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"ip", _fragno_dev_db_schema0.Column<"string", string | null, string | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_response_form", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["formId"]>> & Record<"idx_response_submitted_at", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["submittedAt"]>>>>>>, _fragno_dev_core0.BoundServices<{
|
|
825
|
+
createForm: (input: NewForm) => _fragno_dev_db0.TxResult<string, _fragno_dev_db_schema0.FragnoId>;
|
|
826
|
+
getForm: (id: string) => _fragno_dev_db0.TxResult<({
|
|
827
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
828
|
+
title: string;
|
|
829
|
+
description: string | null;
|
|
830
|
+
slug: string;
|
|
831
|
+
status: string;
|
|
832
|
+
dataSchema: unknown;
|
|
833
|
+
uiSchema: unknown;
|
|
834
|
+
version: number;
|
|
835
|
+
createdAt: Date;
|
|
836
|
+
updatedAt: Date;
|
|
837
|
+
} & {
|
|
838
|
+
id: string;
|
|
839
|
+
status: FormStatus;
|
|
840
|
+
dataSchema: JSONSchema;
|
|
841
|
+
uiSchema: UIElementSchema;
|
|
842
|
+
}) | null, ({
|
|
596
843
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
597
844
|
title: string;
|
|
598
845
|
description: string | null;
|
|
@@ -609,7 +856,23 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
609
856
|
dataSchema: JSONSchema;
|
|
610
857
|
uiSchema: UIElementSchema;
|
|
611
858
|
}) | null>;
|
|
612
|
-
getFormBySlug: (slug: string) =>
|
|
859
|
+
getFormBySlug: (slug: string) => _fragno_dev_db0.TxResult<({
|
|
860
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
861
|
+
title: string;
|
|
862
|
+
description: string | null;
|
|
863
|
+
slug: string;
|
|
864
|
+
status: string;
|
|
865
|
+
dataSchema: unknown;
|
|
866
|
+
uiSchema: unknown;
|
|
867
|
+
version: number;
|
|
868
|
+
createdAt: Date;
|
|
869
|
+
updatedAt: Date;
|
|
870
|
+
} & {
|
|
871
|
+
id: string;
|
|
872
|
+
status: FormStatus;
|
|
873
|
+
dataSchema: JSONSchema;
|
|
874
|
+
uiSchema: UIElementSchema;
|
|
875
|
+
}) | null, ({
|
|
613
876
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
614
877
|
title: string;
|
|
615
878
|
description: string | null;
|
|
@@ -626,10 +889,37 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
626
889
|
dataSchema: JSONSchema;
|
|
627
890
|
uiSchema: UIElementSchema;
|
|
628
891
|
}) | null>;
|
|
629
|
-
updateForm: (id: string, input: UpdateForm) =>
|
|
892
|
+
updateForm: (id: string, input: UpdateForm) => _fragno_dev_db0.TxResult<{
|
|
630
893
|
success: boolean;
|
|
631
|
-
}
|
|
632
|
-
|
|
894
|
+
}, [{
|
|
895
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
896
|
+
title: string;
|
|
897
|
+
description: string | null;
|
|
898
|
+
slug: string;
|
|
899
|
+
status: string;
|
|
900
|
+
dataSchema: unknown;
|
|
901
|
+
uiSchema: unknown;
|
|
902
|
+
version: number;
|
|
903
|
+
createdAt: Date;
|
|
904
|
+
updatedAt: Date;
|
|
905
|
+
}[]]>;
|
|
906
|
+
listForms: () => _fragno_dev_db0.TxResult<({
|
|
907
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
908
|
+
title: string;
|
|
909
|
+
description: string | null;
|
|
910
|
+
slug: string;
|
|
911
|
+
status: string;
|
|
912
|
+
dataSchema: unknown;
|
|
913
|
+
uiSchema: unknown;
|
|
914
|
+
version: number;
|
|
915
|
+
createdAt: Date;
|
|
916
|
+
updatedAt: Date;
|
|
917
|
+
} & {
|
|
918
|
+
id: string;
|
|
919
|
+
status: FormStatus;
|
|
920
|
+
dataSchema: JSONSchema;
|
|
921
|
+
uiSchema: UIElementSchema;
|
|
922
|
+
})[], ({
|
|
633
923
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
634
924
|
title: string;
|
|
635
925
|
description: string | null;
|
|
@@ -646,13 +936,24 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
646
936
|
dataSchema: JSONSchema;
|
|
647
937
|
uiSchema: UIElementSchema;
|
|
648
938
|
})[]>;
|
|
649
|
-
deleteForm: (id: string) =>
|
|
939
|
+
deleteForm: (id: string) => _fragno_dev_db0.TxResult<void, void>;
|
|
650
940
|
validateData: (schema: JSONSchema, data: Record<string, unknown>) => ValidationResult;
|
|
651
941
|
createResponse: (formId: string, formVersion: number, data: ValidatedData, metadata?: {
|
|
652
942
|
ip?: string | null;
|
|
653
943
|
userAgent?: string | null;
|
|
654
|
-
}) =>
|
|
655
|
-
getResponse: (id: string) =>
|
|
944
|
+
}) => _fragno_dev_db0.TxResult<string, _fragno_dev_db_schema0.FragnoId>;
|
|
945
|
+
getResponse: (id: string) => _fragno_dev_db0.TxResult<({
|
|
946
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
947
|
+
formId: string;
|
|
948
|
+
formVersion: number;
|
|
949
|
+
data: unknown;
|
|
950
|
+
submittedAt: Date;
|
|
951
|
+
userAgent: string | null;
|
|
952
|
+
ip: string | null;
|
|
953
|
+
} & {
|
|
954
|
+
id: string;
|
|
955
|
+
data: Record<string, unknown>;
|
|
956
|
+
}) | null, ({
|
|
656
957
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
657
958
|
formId: string;
|
|
658
959
|
formVersion: number;
|
|
@@ -664,7 +965,18 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
664
965
|
id: string;
|
|
665
966
|
data: Record<string, unknown>;
|
|
666
967
|
}) | null>;
|
|
667
|
-
listResponses: (formId: string, sort?: SubmissionSortOptions) =>
|
|
968
|
+
listResponses: (formId: string, sort?: SubmissionSortOptions) => _fragno_dev_db0.TxResult<({
|
|
969
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
970
|
+
formId: string;
|
|
971
|
+
formVersion: number;
|
|
972
|
+
data: unknown;
|
|
973
|
+
submittedAt: Date;
|
|
974
|
+
userAgent: string | null;
|
|
975
|
+
ip: string | null;
|
|
976
|
+
} & {
|
|
977
|
+
id: string;
|
|
978
|
+
data: Record<string, unknown>;
|
|
979
|
+
})[], ({
|
|
668
980
|
id: _fragno_dev_db_schema0.FragnoId;
|
|
669
981
|
formId: string;
|
|
670
982
|
formVersion: number;
|
|
@@ -676,10 +988,8 @@ declare function createFormsFragment(config: FormsConfig | undefined, options: F
|
|
|
676
988
|
id: string;
|
|
677
989
|
data: Record<string, unknown>;
|
|
678
990
|
})[]>;
|
|
679
|
-
deleteResponse: (id: string) =>
|
|
680
|
-
}>, _fragno_dev_db0.DatabaseServiceContext<_fragno_dev_db0.HooksMap>, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, FragnoPublicConfigWithDatabase
|
|
681
|
-
_fragno_internal: _fragno_dev_db0.InternalFragmentInstance;
|
|
682
|
-
}>;
|
|
991
|
+
deleteResponse: (id: string) => _fragno_dev_db0.TxResult<void, void>;
|
|
992
|
+
}>, _fragno_dev_db0.DatabaseServiceContext<_fragno_dev_db0.HooksMap>, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, FragnoPublicConfigWithDatabase>;
|
|
683
993
|
declare function createFormsClients(fragnoConfig: FragnoPublicClientConfig): {
|
|
684
994
|
useForm: _fragno_dev_core_client0.FragnoClientHookData<"GET", "/:slug", zod211.ZodObject<{
|
|
685
995
|
id: zod211.ZodString;
|
|
@@ -736,19 +1046,19 @@ declare function createFormsClients(fragnoConfig: FragnoPublicClientConfig): {
|
|
|
736
1046
|
createdAt: zod211.ZodDate;
|
|
737
1047
|
updatedAt: zod211.ZodDate;
|
|
738
1048
|
}, zod_v4_core12.$strip>, "NOT_FOUND", string>;
|
|
739
|
-
useCreateForm: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api4.NonGetHTTPMethod, "/admin/forms",
|
|
1049
|
+
useCreateForm: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api4.NonGetHTTPMethod, "/admin/forms", zod211.ZodObject<{
|
|
1050
|
+
title: zod211.ZodString;
|
|
1051
|
+
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
1052
|
+
slug: zod211.ZodString;
|
|
740
1053
|
status: zod211.ZodEnum<{
|
|
741
1054
|
draft: "draft";
|
|
742
1055
|
open: "open";
|
|
743
1056
|
closed: "closed";
|
|
744
1057
|
static: "static";
|
|
745
1058
|
}>;
|
|
746
|
-
title: zod211.ZodString;
|
|
747
|
-
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
748
|
-
slug: zod211.ZodString;
|
|
749
1059
|
dataSchema: zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>;
|
|
750
1060
|
uiSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
751
|
-
}, zod_v4_core12.$strip> | undefined, zod211.ZodString | zod211.ZodArray<zod211.ZodObject<{
|
|
1061
|
+
}, zod_v4_core12.$strip> | _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodString | zod211.ZodArray<zod211.ZodObject<{
|
|
752
1062
|
id: zod211.ZodString;
|
|
753
1063
|
title: zod211.ZodString;
|
|
754
1064
|
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
@@ -765,19 +1075,19 @@ declare function createFormsClients(fragnoConfig: FragnoPublicClientConfig): {
|
|
|
765
1075
|
createdAt: zod211.ZodDate;
|
|
766
1076
|
updatedAt: zod211.ZodDate;
|
|
767
1077
|
}, zod_v4_core12.$strip>> | undefined, string, string>;
|
|
768
|
-
useUpdateForm: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api4.NonGetHTTPMethod, "/admin/forms/:id",
|
|
1078
|
+
useUpdateForm: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api4.NonGetHTTPMethod, "/admin/forms/:id", zod211.ZodObject<{
|
|
1079
|
+
title: zod211.ZodOptional<zod211.ZodString>;
|
|
1080
|
+
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
1081
|
+
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
769
1082
|
status: zod211.ZodOptional<zod211.ZodEnum<{
|
|
770
1083
|
draft: "draft";
|
|
771
1084
|
open: "open";
|
|
772
1085
|
closed: "closed";
|
|
773
1086
|
static: "static";
|
|
774
1087
|
}>>;
|
|
775
|
-
title: zod211.ZodOptional<zod211.ZodString>;
|
|
776
|
-
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
777
|
-
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
778
1088
|
dataSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
779
1089
|
uiSchema: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>>;
|
|
780
|
-
}, zod_v4_core12.$strip> |
|
|
1090
|
+
}, zod_v4_core12.$strip> | _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodObject<{
|
|
781
1091
|
id: zod211.ZodString;
|
|
782
1092
|
title: zod211.ZodString;
|
|
783
1093
|
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
@@ -793,20 +1103,20 @@ declare function createFormsClients(fragnoConfig: FragnoPublicClientConfig): {
|
|
|
793
1103
|
version: zod211.ZodNumber;
|
|
794
1104
|
createdAt: zod211.ZodDate;
|
|
795
1105
|
updatedAt: zod211.ZodDate;
|
|
796
|
-
}, zod_v4_core12.$strip> | undefined, "NOT_FOUND" | "INVALID_JSON_SCHEMA" | "STATIC_FORM_READ_ONLY", string>;
|
|
797
|
-
useDeleteForm: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api4.NonGetHTTPMethod, "/admin/forms/:id",
|
|
1106
|
+
}, zod_v4_core12.$strip> | _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND" | "INVALID_JSON_SCHEMA" | "STATIC_FORM_READ_ONLY", string>;
|
|
1107
|
+
useDeleteForm: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api4.NonGetHTTPMethod, "/admin/forms/:id", zod211.ZodObject<{
|
|
1108
|
+
title: zod211.ZodOptional<zod211.ZodString>;
|
|
1109
|
+
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
1110
|
+
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
798
1111
|
status: zod211.ZodOptional<zod211.ZodEnum<{
|
|
799
1112
|
draft: "draft";
|
|
800
1113
|
open: "open";
|
|
801
1114
|
closed: "closed";
|
|
802
1115
|
static: "static";
|
|
803
1116
|
}>>;
|
|
804
|
-
title: zod211.ZodOptional<zod211.ZodString>;
|
|
805
|
-
description: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>>;
|
|
806
|
-
slug: zod211.ZodOptional<zod211.ZodString>;
|
|
807
1117
|
dataSchema: zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>;
|
|
808
1118
|
uiSchema: zod211.ZodOptional<zod211.ZodOptional<zod211.ZodRecord<zod211.ZodString, zod211.ZodUnknown>>>;
|
|
809
|
-
}, zod_v4_core12.$strip> |
|
|
1119
|
+
}, zod_v4_core12.$strip> | _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, zod211.ZodObject<{
|
|
810
1120
|
id: zod211.ZodString;
|
|
811
1121
|
title: zod211.ZodString;
|
|
812
1122
|
description: zod211.ZodOptional<zod211.ZodNullable<zod211.ZodString>>;
|
|
@@ -822,7 +1132,7 @@ declare function createFormsClients(fragnoConfig: FragnoPublicClientConfig): {
|
|
|
822
1132
|
version: zod211.ZodNumber;
|
|
823
1133
|
createdAt: zod211.ZodDate;
|
|
824
1134
|
updatedAt: zod211.ZodDate;
|
|
825
|
-
}, zod_v4_core12.$strip> | undefined, "NOT_FOUND" | "INVALID_JSON_SCHEMA" | "STATIC_FORM_READ_ONLY", string>;
|
|
1135
|
+
}, zod_v4_core12.$strip> | _standard_schema_spec6.StandardSchemaV1<unknown, unknown> | undefined, "NOT_FOUND" | "INVALID_JSON_SCHEMA" | "STATIC_FORM_READ_ONLY", string>;
|
|
826
1136
|
useSubmissions: _fragno_dev_core_client0.FragnoClientHookData<"GET", "/admin/forms/:id/submissions", zod211.ZodArray<zod211.ZodObject<{
|
|
827
1137
|
id: zod211.ZodString;
|
|
828
1138
|
formId: zod211.ZodNullable<zod211.ZodString>;
|