@@ -5,104 +5,105 @@ import * as t from "ts-interface-checker";
55// tslint:disable:object-literal-key-quotes
66
77export const Only = t . iface ( [ ] , {
8- "type" : t . lit ( 'only' ) ,
9- "only" : t . array ( "ISubscriptionTarget" ) ,
8+ "type" : t . lit ( 'only' ) ,
9+ "only" : t . array ( "ISubscriptionTarget" ) ,
1010} ) ;
1111
1212export const Ignore = t . iface ( [ ] , {
13- "type" : t . lit ( 'ignore' ) ,
14- "ignore" : t . array ( "ISubscriptionTarget" ) ,
13+ "type" : t . lit ( 'ignore' ) ,
14+ "ignore" : t . array ( "ISubscriptionTarget" ) ,
1515} ) ;
1616
1717export const All = t . iface ( [ ] , {
18- "type" : t . lit ( 'all' ) ,
18+ "type" : t . lit ( 'all' ) ,
1919} ) ;
2020
2121export const MethodSubscription = t . union ( "All" , "Only" , "Ignore" ) ;
2222
2323export const ISubscriptionTarget = t . iface ( [ ] , {
24- "pallet" : "string" ,
25- "method" : "string" ,
24+ "pallet" : "string" ,
25+ "method" : "string" ,
2626} ) ;
2727
2828export const RawAccount = t . iface ( [ ] , {
29- "address" : "string" ,
30- "nickname" : "string" ,
29+ "address" : "string" ,
30+ "nickname" : "string" ,
3131} ) ;
3232
3333export const BatchConfig = t . iface ( [ ] , {
34- "interval" : "number" ,
35- "misc" : t . opt ( "boolean" ) ,
36- "leftovers" : t . opt ( "boolean" ) ,
34+ "interval" : "number" ,
35+ "misc" : t . opt ( "boolean" ) ,
36+ "leftovers" : t . opt ( "boolean" ) ,
3737} ) ;
3838
3939export const EmailConfig = t . iface ( [ ] , {
40- "from" : "string" ,
41- "to" : t . array ( "string" ) ,
42- "gpgpubkey" : t . opt ( "string" ) ,
43- "transporter" : "any" ,
44- "batch" : t . opt ( "BatchConfig" ) ,
40+ "from" : "string" ,
41+ "to" : t . array ( "string" ) ,
42+ "gpgpubkey" : t . opt ( "string" ) ,
43+ "transporter" : "any" ,
44+ "batch" : t . opt ( "BatchConfig" ) ,
4545} ) ;
4646
4747export const MatrixConfig = t . iface ( [ ] , {
48- "userId" : t . opt ( "string" ) , // optional as it can be passed through env.MATRIX_USERID
49- "accessToken" : t . opt ( "string" ) , // optional as it can be passed through env.MATRIX_ACCESSTOKEN
50- "roomId" : "string" ,
51- "server" : "string" ,
52- "batch" : t . opt ( "BatchConfig" ) ,
48+ "userId" : t . opt ( "string" ) , // optional as it can be passed through env.MATRIX_USERID
49+ "accessToken" : t . opt ( "string" ) , // optional as it can be passed through env.MATRIX_ACCESSTOKEN
50+ "roomId" : "string" ,
51+ "server" : "string" ,
52+ "batch" : t . opt ( "BatchConfig" ) ,
5353} ) ;
5454
5555export const FsConfig = t . iface ( [ ] , {
56- "path" : "string" ,
57- "batch" : t . opt ( "BatchConfig" ) ,
56+ "path" : "string" ,
57+ "batch" : t . opt ( "BatchConfig" ) ,
5858} ) ;
5959
6060export const ConsoleConfig = t . iface ( [ ] , {
61- "batch" : t . opt ( "BatchConfig" ) ,
61+ "batch" : t . opt ( "BatchConfig" ) ,
6262} ) ;
6363
6464export const TelegramConfig = t . iface ( [ ] , {
65- "chatId" : "string" ,
66- "botToken" : "string" ,
67- "batch" : t . opt ( "BatchConfig" ) ,
65+ "chatId" : "string" ,
66+ "botToken" : "string" ,
67+ "batch" : t . opt ( "BatchConfig" ) ,
6868} ) ;
6969
7070export const ReportersConfig = t . iface ( [ ] , {
71- "email" : t . opt ( "EmailConfig" ) ,
72- "matrix" : t . opt ( "MatrixConfig" ) ,
73- "fs" : t . opt ( "FsConfig" ) ,
74- "telegram" : t . opt ( "TelegramConfig" ) ,
75- "console" : t . opt ( "ConsoleConfig" ) ,
71+ "email" : t . opt ( "EmailConfig" ) ,
72+ "matrix" : t . opt ( "MatrixConfig" ) ,
73+ "fs" : t . opt ( "FsConfig" ) ,
74+ "telegram" : t . opt ( "TelegramConfig" ) ,
75+ "console" : t . opt ( "ConsoleConfig" ) ,
7676} ) ;
7777
7878export const ApiSubscription = t . enumtype ( {
79- "Head" : "head" ,
80- "Finalized" : "finalized" ,
79+ "Head" : "head" ,
80+ "Finalized" : "finalized" ,
8181} ) ;
8282
8383export const AppConfig = t . iface ( [ ] , {
84- "accounts" : t . array ( "RawAccount" ) ,
85- "endpoints" : t . array ( "string" ) ,
86- "method_subscription" : "MethodSubscription" ,
87- "api_subscription" : "ApiSubscription" ,
88- "reporters" : "ReportersConfig" ,
84+ "accounts" : t . array ( "RawAccount" ) ,
85+ "endpoints" : t . array ( "string" ) ,
86+ "startup_notification" : "boolean" ,
87+ "method_subscription" : "MethodSubscription" ,
88+ "api_subscription" : "ApiSubscription" ,
89+ "reporters" : "ReportersConfig" ,
8990} ) ;
9091
9192const exportedTypeSuite : t . ITypeSuite = {
92- Only,
93- Ignore,
94- All,
95- MethodSubscription,
96- ISubscriptionTarget,
97- RawAccount,
98- BatchConfig,
99- EmailConfig,
100- MatrixConfig,
101- FsConfig,
102- ConsoleConfig,
103- TelegramConfig,
104- ReportersConfig,
105- ApiSubscription,
106- AppConfig,
93+ Only,
94+ Ignore,
95+ All,
96+ MethodSubscription,
97+ ISubscriptionTarget,
98+ RawAccount,
99+ BatchConfig,
100+ EmailConfig,
101+ MatrixConfig,
102+ FsConfig,
103+ ConsoleConfig,
104+ TelegramConfig,
105+ ReportersConfig,
106+ ApiSubscription,
107+ AppConfig,
107108} ;
108109export default exportedTypeSuite ;
0 commit comments