diff --git a/lib/firebase_functions_interop.dart b/lib/firebase_functions_interop.dart index abfe5fe..0751590 100644 --- a/lib/firebase_functions_interop.dart +++ b/lib/firebase_functions_interop.dart @@ -409,6 +409,12 @@ class ScheduleBuilder { ScheduleBuilder._(this.nativeInstance); + /// define a time zone for the scheduler to run + ScheduleBuilder timeZone(String timeZone) { + nativeInstance.timeZone(timeZone); + return this; + } + /// Event handler that fires every time a schedule occurs. js.CloudFunction onRun(DataEventHandler handler) { dynamic wrapper(js.EventContext jsContext) => diff --git a/lib/src/bindings.dart b/lib/src/bindings.dart index a2d51ec..60cfaf0 100644 --- a/lib/src/bindings.dart +++ b/lib/src/bindings.dart @@ -270,6 +270,10 @@ abstract class TopicBuilder { @JS() @anonymous abstract class ScheduleBuilder { + + /// define a time zone for the scheduler to run + external ScheduleBuilder timeZone(String timeZone); + /// Event handler that fires every time a schedule occurs. external CloudFunction onRun( dynamic handler(EventContext context)); diff --git a/pubspec.yaml b/pubspec.yaml index d2119c3..9e4a699 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,8 +12,11 @@ dependencies: meta: ^1.1.8 node_interop: ^1.0.3 node_io: ^1.0.1+2 - node_http: ^1.0.0 - firebase_admin_interop: ^2.0.0 + node_http: ^1.0.1 +# firebase_admin_interop: ^2.1.0 + firebase_admin_interop: + path: /Users/adrian/Documents/DevSystem/projects/opensource/firebase-admin-interop + dev_dependencies: test: ^1.12.0