@exposify/next 0.0.0-stage → 0.0.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.
@@ -0,0 +1,23 @@
1
+ type FieldType = "string" | "number" | "boolean" | "json" | "file";
2
+ interface ActionField {
3
+ name: string;
4
+ type: FieldType;
5
+ /** Read with getAll(): a repeated field, sent as an array. */
6
+ array?: true;
7
+ /** Its allowed values, from `LIST.includes(x)` over a constant list. */
8
+ enum?: string[];
9
+ /** Always needed: a parameter of its own (a `.bind` argument), a non-optional key of an object parameter, or required by every form that submits to it. */
10
+ required?: true;
11
+ /** From the form's input (pass 3, forms.ts). */
12
+ min?: number;
13
+ max?: number;
14
+ minLength?: number;
15
+ maxLength?: number;
16
+ pattern?: string;
17
+ /** Where it was found: the action's code, its form, or both. */
18
+ origin?: "action" | "form" | "both";
19
+ /** For the agent: format, units, what it refers to (from an accepted proposal). */
20
+ description?: string;
21
+ }
22
+
23
+ export type { ActionField as A };
@@ -0,0 +1,23 @@
1
+ type FieldType = "string" | "number" | "boolean" | "json" | "file";
2
+ interface ActionField {
3
+ name: string;
4
+ type: FieldType;
5
+ /** Read with getAll(): a repeated field, sent as an array. */
6
+ array?: true;
7
+ /** Its allowed values, from `LIST.includes(x)` over a constant list. */
8
+ enum?: string[];
9
+ /** Always needed: a parameter of its own (a `.bind` argument), a non-optional key of an object parameter, or required by every form that submits to it. */
10
+ required?: true;
11
+ /** From the form's input (pass 3, forms.ts). */
12
+ min?: number;
13
+ max?: number;
14
+ minLength?: number;
15
+ maxLength?: number;
16
+ pattern?: string;
17
+ /** Where it was found: the action's code, its form, or both. */
18
+ origin?: "action" | "form" | "both";
19
+ /** For the agent: format, units, what it refers to (from an accepted proposal). */
20
+ description?: string;
21
+ }
22
+
23
+ export type { ActionField as A };