feat(timezone): Adds timezone as option
This commit is contained in:
parent
0b9089ffae
commit
b852c06f83
11 changed files with 278 additions and 22 deletions
|
|
@ -11,7 +11,8 @@ import {ConfigurationTransformer, TransformerType} from "../ConfigurationTransfo
|
|||
export type RuntimeGroupConfiguration = {
|
||||
channels: Nullable<ChannelRuntimeGroupConfiguration>,
|
||||
permissions: PermissionRuntimeGroupConfiguration,
|
||||
calendar: CalendarRuntimeGroupConfiguration
|
||||
calendar: CalendarRuntimeGroupConfiguration,
|
||||
timezone: string|null
|
||||
};
|
||||
|
||||
export type ChannelRuntimeGroupConfiguration = {
|
||||
|
|
@ -49,7 +50,8 @@ export class GroupConfigurationProvider implements ConfigurationProvider<
|
|||
title: null,
|
||||
description: null,
|
||||
location: null
|
||||
}
|
||||
},
|
||||
timezone: null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -97,6 +99,10 @@ export class GroupConfigurationProvider implements ConfigurationProvider<
|
|||
{
|
||||
path: ['calendar', 'location'],
|
||||
type: TransformerType.String
|
||||
},
|
||||
{
|
||||
path: ['timezone'],
|
||||
type: TransformerType.Timezone
|
||||
}
|
||||
]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue