@objectstack/spec 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -1
- package/dist/api/contract.zod.d.ts +1733 -0
- package/dist/api/contract.zod.d.ts.map +1 -0
- package/dist/api/contract.zod.js +138 -0
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +1648 -10
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +149 -8
- package/dist/data/filter.zod.d.ts +295 -0
- package/dist/data/filter.zod.d.ts.map +1 -0
- package/dist/data/filter.zod.js +226 -0
- package/dist/data/mapping.zod.d.ts +215 -2
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +505 -25
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +32 -5
- package/dist/data/query.zod.d.ts +349 -0
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +77 -1
- package/dist/data/trigger.zod.d.ts +354 -0
- package/dist/data/trigger.zod.d.ts.map +1 -0
- package/dist/data/trigger.zod.js +195 -0
- package/dist/data/validation.zod.d.ts +83 -43
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +51 -5
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/system/api.zod.d.ts +130 -4
- package/dist/system/api.zod.d.ts.map +1 -1
- package/dist/system/api.zod.js +4 -1
- package/dist/system/auth.zod.d.ts +2287 -0
- package/dist/system/auth.zod.d.ts.map +1 -0
- package/dist/system/auth.zod.js +365 -0
- package/dist/system/datasource.zod.d.ts +193 -30
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +58 -11
- package/dist/system/discovery.zod.d.ts +174 -0
- package/dist/system/discovery.zod.d.ts.map +1 -0
- package/dist/system/discovery.zod.js +53 -0
- package/dist/system/driver.zod.d.ts +1631 -0
- package/dist/system/driver.zod.d.ts.map +1 -0
- package/dist/system/driver.zod.js +337 -0
- package/dist/system/license.zod.d.ts +2 -2
- package/dist/system/manifest.zod.d.ts +323 -52
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +91 -17
- package/dist/system/plugin.zod.d.ts +3516 -0
- package/dist/system/plugin.zod.d.ts.map +1 -0
- package/dist/system/plugin.zod.js +226 -0
- package/dist/system/policy.zod.d.ts +10 -10
- package/dist/system/territory.zod.d.ts +1 -1
- package/dist/system/webhook.zod.d.ts +3 -3
- package/dist/ui/action.zod.d.ts +19 -12
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/action.zod.js +7 -1
- package/dist/ui/app.zod.d.ts +109 -3
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +13 -2
- package/dist/ui/dashboard.zod.d.ts +19 -13
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +10 -3
- package/dist/ui/page.zod.d.ts +6 -6
- package/dist/ui/report.zod.d.ts +13 -32
- package/dist/ui/report.zod.d.ts.map +1 -1
- package/dist/ui/report.zod.js +10 -9
- package/dist/ui/theme.zod.d.ts +1221 -0
- package/dist/ui/theme.zod.d.ts.map +1 -0
- package/dist/ui/theme.zod.js +202 -0
- package/dist/ui/widget.zod.d.ts +350 -0
- package/dist/ui/widget.zod.d.ts.map +1 -0
- package/dist/ui/widget.zod.js +66 -0
- package/json-schema/AccountLinkingConfig.json +27 -0
- package/json-schema/Action.json +8 -2
- package/json-schema/ActionParam.json +8 -2
- package/json-schema/Address.json +40 -0
- package/json-schema/AggregationFunction.json +19 -0
- package/json-schema/AggregationNode.json +42 -0
- package/json-schema/Animation.json +56 -0
- package/json-schema/ApiCapabilities.json +28 -0
- package/json-schema/ApiError.json +27 -0
- package/json-schema/ApiRoutes.json +41 -0
- package/json-schema/App.json +13 -2
- package/json-schema/AsyncValidation.json +70 -0
- package/json-schema/AuthConfig.json +606 -0
- package/json-schema/AuthPluginConfig.json +28 -0
- package/json-schema/AuthStrategy.json +17 -0
- package/json-schema/AuthenticationConfig.json +601 -0
- package/json-schema/AuthenticationProvider.json +617 -0
- package/json-schema/BaseResponse.json +63 -0
- package/json-schema/BorderRadius.json +44 -0
- package/json-schema/Breakpoints.json +36 -0
- package/json-schema/BulkRequest.json +29 -0
- package/json-schema/BulkResponse.json +108 -0
- package/json-schema/CSRFConfig.json +31 -0
- package/json-schema/ColorPalette.json +83 -0
- package/json-schema/ComparisonOperator.json +56 -0
- package/json-schema/ConditionalValidation.json +793 -0
- package/json-schema/CreateRequest.json +20 -0
- package/json-schema/CrossFieldValidation.json +56 -0
- package/json-schema/CustomValidator.json +57 -0
- package/json-schema/Dashboard.json +20 -0
- package/json-schema/DashboardWidget.json +20 -0
- package/json-schema/DatabaseAdapter.json +38 -0
- package/json-schema/Datasource.json +25 -23
- package/json-schema/DatasourceCapabilities.json +25 -5
- package/json-schema/DeleteResponse.json +68 -0
- package/json-schema/Discovery.json +114 -0
- package/json-schema/DriverCapabilities.json +69 -0
- package/json-schema/DriverDefinition.json +86 -0
- package/json-schema/DriverInterface.json +88 -0
- package/json-schema/DriverOptions.json +23 -0
- package/json-schema/DriverType.json +1 -18
- package/json-schema/EmailPasswordConfig.json +43 -0
- package/json-schema/EqualityOperator.json +14 -0
- package/json-schema/ExportRequest.json +786 -0
- package/json-schema/Field.json +75 -4
- package/json-schema/FieldOperators.json +108 -0
- package/json-schema/FieldType.json +8 -2
- package/json-schema/FieldWidgetProps.json +327 -0
- package/json-schema/FilterCondition.json +28 -0
- package/json-schema/I18nContext.json +12 -0
- package/json-schema/JoinNode.json +455 -0
- package/json-schema/JoinType.json +15 -0
- package/json-schema/ListRecordResponse.json +103 -0
- package/json-schema/LocationCoordinates.json +36 -0
- package/json-schema/Logger.json +25 -0
- package/json-schema/MagicLinkConfig.json +21 -0
- package/json-schema/Manifest.json +243 -18
- package/json-schema/Mapping.json +328 -0
- package/json-schema/ModificationResult.json +46 -0
- package/json-schema/NormalizedFilter.json +348 -0
- package/json-schema/OAuthProvider.json +66 -0
- package/json-schema/Object.json +103 -6
- package/json-schema/ObjectCapabilities.json +26 -0
- package/json-schema/ObjectQLClient.json +12 -0
- package/json-schema/PasskeyConfig.json +54 -0
- package/json-schema/Plugin.json +20 -0
- package/json-schema/PluginContext.json +91 -0
- package/json-schema/PluginLifecycle.json +11 -0
- package/json-schema/Query.json +328 -0
- package/json-schema/QueryFilter.json +34 -0
- package/json-schema/RangeOperator.json +41 -0
- package/json-schema/RateLimitConfig.json +36 -0
- package/json-schema/RecordData.json +11 -0
- package/json-schema/Report.json +20 -26
- package/json-schema/Router.json +12 -0
- package/json-schema/Scheduler.json +12 -0
- package/json-schema/ScopedStorage.json +12 -0
- package/json-schema/SessionConfig.json +56 -0
- package/json-schema/SetOperator.json +18 -0
- package/json-schema/Shadow.json +44 -0
- package/json-schema/SingleRecordResponse.json +69 -0
- package/json-schema/Spacing.json +64 -0
- package/json-schema/SpecialOperator.json +18 -0
- package/json-schema/StandardAuthProvider.json +622 -0
- package/json-schema/StringOperator.json +21 -0
- package/json-schema/SystemAPI.json +12 -0
- package/json-schema/Theme.json +543 -0
- package/json-schema/ThemeMode.json +14 -0
- package/json-schema/Trigger.json +73 -0
- package/json-schema/TriggerAction.json +14 -0
- package/json-schema/TriggerContext.json +61 -0
- package/json-schema/TriggerTiming.json +13 -0
- package/json-schema/TwoFactorConfig.json +40 -0
- package/json-schema/Typography.json +142 -0
- package/json-schema/UpdateRequest.json +20 -0
- package/json-schema/UserFieldMapping.json +47 -0
- package/json-schema/ValidationRule.json +583 -0
- package/json-schema/WindowFunction.json +24 -0
- package/json-schema/WindowFunctionNode.json +104 -0
- package/json-schema/WindowSpec.json +65 -0
- package/json-schema/ZIndex.json +44 -0
- package/package.json +8 -3
package/dist/data/field.zod.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* Field Type Enum
|
|
4
4
|
*/
|
|
5
|
-
export declare const FieldType: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "
|
|
5
|
+
export declare const FieldType: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "address", "code", "color", "rating", "signature"]>;
|
|
6
6
|
export type FieldType = z.infer<typeof FieldType>;
|
|
7
7
|
/**
|
|
8
8
|
* Select Option Schema
|
|
@@ -23,17 +23,68 @@ export declare const SelectOptionSchema: z.ZodObject<{
|
|
|
23
23
|
color?: string | undefined;
|
|
24
24
|
default?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Location Coordinates Schema
|
|
28
|
+
* GPS coordinates for location field type
|
|
29
|
+
*/
|
|
30
|
+
export declare const LocationCoordinatesSchema: z.ZodObject<{
|
|
31
|
+
latitude: z.ZodNumber;
|
|
32
|
+
longitude: z.ZodNumber;
|
|
33
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
accuracy: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
latitude: number;
|
|
37
|
+
longitude: number;
|
|
38
|
+
altitude?: number | undefined;
|
|
39
|
+
accuracy?: number | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
latitude: number;
|
|
42
|
+
longitude: number;
|
|
43
|
+
altitude?: number | undefined;
|
|
44
|
+
accuracy?: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Address Schema
|
|
48
|
+
* Structured address for address field type
|
|
49
|
+
*/
|
|
50
|
+
export declare const AddressSchema: z.ZodObject<{
|
|
51
|
+
street: z.ZodOptional<z.ZodString>;
|
|
52
|
+
city: z.ZodOptional<z.ZodString>;
|
|
53
|
+
state: z.ZodOptional<z.ZodString>;
|
|
54
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
55
|
+
country: z.ZodOptional<z.ZodString>;
|
|
56
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
57
|
+
formatted: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
street?: string | undefined;
|
|
60
|
+
city?: string | undefined;
|
|
61
|
+
state?: string | undefined;
|
|
62
|
+
postalCode?: string | undefined;
|
|
63
|
+
country?: string | undefined;
|
|
64
|
+
countryCode?: string | undefined;
|
|
65
|
+
formatted?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
street?: string | undefined;
|
|
68
|
+
city?: string | undefined;
|
|
69
|
+
state?: string | undefined;
|
|
70
|
+
postalCode?: string | undefined;
|
|
71
|
+
country?: string | undefined;
|
|
72
|
+
countryCode?: string | undefined;
|
|
73
|
+
formatted?: string | undefined;
|
|
74
|
+
}>;
|
|
26
75
|
/**
|
|
27
76
|
* Field Schema - Best Practice Enterprise Pattern
|
|
28
77
|
*/
|
|
29
78
|
export declare const FieldSchema: z.ZodObject<{
|
|
30
79
|
/** Identity */
|
|
31
|
-
name: z.ZodString
|
|
32
|
-
label: z.ZodString
|
|
33
|
-
type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "
|
|
80
|
+
name: z.ZodOptional<z.ZodString>;
|
|
81
|
+
label: z.ZodOptional<z.ZodString>;
|
|
82
|
+
type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "address", "code", "color", "rating", "signature"]>;
|
|
34
83
|
description: z.ZodOptional<z.ZodString>;
|
|
84
|
+
format: z.ZodOptional<z.ZodString>;
|
|
35
85
|
/** Database Constraints */
|
|
36
86
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
+
searchable: z.ZodDefault<z.ZodBoolean>;
|
|
37
88
|
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
38
89
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
39
90
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
@@ -83,6 +134,18 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
83
134
|
function: "min" | "max" | "count" | "sum" | "avg";
|
|
84
135
|
field: string;
|
|
85
136
|
}>>;
|
|
137
|
+
/** Enhanced Field Type Configurations */
|
|
138
|
+
language: z.ZodOptional<z.ZodString>;
|
|
139
|
+
theme: z.ZodOptional<z.ZodString>;
|
|
140
|
+
lineNumbers: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
maxRating: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
allowHalf: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
displayMap: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
allowGeocoding: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
addressFormat: z.ZodOptional<z.ZodEnum<["us", "uk", "international"]>>;
|
|
146
|
+
colorFormat: z.ZodOptional<z.ZodEnum<["hex", "rgb", "rgba", "hsl"]>>;
|
|
147
|
+
allowAlpha: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
presetColors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
149
|
/** Security & Visibility */
|
|
87
150
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
88
151
|
readonly: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -91,10 +154,9 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
91
154
|
index: z.ZodDefault<z.ZodBoolean>;
|
|
92
155
|
externalId: z.ZodDefault<z.ZodBoolean>;
|
|
93
156
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "
|
|
95
|
-
label: string;
|
|
96
|
-
name: string;
|
|
157
|
+
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
|
|
97
158
|
required: boolean;
|
|
159
|
+
searchable: boolean;
|
|
98
160
|
multiple: boolean;
|
|
99
161
|
unique: boolean;
|
|
100
162
|
deleteBehavior: "set_null" | "cascade" | "restrict";
|
|
@@ -110,7 +172,10 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
110
172
|
color?: string | undefined;
|
|
111
173
|
default?: boolean | undefined;
|
|
112
174
|
}[] | undefined;
|
|
175
|
+
label?: string | undefined;
|
|
176
|
+
name?: string | undefined;
|
|
113
177
|
description?: string | undefined;
|
|
178
|
+
format?: string | undefined;
|
|
114
179
|
defaultValue?: any;
|
|
115
180
|
maxLength?: number | undefined;
|
|
116
181
|
minLength?: number | undefined;
|
|
@@ -127,10 +192,19 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
127
192
|
function: "min" | "max" | "count" | "sum" | "avg";
|
|
128
193
|
field: string;
|
|
129
194
|
} | undefined;
|
|
195
|
+
language?: string | undefined;
|
|
196
|
+
theme?: string | undefined;
|
|
197
|
+
lineNumbers?: boolean | undefined;
|
|
198
|
+
maxRating?: number | undefined;
|
|
199
|
+
allowHalf?: boolean | undefined;
|
|
200
|
+
displayMap?: boolean | undefined;
|
|
201
|
+
allowGeocoding?: boolean | undefined;
|
|
202
|
+
addressFormat?: "us" | "uk" | "international" | undefined;
|
|
203
|
+
colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
204
|
+
allowAlpha?: boolean | undefined;
|
|
205
|
+
presetColors?: string[] | undefined;
|
|
130
206
|
}, {
|
|
131
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "
|
|
132
|
-
label: string;
|
|
133
|
-
name: string;
|
|
207
|
+
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
|
|
134
208
|
formula?: string | undefined;
|
|
135
209
|
options?: {
|
|
136
210
|
value: string;
|
|
@@ -138,8 +212,12 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
138
212
|
color?: string | undefined;
|
|
139
213
|
default?: boolean | undefined;
|
|
140
214
|
}[] | undefined;
|
|
215
|
+
label?: string | undefined;
|
|
216
|
+
name?: string | undefined;
|
|
141
217
|
description?: string | undefined;
|
|
218
|
+
format?: string | undefined;
|
|
142
219
|
required?: boolean | undefined;
|
|
220
|
+
searchable?: boolean | undefined;
|
|
143
221
|
multiple?: boolean | undefined;
|
|
144
222
|
unique?: boolean | undefined;
|
|
145
223
|
defaultValue?: any;
|
|
@@ -159,6 +237,17 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
159
237
|
function: "min" | "max" | "count" | "sum" | "avg";
|
|
160
238
|
field: string;
|
|
161
239
|
} | undefined;
|
|
240
|
+
language?: string | undefined;
|
|
241
|
+
theme?: string | undefined;
|
|
242
|
+
lineNumbers?: boolean | undefined;
|
|
243
|
+
maxRating?: number | undefined;
|
|
244
|
+
allowHalf?: boolean | undefined;
|
|
245
|
+
displayMap?: boolean | undefined;
|
|
246
|
+
allowGeocoding?: boolean | undefined;
|
|
247
|
+
addressFormat?: "us" | "uk" | "international" | undefined;
|
|
248
|
+
colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
249
|
+
allowAlpha?: boolean | undefined;
|
|
250
|
+
presetColors?: string[] | undefined;
|
|
162
251
|
hidden?: boolean | undefined;
|
|
163
252
|
readonly?: boolean | undefined;
|
|
164
253
|
encryption?: boolean | undefined;
|
|
@@ -167,4 +256,1553 @@ export declare const FieldSchema: z.ZodObject<{
|
|
|
167
256
|
}>;
|
|
168
257
|
export type Field = z.infer<typeof FieldSchema>;
|
|
169
258
|
export type SelectOption = z.infer<typeof SelectOptionSchema>;
|
|
259
|
+
export type LocationCoordinates = z.infer<typeof LocationCoordinatesSchema>;
|
|
260
|
+
export type Address = z.infer<typeof AddressSchema>;
|
|
261
|
+
/**
|
|
262
|
+
* Field Factory Helper
|
|
263
|
+
*/
|
|
264
|
+
export type FieldInput = Omit<Partial<Field>, 'type'>;
|
|
265
|
+
export declare const Field: {
|
|
266
|
+
text: (config?: FieldInput) => {
|
|
267
|
+
readonly formula?: string | undefined;
|
|
268
|
+
readonly options?: {
|
|
269
|
+
value: string;
|
|
270
|
+
label: string;
|
|
271
|
+
color?: string | undefined;
|
|
272
|
+
default?: boolean | undefined;
|
|
273
|
+
}[] | undefined;
|
|
274
|
+
readonly label?: string | undefined;
|
|
275
|
+
readonly name?: string | undefined;
|
|
276
|
+
readonly description?: string | undefined;
|
|
277
|
+
readonly format?: string | undefined;
|
|
278
|
+
readonly required?: boolean | undefined;
|
|
279
|
+
readonly searchable?: boolean | undefined;
|
|
280
|
+
readonly multiple?: boolean | undefined;
|
|
281
|
+
readonly unique?: boolean | undefined;
|
|
282
|
+
readonly defaultValue?: any;
|
|
283
|
+
readonly maxLength?: number | undefined;
|
|
284
|
+
readonly minLength?: number | undefined;
|
|
285
|
+
readonly precision?: number | undefined;
|
|
286
|
+
readonly scale?: number | undefined;
|
|
287
|
+
readonly min?: number | undefined;
|
|
288
|
+
readonly max?: number | undefined;
|
|
289
|
+
readonly reference?: string | undefined;
|
|
290
|
+
readonly referenceFilters?: string[] | undefined;
|
|
291
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
292
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
293
|
+
readonly expression?: string | undefined;
|
|
294
|
+
readonly summaryOperations?: {
|
|
295
|
+
object: string;
|
|
296
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
297
|
+
field: string;
|
|
298
|
+
} | undefined;
|
|
299
|
+
readonly language?: string | undefined;
|
|
300
|
+
readonly theme?: string | undefined;
|
|
301
|
+
readonly lineNumbers?: boolean | undefined;
|
|
302
|
+
readonly maxRating?: number | undefined;
|
|
303
|
+
readonly allowHalf?: boolean | undefined;
|
|
304
|
+
readonly displayMap?: boolean | undefined;
|
|
305
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
306
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
307
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
308
|
+
readonly allowAlpha?: boolean | undefined;
|
|
309
|
+
readonly presetColors?: string[] | undefined;
|
|
310
|
+
readonly hidden?: boolean | undefined;
|
|
311
|
+
readonly readonly?: boolean | undefined;
|
|
312
|
+
readonly encryption?: boolean | undefined;
|
|
313
|
+
readonly index?: boolean | undefined;
|
|
314
|
+
readonly externalId?: boolean | undefined;
|
|
315
|
+
readonly type: "text";
|
|
316
|
+
};
|
|
317
|
+
textarea: (config?: FieldInput) => {
|
|
318
|
+
readonly formula?: string | undefined;
|
|
319
|
+
readonly options?: {
|
|
320
|
+
value: string;
|
|
321
|
+
label: string;
|
|
322
|
+
color?: string | undefined;
|
|
323
|
+
default?: boolean | undefined;
|
|
324
|
+
}[] | undefined;
|
|
325
|
+
readonly label?: string | undefined;
|
|
326
|
+
readonly name?: string | undefined;
|
|
327
|
+
readonly description?: string | undefined;
|
|
328
|
+
readonly format?: string | undefined;
|
|
329
|
+
readonly required?: boolean | undefined;
|
|
330
|
+
readonly searchable?: boolean | undefined;
|
|
331
|
+
readonly multiple?: boolean | undefined;
|
|
332
|
+
readonly unique?: boolean | undefined;
|
|
333
|
+
readonly defaultValue?: any;
|
|
334
|
+
readonly maxLength?: number | undefined;
|
|
335
|
+
readonly minLength?: number | undefined;
|
|
336
|
+
readonly precision?: number | undefined;
|
|
337
|
+
readonly scale?: number | undefined;
|
|
338
|
+
readonly min?: number | undefined;
|
|
339
|
+
readonly max?: number | undefined;
|
|
340
|
+
readonly reference?: string | undefined;
|
|
341
|
+
readonly referenceFilters?: string[] | undefined;
|
|
342
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
343
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
344
|
+
readonly expression?: string | undefined;
|
|
345
|
+
readonly summaryOperations?: {
|
|
346
|
+
object: string;
|
|
347
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
348
|
+
field: string;
|
|
349
|
+
} | undefined;
|
|
350
|
+
readonly language?: string | undefined;
|
|
351
|
+
readonly theme?: string | undefined;
|
|
352
|
+
readonly lineNumbers?: boolean | undefined;
|
|
353
|
+
readonly maxRating?: number | undefined;
|
|
354
|
+
readonly allowHalf?: boolean | undefined;
|
|
355
|
+
readonly displayMap?: boolean | undefined;
|
|
356
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
357
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
358
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
359
|
+
readonly allowAlpha?: boolean | undefined;
|
|
360
|
+
readonly presetColors?: string[] | undefined;
|
|
361
|
+
readonly hidden?: boolean | undefined;
|
|
362
|
+
readonly readonly?: boolean | undefined;
|
|
363
|
+
readonly encryption?: boolean | undefined;
|
|
364
|
+
readonly index?: boolean | undefined;
|
|
365
|
+
readonly externalId?: boolean | undefined;
|
|
366
|
+
readonly type: "textarea";
|
|
367
|
+
};
|
|
368
|
+
number: (config?: FieldInput) => {
|
|
369
|
+
readonly formula?: string | undefined;
|
|
370
|
+
readonly options?: {
|
|
371
|
+
value: string;
|
|
372
|
+
label: string;
|
|
373
|
+
color?: string | undefined;
|
|
374
|
+
default?: boolean | undefined;
|
|
375
|
+
}[] | undefined;
|
|
376
|
+
readonly label?: string | undefined;
|
|
377
|
+
readonly name?: string | undefined;
|
|
378
|
+
readonly description?: string | undefined;
|
|
379
|
+
readonly format?: string | undefined;
|
|
380
|
+
readonly required?: boolean | undefined;
|
|
381
|
+
readonly searchable?: boolean | undefined;
|
|
382
|
+
readonly multiple?: boolean | undefined;
|
|
383
|
+
readonly unique?: boolean | undefined;
|
|
384
|
+
readonly defaultValue?: any;
|
|
385
|
+
readonly maxLength?: number | undefined;
|
|
386
|
+
readonly minLength?: number | undefined;
|
|
387
|
+
readonly precision?: number | undefined;
|
|
388
|
+
readonly scale?: number | undefined;
|
|
389
|
+
readonly min?: number | undefined;
|
|
390
|
+
readonly max?: number | undefined;
|
|
391
|
+
readonly reference?: string | undefined;
|
|
392
|
+
readonly referenceFilters?: string[] | undefined;
|
|
393
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
394
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
395
|
+
readonly expression?: string | undefined;
|
|
396
|
+
readonly summaryOperations?: {
|
|
397
|
+
object: string;
|
|
398
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
399
|
+
field: string;
|
|
400
|
+
} | undefined;
|
|
401
|
+
readonly language?: string | undefined;
|
|
402
|
+
readonly theme?: string | undefined;
|
|
403
|
+
readonly lineNumbers?: boolean | undefined;
|
|
404
|
+
readonly maxRating?: number | undefined;
|
|
405
|
+
readonly allowHalf?: boolean | undefined;
|
|
406
|
+
readonly displayMap?: boolean | undefined;
|
|
407
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
408
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
409
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
410
|
+
readonly allowAlpha?: boolean | undefined;
|
|
411
|
+
readonly presetColors?: string[] | undefined;
|
|
412
|
+
readonly hidden?: boolean | undefined;
|
|
413
|
+
readonly readonly?: boolean | undefined;
|
|
414
|
+
readonly encryption?: boolean | undefined;
|
|
415
|
+
readonly index?: boolean | undefined;
|
|
416
|
+
readonly externalId?: boolean | undefined;
|
|
417
|
+
readonly type: "number";
|
|
418
|
+
};
|
|
419
|
+
boolean: (config?: FieldInput) => {
|
|
420
|
+
readonly formula?: string | undefined;
|
|
421
|
+
readonly options?: {
|
|
422
|
+
value: string;
|
|
423
|
+
label: string;
|
|
424
|
+
color?: string | undefined;
|
|
425
|
+
default?: boolean | undefined;
|
|
426
|
+
}[] | undefined;
|
|
427
|
+
readonly label?: string | undefined;
|
|
428
|
+
readonly name?: string | undefined;
|
|
429
|
+
readonly description?: string | undefined;
|
|
430
|
+
readonly format?: string | undefined;
|
|
431
|
+
readonly required?: boolean | undefined;
|
|
432
|
+
readonly searchable?: boolean | undefined;
|
|
433
|
+
readonly multiple?: boolean | undefined;
|
|
434
|
+
readonly unique?: boolean | undefined;
|
|
435
|
+
readonly defaultValue?: any;
|
|
436
|
+
readonly maxLength?: number | undefined;
|
|
437
|
+
readonly minLength?: number | undefined;
|
|
438
|
+
readonly precision?: number | undefined;
|
|
439
|
+
readonly scale?: number | undefined;
|
|
440
|
+
readonly min?: number | undefined;
|
|
441
|
+
readonly max?: number | undefined;
|
|
442
|
+
readonly reference?: string | undefined;
|
|
443
|
+
readonly referenceFilters?: string[] | undefined;
|
|
444
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
445
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
446
|
+
readonly expression?: string | undefined;
|
|
447
|
+
readonly summaryOperations?: {
|
|
448
|
+
object: string;
|
|
449
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
450
|
+
field: string;
|
|
451
|
+
} | undefined;
|
|
452
|
+
readonly language?: string | undefined;
|
|
453
|
+
readonly theme?: string | undefined;
|
|
454
|
+
readonly lineNumbers?: boolean | undefined;
|
|
455
|
+
readonly maxRating?: number | undefined;
|
|
456
|
+
readonly allowHalf?: boolean | undefined;
|
|
457
|
+
readonly displayMap?: boolean | undefined;
|
|
458
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
459
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
460
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
461
|
+
readonly allowAlpha?: boolean | undefined;
|
|
462
|
+
readonly presetColors?: string[] | undefined;
|
|
463
|
+
readonly hidden?: boolean | undefined;
|
|
464
|
+
readonly readonly?: boolean | undefined;
|
|
465
|
+
readonly encryption?: boolean | undefined;
|
|
466
|
+
readonly index?: boolean | undefined;
|
|
467
|
+
readonly externalId?: boolean | undefined;
|
|
468
|
+
readonly type: "boolean";
|
|
469
|
+
};
|
|
470
|
+
date: (config?: FieldInput) => {
|
|
471
|
+
readonly formula?: string | undefined;
|
|
472
|
+
readonly options?: {
|
|
473
|
+
value: string;
|
|
474
|
+
label: string;
|
|
475
|
+
color?: string | undefined;
|
|
476
|
+
default?: boolean | undefined;
|
|
477
|
+
}[] | undefined;
|
|
478
|
+
readonly label?: string | undefined;
|
|
479
|
+
readonly name?: string | undefined;
|
|
480
|
+
readonly description?: string | undefined;
|
|
481
|
+
readonly format?: string | undefined;
|
|
482
|
+
readonly required?: boolean | undefined;
|
|
483
|
+
readonly searchable?: boolean | undefined;
|
|
484
|
+
readonly multiple?: boolean | undefined;
|
|
485
|
+
readonly unique?: boolean | undefined;
|
|
486
|
+
readonly defaultValue?: any;
|
|
487
|
+
readonly maxLength?: number | undefined;
|
|
488
|
+
readonly minLength?: number | undefined;
|
|
489
|
+
readonly precision?: number | undefined;
|
|
490
|
+
readonly scale?: number | undefined;
|
|
491
|
+
readonly min?: number | undefined;
|
|
492
|
+
readonly max?: number | undefined;
|
|
493
|
+
readonly reference?: string | undefined;
|
|
494
|
+
readonly referenceFilters?: string[] | undefined;
|
|
495
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
496
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
497
|
+
readonly expression?: string | undefined;
|
|
498
|
+
readonly summaryOperations?: {
|
|
499
|
+
object: string;
|
|
500
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
501
|
+
field: string;
|
|
502
|
+
} | undefined;
|
|
503
|
+
readonly language?: string | undefined;
|
|
504
|
+
readonly theme?: string | undefined;
|
|
505
|
+
readonly lineNumbers?: boolean | undefined;
|
|
506
|
+
readonly maxRating?: number | undefined;
|
|
507
|
+
readonly allowHalf?: boolean | undefined;
|
|
508
|
+
readonly displayMap?: boolean | undefined;
|
|
509
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
510
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
511
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
512
|
+
readonly allowAlpha?: boolean | undefined;
|
|
513
|
+
readonly presetColors?: string[] | undefined;
|
|
514
|
+
readonly hidden?: boolean | undefined;
|
|
515
|
+
readonly readonly?: boolean | undefined;
|
|
516
|
+
readonly encryption?: boolean | undefined;
|
|
517
|
+
readonly index?: boolean | undefined;
|
|
518
|
+
readonly externalId?: boolean | undefined;
|
|
519
|
+
readonly type: "date";
|
|
520
|
+
};
|
|
521
|
+
datetime: (config?: FieldInput) => {
|
|
522
|
+
readonly formula?: string | undefined;
|
|
523
|
+
readonly options?: {
|
|
524
|
+
value: string;
|
|
525
|
+
label: string;
|
|
526
|
+
color?: string | undefined;
|
|
527
|
+
default?: boolean | undefined;
|
|
528
|
+
}[] | undefined;
|
|
529
|
+
readonly label?: string | undefined;
|
|
530
|
+
readonly name?: string | undefined;
|
|
531
|
+
readonly description?: string | undefined;
|
|
532
|
+
readonly format?: string | undefined;
|
|
533
|
+
readonly required?: boolean | undefined;
|
|
534
|
+
readonly searchable?: boolean | undefined;
|
|
535
|
+
readonly multiple?: boolean | undefined;
|
|
536
|
+
readonly unique?: boolean | undefined;
|
|
537
|
+
readonly defaultValue?: any;
|
|
538
|
+
readonly maxLength?: number | undefined;
|
|
539
|
+
readonly minLength?: number | undefined;
|
|
540
|
+
readonly precision?: number | undefined;
|
|
541
|
+
readonly scale?: number | undefined;
|
|
542
|
+
readonly min?: number | undefined;
|
|
543
|
+
readonly max?: number | undefined;
|
|
544
|
+
readonly reference?: string | undefined;
|
|
545
|
+
readonly referenceFilters?: string[] | undefined;
|
|
546
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
547
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
548
|
+
readonly expression?: string | undefined;
|
|
549
|
+
readonly summaryOperations?: {
|
|
550
|
+
object: string;
|
|
551
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
552
|
+
field: string;
|
|
553
|
+
} | undefined;
|
|
554
|
+
readonly language?: string | undefined;
|
|
555
|
+
readonly theme?: string | undefined;
|
|
556
|
+
readonly lineNumbers?: boolean | undefined;
|
|
557
|
+
readonly maxRating?: number | undefined;
|
|
558
|
+
readonly allowHalf?: boolean | undefined;
|
|
559
|
+
readonly displayMap?: boolean | undefined;
|
|
560
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
561
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
562
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
563
|
+
readonly allowAlpha?: boolean | undefined;
|
|
564
|
+
readonly presetColors?: string[] | undefined;
|
|
565
|
+
readonly hidden?: boolean | undefined;
|
|
566
|
+
readonly readonly?: boolean | undefined;
|
|
567
|
+
readonly encryption?: boolean | undefined;
|
|
568
|
+
readonly index?: boolean | undefined;
|
|
569
|
+
readonly externalId?: boolean | undefined;
|
|
570
|
+
readonly type: "datetime";
|
|
571
|
+
};
|
|
572
|
+
currency: (config?: FieldInput) => {
|
|
573
|
+
readonly formula?: string | undefined;
|
|
574
|
+
readonly options?: {
|
|
575
|
+
value: string;
|
|
576
|
+
label: string;
|
|
577
|
+
color?: string | undefined;
|
|
578
|
+
default?: boolean | undefined;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
readonly label?: string | undefined;
|
|
581
|
+
readonly name?: string | undefined;
|
|
582
|
+
readonly description?: string | undefined;
|
|
583
|
+
readonly format?: string | undefined;
|
|
584
|
+
readonly required?: boolean | undefined;
|
|
585
|
+
readonly searchable?: boolean | undefined;
|
|
586
|
+
readonly multiple?: boolean | undefined;
|
|
587
|
+
readonly unique?: boolean | undefined;
|
|
588
|
+
readonly defaultValue?: any;
|
|
589
|
+
readonly maxLength?: number | undefined;
|
|
590
|
+
readonly minLength?: number | undefined;
|
|
591
|
+
readonly precision?: number | undefined;
|
|
592
|
+
readonly scale?: number | undefined;
|
|
593
|
+
readonly min?: number | undefined;
|
|
594
|
+
readonly max?: number | undefined;
|
|
595
|
+
readonly reference?: string | undefined;
|
|
596
|
+
readonly referenceFilters?: string[] | undefined;
|
|
597
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
598
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
599
|
+
readonly expression?: string | undefined;
|
|
600
|
+
readonly summaryOperations?: {
|
|
601
|
+
object: string;
|
|
602
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
603
|
+
field: string;
|
|
604
|
+
} | undefined;
|
|
605
|
+
readonly language?: string | undefined;
|
|
606
|
+
readonly theme?: string | undefined;
|
|
607
|
+
readonly lineNumbers?: boolean | undefined;
|
|
608
|
+
readonly maxRating?: number | undefined;
|
|
609
|
+
readonly allowHalf?: boolean | undefined;
|
|
610
|
+
readonly displayMap?: boolean | undefined;
|
|
611
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
612
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
613
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
614
|
+
readonly allowAlpha?: boolean | undefined;
|
|
615
|
+
readonly presetColors?: string[] | undefined;
|
|
616
|
+
readonly hidden?: boolean | undefined;
|
|
617
|
+
readonly readonly?: boolean | undefined;
|
|
618
|
+
readonly encryption?: boolean | undefined;
|
|
619
|
+
readonly index?: boolean | undefined;
|
|
620
|
+
readonly externalId?: boolean | undefined;
|
|
621
|
+
readonly type: "currency";
|
|
622
|
+
};
|
|
623
|
+
percent: (config?: FieldInput) => {
|
|
624
|
+
readonly formula?: string | undefined;
|
|
625
|
+
readonly options?: {
|
|
626
|
+
value: string;
|
|
627
|
+
label: string;
|
|
628
|
+
color?: string | undefined;
|
|
629
|
+
default?: boolean | undefined;
|
|
630
|
+
}[] | undefined;
|
|
631
|
+
readonly label?: string | undefined;
|
|
632
|
+
readonly name?: string | undefined;
|
|
633
|
+
readonly description?: string | undefined;
|
|
634
|
+
readonly format?: string | undefined;
|
|
635
|
+
readonly required?: boolean | undefined;
|
|
636
|
+
readonly searchable?: boolean | undefined;
|
|
637
|
+
readonly multiple?: boolean | undefined;
|
|
638
|
+
readonly unique?: boolean | undefined;
|
|
639
|
+
readonly defaultValue?: any;
|
|
640
|
+
readonly maxLength?: number | undefined;
|
|
641
|
+
readonly minLength?: number | undefined;
|
|
642
|
+
readonly precision?: number | undefined;
|
|
643
|
+
readonly scale?: number | undefined;
|
|
644
|
+
readonly min?: number | undefined;
|
|
645
|
+
readonly max?: number | undefined;
|
|
646
|
+
readonly reference?: string | undefined;
|
|
647
|
+
readonly referenceFilters?: string[] | undefined;
|
|
648
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
649
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
650
|
+
readonly expression?: string | undefined;
|
|
651
|
+
readonly summaryOperations?: {
|
|
652
|
+
object: string;
|
|
653
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
654
|
+
field: string;
|
|
655
|
+
} | undefined;
|
|
656
|
+
readonly language?: string | undefined;
|
|
657
|
+
readonly theme?: string | undefined;
|
|
658
|
+
readonly lineNumbers?: boolean | undefined;
|
|
659
|
+
readonly maxRating?: number | undefined;
|
|
660
|
+
readonly allowHalf?: boolean | undefined;
|
|
661
|
+
readonly displayMap?: boolean | undefined;
|
|
662
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
663
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
664
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
665
|
+
readonly allowAlpha?: boolean | undefined;
|
|
666
|
+
readonly presetColors?: string[] | undefined;
|
|
667
|
+
readonly hidden?: boolean | undefined;
|
|
668
|
+
readonly readonly?: boolean | undefined;
|
|
669
|
+
readonly encryption?: boolean | undefined;
|
|
670
|
+
readonly index?: boolean | undefined;
|
|
671
|
+
readonly externalId?: boolean | undefined;
|
|
672
|
+
readonly type: "percent";
|
|
673
|
+
};
|
|
674
|
+
url: (config?: FieldInput) => {
|
|
675
|
+
readonly formula?: string | undefined;
|
|
676
|
+
readonly options?: {
|
|
677
|
+
value: string;
|
|
678
|
+
label: string;
|
|
679
|
+
color?: string | undefined;
|
|
680
|
+
default?: boolean | undefined;
|
|
681
|
+
}[] | undefined;
|
|
682
|
+
readonly label?: string | undefined;
|
|
683
|
+
readonly name?: string | undefined;
|
|
684
|
+
readonly description?: string | undefined;
|
|
685
|
+
readonly format?: string | undefined;
|
|
686
|
+
readonly required?: boolean | undefined;
|
|
687
|
+
readonly searchable?: boolean | undefined;
|
|
688
|
+
readonly multiple?: boolean | undefined;
|
|
689
|
+
readonly unique?: boolean | undefined;
|
|
690
|
+
readonly defaultValue?: any;
|
|
691
|
+
readonly maxLength?: number | undefined;
|
|
692
|
+
readonly minLength?: number | undefined;
|
|
693
|
+
readonly precision?: number | undefined;
|
|
694
|
+
readonly scale?: number | undefined;
|
|
695
|
+
readonly min?: number | undefined;
|
|
696
|
+
readonly max?: number | undefined;
|
|
697
|
+
readonly reference?: string | undefined;
|
|
698
|
+
readonly referenceFilters?: string[] | undefined;
|
|
699
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
700
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
701
|
+
readonly expression?: string | undefined;
|
|
702
|
+
readonly summaryOperations?: {
|
|
703
|
+
object: string;
|
|
704
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
705
|
+
field: string;
|
|
706
|
+
} | undefined;
|
|
707
|
+
readonly language?: string | undefined;
|
|
708
|
+
readonly theme?: string | undefined;
|
|
709
|
+
readonly lineNumbers?: boolean | undefined;
|
|
710
|
+
readonly maxRating?: number | undefined;
|
|
711
|
+
readonly allowHalf?: boolean | undefined;
|
|
712
|
+
readonly displayMap?: boolean | undefined;
|
|
713
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
714
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
715
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
716
|
+
readonly allowAlpha?: boolean | undefined;
|
|
717
|
+
readonly presetColors?: string[] | undefined;
|
|
718
|
+
readonly hidden?: boolean | undefined;
|
|
719
|
+
readonly readonly?: boolean | undefined;
|
|
720
|
+
readonly encryption?: boolean | undefined;
|
|
721
|
+
readonly index?: boolean | undefined;
|
|
722
|
+
readonly externalId?: boolean | undefined;
|
|
723
|
+
readonly type: "url";
|
|
724
|
+
};
|
|
725
|
+
email: (config?: FieldInput) => {
|
|
726
|
+
readonly formula?: string | undefined;
|
|
727
|
+
readonly options?: {
|
|
728
|
+
value: string;
|
|
729
|
+
label: string;
|
|
730
|
+
color?: string | undefined;
|
|
731
|
+
default?: boolean | undefined;
|
|
732
|
+
}[] | undefined;
|
|
733
|
+
readonly label?: string | undefined;
|
|
734
|
+
readonly name?: string | undefined;
|
|
735
|
+
readonly description?: string | undefined;
|
|
736
|
+
readonly format?: string | undefined;
|
|
737
|
+
readonly required?: boolean | undefined;
|
|
738
|
+
readonly searchable?: boolean | undefined;
|
|
739
|
+
readonly multiple?: boolean | undefined;
|
|
740
|
+
readonly unique?: boolean | undefined;
|
|
741
|
+
readonly defaultValue?: any;
|
|
742
|
+
readonly maxLength?: number | undefined;
|
|
743
|
+
readonly minLength?: number | undefined;
|
|
744
|
+
readonly precision?: number | undefined;
|
|
745
|
+
readonly scale?: number | undefined;
|
|
746
|
+
readonly min?: number | undefined;
|
|
747
|
+
readonly max?: number | undefined;
|
|
748
|
+
readonly reference?: string | undefined;
|
|
749
|
+
readonly referenceFilters?: string[] | undefined;
|
|
750
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
751
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
752
|
+
readonly expression?: string | undefined;
|
|
753
|
+
readonly summaryOperations?: {
|
|
754
|
+
object: string;
|
|
755
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
756
|
+
field: string;
|
|
757
|
+
} | undefined;
|
|
758
|
+
readonly language?: string | undefined;
|
|
759
|
+
readonly theme?: string | undefined;
|
|
760
|
+
readonly lineNumbers?: boolean | undefined;
|
|
761
|
+
readonly maxRating?: number | undefined;
|
|
762
|
+
readonly allowHalf?: boolean | undefined;
|
|
763
|
+
readonly displayMap?: boolean | undefined;
|
|
764
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
765
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
766
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
767
|
+
readonly allowAlpha?: boolean | undefined;
|
|
768
|
+
readonly presetColors?: string[] | undefined;
|
|
769
|
+
readonly hidden?: boolean | undefined;
|
|
770
|
+
readonly readonly?: boolean | undefined;
|
|
771
|
+
readonly encryption?: boolean | undefined;
|
|
772
|
+
readonly index?: boolean | undefined;
|
|
773
|
+
readonly externalId?: boolean | undefined;
|
|
774
|
+
readonly type: "email";
|
|
775
|
+
};
|
|
776
|
+
phone: (config?: FieldInput) => {
|
|
777
|
+
readonly formula?: string | undefined;
|
|
778
|
+
readonly options?: {
|
|
779
|
+
value: string;
|
|
780
|
+
label: string;
|
|
781
|
+
color?: string | undefined;
|
|
782
|
+
default?: boolean | undefined;
|
|
783
|
+
}[] | undefined;
|
|
784
|
+
readonly label?: string | undefined;
|
|
785
|
+
readonly name?: string | undefined;
|
|
786
|
+
readonly description?: string | undefined;
|
|
787
|
+
readonly format?: string | undefined;
|
|
788
|
+
readonly required?: boolean | undefined;
|
|
789
|
+
readonly searchable?: boolean | undefined;
|
|
790
|
+
readonly multiple?: boolean | undefined;
|
|
791
|
+
readonly unique?: boolean | undefined;
|
|
792
|
+
readonly defaultValue?: any;
|
|
793
|
+
readonly maxLength?: number | undefined;
|
|
794
|
+
readonly minLength?: number | undefined;
|
|
795
|
+
readonly precision?: number | undefined;
|
|
796
|
+
readonly scale?: number | undefined;
|
|
797
|
+
readonly min?: number | undefined;
|
|
798
|
+
readonly max?: number | undefined;
|
|
799
|
+
readonly reference?: string | undefined;
|
|
800
|
+
readonly referenceFilters?: string[] | undefined;
|
|
801
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
802
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
803
|
+
readonly expression?: string | undefined;
|
|
804
|
+
readonly summaryOperations?: {
|
|
805
|
+
object: string;
|
|
806
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
807
|
+
field: string;
|
|
808
|
+
} | undefined;
|
|
809
|
+
readonly language?: string | undefined;
|
|
810
|
+
readonly theme?: string | undefined;
|
|
811
|
+
readonly lineNumbers?: boolean | undefined;
|
|
812
|
+
readonly maxRating?: number | undefined;
|
|
813
|
+
readonly allowHalf?: boolean | undefined;
|
|
814
|
+
readonly displayMap?: boolean | undefined;
|
|
815
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
816
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
817
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
818
|
+
readonly allowAlpha?: boolean | undefined;
|
|
819
|
+
readonly presetColors?: string[] | undefined;
|
|
820
|
+
readonly hidden?: boolean | undefined;
|
|
821
|
+
readonly readonly?: boolean | undefined;
|
|
822
|
+
readonly encryption?: boolean | undefined;
|
|
823
|
+
readonly index?: boolean | undefined;
|
|
824
|
+
readonly externalId?: boolean | undefined;
|
|
825
|
+
readonly type: "phone";
|
|
826
|
+
};
|
|
827
|
+
image: (config?: FieldInput) => {
|
|
828
|
+
readonly formula?: string | undefined;
|
|
829
|
+
readonly options?: {
|
|
830
|
+
value: string;
|
|
831
|
+
label: string;
|
|
832
|
+
color?: string | undefined;
|
|
833
|
+
default?: boolean | undefined;
|
|
834
|
+
}[] | undefined;
|
|
835
|
+
readonly label?: string | undefined;
|
|
836
|
+
readonly name?: string | undefined;
|
|
837
|
+
readonly description?: string | undefined;
|
|
838
|
+
readonly format?: string | undefined;
|
|
839
|
+
readonly required?: boolean | undefined;
|
|
840
|
+
readonly searchable?: boolean | undefined;
|
|
841
|
+
readonly multiple?: boolean | undefined;
|
|
842
|
+
readonly unique?: boolean | undefined;
|
|
843
|
+
readonly defaultValue?: any;
|
|
844
|
+
readonly maxLength?: number | undefined;
|
|
845
|
+
readonly minLength?: number | undefined;
|
|
846
|
+
readonly precision?: number | undefined;
|
|
847
|
+
readonly scale?: number | undefined;
|
|
848
|
+
readonly min?: number | undefined;
|
|
849
|
+
readonly max?: number | undefined;
|
|
850
|
+
readonly reference?: string | undefined;
|
|
851
|
+
readonly referenceFilters?: string[] | undefined;
|
|
852
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
853
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
854
|
+
readonly expression?: string | undefined;
|
|
855
|
+
readonly summaryOperations?: {
|
|
856
|
+
object: string;
|
|
857
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
858
|
+
field: string;
|
|
859
|
+
} | undefined;
|
|
860
|
+
readonly language?: string | undefined;
|
|
861
|
+
readonly theme?: string | undefined;
|
|
862
|
+
readonly lineNumbers?: boolean | undefined;
|
|
863
|
+
readonly maxRating?: number | undefined;
|
|
864
|
+
readonly allowHalf?: boolean | undefined;
|
|
865
|
+
readonly displayMap?: boolean | undefined;
|
|
866
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
867
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
868
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
869
|
+
readonly allowAlpha?: boolean | undefined;
|
|
870
|
+
readonly presetColors?: string[] | undefined;
|
|
871
|
+
readonly hidden?: boolean | undefined;
|
|
872
|
+
readonly readonly?: boolean | undefined;
|
|
873
|
+
readonly encryption?: boolean | undefined;
|
|
874
|
+
readonly index?: boolean | undefined;
|
|
875
|
+
readonly externalId?: boolean | undefined;
|
|
876
|
+
readonly type: "image";
|
|
877
|
+
};
|
|
878
|
+
file: (config?: FieldInput) => {
|
|
879
|
+
readonly formula?: string | undefined;
|
|
880
|
+
readonly options?: {
|
|
881
|
+
value: string;
|
|
882
|
+
label: string;
|
|
883
|
+
color?: string | undefined;
|
|
884
|
+
default?: boolean | undefined;
|
|
885
|
+
}[] | undefined;
|
|
886
|
+
readonly label?: string | undefined;
|
|
887
|
+
readonly name?: string | undefined;
|
|
888
|
+
readonly description?: string | undefined;
|
|
889
|
+
readonly format?: string | undefined;
|
|
890
|
+
readonly required?: boolean | undefined;
|
|
891
|
+
readonly searchable?: boolean | undefined;
|
|
892
|
+
readonly multiple?: boolean | undefined;
|
|
893
|
+
readonly unique?: boolean | undefined;
|
|
894
|
+
readonly defaultValue?: any;
|
|
895
|
+
readonly maxLength?: number | undefined;
|
|
896
|
+
readonly minLength?: number | undefined;
|
|
897
|
+
readonly precision?: number | undefined;
|
|
898
|
+
readonly scale?: number | undefined;
|
|
899
|
+
readonly min?: number | undefined;
|
|
900
|
+
readonly max?: number | undefined;
|
|
901
|
+
readonly reference?: string | undefined;
|
|
902
|
+
readonly referenceFilters?: string[] | undefined;
|
|
903
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
904
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
905
|
+
readonly expression?: string | undefined;
|
|
906
|
+
readonly summaryOperations?: {
|
|
907
|
+
object: string;
|
|
908
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
909
|
+
field: string;
|
|
910
|
+
} | undefined;
|
|
911
|
+
readonly language?: string | undefined;
|
|
912
|
+
readonly theme?: string | undefined;
|
|
913
|
+
readonly lineNumbers?: boolean | undefined;
|
|
914
|
+
readonly maxRating?: number | undefined;
|
|
915
|
+
readonly allowHalf?: boolean | undefined;
|
|
916
|
+
readonly displayMap?: boolean | undefined;
|
|
917
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
918
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
919
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
920
|
+
readonly allowAlpha?: boolean | undefined;
|
|
921
|
+
readonly presetColors?: string[] | undefined;
|
|
922
|
+
readonly hidden?: boolean | undefined;
|
|
923
|
+
readonly readonly?: boolean | undefined;
|
|
924
|
+
readonly encryption?: boolean | undefined;
|
|
925
|
+
readonly index?: boolean | undefined;
|
|
926
|
+
readonly externalId?: boolean | undefined;
|
|
927
|
+
readonly type: "file";
|
|
928
|
+
};
|
|
929
|
+
avatar: (config?: FieldInput) => {
|
|
930
|
+
readonly formula?: string | undefined;
|
|
931
|
+
readonly options?: {
|
|
932
|
+
value: string;
|
|
933
|
+
label: string;
|
|
934
|
+
color?: string | undefined;
|
|
935
|
+
default?: boolean | undefined;
|
|
936
|
+
}[] | undefined;
|
|
937
|
+
readonly label?: string | undefined;
|
|
938
|
+
readonly name?: string | undefined;
|
|
939
|
+
readonly description?: string | undefined;
|
|
940
|
+
readonly format?: string | undefined;
|
|
941
|
+
readonly required?: boolean | undefined;
|
|
942
|
+
readonly searchable?: boolean | undefined;
|
|
943
|
+
readonly multiple?: boolean | undefined;
|
|
944
|
+
readonly unique?: boolean | undefined;
|
|
945
|
+
readonly defaultValue?: any;
|
|
946
|
+
readonly maxLength?: number | undefined;
|
|
947
|
+
readonly minLength?: number | undefined;
|
|
948
|
+
readonly precision?: number | undefined;
|
|
949
|
+
readonly scale?: number | undefined;
|
|
950
|
+
readonly min?: number | undefined;
|
|
951
|
+
readonly max?: number | undefined;
|
|
952
|
+
readonly reference?: string | undefined;
|
|
953
|
+
readonly referenceFilters?: string[] | undefined;
|
|
954
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
955
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
956
|
+
readonly expression?: string | undefined;
|
|
957
|
+
readonly summaryOperations?: {
|
|
958
|
+
object: string;
|
|
959
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
960
|
+
field: string;
|
|
961
|
+
} | undefined;
|
|
962
|
+
readonly language?: string | undefined;
|
|
963
|
+
readonly theme?: string | undefined;
|
|
964
|
+
readonly lineNumbers?: boolean | undefined;
|
|
965
|
+
readonly maxRating?: number | undefined;
|
|
966
|
+
readonly allowHalf?: boolean | undefined;
|
|
967
|
+
readonly displayMap?: boolean | undefined;
|
|
968
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
969
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
970
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
971
|
+
readonly allowAlpha?: boolean | undefined;
|
|
972
|
+
readonly presetColors?: string[] | undefined;
|
|
973
|
+
readonly hidden?: boolean | undefined;
|
|
974
|
+
readonly readonly?: boolean | undefined;
|
|
975
|
+
readonly encryption?: boolean | undefined;
|
|
976
|
+
readonly index?: boolean | undefined;
|
|
977
|
+
readonly externalId?: boolean | undefined;
|
|
978
|
+
readonly type: "avatar";
|
|
979
|
+
};
|
|
980
|
+
formula: (config?: FieldInput) => {
|
|
981
|
+
readonly formula?: string | undefined;
|
|
982
|
+
readonly options?: {
|
|
983
|
+
value: string;
|
|
984
|
+
label: string;
|
|
985
|
+
color?: string | undefined;
|
|
986
|
+
default?: boolean | undefined;
|
|
987
|
+
}[] | undefined;
|
|
988
|
+
readonly label?: string | undefined;
|
|
989
|
+
readonly name?: string | undefined;
|
|
990
|
+
readonly description?: string | undefined;
|
|
991
|
+
readonly format?: string | undefined;
|
|
992
|
+
readonly required?: boolean | undefined;
|
|
993
|
+
readonly searchable?: boolean | undefined;
|
|
994
|
+
readonly multiple?: boolean | undefined;
|
|
995
|
+
readonly unique?: boolean | undefined;
|
|
996
|
+
readonly defaultValue?: any;
|
|
997
|
+
readonly maxLength?: number | undefined;
|
|
998
|
+
readonly minLength?: number | undefined;
|
|
999
|
+
readonly precision?: number | undefined;
|
|
1000
|
+
readonly scale?: number | undefined;
|
|
1001
|
+
readonly min?: number | undefined;
|
|
1002
|
+
readonly max?: number | undefined;
|
|
1003
|
+
readonly reference?: string | undefined;
|
|
1004
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1005
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1006
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1007
|
+
readonly expression?: string | undefined;
|
|
1008
|
+
readonly summaryOperations?: {
|
|
1009
|
+
object: string;
|
|
1010
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1011
|
+
field: string;
|
|
1012
|
+
} | undefined;
|
|
1013
|
+
readonly language?: string | undefined;
|
|
1014
|
+
readonly theme?: string | undefined;
|
|
1015
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1016
|
+
readonly maxRating?: number | undefined;
|
|
1017
|
+
readonly allowHalf?: boolean | undefined;
|
|
1018
|
+
readonly displayMap?: boolean | undefined;
|
|
1019
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1020
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1021
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1022
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1023
|
+
readonly presetColors?: string[] | undefined;
|
|
1024
|
+
readonly hidden?: boolean | undefined;
|
|
1025
|
+
readonly readonly?: boolean | undefined;
|
|
1026
|
+
readonly encryption?: boolean | undefined;
|
|
1027
|
+
readonly index?: boolean | undefined;
|
|
1028
|
+
readonly externalId?: boolean | undefined;
|
|
1029
|
+
readonly type: "formula";
|
|
1030
|
+
};
|
|
1031
|
+
summary: (config?: FieldInput) => {
|
|
1032
|
+
readonly formula?: string | undefined;
|
|
1033
|
+
readonly options?: {
|
|
1034
|
+
value: string;
|
|
1035
|
+
label: string;
|
|
1036
|
+
color?: string | undefined;
|
|
1037
|
+
default?: boolean | undefined;
|
|
1038
|
+
}[] | undefined;
|
|
1039
|
+
readonly label?: string | undefined;
|
|
1040
|
+
readonly name?: string | undefined;
|
|
1041
|
+
readonly description?: string | undefined;
|
|
1042
|
+
readonly format?: string | undefined;
|
|
1043
|
+
readonly required?: boolean | undefined;
|
|
1044
|
+
readonly searchable?: boolean | undefined;
|
|
1045
|
+
readonly multiple?: boolean | undefined;
|
|
1046
|
+
readonly unique?: boolean | undefined;
|
|
1047
|
+
readonly defaultValue?: any;
|
|
1048
|
+
readonly maxLength?: number | undefined;
|
|
1049
|
+
readonly minLength?: number | undefined;
|
|
1050
|
+
readonly precision?: number | undefined;
|
|
1051
|
+
readonly scale?: number | undefined;
|
|
1052
|
+
readonly min?: number | undefined;
|
|
1053
|
+
readonly max?: number | undefined;
|
|
1054
|
+
readonly reference?: string | undefined;
|
|
1055
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1056
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1057
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1058
|
+
readonly expression?: string | undefined;
|
|
1059
|
+
readonly summaryOperations?: {
|
|
1060
|
+
object: string;
|
|
1061
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1062
|
+
field: string;
|
|
1063
|
+
} | undefined;
|
|
1064
|
+
readonly language?: string | undefined;
|
|
1065
|
+
readonly theme?: string | undefined;
|
|
1066
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1067
|
+
readonly maxRating?: number | undefined;
|
|
1068
|
+
readonly allowHalf?: boolean | undefined;
|
|
1069
|
+
readonly displayMap?: boolean | undefined;
|
|
1070
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1071
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1072
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1073
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1074
|
+
readonly presetColors?: string[] | undefined;
|
|
1075
|
+
readonly hidden?: boolean | undefined;
|
|
1076
|
+
readonly readonly?: boolean | undefined;
|
|
1077
|
+
readonly encryption?: boolean | undefined;
|
|
1078
|
+
readonly index?: boolean | undefined;
|
|
1079
|
+
readonly externalId?: boolean | undefined;
|
|
1080
|
+
readonly type: "summary";
|
|
1081
|
+
};
|
|
1082
|
+
autonumber: (config?: FieldInput) => {
|
|
1083
|
+
readonly formula?: string | undefined;
|
|
1084
|
+
readonly options?: {
|
|
1085
|
+
value: string;
|
|
1086
|
+
label: string;
|
|
1087
|
+
color?: string | undefined;
|
|
1088
|
+
default?: boolean | undefined;
|
|
1089
|
+
}[] | undefined;
|
|
1090
|
+
readonly label?: string | undefined;
|
|
1091
|
+
readonly name?: string | undefined;
|
|
1092
|
+
readonly description?: string | undefined;
|
|
1093
|
+
readonly format?: string | undefined;
|
|
1094
|
+
readonly required?: boolean | undefined;
|
|
1095
|
+
readonly searchable?: boolean | undefined;
|
|
1096
|
+
readonly multiple?: boolean | undefined;
|
|
1097
|
+
readonly unique?: boolean | undefined;
|
|
1098
|
+
readonly defaultValue?: any;
|
|
1099
|
+
readonly maxLength?: number | undefined;
|
|
1100
|
+
readonly minLength?: number | undefined;
|
|
1101
|
+
readonly precision?: number | undefined;
|
|
1102
|
+
readonly scale?: number | undefined;
|
|
1103
|
+
readonly min?: number | undefined;
|
|
1104
|
+
readonly max?: number | undefined;
|
|
1105
|
+
readonly reference?: string | undefined;
|
|
1106
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1107
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1108
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1109
|
+
readonly expression?: string | undefined;
|
|
1110
|
+
readonly summaryOperations?: {
|
|
1111
|
+
object: string;
|
|
1112
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1113
|
+
field: string;
|
|
1114
|
+
} | undefined;
|
|
1115
|
+
readonly language?: string | undefined;
|
|
1116
|
+
readonly theme?: string | undefined;
|
|
1117
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1118
|
+
readonly maxRating?: number | undefined;
|
|
1119
|
+
readonly allowHalf?: boolean | undefined;
|
|
1120
|
+
readonly displayMap?: boolean | undefined;
|
|
1121
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1122
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1123
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1124
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1125
|
+
readonly presetColors?: string[] | undefined;
|
|
1126
|
+
readonly hidden?: boolean | undefined;
|
|
1127
|
+
readonly readonly?: boolean | undefined;
|
|
1128
|
+
readonly encryption?: boolean | undefined;
|
|
1129
|
+
readonly index?: boolean | undefined;
|
|
1130
|
+
readonly externalId?: boolean | undefined;
|
|
1131
|
+
readonly type: "autonumber";
|
|
1132
|
+
};
|
|
1133
|
+
markdown: (config?: FieldInput) => {
|
|
1134
|
+
readonly formula?: string | undefined;
|
|
1135
|
+
readonly options?: {
|
|
1136
|
+
value: string;
|
|
1137
|
+
label: string;
|
|
1138
|
+
color?: string | undefined;
|
|
1139
|
+
default?: boolean | undefined;
|
|
1140
|
+
}[] | undefined;
|
|
1141
|
+
readonly label?: string | undefined;
|
|
1142
|
+
readonly name?: string | undefined;
|
|
1143
|
+
readonly description?: string | undefined;
|
|
1144
|
+
readonly format?: string | undefined;
|
|
1145
|
+
readonly required?: boolean | undefined;
|
|
1146
|
+
readonly searchable?: boolean | undefined;
|
|
1147
|
+
readonly multiple?: boolean | undefined;
|
|
1148
|
+
readonly unique?: boolean | undefined;
|
|
1149
|
+
readonly defaultValue?: any;
|
|
1150
|
+
readonly maxLength?: number | undefined;
|
|
1151
|
+
readonly minLength?: number | undefined;
|
|
1152
|
+
readonly precision?: number | undefined;
|
|
1153
|
+
readonly scale?: number | undefined;
|
|
1154
|
+
readonly min?: number | undefined;
|
|
1155
|
+
readonly max?: number | undefined;
|
|
1156
|
+
readonly reference?: string | undefined;
|
|
1157
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1158
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1159
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1160
|
+
readonly expression?: string | undefined;
|
|
1161
|
+
readonly summaryOperations?: {
|
|
1162
|
+
object: string;
|
|
1163
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1164
|
+
field: string;
|
|
1165
|
+
} | undefined;
|
|
1166
|
+
readonly language?: string | undefined;
|
|
1167
|
+
readonly theme?: string | undefined;
|
|
1168
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1169
|
+
readonly maxRating?: number | undefined;
|
|
1170
|
+
readonly allowHalf?: boolean | undefined;
|
|
1171
|
+
readonly displayMap?: boolean | undefined;
|
|
1172
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1173
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1174
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1175
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1176
|
+
readonly presetColors?: string[] | undefined;
|
|
1177
|
+
readonly hidden?: boolean | undefined;
|
|
1178
|
+
readonly readonly?: boolean | undefined;
|
|
1179
|
+
readonly encryption?: boolean | undefined;
|
|
1180
|
+
readonly index?: boolean | undefined;
|
|
1181
|
+
readonly externalId?: boolean | undefined;
|
|
1182
|
+
readonly type: "markdown";
|
|
1183
|
+
};
|
|
1184
|
+
html: (config?: FieldInput) => {
|
|
1185
|
+
readonly formula?: string | undefined;
|
|
1186
|
+
readonly options?: {
|
|
1187
|
+
value: string;
|
|
1188
|
+
label: string;
|
|
1189
|
+
color?: string | undefined;
|
|
1190
|
+
default?: boolean | undefined;
|
|
1191
|
+
}[] | undefined;
|
|
1192
|
+
readonly label?: string | undefined;
|
|
1193
|
+
readonly name?: string | undefined;
|
|
1194
|
+
readonly description?: string | undefined;
|
|
1195
|
+
readonly format?: string | undefined;
|
|
1196
|
+
readonly required?: boolean | undefined;
|
|
1197
|
+
readonly searchable?: boolean | undefined;
|
|
1198
|
+
readonly multiple?: boolean | undefined;
|
|
1199
|
+
readonly unique?: boolean | undefined;
|
|
1200
|
+
readonly defaultValue?: any;
|
|
1201
|
+
readonly maxLength?: number | undefined;
|
|
1202
|
+
readonly minLength?: number | undefined;
|
|
1203
|
+
readonly precision?: number | undefined;
|
|
1204
|
+
readonly scale?: number | undefined;
|
|
1205
|
+
readonly min?: number | undefined;
|
|
1206
|
+
readonly max?: number | undefined;
|
|
1207
|
+
readonly reference?: string | undefined;
|
|
1208
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1209
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1210
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1211
|
+
readonly expression?: string | undefined;
|
|
1212
|
+
readonly summaryOperations?: {
|
|
1213
|
+
object: string;
|
|
1214
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1215
|
+
field: string;
|
|
1216
|
+
} | undefined;
|
|
1217
|
+
readonly language?: string | undefined;
|
|
1218
|
+
readonly theme?: string | undefined;
|
|
1219
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1220
|
+
readonly maxRating?: number | undefined;
|
|
1221
|
+
readonly allowHalf?: boolean | undefined;
|
|
1222
|
+
readonly displayMap?: boolean | undefined;
|
|
1223
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1224
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1225
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1226
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1227
|
+
readonly presetColors?: string[] | undefined;
|
|
1228
|
+
readonly hidden?: boolean | undefined;
|
|
1229
|
+
readonly readonly?: boolean | undefined;
|
|
1230
|
+
readonly encryption?: boolean | undefined;
|
|
1231
|
+
readonly index?: boolean | undefined;
|
|
1232
|
+
readonly externalId?: boolean | undefined;
|
|
1233
|
+
readonly type: "html";
|
|
1234
|
+
};
|
|
1235
|
+
password: (config?: FieldInput) => {
|
|
1236
|
+
readonly formula?: string | undefined;
|
|
1237
|
+
readonly options?: {
|
|
1238
|
+
value: string;
|
|
1239
|
+
label: string;
|
|
1240
|
+
color?: string | undefined;
|
|
1241
|
+
default?: boolean | undefined;
|
|
1242
|
+
}[] | undefined;
|
|
1243
|
+
readonly label?: string | undefined;
|
|
1244
|
+
readonly name?: string | undefined;
|
|
1245
|
+
readonly description?: string | undefined;
|
|
1246
|
+
readonly format?: string | undefined;
|
|
1247
|
+
readonly required?: boolean | undefined;
|
|
1248
|
+
readonly searchable?: boolean | undefined;
|
|
1249
|
+
readonly multiple?: boolean | undefined;
|
|
1250
|
+
readonly unique?: boolean | undefined;
|
|
1251
|
+
readonly defaultValue?: any;
|
|
1252
|
+
readonly maxLength?: number | undefined;
|
|
1253
|
+
readonly minLength?: number | undefined;
|
|
1254
|
+
readonly precision?: number | undefined;
|
|
1255
|
+
readonly scale?: number | undefined;
|
|
1256
|
+
readonly min?: number | undefined;
|
|
1257
|
+
readonly max?: number | undefined;
|
|
1258
|
+
readonly reference?: string | undefined;
|
|
1259
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1260
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1261
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1262
|
+
readonly expression?: string | undefined;
|
|
1263
|
+
readonly summaryOperations?: {
|
|
1264
|
+
object: string;
|
|
1265
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1266
|
+
field: string;
|
|
1267
|
+
} | undefined;
|
|
1268
|
+
readonly language?: string | undefined;
|
|
1269
|
+
readonly theme?: string | undefined;
|
|
1270
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1271
|
+
readonly maxRating?: number | undefined;
|
|
1272
|
+
readonly allowHalf?: boolean | undefined;
|
|
1273
|
+
readonly displayMap?: boolean | undefined;
|
|
1274
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1275
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1276
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1277
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1278
|
+
readonly presetColors?: string[] | undefined;
|
|
1279
|
+
readonly hidden?: boolean | undefined;
|
|
1280
|
+
readonly readonly?: boolean | undefined;
|
|
1281
|
+
readonly encryption?: boolean | undefined;
|
|
1282
|
+
readonly index?: boolean | undefined;
|
|
1283
|
+
readonly externalId?: boolean | undefined;
|
|
1284
|
+
readonly type: "password";
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Select field helper with backward-compatible API
|
|
1288
|
+
*
|
|
1289
|
+
* @example Old API (array first)
|
|
1290
|
+
* Field.select(['High', 'Low'], { label: 'Priority' })
|
|
1291
|
+
*
|
|
1292
|
+
* @example New API (config object)
|
|
1293
|
+
* Field.select({ options: [{label: 'High', value: 'high'}], label: 'Priority' })
|
|
1294
|
+
*/
|
|
1295
|
+
select: (optionsOrConfig: SelectOption[] | string[] | (FieldInput & {
|
|
1296
|
+
options: SelectOption[] | string[];
|
|
1297
|
+
}), config?: FieldInput) => {
|
|
1298
|
+
readonly formula?: string | undefined;
|
|
1299
|
+
options: {
|
|
1300
|
+
value: string;
|
|
1301
|
+
label: string;
|
|
1302
|
+
color?: string | undefined;
|
|
1303
|
+
default?: boolean | undefined;
|
|
1304
|
+
}[];
|
|
1305
|
+
readonly label?: string | undefined;
|
|
1306
|
+
readonly name?: string | undefined;
|
|
1307
|
+
readonly description?: string | undefined;
|
|
1308
|
+
readonly format?: string | undefined;
|
|
1309
|
+
readonly required?: boolean | undefined;
|
|
1310
|
+
readonly searchable?: boolean | undefined;
|
|
1311
|
+
readonly multiple?: boolean | undefined;
|
|
1312
|
+
readonly unique?: boolean | undefined;
|
|
1313
|
+
readonly defaultValue?: any;
|
|
1314
|
+
readonly maxLength?: number | undefined;
|
|
1315
|
+
readonly minLength?: number | undefined;
|
|
1316
|
+
readonly precision?: number | undefined;
|
|
1317
|
+
readonly scale?: number | undefined;
|
|
1318
|
+
readonly min?: number | undefined;
|
|
1319
|
+
readonly max?: number | undefined;
|
|
1320
|
+
readonly reference?: string | undefined;
|
|
1321
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1322
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1323
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1324
|
+
readonly expression?: string | undefined;
|
|
1325
|
+
readonly summaryOperations?: {
|
|
1326
|
+
object: string;
|
|
1327
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1328
|
+
field: string;
|
|
1329
|
+
} | undefined;
|
|
1330
|
+
readonly language?: string | undefined;
|
|
1331
|
+
readonly theme?: string | undefined;
|
|
1332
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1333
|
+
readonly maxRating?: number | undefined;
|
|
1334
|
+
readonly allowHalf?: boolean | undefined;
|
|
1335
|
+
readonly displayMap?: boolean | undefined;
|
|
1336
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1337
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1338
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1339
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1340
|
+
readonly presetColors?: string[] | undefined;
|
|
1341
|
+
readonly hidden?: boolean | undefined;
|
|
1342
|
+
readonly readonly?: boolean | undefined;
|
|
1343
|
+
readonly encryption?: boolean | undefined;
|
|
1344
|
+
readonly index?: boolean | undefined;
|
|
1345
|
+
readonly externalId?: boolean | undefined;
|
|
1346
|
+
readonly type: "select";
|
|
1347
|
+
};
|
|
1348
|
+
lookup: (reference: string, config?: FieldInput) => {
|
|
1349
|
+
readonly formula?: string | undefined;
|
|
1350
|
+
readonly options?: {
|
|
1351
|
+
value: string;
|
|
1352
|
+
label: string;
|
|
1353
|
+
color?: string | undefined;
|
|
1354
|
+
default?: boolean | undefined;
|
|
1355
|
+
}[] | undefined;
|
|
1356
|
+
readonly label?: string | undefined;
|
|
1357
|
+
readonly name?: string | undefined;
|
|
1358
|
+
readonly description?: string | undefined;
|
|
1359
|
+
readonly format?: string | undefined;
|
|
1360
|
+
readonly required?: boolean | undefined;
|
|
1361
|
+
readonly searchable?: boolean | undefined;
|
|
1362
|
+
readonly multiple?: boolean | undefined;
|
|
1363
|
+
readonly unique?: boolean | undefined;
|
|
1364
|
+
readonly defaultValue?: any;
|
|
1365
|
+
readonly maxLength?: number | undefined;
|
|
1366
|
+
readonly minLength?: number | undefined;
|
|
1367
|
+
readonly precision?: number | undefined;
|
|
1368
|
+
readonly scale?: number | undefined;
|
|
1369
|
+
readonly min?: number | undefined;
|
|
1370
|
+
readonly max?: number | undefined;
|
|
1371
|
+
reference: string;
|
|
1372
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1373
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1374
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1375
|
+
readonly expression?: string | undefined;
|
|
1376
|
+
readonly summaryOperations?: {
|
|
1377
|
+
object: string;
|
|
1378
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1379
|
+
field: string;
|
|
1380
|
+
} | undefined;
|
|
1381
|
+
readonly language?: string | undefined;
|
|
1382
|
+
readonly theme?: string | undefined;
|
|
1383
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1384
|
+
readonly maxRating?: number | undefined;
|
|
1385
|
+
readonly allowHalf?: boolean | undefined;
|
|
1386
|
+
readonly displayMap?: boolean | undefined;
|
|
1387
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1388
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1389
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1390
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1391
|
+
readonly presetColors?: string[] | undefined;
|
|
1392
|
+
readonly hidden?: boolean | undefined;
|
|
1393
|
+
readonly readonly?: boolean | undefined;
|
|
1394
|
+
readonly encryption?: boolean | undefined;
|
|
1395
|
+
readonly index?: boolean | undefined;
|
|
1396
|
+
readonly externalId?: boolean | undefined;
|
|
1397
|
+
readonly type: "lookup";
|
|
1398
|
+
};
|
|
1399
|
+
masterDetail: (reference: string, config?: FieldInput) => {
|
|
1400
|
+
readonly formula?: string | undefined;
|
|
1401
|
+
readonly options?: {
|
|
1402
|
+
value: string;
|
|
1403
|
+
label: string;
|
|
1404
|
+
color?: string | undefined;
|
|
1405
|
+
default?: boolean | undefined;
|
|
1406
|
+
}[] | undefined;
|
|
1407
|
+
readonly label?: string | undefined;
|
|
1408
|
+
readonly name?: string | undefined;
|
|
1409
|
+
readonly description?: string | undefined;
|
|
1410
|
+
readonly format?: string | undefined;
|
|
1411
|
+
readonly required?: boolean | undefined;
|
|
1412
|
+
readonly searchable?: boolean | undefined;
|
|
1413
|
+
readonly multiple?: boolean | undefined;
|
|
1414
|
+
readonly unique?: boolean | undefined;
|
|
1415
|
+
readonly defaultValue?: any;
|
|
1416
|
+
readonly maxLength?: number | undefined;
|
|
1417
|
+
readonly minLength?: number | undefined;
|
|
1418
|
+
readonly precision?: number | undefined;
|
|
1419
|
+
readonly scale?: number | undefined;
|
|
1420
|
+
readonly min?: number | undefined;
|
|
1421
|
+
readonly max?: number | undefined;
|
|
1422
|
+
reference: string;
|
|
1423
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1424
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1425
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1426
|
+
readonly expression?: string | undefined;
|
|
1427
|
+
readonly summaryOperations?: {
|
|
1428
|
+
object: string;
|
|
1429
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1430
|
+
field: string;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
readonly language?: string | undefined;
|
|
1433
|
+
readonly theme?: string | undefined;
|
|
1434
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1435
|
+
readonly maxRating?: number | undefined;
|
|
1436
|
+
readonly allowHalf?: boolean | undefined;
|
|
1437
|
+
readonly displayMap?: boolean | undefined;
|
|
1438
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1439
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1440
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1441
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1442
|
+
readonly presetColors?: string[] | undefined;
|
|
1443
|
+
readonly hidden?: boolean | undefined;
|
|
1444
|
+
readonly readonly?: boolean | undefined;
|
|
1445
|
+
readonly encryption?: boolean | undefined;
|
|
1446
|
+
readonly index?: boolean | undefined;
|
|
1447
|
+
readonly externalId?: boolean | undefined;
|
|
1448
|
+
readonly type: "master_detail";
|
|
1449
|
+
};
|
|
1450
|
+
location: (config?: FieldInput) => {
|
|
1451
|
+
readonly formula?: string | undefined;
|
|
1452
|
+
readonly options?: {
|
|
1453
|
+
value: string;
|
|
1454
|
+
label: string;
|
|
1455
|
+
color?: string | undefined;
|
|
1456
|
+
default?: boolean | undefined;
|
|
1457
|
+
}[] | undefined;
|
|
1458
|
+
readonly label?: string | undefined;
|
|
1459
|
+
readonly name?: string | undefined;
|
|
1460
|
+
readonly description?: string | undefined;
|
|
1461
|
+
readonly format?: string | undefined;
|
|
1462
|
+
readonly required?: boolean | undefined;
|
|
1463
|
+
readonly searchable?: boolean | undefined;
|
|
1464
|
+
readonly multiple?: boolean | undefined;
|
|
1465
|
+
readonly unique?: boolean | undefined;
|
|
1466
|
+
readonly defaultValue?: any;
|
|
1467
|
+
readonly maxLength?: number | undefined;
|
|
1468
|
+
readonly minLength?: number | undefined;
|
|
1469
|
+
readonly precision?: number | undefined;
|
|
1470
|
+
readonly scale?: number | undefined;
|
|
1471
|
+
readonly min?: number | undefined;
|
|
1472
|
+
readonly max?: number | undefined;
|
|
1473
|
+
readonly reference?: string | undefined;
|
|
1474
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1475
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1476
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1477
|
+
readonly expression?: string | undefined;
|
|
1478
|
+
readonly summaryOperations?: {
|
|
1479
|
+
object: string;
|
|
1480
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1481
|
+
field: string;
|
|
1482
|
+
} | undefined;
|
|
1483
|
+
readonly language?: string | undefined;
|
|
1484
|
+
readonly theme?: string | undefined;
|
|
1485
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1486
|
+
readonly maxRating?: number | undefined;
|
|
1487
|
+
readonly allowHalf?: boolean | undefined;
|
|
1488
|
+
readonly displayMap?: boolean | undefined;
|
|
1489
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1490
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1491
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1492
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1493
|
+
readonly presetColors?: string[] | undefined;
|
|
1494
|
+
readonly hidden?: boolean | undefined;
|
|
1495
|
+
readonly readonly?: boolean | undefined;
|
|
1496
|
+
readonly encryption?: boolean | undefined;
|
|
1497
|
+
readonly index?: boolean | undefined;
|
|
1498
|
+
readonly externalId?: boolean | undefined;
|
|
1499
|
+
readonly type: "location";
|
|
1500
|
+
};
|
|
1501
|
+
address: (config?: FieldInput) => {
|
|
1502
|
+
readonly formula?: string | undefined;
|
|
1503
|
+
readonly options?: {
|
|
1504
|
+
value: string;
|
|
1505
|
+
label: string;
|
|
1506
|
+
color?: string | undefined;
|
|
1507
|
+
default?: boolean | undefined;
|
|
1508
|
+
}[] | undefined;
|
|
1509
|
+
readonly label?: string | undefined;
|
|
1510
|
+
readonly name?: string | undefined;
|
|
1511
|
+
readonly description?: string | undefined;
|
|
1512
|
+
readonly format?: string | undefined;
|
|
1513
|
+
readonly required?: boolean | undefined;
|
|
1514
|
+
readonly searchable?: boolean | undefined;
|
|
1515
|
+
readonly multiple?: boolean | undefined;
|
|
1516
|
+
readonly unique?: boolean | undefined;
|
|
1517
|
+
readonly defaultValue?: any;
|
|
1518
|
+
readonly maxLength?: number | undefined;
|
|
1519
|
+
readonly minLength?: number | undefined;
|
|
1520
|
+
readonly precision?: number | undefined;
|
|
1521
|
+
readonly scale?: number | undefined;
|
|
1522
|
+
readonly min?: number | undefined;
|
|
1523
|
+
readonly max?: number | undefined;
|
|
1524
|
+
readonly reference?: string | undefined;
|
|
1525
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1526
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1527
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1528
|
+
readonly expression?: string | undefined;
|
|
1529
|
+
readonly summaryOperations?: {
|
|
1530
|
+
object: string;
|
|
1531
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1532
|
+
field: string;
|
|
1533
|
+
} | undefined;
|
|
1534
|
+
readonly language?: string | undefined;
|
|
1535
|
+
readonly theme?: string | undefined;
|
|
1536
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1537
|
+
readonly maxRating?: number | undefined;
|
|
1538
|
+
readonly allowHalf?: boolean | undefined;
|
|
1539
|
+
readonly displayMap?: boolean | undefined;
|
|
1540
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1541
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1542
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1543
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1544
|
+
readonly presetColors?: string[] | undefined;
|
|
1545
|
+
readonly hidden?: boolean | undefined;
|
|
1546
|
+
readonly readonly?: boolean | undefined;
|
|
1547
|
+
readonly encryption?: boolean | undefined;
|
|
1548
|
+
readonly index?: boolean | undefined;
|
|
1549
|
+
readonly externalId?: boolean | undefined;
|
|
1550
|
+
readonly type: "address";
|
|
1551
|
+
};
|
|
1552
|
+
richtext: (config?: FieldInput) => {
|
|
1553
|
+
readonly formula?: string | undefined;
|
|
1554
|
+
readonly options?: {
|
|
1555
|
+
value: string;
|
|
1556
|
+
label: string;
|
|
1557
|
+
color?: string | undefined;
|
|
1558
|
+
default?: boolean | undefined;
|
|
1559
|
+
}[] | undefined;
|
|
1560
|
+
readonly label?: string | undefined;
|
|
1561
|
+
readonly name?: string | undefined;
|
|
1562
|
+
readonly description?: string | undefined;
|
|
1563
|
+
readonly format?: string | undefined;
|
|
1564
|
+
readonly required?: boolean | undefined;
|
|
1565
|
+
readonly searchable?: boolean | undefined;
|
|
1566
|
+
readonly multiple?: boolean | undefined;
|
|
1567
|
+
readonly unique?: boolean | undefined;
|
|
1568
|
+
readonly defaultValue?: any;
|
|
1569
|
+
readonly maxLength?: number | undefined;
|
|
1570
|
+
readonly minLength?: number | undefined;
|
|
1571
|
+
readonly precision?: number | undefined;
|
|
1572
|
+
readonly scale?: number | undefined;
|
|
1573
|
+
readonly min?: number | undefined;
|
|
1574
|
+
readonly max?: number | undefined;
|
|
1575
|
+
readonly reference?: string | undefined;
|
|
1576
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1577
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1578
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1579
|
+
readonly expression?: string | undefined;
|
|
1580
|
+
readonly summaryOperations?: {
|
|
1581
|
+
object: string;
|
|
1582
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1583
|
+
field: string;
|
|
1584
|
+
} | undefined;
|
|
1585
|
+
readonly language?: string | undefined;
|
|
1586
|
+
readonly theme?: string | undefined;
|
|
1587
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1588
|
+
readonly maxRating?: number | undefined;
|
|
1589
|
+
readonly allowHalf?: boolean | undefined;
|
|
1590
|
+
readonly displayMap?: boolean | undefined;
|
|
1591
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1592
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1593
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1594
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1595
|
+
readonly presetColors?: string[] | undefined;
|
|
1596
|
+
readonly hidden?: boolean | undefined;
|
|
1597
|
+
readonly readonly?: boolean | undefined;
|
|
1598
|
+
readonly encryption?: boolean | undefined;
|
|
1599
|
+
readonly index?: boolean | undefined;
|
|
1600
|
+
readonly externalId?: boolean | undefined;
|
|
1601
|
+
readonly type: "richtext";
|
|
1602
|
+
};
|
|
1603
|
+
code: (language?: string, config?: FieldInput) => {
|
|
1604
|
+
readonly formula?: string | undefined;
|
|
1605
|
+
readonly options?: {
|
|
1606
|
+
value: string;
|
|
1607
|
+
label: string;
|
|
1608
|
+
color?: string | undefined;
|
|
1609
|
+
default?: boolean | undefined;
|
|
1610
|
+
}[] | undefined;
|
|
1611
|
+
readonly label?: string | undefined;
|
|
1612
|
+
readonly name?: string | undefined;
|
|
1613
|
+
readonly description?: string | undefined;
|
|
1614
|
+
readonly format?: string | undefined;
|
|
1615
|
+
readonly required?: boolean | undefined;
|
|
1616
|
+
readonly searchable?: boolean | undefined;
|
|
1617
|
+
readonly multiple?: boolean | undefined;
|
|
1618
|
+
readonly unique?: boolean | undefined;
|
|
1619
|
+
readonly defaultValue?: any;
|
|
1620
|
+
readonly maxLength?: number | undefined;
|
|
1621
|
+
readonly minLength?: number | undefined;
|
|
1622
|
+
readonly precision?: number | undefined;
|
|
1623
|
+
readonly scale?: number | undefined;
|
|
1624
|
+
readonly min?: number | undefined;
|
|
1625
|
+
readonly max?: number | undefined;
|
|
1626
|
+
readonly reference?: string | undefined;
|
|
1627
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1628
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1629
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1630
|
+
readonly expression?: string | undefined;
|
|
1631
|
+
readonly summaryOperations?: {
|
|
1632
|
+
object: string;
|
|
1633
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1634
|
+
field: string;
|
|
1635
|
+
} | undefined;
|
|
1636
|
+
language: string | undefined;
|
|
1637
|
+
readonly theme?: string | undefined;
|
|
1638
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1639
|
+
readonly maxRating?: number | undefined;
|
|
1640
|
+
readonly allowHalf?: boolean | undefined;
|
|
1641
|
+
readonly displayMap?: boolean | undefined;
|
|
1642
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1643
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1644
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1645
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1646
|
+
readonly presetColors?: string[] | undefined;
|
|
1647
|
+
readonly hidden?: boolean | undefined;
|
|
1648
|
+
readonly readonly?: boolean | undefined;
|
|
1649
|
+
readonly encryption?: boolean | undefined;
|
|
1650
|
+
readonly index?: boolean | undefined;
|
|
1651
|
+
readonly externalId?: boolean | undefined;
|
|
1652
|
+
readonly type: "code";
|
|
1653
|
+
};
|
|
1654
|
+
color: (config?: FieldInput) => {
|
|
1655
|
+
readonly formula?: string | undefined;
|
|
1656
|
+
readonly options?: {
|
|
1657
|
+
value: string;
|
|
1658
|
+
label: string;
|
|
1659
|
+
color?: string | undefined;
|
|
1660
|
+
default?: boolean | undefined;
|
|
1661
|
+
}[] | undefined;
|
|
1662
|
+
readonly label?: string | undefined;
|
|
1663
|
+
readonly name?: string | undefined;
|
|
1664
|
+
readonly description?: string | undefined;
|
|
1665
|
+
readonly format?: string | undefined;
|
|
1666
|
+
readonly required?: boolean | undefined;
|
|
1667
|
+
readonly searchable?: boolean | undefined;
|
|
1668
|
+
readonly multiple?: boolean | undefined;
|
|
1669
|
+
readonly unique?: boolean | undefined;
|
|
1670
|
+
readonly defaultValue?: any;
|
|
1671
|
+
readonly maxLength?: number | undefined;
|
|
1672
|
+
readonly minLength?: number | undefined;
|
|
1673
|
+
readonly precision?: number | undefined;
|
|
1674
|
+
readonly scale?: number | undefined;
|
|
1675
|
+
readonly min?: number | undefined;
|
|
1676
|
+
readonly max?: number | undefined;
|
|
1677
|
+
readonly reference?: string | undefined;
|
|
1678
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1679
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1680
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1681
|
+
readonly expression?: string | undefined;
|
|
1682
|
+
readonly summaryOperations?: {
|
|
1683
|
+
object: string;
|
|
1684
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1685
|
+
field: string;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
readonly language?: string | undefined;
|
|
1688
|
+
readonly theme?: string | undefined;
|
|
1689
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1690
|
+
readonly maxRating?: number | undefined;
|
|
1691
|
+
readonly allowHalf?: boolean | undefined;
|
|
1692
|
+
readonly displayMap?: boolean | undefined;
|
|
1693
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1694
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1695
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1696
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1697
|
+
readonly presetColors?: string[] | undefined;
|
|
1698
|
+
readonly hidden?: boolean | undefined;
|
|
1699
|
+
readonly readonly?: boolean | undefined;
|
|
1700
|
+
readonly encryption?: boolean | undefined;
|
|
1701
|
+
readonly index?: boolean | undefined;
|
|
1702
|
+
readonly externalId?: boolean | undefined;
|
|
1703
|
+
readonly type: "color";
|
|
1704
|
+
};
|
|
1705
|
+
rating: (maxRating?: number, config?: FieldInput) => {
|
|
1706
|
+
readonly formula?: string | undefined;
|
|
1707
|
+
readonly options?: {
|
|
1708
|
+
value: string;
|
|
1709
|
+
label: string;
|
|
1710
|
+
color?: string | undefined;
|
|
1711
|
+
default?: boolean | undefined;
|
|
1712
|
+
}[] | undefined;
|
|
1713
|
+
readonly label?: string | undefined;
|
|
1714
|
+
readonly name?: string | undefined;
|
|
1715
|
+
readonly description?: string | undefined;
|
|
1716
|
+
readonly format?: string | undefined;
|
|
1717
|
+
readonly required?: boolean | undefined;
|
|
1718
|
+
readonly searchable?: boolean | undefined;
|
|
1719
|
+
readonly multiple?: boolean | undefined;
|
|
1720
|
+
readonly unique?: boolean | undefined;
|
|
1721
|
+
readonly defaultValue?: any;
|
|
1722
|
+
readonly maxLength?: number | undefined;
|
|
1723
|
+
readonly minLength?: number | undefined;
|
|
1724
|
+
readonly precision?: number | undefined;
|
|
1725
|
+
readonly scale?: number | undefined;
|
|
1726
|
+
readonly min?: number | undefined;
|
|
1727
|
+
readonly max?: number | undefined;
|
|
1728
|
+
readonly reference?: string | undefined;
|
|
1729
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1730
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1731
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1732
|
+
readonly expression?: string | undefined;
|
|
1733
|
+
readonly summaryOperations?: {
|
|
1734
|
+
object: string;
|
|
1735
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1736
|
+
field: string;
|
|
1737
|
+
} | undefined;
|
|
1738
|
+
readonly language?: string | undefined;
|
|
1739
|
+
readonly theme?: string | undefined;
|
|
1740
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1741
|
+
maxRating: number;
|
|
1742
|
+
readonly allowHalf?: boolean | undefined;
|
|
1743
|
+
readonly displayMap?: boolean | undefined;
|
|
1744
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1745
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1746
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1747
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1748
|
+
readonly presetColors?: string[] | undefined;
|
|
1749
|
+
readonly hidden?: boolean | undefined;
|
|
1750
|
+
readonly readonly?: boolean | undefined;
|
|
1751
|
+
readonly encryption?: boolean | undefined;
|
|
1752
|
+
readonly index?: boolean | undefined;
|
|
1753
|
+
readonly externalId?: boolean | undefined;
|
|
1754
|
+
readonly type: "rating";
|
|
1755
|
+
};
|
|
1756
|
+
signature: (config?: FieldInput) => {
|
|
1757
|
+
readonly formula?: string | undefined;
|
|
1758
|
+
readonly options?: {
|
|
1759
|
+
value: string;
|
|
1760
|
+
label: string;
|
|
1761
|
+
color?: string | undefined;
|
|
1762
|
+
default?: boolean | undefined;
|
|
1763
|
+
}[] | undefined;
|
|
1764
|
+
readonly label?: string | undefined;
|
|
1765
|
+
readonly name?: string | undefined;
|
|
1766
|
+
readonly description?: string | undefined;
|
|
1767
|
+
readonly format?: string | undefined;
|
|
1768
|
+
readonly required?: boolean | undefined;
|
|
1769
|
+
readonly searchable?: boolean | undefined;
|
|
1770
|
+
readonly multiple?: boolean | undefined;
|
|
1771
|
+
readonly unique?: boolean | undefined;
|
|
1772
|
+
readonly defaultValue?: any;
|
|
1773
|
+
readonly maxLength?: number | undefined;
|
|
1774
|
+
readonly minLength?: number | undefined;
|
|
1775
|
+
readonly precision?: number | undefined;
|
|
1776
|
+
readonly scale?: number | undefined;
|
|
1777
|
+
readonly min?: number | undefined;
|
|
1778
|
+
readonly max?: number | undefined;
|
|
1779
|
+
readonly reference?: string | undefined;
|
|
1780
|
+
readonly referenceFilters?: string[] | undefined;
|
|
1781
|
+
readonly writeRequiresMasterRead?: boolean | undefined;
|
|
1782
|
+
readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
|
|
1783
|
+
readonly expression?: string | undefined;
|
|
1784
|
+
readonly summaryOperations?: {
|
|
1785
|
+
object: string;
|
|
1786
|
+
function: "min" | "max" | "count" | "sum" | "avg";
|
|
1787
|
+
field: string;
|
|
1788
|
+
} | undefined;
|
|
1789
|
+
readonly language?: string | undefined;
|
|
1790
|
+
readonly theme?: string | undefined;
|
|
1791
|
+
readonly lineNumbers?: boolean | undefined;
|
|
1792
|
+
readonly maxRating?: number | undefined;
|
|
1793
|
+
readonly allowHalf?: boolean | undefined;
|
|
1794
|
+
readonly displayMap?: boolean | undefined;
|
|
1795
|
+
readonly allowGeocoding?: boolean | undefined;
|
|
1796
|
+
readonly addressFormat?: "us" | "uk" | "international" | undefined;
|
|
1797
|
+
readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
1798
|
+
readonly allowAlpha?: boolean | undefined;
|
|
1799
|
+
readonly presetColors?: string[] | undefined;
|
|
1800
|
+
readonly hidden?: boolean | undefined;
|
|
1801
|
+
readonly readonly?: boolean | undefined;
|
|
1802
|
+
readonly encryption?: boolean | undefined;
|
|
1803
|
+
readonly index?: boolean | undefined;
|
|
1804
|
+
readonly externalId?: boolean | undefined;
|
|
1805
|
+
readonly type: "signature";
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
170
1808
|
//# sourceMappingURL=field.zod.d.ts.map
|