@@ -13,7 +13,6 @@ export interface CustomApiBase {
13
13
api_type : string
14
14
type : string
15
15
slug : string
16
- allow_upserts : boolean
17
16
}
18
17
19
18
export interface CustomApi extends Identifiable , CustomApiBase {
@@ -29,44 +28,18 @@ export interface CustomApi extends Identifiable, CustomApiBase {
29
28
}
30
29
31
30
export type CustomFieldValidation =
32
- | { string : {
33
- min_length ?: number | null ,
34
- max_length ?: number | null ,
35
- regex ?: string | null ,
36
- allow_null_values ?: boolean ,
37
- immutable ?: boolean ,
38
- unique : "yes" | "no" ,
39
- unique_case_insensitivity ?: boolean
40
- }
41
- }
42
- | { integer : {
43
- min_value ?: number | null ,
44
- max_value ?: number | null ,
45
- allow_null_values ?: boolean ,
46
- immutable ?: boolean
47
- }
48
- }
49
- | { float : {
50
- min_value ?: number | null ,
51
- max_value ?: number | null ,
52
- allow_null_values ?: boolean ,
53
- immutable ?: boolean
54
- }
55
- }
56
- | { boolean : {
57
- allow_null_values ?: boolean ,
58
- immutable ?: boolean
59
- }
60
- }
31
+ | { string : { min_length ?: number , max_length ?: number , regex ?: string , allow_null_values ?: boolean } }
32
+ | { integer : { min_value ?: number , max_value ?: number , allow_null_values ?: boolean } }
33
+ | { float : { min_value ?: number , max_value ?: number , allow_null_values ?: boolean } }
34
+ | { boolean : { allow_null_values ?: boolean } }
61
35
62
36
export interface CustomApiFieldBase {
63
37
name : string
64
38
description : string
65
39
field_type : string
66
40
type : string
67
41
slug : string
68
- validation ?: CustomFieldValidation ,
69
- use_as_url_slug : boolean
42
+ validation ?: CustomFieldValidation
70
43
}
71
44
72
45
export interface CustomApiField extends Identifiable , CustomApiFieldBase {
0 commit comments