-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.ts
103 lines (101 loc) · 2.7 KB
/
config.ts
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { CommonDataConfig } from "../frontend/commondatabuilder/commondatabuilder";
const config: CommonDataConfig = {
rootDir: __dirname,
namedConstantsFiles: [
"loc.json",
"issue-validation.json",
"hp-action.json",
"forms.json",
"email-attachment-validation.json",
"amplitude.json",
],
djangoChoicesFiles: [
{
jsonFilename: "issue-choices.json",
typeName: "IssueChoice",
exportLabels: true,
internationalizeLabels: true,
filterOut: /^(LANDLORD__|PUBLIC_AREAS__ILLEGAL_APARTMENTS|HOME__(FRONT_DOOR|DOOR_LOCK|DOORBELL|BUZZER)_BROKEN|KITCHEN__(REFRIGERATOR|STOVE)_BROKEN)/,
},
{
jsonFilename: "issue-area-choices.json",
typeName: "IssueAreaChoice",
exportLabels: true,
filterOut: ["LANDLORD"],
},
{
jsonFilename: "issue-choices-laletterbuilder.json",
typeName: "LaIssueChoice",
exportLabels: true,
internationalizeLabels: true,
},
{
jsonFilename: "issue-category-choices-laletterbuilder.json",
typeName: "LaIssueCategoryChoice",
exportLabels: true,
internationalizeLabels: true,
},
{
jsonFilename: "issue-room-choices-laletterbuilder.json",
typeName: "LaIssueRoomChoice",
exportLabels: true,
internationalizeLabels: true,
},
{
jsonFilename: "borough-choices.json",
typeName: "BoroughChoice",
exportLabels: true,
},
{
jsonFilename: "hp-action-choices.json",
typeName: "HPActionChoice",
exportLabels: false,
},
{
jsonFilename: "lease-choices.json",
typeName: "LeaseChoice",
exportLabels: true,
filterOut: [],
},
{
jsonFilename: "signup-intent-choices.json",
typeName: "SignupIntent",
exportLabels: true,
},
{
jsonFilename: "site-choices.json",
typeName: "SiteChoice",
exportLabels: false,
},
{
jsonFilename: "la-letter-builder-letter-choices.json",
typeName: "LetterChoice",
internationalizeLabels: true,
exportLabels: true,
},
{
jsonFilename: "laletterbuilder-mailing-choices.json",
typeName: "LaMailingChoice",
internationalizeLabels: true,
exportLabels: true,
},
{
jsonFilename: "us-state-choices.json",
typeName: "USStateChoice",
exportLabels: true,
internationalizeLabels: true,
filterOut: ["AS", "GU", "MP", "VI"],
},
{
jsonFilename: "locale-choices.json",
typeName: "LocaleChoice",
exportLabels: false,
},
{
jsonFilename: "evictionfree-unsupported-locale-choices.json",
typeName: "EvictionFreeUnsupportedLocaleChoice",
exportLabels: true,
},
],
};
export default config;