-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
71 lines (66 loc) · 1.91 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
import { Config } from "./types/config";
/** Minutes to milliseconds */
const minutes = (_: number) => _ * 60 * 1000;
const multiply = (factor: number) => (_: number) => factor * _;
export default {
school: {
classes: ["5a"],
},
currencies: {
"plancko-digital": {
name: "Plancko Digital",
short: "PLDig",
symbol: "p̶",
decimals: 0,
conversion: {
"plancko-analog": multiply(2),
},
},
"plancko-analog": {
name: "Plancko Papier",
short: "PLPap",
symbol: "p̶",
decimals: 0,
conversion: {
"plancko-digital": multiply(0.5),
},
},
},
mainCurrency: "plancko-digital",
roles: {
stateBankAccountId: "STATE",
adminCitizenIds: ["admin", "j.keller"],
teacherCitizenIds: ["teach", "m.koch"],
warehouseCompanyId: "warehouse",
bankCompanyId: "bank",
borderControlCompanyId: "border",
taxOfficeCompanyId: "tax",
policeCompanyId: "police",
policiticsCompanyId: "politics",
},
openingHours: {
dates: ["2020-07-23", "2020-07-24", "2020-07-27", "2020-07-28"],
open: "09:00:00+02:00",
close: "16:00:00+02:00",
timezone: "+02:00",
},
guestInitialBalance: 50,
server: {
url: "http://127.0.0.1:4000/graphql",
host: "127.0.0.1",
port: 4000,
trustedOperations: ["19f360e9", "TRUSTED"],
},
database: {
file: "database.sqlite3",
backup: {
dir: "database",
file: () => `database-backup-${new Date().toISOString()}.sqlite3`,
interval: minutes(1),
},
allowRawSql: false,
},
flags: {
changeTransactionClerk: false,
},
} satisfies Config<"plancko-digital" | "plancko-analog"> as Config;