-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfields.ts
More file actions
78 lines (73 loc) · 1.89 KB
/
fields.ts
File metadata and controls
78 lines (73 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { ISchemaFieldMap } from "../../visualBuilder/utils/types/index.types";
export const singleLineFieldSchema = {
data_type: "text",
display_name: "Single Line Textbox",
uid: "single_line",
field_metadata: {
description: "",
default_value: "",
version: 3,
},
format: "",
error_messages: {
format: "",
},
mandatory: false,
multiple: true,
non_localizable: false,
unique: false,
} as ISchemaFieldMap;
export const mockMultipleLinkFieldSchema: ISchemaFieldMap = {
data_type: "link",
display_name: "Link",
uid: "link",
field_metadata: {
description: "",
default_value: {
title: "Example",
url: "https://www.example.com",
},
},
mandatory: false,
multiple: true,
non_localizable: false,
unique: false,
};
export const mockMultipleFileFieldSchema: ISchemaFieldMap = {
data_type: "file",
display_name: "File",
uid: "file",
extensions: [],
field_metadata: {
description: "",
rich_text_type: "standard"
},
mandatory: false,
multiple: true,
non_localizable: false,
unique: false,
};
export const mockMultipleCustomFieldSchema: ISchemaFieldMap = {
extension_uid: "test_extension_uid",
field_metadata: { extension: true },
config: {},
data_type: "number",
display_name: "Custom Field",
uid: "custom_field",
mandatory: false,
multiple: true,
non_localizable: false,
unique: false,
} as unknown as ISchemaFieldMap;
export const mockSingleCustomFieldSchema: ISchemaFieldMap = {
extension_uid: "test_extension_uid",
field_metadata: { extension: true },
config: {},
data_type: "number",
display_name: "Custom Field",
uid: "custom_field",
mandatory: false,
multiple: false,
non_localizable: false,
unique: false,
} as unknown as ISchemaFieldMap;